1 2013-11-19 Joseph Myers <joseph@codesourcery.com>
3 * varasm.c (align_variable): Give error instead of warning for
5 (assemble_noswitch_variable): Likewise.
7 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
9 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
12 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
14 * loop-doloop.c (doloop_optimize_loops): Remove unused
15 loop iterator argument from FOR_EACH_LOOP.
17 2013-11-19 David Malcolm <dmalcolm@redhat.com>
19 Convert gimple types from a union to C++ inheritance.
20 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
21 * coretypes.h (union gimple_statement_d): Remove declaration.
22 (gimple): Convert from being a "union gimple_statement_d *"
23 to a "struct gimple_statement_base *".
24 (const_gimple): Likewise (with "const").
25 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace
27 (ggc_alloc_cleared_gimple_statement_stat): ...this.
28 * gimple-pretty-print.c (debug): Change parameter from a
29 "gimple_statement_d &" to a "gimple_statement_base &".
30 (debug): Change parameter from a "gimple_statement_d *" to
31 a "gimple_statement_base *".
32 * gimple-pretty-print.h (debug): Update declarations as above.
33 * gimple.c (gimple_alloc_stat): Update for renaming of
34 ggc_alloc_cleared_gimple_statement_d_stat to
35 ggc_alloc_cleared_gimple_statement_stat.
36 * gimple.h: Include "is-a.h" for use by is_a_helper
37 specializations in followup autogenerated patch.
38 (struct gimple statement_base): Make this type usable as a base
39 class by adding "desc", "tag" and "variable_size" to GTY, thus
40 using opting-in to gengtype's support for simple inheritance.
41 (gimple_statement_with_ops_base): Convert to a subclass of
42 gimple_statement_base, dropping initial "gsbase" field. Note
43 that this type is abstract, with no GSS_ value, and thus no GTY
45 (gimple_statement_with_ops): Convert to a subclass of
46 gimple_statement_with_ops_base, dropping initial "opbase" field.
47 Add tag value to GTY marking. Update marking of op field to
48 reflect how num_ops field is accessed via inheritance.
49 (gimple_statement_with_memory_ops_base): Convert to a subclass of
50 gimple_statement_with_ops_base, dropping initial "opbase" field.
51 Add tag value to GTY marking.
52 (gimple_statement_with_memory_ops): Convert to a subclass of
53 public gimple_statement_with_memory_ops_base, dropping initial
54 "membase" field. Add tag value to GTY marking. Update marking
55 of op field to reflect how num_ops field is accessed via
57 (gimple_statement_call): Analogous changes that also update the
58 marking of the "u" union.
59 (gimple_statement_omp): Convert to a subclass of
60 gimple_statement_base, dropping initial "gsbase" field, adding
61 tag value to GTY marking.
62 (gimple_statement_bind): Likewise.
63 (gimple_statement_catch): Likewise.
64 (gimple_statement_eh_filter): Likewise.
65 (gimple_statement_eh_else): Likewise.
66 (gimple_statement_eh_mnt): Likewise.
67 (gimple_statement_phi): Likewise.
68 (gimple_statement_eh_ctrl): Likewise.
69 (gimple_statement_try): Likewise.
70 (gimple_statement_wce): Likewise.
71 (gimple_statement_asm): Convert to a subclass of
72 gimple_statement_with_memory_ops_base, dropping initial
73 "membase" field, adding tag value to GTY marking, and updating
75 (gimple_statement_omp_critical): Convert to a subclass of
76 gimple_statement_omp, dropping initial "omp" field, adding tag
78 (gimple_statement_omp_for): Likewise.
79 (gimple_statement_omp_parallel): Likewise.
80 (gimple_statement_omp_task): Convert to a subclass of
81 gimple_statement_omp_parallel, dropping initial "par" field,
82 adding tag value to GTY marking.
83 (gimple_statement_omp_sections): Convert to a subclass of
84 gimple_statement_omp, dropping initial "omp" field, adding
85 tag value to GTY marking.
86 (gimple_statement_omp_continue): Convert to a subclass of
87 gimple_statement_base, dropping initial "gsbase" field, adding
88 tag value to GTY marking.
89 (gimple_statement_omp_single): Convert to a subclass of
90 gimple_statement_omp, dropping initial "omp" field, adding
91 tag value to GTY marking.
92 (gimple_statement_omp_atomic_load): Convert to a subclass of
93 gimple_statement_base, dropping initial "gsbase" field, adding
94 tag value to GTY marking.
95 (gimple_statement_omp_atomic_store): Convert to a subclass of
96 gimple_statement_base, dropping initial "gsbase" field, adding
97 tag value to GTY marking.
98 (gimple_statement_transaction): Convert to a subclass of
99 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
100 field, adding tag value to GTY marking.
101 (union gimple_statement_d): Remove.
102 * system.h (CONST_CAST_GIMPLE): Update to use
103 "struct gimple_statement_base *" rather than
104 "union gimple_statement_d *".
105 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
106 gimple_statement_d to gimple_statement_base.
108 * gimple.h (gimple_use_ops): Port from union to usage of
110 (gimple_set_use_ops): Port from union to usage of as_a.
111 (gimple_set_vuse): Likewise.
112 (gimple_set_vdef): Likewise.
113 (gimple_call_internal_fn): Port from union to a static_cast,
114 given that the type has already been asserted.
115 (gimple_omp_body_ptr): Port from unchecked union usage to
117 (gimple_omp_set_body): Likewise.
119 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
120 gimple types to a true class hierarchy.
121 (update_call_edge_frequencies): Likewise.
122 (gsi_insert_seq_nodes_before): Likewise.
123 (gsi_insert_seq_nodes_after): Likewise.
124 (gsi_split_seq_after): Likewise.
125 (gsi_set_stmt): Likewise.
126 (gsi_split_seq_before): Likewise.
127 (gsi_remove): Likewise.
128 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
129 (gsi_next): Likewise.
130 (gsi_prev): Likewise.
131 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
132 * gimple-ssa.h (gimple_vuse_op): Likewise.
133 (gimple_vdef_op): Likewise.
134 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
135 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
136 * gimple.c (gimple_set_code): Likewise.
137 (gimple_alloc_stat): Likewise.
138 (gimple_set_subcode): Likewise.
139 (gimple_build_call_internal_1): Likewise.
140 (gimple_check_failed): Likewise.
141 (gimple_call_flags): Likewise.
142 (gimple_set_bb): Likewise.
143 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
144 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
145 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
146 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
147 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
148 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
149 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
150 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
151 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
152 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
153 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
154 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
155 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
156 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
157 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
158 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
159 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
160 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
161 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
162 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
163 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
164 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
165 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
166 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
167 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
168 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
170 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
172 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
174 (is_a_helper <const gimple_statement_omp_atomic_store>
175 (const_gimple)): Likewise.
176 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
178 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
180 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
182 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
184 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
186 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
188 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
190 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
191 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
193 (gimple_seq_last): Update for conversion of gimple types to a true
195 (gimple_seq_set_last): Likewise.
196 (gimple_code): Likewise.
197 (gimple_bb): Likewise.
198 (gimple_block): Likewise.
199 (gimple_set_block): Likewise.
200 (gimple_location): Likewise.
201 (gimple_location_ptr): Likewise.
202 (gimple_set_location): Likewise.
203 (gimple_no_warning_p): Likewise.
204 (gimple_set_no_warning): Likewise.
205 (gimple_set_visited): Likewise.
206 (gimple_visited_p): Likewise.
207 (gimple_set_plf): Likewise.
208 (gimple_plf): Likewise.
209 (gimple_set_uid): Likewise.
210 (gimple_uid): Likewise.
211 (gimple_init_singleton): Likewise.
212 (gimple_modified_p): Likewise.
213 (gimple_set_modified): Likewise.
214 (gimple_expr_code): Likewise.
215 (gimple_has_volatile_ops): Likewise.
216 (gimple_set_has_volatile_ops): Likewise.
217 (gimple_omp_subcode): Likewise.
218 (gimple_omp_set_subcode): Likewise.
219 (gimple_omp_return_set_nowait): Likewise.
220 (gimple_omp_section_set_last): Likewise.
221 (gimple_omp_parallel_set_combined_p): Likewise.
222 (gimple_omp_atomic_set_need_value): Likewise.
223 (gimple_omp_atomic_set_seq_cst): Likewise.
224 (gimple_num_ops): Likewise.
225 (gimple_set_num_ops): Likewise.
226 (gimple_assign_nontemporal_move_p): Likewise.
227 (gimple_assign_set_nontemporal_move): Likewise.
228 (gimple_assign_rhs_code): Likewise.
229 (gimple_assign_set_rhs_code): Likewise.
230 (gimple_call_internal_p): Likewise.
231 (gimple_call_with_bounds_p): Likewise.
232 (gimple_call_set_with_bounds): Likewise.
233 (gimple_call_set_tail): Likewise.
234 (gimple_call_tail_p): Likewise.
235 (gimple_call_set_return_slot_opt): Likewise.
236 (gimple_call_return_slot_opt_p): Likewise.
237 (gimple_call_set_from_thunk): Likewise.
238 (gimple_call_from_thunk_p): Likewise.
239 (gimple_call_set_va_arg_pack): Likewise.
240 (gimple_call_va_arg_pack_p): Likewise.
241 (gimple_call_set_nothrow): Likewise.
242 (gimple_call_set_alloca_for_var): Likewise.
243 (gimple_call_alloca_for_var_p): Likewise.
244 (gimple_call_copy_flags): Likewise.
245 (gimple_cond_code): Likewise.
246 (gimple_cond_set_code): Likewise.
247 (gimple_cond_make_false): Likewise.
248 (gimple_cond_make_true): Likewise.
249 (gimple_asm_volatile_p): Likewise.
250 (gimple_asm_set_volatile): Likewise.
251 (gimple_asm_set_input): Likewise.
252 (gimple_asm_input_p): Likewise.
253 (gimple_try_kind): Likewise.
254 (gimple_try_set_kind): Likewise.
255 (gimple_try_catch_is_cleanup): Likewise.
256 (gimple_try_set_catch_is_cleanup): Likewise.
257 (gimple_wce_cleanup_eh_only): Likewise.
258 (gimple_wce_set_cleanup_eh_only): Likewise.
259 (gimple_debug_bind_p): Likewise.
260 (gimple_debug_source_bind_p): Likewise.
261 (gimple_omp_for_set_kind): Likewise.
262 (gimple_omp_for_set_combined_p): Likewise.
263 (gimple_omp_for_set_combined_into_p): Likewise.
264 (gimple_omp_target_set_kind): Likewise.
265 (gimple_transaction_subcode): Likewise.
266 (gimple_transaction_set_subcode): Likewise.
267 (gimple_predict_predictor): Likewise.
268 (gimple_predict_set_predictor): Likewise.
269 (gimple_predict_outcome): Likewise.
270 (gimple_predict_set_outcome): Likewise.
271 (gimple_transaction_set_label): Likewise.
272 (gimple_transaction_set_body): Likewise.
273 (gimple_transaction_label_ptr): Likewise.
274 (gimple_transaction_label): Likewise.
275 (gimple_transaction_body_ptr): Likewise.
276 (gimple_omp_continue_set_control_use): Likewise.
277 (gimple_omp_continue_control_use_ptr): Likewise.
278 (gimple_omp_continue_control_use): Likewise.
279 (gimple_omp_continue_set_control_def): Likewise.
280 (gimple_omp_continue_control_def_ptr): Likewise.
281 (gimple_omp_continue_control_def): Likewise.
282 (gimple_omp_atomic_load_rhs_ptr): Likewise.
283 (gimple_omp_atomic_load_rhs): Likewise.
284 (gimple_omp_atomic_load_set_rhs): Likewise.
285 (gimple_omp_atomic_load_lhs_ptr): Likewise.
286 (gimple_omp_atomic_load_lhs): Likewise.
287 (gimple_omp_atomic_load_set_lhs): Likewise.
288 (gimple_omp_atomic_store_val_ptr): Likewise.
289 (gimple_omp_atomic_store_val): Likewise.
290 (gimple_omp_atomic_store_set_val): Likewise.
291 (gimple_omp_for_cond): Likewise.
292 (gimple_omp_for_set_cond): Likewise.
293 (gimple_omp_sections_set_control): Likewise.
294 (gimple_omp_sections_control_ptr): Likewise.
295 (gimple_omp_sections_control): Likewise.
296 (gimple_omp_sections_set_clauses): Likewise.
297 (gimple_omp_sections_clauses_ptr): Likewise.
298 (gimple_omp_sections_clauses): Likewise.
299 (gimple_omp_teams_set_clauses): Likewise.
300 (gimple_omp_teams_clauses_ptr): Likewise.
301 (gimple_omp_teams_clauses): Likewise.
302 (gimple_omp_target_set_data_arg): Likewise.
303 (gimple_omp_target_data_arg_ptr): Likewise.
304 (gimple_omp_target_data_arg): Likewise.
305 (gimple_omp_target_set_child_fn): Likewise.
306 (gimple_omp_target_child_fn_ptr): Likewise.
307 (gimple_omp_target_child_fn): Likewise.
308 (gimple_omp_target_set_clauses): Likewise.
309 (gimple_omp_target_clauses_ptr): Likewise.
310 (gimple_omp_target_clauses): Likewise.
311 (gimple_omp_single_set_clauses): Likewise.
312 (gimple_omp_single_clauses_ptr): Likewise.
313 (gimple_omp_single_clauses): Likewise.
314 (gimple_omp_task_set_arg_align): Likewise.
315 (gimple_omp_task_arg_align_ptr): Likewise.
316 (gimple_omp_task_arg_align): Likewise.
317 (gimple_omp_task_set_arg_size): Likewise.
318 (gimple_omp_task_arg_size_ptr): Likewise.
319 (gimple_omp_task_arg_size): Likewise.
320 (gimple_omp_task_set_copy_fn): Likewise.
321 (gimple_omp_task_copy_fn_ptr): Likewise.
322 (gimple_omp_task_copy_fn): Likewise.
323 (gimple_omp_task_set_data_arg): Likewise.
324 (gimple_omp_task_data_arg_ptr): Likewise.
325 (gimple_omp_task_data_arg): Likewise.
326 (gimple_omp_task_set_child_fn): Likewise.
327 (gimple_omp_task_child_fn_ptr): Likewise.
328 (gimple_omp_task_child_fn): Likewise.
329 (gimple_omp_task_set_clauses): Likewise.
330 (gimple_omp_task_clauses_ptr): Likewise.
331 (gimple_omp_task_clauses): Likewise.
332 (gimple_omp_parallel_set_data_arg): Likewise.
333 (gimple_omp_parallel_data_arg_ptr): Likewise.
334 (gimple_omp_parallel_data_arg): Likewise.
335 (gimple_omp_parallel_set_child_fn): Likewise.
336 (gimple_omp_parallel_child_fn_ptr): Likewise.
337 (gimple_omp_parallel_child_fn): Likewise.
338 (gimple_omp_parallel_set_clauses): Likewise.
339 (gimple_omp_parallel_clauses_ptr): Likewise.
340 (gimple_omp_parallel_clauses): Likewise.
341 (gimple_omp_for_set_pre_body): Likewise.
342 (gimple_omp_for_pre_body_ptr): Likewise.
343 (gimple_omp_for_set_incr): Likewise.
344 (gimple_omp_for_incr_ptr): Likewise.
345 (gimple_omp_for_incr): Likewise.
346 (gimple_omp_for_set_final): Likewise.
347 (gimple_omp_for_final_ptr): Likewise.
348 (gimple_omp_for_final): Likewise.
349 (gimple_omp_for_set_initial): Likewise.
350 (gimple_omp_for_initial_ptr): Likewise.
351 (gimple_omp_for_initial): Likewise.
352 (gimple_omp_for_set_index): Likewise.
353 (gimple_omp_for_index_ptr): Likewise.
354 (gimple_omp_for_index): Likewise.
355 (gimple_omp_for_collapse): Likewise.
356 (gimple_omp_for_set_clauses): Likewise.
357 (gimple_omp_for_clauses_ptr): Likewise.
358 (gimple_omp_for_clauses): Likewise.
359 (gimple_omp_critical_set_name): Likewise.
360 (gimple_omp_critical_name_ptr): Likewise.
361 (gimple_omp_critical_name): Likewise.
362 (gimple_eh_dispatch_set_region): Likewise.
363 (gimple_eh_dispatch_region): Likewise.
364 (gimple_resx_set_region): Likewise.
365 (gimple_resx_region): Likewise.
366 (gimple_phi_set_arg): Likewise.
367 (gimple_phi_arg): Likewise.
368 (gimple_phi_set_result): Likewise.
369 (gimple_phi_result_ptr): Likewise.
370 (gimple_phi_result): Likewise.
371 (gimple_phi_num_args): Likewise.
372 (gimple_phi_capacity): Likewise.
373 (gimple_wce_set_cleanup): Likewise.
374 (gimple_wce_cleanup_ptr): Likewise.
375 (gimple_try_set_cleanup): Likewise.
376 (gimple_try_set_eval): Likewise.
377 (gimple_try_cleanup_ptr): Likewise.
378 (gimple_try_eval_ptr): Likewise.
379 (gimple_eh_else_set_e_body): Likewise.
380 (gimple_eh_else_set_n_body): Likewise.
381 (gimple_eh_else_e_body_ptr): Likewise.
382 (gimple_eh_else_n_body_ptr): Likewise.
383 (gimple_eh_must_not_throw_set_fndecl): Likewise.
384 (gimple_eh_must_not_throw_fndecl): Likewise.
385 (gimple_eh_filter_set_failure): Likewise.
386 (gimple_eh_filter_set_types): Likewise.
387 (gimple_eh_filter_failure_ptr): Likewise.
388 (gimple_eh_filter_types_ptr): Likewise.
389 (gimple_eh_filter_types): Likewise.
390 (gimple_catch_set_handler): Likewise.
391 (gimple_catch_set_types): Likewise.
392 (gimple_catch_handler_ptr): Likewise.
393 (gimple_catch_types_ptr): Likewise.
394 (gimple_catch_types): Likewise.
395 (gimple_asm_string): Likewise.
396 (gimple_asm_set_label_op): Likewise.
397 (gimple_asm_label_op): Likewise.
398 (gimple_asm_set_clobber_op): Likewise.
399 (gimple_asm_clobber_op): Likewise.
400 (gimple_asm_set_output_op): Likewise.
401 (gimple_asm_output_op_ptr): Likewise.
402 (gimple_asm_output_op): Likewise.
403 (gimple_asm_set_input_op): Likewise.
404 (gimple_asm_input_op_ptr): Likewise.
405 (gimple_asm_input_op): Likewise.
406 (gimple_asm_nlabels): Likewise.
407 (gimple_asm_nclobbers): Likewise.
408 (gimple_asm_noutputs): Likewise.
409 (gimple_asm_ninputs): Likewise.
410 (gimple_bind_set_block): Likewise.
411 (gimple_bind_block): Likewise.
412 (gimple_bind_add_seq): Likewise.
413 (gimple_bind_add_stmt): Likewise.
414 (gimple_bind_set_body): Likewise.
415 (gimple_bind_body_ptr): Likewise.
416 (gimple_bind_append_vars): Likewise.
417 (gimple_bind_set_vars): Likewise.
418 (gimple_bind_vars): Likewise.
419 (gimple_call_clobber_set): Likewise.
420 (gimple_call_use_set): Likewise.
421 (gimple_call_set_internal_fn): Likewise.
422 (gimple_call_set_fntype): Likewise.
423 (gimple_call_fntype): Likewise.
424 (gimple_omp_return_lhs_ptr): Likewise.
425 (gimple_omp_return_lhs): Likewise.
426 (gimple_omp_return_set_lhs): Likewise.
427 (gimple_omp_taskreg_set_data_arg): Likewise.
428 (gimple_omp_taskreg_data_arg_ptr): Likewise.
429 (gimple_omp_taskreg_data_arg): Likewise.
430 (gimple_omp_taskreg_set_child_fn): Likewise.
431 (gimple_omp_taskreg_child_fn_ptr): Likewise.
432 (gimple_omp_taskreg_child_fn): Likewise.
433 (gimple_omp_taskreg_set_clauses): Likewise.
434 (gimple_omp_taskreg_clauses_ptr): Likewise.
435 (gimple_omp_taskreg_clauses): Likewise.
436 (gimple_vuse): Likewise.
437 (gimple_vdef): Likewise.
438 (gimple_vuse_ptr): Likewise.
439 (gimple_vdef_ptr): Likewise.
440 * tree-inline.c (copy_debug_stmt): Likewise.
441 * tree-phinodes.c (make_phi_node): Likewise.
443 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
444 (is_a_helper <gimple_statement_with_ops>::test): New.
445 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
446 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
448 * gimple-streamer-in.c (input_gimple_stmt): Port from union
449 access to use of as_a.
450 * gimple.c (gimple_build_asm_1): Likewise.
451 (gimple_build_try): Likewise. Also, return a specific subclass
452 rather than just gimple.
453 (gimple_build_resx): Port from union access to use of as_a.
454 (gimple_build_eh_dispatch): Likewise.
455 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
456 now that gengtype no longer provides a typed allocator function.
457 (gimple_copy): Likewise.
458 * gimple.h (gimple_build_try): Return a specific subclass rather
460 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
461 with subclass access by making use of new return type of
463 * tree-phinodes.c: (allocate_phi_node): Return a
464 "gimple_statement_phi *" rather than just a gimple.
465 (resize_phi_node): Likewise.
466 (make_phi_node): Replace union access with subclass access by
467 making use of new return type of allocate_phi_node.
468 (reserve_phi_args_for_new_edge): Replace union access with as_a.
469 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
471 (remove_phi_args): Update for change to remove_phi_arg_num.
473 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
474 code field to reflect inheritance, rather than embedding of
475 the base gimple type.
477 2013-11-19 Richard Biener <rguenther@suse.de>
479 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
480 and destructor and make fel_next a member function.
481 (fel_next): Transform into ...
482 (loop_iterator::next): ... this.
483 (fel_init): Transform into ...
484 (loop_iterator::loop_iterator): ... this.
485 (loop_iterator::~loop_iterator): New.
486 (FOR_EACH_LOOP): Remove loop-iterator argument.
487 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
488 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
489 graphite-clast-to-gimple.c, graphite-scop-detection.c,
490 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
491 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
492 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
493 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
494 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
495 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
496 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
497 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
498 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
499 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
500 FOR_EACH_LOOP_BREAK with break.
502 2013-11-19 Richard Biener <rguenther@suse.de>
504 PR tree-optimization/59164
505 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
507 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust
508 check whether we can create an epilogue loop to reflect the
509 cases where we create one.
511 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
513 * graphite-sese-to-poly.c: Include expr.h.
515 2013-11-19 Richard Biener <rguenther@suse.de>
518 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
519 loads into stmts that may clobber it.
521 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
523 * cgraphunit.c (symtab_terminator): New variable.
524 (queued_nodes): Renamed from first. Use symtab_terminator as
526 (analyze_functions): Adjust accordingly.
527 (cgraph_process_new_functions): Return void.
528 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
530 2013-11-19 Marek Polacek <polacek@redhat.com>
532 * opts.c (common_handle_option): Add -fsanitize=null option.
533 Turn off -fdelete-null-pointer-checks option when doing the
534 NULL pointer checking.
535 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
536 * tree-pass.h (make_pass_ubsan): Declare.
537 (make_pass_sanopt): Declare.
538 * timevar.def (TV_TREE_UBSAN): New timevar.
539 * passes.def: Add pass_sanopt and pass_ubsan.
540 * ubsan.h (ubsan_null_ckind): New enum.
541 (ubsan_mismatch_data): New struct.
542 (ubsan_expand_null_ifn): Declare.
543 (ubsan_create_data): Adjust declaration.
544 (ubsan_type_descriptor): Likewise.
545 * asan.c: Include "ubsan.h".
546 (pass_data_sanopt): New pass.
547 (execute_sanopt): New function.
548 (gate_sanopt): Likewise.
549 (make_pass_sanopt): Likewise.
550 (class pass_sanopt): New class.
551 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
552 gimple-iterator.h and cfgloop.h.
553 (PROB_VERY_UNLIKELY): Define.
554 (tree_type_map_hash): New function.
555 (ubsan_type_descriptor): Add new parameter.
556 Improve type name generation.
557 (ubsan_create_data): Add new parameter. Add pointer data into
559 (ubsan_expand_null_ifn): New function.
560 (instrument_member_call): Likewise.
561 (instrument_mem_ref): Likewise.
562 (instrument_null): Likewise.
563 (ubsan_pass): Likewise.
564 (gate_ubsan): Likewise.
565 (make_pass_ubsan): Likewise.
566 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
567 (class pass_ubsan): New class.
568 (pass_data_ubsan): New pass.
569 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
570 * internal-fn.c (expand_UBSAN_NULL): New function.
571 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
572 even when !flag_toplevel_reorder.
573 * internal-fn.def (UBSAN_NULL): New.
575 2013-11-19 Jan Hubicka <jh@suse.cz>
577 * cgraph.c (cgraph_create_indirect_edge): Use get_polymorphic_call_info.
578 * cgraph.h (cgraph_indirect_call_info): Add outer_type, maybe_in_construction
579 and maybe_derived_type.
580 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
581 (ipa_dummy_polymorphic_call_context): New global var.
582 (possible_polymorphic_call_targets): Add context paramter.
583 (dump_possible_polymorphic_call_targets): Likewise; update
585 (possible_polymorphic_call_target_p): Likewise.
586 (get_polymorphic_call_info): New function.
587 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
588 (add_type_duplicate): Remove forgotten debug output.
589 (method_class_type): Add sanity check.
590 (maybe_record_node): Add FINALP parameter.
591 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
592 by info by get_binfo_at_offset.
593 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET parameters;
594 pass them to record-binfo.
595 (polymorphic_call_target_d): Add context and FINAL.
596 (polymorphic_call_target_hasher::hash): Hash context.
597 (polymorphic_call_target_hasher::equal): Compare context.
598 (free_polymorphic_call_targets_hash):
599 (get_class_context): New function.
600 (contains_type_p): New function.
601 (get_polymorphic_call_info): New function.
602 (walk_bases): New function.
603 (possible_polymorphic_call_targets): Add context parameter; honnor it.
604 (dump_possible_polymorphic_call_targets): Dump context.
605 (possible_polymorphic_call_target_p): Add context.
606 (update_type_inheritance_graph): Update comment.s
607 (ipa_set_jf_known_type): Assert that compoentn type is known.
608 (ipa_note_param_call): Do not tamper with offsets.
609 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
611 (update_indirect_edges_after_inlining): Likewise.
612 (ipa_write_indirect_edge_info): Stream new fields.
613 (ipa_read_indirect_edge_info): Stream in new fields.
615 2013-11-19 Jan Hubicka <jh@suse.cz>
617 * tree-pretty-print.c (dump_generic_node): Print class type of
620 2013-11-19 Joey Ye <joey.ye@arm.com>
622 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
623 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
625 * config/arm/arm.c (arm_option_override): By default disable
626 -marm-pic-data-is-text-relative.
627 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
628 (arm_assemble_integer): Likewise.
629 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
630 New macro to initialize -marm-pic-data-is-text-relative.
632 2013-11-19 Bin Cheng <bin.cheng@arm.com>
634 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
635 (address_cost_data): New field.
636 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
637 Use ainc_costs for auto-increment rtx patterns.
640 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
642 * config/aarch64/aarch64.md: Remove v8type from all insns.
644 2013-11-19 Richard Biener <rguenther@suse.de>
646 PR tree-optimization/57517
647 * tree-predcom.c (combinable_refs_p): Verify the combination
648 is always executed when the refs are.
650 2013-11-19 Jeff Law <law@redhat.com>
652 * tree-ssa-threadupdate.c: Include ssa-iterators.h
653 (copy_phi_arg_into_existing_phi): New function.
654 (any_remaining_duplicated_blocks): Likewise.
655 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
656 blocks on a jump threading path.
658 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
659 thread through a joiner which has the latch edge.
661 2013-11-19 Jan Hubicka <jh@suse.cz>
663 * md.texi (setmem): Document new parameter.
664 * optabs.c (maybe_gen_insn): Support 9 operands.
665 * builtins.c (determine_block_size): Add probable_max_size;
667 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
669 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
670 emit_block_move, clear_storage_hints, set_storage_via_setmem):
672 * expr.h (emit_block_move_hints, clear_storage_hints,
673 set_storage_via_setmem): Update prototype.
674 * i386.md (setmem, movmem patterns): Add 9th operand.
675 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
676 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
677 argument; pass it to decide_alg.
679 2013-11-19 David Malcolm <dmalcolm@redhat.com>
681 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
682 (n_basic_blocks_for_fn): ...this.
684 (n_basic_blocks): Eliminate macro as work towards making uses of
687 * cfgloop.c (init_loops_structure): Update for renaming of
688 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
689 * graph.c (draw_cfg_nodes_no_loops): Likewise.
690 * ipa-utils.c (ipa_merge_profiles): Likewise.
691 * lto-streamer-in.c (make_new_block): Likewise.
692 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
693 (dump_function_to_file): Likewise.
695 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
696 macro with "n_basic_blocks_for_fn (cfun)".
697 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
698 (duplicate_computed_gotos): Likewise.
699 (reorder_basic_blocks): Likewise.
700 * bt-load.c (augment_live_range): Likewise.
701 * cfg.c (expunge_block): Likewise.
702 (compact_blocks): Likewise.
703 * cfganal.c (single_pred_before_succ_order): Likewise.
704 (compute_idf): Likewise.
705 (flow_dfs_compute_reverse_init): Likewise.
706 (pre_and_rev_post_order_compute): Likewise.
707 (pre_and_rev_post_order_compute_fn): Likewise.
708 (inverted_post_order_compute): Likewise.
709 (post_order_compute): Likewise.
710 (print_edge_list): Likewise.
711 (find_unreachable_blocks): Likewise.
712 (mark_dfs_back_edges): Likewise.
713 * cfgcleanup.c (try_optimize_cfg): Likewise.
714 (try_forward_edges): Likewise.
715 * cfghooks.c (dump_flow_info): Likewise.
716 * cfgloop.c (verify_loop_structure): Likewise.
717 (get_loop_body): Likewise.
718 (flow_loops_find): Likewise.
719 * cfgloopmanip.c (add_loop): Likewise.
720 (remove_path): Likewise.
721 (find_path): Likewise.
722 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
723 (rtl_verify_bb_layout): Likewise.
724 (entry_of_function): Likewise.
725 (rtl_create_basic_block): Likewise.
726 * coverage.c (coverage_compute_cfg_checksum): Likewise.
727 * cprop.c (one_cprop_pass): Likewise.
728 (is_too_expensive): Likewise.
729 * df-core.c (df_compute_cfg_image): Likewise.
730 (df_compact_blocks): Likewise.
731 (df_worklist_dataflow_doublequeue): Likewise.
732 * dominance.c (calculate_dominance_info): Likewise.
733 (calc_dfs_tree): Likewise.
734 (calc_dfs_tree_nonrec): Likewise.
735 (init_dom_info): Likewise.
736 * domwalk.c (cmp_bb_postorder): Likewise.
737 * function.c (thread_prologue_and_epilogue_insns): Likewise.
738 (generate_setjmp_warnings): Likewise.
739 * fwprop.c (build_single_def_use_links): Likewise.
740 * gcse.c (is_too_expensive): Likewise.
741 (one_code_hoisting_pass): Likewise.
742 (one_pre_gcse_pass): Likewise.
743 * graphite.c (graphite_initialize): Likewise.
744 * haifa-sched.c (haifa_sched_init): Likewise.
745 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
746 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
747 * ira-build.c (ira_build): Likewise.
748 * lcm.c (compute_nearerout): Likewise.
749 (compute_available): Likewise.
750 (compute_laterin): Likewise.
751 (compute_antinout_edge): Likewise.
752 * lra-lives.c (lra_create_live_ranges): Likewise.
753 * lra.c (has_nonexceptional_receiver): Likewise.
754 * mcf.c (create_fixup_graph): Likewise.
755 * profile.c (branch_prob): Likewise.
756 * reg-stack.c (convert_regs_2): Likewise.
757 * regrename.c (regrename_analyze): Likewise.
758 * reload1.c (has_nonexceptional_receiver): Likewise.
759 * reorg.c (dbr_schedule): Likewise.
760 * sched-deps.c (sched_deps_init): Likewise.
761 * sched-ebb.c (schedule_ebbs): Likewise.
762 * sched-rgn.c (extend_regions): Likewise.
763 (schedule_insns): Likewise.
764 (sched_rgn_init): Likewise.
765 (extend_rgns): Likewise.
766 (haifa_find_rgns): Likewise.
767 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
768 (sel_recompute_toporder): Likewise.
769 * sel-sched.c (run_selective_scheduling): Likewise.
770 * store-motion.c (one_store_motion_pass): Likewise.
771 (remove_reachable_equiv_notes): Likewise.
772 * tracer.c (tracer): Likewise.
773 (tail_duplicate): Likewise.
774 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
775 (dump_cfg_stats): Likewise.
776 (gimple_dump_cfg): Likewise.
777 (create_bb): Likewise.
778 (build_gimple_cfg): Likewise.
779 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
780 * tree-inline.c (optimize_inline_calls): Likewise.
781 (fold_marked_statements): Likewise.
782 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
783 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
784 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
785 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
786 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
787 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
788 * tree-ssa-pre.c (do_pre): Likewise.
789 (init_pre): Likewise.
790 (compute_avail): Likewise.
791 * tree-ssa-reassoc.c (init_reassoc): Likewise.
792 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
793 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
794 (init_worklist): Likewise.
795 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
796 * var-tracking.c (variable_tracking_main_1): Likewise.
797 (vt_find_locations): Likewise.
798 (vt_stack_adjustments): Likewise.
799 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
800 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
802 2013-11-18 Jan Hubicka <jh@suse.cz>
804 * profile.c (compute_branch_probabilities): Do not sanity check run_max.
806 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
808 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
810 * fold-const.c (fold_single_bit_test_into_sign_test)
811 (fold_binary_loc): Change GET_MODE_BITSIZE to
814 2013-11-18 Teresa Johnson <tejohnson@google.com>
816 * gcc/cfgrtl.c (cfg_layout_initialize): Assert if we
817 try to go into cfglayout after bb reordering.
818 * gcc/passes.def: Move compgotos before bb reordering
819 since it goes into cfglayout.
821 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
823 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
824 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
826 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
827 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
828 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
829 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
830 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
831 Remove all_lto_gen_passes.
832 * passes.c (pass_manager::dump_passes): Remove its use.
833 (pass_manager::register_pass): Likewise.
834 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
835 (pass_manager::pass_manager): Don't initialize or use it.
836 (write_lto): New static function.
837 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
838 instead of using all_lto_gen_passes.
839 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
840 pass_ipa_lto_finish_out): Delete.
841 * tree-pass.h (make_pass_ipa_lto_gimple_out,
842 make_pass_ipa_lto_finish_out): Don't declare.
844 2013-11-18 Jeff Law <law@redhat.com>
846 * tree-ssa-threadupdate.c (redirection_data): Record two
847 duplicated blocks instead of just one.
848 (local_info): Explain why we don't create a template for the
849 second duplicated block in a thread path.
850 (create_block_for_threading): Accept argument indicating array
851 index into redirection_data to store its result.
852 (lookup_redirection_data): Initialize both duplicate blocks.
853 (ssa_create_duplicates): If a jump threading path needs multiple
854 blocks duplicated, then duplicate them.
855 (ssa_fix_duplicate_block_edges): Corresponding changes.
856 (ssa_fixup_template_block, thread_single_edge): Likewise.
858 2013-11-18 Marek Polacek <polacek@redhat.com>
860 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
862 2013-11-18 Andrew Pinski <apinski@cavium.com>
863 Steve Ellcey <sellcey@mips.com>
866 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
867 type restriction from equality_operator on conditonal move.
868 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
869 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
871 2013-11-18 Jeff Law <law@redhat.com>
873 * tree-ssa-threadupdate.c: Fix file block comment.
874 Fix minor indention issue.
876 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
878 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
879 ix86_address_subreg_operand. Move subreg checks to
880 ix86_validate_address_register. Move address override check to
881 ix86_legitimate_address_p.
882 (ix86_validate_address_register): New function.
883 (ix86_legitimate_address_p): Call ix86_validate_address_register
884 to validate base and index registers. Add address override check
885 from ix86_decompose_address.
886 (ix86_decompose_address): Remove.
888 2013-11-18 Richard Biener <rguenther@suse.de>
890 PR tree-optimization/59125
891 PR tree-optimization/54570
892 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
893 is not complete do not treat component-references with offset zero
894 but different fields as equal.
895 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
896 (compute_object_sizes): Apply TLC. Propagate the constant
897 results into all uses and fold their stmts.
898 * passes.def (pass_all_optimizations): Move pass_object_sizes
899 after the first pass_forwprop and before pass_fre.
901 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
903 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
904 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
905 (tree_ctz): Remove cast to unsigned type.
906 * builtins.c (fold_builtin_memory_op): Likewise.
907 * dwarf2out.c (descr_info_loc): Likewise.
908 * godump.c (go_output_typedef): Likewise.
909 * omp-low.c (expand_omp_simd): Likewise.
910 * stor-layout.c (excess_unit_span): Likewise.
911 * tree-object-size.c (addr_object_size): Likewise.
912 * tree-sra.c (analyze_all_variable_accesses): Likewise.
913 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
914 (simplify_rotate): Likewise.
915 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
916 (handle_pointer_plus): Likewise.
917 * tree-switch-conversion.c (check_range): Likewise.
918 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
919 * tsan.c (instrument_builtin_call): Likewise.
920 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
921 * trans-mem.c (tm_log_add): Likewise.
922 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
923 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
924 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
925 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
927 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
929 * tree.h (host_integerp, tree_low_cst): Delete.
930 * tree.c (host_integerp, tree_low_cst): Delete.
932 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
934 * expr.h: Update comments to refer to tree_to_[su]hwi rather
936 * fold-const.c (fold_binary_loc): Likewise.
937 * expr.c (store_constructor): Use tree_to_uhwi rather than
939 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
940 * stmt.c (emit_case_dispatch_table): Likewise.
941 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
943 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
945 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
946 config/aarch64/aarch64.c, config/alpha/predicates.md,
947 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
948 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
949 config/mep/mep-pragma.c, config/mips/mips.c,
950 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
951 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
952 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
953 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
954 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
955 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
956 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
957 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
958 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
959 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
961 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
963 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
964 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
965 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
966 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
967 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
968 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
969 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
970 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
971 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
972 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
973 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
975 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
977 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
978 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
980 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
982 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
985 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
987 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
988 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
989 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
990 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
991 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
992 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
993 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
994 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
995 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
996 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
997 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
998 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
999 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
1000 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
1001 tree_fits_uhwi_p throughout.
1003 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1005 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
1006 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
1007 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
1008 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
1009 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
1010 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
1011 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
1012 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
1013 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
1014 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
1015 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
1016 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
1017 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1020 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1022 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
1023 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
1025 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
1027 * gcc/config/ia64/ia64.c (ia64_split_tmode_move): Mark load with
1028 `dead' flag if it kills address, not its post-increment.
1030 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
1032 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
1033 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
1034 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
1035 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
1036 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
1037 (gimple_call_with_bounds_p): New.
1038 (gimple_call_set_with_bounds): New.
1039 (gimple_call_num_nobnd_args): Remove.
1040 (gimple_call_nobnd_arg): Remove.
1041 * tree.h (CALL_WITH_BOUNDS_P): New.
1042 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
1044 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
1046 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
1047 (symtab_node_name): Rename to symtab_node::name.
1048 (cgraph_node_asm_name): Remove.
1049 (varpool_node_asm_name): Remove.
1050 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
1051 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
1052 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
1053 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
1054 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
1056 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1058 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
1059 * config/arm/arm.c (arm_cortex_a53_tune): New.
1060 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
1062 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1064 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
1065 (case ${target}): Add bdver4.
1066 * config/i386/bdver3.md: Add bdver4.
1067 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
1068 -march=native recognize bdver4 processors.
1069 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1070 bdver4 def_and_undef
1071 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
1072 (m_BDVER4): New definition.
1073 (m_AMD_MULTIPLE): Includes m_BDVER4.
1074 (processor_target_table): Add bdver4 entry.
1075 (static const char *const cpu_names): Add bdver4 entry.
1076 (software_prefetching_beneficial_p): Add bdver3.
1077 (ix86_option_override_internal): Add bdver4 instruction sets.
1078 (ix86_issue_rate): Add bdver4.
1079 (ix86_adjust_cost): Add bdver4.
1080 (ia32_multipass_dfa_lookahead): Add bdver4.
1081 (enum processor_model): Add M_AMDFAM15H_BDVER4.
1082 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
1083 (has_dispatch): Add bdver4.
1084 * config/i386/i386.h (TARGET_BDVER4): New definition.
1085 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
1086 (enum processor_type): Add PROCESSOR_BDVER4.
1087 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
1088 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
1089 * gcc/doc/extend.texi: Add details about bdver4.
1090 * gcc/doc/invoke.texi: Add details about bdver4. Add
1091 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
1093 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1095 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
1096 sdmode_stack_slot also in little-endian mode.
1098 2013-11-17 Jan Hubicka <jh@suse.cz>
1100 * doc/md.texi (setmem, movstr): Update documentation.
1101 * builtins.c (determine_block_size): New function.
1102 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
1103 (expand_builtin_memset_args): Use it and pass it to
1104 set_storage_via_setmem.
1105 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
1106 parameters; update call to expander.
1107 (emit_block_move_hints): Add min_size/max_size parameters.
1108 (clear_storage_hints): Likewise.
1109 (set_storage_via_setmem): Likewise.
1110 (clear_storage): Update.
1111 * expr.h (emit_block_move_hints, clear_storage_hints,
1112 set_storage_via_setmem): Update prototypes.
1113 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
1114 (ix86_expand_movmem, ix86_expand_setmem): Remove.
1115 (ix86_expand_movmem, ix86_expand_setmem): Remove.
1116 * i386.md (movmem, setmem): Pass parameters.
1118 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
1121 * config/i386/i386.c (ix86_address_subreg_operand): Do not
1122 reject non-integer subregs.
1123 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
1124 Move check for invalid x32 constant addresses ...
1125 (ix86_legitimate_address_p): ... here.
1127 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1129 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
1130 parameter and use it in REG_FRAME_RELATED_EXPR note.
1131 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
1133 (rs6000_emit_prologue): Likewise, but for little endian VSX
1134 stores, pass the source register of the store instead.
1136 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
1138 * gimple.h: Reorder prototypes to match .c declaration order, and
1139 remove protyotypes for functions not in gimple.c.
1140 (LABEL): Move to tree-into-ssa.c.
1141 * gimple.c: Remove unused prototypes.
1142 (get_base_address): Move to tree.c.
1143 * tree.c (get_base_address): Relocate from gimple.c.
1144 * builtins.h (validate_gimple_arglist): Add prototype.
1145 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
1146 * cfgexpand.h: New File.
1147 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
1148 * tree.h (build_addr): Move to tree-nested.h.
1149 * tree-nested.h: New File.
1150 (build_addr, lower_nested_functions, insert_field_into_struct): Add
1152 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
1153 * ipa-inline-analysis.c: Include cfgexpand.h.
1154 * cgraphunit.c: Include tree-nested.h.
1155 * omp-low.c: Likewise.
1156 * tree-parloops.c: Likewise.
1157 * gimple-low.h: Likewise.
1158 * tree-profile.h: Likewise.
1159 * expr.c: Include cfgexpand.h.
1160 * tree-affine.c: Likewise.
1161 * tree-ssa.c: Likewise.
1162 * tree-ssa-loop-im.c: Include trans-mem.h.
1163 * tree-ssa-tail-merge.c: Likewise.
1164 * value-prof.c: Include builtins.h and tree-nested.h.
1165 * tree-into-ssa.c (LABEL): Define here.
1167 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
1169 * config/arc/arc.c (arc_predicate_delay_insns): New function.
1170 (pass_data_arc_predicate_delay_insns): New pass_data instance.
1171 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
1172 (make_pass_arc_predicate_delay_insns): New function.
1173 (arc_init): Register pass_arc_predicate_delay_insns if
1174 flag_delayed_branch is active.
1176 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
1178 * config/arc/constraints.md (Rcq): Simplify register number test.
1180 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1182 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
1184 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
1186 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
1189 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1191 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
1192 * gimple-pretty-print.c (dump_omp_for): Add case for
1193 GF_OMP_FOR_KIND_CILKSIMD.
1194 * gimple.h (enum gf_mask): Restructure entries to add
1195 GF_OMP_FOR_KIND_CILKSIMD.
1196 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
1197 (gimplify_omp_for): Handle CILK_SIMD.
1198 (gimplify_expr): Add ccase for CILK_SIMD.
1199 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
1200 (build_outer_var_ref): Same.
1201 (check_omp_nesting_restrictions): Same.
1202 (lower_rec_input_clauses): Same.
1203 (lower_lastprivate_clauses): Same.
1204 (expand_omp_for): Same.
1205 (execute_expand_omp): Check flag_enable_cilkplus.
1206 (execute_lower_omp): Same.
1207 (diagnose_sb_0): Handle CILK_SIMD.
1208 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
1209 (setjmp_or_longjmp_p): New.
1210 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
1211 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
1212 * tree.def: Add tree code for CILK_SIMD.
1214 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1216 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
1218 (altivec_vperm_<mode>): Revert earlier little endian change.
1219 (*altivec_vperm_<mode>_internal): Remove.
1220 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
1221 (*altivec_vperm_<mode>_uns_internal): Remove.
1222 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
1224 2013-11-15 Jeff Law <law@redhat.com>
1226 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
1227 has_abnormal_or_outgoing_edge. Check for EH edges as well.
1228 * gimple-ssa-isolate-paths.c
1229 (find_implicit_erroneous_behaviour): Corresponding changes.
1230 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
1231 (find_explicit_erroneous_behaviour): Likewise.
1233 2013-11-15 Jeff Law <law@redhat.com>
1235 * ifcvt.c (find_cond_trap): Properly handle case where
1238 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
1240 * configure: Regenerate.
1242 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
1244 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
1245 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
1246 where it is incorrect or missing.
1248 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1250 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
1252 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
1253 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
1255 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
1256 pair with a TREE_CODE test and TREE_INT_CST_LOW.
1257 * tree-vect-generic.c (expand_vector_divmod): Likewise.
1259 2013-11-15 Richard Biener <rguenther@suse.de>
1261 PR tree-optimization/50262
1262 * tree-ssa-alias.h (struct pt_solution): Split
1263 vars_contains_global into vars_contains_nonlocal,
1264 vars_contains_escaped and vars_contains_escaped_heap.
1265 * tree-ssa-structalias.c (label_visit): Expand comment.
1266 (handle_lhs_call): Adjust comment.
1267 (set_uids_in_ptset): Set the new flags appropriately.
1268 (pt_solution_set): Adjust.
1269 (pt_solution_set_var): Likewise.
1270 (pt_solution_ior_into): Likewise.
1271 (pt_solution_includes_global): Likewise.
1272 (pt_solutions_intersect_1): Optimize escaped handling.
1273 (compute_points_to_sets): Remove heap variable globalization.
1274 (ipa_escaped_pt): Adjust initializer.
1275 (pass_data_ipa_pta): Do not run TODO_update_ssa.
1276 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
1277 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
1279 2013-11-15 Richard Biener <rguenther@suse.de>
1281 * tree-loop-distribution.c (tree_loop_distribution): Make sure
1282 to distribute all stores.
1284 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1286 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
1288 2013-11-15 Joseph Myers <joseph@codesourcery.com>
1290 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
1291 * configure.ac: Determine target_header_dir earlier.
1292 (--with-glibc-version): New configure option.
1293 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
1294 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
1295 * configure: Regenerate.
1296 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
1297 native toolchains for default.
1298 (--with-glibc-version): Document.
1300 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
1302 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
1304 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
1306 * lto-streamer-in.c (input function): Call cgraph_create_node if
1307 cgraph_get_node failed.
1309 2013-11-14 Olivier Hainque <hainque@adacore.com>
1311 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
1312 defer allocation of DECL_IGNORED_P variables at toplevel unless really
1313 small. Factorize size threshold computation from the existing one.
1314 (expand_used_vars): Refine comment.
1316 2013-11-14 Cong Hou <congh@google.com>
1318 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
1319 address field as it can be obtained from dr. Rename the struct.
1320 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
1321 steps of data references during sort.
1322 (vect_prune_runtime_alias_test_list): Adjust with the change to
1323 struct dr_with_seg_len.
1324 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1325 Adjust with the change to struct dr_with_seg_len.
1327 2013-11-14 Jeff Law <law@redhat.com>
1330 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
1331 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
1332 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
1333 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
1334 edges, then ignore it. If the statement exhibiting erroneous
1335 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
1336 then we can not optimize.
1337 (find_explicit_erroneous_behaviour): Likewise.
1339 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1341 * gimplify-me.h: New file. Add prototypes.
1342 * gimplify.h: Don't include gimple.h.
1343 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
1344 Relocate from gimple.h.
1345 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
1346 is_gimple_sizepos): Move to gimplify.h.
1347 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
1348 (enum gsi_iterator_update): Move to gimple-iterator.h.
1349 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
1350 * gimplify-me.c: New File.
1351 (force_gimple_operand_1, force_gimple_operand,
1352 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
1353 gimple_regimplify_operands): Relocate from gimplify.c.
1354 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
1355 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
1356 gimple_regimplify_operands): Move to gimplify-me.c.
1357 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
1359 * Makefile.in (OBJS): Add gimplify-me.o
1360 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
1362 * cfgloopmanip.c: Likewise.
1363 * cgraphunit.c: Likewise.
1364 * cilk-common.c: Likewise.
1365 * fold-const.c: Likewise.
1366 * function.c: Likewise.
1367 * gimple-expr.c: Likewise.
1368 * gimple-fold.c: Likewise.
1369 * gimple-ssa-strength-reduction.c: Likewise.
1370 * gimple.c: Likewise.
1371 * graphite-clast-to-gimple.c: Likewise.
1372 * graphite-sese-to-poly.c: Likewise.
1373 * ipa-prop.c: Likewise.
1374 * ipa-split.c: Likewise.
1376 * langhooks.c: Likewise.
1377 * omp-low.c: Likewise.
1379 * stor-layout.c: Likewise.
1380 * targhooks.c: Likewise.
1381 * trans-mem.c: Likewise.
1382 * tree-affine.c: Likewise.
1383 * tree-cfg.c: Likewise.
1384 * tree-cfgcleanup.c: Likewise.
1385 * tree-complex.c: Likewise.
1386 * tree-if-conv.c: Likewise.
1387 * tree-inline.c: Likewise.
1388 * tree-loop-distribution.c: Likewise.
1389 * tree-nested.c: Likewise.
1390 * tree-parloops.c: Likewise.
1391 * tree-predcom.c: Likewise.
1392 * tree-profile.c: Likewise.
1393 * tree-scalar-evolution.c: Likewise.
1394 * tree-sra.c: Likewise.
1395 * tree-ssa-address.c: Likewise.
1396 * tree-ssa-ccp.c: Likewise.
1397 * tree-ssa-dce.c: Likewise.
1398 * tree-ssa-forwprop.c: Likewise.
1399 * tree-ssa-ifcombine.c: Likewise.
1400 * tree-ssa-loop-im.c: Likewise.
1401 * tree-ssa-loop-ivopts.c: Likewise.
1402 * tree-ssa-loop-manip.c: Likewise.
1403 * tree-ssa-loop-niter.c: Likewise.
1404 * tree-ssa-loop-prefetch.c: Likewise.
1405 * tree-ssa-loop-unswitch.c: Likewise.
1406 * tree-ssa-math-opts.c: Likewise.
1407 * tree-ssa-phiopt.c: Likewise.
1408 * tree-ssa-phiprop.c: Likewise.
1409 * tree-ssa-pre.c: Likewise.
1410 * tree-ssa-propagate.c: Likewise.
1411 * tree-ssa-reassoc.c: Likewise.
1412 * tree-ssa-sccvn.c: Likewise.
1413 * tree-ssa-strlen.c: Likewise.
1414 * tree-ssa.c: Likewise.
1415 * tree-switch-conversion.c: Likewise.
1416 * tree-tailcall.c: Likewise.
1417 * tree-vect-data-refs.c: Likewise.
1418 * tree-vect-generic.c: Likewise.
1419 * tree-vect-loop-manip.c: Likewise.
1420 * tree-vect-loop.c: Likewise.
1421 * tree-vect-patterns.c: Likewise.
1422 * tree-vect-stmts.c: Likewise.
1425 * value-prof.c: Likewise.
1426 * config/aarch64/aarch64.c: Likewise.
1427 * config/alpha/alpha.c: Likewise.
1428 * config/darwin.c: Likewise.
1429 * config/i386/i386.c: Likewise.
1430 * config/ia64/ia64.c: Likewise.
1431 * config/mep/mep.c: Likewise.
1432 * config/mips/mips.c: Likewise.
1433 * config/rs6000/rs6000.c: Likewise.
1434 * config/s390/s390.c: Likewise.
1435 * config/sh/sh.c: Likewise.
1436 * config/sparc/sparc.c: Likewise.
1437 * config/spu/spu.c: Likewise.
1438 * config/stormy16/stormy16.c: Likewise.
1439 * config/tilegx/tilegx.c: Likewise.
1440 * config/tilepro/tilepro.c: Likewise.
1441 * config/xtensa/xtensa.c: Likewise.
1443 2013-11-14 Diego Novillo <dnovillo@google.com>
1445 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
1447 2013-11-14 Diego Novillo <dnovillo@google.com>
1449 * tree.h: Include fold-const.h.
1450 (aggregate_value_p): Moved to function.h.
1451 (alloca_call_p): Moved to calls.h.
1452 (allocate_struct_function): Moved to function.h.
1453 (apply_tm_attr): Moved to attribs.h.
1454 (array_at_struct_end_p): Moved to expr.h.
1455 (array_ref_element_size): Moved to tree-dfa.h.
1456 (array_ref_low_bound): Moved to tree-dfa.h.
1457 (array_ref_up_bound): Moved to tree.h.
1458 (assemble_alias): Moved to cgraph.h.
1459 (bit_from_pos): Moved to stor-layout.h.
1460 (build_addr): Moved to tree-nested.h.
1461 (build_duplicate_type): Moved to tree-inline.h.
1462 (build_fold_addr_expr): Moved to fold-const.h.
1463 (build_fold_addr_expr_with_type): Moved to fold-const.h.
1464 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
1465 (build_fold_indirect_ref): Moved to fold-const.h.
1466 (build_fold_indirect_ref_loc): Moved to fold-const.h.
1467 (build_personality_function): Moved to tree.h.
1468 (build_range_check): Moved to fold-const.h.
1469 (build_simple_mem_ref): Moved to fold-const.h.
1470 (build_simple_mem_ref_loc): Moved to fold-const.h.
1471 (build_tm_abort_call): Moved to trans-mem.h.
1472 (byte_from_pos): Moved to stor-layout.h.
1473 (call_expr_flags): Moved to calls.h.
1474 (can_move_by_pieces): Moved to expr.h.
1475 (categorize_ctor_elements): Moved to expr.h.
1476 (change_decl_assembler_name): Moved to gcc-symtab.h.
1477 (combine_comparisons): Moved to fold-const.h.
1478 (complete_ctor_at_level_p): Moved to tree.h.
1479 (component_ref_field_offset): Moved to tree-dfa.h.
1480 (compute_builtin_object_size): Moved to tree-object-size.h.
1481 (compute_record_mode): Moved to stor-layout.h.
1482 (constant_boolean_node): Moved to fold-const.h.
1483 (constructor_static_from_elts_p): Moved to varasm.h.
1484 (cxx11_attribute_p): Moved to attribs.h.
1485 (debug_body): Moved to print-tree.h.
1486 (debug_find_tree): Moved to tree-inline.h.
1487 (debug_fold_checksum): Moved to fold-const.h.
1488 (debug_head): Moved to print-tree.h.
1489 (debug_head): Moved to print-tree.h.
1490 (debug_raw): Moved to print-tree.h.
1491 (debug_tree): Moved to print-tree.h.
1492 (debug_vec_tree): Moved to print-tree.h.
1493 (debug_verbose): Moved to print-tree.h.
1494 (debug_verbose): Moved to print-tree.h.
1495 (decl_attributes): Moved to attribs.h.
1496 (decl_binds_to_current_def_p): Moved to varasm.h.
1497 (decl_default_tls_model): Moved to varasm.h.
1498 (decl_replaceable_p): Moved to varasm.h.
1499 (div_if_zero_remainder): Moved to fold-const.h.
1500 (double_int mem_ref_offset): Moved to fold-const.h.
1501 (dump_addr): Moved to print-tree.h.
1502 (element_precision): Moved to machmode.h.
1503 (expand_dummy_function_end): Moved to function.h.
1504 (expand_function_end): Moved to function.h.
1505 (expand_function_start): Moved to function.h.
1506 (expand_label): Moved to stmt.h.
1507 (expr_first): Moved to tree-iterator.h.
1508 (expr_last): Moved to tree-iterator.h.
1509 (finalize_size_functions): Moved to stor-layout.h.
1510 (finish_builtin_struct): Moved to stor-layout.h.
1511 (finish_record_layout): Moved to stor-layout.h.
1512 (fixup_signed_type): Moved to stor-layout.h.
1513 (fixup_unsigned_type): Moved to stor-layout.h.
1514 (flags_from_decl_or_type): Moved to calls.h.
1515 (fold): Moved to fold-const.h.
1516 (fold_abs_const): Moved to fold-const.h.
1517 (fold_binary): Moved to fold-const.h.
1518 (fold_binary_loc): Moved to fold-const.h.
1519 (fold_binary_to_constant): Moved to fold-const.h.
1520 (fold_build1): Moved to fold-const.h.
1521 (fold_build1_initializer_loc): Moved to fold-const.h.
1522 (fold_build1_loc): Moved to fold-const.h.
1523 (fold_build1_stat_loc): Moved to fold-const.h.
1524 (fold_build2): Moved to fold-const.h.
1525 (fold_build2_initializer_loc): Moved to fold-const.h.
1526 (fold_build2_loc): Moved to fold-const.h.
1527 (fold_build2_stat_loc): Moved to fold-const.h.
1528 (fold_build3): Moved to fold-const.h.
1529 (fold_build3_loc): Moved to fold-const.h.
1530 (fold_build3_stat_loc): Moved to fold-const.h.
1531 (fold_build_call_array): Moved to fold-const.h.
1532 (fold_build_call_array_initializer): Moved to fold-const.h.
1533 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
1534 (fold_build_call_array_loc): Moved to fold-const.h.
1535 (fold_build_cleanup_point_expr): Moved to fold-const.h.
1536 (fold_convert): Moved to fold-const.h.
1537 (fold_convert_loc): Moved to fold-const.h.
1538 (fold_convertible_p): Moved to fold-const.h.
1539 (fold_defer_overflow_warnings): Moved to fold-const.h.
1540 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
1541 (fold_fma): Moved to fold-const.h.
1542 (fold_ignored_result): Moved to fold-const.h.
1543 (fold_indirect_ref): Moved to fold-const.h.
1544 (fold_indirect_ref_1): Moved to fold-const.h.
1545 (fold_indirect_ref_loc): Moved to fold-const.h.
1546 (fold_read_from_constant_string): Moved to fold-const.h.
1547 (fold_real_zero_addition_p): Moved to fold-const.h.
1548 (fold_single_bit_test): Moved to fold-const.h.
1549 (fold_strip_sign_ops): Moved to fold-const.h.
1550 (fold_ternary): Moved to fold-const.h.
1551 (fold_ternary_loc): Moved to fold-const.h.
1552 (fold_unary): Moved to tree-data-ref.h.
1553 (fold_unary_ignore_overflow): Moved to fold-const.h.
1554 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
1555 (fold_unary_loc): Moved to fold-const.h.
1556 (fold_unary_to_constant): Moved to fold-const.h.
1557 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
1558 (fold_undefer_overflow_warnings): Moved to fold-const.h.
1559 (folding_initializer): Moved to fold-const.h.
1560 (free_temp_slots): Moved to function.h.
1561 (generate_setjmp_warnings): Moved to function.h.
1562 (get_attribute_name): Moved to attribs.h.
1563 (get_identifier): Moved to stringpool.h.
1564 (get_identifier_with_length): Moved to stringpool.h.
1565 (get_inner_reference): Moved to tree.h.
1566 (gimple_alloca_call_p): Moved to calls.h.
1567 (gimplify_parameters): Moved to function.h.
1568 (highest_pow2_factor): Moved to expr.h.
1569 (indent_to): Moved to print-tree.h.
1570 (init_attributes): Moved to attribs.h.
1571 (init_dummy_function_start): Moved to function.h.
1572 (init_function_start): Moved to function.h.
1573 (init_inline_once): Moved to tree-inline.h.
1574 (init_object_sizes): Moved to tree-object-size.h.
1575 (init_temp_slots): Moved to function.h.
1576 (init_tree_optimization_optabs): Moved to optabs.h.
1577 (initialize_sizetypes): Moved to stor-layout.h.
1578 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
1579 (initializer_constant_valid_p): Moved to varasm.h.
1580 (int_const_binop): Moved to fold-const.h.
1581 (internal_reference_types): Moved to stor-layout.h.
1582 (invert_tree_comparison): Moved to fold-const.h.
1583 (invert_truthvalue): Moved to fold-const.h.
1584 (invert_truthvalue_loc): Moved to fold-const.h.
1585 (is_tm_ending_fndecl): Moved to trans-mem.h.
1586 (is_tm_may_cancel_outer): Moved to trans-mem.h.
1587 (is_tm_pure): Moved to trans-mem.h.
1588 (is_tm_safe): Moved to trans-mem.h.
1589 (layout_decl): Moved to stor-layout.h.
1590 (layout_type): Moved to stor-layout.h.
1591 (lookup_attribute_spec): Moved to attribs.h.
1592 (make_accum_type): Moved to stor-layout.h.
1593 (make_decl_one_only): Moved to varasm.h.
1594 (make_decl_rtl): Moved to tree.h.
1595 (make_decl_rtl_for_debug): Moved to varasm.h.
1596 (make_fract_type): Moved to stor-layout.h.
1597 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
1598 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
1599 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
1600 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
1601 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
1602 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
1603 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
1604 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
1605 (make_range): Moved to fold-const.h.
1606 (make_range_step): Moved to fold-const.h.
1607 (make_sat_signed_accum_type): Moved to stor-layout.h.
1608 (make_sat_signed_fract_type): Moved to stor-layout.h.
1609 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
1610 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
1611 (make_signed_accum_type): Moved to stor-layout.h.
1612 (make_signed_fract_type): Moved to stor-layout.h.
1613 (make_signed_type): Moved to stor-layout.h.
1614 (make_unsigned_accum_type): Moved to stor-layout.h.
1615 (make_unsigned_fract_type): Moved to stor-layout.h.
1616 (make_unsigned_type): Moved to stor-layout.h.
1617 (mark_decl_referenced): Moved to varasm.h.
1618 (mark_referenced): Moved to varasm.h.
1619 (may_negate_without_overflow_p): Moved to fold-const.h.
1620 (maybe_get_identifier): Moved to stringpool.h.
1621 (merge_ranges): Moved to fold-const.h.
1622 (merge_weak): Moved to varasm.h.
1623 (mode_for_size_tree): Moved to stor-layout.h.
1624 (multiple_of_p): Moved to fold-const.h.
1625 (must_pass_in_stack_var_size): Moved to calls.h.
1626 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
1627 (native_encode_expr): Moved to fold-const.h.
1628 (native_interpret_expr): Moved to fold-const.h.
1629 (non_lvalue): Moved to fold-const.h.
1630 (non_lvalue_loc): Moved to fold-const.h.
1631 (normalize_offset): Moved to stor-layout.h.
1632 (normalize_rli): Moved to stor-layout.h.
1633 (notice_global_symbol): Moved to varasm.h.
1634 (omit_one_operand): Moved to fold-const.h.
1635 (omit_one_operand_loc): Moved to fold-const.h.
1636 (omit_two_operands): Moved to fold-const.h.
1637 (omit_two_operands_loc): Moved to fold-const.h.
1638 (operand_equal_p): Moved to tree-data-ref.h.
1639 (parse_input_constraint): Moved to stmt.h.
1640 (parse_output_constraint): Moved to stmt.h.
1641 (place_field): Moved to stor-layout.h.
1642 (pop_function_context): Moved to function.h.
1643 (pop_temp_slots): Moved to function.h.
1644 (pos_from_bit): Moved to stor-layout.h.
1645 (preserve_temp_slots): Moved to function.h.
1646 (print_node): Moved to print-tree.h.
1647 (print_node_brief): Moved to print-tree.h.
1648 (print_rtl): Moved to rtl.h.
1649 (process_pending_assemble_externals): Moved to varasm.h.
1650 (ptr_difference_const): Moved to fold-const.h.
1651 (push_function_context): Moved to function.h.
1652 (push_struct_function): Moved to function.h.
1653 (push_temp_slots): Moved to function.h.
1654 (record_tm_replacement): Moved to trans-mem.h.
1655 (relayout_decl): Moved to stor-layout.h.
1656 (resolve_asm_operand_names): Moved to stmt.h.
1657 (resolve_unique_section): Moved to varasm.h.
1658 (rli_size_so_far): Moved to stor-layout.h.
1659 (rli_size_unit_so_far): Moved to stor-layout.h.
1660 (round_down): Moved to fold-const.h.
1661 (round_down_loc): Moved to fold-const.h.
1662 (round_up): Moved to fold-const.h.
1663 (round_up_loc): Moved to fold-const.h.
1664 (set_decl_incoming_rtl): Moved to emit-rtl.h.
1665 (set_decl_rtl): Moved to tree.h.
1666 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
1667 (set_user_assembler_name): Moved to varasm.h.
1668 (setjmp_call_p): Moved to calls.h.
1669 (size_binop): Moved to fold-const.h.
1670 (size_binop_loc): Moved to fold-const.h.
1671 (size_diffop): Moved to fold-const.h.
1672 (size_diffop_loc): Moved to fold-const.h.
1673 (size_int_kind): Moved to fold-const.h.
1674 (stack_protect_epilogue): Moved to function.h.
1675 (start_record_layout): Moved to stor-layout.h.
1676 (supports_one_only): Moved to varasm.h.
1677 (swap_tree_comparison): Moved to fold-const.h.
1678 (tm_malloc_replacement): Moved to trans-mem.h.
1679 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
1680 (tree build_invariant_address): Moved to fold-const.h.
1681 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
1682 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
1683 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
1684 (tree_expr_nonnegative_p): Moved to fold-const.h.
1685 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
1686 (tree_output_constant_def): Moved to varasm.h.
1687 (tree_overlaps_hard_reg_set): Moved to stmt.h.
1688 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
1689 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
1690 (tree_swap_operands_p): Moved to fold-const.h.
1691 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
1692 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
1693 (update_alignment_for_field): Moved to stor-layout.h.
1694 (use_register_for_decl): Moved to function.h.
1695 (variable_size): Moved to rtl.h.
1696 (vector_type_mode): Moved to stor-layout.h.
1697 * cgraph.h: Corresponding changes.
1698 * emit-rtl.h: Corresponding changes.
1699 * expr.h: Corresponding changes.
1700 * function.h: Corresponding changes.
1701 * optabs.h: Corresponding changes.
1702 * trans-mem.h: Corresponding changes.
1703 Protect against multiple inclusion.
1704 * tree-inline.h: Corresponding changes.
1705 * tree-iterator.h: Corresponding changes.
1706 * tree-dfa.h: Include expr.h.
1707 * tree-ssanames.h: Include stringpool.h.
1708 * attribs.h: New file.
1709 * calls.h: New file.
1710 * fold-const.h: New file.
1711 * gcc-symtab.h: New file.
1712 * print-rtl.h: New file.
1713 * print-tree.h: New file.
1715 * stor-layout.h: New file.
1716 * strinpool.h: New file.
1717 * tree-nested.h: New file
1718 * tree-object-size.h: New file.
1719 * varasm.h: New file.
1721 2013-11-14 Diego Novillo <dnovillo@google.com>
1723 * alias.c: Include varasm.h.
1725 * asan.c: Include calls.h.
1726 Include stor-layout.h.
1728 * attribs.c: Include stringpool.h.
1730 Include stor-layout.h.
1731 * builtins.c: Include stringpool.h.
1732 Include stor-layout.h.
1735 Include tree-object-size.h.
1736 * calls.c: Include stor-layout.h.
1738 Include stringpool.h.
1740 * cfgexpand.c: Include stringpool.h.
1742 Include stor-layout.h.
1744 Include print-tree.h.
1745 * cgraph.c: Include varasm.h.
1747 Include print-tree.h.
1748 * cgraphclones.c: Include stringpool.h.
1751 Move inclusion of rtl.h earlier in the file.
1752 * cgraphunit.c: Include varasm.h.
1753 Include stor-layout.h.
1754 Include stringpool.h.
1755 * cilk-common.c: Include stringpool.h.
1756 Include stor-layout.h.
1757 * combine.c: Include stor-layout.h.
1758 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
1759 Include stringpool.h.
1761 * config/aarch64/aarch64.c: Include stringpool.h.
1762 Include stor-layout.h.
1765 * config/alpha/alpha.c: Include stor-layout.h.
1768 * config/arc/arc.c: Include varasm.h.
1769 Include stor-layout.h.
1770 Include stringpool.h.
1772 * config/arm/arm.c: Include stringpool.h.
1773 Include stor-layout.h.
1776 * config/avr/avr-c.c: Include stor-layout.h.
1777 * config/avr/avr-log.c: Include print-tree.h.
1778 * config/avr/avr.c: Include print-tree.h.
1780 Include stor-layout.h.
1781 Include stringpool.h.
1782 * config/bfin/bfin.c: Include varasm.h.
1784 * config/c6x/c6x.c: Include stor-layout.h.
1787 Include stringpool.h.
1788 * config/cr16/cr16.c: Include stor-layout.h.
1790 * config/cris/cris.c: Include varasm.h.
1791 Include stor-layout.h.
1794 * config/darwin.c: Include stringpool.h.
1796 Include stor-layout.h.
1797 * config/epiphany/epiphany.c: Include stor-layout.h.
1800 Include stringpool.h.
1801 * config/fr30/fr30.c: Include stor-layout.h.
1803 * config/frv/frv.c: Include varasm.h.
1804 Include stor-layout.h.
1805 Include stringpool.h.
1806 * config/h8300/h8300.c: Include stor-layout.h.
1809 Include stringpool.h.
1810 * config/i386/i386.c: Include stringpool.h.
1813 Include stor-layout.h.
1815 * config/i386/winnt-cxx.c: Include stringpool.h.
1817 * config/i386/winnt.c: Include stringpool.h.
1819 * config/ia64/ia64-c.c: Include stringpool.h.
1820 * config/ia64/ia64.c: Include stringpool.h.
1821 Include stor-layout.h.
1824 * config/iq2000/iq2000.c: Include stor-layout.h.
1827 * config/lm32/lm32.c: Include calls.h.
1828 * config/m32c/m32c.c: Include stor-layout.h.
1831 * config/m32r/m32r.c: Include stor-layout.h.
1833 Include stringpool.h.
1835 * config/m68k/m68k.c: Include calls.h.
1836 Include stor-layout.h.
1838 * config/mcore/mcore.c: Include stor-layout.h.
1840 Include stringpool.h.
1842 * config/mep/mep.c: Include varasm.h.
1844 Include stringpool.h.
1845 Include stor-layout.h.
1846 * config/microblaze/microblaze.c: Include varasm.h.
1847 Include stor-layout.h.
1849 * config/mips/mips.c: Include varasm.h.
1850 Include stringpool.h.
1851 Include stor-layout.h.
1853 * config/mmix/mmix.c: Include varasm.h.
1854 Include stor-layout.h.
1856 * config/mn10300/mn10300.c: Include stor-layout.h.
1859 * config/moxie/moxie.c: Include stor-layout.h.
1862 * config/msp430/msp430.c: Include stor-layout.h.
1864 * config/nds32/nds32.c: Include stor-layout.h.
1867 * config/pa/pa.c: Include stor-layout.h.
1868 Include stringpool.h.
1871 * config/pdp11/pdp11.c: Include stor-layout.h.
1874 * config/picochip/picochip.c: Include calls.h.
1875 Include stor-layout.h.
1876 Include stringpool.h.
1878 * config/rl78/rl78.c: Include varasm.h.
1879 Include stor-layout.h.
1881 * config/rs6000/rs6000-c.c: Include stor-layout.h.
1882 Include stringpool.h.
1883 * config/rs6000/rs6000.c: Include stringpool.h.
1884 Include stor-layout.h.
1886 Include print-tree.h.
1888 * config/rx/rx.c: Include varasm.h.
1889 Include stor-layout.h.
1891 * config/s390/s390.c: Include print-tree.h.
1892 Include stringpool.h.
1893 Include stor-layout.h.
1896 * config/score/score.c: Include stringpool.h.
1899 Include stor-layout.h.
1900 * config/sh/sh-c.c: Include stringpool.h.
1901 Include attribs.h.h.
1902 * config/sh/sh.c: Include stringpool.h.
1903 Include stor-layout.h.
1906 * config/sol2-c.c: Include stringpool.h.
1908 * config/sol2-cxx.c: Include stringpool.h.
1909 * config/sol2.c: Include stringpool.h.
1911 * config/sparc/sparc.c: Include stringpool.h.
1912 Include stor-layout.h.
1915 * config/spu/spu-c.c: Include stringpool.h.
1916 * config/spu/spu.c: Include stringpool.h.
1917 Include stor-layout.h.
1920 * config/stormy16/stormy16.c: Include stringpool.h.
1921 Include stor-layout.h.
1924 * config/tilegx/tilegx.c: Include stringpool.h.
1925 Include stor-layout.h.
1928 * config/tilepro/tilepro.c: Include stringpool.h.
1929 Include stor-layout.h.
1932 * config/v850/v850-c.c: Include stringpool.h.
1934 * config/v850/v850.c: Include stringpool.h.
1935 Include stor-layout.h.
1938 * config/vax/vax.c: Include calls.h.
1940 * config/vms/vms.c: Include stringpool.h.
1941 * config/vxworks.c: Include stringpool.h.
1942 * config/xtensa/xtensa.c: Include stringpool.h.
1943 Include stor-layout.h.
1946 * convert.c: Include stor-layout.h.
1947 * coverage.c: Include stringpool.h.
1948 Include stor-layout.h.
1949 * dbxout.c: Include varasm.h.
1950 Include stor-layout.h.
1951 * dojump.c: Include stor-layout.h.
1952 * dse.c: Include stor-layout.h.
1953 * dwarf2asm.c: Include stringpool.h.
1955 * dwarf2cfi.c: Include stor-layout.h.
1956 * dwarf2out.c: Include rtl.h.
1957 Include stringpool.h.
1958 Include stor-layout.h.
1962 Move inclusion of rtl.h earlier in the file.
1963 * emit-rtl.c: Include varasm.h.
1964 * except.c: Include stringpool.h.
1965 Include stor-layout.h.
1966 * explow.c: Include stor-layout.h.
1967 * expmed.c: Include stor-layout.h.
1968 * expr.c: Include stringpool.h.
1969 Include stor-layout.h.
1972 * final.c: Include varasm.h.
1973 * fold-const.c: Include stor-layout.h.
1975 Include tree-iterator.h.
1976 * function.c: Include stor-layout.h.
1978 Include stringpool.h.
1979 * genattrtab.c (write_header): Emit includes for varasm.h,
1980 stor-layout.h and calls.h.
1981 * genautomata.c (main): Likewise.
1982 * genemit.c: Likewise.
1983 * genopinit.c: Likewise.
1984 * genoutput.c (output_prologue): Likewise.
1985 * genpeep.c: Likewise.
1986 * genpreds.c (write_insn_preds_c): Likewise.
1987 * gengtype.c (open_base_files): Add stringpool.h.
1988 * gimple-expr.c: Include stringpool.h.
1989 Include stor-layout.h.
1990 * gimple-fold.c: Include stringpool.h.
1993 Include stor-layout.h.
1994 * gimple-low.c: Include tree-nested.h.
1996 * gimple-pretty-print.c: Include stringpool.h.
1997 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
1999 * gimple-walk.c: Include stmt.h.
2000 * gimple.c: Include calls.h.
2002 Include stor-layout.h.
2003 * gimplify.c: Include stringpool.h.
2006 Include stor-layout.h.
2008 Include print-tree.h.
2010 * gimplify-me.c: Include stmt.h
2011 Include stor-layout.h
2012 * internal-fn.c: Include stor-layout.h.
2013 * ipa-devirt.c: Include print-tree.h.
2015 * ipa-inline-analysis.c: Include stor-layout.h.
2016 Include stringpool.h.
2017 Include print-tree.h.
2018 * ipa-inline.c: Include trans-mem.h.
2020 * ipa-prop.c: Include expr.h.
2021 Include stor-layout.h.
2022 Include print-tree.h.
2023 * ipa-pure-const.c: Include print-tree.h.
2025 * ipa-reference.c: Include calls.h.
2026 * ipa-split.c: Include stringpool.h.
2029 * ipa.c: Include calls.h.
2030 Include stringpool.h.
2031 * langhooks.c: Include stringpool.h.
2033 * lto-cgraph.c: Include stringpool.h.
2034 * lto-streamer-in.c: Include stringpool.h.
2035 * lto-streamer-out.c: Include stor-layout.h.
2036 Include stringpool.h.
2037 * omp-low.c: Include stringpool.h.
2038 Include stor-layout.h.
2040 * optabs.c: Include stor-layout.h.
2041 Include stringpool.h.
2043 * passes.c: Include varasm.h.
2044 * predict.c: Include calls.h.
2045 * print-rtl.c: Include print-tree.h.
2046 * print-tree.c: Include varasm.h.
2047 Include print-rtl.h.
2048 Include stor-layout.h.
2049 * realmpfr.c: Include stor-layout.h.
2050 * reg-stack.c: Include varasm.h.
2051 * sdbout.c: Include varasm.h.
2052 Include stor-layout.h.
2053 * simplify-rtx.c: Include varasm.h.
2054 * stmt.c: Include varasm.h.
2055 Include stor-layout.h.
2056 * stor-layout.c: Include stor-layout.h.
2057 Include stringpool.h.
2059 Include print-tree.h.
2060 * symtab.c: Include rtl.h.
2061 Include print-tree.h.
2065 * targhooks.c: Include stor-layout.h.
2067 * toplev.c: Include varasm.h.
2068 Include tree-inline.h.
2069 * trans-mem.c: Include calls.h.
2073 * tree-affine.c: Include expr.h.
2074 * tree-browser.c: Include print-tree.h.
2075 * tree-call-cdce.c: Include stor-layout.h.
2076 * tree-cfg.c: Include trans-mem.h.
2077 Include stor-layout.h.
2078 Include print-tree.h.
2079 * tree-complex.c: Include stor-layout.h.
2080 * tree-data-ref.c: Include expr.h.
2081 * tree-dfa.c: Include stor-layout.h.
2082 * tree-eh.c: Include expr.h.
2084 * tree-emutls.c: Include stor-layout.h.
2086 * tree-if-conv.c: Include stor-layout.h.
2087 * tree-inline.c: Include stor-layout.h.
2089 * tree-loop-distribution.c: Include stor-layout.h.
2090 * tree-nested.c: Include stringpool.h.
2091 Include stor-layout.h.
2092 * tree-object-size.c: Include tree-object-size.h.
2093 * tree-outof-ssa.c: Include stor-layout.h.
2094 * tree-parloops.c: Include stor-layout.h.
2095 Include tree-nested.h.
2096 * tree-pretty-print.c: Include stor-layout.h.
2098 * tree-profile.c: Include varasm.h.
2099 Include tree-nested.h.
2100 * tree-scalar-evolution.c: Include expr.h.
2101 * tree-sra.c: Include stor-layout.h.
2102 * tree-ssa-address.c: Include stor-layout.h.
2103 * tree-ssa-ccp.c: Include stor-layout.h.
2104 * tree-ssa-dce.c: Include calls.h.
2105 * tree-ssa-dom.c: Include stor-layout.h.
2106 * tree-ssa-forwprop.c: Include stor-layout.h.
2107 * tree-ssa-ifcombine.c: Include stor-layout.h.
2108 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
2109 * tree-ssa-loop-niter.c: Include calls.h.
2111 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
2112 * tree-ssa-math-opts.c: Include stor-layout.h.
2113 * tree-ssa-operands.c: Include stmt.h.
2114 Include print-tree.h.
2115 * tree-ssa-phiopt.c: Include stor-layout.h.
2116 * tree-ssa-reassoc.c: Include stor-layout.h.
2117 * tree-ssa-sccvn.c: Include stor-layout.h.
2118 * tree-ssa-sink.c: Include stor-layout.h.
2119 * tree-ssa-strlen.c: Include stor-layout.h.
2120 * tree-ssa-structalias.c: Include stor-layout.h.
2122 * tree-ssa-tail-merge.c: Include stor-layout.h.
2123 Include trans-mem.h.
2124 * tree-ssa-uncprop.c: Include stor-layout.h.
2125 * tree-ssa.c: Include stor-layout.h.
2126 * tree-ssanames.c: Include stor-layout.h.
2127 * tree-streamer-in.c: Include stringpool.h.
2128 * tree-streamer-out.c: Include stor-layout.h.
2129 * tree-switch-conversion.c: Include varasm.h.
2130 Include stor-layout.h.
2131 * tree-tailcall.c: Include stor-layout.h.
2132 * tree-vect-data-refs.c: Include stor-layout.h.
2133 * tree-vect-generic.c: Include stor-layout.h.
2134 * tree-vect-loop.c: Include stor-layout.h.
2135 * tree-vect-patterns.c: Include stor-layout.h.
2136 * tree-vect-slp.c: Include stor-layout.h.
2137 * tree-vect-stmts.c: Include stor-layout.h.
2138 * tree-vectorizer.c: Include stor-layout.h.
2139 * tree-vrp.c: Include stor-layout.h.
2141 * tree.c: Include stor-layout.h.
2145 * tsan.c: Include expr.h.
2146 * ubsan.c: Include stor-layout.h.
2147 Include stringpool.h.
2148 * value-prof.c: Include tree-nested.h.
2150 * var-tracking.c: Include varasm.h.
2151 Include stor-layout.h.
2152 * varasm.c: Include stor-layout.h.
2153 Include stringpool.h.
2154 Include gcc-symtab.h.
2156 * varpool.c: Include varasm.h.
2157 * vmsdbgout.c: Include varasm.h.
2158 * xcoffout.c: Include varasm.h.
2160 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
2162 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
2165 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2167 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
2169 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2170 Alan Modra <amodra@gmail.com>
2172 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
2173 (RS6000_SAVE_TOC): Remove.
2174 (RS6000_TOC_SAVE_SLOT): New macro.
2175 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
2176 (rs6000_parm_start): Use it.
2177 (rs6000_function_arg_advance_1): Likewise.
2178 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
2179 (rs6000_emit_epilogue): Likewise.
2180 (rs6000_call_aix): Likewise.
2181 (rs6000_output_function_prologue): Do not save/restore r11
2182 around calling _mcount for ABI_ELFv2.
2184 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2185 Alan Modra <amodra@gmail.com>
2187 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
2189 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
2190 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
2191 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
2192 (rs6000_function_parms_need_stack): Likewise.
2193 (rs6000_reg_parm_stack_space): Likewise.
2194 (rs6000_function_arg): Do not replace BLKmode by Pmode when
2195 returning a register argument.
2197 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2198 Michael Gschwind <mkg@us.ibm.com>
2200 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
2201 (ALTIVEC_ARG_MAX_RETURN): Likewise.
2202 (FUNCTION_VALUE_REGNO_P): Use them.
2203 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
2204 (rs6000_return_in_msb): New function.
2205 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
2206 Handle aggregates of up to 16 bytes for ELFv2.
2207 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
2209 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2210 Michael Gschwind <mkg@us.ibm.com>
2212 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
2213 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
2214 (rs6000_discover_homogeneous_aggregate): Likewise.
2215 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
2216 (rs6000_function_arg_advance_1): Likewise.
2217 (rs6000_function_arg): Likewise.
2218 (rs6000_arg_partial_bytes): Likewise.
2219 (rs6000_psave_function_arg): Handle BLKmode arguments.
2221 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2222 Michael Gschwind <mkg@us.ibm.com>
2224 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
2225 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
2226 (rs6000_discover_homogeneous_aggregate): Likewise.
2227 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
2228 (rs6000_function_arg_advance_1): Likewise.
2229 (rs6000_function_arg): Likewise.
2230 (rs6000_arg_partial_bytes): Likewise.
2231 (rs6000_psave_function_arg): Handle BLKmode arguments.
2233 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2235 * config/rs6000/rs6000.c (machine_function): New member
2237 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
2238 (rs6000_output_mi_thunk): Set r2_setup_needed.
2239 (rs6000_output_function_prologue): Output global entry point
2240 prologue and local entry point marker if needed for ABI_ELFv2.
2241 Output -mprofile-kernel code here.
2242 (output_function_profiler): Do not output -mprofile-kernel
2243 code here; moved to rs6000_output_function_prologue.
2244 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
2246 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
2247 (rs6000_output_function_entry): Likewise.
2248 (rs6000_assemble_integer): Likewise.
2249 (rs6000_elf_encode_section_info): Likewise.
2250 (rs6000_elf_declare_function_name): Do not create dot symbols
2251 or .opd section for ABI_ELFv2.
2253 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
2254 (rs6000_trampoline_init): Likewise.
2255 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
2257 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
2258 for function descriptors in ABI_ELFv2.
2260 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
2261 on ABI_AIX only, not ABI_ELFv2.
2262 ("*call_value_indirect_aix<mode>"): Likewise.
2263 ("*call_indirect_elfv2<mode>"): New pattern.
2264 ("*call_value_indirect_elfv2<mode>"): Likewise.
2266 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
2267 check for function descriptors in ABI_ELFv2.
2268 ("current_file_function_operand"): Likewise.
2270 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
2272 (FUNC_NAME): Define ELFv2 variant.
2273 (JUMP_TARGET): Likewise.
2274 (FUNC_START): Likewise.
2275 (HIDDEN_FUNC): Likewise.
2276 (FUNC_END): Likeiwse.
2278 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2280 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
2281 and --with-abi=elfv2.
2282 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
2283 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
2284 (mabi=elfv2): Likewise.
2285 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
2286 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
2288 (ELFv2_ABI_CHECK): New macro.
2289 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
2290 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
2291 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
2292 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
2293 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
2295 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
2296 (debug_stack_info): Likewise.
2297 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
2298 (rs6000_legitimize_tls_address): Likewise.
2299 (rs6000_conditional_register_usage): Likewise.
2300 (rs6000_emit_move): Likewise.
2301 (init_cumulative_args): Likewise.
2302 (rs6000_function_arg_advance_1): Likewise.
2303 (rs6000_function_arg): Likewise.
2304 (rs6000_arg_partial_bytes): Likewise.
2305 (rs6000_output_function_entry): Likewise.
2306 (rs6000_assemble_integer): Likewise.
2307 (rs6000_savres_strategy): Likewise.
2308 (rs6000_stack_info): Likewise.
2309 (rs6000_function_ok_for_sibcall): Likewise.
2310 (rs6000_emit_load_toc_table): Likewise.
2311 (rs6000_savres_routine_name): Likewise.
2312 (ptr_regno_for_savres): Likewise.
2313 (rs6000_emit_prologue): Likewise.
2314 (rs6000_emit_epilogue): Likewise.
2315 (rs6000_output_function_epilogue): Likewise.
2316 (output_profile_hook): Likewise.
2317 (output_function_profiler): Likewise.
2318 (rs6000_trampoline_size): Likewise.
2319 (rs6000_trampoline_init): Likewise.
2320 (rs6000_elf_output_toc_section_asm_op): Likewise.
2321 (rs6000_elf_encode_section_info): Likewise.
2322 (rs6000_elf_reloc_rw_mask): Likewise.
2323 (rs6000_elf_declare_function_name): Likewise.
2324 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
2325 except that rs6000_compat_align_parm is always assumed false.
2326 (rs6000_gimplify_va_arg): Likewise.
2327 (rs6000_call_aix): Update comment.
2328 (rs6000_sibcall_aix): Likewise.
2329 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
2330 Treat ABI_ELFv2 the same as ABI_AIX.
2331 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
2332 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
2333 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
2334 ("load_toc_aix_si"): Likewise.
2335 ("load_toc_aix_di"): Likewise.
2337 ("call_value"): Likewise.
2338 ("*call_local_aix<mode>"): Likewise.
2339 ("*call_value_local_aix<mode>"): Likewise.
2340 ("*call_nonlocal_aix<mode>"): Likewise.
2341 ("*call_value_nonlocal_aix<mode>"): Likewise.
2342 ("*call_indirect_aix<mode>"): Likewise.
2343 ("*call_value_indirect_aix<mode>"): Likewise.
2344 ("sibcall"): Likewise.
2345 ("sibcall_value"): Likewise.
2346 ("*sibcall_aix<mode>"): Likewise.
2347 ("*sibcall_value_aix<mode>"): Likewise.
2348 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
2349 ("current_file_function_operand"): Likewise.
2351 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2353 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
2354 by making use of the fact that for vector / floating point arguments
2355 passed both in VRs/FPRs and in the fixed parameter area, the partial
2356 bytes mechanism is in fact not used.
2358 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2360 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
2361 (rs6000_finish_function_arg): Likewise.
2362 (rs6000_function_arg): Use rs6000_psave_function_arg and
2363 rs6000_finish_function_arg to handle both vector and floating
2364 point arguments that are also passed in GPRs / the stack.
2366 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2368 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
2369 (USE_ALTIVEC_FOR_ARG_P): Likewise.
2370 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
2371 (rs6000_function_arg_advance_1):Likewise.
2372 (rs6000_darwin64_record_arg_recurse): Likewise.
2373 (rs6000_function_arg): Likewise.
2374 (rs6000_arg_partial_bytes): Likewise.
2376 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2378 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
2379 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
2380 (rs6000_savres_strategy): Likewise.
2381 (rs6000_return_addr): Likewise.
2382 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
2383 testing for ABI_V4 (since ABI_DARWIN is impossible here).
2384 (rs6000_emit_prologue): Likewise.
2385 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
2386 (rs6000_elf_declare_function_name): Remove duplicated test.
2387 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
2388 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
2389 ("load_toc_v4_PIC_1_normal"): Likewise.
2390 ("load_toc_v4_PIC_1_476"): Likewise.
2391 ("load_toc_v4_PIC_1b"): Likewise.
2392 ("load_toc_v4_PIC_1b_normal"): Likewise.
2393 ("load_toc_v4_PIC_1b_476"): Likewise.
2394 ("load_toc_v4_PIC_2"): Likewise.
2395 ("load_toc_v4_PIC_3b"): Likewise.
2396 ("load_toc_v4_PIC_3c"): Likewise.
2397 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
2398 (RS6000_SAVE_AREA): Likewise.
2399 (FP_ARG_MAX_REG): Likewise.
2400 (RETURN_ADDRESS_OFFSET): Likewise.
2401 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
2403 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2404 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
2406 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2408 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
2409 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
2410 Create call insn directly instead of via various gen_... routines.
2411 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
2412 (rs6000_sibcall_aix): New function.
2413 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
2414 (TOC_SAVE_OFFSET_64BIT): Likewise.
2415 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
2416 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
2417 (AIX_FUNC_DESC_SC_32BIT): Likewise.
2418 (AIX_FUNC_DESC_SC_64BIT): Likewise.
2419 ("call" expander): Call rs6000_call_aix.
2420 ("call_value" expander): Likewise.
2421 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
2422 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
2423 ("*call_indirect_aix<mode>"): ... by this insn pattern.
2424 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
2425 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
2426 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
2427 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
2428 ("*call_nonlocal_aix<mode>"): ... this pattern.
2429 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
2430 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
2431 ("*call_local_aix<mode>"): New insn pattern.
2432 ("*call_value_local_aix<mode>"): Likewise.
2433 ("sibcall" expander): Call rs6000_sibcall_aix.
2434 ("sibcall_value" expander): Likewise. Move earlier in file.
2435 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
2436 ("*sibcall_aix<mode>"): ... this pattern.
2437 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
2438 ("*sibcall_value_aix<mode>"): ... this pattern.
2439 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
2440 (rs6000_call_aix): Add prototype.
2441 (rs6000_sibcall_aix): Likewise.
2443 2013-11-14 Jakub Jelinek <jakub@redhat.com>
2446 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
2447 isn't confused by the artificial decl.
2449 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2451 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
2452 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
2453 Instead, add USEs of all modified call-saved CR fields to the
2454 insn storing the result to the stack slot, and provide an
2455 appropriate REG_FRAME_RELATED_EXPR for that insn.
2456 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
2457 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
2459 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2460 Alan Modra <amodra@gmail.com>
2462 * function.c (assign_parms): Use all.reg_parm_stack_space instead
2463 of re-evaluating REG_PARM_STACK_SPACE target macro.
2464 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
2465 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
2466 (assign_parm_find_entry_rtl): Update call.
2467 * calls.c (initialize_argument_information): Update call.
2468 (emit_library_call_value_1): Likewise.
2469 * expr.h (locate_and_pad_parm): Update prototype.
2471 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2473 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
2476 2013-11-14 DJ Delorie <dj@redhat.com>
2478 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
2481 2013-11-14 Jeff Law <law@redhat.com>
2483 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
2484 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
2486 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
2488 * doc/invoke.texi: Update documentation for AArch64's -mcpu
2491 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
2493 * config/aarch64/aarch64-cores.def (example-1): Remove.
2494 (example-2): Likewise.
2495 * config/aarch64/aarch64-tune.md: Regenerate.
2496 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
2497 (generic_sched): Remove "large", "small".
2498 * config/aarch64/large.md: Delete.
2499 * config/aarch64/small.md: Delete.
2501 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
2503 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
2504 * config/aarch64/aarch64-tune.md: Regenerate.
2505 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
2506 (generic_sched): "no" if we are tuning for cortexa15.
2507 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
2510 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
2512 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
2513 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
2514 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
2515 (all_cores): Use cortexa53 when tuning for "generic".
2516 (aarch64_override_options): Fix comment.
2517 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
2518 * config/aarch64/aarch64-generic.md: Delete.
2520 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
2522 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
2524 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2526 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
2527 (generic_rtx_cost_table): Remove.
2528 (aarch64_rtx_costs): Use fields from cpu_cost_table.
2529 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
2531 (cpu_rtx_cost_table): Remove.
2533 2013-11-14 Julian Brown <julian@codesourcery.com>
2534 Joey Ye <joey.ye@arm.com>
2536 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
2537 (arm_v7m_tune): New.
2538 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
2539 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
2540 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
2541 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
2543 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
2546 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
2549 2013-11-14 Jakub Jelinek <jakub@redhat.com>
2550 Uros Bizjak <ubizjak@gmail.com>
2553 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
2554 operands[2] satisfies_constraint_Z that might have bit 31 set.
2556 2013-11-13 Jeff Law <law@redhat.com>
2558 PR tree-optimization/59102
2559 * gimple-ssa-isolate-paths.c
2560 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
2561 gimple assignment before looking at gimple_assign_lhs.
2563 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
2565 * ira.c: Add comment about threads at the top of file.
2567 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
2569 * ira-color.c (coalesce_allocnos): Don't allocate and free
2572 2013-11-14 Tom de Vries <tom@codesourcery.com>
2574 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
2575 equality for GIMPLE_ASSIGN.
2577 2013-11-14 Tom de Vries <tom@codesourcery.com>
2579 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
2581 (gimple_equal_p): ... here.
2583 2013-11-14 Tom de Vries <tom@codesourcery.com>
2585 * trans-mem.c (is_tm_ending): New function.
2586 * gimple.h (is_tm_ending): Declare.
2587 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
2589 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
2591 2013-11-14 Tom de Vries <tom@codesourcery.com>
2593 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
2595 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
2597 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
2598 (struct walk_stmt_info): Relocate here from gimple.h.
2599 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
2600 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
2601 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
2602 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
2603 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
2604 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
2605 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
2606 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
2607 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
2608 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
2609 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
2610 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
2611 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
2612 (struct walk_stmt_info): Move to gimple-walk.h.
2613 (gimple_seq_set_location): Move to gimple.c
2614 * gimple-walk.c: New File.
2615 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
2616 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
2617 walk_stmt_load_store_ops): Relocate here from gimple.c.
2618 * gimple-iterator.c: Include gimple-iterator.h.
2619 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
2620 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
2621 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
2623 (gimple_seq_set_location): Relocate from gimple.h.
2624 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
2625 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
2626 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
2627 * Makefile.in (OBJS): Add gimple-walk.o
2628 * asan.c: Update Include list as required for gimple-iterator.h and
2630 * cfgexpand.c: Likewise.
2631 * cfgloop.c: Likewise.
2632 * cfgloopmanip.c: Likewise.
2633 * cgraph.c: Likewise.
2634 * cgraphbuild.c: Likewise.
2635 * cgraphunit.c: Likewise.
2636 * gimple-fold.c: Likewise.
2637 * gimple-low.c: Likewise.
2638 * gimple-pretty-print.c: Likewise.
2639 * gimple-ssa-isolate-paths.c: Likewise.
2640 * gimple-ssa-strength-reduction.c: Likewise.
2641 * gimple-streamer-in.c: Likewise.
2642 * gimple-streamer-out.c: Likewise.
2643 * gimplify.c: Likewise.
2644 * graphite-blocking.c: Likewise.
2645 * graphite-clast-to-gimple.c: Likewise.
2646 * graphite-dependences.c: Likewise.
2647 * graphite-interchange.c: Likewise.
2648 * graphite-optimize-isl.c: Likewise.
2649 * graphite-poly.c: Likewise.
2650 * graphite-scop-detection.c: Likewise.
2651 * graphite-sese-to-poly.c: Likewise.
2652 * graphite.c: Likewise.
2653 * ipa-inline-analysis.c: Likewise.
2654 * ipa-profile.c: Likewise.
2655 * ipa-prop.c: Likewise.
2656 * ipa-pure-const.c: Likewise.
2657 * ipa-split.c: Likewise.
2658 * lto-streamer-in.c: Likewise.
2659 * lto-streamer-out.c: Likewise.
2660 * omp-low.c: Likewise.
2661 * predict.c: Likewise.
2662 * profile.c: Likewise.
2664 * tracer.c: Likewise.
2665 * trans-mem.c: Likewise.
2666 * tree-call-cdce.c: Likewise.
2667 * tree-cfg.c: Likewise.
2668 * tree-cfgcleanup.c: Likewise.
2669 * tree-complex.c: Likewise.
2670 * tree-data-ref.c: Likewise.
2671 * tree-dfa.c: Likewise.
2672 * tree-eh.c: Likewise.
2673 * tree-emutls.c: Likewise.
2674 * tree-if-conv.c: Likewise.
2675 * tree-inline.c: Likewise.
2676 * tree-into-ssa.c: Likewise.
2677 * tree-loop-distribution.c: Likewise.
2678 * tree-nested.c: Likewise.
2679 * tree-nrv.c: Likewise.
2680 * tree-object-size.c: Likewise.
2681 * tree-outof-ssa.c: Likewise.
2682 * tree-parloops.c: Likewise.
2683 * tree-predcom.c: Likewise.
2684 * tree-profile.c: Likewise.
2685 * tree-scalar-evolution.c: Likewise.
2686 * tree-sra.c: Likewise.
2687 * tree-ssa-ccp.c: Likewise.
2688 * tree-ssa-coalesce.c: Likewise.
2689 * tree-ssa-copy.c: Likewise.
2690 * tree-ssa-copyrename.c: Likewise.
2691 * tree-ssa-dce.c: Likewise.
2692 * tree-ssa-dom.c: Likewise.
2693 * tree-ssa-dse.c: Likewise.
2694 * tree-ssa-forwprop.c: Likewise.
2695 * tree-ssa-ifcombine.c: Likewise.
2696 * tree-ssa-live.c: Likewise.
2697 * tree-ssa-loop-ch.c: Likewise.
2698 * tree-ssa-loop-im.c: Likewise.
2699 * tree-ssa-loop-ivcanon.c: Likewise.
2700 * tree-ssa-loop-ivopts.c: Likewise.
2701 * tree-ssa-loop-manip.c: Likewise.
2702 * tree-ssa-loop-niter.c: Likewise.
2703 * tree-ssa-loop-prefetch.c: Likewise.
2704 * tree-ssa-loop.c: Likewise.
2705 * tree-ssa-math-opts.c: Likewise.
2706 * tree-ssa-phiopt.c: Likewise.
2707 * tree-ssa-phiprop.c: Likewise.
2708 * tree-ssa-pre.c: Likewise.
2709 * tree-ssa-propagate.c: Likewise.
2710 * tree-ssa-reassoc.c: Likewise.
2711 * tree-ssa-sink.c: Likewise.
2712 * tree-ssa-strlen.c: Likewise.
2713 * tree-ssa-structalias.c: Likewise.
2714 * tree-ssa-tail-merge.c: Likewise.
2715 * tree-ssa-ter.c: Likewise.
2716 * tree-ssa-threadedge.c: Likewise.
2717 * tree-ssa-threadupdate.c: Likewise.
2718 * tree-ssa-uncprop.c: Likewise.
2719 * tree-ssa-uninit.c: Likewise.
2720 * tree-ssa.c: Likewise.
2721 * tree-stdarg.c: Likewise.
2722 * tree-switch-conversion.c: Likewise.
2723 * tree-tailcall.c: Likewise.
2724 * tree-vect-data-refs.c: Likewise.
2725 * tree-vect-generic.c: Likewise.
2726 * tree-vect-loop-manip.c: Likewise.
2727 * tree-vect-loop.c: Likewise.
2728 * tree-vect-patterns.c: Likewise.
2729 * tree-vect-slp.c: Likewise.
2730 * tree-vect-stmts.c: Likewise.
2731 * tree-vectorizer.c: Likewise.
2732 * tree-vrp.c: Likewise.
2735 * value-prof.c: Likewise.
2736 * vtable-verify.c: Likewise.
2738 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
2740 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
2743 2013-11-13 Jeff Law <law@redhat.com>
2745 * PR middle-end/59119
2746 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
2747 function, extracted from gimple_ssa_isolate_erroneous_paths.
2748 (find_explicit_erroneous_behaviour): Similarly.
2749 (insert_trap_and_remove_trailing_statements): Remove statements
2752 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
2754 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
2755 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
2756 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
2757 looking at INSN_CODE.
2758 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
2759 active_insn_p object, respect basic block boundaries.
2760 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
2761 follows immediately after the jump table data label.
2762 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
2763 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
2764 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
2766 2013-11-13 Teresa Johnson <tejohnson@google.com>
2769 * predict.c (drop_profile): Error is currently too strict.
2770 (handle_missing_profiles): Pass call_count to drop_profile.
2772 2013-11-13 Teresa Johnson <tejohnson@google.com>
2775 * ipa-inline.c (edge_badness): Fix overflow.
2777 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
2779 PR rtl-optimization/59036
2780 * ira-color.c (struct allocno_color_data): Add new members
2781 first_thread_allocno, next_thread_allocno, thread_freq.
2782 (sorted_copies): New static var.
2783 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
2784 (allocno_thread_conflict_p, merge_threads)
2785 (form_threads_from_copies, form_threads_from_bucket)
2786 (form_threads_from_colorable_allocno, init_allocno_threads): New
2788 (bucket_allocno_compare_func): Add comparison by thread frequency
2790 (add_allocno_to_ordered_bucket): Rename to
2791 add_allocno_to_ordered_colorable_bucket. Remove parameter.
2792 (push_only_colorable): Call form_threads_from_bucket.
2793 (color_pass): Call init_allocno_threads. Use
2794 consideration_allocno_bitmap instead of coloring_allocno_bitmap
2795 for nuillify allocno color data.
2796 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
2797 (coalesce_allocnos): Use static sorted copies.
2799 2013-11-13 Jakub Jelinek <jakub@redhat.com>
2801 * passes.c (execute_todo): Don't call do_per_function if
2803 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
2804 execute_function_dump if dump_file is NULL.
2806 2013-11-13 Martin Jambor <mjambor@suse.cz>
2808 * cgraph.c (cgraph_get_create_node): Do what
2809 cgraph_get_create_real_symbol_node used to do.
2810 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
2811 call cgraph_get_create_node.
2812 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
2813 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
2814 cgraph_get_create_node. Assert we get a node.
2816 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
2818 * config/aarch64/aarch64-simd.md (vec_extract): New.
2820 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
2822 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
2825 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
2827 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
2828 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
2829 or if optimization is enabled.
2830 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
2831 require that all the names based on a PARM_DECL or a RESULT_DECL that
2832 isn't ignored for debug info be coalesced.
2834 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2836 * config/c6x/c6x.c: Include "gimple-expr.h".
2838 2013-11-13 Richard Biener <rguenther@suse.de>
2840 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
2841 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
2842 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
2843 dealing with type mismatches inside component reference chains.
2845 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
2847 PR tree-optimization/59077
2848 * ipa-pure-const.c (better_state): Update *state.
2850 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
2852 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
2853 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
2854 Update offset calculations.
2856 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
2859 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
2860 for fields. Do not add the attribute if the size is negative.
2862 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2864 * config/arm/arm.c: Include aarch-cost-tables.h.
2865 (generic_extra_costs): Move from here...
2866 * config/arm/aarch-cost-tables.h: ... To here. New file.
2868 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
2869 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2870 Sergey Lega <sergey.s.lega@intel.com>
2871 Anna Tikhonova <anna.tikhonova@intel.com>
2872 Ilya Tocar <ilya.tocar@intel.com>
2873 Andrey Turetskiy <andrey.turetskiy@intel.com>
2874 Ilya Verbin <ilya.verbin@intel.com>
2875 Kirill Yukhin <kirill.yukhin@intel.com>
2876 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2878 * config/i386/i386.c (ix86_print_operand): Support z-masking.
2879 * config/i386/predicate.md (const_0_to_4_operand): New.
2880 (const_0_to_5_operand): Ditto.
2881 * config/i386/sse.md (UNSPEC_COMPRESS): New.
2882 (UNSPEC_COMPRESS_STORE): Ditto.
2883 (UNSPEC_EXPAND): Ditto.
2884 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
2885 (define_mode_attr ssescalarsize): Ditto.
2886 (avx512f_load<mode>_mask): Ditto.
2887 (avx512f_store<mode>_mask): Ditto.
2888 (avx512f_storedqu<mode>_mask): Ditto.
2889 (avx512f_vmcmp<mode>3_mask): Ditto.
2890 (avx512f_fmadd_<mode>_mask): Ditto.
2891 (avx512f_fmadd_<mode>_mask3): Ditto.
2892 (avx512f_fmsub_<mode>_mask): Ditto.
2893 (avx512f_fmsub_<mode>_mask3): Ditto.
2894 (avx512f_fnmadd_<mode>_mask): Ditto.
2895 (avx512f_fnmadd_<mode>_mask3): Ditto.
2896 (avx512f_fnmsub_<mode>_mask): Ditto.
2897 (avx512f_fnmsub_<mode>_mask3): Ditto.
2898 (avx512f_fmaddsub_<mode>_mask): Ditto.
2899 (avx512f_fmaddsub_<mode>_mask3): Ditto.
2900 (avx512f_fmsubadd_<mode>_mask): Ditto.
2901 (avx512f_fmsubadd_<mode>_mask3): Ditto.
2902 (vec_unpacku_float_lo_v16si): Ditto.
2903 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
2904 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
2905 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
2906 (vec_extract_lo_<mode>_maskm): Ditto.
2907 (vec_extract_hi_<mode>_maskm): Ditto.
2908 (avx512f_vternlog<mode>_mask): Ditto.
2909 (avx512f_shufps512_mask): Ditto.
2910 (avx512f_fixupimm<mode>_mask): Ditto.
2911 (avx512f_shufpd512_mask): Ditto.
2912 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
2913 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
2914 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
2915 (ashr<mode>3<mask_name>): Ditto.
2916 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
2917 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
2918 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
2919 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
2920 (avx512f_pshufdv3_mask): Ditto.
2921 (avx512f_perm<mode>_mask): Ditto.
2922 (avx512f_vpermi2var<mode>3_mask): Ditto.
2923 (avx512f_vpermt2var<mode>3_mask): Ditto.
2924 (avx512f_compress<mode>_mask): Ditto.
2925 (avx512f_compressstore<mode>_mask): Ditto.
2926 (avx512f_expand<mode>_mask): Ditto.
2927 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
2929 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
2930 (<plusminus_insn><mode>3<mask_name>): Ditto.
2931 (*<plusminus_insn><mode>3<mask_name>): Ditto.
2932 (mul<mode>3<mask_name>): Ditto.
2933 (*mul<mode>3<mask_name>): Ditto.
2934 (<sse>_div<mode>3<mask_name>): Ditto.
2935 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
2936 (<sse>_sqrt<mode>2<mask_name>): Ditto.
2937 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
2938 (<code><mode>3<mask_name>/smaxmin): Ditto.
2939 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
2940 (*<code><mode>3<mask_name>/smaxmin): Ditto.
2941 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
2942 (ufloatv16siv16sf2<mask_name>): Ditto.
2943 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
2944 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
2945 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
2946 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
2947 (ufloatv8siv8df<mask_name>): Ditto.
2948 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
2949 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
2950 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
2951 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
2952 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
2953 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
2954 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
2955 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
2956 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
2957 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
2958 (vec_extract_lo_<mode><mask_name>): Ditto.
2959 (vec_extract_hi_<mode><mask_name>): Ditto.
2960 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
2961 (avx512f_movddup512<mask_name>): Ditto.
2962 (avx512f_unpcklpd512<mask_name>): Ditto.
2963 (*avx512f_unpcklpd512<mask_name>): Ditto.
2964 (*avx512f_vmscalef<mode>): Ditto.
2965 (avx512f_scalef<mode><mask_name>): Ditto.
2966 (avx512f_getexp<mode><mask_name>): Ditto.
2967 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
2968 (avx512f_rndscale<mode><mask_name>): Ditto.
2969 (avx512f_shufps512_1<mask_name>): Ditto.
2970 (avx512f_shufpd512_1<mask_name>): Ditto.
2971 (<plusminus_insn><mode>3<mask_name>): Ditto.
2972 (*<plusminus_insn><mode>3<mask_name>): Ditto.
2973 (vec_widen_umult_even_v16si<mask_name>): Ditto.
2974 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
2975 (vec_widen_smult_even_v16si<mask_name>): Ditto.
2976 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
2977 (mul<mode>3<mask_name>): Ditto.
2978 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
2979 (<shift_insn><mode>3<mask_name>): Ditto.
2980 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
2981 (avx512f_<rotate><mode><mask_name>): Ditto.
2982 (<code><mode>3<mask_name>/maxmin): Ditto.
2983 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
2984 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
2985 (*andnot<mode>3<mask_name>): Ditto.
2986 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
2987 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
2988 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
2989 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
2990 (vec_set_lo_<mode><mask_name>): Ditto.
2991 (vec_set_hi_<mode><mask_name>): Ditto.
2992 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
2993 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
2994 (avx512f_pshufd_1<mask_name>): Ditto.
2995 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
2996 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
2997 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
2998 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
2999 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
3000 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
3001 (avx512er_exp2<mode><mask_name>): Ditto.
3002 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
3003 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
3004 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
3005 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
3006 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
3007 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
3008 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
3009 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
3010 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
3011 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
3012 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
3013 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
3014 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
3015 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
3016 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
3017 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
3018 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
3019 (avx512f_getmant<mode><mask_name>): Ditto.
3020 (clz<mode>2<mask_name>): Ditto.
3021 (<mask_codefor>conflict<mode><mask_name>): Ditto.
3022 (*srcp14<mode>): Remove visibility.
3023 (*rsqrt14<mode>): Ditto.
3024 (*fma_fmsub_<mode>): Ditto.
3025 (*fma_fnmadd_<mode>): Ditto.
3026 (*avx512f_rndscale<mode>): Ditto.
3027 * config/i386/subst.md: New file.
3029 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3031 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
3032 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
3033 (atomic_load_explicit, atomic_exchange_explicit)
3034 (atomic_compare_exchange_strong_explicit)
3035 (atomic_compare_exchange_weak_explicit): Use __auto_type to
3036 declare variable initialized with PTR argument.
3038 2013-11-12 Jeff Law <law@redhat.com>
3040 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
3041 backedge_seen_p. Set, use and pass it to children appropriately.
3042 (thread_through_normal_block): Similarly.
3043 (thread_across_edge): Similarly.
3045 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
3046 memory references as volatile.
3047 (insert_trap_and_remove_trailing_statements): Fix comment.
3049 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
3052 * ira-costs.c (record_operand_costs): Check operands number for
3055 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3058 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
3059 constraints that would allow DImode into the traditional Altivec
3060 registers, but cause undesirable code generation when loading 0 as
3062 (movdi_internal64): Likewise.
3063 (cmp<mode>_fpr): Do not use %x for CR register output.
3064 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
3065 -mallow-upper-sf debug switches are used.
3067 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
3069 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
3070 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
3071 Relocate prototypes from gimple.h.
3072 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
3073 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
3075 * gimple.h: Move some prototypes to gimplify.h.
3076 (gimple_predicate, enum fallback, enum gimplify_status): Move to
3078 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
3079 Relocate from gimpify.c.
3080 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
3081 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
3082 is_gimple_reg_rhs) Relocate from gimplify.c.
3083 * gimplify.c (mark_addressable): Move to gimple-expr.c.
3084 (gimple_seq_add_stmt_without_update): Move to gimple.c.
3085 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
3086 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
3087 is_gimple_reg_rhs): Move to gimple-expr.c.
3088 (should_carry_location_p): Move to gimple.c.
3089 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
3091 (annotate_one_with_location, annotate_all_with_location_after,
3092 annotate_all_with_location): Move to gimple.c.
3093 (compare_case_labels, sort_case_labels,
3094 preprocess_case_label_vec_for_gimple): Move to gimple.c.
3095 (rhs_predicate_for): Make static.
3096 (gimplify_assign): Relocate from gimple.c.
3097 * gimple.c (gimplify_assign): Move to gimplify.c.
3098 (gimple_seq_add_stmt_without_update, should_carry_location_p,
3099 annotate_one_with_location, annotate_all_with_location_after,
3100 annotate_all_with_location, compare_case_labels, sort_case_labels,
3101 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
3102 * tree.h (unshare_expr, unshare_expr_without_location,
3103 mark_addressable): Move prototypes to gimplify.h.
3104 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
3106 * asan.c: Include gimplify.h rather than gimple.h.
3107 * cfgloopmanip.c: Likewise.
3108 * cgraphunit.c: Likewise.
3109 * cilk-common.c: Likewise.
3110 * dwarf2out.c: Dont include gimple.h.
3111 * fold-const.c: Include gimplify.h rather than gimple.h.
3112 * function.c: Likewise.
3113 * gimple-fold.c: Likewise.
3114 * gimple-ssa-strength-reduction.c: Likewise.
3115 * graphite-clast-to-gimple.c: Likewise.
3116 * graphite-sese-to-poly.c: Likewise.
3117 * ipa-prop.c: Likewise.
3118 * ipa-split.c: Likewise.
3120 * langhooks.c: Dont include gimple.h.
3121 * loop-init.c: Include gimplify.h rather than gimple.h.
3122 * omp-low.c: Likewise.
3124 * stor-layout.c: Likewise.
3125 * targhooks.c: Likewise.
3126 * trans-mem.c: Likewise.
3127 * tree-affine.c: Likewise.
3128 * tree-cfg.c: Likewise.
3129 * tree-cfgcleanup.c: Likewise.
3130 * tree-complex.c: Likewise.
3131 * tree-if-conv.c: Likewise.
3132 * tree-inline.c: Likewise.
3133 * tree-iterator.c: Likewise.
3134 * tree-loop-distribution.c: Likewise.
3135 * tree-nested.c: Likewise.
3136 * tree-parloops.c: Likewise.
3137 * tree-predcom.c: Likewise.
3138 * tree-profile.c: Likewise.
3139 * tree-scalar-evolution.c: Likewise.
3140 * tree-sra.c: Likewise.
3141 * tree-ssa-address.c: Likewise.
3142 * tree-ssa-ccp.c: Likewise.
3143 * tree-ssa-dce.c: Likewise.
3144 * tree-ssa-forwprop.c: Likewise.
3145 * tree-ssa-ifcombine.c: Likewise.
3146 * tree-ssa-loop-im.c: Likewise.
3147 * tree-ssa-loop-ivopts.c: Likewise.
3148 * tree-ssa-loop-manip.c: Likewise.
3149 * tree-ssa-loop-niter.c: Likewise.
3150 * tree-ssa-loop-prefetch.c: Likewise.
3151 * tree-ssa-loop-unswitch.c: Likewise.
3152 * tree-ssa-math-opts.c: Likewise.
3153 * tree-ssa-phiopt.c: Likewise.
3154 * tree-ssa-phiprop.c: Likewise.
3155 * tree-ssa-pre.c: Likewise.
3156 * tree-ssa-propagate.c: Likewise.
3157 * tree-ssa-reassoc.c: Likewise.
3158 * tree-ssa-sccvn.c: Likewise.
3159 * tree-ssa-strlen.c: Likewise.
3160 * tree-ssa.c: Likewise.
3161 * tree-switch-conversio: Likewise.n.c
3162 * tree-tailcall.c: Likewise.
3163 * tree-vect-data-refs.c: Likewise.
3164 * tree-vect-generic.c: Likewise.
3165 * tree-vect-loop-manip.c: Likewise.
3166 * tree-vect-loop.c: Likewise.
3167 * tree-vect-patterns.c: Likewise.
3168 * tree-vect-stmts.c: Likewise.
3170 * value-prof.c: Likewise.
3171 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
3172 * config/alpha/alpha.c: Likewise.
3173 * config/darwin.c: Likewise.
3174 * config/i386/i386.c: Likewise.
3175 * config/ia64/ia64.c: Likewise.
3176 * config/mep/mep.c: Likewise.
3177 * config/mips/mips.c: Likewise.
3178 * config/rs6000/rs6000.c: Likewise.
3179 * config/s390/s390.c: Likewise.
3180 * config/sh/sh.c: Likewise.
3181 * config/sparc/sparc.c: Likewise.
3182 * config/spu/spu.c: Likewise.
3183 * config/stormy16/stormy16.c: Likewise.
3184 * config/tilegx/tilegx.c: Likewise.
3185 * config/tilepro/tilepro.c: Likewise.
3186 * config/xtensa/xtensa.c: Likewise.
3188 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
3190 * tree.c (grow_tree_vec_stat): New function ...
3191 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
3192 and macro front-end.
3194 2013-11-12 Marek Polacek <polacek@redhat.com>
3196 * final.c (update_alignments): Initialize label to NULL_RTX.
3198 2013-11-12 Jeff Law <law@redhat.com>
3200 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
3201 (insert_trap_and_remove_trailing_statements): New argument OP which
3202 is the NULL pointer. Emit the trap after the load/store through
3203 the NULL pointer. Simplify the RHS of a store through a NULL pointer
3204 when trivial to do so.
3205 (isolate_path): Corresponding changes.
3206 (gimple_ssa_isolate_erroneous_path): Likewise.
3208 2013-11-12 Teresa Johnson <tejohnson@google.com>
3209 Jan Hubicka <jh@suse.cz>
3211 * predict.c (drop_profile): New function.
3212 (handle_missing_profiles): Ditto.
3213 (counts_to_freqs): Don't overwrite estimated frequencies
3214 when function has no profile counts.
3215 * predict.h (handle_missing_profiles): Declare.
3216 * tree-inline.c (freqs_to_counts): New function.
3217 (copy_cfg_body): Invoke freqs_to_counts as needed.
3218 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
3220 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
3223 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
3225 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
3227 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
3230 * config/i386/i386.c (ix86_option_override_internal): Check
3231 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
3232 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
3233 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
3234 MASK_AVX256_SPLIT_UNALIGNED_STORE.
3236 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
3237 Clear m_COREI7_AVX and update comments.
3238 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
3240 2013-11-12 Martin Jambor <mjambor@suse.cz>
3242 PR rtl-optimization/10474
3243 * ira.c (interesting_dest_for_shprep): New function.
3244 (split_live_ranges_for_shrink_wrap): Likewise.
3245 (find_moveable_pseudos): Move calculation of dominance info,
3246 df_analysios and the final anlyses to...
3247 (ira): ...here, call split_live_ranges_for_shrink_wrap.
3249 2013-11-12 Bin Cheng <bin.cheng@arm.com>
3251 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
3252 Handle type conversion.
3254 2013-11-11 Martin Liska <marxin.liska@gmail.com>
3255 Jan Hubicka <jh@suse.cz>
3257 * cgraph.c (dump_cgraph_node): Profile dump added.
3258 * cgraph.h (struct cgraph_node): New time profile variable added.
3259 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
3260 * gcov-io.h (gcov_type): New profiler type introduced.
3261 * ipa-profile.c (lto_output_node): Streaming for time profile added.
3262 (input_node): Time profiler is read from LTO stream.
3263 * predict.c (maybe_hot_count_p): Hot prediction changed.
3264 * profile.c (instrument_values): New case for time profiler added.
3265 (compute_value_histograms): Read of time profile.
3266 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
3267 * tree-profile.c (init_ic_make_global_vars): Time profiler
3269 (gimple_init_edge_profiler): TP function instrumentation.
3270 (gimple_gen_time_profiler): New.
3271 * value-prof.c (gimple_add_histogram_value): Support for time profiler
3273 (dump_histogram_value): TP type added to dumps.
3274 (visit_hist): More sensitive check that takes TP into account.
3275 (gimple_find_values_to_profile): TP instrumentation.
3276 * value-prof.h (hist_type): New histogram type added.
3277 (struct histogram_value_t): Pointer to struct function added.
3278 * libgcc/Makefile.in: New GCOV merge function for TP added.
3279 * libgcov.c: function_counter variable introduced.
3280 (_gcov_merge_time_profile): New.
3281 (_gcov_time_profiler): New.
3283 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
3284 Jeff Law <law@redhat.com>
3286 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
3287 ao_ref_init_from_ptr_and_size for builtins.
3289 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
3290 H.J. Lu <hongjiu.lu@intel.com>
3293 * config/i386/x86-tune.def
3294 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
3295 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
3296 * config/i386/i386.h
3297 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
3298 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
3299 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
3300 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
3301 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
3302 misaligned_prologue_used. Check that
3303 desired_aling <= epilogue_size_needed.
3305 2013-11-11 Cong Hou <congh@google.com>
3307 PR tree-optimization/59050
3308 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
3310 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
3313 * expmed.c (emit_store_flag): Fail for const-const comparison.
3315 2013-11-11 Tristan Gingold <gingold@adacore.com>
3316 Eric Botcazou <ebotcazou@adacore.com>
3318 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
3319 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
3320 * tree.def (CONSTRUCTOR): Likewise.
3321 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
3322 * gimplify.c (gimplify_init_constructor): Do not clear the object when
3323 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
3325 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
3327 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
3330 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3332 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
3335 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
3337 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
3339 2013-11-08 Jeff Law <law@redhat.com>
3341 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
3342 threading paths first, then perform PHI node checks if applicable.
3344 2013-11-10 Karlson2k <k2k@narod.ru>
3345 Kai Tietz <ktietz@redhat.com>
3348 * configure.ac: Adding for exported symbols check
3349 and for rdynamic-check executable-extension.
3350 * configure: Regenerated.
3352 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
3354 * mode-switching.c (optimize_mode_switching): Mark block as
3355 nontransparent, if last_mode at block exit is different from no_mode.
3357 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3359 * function.c (NAME__MAIN): Move to...
3360 * cfgexpand.c (NAME__MAIN): ...here.
3362 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
3364 * target.def (can_use_doloop_p): New hook.
3365 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
3366 * doc/tm.texi: Regenerate.
3367 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
3368 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
3369 * hooks.c (hook_bool_dint_dint_uint_true): New function.
3370 * targhooks.h (can_use_doloop_if_innermost): Declare.
3371 * targhooks.c (can_use_doloop_if_innermost): New function.
3372 * target.h: Include double-int.h.
3373 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
3374 Remove iteration count, maximum iteration count, loop depth and
3375 enter-at-top inputs from doloop_begin and doloop_end.
3376 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
3378 * config/arc/arc.c (arc_can_use_doloop_p): New function.
3379 (TARGET_CAN_USE_DOLOOP_P): Define.
3380 * config/arm/thumb2.md (doloop_end): Update for new interface.
3381 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
3382 * config/bfin/bfin.md (doloop_end): Update for new interface.
3383 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
3384 (TARGET_CAN_USE_DOLOOP_P): Define.
3385 * config/c6x/c6x.md (doloop_end): Update for new interface.
3386 * config/ia64/ia64.md (doloop_end): Update for new interface.
3387 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
3388 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
3390 * config/mep/mep.c (mep_emit_doloop): Likewise.
3391 (TARGET_CAN_USE_DOLOOP_P): Define.
3392 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
3393 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
3394 * config/s390/s390.md (doloop_end): Update for new interface.
3395 * config/sh/sh.md (doloop_end): Likewise.
3396 * config/spu/spu.md (doloop_end): Likewise.
3397 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
3398 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
3399 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
3400 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
3401 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
3402 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
3404 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
3406 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
3409 * doc/extend.texi: Move Cilk Plus Builtins node before Other
3412 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
3413 Joseph Myers <joseph@codesourcery.com>
3415 * ginclude/stdatomic.h: New file.
3416 * Makefile.in (USER_H): Add stdatomic.h.
3418 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3420 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
3423 2013-11-08 Jeff Law <law@redhat.com>
3425 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
3426 * tree-ssa-threadupdate.c (delete_thread_path): New function.
3427 (ssa_redirect_edges, thread_block_1): Use it.
3428 (thread_through_loop_header, mark_threaded_blocks): Likewise.
3429 (thread_through_all_blocks, register_jump_thread): Likewise.
3430 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
3432 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
3434 * config/arm/aarch-common.c
3435 (search_term): New typedef.
3436 (shift_rtx_costs): New array.
3437 (arm_rtx_shift_left_p): New.
3438 (arm_find_sub_rtx_with_search_term): Likewise.
3439 (arm_find_sub_rtx_with_code): Likewise.
3440 (arm_early_load_addr_dep): Add sanity checking.
3441 (arm_no_early_alu_shift_dep): Likewise.
3442 (arm_no_early_alu_shift_value_dep): Likewise.
3443 (arm_no_early_mul_dep): Likewise.
3444 (arm_no_early_store_addr_dep): Likewise.
3446 2013-11-08 Richard Biener <rguenther@suse.de>
3448 PR tree-optimization/59047
3449 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
3451 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
3453 * common.opt (fcheck-pointer-bounds): Move to ...
3454 * c-family/c.opt: ... here.
3455 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
3456 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
3457 * langhooks.h (lang_hooks): Remove chkp_supported field.
3458 * toplev.c (process_options): Remove chkp_supported check.
3460 2013-11-08 Richard Biener <rguenther@suse.de>
3462 PR tree-optimization/59038
3463 PR tree-optimization/58955
3464 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
3465 previous change. Handle known dependences correctly.
3467 2013-11-08 Tom de Vries <tom@codesourcery.com>
3469 * config/rs6000/t-xilinx: Remove duplicate contents.
3471 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
3472 Joseph Myers <joseph@codesourcery.com>
3474 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
3475 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
3476 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
3477 (struct tree_base): Add atomic_flag field.
3478 * tree.h (TYPE_ATOMIC): New accessor macro.
3479 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
3480 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
3481 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
3482 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
3483 * tree.c (set_type_quals): Set TYPE_ATOMIC.
3484 (find_atomic_core_type): New function.
3485 (build_qualified_type): Adjust alignment for qualified types.
3486 (build_atomic_base): New function
3487 (build_common_tree_nodes): Build atomicQI_type_node,
3488 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
3490 * print-tree.c (print_node): Print atomic qualifier.
3491 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
3492 * target.def (atomic_assign_expand_fenv): New hook.
3493 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
3494 * doc/tm.texi: Regenerate.
3495 * targhooks.c (default_atomic_assign_expand_fenv): New function.
3496 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
3497 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
3498 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
3500 * config/i386/i386.c (enum ix86_builtins): Add
3501 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
3502 IX86_BUILTIN_FNCLEX.
3503 (bdesc_special_args): Add __builtin_ia32_fnstenv,
3504 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
3505 (ix86_expand_builtin): Handle the new built-in functions.
3506 (ix86_atomic_assign_expand_fenv): New function.
3507 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
3508 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
3509 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
3510 (fnstenv, fldenv, fnstsw, fnclex): New insns.
3512 2013-11-07 Steve Ellcey <sellcey@mips.com>
3514 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
3515 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
3516 (MULTILIB_DIRNAMES): Add fp64 directory.
3517 (MULTILIB_EXCEPTIONS): Add new exclusions.
3519 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
3521 * gimplify.c (gimple_regimplify_operands): Do not set
3523 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
3524 (rewrite_close_phi_out_of_ssa): Same.
3525 (rewrite_phi_out_of_ssa): Same.
3526 (rewrite_degenerate_phi): Same.
3527 (handle_scalar_deps_crossing_scop_limits): Same.
3528 * tree-if-conv.c (predicate_scalar_phi): Same.
3529 * tree-parloops.c (create_loads_for_reductions): Same.
3530 (create_final_loads_for_reduction): Same.
3531 (create_loads_and_stores_for_name): Same.
3532 (transform_to_exit_first_loop): Same.
3533 (create_parallel_loop): Same.
3534 * tree-ssa-loop-im.c
3535 (move_computations_dom_walker::before_dom_children): Same.
3536 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
3537 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
3538 * tree-ssa-propagate.c (substitute_and_fold): Same.
3539 * tree-vect-loop.c (vect_finalize_reduction): Same.
3540 * tree-vect-stmts.c (vectorizable_call): Same.
3542 2013-11-07 Mike Stump <mikestump@comcast.net>
3544 * config/pdp11/pdp11.c: Include dbxout.h.
3545 * config/picochip/picochip.c: Likewise.
3547 2013-11-07 Cong Hou <congh@google.com>
3549 PR tree-optimization/56764
3550 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3551 Combine alias checks if it is possible to amortize the runtime
3552 overhead. Return the number of alias checks after merging.
3553 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3554 Use the function vect_create_cond_for_alias_checks () to check
3555 the number of alias checks.
3557 2013-11-07 Jeff Law <law@redhat.com>
3559 * varpool.c (ctor_for_folding): Fix typo in comment.
3561 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
3563 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
3564 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
3566 2013-11-07 Jeff Law <law@redhat.com>
3568 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
3570 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
3571 No longer check if we have __builtin_trap, assume it's available.
3573 2013-11-07 Diego Novillo <dnovillo@google.com>
3575 * attribs.c (lookup_scoped_attribute_spec): Make static.
3576 (get_attribute_namespace): Likewise.
3577 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
3578 (validate_arglist): Move earlier in the file. Make static.
3579 (expand_stack_restore): Move from stmt.c
3580 (expand_stack_save): Move from stmt.c
3581 (rewrite_call_expr_array): Move earlier in the file.
3582 (rewrite_call_expr_valist): Likewise.
3583 * cfgexpand.c: Include hard-reg-set.h before tree.h
3586 (expand_asm_loc): Move from stmt.c.
3587 (n_occurrences): Move from stmt.c.
3588 (check_operand_nalternatives): Move from stmt.c.
3589 (tree_conflicts_with_clobbers_p): Move from stmt.c.
3590 (expand_asm_operands): Move from stmt.c
3591 (expand_asm_stmt): Move from stmt.c
3592 (expand_computed_goto): Move from stmt.c
3593 (expand_goto): Move from stmt.c
3594 (expand_null_return_1): Move from stmt.c
3595 (expand_null_return): Move from stmt.c
3596 (expand_value_return): Move from stmt.c
3597 (expand_return): Move from stmt.c
3598 (expand_main_function): Move from function.c
3599 (stack_protect_prologue): Move from function.c
3600 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
3601 (build_function_decl_skip_args): Move from tree.c.
3602 * explow.c (tree_expr_size): Move from tree.c.
3603 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
3604 (fields_length): Move from tree.c.
3605 * fold-const.c (size_low_cst): Move from tree.c.
3606 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
3607 (tree_expr_nonzero_p): Make static. Move earlier in the file.
3608 (fold_build3_initializer_loc): Remove.
3609 (tree_invalid_nonnegative_warnv_p): Make static.
3610 * function.c (expand_main_function): Move to cfgexpand.c.
3611 (stack_protect_prologue): Move to cfgexpand.c.
3612 (set_insn_locations): Move earlier in the file.
3613 * gimple-fold.c: Include langhooks.h.
3614 (truth_type_for): Move from tree.c.
3615 * print-tree.c (print_vec_tree): Remove.
3616 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
3617 (expand_goto): Move to cfgexpand.c.
3618 (n_occurrences): Move to cfgexpand.c.
3619 (expand_asm_loc): Move to cfgexpand.c
3620 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
3621 (expand_asm_operands): Move to cfgexpand.c.
3622 (expand_asm_stmt): Move to cfgexpand.c.
3623 (check_operand_nalternatives): Move to cfgexpand.c
3624 (expand_null_return): Move to cfgexpand.c.
3625 (expand_value_return): Move to cfgexpand.c.
3626 (expand_null_return_1): Move to cfgexpand.c.
3627 (expand_return): Move to cfgexpand.c.
3628 (expand_stack_save): Move to builtins.c.
3629 (expand_stack_restore): Move to builtins.c
3630 * symtab.c: Include output.h.
3631 (decl_assembler_name_hash): Move from tree.c.
3632 (decl_assembler_name_equal): Move from tree.c.
3633 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
3634 * tree-eh.c (in_array_bounds_p): Move from tree.c.
3635 (range_in_array_bounds_p): Move from tree.c.
3636 * tree-object-size.c (fini_object_sizes): Make static.
3637 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
3638 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
3639 * tree.c (decl_assembler_name_equal): Move to symtab.c.
3640 (tree_expr_size): Move to explow.c.
3641 (decl_assembler_name_hash): Move to symtab.c.
3642 (real_twop): Remove.
3643 (tree_expr_size): Move to explow.c.
3644 (stabilize_reference_1): Move earlier in the file. Make static.
3645 (omp_remove_redundant_declare_simd_attrs): Remove.
3646 (simple_cst_list_equal): Move earlier in the file. Make static.
3647 (size_low_cst): Move to fold-const.c.
3648 (build_type_no_quals): Remove.
3649 (build_function_type_skip_args): Move to cgraphclones.c.
3650 (build_function_decl_skip_args): Move to cgraphclones.c.
3651 (in_array_bounds_p): Move to tree-eh.c.
3652 (range_in_array_bounds_p): Move to tree-eh.c.
3653 (truth_type_for): Move to gimple-fold.c.
3654 (list_equal_p): Remove.
3655 * tree.h (decl_assembler_name_equal): Remove.
3656 (decl_assembler_name_hash): Remove.
3657 (truth_type_for): Remove.
3658 (build_type_no_quals): Remove.
3659 (build_function_decl_skip_args): Remove.
3660 (in_array_bounds_p): Remove.
3661 (range_in_array_bounds_p): Remove.
3662 (size_low_cst): Remove.
3663 (omp_remove_redundant_declare_simd_attrs): Remove.
3664 (tree_expr_size): Remove.
3665 (fields_length): Remove.
3666 (stabilize_reference_1): Remove.
3667 (expand_goto): Remove.
3668 (expand_stack_save): Remove.
3669 (expand_stack_restore): Remove.
3670 (expand_return): Remove.
3671 (fold_build3_initializer_loc): Remove.
3672 (tree_expr_nonzero_p): Remove.
3673 (tree_invalid_nonnegative_warnv_p): Remove.
3674 (tree_expr_nonzero_warnv_p): Remove.
3675 (fold_builtin_snprintf_chk): Remove.
3676 (validate_arglist): Remove.
3677 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
3678 (simple_cst_list_equal): Remove.
3679 (real_twop): Remove.
3680 (expand_main_function): Remove.
3681 (stack_protect_prologue): Remove.
3682 (print_vec_tree): Remove.
3683 (lookup_scoped_attribute_spec): Remove.
3684 (get_attribute_namespace): Remove.
3685 (expand_computed_goto): Remove.
3686 (expand_asm_stmt): Remove.
3687 (list_equal_p): Remove.
3688 (ssa_name_nonnegative_p): Remove.
3689 (fini_object_sizes): Remove.
3690 (addr_expr_of_non_mem_decl_p): Remove.
3691 (is_tm_safe_or_pure): Move to trans-mem.c.
3692 (more_const_call_expr_args_p): Remove.
3693 (save_vtable_map_decl): Remove.
3695 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
3697 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
3698 linker plugins, too.
3700 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
3701 link to libgomp and its dependencies.
3702 * config/ia64/hpux.h (LIB_SPEC): Likewise.
3703 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3704 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
3705 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
3707 2013-11-07 Jakub Jelinek <jakub@redhat.com>
3709 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
3710 (determine_value_range): Add loop argument. Use get_range_info to
3712 (bound_difference): Adjust caller.
3714 2013-11-07 Richard Biener <rguenther@suse.de>
3715 Jakub Jelinek <jakub@redhat.com>
3717 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
3718 latches from header PHI arguments from the latch edge.
3720 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
3723 * varasm.c (output_constant): Handle NULLPTR_TYPE.
3725 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
3727 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
3728 misaligned_prologue_used when it has been set.
3730 2013-11-07 Yury Gribov <y.gribov@samsung.com>
3731 Jakub Jelinek <jakub@redhat.com>
3734 * asan.c (get_mem_refs_of_builtin_call): Allow
3735 integer literals as addresses in instrumented builtins.
3737 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3739 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
3740 Explain why plus_constant is not used.
3742 2013-11-07 Richard Biener <rguenther@suse.de>
3744 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
3745 (canonicalize_value): ... this. Also handle stripping of
3747 (get_value, set_lattice_value, get_value_for_expr): Adjust.
3748 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
3749 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
3751 2013-11-07 Richard Biener <rguenther@suse.de>
3753 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
3755 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
3758 * config/i386/i386.md (push peepholer/splitter): Use Pmode
3759 with stack_pointer_rtx.
3761 2013-11-07 Bin Cheng <bin.cheng@arm.com>
3763 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
3764 using operand_equal_p.
3766 2013-11-07 Bin Cheng <bin.cheng@arm.com>
3768 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
3769 * tree-affine.c (get_inner_reference_aff): Return base.
3770 * tree-affine.h (get_inner_reference_aff): Change prototype.
3772 2013-11-06 Tobias Burnus <burnus@net-b.de>
3774 * doc/invoke.texi (Wdate-time): Fix typo.
3776 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
3778 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
3779 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
3780 fp_arith_reg_operand instead of arith_reg_operand.
3782 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
3784 * config/sh/sh.md (adddi3): Remove empty constraints.
3785 Remove can_create_pseudo_p and arith_reg_operand check.
3786 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
3787 Split before reload.
3789 2013-11-06 Jeff Law <law@redhat.com>
3790 Tom Tromey <tromey@redhat.com>
3792 * gdbinit.in: Disable strict type checking.
3794 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
3796 * tree-pass.h (make_pass_live_range_shrinkage): New external.
3797 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
3798 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
3799 (rest_of_handle_live_range_shrinkage): Ditto
3800 (class pass_live_range_shrinkage): Ditto.
3801 (pass_data_live_range_shrinkage): Ditto.
3802 (make_pass_live_range_shrinkage): Ditto.
3803 * sched-int.h (initialize_live_range_shrinkage): New prototype.
3804 (finish_live_range_shrinkage): Ditto.
3805 * sched-deps.c (create_insn_reg_set): Make void return value.
3806 * passes.def: Add pass_live_range_shrinkage.
3807 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
3808 * haifa-sched.c (live_range_shrinkage_p): New.
3809 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
3811 (rank_for_schedule): Add code for pressure relief through live
3813 (schedule_insn): Print more debug info.
3814 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
3815 through live range shrinkage.
3816 * doc/invoke.texi (-flive-range-shrinkage): New.
3817 * common.opt (flive-range-shrinkage): New.
3819 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
3822 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
3823 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
3824 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
3825 RTXes that return in AVX256 register.
3827 2013-11-06 Richard Biener <rguenther@suse.de>
3829 PR tree-optimization/58653
3830 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
3831 (prepare_initializers_chain): Adjust.
3833 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
3835 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
3836 (gimple_in_transaction): Use bb_in_transaction.
3837 * basic-block.h (bb_in_transaction): Relocate here and rename.
3838 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
3840 2013-11-06 Richard Biener <rguenther@suse.de>
3842 * tree.c (drop_tree_overflow): New function.
3843 * tree.h (drop_tree_overflow): Declare.
3844 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
3845 * tree-vrp.c (range_int_cst_singleton_p): Use
3846 is_overflow_infinity instead of testing TREE_OVERFLOW.
3847 (extract_range_from_assert): Likewise.
3848 (zero_nonzero_bits_from_vr): Likewise.
3849 (extract_range_basic): Likewise.
3850 (register_new_assert_for): Use drop_tree_overflow.
3851 (vrp_visit_phi_node): Likewise.
3853 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
3855 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
3856 checking for leaf functions without dynamic stack allocation.
3857 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
3858 (ia64_expand_prologue): Likewise.
3859 * config/mips/mips.c (mips_expand_prologue): Likewise.
3860 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3861 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3862 (sparc_flat_expand_prologue): Likewise.
3864 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
3866 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
3867 (__ST3_LANE_FUNC): Likewise.
3868 (__ST4_LANE_FUNC): Likewise.
3870 2013-11-06 Nick Clifton <nickc@redhat.com>
3872 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
3873 name returned by msp430_mcu_name.
3874 (LIB_SPEC): If a -T option has not been specified then set a
3875 default, mcu-specific, linker script.
3876 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
3877 * config/msp430/msp430.c (msp430x_names): Likewise.
3878 Alpha sort the names for ease of comparison.
3879 (msp430_mcu_name): New function: Returns a string suitable for
3880 use as a C preprocessor symbol based upon the name of the MCU
3882 (msp430_option_override): Accept msp430x and msp430xv2 as generic
3884 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
3886 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
3887 unless it is the last part of a spec substring.
3888 * doc/invoke.texi (Spec Files): Document space insertion
3891 2013-11-06 Christian Bruel <christian.bruel@st.com>
3893 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
3894 Factorize probabilities, Use adjust_address instead of
3895 adjust_automodify_address when possible. Enable for optimize.
3896 (sh_expand_strlen): New function.
3897 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
3898 * config/sh/sh.md (strlensi): New pattern.
3899 (UNSPEC_BUILTIN_STRLEN): Define.
3901 2013-11-06 Jakub Jelinek <jakub@redhat.com>
3904 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
3905 (expand_assignment): If *bitpos is negative, set *offset
3906 and adjust *bitpos, so that it is not negative.
3908 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3910 * config/i386/bdver3.md : Added two additional decoder units
3911 to support issue rate of 4 and remodeled vector unit.
3912 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
3913 architectures is set to 4.
3914 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
3915 lookahead is set to 4 for BD architectures.
3917 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3919 * config/rs6000/rs6000.c (rs6000_option_override_internal):
3920 Remove restriction against use of VSX instructions when generating
3921 code for little endian mode.
3923 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3925 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
3926 for both big and little endian.
3927 (mulv8hi3): Swap input operands for merge high and merge low
3928 instructions for little endian.
3930 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3932 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
3933 define_insn to define_expand that uses even patterns for big
3934 endian and odd patterns for little endian.
3935 (vec_widen_smult_even_v16qi): Likewise.
3936 (vec_widen_umult_even_v8hi): Likewise.
3937 (vec_widen_smult_even_v8hi): Likewise.
3938 (vec_widen_umult_odd_v16qi): Likewise.
3939 (vec_widen_smult_odd_v16qi): Likewise.
3940 (vec_widen_umult_odd_v8hi): Likewise.
3941 (vec_widen_smult_odd_v8hi): Likewise.
3942 (altivec_vmuleub): New define_insn.
3943 (altivec_vmuloub): Likewise.
3944 (altivec_vmulesb): Likewise.
3945 (altivec_vmulosb): Likewise.
3946 (altivec_vmuleuh): Likewise.
3947 (altivec_vmulouh): Likewise.
3948 (altivec_vmulesh): Likewise.
3949 (altivec_vmulosh): Likewise.
3951 2013-11-05 Mike Stump <mikestump@comcast.net>
3953 * Makefile.in (mostlyclean): Remove c-family objects.
3955 2013-11-05 Ian Lance Taylor <iant@google.com>
3957 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
3958 If possible, add .cfi directives to record change to bx.
3959 * config/i386/i386.c (ix86_emit_cfi): New function.
3960 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
3962 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
3964 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
3965 immediately after a label for a tablejump pattern.
3967 * config/arm/arm.c (is_jump_table): Remove.
3968 (create_fix_barrier): Use tablejump_p instead.
3969 (arm_reorg): Likewise.
3970 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
3971 (thumb2_output_casesi): Likewise.
3972 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
3973 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
3974 casesi_shift_media, casesi_load_media): Likewise.
3975 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
3976 * config/microblaze/microblaze.md: Likewise.
3978 2013-11-05 Tobias Burnus <burnus@net-b.de>
3980 * doc/invoke.texi (-Wdate-time): Document.
3982 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
3984 * double-int.c (lshift_double, rshift_double): Remove
3985 SHIFT_COUNT_TRUNCATED handling.
3987 2013-11-05 Jeff Law <law@redhat.com>
3989 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
3990 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
3991 * gimple-ssa-isolate-paths.c: New file.
3992 * gimple.c (check_loadstore): New function.
3993 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
3994 Verify OP is in the argument list and the argument corresponding
3995 to OP is a pointer type. Use operand_equal_p rather than
3996 pointer equality when testing if OP is on the nonnull list.
3997 Use check_loadstore rather than count_ptr_derefs. Handle
3998 GIMPLE_RETURN statements.
3999 * tree-vrp.c (infer_nonnull_range): Remove.
4000 * gimple.h (infer_nonnull_range): Declare.
4001 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
4002 * passes.def: Add pass_isolate_erroneous_paths.
4003 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
4004 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
4005 * tree-ssa.c (struct count_ptr_d): Remove.
4006 (count_ptr_derefs, count_uses_and_derefs): Remove.
4007 * tree-ssa.h (count_uses_and_derefs): Remove.
4009 2013-11-05 Jakub Jelinek <jakub@redhat.com>
4011 PR rtl-optimization/58997
4012 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
4013 get_iv_value to be in iv->mode rather than iv->extend_mode.
4014 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
4015 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
4016 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
4019 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
4021 * gimple.h: Move some prototypes to gimple-expr.h and add to include
4023 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
4024 Move to gimple-expr.h.
4025 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
4026 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
4027 is_gimple_id, virtual_operand_p, is_gimple_addressable,
4028 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
4030 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
4031 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
4032 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
4033 is_gimple_address, is_gimple_invariant_address,
4034 is_gimple_ip_invariant_address, is_gimple_min_invariant,
4035 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
4036 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
4037 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
4038 gimple_decl_printable_name, useless_type_conversion_p,
4039 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
4041 * gimple-expr.c: New File.
4042 (useless_type_conversion_p, gimple_set_body, gimple_body,
4043 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
4044 gimple_can_coalesce_p, extract_ops_from_tree_1,
4045 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
4046 is_gimple_address, is_gimple_invariant_address,
4047 is_gimple_ip_invariant_address, is_gimple_min_invariant,
4048 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
4049 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
4050 is_gimple_mem_ref_addr): Relocate here.
4051 * Makefile.in (OBJS): Add gimple-expr.o.
4053 2013-11-05 David Malcolm <dmalcolm@redhat.com>
4055 * gengtype-parse.c (struct_field_seq): Support empty structs.
4057 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
4059 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
4061 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
4063 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
4065 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
4067 (LONG_DOUBLE_TYPE_SIZE): New define.
4068 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
4070 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
4073 * doc/extend.texi [visibility ("visibility_type")]: Add example
4074 about visibility attribute on namespace declaration.
4076 2013-11-05 Richard Biener <rguenther@suse.de>
4079 * passes.def (all_passes): Start with pass_fixup_cfg again.
4081 2013-11-05 Richard Biener <rguenther@suse.de>
4083 PR tree-optimization/58955
4084 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
4087 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4089 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
4091 (vec_pack_ufix_trunc_v2df): Likewise.
4093 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
4096 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
4097 pattern, instead of word_mode.
4099 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
4101 (set_storage_via_setmem): Likewise.
4103 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
4105 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
4106 gimple.h and the rest of the condition in eliminate_build.
4107 (eliminate_build): Call new routine.
4108 * gimple.h (phi_ssa_name_p): Delete.
4110 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
4112 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
4113 case of no prefix and reserving zero slots, because when that's the
4114 case we'll never get here.
4115 * vec.h (va_heap::reserve): Don't try and handle
4116 vec_prefix::calculate_allocation returning zero because that should
4119 2013-11-05 Richard Biener <rguenther@suse.de>
4122 * tree-dfa.c (get_ref_base_and_extent): Merge common code
4123 in MEM_REF and TARGET_MEM_REF handling. Make sure to
4124 process trailing array detection before diving into the
4125 view-converted object (and possibly apply some extra offset).
4127 2013-11-05 Joseph Myers <joseph@codesourcery.com>
4129 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
4131 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
4133 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
4135 PR tree-optimization/58958
4136 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
4137 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
4139 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
4141 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
4142 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
4144 2013-11-05 Jakub Jelinek <jakub@redhat.com>
4146 PR tree-optimization/58984
4147 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
4148 set *SIZE_P if non-NULL on success.
4149 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
4151 (ipcp_transform_function): Likewise. Punt if size of access
4152 is different from TYPE_SIZE on v->value's type.
4154 2013-11-05 Tobias Burnus <burnus@net-b.de>
4156 * doc/invoke.texi (-fopenmp-simd): Document new option.
4157 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
4158 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
4159 * tree.c (attribute_value_equal): Ditto.
4161 2013-11-04 Wei Mi <wmi@google.com>
4163 * sched-rgn.c (add_branch_dependences): Keep insns in
4164 a SCHED_GROUP at the end of BB to remain their location.
4166 2013-11-04 Wei Mi <wmi@google.com>
4168 * config/i386/i386.c (memory_address_length): Extract a part
4169 of code to rip_relative_addr_p.
4170 (rip_relative_addr_p): New Function.
4171 (ix86_macro_fusion_p): Ditto.
4172 (ix86_macro_fusion_pair_p): Ditto.
4173 * config/i386/i386.h: Add new tune features about macro-fusion.
4174 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
4175 * doc/tm.texi: Generated.
4176 * doc/tm.texi.in: Ditto.
4177 * haifa-sched.c (try_group_insn): New Function.
4178 (group_insns_for_macro_fusion): Ditto.
4179 (sched_init): Call group_insns_for_macro_fusion.
4180 * target.def: Add two hooks: macro_fusion_p and
4181 macro_fusion_pair_p.
4183 2013-11-04 Kostya Serebryany <kcc@google.com>
4185 Update to match the changed asan API.
4186 * asan.c (asan_function_start): New function.
4187 (asan_emit_stack_protection): Update the string stored in the
4188 stack red zone to match new API. Store the PC of the current
4189 function in the red zone.
4190 (asan_global_struct): Update the __asan_global definition to match
4192 (asan_add_global): Ditto.
4193 * asan.h (asan_function_start): New prototype.
4194 * final.c (final_start_function): Call asan_function_start.
4195 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
4198 2013-11-04 Wei Mi <wmi@google.com>
4200 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
4201 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
4202 * config/i386/i386.c (ix86_option_override_internal): Ditto.
4203 (ix86_issue_rate): Ditto.
4204 (ix86_adjust_cost): Ditto.
4205 (ia32_multipass_dfa_lookahead): Ditto.
4206 (ix86_sched_init_global): Ditto.
4207 (get_builtin_code_for_version): Ditto.
4208 * config/i386/i386.h (enum target_cpu_default): Ditto.
4209 (enum processor_type): Ditto.
4210 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
4212 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
4214 PR rtl-optimization/58967
4215 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
4216 !lra_in_progress for mode sizes bigger word.
4218 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4220 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
4221 arguments to merge instruction for little endian.
4222 (vec_widen_umult_lo_v16qi): Likewise.
4223 (vec_widen_smult_hi_v16qi): Likewise.
4224 (vec_widen_smult_lo_v16qi): Likewise.
4225 (vec_widen_umult_hi_v8hi): Likewise.
4226 (vec_widen_umult_lo_v8hi): Likewise.
4227 (vec_widen_smult_hi_v8hi): Likewise.
4228 (vec_widen_smult_lo_v8hi): Likewise.
4230 2013-11-04 Ian Lance Taylor <iant@google.com>
4232 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
4233 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
4234 builtins that take pointers.
4235 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
4236 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
4237 (run_gcc): Pass -fnon-call-exceptions.
4239 2013-11-04 Jakub Jelinek <jakub@redhat.com>
4241 * optabs.c (expand_vec_perm): Revert one incorrect line from
4244 PR tree-optimization/58978
4245 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
4246 use_stmt by single_imm_use directly. Only call single_imm_use
4249 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
4251 PR rtl-optimization/58968
4252 * lra-spills.c (return_regno_p): New function.
4253 (lra_final_code_change): Use it.
4255 2013-11-04 Joseph Myers <joseph@codesourcery.com>
4257 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
4258 * target.def (float_exceptions_rounding_supported_p): New hook.
4259 * targhooks.c (default_float_exceptions_rounding_supported_p): New
4261 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
4262 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
4264 * doc/tm.texi: Regenerate.
4265 * config.gcc (powerpc*-*-linux*): Set extra_objs.
4266 * config/rs6000/rs6000-linux.c: New file.
4267 * config/rs6000/rs6000-protos.h
4268 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
4269 * config/rs6000/linux.h
4270 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
4271 * config/rs6000/linux64.h
4272 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
4273 * config/rs6000/t-linux (rs6000-linux.o): New rule.
4274 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
4276 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4278 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
4279 Replace the define_insn_and_split with a define_insn and two
4280 define_splits, with the split after reload re-permuting the source
4281 register to its original value.
4282 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
4283 (*vsx_le_perm_store_v8hi): Likewise.
4284 (*vsx_le_perm_store_v16qi): Likewise.
4286 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4288 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
4291 2013-11-04 Jakub Jelinek <jakub@redhat.com>
4293 PR tree-optimization/58946
4294 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
4295 bbs with bbinfo[idx].op != NULL before all blocks with
4296 bbinfo[idx].op == NULL.
4298 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
4300 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
4301 (avr_dump_double_int_hex): Likewise.
4302 (avr_log_vadump): Remove %D and %X handling.
4303 * config/avr/avr.c (avr_double_int_push_digit): Delete.
4304 (avr_map_op_t): Change map from double_int to unsigned int.
4305 (avr_map_op): Update accordingly.
4306 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
4307 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
4308 unsigned ints rather than double_ints.
4310 2013-11-03 Marek Polacek <polacek@redhat.com>
4312 Implement -fsanitize=vla-bound.
4313 * opts.c (common_handle_option): Handle vla-bound.
4314 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
4315 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
4316 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
4318 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4320 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
4323 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
4325 * config/i386/constraints.md (Ts, Tv): New address constrains.
4326 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
4327 constraint for address_no_seg_operand.
4328 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
4329 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
4330 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
4331 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
4332 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
4333 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
4334 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
4335 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
4336 constraint for vsib_address_operand.
4338 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
4340 * gcse.c (pre_delete): Remove references to regmove from comments.
4341 * recog.c: (validate_replace_rtx_1): Likewise.
4342 * config/rl78/rl78.c: Likewise.
4343 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
4344 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
4345 * common/config/mmix/mmix-common.c: Likewise.
4347 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
4349 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
4350 * gimplify.c (gimplify_compound_lval): Likewise.
4351 * graphite-clast-to-gimple.c (gloog): Likewise.
4352 * graphite-dependences.c (loop_is_parallel_p): Likewise.
4353 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4354 (limit_scop); Likewise.
4355 (build_scops): Likewise.
4356 (dot_scop): Likewise.
4357 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
4358 (build_scop_drs): Likewise.
4359 (insert_stmts): Likewise.
4360 (insert_out_of_ssa_copy): Likewise.
4361 (remove_phi): Likewise.
4362 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
4363 * hw-doloop.c (discover_loop): Likewise.
4364 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
4365 * tree-dfa.c (dump_enumerated_decls): Likewise.
4366 * tree-if-conv.c (if_convertable_loop_p): Likewise.
4367 * tree-inline.c (tree_function_versioning): Likewise.
4368 * tree-loop-distribution.c (build_rdg): Likewise.
4369 (rdg_flag_vertex_and_dependent): Likewise.
4370 (distribute_loop): Likewise.
4371 * tree-parloops.c (loop_parallel_p): Likewise.
4372 (eliminate_local_variables): Likewise.
4373 (separate_decls_in_region): Likewise.
4374 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
4375 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4376 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
4377 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
4378 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
4379 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
4380 (vectorizable_condition): Likewise.
4382 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
4384 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
4385 * configure: Regenerate.
4386 * config/i386/i386.md (*movdi_internal): Change
4387 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
4388 (*movdf_internal): Ditto.
4389 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
4390 * config/i386/sse.md (vec_concatv2di): Output interunit movq
4391 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
4393 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
4395 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
4398 2013-10-31 David Malcolm <dmalcolm@redhat.com>
4400 Automated part of renaming of symtab_node_base to symtab_node.
4402 Patch autogenerated by rename_symtab.py from
4403 https://github.com/davidmalcolm/gcc-refactoring-scripts
4404 revision 58bb219cc090b2f4516a9297d868c245495ee622
4405 with ChangeLog entry fixed up by hand.
4407 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
4409 (cgraph_node_for_asm): Likewise.
4410 * cgraph.h (symtab_node_base): Likewise.
4411 (cgraph_node): Likewise.
4412 (varpool_node): Likewise.
4413 (is_a_helper <cgraph_node>::test): Likewise.
4414 (is_a_helper <varpool_node>::test): Likewise.
4415 (symtab_nodes): Likewise.
4416 (symtab_register_node): Likewise.
4417 (symtab_unregister_node): Likewise.
4418 (symtab_remove_node): Likewise.
4419 (symtab_get_node): Likewise.
4420 (symtab_node_for_asm): Likewise.
4421 (symtab_node_asm_name): Likewise.
4422 (symtab_node_name): Likewise.
4423 (symtab_insert_node_to_hashtable): Likewise.
4424 (symtab_add_to_same_comdat_group): Likewise.
4425 (symtab_dissolve_same_comdat_group_list): Likewise.
4426 (dump_symtab_node): Likewise.
4427 (debug_symtab_node): Likewise.
4428 (dump_symtab_base): Likewise.
4429 (verify_symtab_node): Likewise.
4430 (verify_symtab_base): Likewise.
4431 (symtab_used_from_object_file_p): Likewise.
4432 (symtab_alias_ultimate_target): Likewise.
4433 (symtab_resolve_alias): Likewise.
4434 (fixup_same_cpp_alias_visibility): Likewise.
4435 (symtab_for_node_and_aliases): Likewise.
4436 (symtab_nonoverwritable_alias): Likewise.
4437 (availability symtab_node_availability): Likewise.
4438 (symtab_semantically_equivalent_p): Likewise.
4439 (fixup_same_cpp_alias_visibility): Likewise.
4440 (symtab_prevail_in_asm_name_hash): Likewise.
4442 (varpool): Likewise.
4443 (varpool_first_variable): Likewise.
4444 (varpool_next_variable): Likewise.
4445 (varpool_first_static_initializer): Likewise.
4446 (varpool_next_static_initializer): Likewise.
4447 (varpool_first_defined_variable): Likewise.
4448 (varpool_next_defined_variable): Likewise.
4449 (cgraph_first_defined_function): Likewise.
4450 (cgraph_next_defined_function): Likewise.
4451 (cgraph_first_function): Likewise.
4452 (cgraph_next_function): Likewise.
4453 (cgraph_first_function_with_gimple_body): Likewise.
4454 (cgraph_next_function_with_gimple_body): Likewise.
4455 (symtab_alias_target): Likewise.
4456 (symtab_real_symbol_p): Likewise.
4457 (symtab_can_be_discarded): Likewise.
4458 * cgraphbuild.c (mark_address): Likewise.
4459 (mark_load): Likewise.
4460 (mark_store): Likewise.
4461 * cgraphunit.c (decide_is_symbol_needed): Likewise.
4463 (enqueue_node): Likewise.
4464 (referred_to_p): Likewise.
4465 (cgraph_process_same_body_aliases): Likewise.
4466 (analyze_functions): Likewise.
4467 (handle_alias_pairs): Likewise.
4468 (output_weakrefs): Likewise.
4469 (compile): Likewise.
4470 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
4471 * ipa-inline-analysis.c (inline_write_summary): Likewise.
4472 * ipa-prop.c (remove_described_reference): Likewise.
4473 (try_decrement_rdesc_refcount): Likewise.
4474 (ipa_edge_duplication_hook): Likewise.
4475 * ipa-ref.c (ipa_record_reference): Likewise.
4476 (ipa_maybe_record_reference): Likewise.
4477 (ipa_clone_ref): Likewise.
4478 (ipa_clone_references): Likewise.
4479 (ipa_clone_referring): Likewise.
4480 (ipa_find_reference): Likewise.
4481 (ipa_remove_stmt_references): Likewise.
4482 (ipa_clear_stmts_in_references): Likewise.
4483 * ipa-ref.h (symtab_node_base): Likewise.
4484 (ipa_ref): Likewise.
4485 (ipa_record_reference): Likewise.
4486 (ipa_maybe_record_reference): Likewise.
4487 (ipa_clone_references): Likewise.
4488 (ipa_clone_referring): Likewise.
4489 (ipa_clone_ref): Likewise.
4490 (ipa_find_reference): Likewise.
4491 (ipa_remove_stmt_references): Likewise.
4492 (ipa_clear_stmts_in_references): Likewise.
4493 * ipa-reference.c (ipa_reference_write_optimization_summary):
4495 * ipa.c (enqueue_node): Likewise.
4496 (process_references): Likewise.
4497 (walk_polymorphic_call_targets): Likewise.
4498 (symtab_remove_unreachable_nodes): Likewise.
4499 (address_taken_from_non_vtable_p): Likewise.
4500 (comdat_can_be_unshared_p_1): Likewise.
4501 (comdat_can_be_unshared_p): Likewise.
4502 (can_replace_by_local_alias): Likewise.
4503 (function_and_variable_visibility): Likewise.
4504 * is-a.h: Likewise (within example in comment).
4505 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
4506 (lto_symtab_encoder_encode): Likewise.
4507 (lto_symtab_encoder_delete_node): Likewise.
4508 (lto_symtab_encoder_in_partition_p): Likewise.
4509 (lto_set_symtab_encoder_in_partition): Likewise.
4510 (output_refs): Likewise.
4511 (compute_ltrans_boundary): Likewise.
4512 (output_symtab): Likewise.
4513 (input_node): Likewise.
4514 (input_ref): Likewise.
4515 (input_edge): Likewise.
4516 (input_cgraph_1): Likewise.
4517 (input_refs): Likewise.
4518 (output_cgraph_opt_summary): Likewise.
4519 (input_node_opt_summary): Likewise.
4520 (input_cgraph_opt_section): Likewise.
4521 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
4523 * lto-streamer-out.c (lto_output): Likewise.
4524 (output_symbol_p): Likewise.
4525 (produce_symtab): Likewise.
4526 * lto-streamer.h (lto_encoder_entry): Likewise.
4527 (lto_free_function_in_decl_state_for_node): Likewise.
4528 (lto_symtab_encoder_encode): Likewise.
4529 (lto_symtab_encoder_delete_node): Likewise.
4530 (lto_symtab_encoder_in_partition_p): Likewise.
4531 (lto_set_symtab_encoder_in_partition): Likewise.
4532 (lto_symtab_encoder_lookup): Likewise.
4533 (lsei_node): Likewise.
4534 (lto_symtab_encoder_deref): Likewise.
4535 * symtab.c (symtab_hash): Likewise.
4536 (assembler_name_hash): Likewise.
4537 (symtab_nodes): Likewise.
4538 (hash_node): Likewise.
4539 (eq_node): Likewise.
4540 (hash_node_by_assembler_name): Likewise.
4541 (eq_assembler_name): Likewise.
4542 (insert_to_assembler_name_hash): Likewise.
4543 (unlink_from_assembler_name_hash): Likewise.
4544 (symtab_prevail_in_asm_name_hash): Likewise.
4545 (symtab_register_node): Likewise.
4546 (symtab_insert_node_to_hashtable): Likewise.
4547 (symtab_unregister_node): Likewise.
4548 (symtab_get_node): Likewise.
4549 (symtab_remove_node): Likewise.
4550 (symtab_initialize_asm_name_hash): Likewise.
4551 (symtab_node_for_asm): Likewise.
4552 (symtab_add_to_same_comdat_group): Likewise.
4553 (symtab_dissolve_same_comdat_group_list): Likewise.
4554 (symtab_node_asm_name): Likewise.
4555 (symtab_node_name): Likewise.
4556 (dump_symtab_base): Likewise.
4557 (dump_symtab_node): Likewise.
4558 (dump_symtab): Likewise.
4559 (debug_symtab_node): Likewise.
4560 (verify_symtab_base): Likewise.
4561 (verify_symtab_node): Likewise.
4562 (verify_symtab): Likewise.
4563 (symtab_used_from_object_file_p): Likewise.
4564 (symtab_node_availability): Likewise.
4565 (symtab_alias_ultimate_target): Likewise.
4566 (fixup_same_cpp_alias_visibility): Likewise.
4567 (symtab_resolve_alias): Likewise.
4568 (symtab_for_node_and_aliases): Likewise.
4569 (symtab_for_node_and_aliases): Likewise.
4570 (symtab_nonoverwritable_alias_1): Likewise.
4571 (symtab_nonoverwritable_alias): Likewise.
4572 (symtab_semantically_equivalent_p): Likewise.
4573 * value-prof.c (init_node_map): Likewise.
4574 * varasm.c (find_decl): Likewise.
4575 * varpool.c (varpool_node_for_asm): Likewise.
4576 (varpool_remove_unreferenced_decls): Likewise.
4578 2013-10-31 David Malcolm <dmalcolm@redhat.com>
4580 Manual part of renaming of symtab_node_base to symtab_node.
4582 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
4583 clashes with the preferred name for the base class.
4584 (const_symtab_node): Remove redundant typedef.
4586 2013-10-31 Jakub Jelinek <jakub@redhat.com>
4588 * optabs.c (expand_vec_perm): Avoid vector mode punning
4589 SUBREGs in SET_DEST.
4590 * expmed.c (store_bit_field_1): Likewise.
4591 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
4592 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
4593 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
4594 * config/i386/i386.c (ix86_expand_vector_move_misalign,
4595 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
4596 ix86_expand_sse_unpack, ix86_expand_args_builtin,
4597 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
4598 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
4599 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
4600 expand_vec_perm_vpshufb2_vpermq,
4601 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
4602 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
4603 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
4604 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
4607 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
4609 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
4610 Use gcc_unreachable for unhandled modes. Do not check results of
4611 expand_simple_binop. If not expanded to target, move the result.
4613 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
4614 Shiva Chen <shiva0217@gmail.com>
4616 * config.gcc (nds32*-*-*): Add nds32 target.
4617 * config/nds32/nds32.c: New file.
4618 * config/nds32/nds32.h: New file.
4619 * config/nds32/nds32.md: New file.
4620 * config/nds32/constants.md: New file.
4621 * config/nds32/constraints.md: New file.
4622 * config/nds32/iterators.md: New file.
4623 * config/nds32/nds32-doubleword.md: New file.
4624 * config/nds32/nds32-intrinsic.md: New file.
4625 * config/nds32/nds32_intrinsic.h: New file.
4626 * config/nds32/nds32-modes.def: New file.
4627 * config/nds32/nds32-multiple.md: New file.
4628 * config/nds32/nds32.opt: New file.
4629 * config/nds32/nds32-opts.h: New file.
4630 * config/nds32/nds32-protos.h: New file.
4631 * config/nds32/nds32-peephole2.md: New file.
4632 * config/nds32/pipelines.md: New file.
4633 * config/nds32/predicates.md: New file.
4634 * config/nds32/t-mlibs: New file.
4635 * common/config/nds32: New directory and files.
4637 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
4638 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
4639 * doc/install.texi (Cross-Compiler-Specific Options): Document
4640 --with-nds32-lib for nds32 target.
4641 * doc/extend.texi (Function Attributes, Target Builtins): Document
4642 nds32 specific attributes.
4644 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
4646 * lra-constraints (process_alt_operands): Use the result
4647 elimination register for operand when matching constraints.
4649 2013-10-31 Jakub Jelinek <jakub@redhat.com>
4651 * tree-vrp.c (maybe_set_nonzero_bits): New function.
4652 (remove_range_assertions): Call it.
4654 * tree.c (tree_ctz): New function.
4655 * tree.h (tree_ctz): New prototype.
4656 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
4657 first argument from tree to const_tree.
4658 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
4659 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
4660 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
4662 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
4663 * tree-vect-loop.c (vect_analyze_loop_operations,
4664 vect_transform_loop): Don't force scalar loop for bound just because
4665 number of iterations is unknown, only do it if it is not known to be
4666 a multiple of vectorization_factor.
4667 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
4669 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
4670 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
4671 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
4672 (set_nonzero_bits, get_nonzero_bits): New prototypes.
4673 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
4674 a default def isn't partially constant.
4675 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
4676 is known to be partially zero.
4677 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
4678 to see if a default def isn't partially constant.
4679 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
4680 creation of a range, if VR_RANGE, try to improve nonzero_bits from
4682 (set_nonzero_bits, get_nonzero_bits): New functions.
4684 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
4685 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
4686 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
4687 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
4688 uses but in the condition and ASSERT_EXPR and the other successor of
4689 the predecessor bb is __builtin_unreachable (), set_range_info of the
4690 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
4692 2013-10-31 Martin Jambor <mjambor@suse.cz>
4694 PR rtl-optimization/58934
4696 2013-10-30 Martin Jambor <mjambor@suse.cz>
4697 PR rtl-optimization/10474
4698 * ira.c (find_moveable_pseudos): Do not calculate dominance info
4700 (interesting_dest_for_shprep): New function.
4701 (split_live_ranges_for_shrink_wrap): Likewise.
4702 (ira): Calculate dominance info and df analysis. Call
4703 split_live_ranges_for_shrink_wrap.
4705 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4706 Yury Gribov <y.gribov@samsung.com>
4709 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
4710 shadow pointer to avoid clobbering the main one.
4712 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4714 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
4716 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
4719 * ira-color.c (update_costs_from_copies): Add new parameter. Use
4720 it for calling update_costs_from_allocno.
4721 (assign_hard_reg): Call restore_costs_from_copies only for
4722 !retry_p. Pass new argument to update_costs_from_copies.
4723 (color_pass): Pass new argument to update_costs_from_copies.
4724 (ira_mark_allocation_change): Ditto.
4726 2013-10-30 Sharad Singhai <singhai@google.com>
4729 * opts.c (common_handle_option): Remove deprecated option
4730 -ftree-vectorizer-verbose.
4731 * doc/invoke.texi (Debugging Options): Ditto.
4732 * opts-global.c (handle_common_deferred_options): Ditto.
4733 (dump_remap_tree_vectorizer_verbose): Delete.
4734 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
4736 2013-10-30 DJ Delorie <dj@redhat.com>
4738 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
4739 that take no arguments.
4741 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
4744 * reload1.c (update_eliminables_and_spill): New function, broken
4746 (reload): Use it. Check for frame size change after frame size
4747 alignment, and call update_eliminables_and_spill first if continue-ing.
4749 2013-10-30 Cong Hou <congh@google.com>
4752 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
4753 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
4754 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
4756 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
4758 PR rtl-optimization/58369
4759 * reload1.c (compute_reload_subreg_offset): New function.
4760 (choose_reload_regs): Use it to pass endian-correct
4761 offset to subreg_regno_offset.
4763 2013-10-30 Tobias Burnus <burnus@net-b.de>
4766 * tree-cfg.c (replace_loop_annotate): Replace warning by
4769 2013-10-30 Jason Merrill <jason@redhat.com>
4771 * configure.ac (loose_warn): Add -Wno-format if
4772 --disable-build-format-warnings.
4774 2013-10-30 David Malcolm <dmalcolm@redhat.com>
4776 * cgraphunit.c (analyze_functions): Split symtab_node declarations
4777 onto multiple lines to make things easier for rename_symtab.py.
4779 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
4780 (symtab_semantically_equivalent_p): Likewise.
4782 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
4785 * lra.c (check_rtl): Remove address check before LRA work.
4787 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
4789 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
4790 POINTER_PLUS_EXPR in the defining statement.
4792 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
4794 * regmove.c: Remove.
4795 * tree-pass.h (make_pass_regmove): Remove.
4796 * timevar.def (TV_REGMOVE): Remove.
4797 * passes.def (pass_regmove): Remove.
4798 * opts.c (default_options_table): Remove entry for regmove.
4799 * doc/passes.texi: Remove regmove pass description.
4800 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
4802 (-fdump-rtl-regmove): Ditto.
4803 * common.opt (foptimize-register-move, fregmove): Ignore.
4804 * Makefile.in (OBJS): Remove regmove.o.
4805 * regmove.c: Remove.
4806 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
4808 (struct ira_allocno) New member allocno_prefs.
4809 (ALLOCNO_PREFS): New macro.
4810 (ira_prefs, ira_prefs_num): New external vars.
4811 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
4812 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
4813 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
4815 (ira_add_allocno_copy_to_list): Remove prototype.
4816 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
4817 (ira_pref_iterator): New type.
4818 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
4819 (FOR_EACH_PREF): New macro.
4820 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
4821 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
4823 (ira_setup_alts): New function.
4824 (decrease_live_ranges_number): New function.
4825 (ira): Call the above function.
4826 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
4827 (ira_create_allocno): Initialize allocno prefs.
4828 (pref_pool, pref_vec): New static vars.
4829 (initiate_prefs, find_allocno_pref, ira_create_pref): New
4831 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
4832 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
4833 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
4834 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
4835 (ira_add_allocno_copy_to_list): Make static. Rename to
4836 add_allocno_copy_to_list.
4837 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
4838 swap_allocno_copy_ends_if_necessary.
4839 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
4840 ira_remove_allocno_prefs.
4841 (ira_flattening): Ditto.
4842 (ira_build): Call initiate_prefs, print_prefs.
4843 (ira_destroy): Call finish_prefs.
4844 * ira-color.c (struct update_cost_record): New.
4845 (struct allocno_color_data): Add new member update_cost_records.
4846 (update_cost_record_pool): New static var.
4847 (init_update_cost_records, get_update_cost_record): New functions.
4848 (free_update_cost_record_list, finish_update_cost_records): Ditto.
4849 (struct update_cost_queue_elem): Add member from.
4850 (initiate_cost_update): Call init_update_cost_records.
4851 (finish_cost_update): Call finish_update_cost_records.
4852 (queue_update_cost, get_next_update_cost): Add new param from.
4853 (Update_allocno_cost, update_costs_from_allocno): New functions.
4854 (update_costs_from_prefs): Ditto.
4855 (update_copy_costs): Rename to update_costs_from_copies.
4856 (restore_costs_from_copies): New function.
4857 (update_conflict_hard_regno_costs): Don't go back.
4858 (assign_hard_reg): Call restore_costs_from_copies. Add printing
4860 (pop_allocnos): Add priniting more debug info.
4861 (color_allocnos): Remove prefs for conflicting hard regs.
4862 Call update_costs_from_prefs.
4863 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
4864 (get_dup_num): Rename, modify, and move to ira.c
4865 (process_regs_for_copy): Add prefs.
4866 (add_insn_allocno_copies): Put src as first arg of
4867 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
4868 * ira-costs.c (record_reg_classes): Modify and move code into
4869 record_operands_costs.
4870 (find_costs_and_classes): Create prefs for the hard reg of small
4872 (process_bb_node_for_hard_reg_moves): Add prefs.
4874 2013-10-30 Richard Biener <rguenther@suse.de>
4877 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
4878 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
4880 (pre_and_rev_post_order_compute): ... which now wraps it.
4881 * graph.c (draw_cfg_nodes_no_loops): Use
4882 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
4885 2013-10-30 Christian Bruel <christian.bruel@st.com>
4887 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
4888 (sh_expand_cmpstr): Handle known align and schedule improvements.
4889 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
4890 * config/sh/sh.md (cmpstrnsi): New pattern.
4892 2013-10-30 Martin Jambor <mjambor@suse.cz>
4894 PR rtl-optimization/10474
4895 * ira.c (find_moveable_pseudos): Do not calculate dominance info
4897 (interesting_dest_for_shprep): New function.
4898 (split_live_ranges_for_shrink_wrap): Likewise.
4899 (ira): Calculate dominance info and df analysis. Call
4900 split_live_ranges_for_shrink_wrap.
4902 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4905 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
4907 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4909 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
4910 * tree.h (POINTER_BOUNDS_P): New.
4911 (BOUNDED_TYPE_P): New.
4913 (pointer_bounds_type_node): New.
4914 * tree.c (build_common_tree_nodes): Initialize
4915 pointer_bounds_type_node.
4916 * gimple.h (gimple_call_get_nobnd_arg_index): New.
4917 (gimple_call_num_nobnd_args): New.
4918 (gimple_call_nobnd_arg): New.
4919 (gimple_return_retbnd): New.
4920 (gimple_return_set_retbnd): New
4921 * gimple.c (gimple_build_return): Increase number of ops
4922 for return statement.
4923 (gimple_call_get_nobnd_arg_index): New.
4924 * gimple-pretty-print.c (dump_gimple_return): Print second op.
4926 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4928 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
4929 with "chkp ctor" and "bnd_legacy" attributes.
4930 * gimplify.c (gimplify_init_constructor): Avoid infinite
4931 loop during gimplification of bounds initializer.
4933 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4935 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
4936 (handle_bnd_legacy): New.
4937 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
4938 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
4941 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
4943 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
4944 (BT_FN_PTR_CONST_PTR): New.
4945 (BT_FN_CONST_PTR_CONST_PTR): New.
4946 (BT_FN_PTR_CONST_PTR_SIZE): New.
4947 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
4948 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
4949 (BT_FN_VOID_CONST_PTR_SIZE): New.
4950 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
4951 * chkp-builtins.def: New.
4952 * builtins.def: include chkp-builtins.def.
4953 (DEF_CHKP_BUILTIN): New.
4954 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
4955 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
4956 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
4957 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
4958 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
4959 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
4960 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
4961 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
4962 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
4963 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
4964 * common.opt (fcheck-pointer-bounds): New.
4965 * toplev.c (process_options): Check Pointer Bounds Checker is
4967 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
4969 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4971 * target.def (builtin_chkp_function): New.
4972 (chkp_bound_type): New.
4973 (chkp_bound_mode): New.
4974 (fn_abi_va_list_bounds_size): New.
4975 (load_bounds_for_arg): New.
4976 (store_bounds_for_arg): New.
4977 * targhooks.h (default_load_bounds_for_arg): New.
4978 (default_store_bounds_for_arg): New.
4979 (default_fn_abi_va_list_bounds_size): New.
4980 (default_chkp_bound_type): New.
4981 (default_chkp_bound_mode): New.
4982 (default_builtin_chkp_function): New.
4983 * targhooks.c (default_load_bounds_for_arg): New.
4984 (default_store_bounds_for_arg): New.
4985 (default_fn_abi_va_list_bounds_size): New.
4986 (default_chkp_bound_type): New.
4987 (default_chkp_bound_mode); New.
4988 (default_builtin_chkp_function): New.
4989 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
4990 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
4991 (TARGET_STORE_BOUNDS_FOR_ARG): New.
4992 (TARGET_BUILTIN_CHKP_FUNCTION): New.
4993 (TARGET_CHKP_BOUND_TYPE): New.
4994 (TARGET_CHKP_BOUND_MODE): New.
4995 * doc/tm.texi: Regenerated.
4996 * langhooks.h (lang_hooks): Add chkp_supported field.
4997 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
4998 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
5000 2013-10-29 Andrew Pinski <apinski@cavium.com>
5002 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
5003 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
5004 fails, combining the branches anyways.
5005 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
5006 increases the number of combinings.
5007 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
5009 2013-10-29 Mike Stump <mikestump@comcast.net>
5011 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
5012 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
5013 (make_vector_mode): Increase namebuf to 16.
5014 (emit_insn_modes_h): When processing BImode, don't
5015 also match partial int modes.
5016 (emit_class_narrowest_mode): Likewise.
5018 * config/bfin/bfin-modes.def: Add precision to PDI.
5019 * config/m32c/m32c-modes.def: Add precision to PSI.
5020 * config/msp430/msp430-modes.def: Add precision to PSI.
5021 * config/rs6000/rs6000-modes.def: Add precision to PTI.
5022 * config/sh/sh-modes.def: Add precision to PSI and PDI.
5024 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
5027 * config/sh/sh.md (*addc): Rename existing variations to ...
5028 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
5029 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
5030 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
5031 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
5033 2013-10-29 Teresa Johnson <tejohnson@google.com>
5036 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
5037 insanities when updating probabilities.
5039 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5041 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
5042 prettyprinter for cgraph_node to reflect the conversion of the
5043 symtable types to a C++ class hierarchy: it now *is* a
5044 symtab_node_base, rather than having one (named "symbol").
5046 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
5048 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
5049 __cilkrts_pop_frame. If matched, then return true for built-in
5051 (expand_builtin): Added BUILT_IN_CILK_DETACH and
5052 BUILT_IN_CILK_POP_FRAME case.
5053 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
5054 (lhs_cilk_detect_spawn): Likewise.
5055 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
5056 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
5057 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
5058 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
5059 (LANG_HOOKS_CILKPLUS): Likewise.
5060 * tree.h (CILK_SPAWN_FN): Likewise.
5061 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
5062 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
5063 (OBJS): Added cilk-common.o.
5064 (BUILTINS_DEF): Added cilk-builtins.def.
5065 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
5066 (lhd_cilk_detect_spawn): Likewise.
5067 * langhooks.h (lang_hooks_for_cilkplus): New struct.
5068 (struct lang_hooks): Added new field called "cilkplus."
5069 * cilk-common.c: New file.
5071 * cilk-builtins.def: Likewise.
5072 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
5073 "__cilk" macro and set it to 200.
5074 * function.h (struct function::cilk_frame_decl): New field.
5075 (struct function::is_cilk_function): Likewise.
5076 (struct function::calls_cilk_spawn): Likewise.
5077 * gimplify.c (gimplify_call_expr): Added a check if the function call
5078 being gimplified is a spawn detach point. If so, then add pop_frame
5079 and detach function calls.
5080 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
5081 for gimplifying _Cilk_spawn and _Cilk_sync statements.
5082 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
5083 function. If so, added a _Cilk_sync and gimplified it.
5084 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
5085 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
5086 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
5088 (can_inline_edge_p): Prevent inling of spawnee function.
5089 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
5090 for functions that use Cilk keywords.
5091 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
5092 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
5093 CILK_SYNC_STMT cases.
5094 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
5096 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
5097 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
5098 * passes.texi (Cilk Keywords): New section that describes the compiler
5099 code changes for handling Cilk Keywords.
5101 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5103 Patch autogenerated by refactor_symtab.py from
5104 https://github.com/davidmalcolm/gcc-refactoring-scripts
5105 revision 58bb219cc090b2f4516a9297d868c245495ee622
5107 * asan.c (asan_finish_file): Update for conversion of symtab types to
5108 a true class hierarchy.
5109 * cfgexpand.c (estimated_stack_frame_size): Likewise.
5110 * cgraph.c (cgraph_get_body): Likewise.
5111 (cgraph_get_create_real_symbol_node): Likewise.
5112 (verify_cgraph_node): Likewise.
5113 (verify_edge_corresponds_to_fndecl): Likewise.
5114 (verify_edge_count_and_frequency): Likewise.
5115 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
5116 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
5117 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
5118 (cgraph_node_cannot_return): Likewise.
5119 (cgraph_set_pure_flag_1): Likewise.
5120 (cgraph_set_const_flag_1): Likewise.
5121 (cgraph_set_nothrow_flag_1): Likewise.
5122 (cgraph_make_node_local_1): Likewise.
5123 (cgraph_for_node_and_aliases): Likewise.
5124 (cgraph_for_node_thunks_and_aliases): Likewise.
5125 (cgraph_node_can_be_local_p): Likewise.
5126 (cgraph_node_cannot_be_local_p_1): Likewise.
5127 (cgraph_function_body_availability): Likewise.
5128 (dump_cgraph_node): Likewise.
5129 (cgraph_rtl_info): Likewise.
5130 (cgraph_mark_address_taken_node): Likewise.
5131 (cgraph_remove_node): Likewise.
5132 (cgraph_release_function_body): Likewise.
5133 (cgraph_update_edges_for_call_stmt_node): Likewise.
5134 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5135 (cgraph_make_edge_direct): Likewise.
5136 (cgraph_resolve_speculation): Likewise.
5137 (cgraph_speculative_call_info): Likewise.
5138 (cgraph_turn_edge_to_speculative): Likewise.
5139 (cgraph_create_edge_1): Likewise.
5140 (cgraph_set_call_stmt): Likewise.
5141 (cgraph_node_for_asm): Likewise.
5142 (cgraph_add_thunk): Likewise.
5143 (cgraph_same_body_alias): Likewise.
5144 (cgraph_create_function_alias): Likewise.
5145 (cgraph_create_node): Likewise.
5146 (cgraph_create_empty_node): Likewise.
5147 (record_function_versions): Likewise.
5148 (used_from_object_file_p): Likewise.
5149 * cgraph.h (symtab_can_be_discarded): Likewise.
5150 (symtab_real_symbol_p): Likewise.
5151 (cgraph_mark_force_output_node): Likewise.
5152 (cgraph_edge_recursive_p): Likewise.
5153 (symtab_alias_target): Likewise.
5154 (varpool_all_refs_explicit_p): Likewise.
5155 (varpool_can_remove_if_no_refs): Likewise.
5156 (cgraph_only_called_directly_or_aliased_p): Likewise.
5157 (cgraph_next_function_with_gimple_body): Likewise.
5158 (cgraph_first_function_with_gimple_body): Likewise.
5159 (cgraph_function_with_gimple_body_p): Likewise.
5160 (cgraph_next_function): Likewise.
5161 (cgraph_first_function): Likewise.
5162 (cgraph_next_defined_function): Likewise.
5163 (cgraph_first_defined_function): Likewise.
5164 (varpool_next_defined_variable): Likewise.
5165 (varpool_first_defined_variable): Likewise.
5166 (varpool_next_static_initializer): Likewise.
5167 (varpool_first_static_initializer): Likewise.
5168 (varpool_next_variable): Likewise.
5169 (varpool_first_variable): Likewise.
5170 (varpool_node_name): Likewise.
5171 (varpool): Likewise.
5173 (is_a_helper <varpool_node>::test): Likewise.
5174 (is_a_helper <cgraph_node>::test): Likewise.
5175 (varpool_variable_node): Likewise.
5176 (cgraph_function_or_thunk_node): Likewise.
5177 (varpool_alias_target): Likewise.
5178 (cgraph_alias_target): Likewise.
5179 (cgraph_node_name): Likewise.
5180 (varpool_node_asm_name): Likewise.
5181 (cgraph_node_asm_name): Likewise.
5182 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
5183 (cgraph_rebuild_references): Likewise.
5184 (rebuild_cgraph_edges): Likewise.
5185 (record_eh_tables): Likewise.
5186 (build_cgraph_edges): Likewise.
5187 (mark_store): Likewise.
5188 (mark_load): Likewise.
5189 (mark_address): Likewise.
5190 (record_type_list): Likewise.
5191 (record_reference): Likewise.
5192 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
5193 (cgraph_materialize_clone): Likewise.
5194 (cgraph_function_versioning): Likewise.
5195 (cgraph_copy_node_for_versioning): Likewise.
5196 (update_call_expr): Likewise.
5197 (cgraph_find_replacement_node): Likewise.
5198 (cgraph_create_virtual_clone): Likewise.
5199 (cgraph_clone_node): Likewise.
5200 * cgraphunit.c (compile): Likewise.
5201 (output_weakrefs): Likewise.
5202 (output_in_order): Likewise.
5203 (expand_function): Likewise.
5204 (assemble_thunks_and_aliases): Likewise.
5205 (expand_thunk): Likewise.
5206 (mark_functions_to_output): Likewise.
5207 (handle_alias_pairs): Likewise.
5208 (analyze_functions): Likewise.
5209 (walk_polymorphic_call_targets): Likewise.
5210 (varpool_finalize_decl): Likewise.
5211 (process_function_and_variable_attributes): Likewise.
5212 (cgraph_process_same_body_aliases): Likewise.
5213 (analyze_function): Likewise.
5214 (cgraph_add_new_function): Likewise.
5215 (cgraph_finalize_function): Likewise.
5216 (referred_to_p): Likewise.
5217 (cgraph_reset_node): Likewise.
5218 (cgraph_process_new_functions): Likewise.
5219 (enqueue_node): Likewise.
5220 (decide_is_symbol_needed): Likewise.
5221 * coverage.c (coverage_compute_profile_id): Likewise.
5222 * dbxout.c (dbxout_expand_expr): Likewise.
5223 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
5224 (reference_to_unused): Likewise.
5225 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
5226 * gimplify.c (unvisit_body): Likewise.
5227 (unshare_body): Likewise.
5228 * ipa-cp.c (ipcp_generate_summary): Likewise.
5229 (ipcp_decision_stage): Likewise.
5230 (identify_dead_nodes): Likewise.
5231 (decide_whether_version_node): Likewise.
5232 (decide_about_value): Likewise.
5233 (perhaps_add_new_callers): Likewise.
5234 (create_specialized_node): Likewise.
5235 (update_profiling_info): Likewise.
5236 (ipcp_propagate_stage): Likewise.
5237 (estimate_local_effects): Likewise.
5238 (good_cloning_opportunity_p): Likewise.
5239 (devirtualization_time_bonus): Likewise.
5240 (propagate_constants_accross_call): Likewise.
5241 (initialize_node_lattices): Likewise.
5242 (ipcp_cloning_candidate_p): Likewise.
5243 (determine_versionability): Likewise.
5244 (print_all_lattices): Likewise.
5245 (print_lattice): Likewise.
5246 (ipcp_discover_new_direct_edges): Likewise.
5247 * ipa-devirt.c (ipa_devirt): Likewise.
5248 (likely_target_p): Likewise.
5249 (update_type_inheritance_graph): Likewise.
5250 (possible_polymorphic_call_target_p): Likewise.
5251 (dump_possible_polymorphic_call_targets): Likewise.
5252 (devirt_variable_node_removal_hook): Likewise.
5253 (record_binfo): Likewise.
5254 (maybe_record_node): Likewise.
5255 (build_type_inheritance_graph): Likewise.
5256 * ipa-inline-analysis.c (inline_write_summary): Likewise.
5257 (inline_generate_summary): Likewise.
5258 (inline_analyze_function): Likewise.
5259 (do_estimate_growth): Likewise.
5260 (simple_edge_hints): Likewise.
5261 (estimate_node_size_and_time): Likewise.
5262 (estimate_edge_devirt_benefit): Likewise.
5263 (compute_inline_parameters): Likewise.
5264 (estimate_function_body_sizes): Likewise.
5265 (compute_bb_predicates): Likewise.
5266 (initialize_inline_failed): Likewise.
5267 (dump_inline_summary): Likewise.
5268 (dump_inline_edge_summary): Likewise.
5269 * ipa-inline-transform.c (inline_transform): Likewise.
5270 (preserve_function_body_p): Likewise.
5271 (save_inline_function_body): Likewise.
5272 (inline_call): Likewise.
5273 (clone_inlined_nodes): Likewise.
5274 (can_remove_node_now_p): Likewise.
5275 (can_remove_node_now_p_1): Likewise.
5276 * ipa-inline.c (early_inliner): Likewise.
5277 (early_inline_small_functions): Likewise.
5278 (inline_always_inline_functions): Likewise.
5279 (ipa_inline): Likewise.
5280 (flatten_function): Likewise.
5281 (inline_small_functions): Likewise.
5282 (speculation_useful_p): Likewise.
5283 (recursive_inlining): Likewise.
5284 (update_caller_keys): Likewise.
5285 (reset_edge_caches): Likewise.
5286 (update_edge_key): Likewise.
5287 (edge_badness): Likewise.
5288 (relative_time_benefit): Likewise.
5289 (want_inline_self_recursive_call_p): Likewise.
5290 (want_inline_small_function_p): Likewise.
5291 (want_early_inline_function_p): Likewise.
5292 (num_calls): Likewise.
5293 (can_early_inline_edge_p): Likewise.
5294 (can_inline_edge_p): Likewise.
5295 (report_inline_failed_reason): Likewise.
5296 * ipa-profile.c (ipa_profile): Likewise.
5297 (ipa_propagate_frequency): Likewise.
5298 (ipa_propagate_frequency_1): Likewise.
5299 (ipa_profile_generate_summary): Likewise.
5300 * ipa-prop.c (ipcp_transform_function): Likewise.
5301 (read_replacements_section): Likewise.
5302 (ipa_prop_read_section): Likewise.
5303 (ipa_modify_call_arguments): Likewise.
5304 (ipa_print_node_params): Likewise.
5305 (propagate_controlled_uses): Likewise.
5306 (update_indirect_edges_after_inlining): Likewise.
5307 (remove_described_reference): Likewise.
5308 (ipa_make_edge_direct_to_target): Likewise.
5309 (ipa_analyze_node): Likewise.
5310 (ipa_analyze_params_uses): Likewise.
5311 (ipa_compute_jump_functions): Likewise.
5312 (ipa_get_callee_param_type): Likewise.
5313 (ipa_print_node_jump_functions): Likewise.
5314 (ipa_initialize_node_params): Likewise.
5315 (ipa_populate_param_decls): Likewise.
5316 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
5317 (write_agg_replacement_chain): Likewise.
5318 (ipa_write_node_info): Likewise.
5319 (ipa_edge_duplication_hook): Likewise.
5320 (try_decrement_rdesc_refcount): Likewise.
5321 * ipa-pure-const.c (propagate_nothrow): Likewise.
5322 (propagate_pure_const): Likewise.
5323 (pure_const_read_summary): Likewise.
5324 (pure_const_write_summary): Likewise.
5325 (analyze_function): Likewise.
5326 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
5327 (ipa_ref_referring_ref_list): Likewise.
5328 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
5329 (ipa_remove_stmt_references): Likewise.
5330 (ipa_find_reference): Likewise.
5331 (ipa_dump_referring): Likewise.
5332 (ipa_dump_references): Likewise.
5333 (ipa_record_reference): Likewise.
5334 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
5335 (ipa_reference_write_optimization_summary): Likewise.
5336 (write_node_summary_p): Likewise.
5337 (propagate): Likewise.
5338 (read_write_all_from_decl): Likewise.
5339 (generate_summary): Likewise.
5340 (analyze_function): Likewise.
5341 (propagate_bits): Likewise.
5342 (ipa_reference_get_not_written_global): Likewise.
5343 (ipa_reference_get_not_read_global): Likewise.
5344 * ipa-split.c (execute_split_functions): Likewise.
5345 (split_function): Likewise.
5346 * ipa-utils.c (ipa_merge_profiles): Likewise.
5347 (dump_cgraph_node_set): Likewise.
5348 (ipa_reverse_postorder): Likewise.
5349 (ipa_edge_within_scc): Likewise.
5350 (ipa_get_nodes_in_cycle): Likewise.
5351 (ipa_free_postorder_info): Likewise.
5352 (ipa_reduced_postorder): Likewise.
5353 (searchc): Likewise.
5354 (recursive_call_p): Likewise.
5355 * ipa.c (ipa_cdtor_merge): Likewise.
5356 (record_cdtor_fn): Likewise.
5357 (function_and_variable_visibility): Likewise.
5358 (varpool_externally_visible_p): Likewise.
5359 (cgraph_externally_visible_p): Likewise.
5360 (comdat_can_be_unshared_p): Likewise.
5361 (comdat_can_be_unshared_p_1): Likewise.
5362 (address_taken_from_non_vtable_p): Likewise.
5363 (ipa_discover_readonly_nonaddressable_vars): Likewise.
5364 (symtab_remove_unreachable_nodes): Likewise.
5365 (walk_polymorphic_call_targets): Likewise.
5366 (process_references): Likewise.
5367 (enqueue_node): Likewise.
5368 (has_addr_references_p): Likewise.
5369 (cgraph_non_local_node_p_1): Likewise.
5370 * is-a.h (varpool_analyze_node): Likewise.
5371 * lto-cgraph.c (input_symtab): Likewise.
5372 (merge_profile_summaries): Likewise.
5373 (input_cgraph_1): Likewise.
5374 (input_edge): Likewise.
5375 (input_varpool_node): Likewise.
5376 (input_node): Likewise.
5377 (input_overwrite_node): Likewise.
5378 (compute_ltrans_boundary): Likewise.
5379 (output_refs): Likewise.
5380 (lto_output_varpool_node): Likewise.
5381 (lto_output_node): Likewise.
5382 (reachable_from_other_partition_p): Likewise.
5383 (referenced_from_other_partition_p): Likewise.
5384 (lto_output_edge): Likewise.
5385 (output_node_opt_summary): Likewise.
5386 (add_node_to): Likewise.
5387 (reachable_from_this_partition_p): Likewise.
5388 (lto_set_symtab_encoder_in_partition): Likewise.
5389 (lto_symtab_encoder_in_partition_p): Likewise.
5390 (lto_set_symtab_encoder_encode_initializer): Likewise.
5391 (lto_symtab_encoder_encode_initializer_p): Likewise.
5392 (lto_set_symtab_encoder_encode_body): Likewise.
5393 (lto_symtab_encoder_encode_body_p): Likewise.
5394 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
5396 * lto-streamer-in.c (lto_read_body): Likewise.
5397 (fixup_call_stmt_edges): Likewise.
5398 (fixup_call_stmt_edges_1): Likewise.
5399 * lto-streamer-out.c (produce_symtab): Likewise.
5400 (output_symbol_p): Likewise.
5401 (write_symbol): Likewise.
5402 (lto_output): Likewise.
5403 (copy_function): Likewise.
5404 (output_function): Likewise.
5405 * passes.c (function_called_by_processed_nodes_p): Likewise.
5406 (ipa_write_optimization_summaries): Likewise.
5407 (ipa_write_summaries): Likewise.
5408 (do_per_function_toporder): Likewise.
5409 (do_per_function): Likewise.
5410 (dump_passes): Likewise.
5411 * symtab.c (symtab_semantically_equivalent_p): Likewise.
5412 (symtab_nonoverwritable_alias): Likewise.
5413 (symtab_nonoverwritable_alias_1): Likewise.
5414 (symtab_for_node_and_aliases): Likewise.
5415 (symtab_resolve_alias): Likewise.
5416 (fixup_same_cpp_alias_visibility): Likewise.
5417 (symtab_alias_ultimate_target): Likewise.
5418 (symtab_used_from_object_file_p): Likewise.
5419 (verify_symtab_base): Likewise.
5420 (dump_symtab_base): Likewise.
5421 (symtab_node_name): Likewise.
5422 (symtab_node_asm_name): Likewise.
5423 (symtab_dissolve_same_comdat_group_list): Likewise.
5424 (symtab_add_to_same_comdat_group): Likewise.
5425 (symtab_unregister_node): Likewise.
5426 (symtab_insert_node_to_hashtable): Likewise.
5427 (symtab_register_node): Likewise.
5428 (unlink_from_assembler_name_hash): Likewise.
5429 (insert_to_assembler_name_hash): Likewise.
5430 (eq_assembler_name): Likewise.
5431 (hash_node_by_assembler_name): Likewise.
5432 (eq_node): Likewise.
5433 (hash_node): Likewise.
5434 * toplev.c (wrapup_global_declaration_2): Likewise.
5435 * trans-mem.c (ipa_tm_execute): Likewise.
5436 (ipa_tm_transform_clone): Likewise.
5437 (ipa_tm_transform_transaction): Likewise.
5438 (ipa_tm_transform_calls_redirect): Likewise.
5439 (ipa_tm_insert_gettmclone_call): Likewise.
5440 (ipa_tm_insert_irr_call): Likewise.
5441 (ipa_tm_create_version): Likewise.
5442 (ipa_tm_create_version_alias): Likewise.
5443 (ipa_tm_mark_forced_by_abi_node): Likewise.
5444 (ipa_tm_mark_force_output_node): Likewise.
5445 (ipa_tm_diagnose_tm_safe): Likewise.
5446 (ipa_tm_mayenterirr_function): Likewise.
5447 (ipa_tm_scan_irr_function): Likewise.
5448 (ipa_tm_note_irrevocable): Likewise.
5449 (ipa_tm_scan_calls_clone): Likewise.
5450 (get_cg_data): Likewise.
5451 * tree-eh.c (tree_could_trap_p): Likewise.
5452 * tree-emutls.c (ipa_lower_emutls): Likewise.
5453 (create_emultls_var): Likewise.
5454 (lower_emutls_function_body): Likewise.
5455 (gen_emutls_addr): Likewise.
5456 (emutls_decl): Likewise.
5457 (new_emutls_decl): Likewise.
5458 * tree-inline.c (tree_function_versioning): Likewise.
5459 (optimize_inline_calls): Likewise.
5460 (expand_call_inline): Likewise.
5461 (estimate_num_insns): Likewise.
5462 (copy_bb): Likewise.
5463 (delete_unreachable_blocks_update_callgraph): Likewise.
5464 * tree-nested.c (gimplify_all_functions): Likewise.
5465 (create_nesting_tree): Likewise.
5466 (check_for_nested_with_variably_modified): Likewise.
5467 * tree-pretty-print.c (dump_function_header): Likewise.
5468 * tree-profile.c (tree_profiling): Likewise.
5469 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
5470 (modify_function): Likewise.
5471 (convert_callers): Likewise.
5472 (convert_callers_for_node): Likewise.
5473 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
5474 (associate_varinfo_to_alias): Likewise.
5475 (create_variable_info_for): Likewise.
5476 (get_constraint_for_ssa_var): Likewise.
5477 * tree-vectorizer.c (increase_alignment): Likewise.
5478 * tree.c (find_decls_types_in_var): Likewise.
5479 (find_decls_types_in_node): Likewise.
5480 (free_lang_data_in_decl): Likewise.
5481 * value-prof.c (gimple_ic_transform): Likewise.
5482 (gimple_ic): Likewise.
5483 (check_ic_target): Likewise.
5484 (init_node_map): Likewise.
5485 * varasm.c (decl_binds_to_current_def_p): Likewise.
5486 (default_binds_local_p_1): Likewise.
5487 (dump_tm_clone_pairs): Likewise.
5488 (assemble_alias): Likewise.
5489 (find_decl): Likewise.
5490 (mark_decl_referenced): Likewise.
5491 * varpool.c (varpool_for_node_and_aliases): Likewise.
5492 (varpool_extra_name_alias): Likewise.
5493 (varpool_create_variable_alias): Likewise.
5494 (add_new_static_var): Likewise.
5495 (varpool_finalize_named_section_flags): Likewise.
5496 (varpool_remove_unreferenced_decls): Likewise.
5497 (enqueue_node): Likewise.
5498 (varpool_assemble_decl): Likewise.
5499 (assemble_aliases): Likewise.
5500 (varpool_analyze_node): Likewise.
5501 (cgraph_variable_initializer_availability): Likewise.
5502 (varpool_add_new_variable): Likewise.
5503 (ctor_for_folding): Likewise.
5504 (dump_varpool_node): Likewise.
5505 (varpool_remove_initializer): Likewise.
5506 (varpool_remove_node): Likewise.
5507 (varpool_node_for_decl): Likewise.
5508 (varpool_create_empty_node): Likewise.
5509 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
5510 (ix86_get_function_versions_dispatcher): Likewise.
5512 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5514 * cgraph.h (symtab_node_base): Convert to a class;
5515 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
5516 chain_next/prev from symtab_node_def.
5517 (cgraph_node): Inherit from symtab_node; add GTY option
5518 tag ("SYMTAB_FUNCTION").
5519 (varpool_node): Inherit from symtab_node; add GTY option
5520 tag ("SYMTAB_VARIABLE").
5521 (symtab_node_def): Remove.
5522 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
5523 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
5524 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
5525 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
5527 * ipa-ref.h (symtab_node_def): Drop.
5528 (symtab_node): Change underlying type from symtab_node_def to
5530 (const_symtab_node): Likwise.
5532 * is-a.h: Update examples in comment.
5534 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
5535 (assembler_name_hash): Likewise.
5537 2013-10-29 Martin Liska <marxin.liska@gmail.com>
5539 * doc/tree-ssa.texi (gimple_phi_result): Document.
5540 (gimple_phi_num_args, gimple_phi_arg): Likewise.
5541 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
5542 (PHI_RESULT, PHI_NUM_ARGS): Remove.
5543 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
5545 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
5547 * expr.h: Revert change and include tree-core.h.
5548 * rtl.h: Revert change and don't include tree-core.h.
5550 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
5552 * config/darwin.c: Include gimple.h.
5553 * config/i386/winnt.c: Likewise.
5555 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
5557 PR tree-optimization/19831
5558 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
5560 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
5562 * tree-outof-ssa.h: Remove include files.
5563 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
5565 * tree-ssa-coalesce.c: Likewise.
5566 * cfgexpand.c: Likewise.
5567 * tree-ssa-ter.c: Likewise.
5568 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
5569 * lto-streamer.h: Likewise.
5570 * cgraphbuild.c: Add gimple.h to include list.
5571 * data-streamer-in.c: Likewise.
5572 * ipa-cp.c: Likewise.
5573 * tree-streamer.c: Likewise.
5574 * lto-compress.c: Likewise.
5575 * ipa-reference.c: Likewise.
5576 * data-streamer-out.c: Likewise.
5577 * lto-cgraph.c: Likewise.
5578 * cgraphclones.c: Likewise.
5579 * ipa-utils.c: Likewise.
5580 * data-streamer.c: Likewise.
5581 * ipa-split.c: Likewise.
5582 * lto-section-in.c: Likewise.
5583 * tree-streamer-out.c: Likewise.
5584 * ipa-prop.c: Likewise.
5585 * tree-streamer-in.c: Likewise.
5586 * symtab.c: Likewise.
5587 * opts-global.c: Likewise.
5588 * lto-opts.c: Likewise.
5589 * lto-section-out.c: Likewise.
5590 * lto-streamer.c: Likewise.
5591 * rtl.h: Add tree-core.h to include list.
5592 * expr.h: Remove tree-core.h from include list.
5593 * gimple.h: Likewise.
5594 * ipa-utils.h: Likewise.
5595 * streamer-hooks.h: Likewise.
5596 * streamer-hooks.c: Include input.h.
5598 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5600 * config/arm/arm.c (cortexa7_extra_costs): New table.
5601 (arm_cortex_a7_tune): New.
5602 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
5604 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
5606 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
5608 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5610 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
5611 to use autogenerated markers for a class-hierarchy, every class
5612 must have a GTY marker.
5613 * gengtype.h (struct type): Add linked list of subclasses to
5614 the "s" member of the union.
5615 (add_subclass): New decl.
5616 * gengtype-state.c (read_state_struct_type): Set up subclass
5618 * gengtype.c (get_ultimate_base_class): New.
5619 (add_subclass): New.
5620 (new_structure): Set up subclass linked list.
5621 (set_gc_used_type): Propagate usage information to subclasses.
5622 (output_mangled_typename): Use get_ultimate_base_class.
5623 (walk_subclasses): Use the subclass linked list, avoiding an
5624 O(N^2) when writing out all types.
5625 (walk_type): Issue an error if the base class is missing a tag,
5626 rather than generating bogus C code. Add a gcc_unreachable
5627 default case, in case people omit tags from concrete subclasses,
5628 or get the values wrong.
5629 (write_func_for_structure): Issue an error for subclasses for
5630 which the base doesn't have a "desc", since otherwise the
5631 autogenerated routines for the base would silently fail to visit
5632 any subclass fields.
5633 (write_root): Use get_ultimate_base_class, tweaking constness of
5634 tp to match that function's signature.
5636 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5638 * doc/gty.texi (GTY Options): Add note about inheritance to
5639 description of desc and tag.
5640 (Inheritance and GTY): New.
5642 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5644 * gengtype-parse.c (opts_have): Drop "static" so that
5645 we can use this from gengtype.c.
5646 * gengtype.c (set_gc_used_type): Mark any base class as used;
5647 update field traversal to visit inherited fields.
5648 (output_mangled_typename): Convert references to classes within
5649 an inheritance hierarchy to reference the ultimate base class,
5650 since only it will have gt_ functions.
5651 (get_string_option): New.
5652 (walk_subclasses): New.
5653 (walk_type): Treat GTY structs that have a "desc" as being the
5654 root of an inheritance hierarchy. Generate a switch on it
5655 within the marking function which walks all subclasses, adding
5656 cases for them via walk_subclasses. For subclasses, visit all
5657 fields of the type (including inherited ones).
5658 (write_func_for_structure): Don't write fns for subclasses, only
5659 for the ultimate base class within an inheritance hierarchy.
5660 Subclasses-marking will be handled by the base class marking functions.
5661 (write_types): Likewise.
5662 (write_local_func_for_structure): Likewise.
5663 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
5664 a "tag" option (and are thus concrete subclasses).
5665 (write_root): Use the marker function for the ultimate base class.
5666 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
5667 (opts_have): Add declaration.
5669 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
5671 * lra-spills.c (lra_final_code_change): Remove useless move insns
5672 originated from moves of pseudos.
5674 2013-10-28 Jeff Law <law@redhat.com>
5676 * lower-subreg.c (resolve_simple_move): Fix comment typo.
5678 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
5680 * df-scan.c (df_collection_rec): Adjust.
5681 (copy_defs): New constant.
5682 (copy_uses): Likewise.
5683 (copy_eq_uses): Likewise.
5684 (copy_mw): Likewise.
5685 (copy_all): Likewise.
5686 (df_insn_rescan): Adjust.
5687 (df_notes_rescan): Likewise.
5688 (df_swap_refs): Likewise.
5689 (df_sort_and_compress_refs): Likewise.
5690 (df_sort_and_compress_mws): Likewise.
5691 (df_install_refs): Likewise.
5692 (df_install_mws): Likewise.
5693 (df_refs_add_to_chains): Add flags parameter controlling which vectors
5695 (df_bb_refs_record): Adjust.
5696 (df_record_entry_block_defs): Likewise.
5697 (df_record_exit_block_defs): Likewise.
5698 (df_refs_verify): Likewise.
5699 (df_mws_verify): Likewise.
5700 (df_insn_refs_verify): Likewise.
5701 (df_bb_verify): Likewise.
5702 * ipa-pure-const.c (finish_state): Remove.
5703 (propagate): Adjust.
5704 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
5705 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
5706 var-tracking.c: Adjust.
5707 * vec.c (stack_vecs): Remove.
5708 (register_stack_vec): Likewise.
5709 (stack_vec_register_index): Likewise.
5710 (unregister_stack_vec): Likewise.
5711 * vec.h (struct va_stack): Remove.
5712 (struct vec<T, A, vl_ptr>): Specialize as
5713 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
5714 allocation strategy compatable with the vl_ptr layout.
5715 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
5716 specialization anyway.
5717 (class stack_vec): New class.
5718 (vec_stack_alloc): Remove.
5719 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
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 (prefetch): Allow TARGET_AVX512PF.
5732 (*prefetch_avx512pf_<mode>): New.
5733 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
5734 (avx512f_maskcmp<mode>3): Ditto.
5735 (vashrv16si3): Ditto.
5737 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5738 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5739 Sergey Lega <sergey.s.lega@intel.com>
5740 Anna Tikhonova <anna.tikhonova@intel.com>
5741 Ilya Tocar <ilya.tocar@intel.com>
5742 Andrey Turetskiy <andrey.turetskiy@intel.com>
5743 Ilya Verbin <ilya.verbin@intel.com>
5744 Kirill Yukhin <kirill.yukhin@intel.com>
5745 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5747 * config/i386/i386.md (any_truncate): New.
5748 (trunsuffix): Ditto.
5749 * config/i386/predicates.md (const_8_to_9_operand): New.
5750 (const_10_to_11_operand): Ditto.
5751 (const_12_to_13_operand): Ditto.
5752 (const_14_to_15_operand): Ditto.
5753 (const_16_to_19_operand): Ditto.
5754 (const_20_to_23_operand): Ditto.
5755 (const_24_to_27_operand): Ditto.
5756 (const_28_to_31_operand): Ditto.
5757 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
5758 (cvtusi2<ssescalarmodesuffix>32): New.
5759 (cvtusi2<ssescalarmodesuffix>64): Ditto.
5760 (ufloatv16siv16sf2): Ditto.
5761 (avx512f_fix_notruncv16sfv16si): Ditto.
5762 (avx512f_ufix_notruncv16sfv16si): Ditto.
5763 (avx512f_vcvtss2usi): Ditto.
5764 (avx512f_vcvtss2usiq): Ditto.
5765 (avx512f_vcvttss2usi): Ditto.
5766 (avx512f_vcvttss2usiq): Ditto.
5767 (avx512f_vcvtsd2usi): Ditto.
5768 (avx512f_vcvtsd2usiq): Ditto.
5769 (avx512f_vcvttsd2usi): Ditto.
5770 (avx512f_vcvttsd2usiq): Ditto.
5771 (ufloatv8siv8df): Ditto.
5772 (avx512f_cvtdq2pd512_2): Ditto.
5773 (avx512f_cvtpd2dq512): Ditto.
5774 (avx512f_ufix_notruncv8dfv8si): Ditto.
5775 (avx512f_cvtpd2ps512): Ditto.
5776 (vec_unpacks_lo_v16sf): Ditto.
5777 (vec_unpacks_hi_v16sf): Ditto.
5778 (vec_unpacks_float_hi_v16si): Ditto.
5779 (vec_unpacks_float_lo_v16si): Ditto.
5780 (avx512f_unpckhps512): Ditto.
5781 (avx512f_unpcklps512): Ditto.
5782 (avx512f_movshdup512): Ditto.
5783 (avx512f_movsldup512): Ditto.
5784 (vec_extract_lo_v32hi): Ditto.
5785 (vec_extract_hi_v32hi): Ditto.
5786 (vec_extract_lo_v64qi): Ditto.
5787 (vec_extract_hi_v64qi): Ditto.
5788 (avx512f_unpckhpd512): Ditto.
5789 (avx512f_movddup512): Ditto.
5790 (avx512f_unpcklpd512): Ditto.
5791 (*avx512f_unpcklpd512): Ditto.
5792 (avx512f_shufps512_1): Ditto.
5793 (avx512f_shufpd512_1): Ditto.
5794 (avx512f_interleave_highv8di): Ditto.
5795 (avx512f_interleave_lowv8di): Ditto.
5796 (PMOV_DST_MODE): Ditto.
5797 (pmov_src_mode): Ditto.
5798 (pmov_src_lower): Ditto.
5800 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
5801 (*avx512f_<code>v8div16qi2): Ditto.
5802 (*avx512f_<code>v8div16qi2_store): Ditto.
5803 (vec_widen_umult_even_v16si): Ditto.
5804 (*vec_widen_umult_even_v16si): Ditto.
5805 (vec_widen_smult_even_v16si): Ditto.
5806 (*vec_widen_smult_even_v16si): Ditto.
5807 (avx512f_interleave_highv16si): Ditto.
5808 (avx512f_interleave_lowv16si): Ditto.
5809 (avx512f_<code>v16qiv16si2): Ditto.
5810 (avx512f_<code>v16hiv16si2): Ditto.
5811 (avx512f_<code>v8qiv8di2): Ditto.
5812 (avx512f_<code>v8hiv8di2): Ditto.
5813 (avx512f_<code>v8siv8di2): Ditto.
5814 (avx512cd_maskb_vec_dupv8di): Ditto.
5815 (avx512cd_maskw_vec_dupv16si): Ditto.
5816 (avx512f_vcvtph2ps512): Ditto.
5817 (avx512f_vcvtps2ph512): Ditto.
5818 (VEC_EXTRACT_MODE): Extened with wider modes.
5819 (VEC_PERM_AVX2): Ditto.
5820 (VEC_PERM_CONST): Ditto.
5822 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
5824 * config/arc/arc.c (arc_ccfsm_post_advance):
5825 Add comment about TYPE_RETURN.
5827 2013-10-28 Bin Cheng <bin.cheng@arm.com>
5829 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
5830 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
5831 (strip_offset): Convert offset to unsigned number.
5833 2013-10-27 Tom de Vries <tom@codesourcery.com>
5835 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
5836 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
5838 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
5840 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
5841 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
5842 (TARGET_BIG_ENDIAN): New macro.
5843 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
5844 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
5845 * config/sh/sh.c: Likewise.
5846 * config/sh/sh.h: Likewise.
5848 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
5850 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
5851 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
5853 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
5855 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
5857 (cmpstr_t, cmpstrsi): Fix formatting.
5859 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
5862 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
5863 addressing, do not use general_operand for memory operands.
5865 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
5868 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
5869 * lra-spills.c (lra_final_code_change): Remove useless move insns.
5871 2013-10-26 Jeff Law <law@redhat.com>
5873 * predict.c (PRED_MUDFLAP): Remove.
5874 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
5876 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
5877 (OBJS): Remove tree-nomudflap.o
5878 (GTFILES): Remove tree-mudflap.c
5879 * builtins.c (expand_builtin_alloc): Remove mudflap support.
5880 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
5881 (mfwrap_spec, mflib_spec): Likewise.
5882 (cpp_unique_options, cc1_options, static_specs): Likewise.
5883 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
5884 * passes.def: Likewise.
5885 * toplev.c (compile_file, process_options): Likewise.
5886 * tree-inline.c (copy_tree_r): Likewise.
5887 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
5888 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
5889 (build_constant_desc, output_constant_def_contents): Likewise.
5890 (categorize_decl_for_section): Likewise.
5891 * tree-mudflap.c: Removed.
5892 * tree-mudflap.h: Removed.
5893 * tree-nomudflap.c: Removed.
5894 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
5895 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
5896 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
5897 * config/sol2.h (MFLIB_SPEC): Likewise.
5898 * doc/install.texi: Remove mudflap references.
5899 * doc/passes.texi: Similarly.
5900 * doc/sourcebuild.texi: Similarly.
5901 * doc/invoke.texi: Remove mudlfap related options.
5903 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
5905 PR rtl-optimization/58759
5906 * lra-constraints.c (lra_constraints): Remove wrong condition to
5907 remove insn setting up an equivalent pseudo.
5909 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
5911 * config/rs6000/rs6000-protos.h
5912 (rs6000_secondary_memory_needed_mode): New prototype.
5913 * config/rs6000/rs6000.c: Include ira.h.
5914 (TARGET_LRA_P): Redefine.
5915 (rs6000_legitimate_offset_address_p): Call
5916 legitimate_constant_pool_address_p in strict mode for LRA.
5917 (rs6000_legitimate_address_p): Ditto.
5918 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
5919 (rs6000_emit_move): Add LRA version of code to generate load/store
5921 (rs6000_secondary_memory_needed_mode): New.
5922 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
5923 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
5924 constants, memory, and FP registers.
5925 (rs6000_lra_p): New.
5926 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
5927 * config/rs6000/rs6000.opt (mlra): New option.
5928 * lra-spills.c (lra_final_code_change): Remove useless move insns.
5930 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
5932 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
5933 has_single_use () and not do the conversion if has_single_use ()
5934 returns false for the multiplication result.
5936 2013-10-25 David Malcolm <dmalcolm@redhat.com>
5938 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
5939 to "NODE", since this works on a "tree", not an
5941 (CONSTANT_CLASS_P): Likewise.
5944 (INDIRECT_REF_P): Likewise.
5945 (REFERENCE_CLASS_P): Likewise.
5946 (COMPARISON_CLASS_P): Likewise.
5947 (UNARY_CLASS_P): Likewise.
5948 (BINARY_CLASS_P): Likewise.
5949 (STATEMENT_CLASS_P): Likewise.
5950 (VL_EXP_CLASS_P): Likewise.
5951 (EXPRESSION_CLASS_P): Likewise.
5952 (IS_TYPE_OR_DECL_P): Likewise.
5954 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
5956 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
5957 ADDR_EXPR in the defining statement.
5959 2013-10-25 Richard Biener <rguenther@suse.de>
5961 PR tree-optimization/58626
5962 * tree-loop-distribution.c (enum rdg_dep_type): Remove
5963 anti_dd, output_dd and input_dd.
5964 (struct rdg_edge): Remove level and relation members.
5965 (RDGE_LEVEL, RDGE_RELATION): Remove.
5966 (dot_rdg_1): Adjust.
5967 (create_rdg_edge_for_ddr): Remove.
5968 (create_rdg_edges_for_scalar): Adjust.
5969 (create_edge_for_control_dependence): Likewise.
5970 (create_rdg_edges): Split into ...
5971 (create_rdg_flow_edges): ... this
5972 (create_rdg_cd_edges): ... and this.
5974 (build_rdg): Likewise, do not compute data dependences or
5976 (pg_add_dependence_edges): New function.
5978 (distribute_loop): First apply all non-dependence based
5979 partition mergings. Then compute dependences between partitions
5980 and merge and order partitions according to them.
5982 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
5984 PR rtl-optimization/58831
5985 * alias.c (init_alias_analysis): At the beginning of each iteration,
5986 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
5988 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
5990 * recog.c (search_ofs): New static variable moved from...
5991 (peep2_find_free_register): ...here.
5992 (peephole2_optimize): Initialize it.
5994 2013-10-25 Tobias Burnus <burnus@net-b.de>
5996 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
5998 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
6000 * config/i386/i386.h (TARGET_MPX): New define.
6001 (TARGET_MPX_P): Ditto.
6003 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
6005 * config/i386/constraints.md (B): New.
6008 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
6009 * config/i386/i386-modes.def (BND32): New.
6011 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
6012 * config/i386/i386.c (isa_opts): Add mmpx.
6013 (regclass_map): Add bound registers.
6014 (dbx_register_map): Likewise.
6015 (dbx64_register_map): Likewise.
6016 (svr4_dbx_register_map): Likewise.
6018 (ix86_option_override_internal): Support MPX ISA.
6019 (ix86_conditional_register_usage): Support bound registers.
6020 (print_reg): Likewise.
6021 (ix86_code_end): Add MPX bnd prefix.
6022 (output_set_got): Likewise.
6023 (ix86_output_call_insn): Likewise.
6024 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
6025 (ix86_print_operand_punct_valid_p): Likewise.
6026 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
6028 (ix86_class_likely_spilled_p): Add bound regs support.
6029 (ix86_hard_regno_mode_ok): Likewise.
6030 (x86_order_regs_for_local_alloc): Likewise.
6031 (ix86_bnd_prefixed_insn_p): New.
6032 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
6033 (FIXED_REGISTERS): Add bound registers.
6034 (CALL_USED_REGISTERS): Likewise.
6035 (REG_ALLOC_ORDER): Likewise.
6036 (HARD_REGNO_NREGS): Likewise.
6038 (VALID_BND_REG_MODE): New.
6039 (FIRST_BND_REG): New.
6040 (LAST_BND_REG): New.
6041 (reg_class): Add BND_REGS.
6042 (REG_CLASS_NAMES): Likewise.
6043 (REG_CLASS_CONTENTS): Likewise.
6045 (ANY_BND_REG_P): New.
6047 (HI_REGISTER_NAMES): Add bound registers.
6048 * config/i386/i386.md (UNSPEC_BNDMK): New.
6049 (UNSPEC_BNDMK_ADDR): New.
6050 (UNSPEC_BNDSTX): New.
6051 (UNSPEC_BNDLDX): New.
6052 (UNSPEC_BNDLDX_ADDR): New.
6053 (UNSPEC_BNDCL): New.
6054 (UNSPEC_BNDCU): New.
6055 (UNSPEC_BNDCN): New.
6056 (UNSPEC_MPX_FENCE): New.
6059 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6060 (length_immediate): Likewise.
6061 (prefix_0f): Likewise.
6063 (prefix_rep): Check for bnd prefix.
6064 (length_nobnd): New.
6065 (length): Use length_nobnd if specified.
6070 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
6073 (simple_return_internal): Likewise.
6074 (simple_return_pop_internal): Likewise.
6075 (*indirect_jump): Add MPX bnd prefix.
6076 (*tablejump_1): Likewise.
6077 (simple_return_internal_long): Likewise.
6078 (simple_return_indirect_internal): Likewise.
6082 (*mov<mode>_internal_mpx): New.
6083 (<mode>_<bndcheck>): New.
6084 (*<mode>_<bndcheck>): New.
6089 * config/i386/predicates.md (lea_address_operand): Rename to...
6090 (address_no_seg_operand): ... this.
6091 (address_mpx_no_base_operand): New.
6092 (address_mpx_no_index_operand): New.
6093 (bnd_mem_operator): New.
6094 * config/i386/i386.opt (mmpx): New.
6095 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
6096 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
6098 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
6100 * mode-classes.def (MODE_POINTER_BOUNDS): New.
6101 * tree.def (POINTER_BOUNDS_TYPE): New.
6102 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
6103 (POINTER_BOUNDS_MODE): New.
6104 (make_pointer_bounds_mode): New.
6105 * machmode.h (POINTER_BOUNDS_MODE_P): New.
6106 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
6107 (layout_type): Support POINTER_BOUNDS_TYPE.
6108 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
6109 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
6110 (type_contains_placeholder_1): Likewise.
6111 * tree.h (POINTER_BOUNDS_TYPE_P): New.
6112 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
6113 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
6115 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
6117 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
6118 mode of address computation when calling memory_address_addr_space.
6120 2013-08-24 Richard Henderson <rth@twiddle.net>
6123 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
6124 instead of create_convert_operand_to.
6125 (maybe_emit_sync_lock_test_and_set): Likewise.
6126 (expand_atomic_compare_and_swap): Likewise.
6127 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
6129 2013-08-24 Sriraman Tallam <tmsriram@google.com>
6131 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
6132 Change param_is to use the struct and not the pointer to the struct.
6134 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
6136 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
6137 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
6138 Move to targhooks.c.
6139 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
6140 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
6141 Relocate from gimplify.c.
6142 * targhooks.h: Add 2 prototypes.
6143 * tree.h: Delete 2 prototypes.
6145 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
6147 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
6148 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
6150 2013-10-24 Cong Hou <congh@google.com>
6152 * convert.c (convert_to_real): Guard those unsafe math function
6153 convertions with flag_unsafe_math_optimizations. Handle sqrt()
6156 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
6159 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
6161 (cgraph_create_edge): Use the new argument.
6162 (cgraph_create_indirect_edge): Likewise.
6164 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
6166 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
6168 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
6169 changes statep->state.
6171 2013-10-24 Tobias Burnus <burnus@net-b.de>
6174 * tree-cfg.c (replace_loop_annotate): New function.
6175 (execute_build_cfg): Call it.
6176 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
6177 * internal-fn.c (expand_ANNOTATE): New function.
6178 * internal-fn.def (ANNOTATE): Define as new internal function.
6179 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
6180 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
6181 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
6182 * doc/extend.texi (Pragmas): Document #pragma ivdep.
6183 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
6185 2013-10-17 Ian Bolton <ian.bolton@arm.com>
6186 Marcus Shawcroft <marcus.shawcroft@arm.com>
6188 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
6189 Special case reload SP+C into none GENERAL_REGS.
6191 2013-10-24 Michael Matz <matz@suse.de>
6193 * gengtype.c (is_file_equal): Check that files will be same length.
6195 2013-10-25 Christian Bruel <christian.bruel@st.com>
6197 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
6198 * config/sh/t-sh (sh-mem.o): New rule.
6199 * config/sh/sh-mem.cc (expand_block_move): Moved here.
6200 (sh_expand_cmpstr): New function.
6201 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
6202 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
6203 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
6204 (rotlhi3_8): Rename.
6206 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6208 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
6209 * Makefile.in (CXXDEPMODE): Assign and change users.
6210 (CCDEPMODE): Delete.
6211 * configure: Regenerate.
6213 2013-10-23 David Malcolm <dmalcolm@redhat.com>
6215 * gengtype-parse.c (require_without_advance): New.
6216 (type): For GTY-marked types that are not GTY((user)), parse any
6217 base classes, requiring them to be single-inheritance, and not
6218 be templates. For non-GTY-marked types and GTY((user)),
6219 continue to skip over any C++ inheritance specification.
6220 * gengtype-state.c (state_writer::write_state_struct_type):
6221 Write base class of type (if any).
6222 (read_state_struct_type): Read base class of type (if any).
6223 * gengtype.c (new_structure): Add a "base_class" parameter.
6224 (create_optional_field_): Update for new parameter to new_structure.
6225 (adjust_field_rtx_def): Likewise.
6226 (adjust_field_tree_exp): Likewise.
6227 * gengtype.h (struct type): Add "base_class" field to the s
6229 (new_structure): Add "base" parameter.
6231 2013-10-23 Sriraman Tallam <tmsriram@google.com>
6234 * config/i386/i386.c (ix86_option_override_internal):
6235 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
6236 (ix86_valid_target_attribute_tree):
6237 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
6238 Change TARGET_SSE to TARGET_SSE_P (opts->...)
6240 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
6242 * tree-ssa-loop.h: Remove include files.
6243 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
6244 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
6245 * graphite-clast-to-gimple.c: Likewise.
6246 * graphite-scop-detection.c: Likewise.
6247 * graphite-sese-to-poly.c: Likewise.
6248 * ipa-inline-analysis.c: Likewise.
6249 * ipa-pure-const.c: Likewise.
6250 * loop-init.c: Likewise.
6251 * passes.c: Likewise.
6252 * predict.c: Likewise.
6253 * tree-cfg.c: Likewise.
6254 * tree-cfgcleanup.c: Likewise.
6255 * tree-chrec.c: Likewise.
6256 * tree-data-ref.c: Likewise.
6257 * tree-loop-distribution.c: Likewise.
6258 * tree-parloops.c: Likewise.
6259 * tree-predcom.c: Likewise.
6260 * tree-scalar-evolution.c: Likewise.
6261 * tree-ssa-address.c: Likewise.
6262 * tree-ssa.c: Likewise.
6263 * tree-ssa-dce.c: Likewise.
6264 * tree-ssa-loop.c: Likewise.
6265 * tree-ssa-loop-im.c: Likewise.
6266 * tree-ssa-loop-ivcanon.c: Likewise.
6267 * tree-ssa-loop-ivopts.c: Likewise.
6268 * tree-ssa-loop-manip.c: Likewise.
6269 * tree-ssa-loop-niter.c: Likewise.
6270 * tree-ssa-loop-prefetch.c: Likewise.
6271 * tree-ssa-loop-unswitch.c: Likewise.
6272 * tree-ssa-reassoc.c: Likewise.
6273 * tree-vect-data-refs.c: Likewise.
6274 * tree-vect-loop.c: Likewise.
6275 * tree-vect-loop-manip.c: Likewise.
6276 * tree-vectorizer.c: Likewise.
6277 * tree-vect-stmts.c: Likewise.
6278 * tree-vrp.c: Likewise.
6280 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6282 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
6284 2013-10-23 Jakub Jelinek <jakub@redhat.com>
6286 PR tree-optimization/58775
6287 PR tree-optimization/58791
6288 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
6289 (insert_stmt_after): Rewritten, don't move the stmt, but really
6291 (get_stmt_uid_with_default): Remove.
6292 (build_and_add_sum): Use insert_stmt_after and
6293 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
6294 (update_range_test): Set uid on stmts added by
6295 force_gimple_operand_gsi. Don't immediately modify statements
6296 in inter-bb optimization, just update oe->op values.
6297 (optimize_range_tests): Return bool whether any changed have been made.
6298 (update_ops): New function.
6299 (struct inter_bb_range_test_entry): New type.
6300 (maybe_optimize_range_tests): Perform statement changes here.
6301 (not_dominated_by, appears_later_in_bb, get_def_stmt,
6302 ensure_ops_are_available): Remove.
6303 (find_insert_point): Rewritten.
6304 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
6305 return LHS of the (new resp. old) stmt. Don't call
6306 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
6307 instead of last, move new stmt at the right place.
6308 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
6309 (negate_value): Likewise. Set uids.
6310 (break_up_subtract_bb): Initialize uids.
6311 (reassociate_bb): Adjust rewrite_expr_tree caller.
6312 (do_reassoc): Don't call renumber_gimple_stmt_uids.
6314 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
6317 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
6318 TARGET_32BIT final condition.
6319 (mulsi3_internal2 and splitter): Same.
6321 2013-10-23 Jeff Law <law@redhat.com>
6323 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
6324 through joiner blocks with abnormal outgoing edges.
6326 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
6327 Add parameter JOINERS, to allow/disallow threading through joiner
6329 (thread_block): New. Call thread_block_1.
6330 (mark_threaded_blocks): Remove code to filter out certain cases
6331 of threading through joiner blocks.
6332 (thread_through_all_blocks): Document how we can have a dangling
6333 edge AUX field and clear it.
6335 2013-10-23 Ian Lance Taylor <iant@google.com>
6337 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
6338 (C++ Dialect Options): Likewise.
6339 (Optimize Options): Likewise.
6341 2013-10-23 Tom de Vries <tom@codesourcery.com>
6343 PR tree-optimization/58805
6344 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
6346 2013-10-23 Jakub Jelinek <jakub@redhat.com>
6348 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
6349 sequence based on get_range_info returned range.
6351 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
6353 * tree-ssa.h: Remove all #include's
6354 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
6355 * alias.c: Move required includes from tree-ssa.h.
6357 * builtins.c: Likewise.
6358 * calls.c: Likewise.
6359 * cfgexpand.c: Likewise.
6360 * cfghooks.c: Likewise.
6361 * cfgloop.c: Likewise.
6362 * cfgloopmanip.c: Likewise.
6363 * cgraph.c: Likewise.
6364 * cgraphbuild.c: Likewise.
6365 * cgraphclones.c: Likewise.
6366 * cgraphunit.c: Likewise.
6368 * except.c: Likewise.
6370 * final.c: Likewise.
6371 * fold-const.c: Likewise.
6372 * ggc-page.c: Likewise.
6373 * gimple-builder.c: Likewise.
6374 * gimple-fold.c: Likewise.
6375 * gimple-iterator.c: Likewise.
6376 * gimple-low.c: Likewise.
6377 * gimple-pretty-print.c: Likewise.
6378 * gimple-ssa-strength-reduction.c: Likewise.
6379 * gimple-streamer-in.c: Likewise.
6380 * gimple-streamer-out.c: Likewise.
6381 * gimplify.c: Likewise.
6382 * graphite-blocking.c: Likewise.
6383 * graphite-clast-to-gimple.c: Likewise.
6384 * graphite-dependences.c: Likewise.
6385 * graphite-interchange.c: Likewise.
6386 * graphite-optimize-isl.c: Likewise.
6387 * graphite-poly.c: Likewise.
6388 * graphite-scop-detection.c: Likewise.
6389 * graphite-sese-to-poly.c: Likewise.
6390 * graphite.c: Likewise.
6391 * ipa-cp.c: Likewise.
6392 * ipa-inline-analysis.c: Likewise.
6393 * ipa-inline-transform.c: Likewise.
6394 * ipa-inline.c: Likewise.
6395 * ipa-prop.c: Likewise.
6396 * ipa-pure-const.c: Likewise.
6397 * ipa-reference.c: Likewise.
6398 * ipa-split.c: Likewise.
6399 * ipa-utils.c: Likewise.
6400 * loop-init.c: Likewise.
6401 * lto-cgraph.c: Likewise.
6402 * lto-section-in.c: Likewise.
6403 * lto-section-out.c: Likewise.
6404 * lto-streamer-in.c: Likewise.
6405 * lto-streamer-out.c: Likewise.
6406 * lto-streamer.c: Likewise.
6407 * omp-low.c: Likewise.
6408 * passes.c: Likewise.
6409 * predict.c: Likewise.
6410 * print-tree.c: Likewise.
6411 * profile.c: Likewise.
6413 * targhooks.c: Likewise.
6414 * tracer.c: Likewise.
6415 * trans-mem.c: Likewise.
6416 * tree-call-cdce.c: Likewise.
6417 * tree-cfg.c: Likewise.
6418 * tree-cfgcleanup.c: Likewise.
6419 * tree-chrec.c: Likewise.
6420 * tree-complex.c: Likewise.
6421 * tree-data-ref.c: Likewise.
6422 * tree-dfa.c: Likewise.
6423 * tree-eh.c: Likewise.
6424 * tree-emutls.c: Likewise.
6425 * tree-if-conv.c: Likewise.
6426 * tree-inline.c: Likewise.
6427 * tree-into-ssa.c: Likewise.
6428 * tree-loop-distribution.c: Likewise.
6429 * tree-mudflap.c: Likewise.
6430 * tree-nested.c: Likewise.
6431 * tree-nrv.c: Likewise.
6432 * tree-object-size.c: Likewise.
6433 * tree-outof-ssa.c: Likewise.
6434 * tree-parloops.c: Likewise.
6435 * tree-phinodes.c: Likewise.
6436 * tree-predcom.c: Likewise.
6437 * tree-pretty-print.c: Likewise.
6438 * tree-profile.c: Likewise.
6439 * tree-scalar-evolution.c: Likewise.
6440 * tree-sra.c: Likewise.
6441 * tree-ssa-address.c: Likewise.
6442 * tree-ssa-alias.c: Likewise.
6443 * tree-ssa-ccp.c: Likewise.
6444 * tree-ssa-coalesce.c: Likewise.
6445 * tree-ssa-copy.c: Likewise.
6446 * tree-ssa-copyrename.c: Likewise.
6447 * tree-ssa-dce.c: Likewise.
6448 * tree-ssa-dom.c: Likewise.
6449 * tree-ssa-dse.c: Likewise.
6450 * tree-ssa-forwprop.c: Likewise.
6451 * tree-ssa-ifcombine.c: Likewise.
6452 * tree-ssa-live.c: Likewise.
6453 * tree-ssa-loop-ch.c: Likewise.
6454 * tree-ssa-loop-im.c: Likewise.
6455 * tree-ssa-loop-ivcanon.c: Likewise.
6456 * tree-ssa-loop-ivopts.c: Likewise.
6457 * tree-ssa-loop-manip.c: Likewise.
6458 * tree-ssa-loop-niter.c: Likewise.
6459 * tree-ssa-loop-prefetch.c: Likewise.
6460 * tree-ssa-loop-unswitch.c: Likewise.
6461 * tree-ssa-loop.c: Likewise.
6462 * tree-ssa-math-opts.c: Likewise.
6463 * tree-ssa-operands.c: Likewise.
6464 * tree-ssa-phiopt.c: Likewise.
6465 * tree-ssa-phiprop.c: Likewise.
6466 * tree-ssa-pre.c: Likewise.
6467 * tree-ssa-propagate.c: Likewise.
6468 * tree-ssa-reassoc.c: Likewise.
6469 * tree-ssa-sccvn.c: Likewise.
6470 * tree-ssa-sink.c: Likewise.
6471 * tree-ssa-strlen.c: Likewise.
6472 * tree-ssa-structalias.c: Likewise.
6473 * tree-ssa-tail-merge.c: Likewise.
6474 * tree-ssa-ter.c: Likewise.
6475 * tree-ssa-threadedge.c: Likewise.
6476 * tree-ssa-threadupdate.c: Likewise.
6477 * tree-ssa-uncprop.c: Likewise.
6478 * tree-ssa-uninit.c: Likewise.
6479 * tree-ssa.c: Likewise.
6480 * tree-ssanames.c: Likewise.
6481 * tree-stdarg.c: Likewise.
6482 * tree-streamer-in.c: Likewise.
6483 * tree-switch-conversion.c: Likewise.
6484 * tree-tailcall.c: Likewise.
6485 * tree-vect-data-refs.c: Likewise.
6486 * tree-vect-generic.c: Likewise.
6487 * tree-vect-loop-manip.c: Likewise.
6488 * tree-vect-loop.c: Likewise.
6489 * tree-vect-patterns.c: Likewise.
6490 * tree-vect-slp.c: Likewise.
6491 * tree-vect-stmts.c: Likewise.
6492 * tree-vectorizer.c: Likewise.
6493 * tree-vrp.c: Likewise.
6496 * value-prof.c: Likewise.
6497 * var-tracking.c: Likewise.
6498 * varpool.c: Likewise.
6499 * vtable-verify.c: Likewise.
6501 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6503 * config/tilegx/tilegx.c: Include "tree.h".
6505 2013-10-23 Jakub Jelinek <jakub@redhat.com>
6507 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
6508 the info, not after it.
6509 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
6510 dump_ssaname_info call.
6511 (pp_gimple_stmt_1): Adjust caller.
6512 (dump_phi_nodes): Likewise. Don't print "# " here.
6514 2013-10-22 Jan Hubicka <jh@suse.cz>
6516 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
6518 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
6519 * i386.c (expand_small_movmem_or_setmem): New function.
6520 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
6522 (alg_usable_p): Add support for value ranges; cleanup.
6523 (ix86_expand_set_or_movmem): Add support for misaligned moves.
6525 2013-10-22 Sterling Augustine <saugustine@google.com>
6527 * doc/invoke.texi: Document -ggnu-pubnames.
6528 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
6530 * dwarf2out.c: Include gdb/gdb-index.h.
6531 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
6532 debug_generate_pub_sections.
6533 (is_java, output_pubtables, output_pubname): New functions.
6534 (include_pubname_in_output): Handle debug_generate_pub_sections at
6536 (size_of_pubnames): Use new local space_for_flags based on
6537 debug_generate_pub_sections.
6538 (output_pubnames): Unify pubnames and pubtypes output logic.
6539 Genericize comments. Call output_pubname.
6540 (dwarf2out_finish): Move logic to output_pubnames and call it.
6542 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
6545 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
6546 Remove CCCmode handling.
6547 <case LTU>: Return 'c' suffix for CCCmode.
6548 <case GEU>: Return 'nc' suffix for CCCmode.
6549 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
6550 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
6551 (*sub<mode>3_cc_overflow): Ditto.
6552 (*subsi3_zext_cc_overflow): Ditto.
6554 2013-10-22 Steve Ellcey <sellcey@mips.com>
6556 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
6557 (AND (NOT OP1) (NOT OP2)).
6559 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
6561 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
6562 meaning of merge-high and merge-low masks for little endian; avoid
6563 use of vector-pack masks for little endian for mismatched modes.
6565 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6567 * config/tilepro/tilepro.c: Include "tree.h".
6569 2013-10-22 Andreas Schwab <schwab@suse.de>
6571 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
6574 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
6576 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
6577 [Ed Smith-Rowland]): New entries.
6578 ([Stephen M. Webb]): Update.
6580 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
6582 * tree-ssa-ter.h: Remove duplicate copy of file contents.
6584 2013-10-21 Marek Polacek <polacek@redhat.com>
6587 * fold-const.c (fold_range_test): Return 0 if the type is not
6590 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
6592 * system.h: Move hwint.h include further down.
6593 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
6594 gcc_checking_asserts.
6595 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
6597 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6599 Fix volatile issues in optimize_bit_field_compare.
6600 * fold-const.c (optimize_bit_field_compare): Bail out if
6601 lvolatilep or rvolatilep.
6603 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6605 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
6606 and get_inner_reference returning different pmode for non-volatile
6607 bit-field members dependent on flag_strict_volatile_bitfields.
6608 * stor-layout.c (layout_decl): Remove special handling of
6609 flag_strict_volatile_bitfields.
6610 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
6611 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
6613 2013-10-21 Paulo Matos <pmatos@broadcom.com>
6615 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
6618 2013-10-21 Jeff Law <law@redhat.com>
6620 * tree-ssa-threadedge.c (thread_through_normal_block): New
6621 argument VISITED. Remove VISISTED as a local variable. When we
6622 have a threadable jump, verify the destination of the jump has not
6624 (thread_across_edge): Allocate VISITED bitmap once at function
6625 scope and use it throughout. Make sure to set appropriate bits in
6626 VISITED for E (start of jump thread path).
6627 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
6628 through a joiner if any edge on the path has a recorded jump thread.
6630 2013-10-21 Ian Lance Taylor <iant@google.com>
6632 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
6633 don't imply that attributes can solve all problems.
6634 (Directory Options): Fix typo.
6636 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6638 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
6639 extend and extend_add.
6641 2013-10-21 Richard Biener <rguenther@suse.de>
6643 PR tree-optimization/58794
6644 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
6645 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
6647 2013-10-21 Richard Biener <rguenther@suse.de>
6650 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
6651 to (T) X for sign-changing conversions (or no conversion).
6653 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
6655 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
6657 2013-10-20 Jan Hubicka <jh@suse.cz>
6659 * config/i386/i386-tune.def: Add comment; organize into categories
6661 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
6663 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
6664 argument. Update function comment.
6665 (expand_set_or_movmem_via_rep): New function combining
6666 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
6667 (expand_movmem_via_rep_mov): Remove.
6668 expand_setmem_via_rep_stos): Remove.
6669 (expand_movmem_epilogue): Update calls correspondingly.
6670 (expand_setmem_epilogue_via_loop): Likewise.
6672 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
6673 (expand_set_or_movmem_prologue): New function combining
6674 expand_movmem_prologue and expand_setmem_prologue.
6675 (expand_movmem_prologue): Remove.
6676 (expand_setmem_prologue): Remove.
6677 (expand_set_or_movmem_constant_prologue): New function combining
6678 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
6679 (expand_constant_movmem_prologue): Remove.
6680 (expand_constant_setmem_prologue): Remove.
6681 (promote_duplicated_reg): Allow vector-const0 value.
6682 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
6683 and ix86_expand_setmem.
6684 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
6685 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
6687 2013-10-21 Diego Novillo <dnovillo@google.com>
6689 * asan.c: Include tree.h
6690 * bb-reorder.c: Likewise.
6691 * cfgcleanup.c: Likewise.
6692 * cfgloopmanip.c: Likewise.
6693 * data-streamer-in.c: Likewise.
6694 * data-streamer-out.c: Likewise.
6695 * data-streamer.c: Likewise.
6696 * dwarf2cfi.c: Likewise.
6697 * graphite-blocking.c: Likewise.
6698 * graphite-clast-to-gimple.c: Likewise.
6699 * graphite-dependences.c: Likewise.
6700 * graphite-interchange.c: Likewise.
6701 * graphite-optimize-isl.c: Likewise.
6702 * graphite-poly.c: Likewise.
6703 * graphite-scop-detection.c: Likewise.
6704 * graphite-sese-to-poly.c: Likewise.
6705 * graphite.c: Likewise.
6706 * ipa-devirt.c: Likewise.
6707 * ipa-profile.c: Likewise.
6710 * loop-init.c: Likewise.
6711 * loop-unroll.c: Likewise.
6712 * lower-subreg.c: Likewise.
6713 * lto/lto-object.c: Likewise.
6714 * recog.c: Likewise.
6715 * reginfo.c: Likewise.
6716 * tree-loop-distribution.c: Likewise.
6717 * tree-parloops.c: Likewise.
6718 * tree-ssa-strlen.c: Likewise.
6719 * tree-streamer.c: Likewise.
6720 * value-prof.c: Likewise.
6721 * target-globals.c: Likewise.
6722 * expr.h: Include tree-core.h instead of tree.h.
6723 * gimple.h: Likewise.
6724 * ipa-prop.h: Likewise.
6725 * ipa-utils.h: Likewise.
6726 * lto-streamer.h: Likewise.
6727 * streamer-hooks.h: Likewise.
6728 * ipa-reference.h: Include cgraph.h instead of tree.h.
6729 * cgraph.h: Include basic-block.h instead of tree.h.
6730 * tree-streamer.h: Do not include tree.h.
6731 * genattrtab.c (write_header): Generate inclusion of tree.h.
6732 * genautomata.c (main): Likewise.
6733 * genemit.c: Likewise.
6734 * genopinit.c: Likewise.
6735 * genoutput.c (output_prologue): Likewise.
6736 * genpeep.c: Likewise.
6738 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6740 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
6742 (vec_unpacku_hi_v8hi): Likewise.
6743 (vec_unpacku_lo_v16qi): Likewise.
6744 (vec_unpacku_lo_v8hi): Likewise.
6746 2013-10-20 Jan Hubicka <jh@suse.cz>
6748 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
6749 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
6750 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
6752 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
6754 * config/mips/mips.h (ISA_HAS_WSBH): Define.
6755 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
6757 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
6759 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
6762 * system.h: Undef m_slot.
6764 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6766 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
6767 all elements for both endian flavors.
6769 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
6772 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
6773 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
6774 and SI_REG for 64bit SYSV ABI targets.
6776 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
6778 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
6779 to multi_reg_return. Clarify that we are skipping USEs of multiple
6780 return registers. Use bool type where appropriate.
6782 2013-10-18 Jan Hubicka <jh@suse.cz>
6784 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
6786 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
6787 (X86_TUNE_PUSH_MEMORY): Likewise.
6788 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
6789 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
6790 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
6792 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
6793 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
6795 (ix86_option_override_internal): Update to use tune features instead
6798 2013-10-18 Cong Hou <congh@google.com>
6800 PR tree-optimization/58508
6801 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
6802 statement that contains data refs with zero-step.
6804 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
6806 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
6807 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
6808 * gimple-low.c (gimple_check_call_arg,
6809 gimple_check_call_matching_types): Move to cgraph.c.
6810 * gimple-low.h: Remove prototype.
6811 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
6812 Relocate from gimple-low.c.
6813 * cgraph.h: Add prototype. Don't include basic-block.h.
6814 * gimplify.c: Add gimple-low to include list.
6815 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
6816 * tree-eh.c: Add gimple-low to include list.
6817 * tree-nested.c: Likewise.
6818 * cfgexpand.c: Add tree-ssa-address.h to include list.
6820 * gimple-fold.c: Likewise.
6821 * gimple-ssa-strength-reduction.c: Likewise.
6822 * trans-mem.c: Likewise.
6823 * tree-mudflap.c: Likewise.
6824 * tree-ssa-loop-ivopts.c: Likewise.
6825 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
6826 (degenerate_phi_result): Move to tree-phinodes.c.
6827 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
6828 * tree-ssa-threadedge.c: Likewise.
6829 * tree-vrp.c: Likewise.
6830 * tree-phinodes.c (degenerate_phi_result): Relocate here.
6831 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
6832 * tree-phinodes.h (degenerate_phi_result): Add prototype.
6833 * tree-ssa-copy.c: Include tree-ssa-dom.h.
6834 * tree-ssa-forwprop.c: Likewise.
6835 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
6836 pass_data_cleanup_cfg_post_optimizing,
6837 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
6838 * tree-optimize.c: Delete File.
6839 * graphite.c: Include tree-cfgcleanup.h.
6840 * passes.c: Likewise.
6841 * tree-cfg.c: Likewise.
6842 * tree-profile.c: Likewise.
6843 * tree-ssa-dse.c: Likewise.
6844 * tree-ssa-loop-ivcanon.c: Likewise.
6845 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
6846 * tree-outof-ssa.c: Include sbitmap.h.
6847 * tree-ssa-live.c: Likewise.
6848 * tree-ssa-propagate.c: Likewise.
6849 * tree-ssa-structalias.c: Likewise.
6850 * tree-stdarg.c: Likewise.
6851 * Makefile.in (OBJS): Delete tree-optimize.o.
6852 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
6853 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
6854 * varasm.c: Include basic-block.h.
6855 * cfgloop.h: Include function.h instead of basic-block.h
6856 (bb_loop_depth): Move to cfgloop.c.
6857 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
6859 2013-10-18 Teresa Johnson <tejohnson@google.com>
6861 * predict.c (probably_never_executed): Compare frequency-based
6862 count to number of training runs.
6863 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
6865 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6867 * config/arm/arm.c (cortexa9_extra_costs): New table.
6868 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
6870 2013-10-18 Jeff Law <law@redhat.com>
6872 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
6874 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
6875 (register_jump_thread): Add "registered_jump_thread" debug
6877 * dbgcnt.def (registered_jump_thread): New debug counter.
6879 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
6881 * config/rs6000/rs6000.c: Include cgraph.h.
6883 2013-10-18 Teresa Johnson <tejohnson@google.com>
6885 * tree-ssa-tail-merge.c (replace_block_by): Update edge
6886 weights during merging.
6888 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
6890 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
6891 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
6892 * tree-ssa-operands.h: Remove prototype.
6893 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
6894 * gimple.c (virtual_operand_p): Relocate from gimple.c.
6895 * gimple.h: Add prototype.
6896 * gimple-ssa.h: Include tree-ssa-operands.h.
6897 * tree-dump.c: Add tree-cfg.h to include list.
6898 * tree-ssa-alias.c: Add ipa-reference.h to include list.
6899 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
6900 * config/i386/i386.c: Don't include tree-flow.h.
6901 * config/rs6000/rs6000.c: Likewise.
6903 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6905 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
6907 2013-10-18 Richard Biener <rguenther@suse.de>
6909 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
6910 or TYPE_UNSIGNED of integral types.
6911 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
6912 NULL_TREE for zero-precision integral types.
6914 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
6916 * config/aarch64/arm_neon.h
6917 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
6919 2013-10-17 Sriraman Tallam <tmsriram@google.com>
6922 * opth-gen.awk: Define target_flags_explicit.
6924 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6926 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
6927 fields to the reg_addr array that describes the valid addressing
6928 mode for any register, general purpose registers, floating point
6929 registers, and Altivec registers.
6930 (FIRST_RELOAD_REG_CLASS): Likewise.
6931 (LAST_RELOAD_REG_CLASS): Likewise.
6932 (struct reload_reg_map_type): Likewise.
6933 (reload_reg_map_type): Likewise.
6934 (RELOAD_REG_VALID): Likewise.
6935 (RELOAD_REG_MULTIPLE): Likewise.
6936 (RELOAD_REG_INDEXED): Likewise.
6937 (RELOAD_REG_OFFSET): Likewise.
6938 (RELOAD_REG_PRE_INCDEC): Likewise.
6939 (RELOAD_REG_PRE_MODIFY): Likewise.
6940 (reg_addr): Likewise.
6941 (mode_supports_pre_incdec_p): New helper functions to say whether
6942 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
6943 (mode_supports_pre_modify_p): Likewise.
6944 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
6945 print the valid address mode bits for each mode.
6946 (rs6000_debug_print_mode): Likewise.
6947 (rs6000_debug_reg_global): Likewise.
6948 (rs6000_setup_reg_addr_masks): New function to set up the address
6949 mask bits for each type.
6950 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
6951 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
6952 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
6953 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
6954 PRE_MODIFY are supported.
6955 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
6956 registers, instead of {src,dest}_av_p.
6957 (rs6000_print_options_internal): Tweak the debug output slightly.
6959 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
6961 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
6964 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
6966 * tree-flow.h (struct omp_region): Move to omp-low.c.
6967 Remove omp_ prototypes and variables.
6968 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
6969 (copy_var_decl): Relocate prototype from tree-flow.h.
6970 * gimple.c (copy_var_decl): Relocate from omp-low.c.
6971 * tree.h: Move prototype to omp-low.h.
6972 * omp-low.h: New File. Relocate prototypes here.
6973 * omp-low.c (struct omp_region): Make local here.
6974 (root_omp_region): Make static.
6975 (copy_var_decl) Move to gimple.c.
6976 (new_omp_region): Make static.
6977 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
6978 * tree-cfg.c: Include omp-low.h.
6979 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
6980 * gimplify.c: Include omp-low.h.
6981 * tree-parloops.c: Likewise.
6983 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
6985 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
6986 operands are in memory, prefer to force non-matched operand 1 to
6989 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6992 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
6993 restrict TImode addresses to single indirect registers if both
6994 -mquad-memory and -mvsx-timode are used.
6995 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
6996 we should emit load/store quad. Remove using %y for quad memory
6999 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
7000 constraints to allow load/store quad on machines where TImode is
7001 not allowed in VSX registers. Use 'n' instead of 'F' constraint
7002 for TImode to load integer constants.
7004 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7006 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
7008 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
7010 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
7011 handling of STACK_REG.
7013 2013-10-17 Richard Biener <rguenther@suse.de>
7015 PR tree-optimization/58143
7016 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
7018 (rewrite_to_defined_overflow): Likewise.
7019 (move_computations_dom_walker::before_dom): Rewrite stmts
7020 with undefined signed overflow that are not always executed
7021 into unsigned arithmetic.
7023 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
7026 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
7027 explicit isa flag to be an options variable, instead of using
7028 global_options_set. Remove define from rs6000.h.
7029 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
7031 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7032 Initialize rs6000_isa_flags_explicit.
7033 (rs6000_function_specific_save): Add gcc_options* parameter, so
7034 that the powerpc builds after the 2013-10-15 changes.
7035 (rs6000_function_specific_restore): Likewise.
7037 2013-10-16 DJ Delorie <dj@redhat.com>
7039 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
7040 op is a REG before checking REGNO.
7041 (rl78_alloc_physical_registers): Verify pattern is a SET before
7044 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7046 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
7048 (vec_unpacks_lo_v4sf): Likewise.
7049 (vec_unpacks_float_hi_v4si): Likewise.
7050 (vec_unpacks_float_lo_v4si): Likewise.
7051 (vec_unpacku_float_hi_v4si): Likewise.
7052 (vec_unpacku_float_lo_v4si): Likewise.
7054 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7056 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
7057 (vsx_concat_v2sf): Likewise.
7059 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
7061 * config/aarch64/aarch64.md
7062 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
7064 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
7066 PR tree-optimization/58697
7067 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
7068 estimated_loop_iterations_int.
7069 (max_stmt_executions_int): Call get_max_loop_iterations_int.
7070 (get_max_loop_iterations_int): New. HWINT version of
7071 get_max_loop_iterations.
7072 * cfgloop.h: Add prototypes.
7073 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
7074 * loop-unroll.c (decide_peel_once_rolling): Call
7075 get_estimated_loop_iterations_int.
7076 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
7077 * tree-ssa-loop-niter.h: Tweak prototypes.
7079 2013-10-16 David Malcolm <dmalcolm@redhat.com>
7081 * gengtype-parse.c (struct_field_seq): Ignore access-control
7082 keywords ("public:" etc).
7084 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
7086 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
7087 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
7089 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
7091 * config/arm/arm.opt (mlra): New option.
7092 * config/arm/arm.c (arm_lra_p): New function.
7093 (TARGET_LRA_P): Define.
7095 2013-10-16 Paulo Matos <pmatos@broadcom.com>
7097 * tree-core.h (tree_code_name): Remove.
7098 * tree.h (get_tree_code_name): New prototype.
7099 * tree.c (tree_code_name): Make static.
7100 (get_tree_code_name): New function.
7101 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
7102 tree_class_check_failed, tree_range_check_failed,
7103 tree_not_class_check_failed, omp_clause_check_failed,
7104 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
7105 wrapper get_tree_code_name instead of calling tree_code_name directly.
7106 * tree-vrp.c (dump_asserts_for): Likewise.
7107 * tree-dump.c (dequeue_and_dump): Likewise.
7108 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
7109 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
7110 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
7111 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
7112 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
7113 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
7114 dump_gimple_omp_for): Likewise.
7115 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
7116 * tree-ssa-pre.c (print_pre_expr): Likewise.
7117 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
7118 * print-tree.c (print_node_brief, print_node): Likewise.
7119 * gimple.c (gimple_check_failed): Likewise.
7120 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
7121 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
7122 * config/mep/mep.c (mep_validate_vliw): Likewise.
7123 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
7124 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
7126 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7128 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
7131 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
7133 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
7134 (MULTILIB_MATCHES): Add multilib for -march=v8.
7136 2013-10-15 Sriraman Tallam <tmsriram@google.com>
7139 * optc-save-gen.awk: Add extra parameter to the save and restore
7141 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
7142 * tree.c (build_optimization_node): New parameter. Add extra parameter
7143 to call to cl_optimization_save.
7144 (build_target_option_node): New parameter. Add extra parameter
7145 to call to cl_target_option_save.
7146 * tree.h (build_optimization_node): New parameter.
7147 (build_target_option_node): New parameter.
7148 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
7149 build_optimization_node and build_target_option_node.
7150 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
7151 (handle_pragma_push_options): Ditto.
7152 * toplev.c (process_options): Ditto.
7153 * opts.c (init_options_struct): Check for opts_set non-null.
7154 * target.def (target_option.save): New parameter.
7155 (target_option.restore): New parameter.
7156 * tm.texi: Generate.
7157 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
7158 (ix86_pragma_target_parse): Ditto.
7159 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
7161 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
7162 to build_optimization_node and build_target_option_node.
7163 (rs6000_valid_attribute_p): Ditto.
7164 (rs6000_pragma_target_parse): Ditto.
7165 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
7167 * config/i386/i386.h:
7168 TARGET_64BIT_P: New Macro
7169 TARGET_MMX_P: New Macro.
7170 TARGET_3DNOW_P: New Macro.
7171 TARGET_3DNOW_A_P: New Macro.
7172 TARGET_SSE_P: New Macro.
7173 TARGET_SSE2_P: New Macro.
7174 TARGET_SSE3_P: New Macro.
7175 TARGET_SSSE3_P: New Macro.
7176 TARGET_SSE4_1_P: New Macro.
7177 TARGET_SSE4_2_P: New Macro.
7178 TARGET_AVX_P: New Macro.
7179 TARGET_AVX2_P: New Macro.
7180 TARGET_AVX512F_P: New Macro.
7181 TARGET_AVX512PF_P: New Macro.
7182 TARGET_AVX512ER_P: New Macro.
7183 TARGET_AVX512CD_P: New Macro.
7184 TARGET_FMA_P: New Macro.
7185 TARGET_SSE4A_P: New Macro.
7186 TARGET_FMA4_P: New Macro.
7187 TARGET_XOP_P: New Macro.
7188 TARGET_LWP_P: New Macro.
7189 TARGET_ABM_P: New Macro.
7190 TARGET_BMI_P: New Macro.
7191 TARGET_BMI2_P: New Macro.
7192 TARGET_LZCNT_P: New Macro.
7193 TARGET_TBM_P: New Macro.
7194 TARGET_POPCNT_P: New Macro.
7195 TARGET_SAHF_P: New Macro.
7196 TARGET_MOVBE_P: New Macro.
7197 TARGET_CRC32_P: New Macro.
7198 TARGET_AES_P: New Macro.
7199 TARGET_PCLMUL_P: New Macro.
7200 TARGET_CMPXCHG16B_P: New Macro.
7201 TARGET_FSGSBASE_P: New Macro.
7202 TARGET_RDRND_P: New Macro.
7203 TARGET_F16C_P: New Macro.
7204 TARGET_RTM_P: New Macro.
7205 TARGET_HLE_P: New Macro.
7206 TARGET_RDSEED_P: New Macro.
7207 TARGET_PRFCHW_P: New Macro.
7208 TARGET_ADX_P: New Macro.
7209 TARGET_FXSR_P: New Macro.
7210 TARGET_XSAVE_P: New Macro.
7211 TARGET_XSAVEOPT_P: New Macro.
7212 TARGET_LP64_P: New Macro.
7213 TARGET_X32_P: New Macro.
7214 TARGET_FPMATH_DEFAULT_P: New Macro.
7215 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
7216 * config/i386/i386.c (ix86_option_override_internal): New parameters.
7218 Change ix86_tune_string to access opts->x_ix86_tune_string.
7219 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
7220 Change ix86_arch_string to access opts->x_ix86_arch_string.
7221 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
7222 Change ix86_pmode to access opts->x_ix86_pmode.
7223 Change ix86_abi to access opts->x_ix86_abi.
7224 Change ix86_cmodel to access opts->x_ix86_cmodel.
7225 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
7226 Change ix86_isa_flags_explicit to access
7227 opts->x_ix86_isa_flags_explicit.
7228 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
7229 Change ix86_regparm to access opts->x_ix86_regparm.
7230 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
7231 Change ix86_preferred_stack_boundary_arg to access
7232 opts->x_ix86_preferred_stack_boundary_arg.
7233 Change ix86_force_align_arg_pointer to access
7234 opts->x_ix86_force_align_arg_pointer.
7235 Change ix86_incoming_stack_boundar_arg to access
7236 opts->x_ix86_incoming_stack_boundar_arg.
7237 Change ix86_fpmath to access opts->x_ix86_fpmath.
7238 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
7239 Change ix86_recip_name to access opts->x_ix86_recip_name.
7240 Change ix86_stack_protector_guard to access
7241 opts->x_ix86_stack_protector_guard.
7242 Change ix86_tune_memcpy_strategy to access
7243 opts->x_ix86_tune_memcpy_strategy.
7244 Change ix86_tune_memset_strategy to access
7245 opts->x_ix86_tune_memset_strategy.
7246 Change global_options to access opts.
7247 Change global_options_set to access opts_set.
7248 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
7249 Change TARGET_MMX to TARGET_MMX_P (opts->...).
7250 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
7251 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
7252 Change TARGET_SSE to TARGET_SSE_P (opts->...).
7253 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
7254 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
7255 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
7256 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
7257 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
7258 Change TARGET_AVX to TARGET_AVX_P (opts->...).
7259 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
7260 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
7261 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
7262 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
7263 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
7264 Change TARGET_FMA to TARGET_FMA_P (opts->...).
7265 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
7266 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
7267 Change TARGET_XOP to TARGET_XOP_P (opts->...).
7268 Change TARGET_LWP to TARGET_LWP_P (opts->...).
7269 Change TARGET_ABM to TARGET_ABM_P (opts->...).
7270 Change TARGET_BMI to TARGET_BMI_P (opts->...).
7271 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
7272 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
7273 Change TARGET_TBM to TARGET_TBM_P (opts->...).
7274 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
7275 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
7276 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
7277 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
7278 Change TARGET_AES to TARGET_AES_P (opts->...).
7279 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
7280 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
7281 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
7282 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
7283 Change TARGET_F16C to TARGET_F16C_P (opts->...).
7284 Change TARGET_RTM to TARGET_RTM_P (opts->...).
7285 Change TARGET_HLE to TARGET_HLE_P (opts->...).
7286 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
7287 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
7288 Change TARGET_ADX to TARGET_ADX_P (opts->...).
7289 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
7290 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
7291 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
7292 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
7293 Change TARGET_X32 to TARGET_X32_P (opts->...).
7294 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
7295 Change TARGET_FLOAT_RETURNS_IN_80387 to
7296 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
7297 (ix86_function_specific_save): New parameter. Use opts-> fields
7298 to replace global fields.
7299 (ix86_function_specific_restore): Ditto.
7300 (ix86_valid_target_attribute_inner_p): New parameters.
7302 Fix call to ix86_handle_option and set_option.
7303 (ix86_valid_target_attribute_tree): New parameters.
7304 Change global_options to access opts.
7305 Change global_options_set to access opts_set.
7306 Fix call to ix86_valid_target_attribute_inner_p.
7307 Change ix86_tune_string to access opts->x_ix86_tune_string.
7308 Change ix86_arch_string to access opts->x_ix86_arch_string.
7309 Change ix86_fpmath to access opts->x_ix86_fpmath
7310 Fix call to ix86_option_override_internal.
7311 Fix call to ix86_add_new_builtins.
7312 Fix calls to build_optimization_node and build_target_option_node.
7313 (ix86_valid_target_attribute_p): Remove access to global_options.
7314 Use new gcc_options structure func_options.
7315 Fix call to ix86_valid_target_attribute_tree.
7316 Fix call to build_optimization_node.
7317 (get_builtin_code_for_version): Fix call to
7318 ix86_valid_target_attribute_tree.
7320 2013-10-15 David Malcolm <dmalcolm@redhat.com>
7322 * Makefile.in (PICFLAG): New.
7323 (enable_host_shared): New.
7324 (INTERNAL_CFLAGS): Use PICFLAG.
7325 (LIBIBERTY): Use pic build of libiberty.a if configured with
7326 --enable-host-shared.
7327 * configure.ac: Add --enable-host-shared, setting up new
7329 * configure: Regenerate.
7330 * doc/install.texi (--enable-shared): Add note contrasting it with ...
7331 (--enable-host-shared): New option.
7333 2013-10-15 Richard Biener <rguenther@suse.de>
7335 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
7336 for built-in functions.
7338 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
7340 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
7341 (optimize_range_tests_1): New function,
7342 extracted from optimize_range_tests.
7343 (optimize_range_tests_xor): Similarly.
7344 (optimize_range_tests_diff): New function.
7345 (optimize_range_tests): Use optimize_range_tests_1.
7347 2013-10-15 Cong Hou <congh@google.com>
7349 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
7350 requirement of the reduction pattern so that one operand of the
7351 reduction operation can come from outside of the loop.
7353 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7355 * config/arm/neon-schedgen.ml: Remove.
7356 * config/arm/cortex-a9-neon.md: Remove comment regarding
7359 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7361 * config/arm/types: Remove old neon types.
7363 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7365 * config/arm/cortex-a7.md
7366 (cortex_a7_neon_type): New.
7367 (cortex_a7_neon_mul): Update for new types.
7368 (cortex_a7_neon_mla): Likewise.
7369 (cortex_a7_neon): Likewise.
7371 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7373 * config/arm/cortex-a15-neon.md
7374 (cortex_a15_neon_type): New,
7376 (cortex_a15_neon_int_1): Remove.
7377 (cortex_a15_neon_int_2): Likewise.
7378 (cortex_a15_neon_int_3): Likewise.
7379 (cortex_a15_neon_int_4): Likewise.
7380 (cortex_a15_neon_int_5): Likewise.
7381 (cortex_a15_neon_vqneg_vqabs): Likewise.
7382 (cortex_a15_neon_vmov): Likewise.
7383 (cortex_a15_neon_vaba): Likewise.
7384 (cortex_a15_neon_vaba_qqq): Likewise.
7385 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7386 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
7387 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
7389 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7390 (cortex_a15_neon_mla_qqq_8_16): Likewise.
7391 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
7392 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7393 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7394 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
7395 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7396 (cortex_a15_neon_shift_1): Likewise.
7397 (cortex_a15_neon_shift_2): Likewise.
7398 (cortex_a15_neon_shift_3): Likewise.
7399 (cortex_a15_neon_vshl_ddd): Likewise.
7400 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
7401 (cortex_a15_neon_vsra_vrsra): Likewise.
7402 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
7403 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
7404 (cortex_a15_neon_bp_3cycle): Likewise.
7405 (cortex_a15_neon_ldm_2): Likewise.
7406 (cortex_a15_neon_stm_2): Likewise.
7407 (cortex_a15_neon_mcr): Likewise.
7408 (cortex_a15_neon_mrc): Likewise.
7409 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
7410 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
7411 (cortex_a15_neon_fp_vmul_ddd): Likewise.
7412 (cortex_a15_neon_fp_vmul_qqd): Likewise.
7413 (cortex_a15_neon_fp_vmla_ddd): Likewise.
7414 (cortex_a15_neon_fp_vmla_qqq): Likewise.
7415 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
7416 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
7417 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7418 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7419 (cortex_a15_neon_bp_simple): Likewise.
7420 (cortex_a15_neon_bp_2cycle): Likewise.
7421 (cortex_a15_neon_bp_3cycle): Likewise.
7422 (cortex_a15_neon_vld1_1_2_regs): Likewise.
7423 (cortex_a15_neon_vld1_3_4_regs): Likewise.
7424 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7425 (cortex_a15_neon_vld2_4_regs): Likewise.
7426 (cortex_a15_neon_vld3_vld4): Likewise.
7427 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7428 (cortex_a15_neon_vst1_3_4_regs): Likewise.
7429 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
7430 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
7431 (cortex_a15_neon_vst3_vst4): Rename to...
7432 (cortex_a15_neon_vst4): This, update for new attributes.
7433 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
7434 (cortex_a15_neon_vld3_vld4_lane): Likewise.
7435 (cortex_a15_neon_vst1_vst2_lane): Likewise.
7436 (cortex_a15_neon_vst3_vst4_lane): Likewise.
7437 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
7438 (cortex_a15_neon_ldm_2): Likewise.
7439 (cortex_a15_neon_stm_2): Likewise.
7440 (cortex_a15_neon_mcr): Likewise.
7441 (cortex_a15_neon_mcr_2_mcrr): Likewise.
7442 (cortex_a15_neon_mrc): Likewise.
7443 (cortex_a15_neon_mrrc): Likewise.
7445 (cortex_a15_neon_abd): New.
7446 (cortex_a15_neon_abd_q): Likewise.
7447 (cortex_a15_neon_aba): Likewise.
7448 (cortex_a15_neon_aba_q): Likewise.
7449 (cortex_a15_neon_acc): Likewise.
7450 (cortex_a15_neon_acc_q): Likewise.
7451 (cortex_a15_neon_arith_basic): Likewise.
7452 (cortex_a15_neon_arith_complex): Likewise.
7453 (cortex_a15_neon_multiply): Likewise.
7454 (cortex_a15_neon_multiply_q): Likewise.
7455 (cortex_a15_neon_mla): Likewise.
7456 (cortex_a15_neon_mla_q): Likewise.
7457 (cortex_a15_neon_sat_mla_long): Likewise.
7458 (cortex_a15_neon_shift_acc): Likewise.
7459 (cortex_a15_neon_shift_imm_basic): Likewise.
7460 (cortex_a15_neon_shift_imm_complex): Likewise.
7461 (cortex_a15_neon_shift_reg_basic): Likewise.
7462 (cortex_a15_neon_shift_reg_basic_q): Likewise.
7463 (cortex_a15_neon_shift_reg_complex): Likewise.
7464 (cortex_a15_neon_shift_reg_complex_q): Likewise.
7465 (cortex_a15_neon_fp_negabs): Likewise
7466 (cortex_a15_neon_fp_arith): Likewise
7467 (cortex_a15_neon_fp_arith_q): Likewise
7468 (cortex_a15_neon_fp_cvt_int): Likewise
7469 (cortex_a15_neon_fp_cvt_int_q): Likewise
7470 (cortex_a15_neon_fp_cvt_16): Likewise
7471 (cortex_a15_neon_fp_mul): Likewise
7472 (cortex_a15_neon_fp_mul_q): Likewise
7473 (cortex_a15_neon_fp_mla): Likewise
7474 (cortex_a15_neon_fp_mla_q): Likewise
7475 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
7476 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
7477 (cortex_a15_neon_bitops): Likewise.
7478 (cortex_a15_neon_bitops_q): Likewise.
7479 (cortex_a15_neon_from_gp): Likewise.
7480 (cortex_a15_neon_from_gp_q): Likewise.
7481 (cortex_a15_neon_tbl3_tbl4): Likewise.
7482 (cortex_a15_neon_zip_q): Likewise.
7483 (cortex_a15_neon_to_gp): Likewise.
7484 (cortex_a15_neon_load_a): Likewise.
7485 (cortex_a15_neon_load_b): Likewise.
7486 (cortex_a15_neon_load_c): Likewise.
7487 (cortex_a15_neon_load_d): Likewise.
7488 (cortex_a15_neon_load_e): Likewise.
7489 (cortex_a15_neon_load_f): Likewise.
7490 (cortex_a15_neon_store_a): Likewise.
7491 (cortex_a15_neon_store_b): Likewise.
7492 (cortex_a15_neon_store_c): Likewise.
7493 (cortex_a15_neon_store_d): Likewise.
7494 (cortex_a15_neon_store_e): Likewise.
7495 (cortex_a15_neon_store_f): Likewise.
7496 (cortex_a15_neon_store_g): Likewise.
7497 (cortex_a15_neon_store_h): Likewise.
7498 (cortex_a15_vfp_to_from_gp): Likewise.
7500 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7502 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
7504 (cortex_a9_neon_vshl_ddd): Remove.
7505 (cortex_a9_neon_vst3_vst4): Likewise.
7506 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
7508 (cortex_a9_neon_bit_ops_q): New.
7510 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
7511 (cortex_a9_neon_int_2): Likewise.
7512 (cortex_a9_neon_int_3): Likewise.
7513 (cortex_a9_neon_int_4): Likewise.
7514 (cortex_a9_neon_int_5): Likewise.
7515 (cortex_a9_neon_vqneg_vqabs): Likewise.
7516 (cortex_a9_neon_vmov): Likewise.
7517 (cortex_a9_neon_vaba): Likewise.
7518 (cortex_a9_neon_vaba_qqq): Likewise.
7519 (cortex_a9_neon_shift_1): Likewise.
7520 (cortex_a9_neon_shift_2): Likewise.
7521 (cortex_a9_neon_shift_3): Likewise.
7522 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
7523 (cortex_a9_neon_vsra_vrsra): Likewise.
7524 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7525 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
7526 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
7528 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7529 (cortex_a9_neon_mla_qqq_8_16): Likewise.
7530 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
7532 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7533 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7534 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
7535 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7536 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
7537 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
7538 (cortex_a9_neon_fp_vsum): Likewise.
7539 (cortex_a9_neon_fp_vmul_ddd): Likewise.
7540 (cortex_a9_neon_fp_vmul_qqd): Likewise.
7541 (cortex_a9_neon_fp_vmla_ddd): Likewise.
7542 (cortex_a9_neon_fp_vmla_qqq): Likewise.
7543 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
7544 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
7545 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7546 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7547 (cortex_a9_neon_bp_simple): Likewise.
7548 (cortex_a9_neon_bp_2cycle): Likewise.
7549 (cortex_a9_neon_bp_3cycle): Likewise.
7550 (cortex_a9_neon_ldr): Likewise.
7551 (cortex_a9_neon_str): Likewise.
7552 (cortex_a9_neon_vld1_1_2_regs): Likewise.
7553 (cortex_a9_neon_vld1_3_4_regs): Likewise.
7554 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7555 (cortex_a9_neon_vld2_4_regs): Likewise.
7556 (cortex_a9_neon_vld3_vld4): Likewise.
7557 (cortex_a9_neon_vld1_vld2_lane): Likewise.
7558 (cortex_a9_neon_vld3_vld4_lane): Likewise.
7559 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
7560 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7561 (cortex_a9_neon_vst1_3_4_regs): Likewise.
7562 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
7563 (cortex_a9_neon_vst1_vst2_lane): Likewise.
7564 (cortex_a9_neon_vst3_vst4_lane): Likewise.
7565 (cortex_a9_neon_mcr): Likewise.
7566 (cortex_a9_neon_mcr_2_mcrr): Likewise.
7567 (cortex_a9_neon_mrc): Likewise.
7568 (cortex_a9_neon_mrrc): Likewise.
7570 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7572 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
7574 (cortex_a8_neon_vshl_ddd): Remove.
7575 (cortex_a8_neon_vst3_vst4): Likewise.
7576 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
7578 (cortex_a8_neon_bit_ops_q): New.
7580 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
7581 (cortex_a8_neon_int_2): Likewise..
7582 (cortex_a8_neon_int_3): Likewise.
7583 (cortex_a8_neon_int_5): Likewise.
7584 (cortex_a8_neon_vqneg_vqabs): Likewise.
7585 (cortex_a8_neon_int_4): Likewise.
7586 (cortex_a8_neon_vaba): Likewise.
7587 (cortex_a8_neon_vaba_qqq): Likewise.
7588 (cortex_a8_neon_shift_1): Likewise.
7589 (cortex_a8_neon_shift_2): Likewise.
7590 (cortex_a8_neon_shift_3): Likewise.
7591 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
7592 (cortex_a8_neon_vsra_vrsra): Likewise.
7593 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7594 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
7595 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
7597 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7598 (cortex_a8_neon_mla_qqq_8_16): Likewise.
7599 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
7601 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7602 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7603 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
7604 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7605 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
7606 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
7607 (cortex_a8_neon_fp_vsum): Likewise.
7608 (cortex_a8_neon_fp_vmul_ddd): Likewise.
7609 (cortex_a8_neon_fp_vmul_qqd): Likewise.
7610 (cortex_a8_neon_fp_vmla_ddd): Likewise.
7611 (cortex_a8_neon_fp_vmla_qqq): Likewise.
7612 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
7613 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
7614 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7615 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7616 (cortex_a8_neon_bp_simple): Likewise.
7617 (cortex_a8_neon_bp_2cycle): Likewise.
7618 (cortex_a8_neon_bp_3cycle): Likewise.
7619 (cortex_a8_neon_ldr): Likewise.
7620 (cortex_a8_neon_str): Likewise.
7621 (cortex_a8_neon_vld1_1_2_regs): Likewise.
7622 (cortex_a8_neon_vld1_3_4_regs): Likewise.
7623 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7624 (cortex_a8_neon_vld2_4_regs): Likewise.
7625 (cortex_a8_neon_vld3_vld4): Likewise.
7626 (cortex_a8_neon_vld1_vld2_lane): Likewise.
7627 (cortex_a8_neon_vld3_vld4_lane): Likewise.
7628 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7629 (cortex_a8_neon_vst1_3_4_regs): Likewise.
7630 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
7631 (cortex_a8_neon_vst1_vst2_lane): Likewise.
7632 (cortex_a8_neon_vst3_vst4_lane): Likewise.
7633 (cortex_a8_neon_mcr): Likewise.
7634 (cortex_a8_neon_mcr_2_mcrr): Likewise.
7635 (cortex_a8_neon_mrc): Likewise.
7636 (cortex_a8_neon_mrrc): Likewise.
7638 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7640 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
7642 * config/aarch64/aarch64-simd.md (neon_type): Remove.
7643 (aarch64_simd_dup<mode>): Add "type" attribute.
7644 (aarch64_dup_lane<mode>): Likewise.
7645 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
7646 (*aarch64_simd_mov<mode>): Likewise.
7647 (aarch64_simd_mov_from_<mode>low): Likewise.
7648 (aarch64_simd_mov_from_<mode>high): Likewise.
7649 (orn<mode>3): Likewise.
7650 (bic<mode>3): Likewise.
7651 (add<mode>3): Likewise.
7652 (sub<mode>3): Likewise.
7653 (mul<mode>3): Likewise.
7654 (*aarch64_mul3_elt<mode>): Likewise.
7655 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
7656 (*aarch64_mul3_elt_to_128df): Likewise.
7657 (*aarch64_mul3_elt_to_64v2df): Likewise.
7658 (neg<mode>2): Likewise.
7659 (abs<mode>2): Likewise.
7660 (abd<mode>_3): Likewise.
7661 (aba<mode>_3): Likewise.
7662 (fabd<mode>_3): Likewise.
7663 (*fabd_scalar<mode>3): Likewise.
7664 (and<mode>3): Likewise.
7665 (ior<mode>3): Likewise.
7666 (xor<mode>3): Likewise.
7667 (one_cmpl<mode>2): Likewise.
7668 (aarch64_simd_vec_set<mode>): Likewise.
7669 (aarch64_simd_lshr<mode>): Likewise.
7670 (aarch64_simd_ashr<mode>): Likewise.
7671 (aarch64_simd_imm_shl<mode>): Likewise.
7672 (aarch64_simd_reg_sshl<mode): Likewise.
7673 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
7674 (aarch64_simd_reg_shl<mode>_signed): Likewise.
7675 (aarch64_simd_vec_setv2di): Likewise.
7676 (aarch64_simd_vec_set<mode>): Likewise.
7677 (aarch64_mla<mode>): Likewise.
7678 (*aarch64_mla_elt<mode>): Likewise.
7679 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
7680 (aarch64_mls<mode>): Likewise.
7681 (*aarch64_mls_elt<mode>): Likewise.
7682 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
7683 (<su><maxmin><mode>3): Likewise.
7684 (move_lo_quad_<mode>): Likewise.
7685 (aarch64_simd_move_hi_quad_<mode>): Likewise.
7686 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
7687 (vec_pack_trunc_<mode>): Likewise.
7688 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
7689 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
7690 (*aarch64_<su>mlal_lo<mode>): Likewise.
7691 (*aarch64_<su>mlal_hi<mode>): Likewise.
7692 (*aarch64_<su>mlsl_lo<mode>): Likewise.
7693 (*aarch64_<su>mlsl_hi<mode>): Likewise.
7694 (*aarch64_<su>mlal<mode>): Likewise.
7695 (*aarch64_<su>mlsl<mode>): Likewise.
7696 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
7697 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
7698 (add<mode>3): Likewise.
7699 (sub<mode>3): Likewise.
7700 (mul<mode>3): Likewise.
7701 (div<mode>3): Likewise.
7702 (neg<mode>2): Likewise.
7703 (abs<mode>2): Likewise.
7704 (fma<mode>4): Likewise.
7705 (*aarch64_fma4_elt<mode>): Likewise.
7706 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
7707 (*aarch64_fma4_elt_to_128df): Likewise.
7708 (*aarch64_fma4_elt_to_64v2df): Likewise.
7709 (fnma<mode>4): Likewise.
7710 (*aarch64_fnma4_elt<mode>): Likewise.
7711 (*aarch64_fnma4_elt_<vswap_width_name><mode>
7712 (*aarch64_fnma4_elt_to_128df): Likewise.
7713 (*aarch64_fnma4_elt_to_64v2df): Likewise.
7714 (<frint_pattern><mode>2): Likewise.
7715 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
7716 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
7717 (vec_unpacks_lo_v4sf): Likewise.
7718 (aarch64_float_extend_lo_v2df): Likewise.
7719 (vec_unpacks_hi_v4sf): Likewise.
7720 (aarch64_float_truncate_lo_v2sf): Likewise.
7721 (aarch64_float_truncate_hi_v4sf): Likewise.
7722 (aarch64_vmls<mode>): Likewise.
7723 (<su><maxmin><mode>3): Likewise.
7724 (<maxmin_uns><mode>3): Likewise.
7725 (reduc_<sur>plus_<mode>): Likewise.
7726 (reduc_<sur>plus_v2di): Likewise.
7727 (reduc_<sur>plus_v2si): Likewise.
7728 (reduc_<sur>plus_<mode>): Likewise.
7729 (aarch64_addpv4sf): Likewise.
7730 (clz<mode>2): Likewise.
7731 (reduc_<maxmin_uns>_<mode>): Likewise.
7732 (reduc_<maxmin_uns>_v2di): Likewise.
7733 (reduc_<maxmin_uns>_v2si): Likewise.
7734 (reduc_<maxmin_uns>_<mode>): Likewise.
7735 (reduc_<maxmin_uns>_v4sf): Likewise.
7736 (aarch64_simd_bsl<mode>_internal): Likewise.
7737 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
7738 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
7739 (aarch64_get_lane<mode>): Likewise.
7740 (*aarch64_combinez<mode>): Likewise.
7741 (aarch64_combine<mode>): Likewise.
7742 (aarch64_simd_combine<mode>): Likewise.
7743 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
7744 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
7745 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
7746 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
7747 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
7748 (aarch64_<sur>h<addsub><mode>): Likewise.
7749 (aarch64_<sur><addsub>hn<mode>): Likewise.
7750 (aarch64_<sur><addsub>hn2<mode>): Likewise.
7751 (aarch64_pmul<mode>): Likewise.
7752 (aarch64_<su_optab><optab><mode>): Likewise.
7753 (aarch64_<sur>qadd<mode>): Likewise.
7754 (aarch64_sqmovun<mode>): Likewise.
7755 (aarch64_<sur>qmovn<mode>): Likewise.
7756 (aarch64_s<optab><mode>): Likewise.
7757 (aarch64_sq<r>dmulh<mode>): Likewise.
7758 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
7759 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
7760 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
7761 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
7762 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
7763 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
7764 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
7765 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
7766 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
7767 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
7768 (aarch64_sqdmull<mode>): Likewise.
7769 (aarch64_sqdmull_lane<mode>_internal): Likewise.
7770 (aarch64_sqdmull_n<mode>): Likewise.
7771 (aarch64_sqdmull2<mode>_internal): Likewise.
7772 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
7773 (aarch64_sqdmull2_n<mode>_internal): Likewise.
7774 (aarch64_<sur>shl<mode>): Likewise.
7775 (aarch64_<sur>q<r>shl<mode>
7776 (aarch64_<sur>shll_n<mode>): Likewise.
7777 (aarch64_<sur>shll2_n<mode>): Likewise.
7778 (aarch64_<sur>shr_n<mode>): Likewise.
7779 (aarch64_<sur>sra_n<mode>): Likewise.
7780 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
7781 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
7782 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
7783 (aarch64_cm<optab><mode>): Likewise.
7784 (aarch64_cm<optab>di): Likewise.
7785 (aarch64_cm<optab><mode>): Likewise.
7786 (aarch64_cm<optab>di): Likewise.
7787 (aarch64_cmtst<mode>): Likewise.
7788 (aarch64_cmtstdi): Likewise.
7789 (aarch64_cm<optab><mode>): Likewise.
7790 (*aarch64_fac<optab><mode>): Likewise.
7791 (aarch64_addp<mode>): Likewise.
7792 (aarch64_addpdi): Likewise.
7793 (sqrt<mode>2): Likewise.
7794 (vec_load_lanesoi<mode>): Likewise.
7795 (vec_store_lanesoi<mode>): Likewise.
7796 (vec_load_lanesci<mode>): Likewise.
7797 (vec_store_lanesci<mode>): Likewise.
7798 (vec_load_lanesxi<mode>): Likewise.
7799 (vec_store_lanesxi<mode>): Likewise.
7800 (*aarch64_mov<mode>): Likewise.
7801 (aarch64_ld2<mode>_dreg): Likewise.
7802 (aarch64_ld2<mode>_dreg): Likewise.
7803 (aarch64_ld3<mode>_dreg): Likewise.
7804 (aarch64_ld3<mode>_dreg): Likewise.
7805 (aarch64_ld4<mode>_dreg): Likewise.
7806 (aarch64_ld4<mode>_dreg): Likewise.
7807 (aarch64_tbl1<mode>): Likewise.
7808 (aarch64_tbl2v16qi): Likewise.
7809 (aarch64_combinev16qi): Likewise.
7810 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
7811 (aarch64_st2<mode>_dreg): Likewise.
7812 (aarch64_st2<mode>_dreg): Likewise.
7813 (aarch64_st3<mode>_dreg): Likewise.
7814 (aarch64_st3<mode>_dreg): Likewise.
7815 (aarch64_st4<mode>_dreg): Likewise.
7816 (aarch64_st4<mode>_dreg): Likewise.
7817 (*aarch64_simd_ld1r<mode>): Likewise.
7818 (aarch64_frecpe<mode>): Likewise.
7819 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
7820 (aarch64_frecps<mode>): Likewise.
7822 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7824 * config/arm/iterators.md (V_elem_ch): New.
7826 (VQH_type): Likewise.
7827 * config/arm/arm.md (is_neon_type): New.
7828 (conds): Use is_neon_type.
7829 (anddi3_insn): Update type attribute.
7830 (xordi3_insn): Likewise.
7831 (one_cmpldi2): Likewise.
7832 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
7833 * config/arm/neon.md (neon_mov): Update type attribute.
7834 (*movmisalign<mode>_neon_store): Likewise.
7835 (*movmisalign<mode>_neon_load): Likewise.
7836 (vec_set<mode>_internal): Likewise.
7837 (vec_set<mode>_internal): Likewise.
7838 (vec_setv2di_internal): Likewise.
7839 (vec_extract<mode>): Likewise.
7840 (vec_extract<mode>): Likewise.
7841 (vec_extractv2di): Likewise.
7842 (*add<mode>3_neon): Likewise.
7843 (adddi3_neon): Likewise.
7844 (*sub<mode>3_neon): Likewise.
7845 (subdi3_neon): Likewise.
7846 (fma<VCVTF:mode>4): Likewise.
7847 (fma<VCVTF:mode>4_intrinsic): Likewise.
7848 (*fmsub<VCVTF:mode>4): Likewise.
7849 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
7850 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
7851 (ior<mode>3): Likewise.
7852 (and<mode>3): Likewise.
7853 (orn<mode>3_neon): Likewise.
7854 (orndi3_neon): Likewise.
7855 (bic<mode>3_neon): Likewise.
7856 (bicdi3_neon): Likewise.
7857 (xor<mode>3): Likewise.
7858 (one_cmpl<mode>2): Likewise.
7859 (abs<mode>2): Likewise.
7860 (neg<mode>2): Likewise.
7861 (negdi2_neon): Likewise.
7862 (*umin<mode>3_neon): Likewise.
7863 (*umax<mode>3_neon): Likewise.
7864 (*smin<mode>3_neon): Likewise.
7865 (*smax<mode>3_neon): Likewise.
7866 (vashl<mode>3): Likewise.
7867 (vashr<mode>3_imm): Likewise.
7868 (vlshr<mode>3_imm): Likewise.
7869 (ashl<mode>3_signed): Likewise.
7870 (ashl<mode>3_unsigned): Likewise.
7871 (neon_load_count): Likewise.
7872 (ashldi3_neon_noclobber): Likewise.
7873 (ashldi3_neon): Likewise.
7874 (signed_shift_di3_neon): Likewise.
7875 (unsigned_shift_di3_neon): Likewise.
7876 (ashrdi3_neon_imm_noclobber): Likewise.
7877 (lshrdi3_neon_imm_noclobber): Likewise.
7878 (<shift>di3_neon): Likewise.
7879 (widen_ssum<mode>3): Likewise.
7880 (widen_usum<mode>3): Likewise.
7881 (quad_halves_<code>v4si): Likewise.
7882 (quad_halves_<code>v4sf): Likewise.
7883 (quad_halves_<code>v8hi): Likewise.
7884 (quad_halves_<code>v16qi): Likewise.
7885 (reduc_splus_v2di): Likewise.
7886 (neon_vpadd_internal<mode>): Likewise.
7887 (neon_vpsmin<mode>): Likewise.
7888 (neon_vpsmax<mode>): Likewise.
7889 (neon_vpumin<mode>): Likewise.
7890 (neon_vpumax<mode>): Likewise.
7891 (*ss_add<mode>_neon): Likewise.
7892 (*us_add<mode>_neon): Likewise.
7893 (*ss_sub<mode>_neon): Likewise.
7894 (*us_sub<mode>_neon): Likewise.
7895 (neon_vadd<mode>_unspec): Likewise.
7896 (neon_vaddl<mode>): Likewise.
7897 (neon_vaddw<mode>): Likewise.
7898 (neon_vhadd<mode>): Likewise.
7899 (neon_vqadd<mode>): Likewise.
7900 (neon_vaddhn<mode>): Likewise.
7901 (neon_vmul<mode>): Likewise.
7902 (neon_vfms<VCVTF:mode>): Likewise.
7903 (neon_vmlal<mode>): Likewise.
7904 (neon_vmls<mode>): Likewise.
7905 (neon_vmlsl<mode>): Likewise.
7906 (neon_vqdmulh<mode>): Likewise.
7907 (neon_vqdmlal<mode>): Likewise.
7908 (neon_vqdmlsl<mode>): Likewise.
7909 (neon_vmull<mode>): Likewise.
7910 (neon_vqdmull<mode>): Likewise.
7911 (neon_vsub<mode>_unspec): Likewise.
7912 (neon_vsubl<mode>): Likewise.
7913 (neon_vsubw<mode>): Likewise.
7914 (neon_vqsub<mode>): Likewise.
7915 (neon_vhsub<mode>): Likewise.
7916 (neon_vsubhn<mode>): Likewise.
7917 (neon_vceq<mode>): Likewise.
7918 (neon_vcge<mode>): Likewise.
7919 (neon_vcgeu<mode>): Likewise.
7920 (neon_vcgt<mode>): Likewise.
7921 (neon_vcgtu<mode>): Likewise.
7922 (neon_vcle<mode>): Likewise.
7923 (neon_vclt<mode>): Likewise.
7924 (neon_vcage<mode>): Likewise.
7925 (neon_vcagt<mode>): Likewise.
7926 (neon_vtst<mode>): Likewise.
7927 (neon_vabd<mode>): Likewise.
7928 (neon_vabdl<mode>): Likewise.
7929 (neon_vaba<mode>): Likewise.
7930 (neon_vabal<mode>): Likewise.
7931 (neon_vmax<mode>): Likewise.
7932 (neon_vmin<mode>): Likewise.
7933 (neon_vpaddl<mode>): Likewise.
7934 (neon_vpadal<mode>): Likewise.
7935 (neon_vpmax<mode>): Likewise.
7936 (neon_vpmin<mode>): Likewise.
7937 (neon_vrecps<mode>): Likewise.
7938 (neon_vrsqrts<mode>): Likewise.
7939 (neon_vqabs<mode>): Likewise.
7940 (neon_vqneg<mode>): Likewise.
7941 (neon_vcls<mode>): Likewise.
7942 (clz<mode>2): Likewise.
7943 (popcount<mode>2): Likewise.
7944 (neon_vrecpe<mode>): Likewise.
7945 (neon_vrsqrte<mode>): Likewise.
7946 (neon_vget_lane<mode>_sext_internal): Likewise.
7947 (neon_vget_lane<mode>_zext_internal): Likewise.
7948 (neon_vdup_n<mode>): Likewise.
7949 (neon_vdup_n<mode>): Likewise.
7950 (neon_vdup_nv2di): Likewise.
7951 (neon_vdup_lane<mode>_interal): Likewise.
7952 (*neon_vswp<mode>): Likewise.
7953 (neon_vcombine<mode>): Likewise.
7954 (float<mode><V_cvtto>2): Likewise.
7955 (floatuns<mode><V_cvtto>2): Likewise.
7956 (fix_trunc<mode><V_cvtto>2): Likewise.
7957 (fixuns_trunc<mode><V_cvtto>2
7958 (neon_vcvt<mode>): Likewise.
7959 (neon_vcvt<mode>): Likewise.
7960 (neon_vcvtv4sfv4hf): Likewise.
7961 (neon_vcvtv4hfv4sf): Likewise.
7962 (neon_vcvt_n<mode>): Likewise.
7963 (neon_vcvt_n<mode>): Likewise.
7964 (neon_vmovn<mode>): Likewise.
7965 (neon_vqmovn<mode>): Likewise.
7966 (neon_vqmovun<mode>): Likewise.
7967 (neon_vmovl<mode>): Likewise.
7968 (neon_vmul_lane<mode>): Likewise.
7969 (neon_vmul_lane<mode>): Likewise.
7970 (neon_vmull_lane<mode>): Likewise.
7971 (neon_vqdmull_lane<mode>): Likewise.
7972 (neon_vqdmulh_lane<mode>): Likewise.
7973 (neon_vqdmulh_lane<mode>): Likewise.
7974 (neon_vmla_lane<mode>): Likewise.
7975 (neon_vmla_lane<mode>): Likewise.
7976 (neon_vmlal_lane<mode>): Likewise.
7977 (neon_vqdmlal_lane<mode>): Likewise.
7978 (neon_vmls_lane<mode>): Likewise.
7979 (neon_vmls_lane<mode>): Likewise.
7980 (neon_vmlsl_lane<mode>): Likewise.
7981 (neon_vqdmlsl_lane<mode>): Likewise.
7982 (neon_vext<mode>): Likewise.
7983 (neon_vrev64<mode>): Likewise.
7984 (neon_vrev32<mode>): Likewise.
7985 (neon_vrev16<mode>): Likewise.
7986 (neon_vbsl<mode>_internal): Likewise.
7987 (neon_vshl<mode>): Likewise.
7988 (neon_vqshl<mode>): Likewise.
7989 (neon_vshr_n<mode>): Likewise.
7990 (neon_vshrn_n<mode>): Likewise.
7991 (neon_vqshrn_n<mode>): Likewise.
7992 (neon_vqshrun_n<mode>): Likewise.
7993 (neon_vshl_n<mode>): Likewise.
7994 (neon_vqshl_n<mode>): Likewise.
7995 (neon_vqshlu_n<mode>): Likewise.
7996 (neon_vshll_n<mode>): Likewise.
7997 (neon_vsra_n<mode>): Likewise.
7998 (neon_vsri_n<mode>): Likewise.
7999 (neon_vsli_n<mode>): Likewise.
8000 (neon_vtbl1v8qi): Likewise.
8001 (neon_vtbl2v8qi): Likewise.
8002 (neon_vtbl3v8qi): Likewise.
8003 (neon_vtbl4v8qi): Likewise.
8004 (neon_vtbl1v16qi): Likewise.
8005 (neon_vtbl2v16qi): Likewise.
8006 (neon_vcombinev16qi): Likewise.
8007 (neon_vtbx1v8qi): Likewise.
8008 (neon_vtbx2v8qi): Likewise.
8009 (neon_vtbx3v8qi): Likewise.
8010 (neon_vtbx4v8qi): Likewise.
8011 (*neon_vtrn<mode>_insn): Likewise.
8012 (*neon_vzip<mode>_insn): Likewise.
8013 (*neon_vuzp<mode>_insn): Likewise.
8014 (neon_vld1<mode>): Likewise.
8015 (neon_vld1_lane<mode>): Likewise.
8016 (neon_vld1_lane<mode>): Likewise.
8017 (neon_vld1_dup<mode>): Likewise.
8018 (neon_vld1_dup<mode>): Likewise.
8019 (neon_vld1_dupv2di): Likewise.
8020 (neon_vst1<mode>): Likewise.
8021 (neon_vst1_lane<mode>): Likewise.
8022 (neon_vst1_lane<mode>): Likewise.
8023 (neon_vld2<mode>): Likewise.
8024 (neon_vld2<mode>): Likewise.
8025 (neon_vld2_lane<mode>): Likewise.
8026 (neon_vld2_lane<mode>): Likewise.
8027 (neon_vld2_dup<mode>): Likewise.
8028 (neon_vst2<mode>): Likewise.
8029 (neon_vst2<mode>): Likewise.
8030 (neon_vst2_lane<mode>): Likewise.
8031 (neon_vst2_lane<mode>): Likewise.
8032 (neon_vld3<mode>): Likewise.
8033 (neon_vld3qa<mode>): Likewise.
8034 (neon_vld3qb<mode>): Likewise.
8035 (neon_vld3_lane<mode>): Likewise.
8036 (neon_vld3_lane<mode>): Likewise.
8037 (neon_vld3_dup<mode>): Likewise.
8038 (neon_vst3<mode>): Likewise.
8039 (neon_vst3qa<mode>): Likewise.
8040 (neon_vst3qb<mode>): Likewise.
8041 (neon_vst3_lane<mode>): Likewise.
8042 (neon_vst3_lane<mode>): Likewise.
8043 (neon_vld4<mode>): Likewise.
8044 (neon_vld4qa<mode>): Likewise.
8045 (neon_vld4qb<mode>): Likewise.
8046 (neon_vld4_lane<mode>): Likewise.
8047 (neon_vld4_lane<mode>): Likewise.
8048 (neon_vld4_dup<mode>): Likewise.
8049 (neon_vst4<mode>): Likewise.
8050 (neon_vst4qa<mode>): Likewise.
8051 (neon_vst4qb<mode>): Likewise.
8052 (neon_vst4_lane<mode>): Likewise.
8053 (neon_vst4_lane<mode>): Likewise.
8054 (neon_vec_unpack<US>_lo_<mode>): Likewise.
8055 (neon_vec_unpack<US>_hi_<mode>): Likewise.
8056 (neon_vec_<US>mult_lo_<mode>): Likewise.
8057 (neon_vec_<US>mult_hi_<mode>): Likewise.
8058 (neon_vec_<US>shiftl_<mode>): Likewise.
8059 (neon_unpack<US>_<mode>): Likewise.
8060 (neon_vec_<US>mult_<mode>): Likewise.
8061 (vec_pack_trunc_<mode>): Likewise.
8062 (neon_vec_pack_trunc_<mode>): Likewise.
8063 (neon_vabd<mode>_2): Likewise.
8064 (neon_vabd<mode>_3): Likewise.
8066 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8068 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
8069 (load_pair): Update type attribute.
8070 (store_pair): Update type attribute.
8071 * config/aarch64/iterators.md (q): New.
8073 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8075 * config/arm/types.md: Add new types for Neon insns.
8077 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8078 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8079 Sergey Lega <sergey.s.lega@intel.com>
8080 Anna Tikhonova <anna.tikhonova@intel.com>
8081 Ilya Tocar <ilya.tocar@intel.com>
8082 Andrey Turetskiy <andrey.turetskiy@intel.com>
8083 Ilya Verbin <ilya.verbin@intel.com>
8084 Kirill Yukhin <kirill.yukhin@intel.com>
8085 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8087 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
8088 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
8089 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
8091 (srcp14<mode>): Ditto.
8092 (rsqrt14<mode>): Ditto.
8093 (rsqrt14<mode>): Ditto.
8094 (avx512f_vmscalef<mode>): Ditto.
8095 (avx512f_scalef<mode>): Ditto.
8096 (avx512f_getexp<mode>): Ditto.
8097 (avx512f_sgetexp<mode>): Ditto.
8098 (avx512f_fixupimm<mode>): Ditto.
8099 (avx512f_sfixupimm<mode>): Ditto.
8100 (avx512f_rndscale<mode>): Ditto.
8101 (*avx512er_exp2<mode>): Ditto.
8102 (*avx512er_rcp28<mode>): Ditto.
8103 (avx512er_rsqrt28<mode>): Ditto.
8104 (avx512f_getmant<mode>): Ditto.
8105 (avx512f_getmant<mode>): Ditto.
8106 (avx512f_rndscale<mode>): Fix formatting.
8108 2013-10-15 Martin Jambor <mjambor@suse.cz>
8110 * ipa-utils.h (ipa_edge_within_scc): Declare.
8111 * ipa-cp.c (edge_within_scc): Moved...
8112 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
8114 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8115 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8116 Sergey Lega <sergey.s.lega@intel.com>
8117 Anna Tikhonova <anna.tikhonova@intel.com>
8118 Ilya Tocar <ilya.tocar@intel.com>
8119 Andrey Turetskiy <andrey.turetskiy@intel.com>
8120 Ilya Verbin <ilya.verbin@intel.com>
8121 Kirill Yukhin <kirill.yukhin@intel.com>
8122 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8124 * config/i386/predicates.md (const_8_to_15_operand): New.
8125 (const_16_to_31_operand): Ditto.
8126 * config/i386/sse.md (V8FI): New.
8128 (reduc_splus_v8df): Ditto.
8129 (reduc_splus_v16sf): Ditto.
8130 (avx512f_vextract<shuffletype>32x4_1): Ditto.
8131 (vec_extract_hi_<mode>): Ditto.
8132 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
8133 (vec_set_lo_<mode>): Ditto.
8134 (vec_set_hi_<mode>): Ditto.
8135 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
8136 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
8137 (avx512f_pshufd_1): Ditto.
8138 (avx512f_broadcast<mode>): Ditto.
8139 (avx512f_broadcast<mode>): Ditto.
8140 (define_split): Split vec_extract_lo into move.
8141 (ssequartermode): Ditto.
8142 (ssedoublemode): Extened with wider modes.
8143 (vec_extract_lo_<mode>): Ditto.
8145 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8146 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8147 Sergey Lega <sergey.s.lega@intel.com>
8148 Anna Tikhonova <anna.tikhonova@intel.com>
8149 Ilya Tocar <ilya.tocar@intel.com>
8150 Andrey Turetskiy <andrey.turetskiy@intel.com>
8151 Ilya Verbin <ilya.verbin@intel.com>
8152 Kirill Yukhin <kirill.yukhin@intel.com>
8153 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8155 * config/i386/predicates.md (register_or_constm1_operand): New.
8156 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
8157 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
8158 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
8159 UNSPEC_SCATTER_PREFETCH
8161 (avx512f_ucmp<mode>3): Ditto.
8162 (avx512f_vternlog<mode>): Ditto.
8163 (avx512f_align<mode>): Ditto.
8164 (<shift_insn><mode>3): Ditto.
8165 (avx512f_<rotate>v<mode>): Ditto.
8166 (avx512f_<rotate><mode>): Ditto.
8167 (avx512f_eq<mode>3): Ditto.
8168 (avx512f_eq<mode>3_1): Ditto.
8169 (avx512f_gt<mode>3): Ditto.
8170 (avx512f_testm<mode>3): Ditto.
8171 (avx512f_testnm<mode>3): Ditto.
8172 (avx512pf_gatherpf<mode>): Ditto.
8173 (*avx512pf_gatherpf<mode>_mask): Ditto.
8174 (*avx512pf_gatherpf<mode>): Ditto.
8175 (avx512pf_scatterpf<mode>): Ditto.
8176 (*avx512pf_scatterpf<mode>_mask): Ditto.
8177 (*avx512pf_scatterpf<mode>): Ditto.
8178 (avx512f_vec_dup_gpr<mode>): Ditto.
8179 (clz<mode>2): Ditto.
8180 (conflict<mode>): Ditto.
8181 (REDUC_SMINMAX_MODE): Extened with wider modes.
8182 (reduc_<code>_<mode>): Ditto.
8183 (vlshr<mode>3): Ditto.
8184 (vashl<mode>3): Ditto.
8186 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8187 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8188 Sergey Lega <sergey.s.lega@intel.com>
8189 Anna Tikhonova <anna.tikhonova@intel.com>
8190 Ilya Tocar <ilya.tocar@intel.com>
8191 Andrey Turetskiy <andrey.turetskiy@intel.com>
8192 Ilya Verbin <ilya.verbin@intel.com>
8193 Kirill Yukhin <kirill.yukhin@intel.com>
8194 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8196 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
8199 (avx512fmaskmode): Ditto.
8200 (bcstscalarsuff): Ditto.
8201 (avx512f_blendm<mode>): Ditto.
8202 (cmp_imm_predicate): Ditto.
8203 (avx512f_cmp<mode>3): Ditto.
8204 (avx512f_vec_dup<mode>): Ditto.
8205 (avx512f_vec_dup_mem<mode>): Ditto.
8206 (avx512f_vpermi2var<mode>3): Ditto.
8207 (avx512f_vpermt2var<mode>3): Ditto.
8208 (vec_init<mode>): Ditto.
8209 (avx512f_gathersi<mode>): Ditto.
8210 (*avx512f_gathersi<mode>): Ditto.
8211 (*avx512f_gathersi<mode>_2): Ditto.
8212 (avx512f_gatherdi<mode>): Ditto.
8213 (*avx512f_gatherdi<mode>): Ditto.
8214 (*avx512f_gatherdi<mode>_2): Ditto.
8215 (avx512f_scattersi<mode>): Ditto.
8216 (*avx512f_scattersi<mode>): Ditto.
8217 (avx512f_scatterdi<mode>): Ditto.
8218 (*avx512f_scatterdi<mode>): Ditto.
8219 (sseintprefix): Extened with wider modes.
8220 (VEC_GATHER_IDXSI): Ditto.
8221 (VEC_GATHER_IDXDI): Ditto.
8222 (VEC_GATHER_SRCDI): Ditto.
8224 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8225 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8227 * config/arm/t-aprofile: New file.
8228 * config.gcc: Handle --with-multilib-list option.
8230 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
8232 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
8235 2013-10-15 Richard Biener <rguenther@suse.de>
8237 * tree-loop-distribution.c (build_empty_rdg): Inline into
8239 (rdg_flag_vertex): Inline into single user.
8240 (rdg_flag_vertex_and_dependent): Likewise.
8241 (build_rdg_partition_for_vertex): Remove processed bitmap.
8242 (rdg_build_partitions): Simplify.
8244 2013-10-15 Richard Biener <rguenther@suse.de>
8246 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
8247 Restructure forwarding through conversions and copies to
8248 avoid performing copy-propagation the wrong way. Adjust
8249 recursion invocations.
8250 (forward_propagate_addr_expr): Add argument stating if we
8251 are recursing from a single-use.
8252 (ssa_forward_propagate_and_combine): Adjust.
8254 2013-10-14 David Malcolm <dmalcolm@redhat.com>
8256 * dumpfile.h (gcc::dump_manager): New class, to hold state
8257 relating to dumpfile management.
8258 (get_dump_file_name): Remove in favor of method of dump_manager.
8259 (dump_initialized_p): Likewise.
8260 (dump_start): Likewise.
8261 (dump_finish): Likewise.
8262 (dump_switch_p): Likewise.
8263 (dump_register): Likewise.
8264 (get_dump_file_info): Likewise.
8265 * context.c (gcc::context::context): Construct the dump_manager
8267 * context.h (gcc::context::get_dumps): New.
8268 (gcc::context::m_dumps): New.
8269 * coverage.c (coverage_init): Port to dump_manager API.
8270 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
8271 (extra_dump_files_in_use): Likewise.
8272 (extra_dump_files_alloced): Likewise.
8273 (gcc::dump_manager::dump_manager): New.
8274 (dump_register): Convert to...
8275 (gcc::dump_manager::dump_register): ...method, replacing
8276 function-static next_dump with m_next_dump field.
8277 (get_dump_file_info): Convert to...
8278 (gcc::dump_manager::get_dump_file_info): ...method.
8279 (get_dump_file_name): Convert to...
8280 (gcc::dump_manager::get_dump_file_name): ...method.
8281 (dump_start): Convert to...
8282 (gcc::dump_manager::dump_start): ...method.
8283 (dump_finish): Convert to...
8284 (gcc::dump_manager::dump_finish): ...method.
8285 (dump_begin): Replace body with...
8286 (gcc::dump_manager::dump_begin): ...new method.
8287 (dump_phase_enabled_p): Convert to...
8288 (gcc::dump_manager::dump_phase_enabled_p): ...method.
8289 (dump_phase_enabled_p): Convert to...
8290 (gcc::dump_manager::dump_phase_enabled_p): ...method.
8291 (dump_initialized_p): Convert to...
8292 (gcc::dump_manager::dump_initialized_p): ...method.
8293 (dump_flag_name): Replace body with...
8294 (gcc::dump_manager::dump_flag_name): ...new method.
8295 (dump_enable_all): Convert to...
8296 (gcc::dump_manager::dump_enable_all): ...new method.
8297 (opt_info_enable_passes): Convert to...
8298 (gcc::dump_manager::opt_info_enable_passes): ...new method.
8299 (dump_switch_p_1): Convert to...
8300 (gcc::dump_manager::dump_switch_p_1): ...new method.
8301 (dump_switch_p): Convert to...
8302 (gcc::dump_manager::dump_switch_p): ...new method.
8303 (opt_info_switch_p): Port to dump_manager API.
8304 (enable_rtl_dump_file): Likewise.
8305 * opts-global.c (handle_common_deferred_options): Port to new
8307 * passes.c (pass_manager::finish_optimization_passes): Likewise.
8308 (pass_manager::register_one_dump_file): Likewise.
8309 (pass_manager::register_pass): Likewise.
8310 (pass_init_dump_file): Likewise.
8311 (pass_fini_dump_file): Likewise.
8312 * statistics.c (statistics_early_init): Likewise.
8314 2013-10-14 Richard Biener <rguenther@suse.de>
8316 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
8317 iterative_hash_canonical_type, gimple_canonical_type_hash,
8318 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
8319 gimple_register_canonical_type, print_gimple_types_stats,
8320 free_gimple_type_tables): Move to lto/lto.c
8321 (gt-gimple.h): Do not include.
8322 * gimple.h (gimple_register_canonical_type,
8323 print_gimple_types_stats, free_gimple_type_tables): Remove.
8324 * Makefile.in (GTFILES): Remove gimple.c.
8326 2013-10-14 Travis Snoozy <quandary@remstate.com>
8329 * config/msp430/msp430.c (msp430_option_override): Correct thinko
8330 scanning for msp430x targets.
8332 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
8335 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
8336 (registers_ok_for_ldd_peep): Move around.
8337 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
8338 * config/sparc/sparc.md (widening peepholes): Use it.
8340 2013-10-14 Richard Biener <rguenther@suse.de>
8344 * gimple.c (iterative_hash_canonical_type): Make sure to
8345 record the hash into the correct hashtable slot.
8347 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
8349 PR rtl-optimization/58662
8350 * combine.c (try_combine): Take into account death nodes on I2 when
8351 splitting a PARALLEL of two independent SETs. Fix dump message.
8353 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
8356 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
8357 * config.gcc (SH extra_objs): Add sh_ifcvt.o.
8358 * config/sh/t-sh (sh_treg_combine.o): New entry.
8359 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
8360 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
8361 (register_sh_passes): New function. Register sh_treg_combine pass.
8362 (sh_option_override): Invoke it.
8363 (sh_canonicalize_comparison): Handle op0_preserve_value.
8364 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
8365 opportunities. Canonicalize branch condition.
8366 (nott): Allow only if pseudos can be created for non-SH2A.
8368 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
8371 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
8372 (ix86_expand_movmem): Replace copy_addr_to_reg with
8373 ix86_copy_addr_to_reg.
8374 (ix86_expand_setmem): Likewise.
8376 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
8378 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
8379 provided by ix86_fp_compare_mode instead of CCFPUmode.
8381 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
8383 * config/aarch64/arm_neon.h
8384 (vtbx<1,3>_<psu>8): Fix register constriants.
8386 2013-10-11 Jeff Law <law@redhat.com>
8388 PR tree-optimization/58640
8389 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
8390 threading paths that cross over two loop entry points.
8392 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8394 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
8395 handle vector float as well.
8396 (*vsx_le_perm_load_v4si): Likewise.
8397 (*vsx_le_perm_store_v2di): Likewise.
8398 (*vsx_le_perm_store_v4si): Likewise.
8400 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8402 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
8403 directly to circumvent subtract from splat{31} workaround.
8404 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
8406 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
8407 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
8408 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
8409 (altivec_vperm_<mode>): Convert to define_insn_and_split to
8410 separate big and little endian logic.
8411 (*altivec_vperm_<mode>_internal): New define_insn.
8412 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
8413 separate big and little endian logic.
8414 (*altivec_vperm_<mode>_uns_internal): New define_insn.
8415 (vec_permv16qi): Add little endian logic.
8417 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
8419 * doc/extend.texi (returns_nonnull): Remove arguments.
8421 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8422 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8423 Sergey Lega <sergey.s.lega@intel.com>
8424 Anna Tikhonova <anna.tikhonova@intel.com>
8425 Ilya Tocar <ilya.tocar@intel.com>
8426 Andrey Turetskiy <andrey.turetskiy@intel.com>
8427 Ilya Verbin <ilya.verbin@intel.com>
8428 Kirill Yukhin <kirill.yukhin@intel.com>
8429 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8431 * config/i386/sse.md (VI48F_256_512): New.
8432 (avx2_permvar<mode>): Change to ...
8433 (<avx2_avx512f>_permvar<mode>): This.
8435 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8436 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8437 Sergey Lega <sergey.s.lega@intel.com>
8438 Anna Tikhonova <anna.tikhonova@intel.com>
8439 Ilya Tocar <ilya.tocar@intel.com>
8440 Andrey Turetskiy <andrey.turetskiy@intel.com>
8441 Ilya Verbin <ilya.verbin@intel.com>
8442 Kirill Yukhin <kirill.yukhin@intel.com>
8443 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8445 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
8446 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
8447 * config/i386/sse.md (VI4_AVX): New.
8448 (sf2simodelower): Ditto.
8449 (sse2_cvtps2dq): Change to ...
8450 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
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/sse.md (V_512): New.
8464 (vcond<V_512:mode><VF_512:mode>): Ditto.
8465 (vcond<V_512:mode><VI_512:mode>): Ditto.
8466 (vcondu<V_512:mode><VI_512:mode>): Ditto.
8468 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8469 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8470 Sergey Lega <sergey.s.lega@intel.com>
8471 Anna Tikhonova <anna.tikhonova@intel.com>
8472 Ilya Tocar <ilya.tocar@intel.com>
8473 Andrey Turetskiy <andrey.turetskiy@intel.com>
8474 Ilya Verbin <ilya.verbin@intel.com>
8475 Kirill Yukhin <kirill.yukhin@intel.com>
8476 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8478 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
8479 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
8481 (fma<mode>4): Removed condition.
8482 (fms<mode>4): Ditto.
8483 (fnma<mode>4): Ditto.
8484 (fnms<mode>4): Ditto.
8485 (fma4i_fmadd_<mode>): Ditto.
8486 (*fma_fmadd_<mode>): Ditto.
8487 (*fma_fmsub_<mode>): Ditto.
8488 (*fma_fnmadd_<mode>): Ditto.
8489 (*fma_fnmsub_<mode>): Ditto.
8490 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
8491 (*fma_fmaddsub_<mode>): Ditto.
8492 (*fma_fmsubadd_<mode>): Ditto.
8493 (*fmai_fmadd_<mode>): Ditto.
8494 (*fmai_fmsub_<mode>): Ditto.
8495 (*fmai_fnmadd_<mode>): Ditto.
8496 (*fmai_fnmsub_<mode>): Ditto.
8498 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8499 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8500 Sergey Lega <sergey.s.lega@intel.com>
8501 Anna Tikhonova <anna.tikhonova@intel.com>
8502 Ilya Tocar <ilya.tocar@intel.com>
8503 Andrey Turetskiy <andrey.turetskiy@intel.com>
8504 Ilya Verbin <ilya.verbin@intel.com>
8505 Kirill Yukhin <kirill.yukhin@intel.com>
8506 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8508 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
8509 (VI124_256): Changed to ...
8510 (VI124_256_48_512): This.
8511 (ssepackmode): Extended with wider modes.
8512 (<code><mode>3): Changed iterator.
8513 (*avx2_<code><mode>3): Ditto.
8514 (vec_pack_trunc_<mode>): Ditto.
8516 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8517 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8518 Sergey Lega <sergey.s.lega@intel.com>
8519 Anna Tikhonova <anna.tikhonova@intel.com>
8520 Ilya Tocar <ilya.tocar@intel.com>
8521 Andrey Turetskiy <andrey.turetskiy@intel.com>
8522 Ilya Verbin <ilya.verbin@intel.com>
8523 Kirill Yukhin <kirill.yukhin@intel.com>
8524 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8526 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
8527 (VI8F_256_512): Ditto.
8528 (abs<mode>2): Changed iterator.
8529 (avx2_perm<mode>): Changed to ...
8530 (<avx2_avx512f>_perm<mode>): This.
8531 (avx2_perm<mode>_1): Changed to ...
8532 (<avx2_avx512f>_perm<mode>_1): This.
8534 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8535 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8536 Sergey Lega <sergey.s.lega@intel.com>
8537 Anna Tikhonova <anna.tikhonova@intel.com>
8538 Ilya Tocar <ilya.tocar@intel.com>
8539 Andrey Turetskiy <andrey.turetskiy@intel.com>
8540 Ilya Verbin <ilya.verbin@intel.com>
8541 Kirill Yukhin <kirill.yukhin@intel.com>
8542 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8544 * config/i386/sse.md (VI48_AVX512F): New.
8545 (VI48_AVX2): Changed to ...
8546 (VI48_AVX2_48_AVX512F): This.
8547 (avx2_ashrv<mode>): Changed to ...
8548 (<avx2_avx512f>_ashrv<mode>): This.
8549 (avx2_<shift_insn>v<mode>): Changed to ...
8550 (<avx2_avx512f>_<shift_insn>v<mode>): This.
8552 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8553 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8554 Sergey Lega <sergey.s.lega@intel.com>
8555 Anna Tikhonova <anna.tikhonova@intel.com>
8556 Ilya Tocar <ilya.tocar@intel.com>
8557 Andrey Turetskiy <andrey.turetskiy@intel.com>
8558 Ilya Verbin <ilya.verbin@intel.com>
8559 Kirill Yukhin <kirill.yukhin@intel.com>
8560 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8562 * config/i386/sse.md (VI4_AVX512F): New.
8563 (VI8_AVX2_AVX512F): Ditto.
8564 (mul<mode>3): Extended with wider modes.
8565 (*<sse4_1_avx2>_mul<mode>3): Ditto.
8566 (mul<mode>3): Ditto.
8567 (vec_widen_<s>mult_odd_<mode>): Ditto.
8569 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8570 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8571 Sergey Lega <sergey.s.lega@intel.com>
8572 Anna Tikhonova <anna.tikhonova@intel.com>
8573 Ilya Tocar <ilya.tocar@intel.com>
8574 Andrey Turetskiy <andrey.turetskiy@intel.com>
8575 Ilya Verbin <ilya.verbin@intel.com>
8576 Kirill Yukhin <kirill.yukhin@intel.com>
8577 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8579 * config/i386/sse.md (VI2_AVX512F): New.
8580 (VI124_AVX512F): Ditto.
8581 (sseunpackmode): Extended with wider modes.
8582 (sseunpackfltmode): Ditto.
8583 (vec_unpacks_float_hi_<mode>): Ditto.
8584 (vec_unpacks_float_lo_<mode>): Ditto.
8585 (vec_unpacku_float_hi_<mode>): Ditto.
8586 (vec_unpacku_float_lo_<mode>): Ditto.
8587 (vec_unpacks_lo_<mode>): Ditto.
8588 (vec_unpacks_hi_<mode>): Ditto.
8589 (vec_unpacku_lo_<mode>): Ditto.
8590 (vec_unpacku_hi_<mode>): Ditto.
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/i386.md (multdiv): New.
8603 (multdiv_mnemonic): Ditto.
8604 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
8605 (<sse>_vm<multdiv_mnemonic><mode>3): This.
8606 (<sse>_vmdiv<mode>3): Removed.
8608 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8609 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8610 Sergey Lega <sergey.s.lega@intel.com>
8611 Anna Tikhonova <anna.tikhonova@intel.com>
8612 Ilya Tocar <ilya.tocar@intel.com>
8613 Andrey Turetskiy <andrey.turetskiy@intel.com>
8614 Ilya Verbin <ilya.verbin@intel.com>
8615 Kirill Yukhin <kirill.yukhin@intel.com>
8616 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8618 * config/i386/sse.md (V): Extended with wider modes.
8620 (ssehalfvecmode): Ditto.
8622 (ssepackfltmode): Ditto.
8623 (avx_vec_concat<mode>): Ditto.
8624 (V_256_512): New iterator.
8625 (VF2_512_256): Ditto.
8626 (si2dfmode): New attribute.
8627 (si2dfmodelower): Ditto.
8629 (concat_tg_mode): Ditto.
8630 (floatv4siv4df2): Changed to ...
8631 (float<si2dfmodelower><mode>2): This.
8632 (avx_cvtps2pd256): Changed to ...
8633 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
8634 (vec_pack_trunc_v4df): Changed to ...
8635 (vec_pack_trunc_<mode>): This.
8636 (avx_vpermil<mode>): Changed to ...
8637 (<sse2_avx_avx512f>_vpermil<mode>): This.
8638 (<fixsuffix>fix_truncv8dfv8si2): New.
8639 (vec_pack_sfix_trunc_v8df): Ditto.
8640 (avx512f_rndscale<mode>): Ditto.
8641 (avx512f_roundpd512): Ditto.
8642 (vec_pack_ufix_trunc_<mode>): Updated iterator.
8644 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8645 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8646 Sergey Lega <sergey.s.lega@intel.com>
8647 Anna Tikhonova <anna.tikhonova@intel.com>
8648 Ilya Tocar <ilya.tocar@intel.com>
8649 Andrey Turetskiy <andrey.turetskiy@intel.com>
8650 Ilya Verbin <ilya.verbin@intel.com>
8651 Kirill Yukhin <kirill.yukhin@intel.com>
8652 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8654 * config/i386/i386.md (any_fix): New iterator.
8655 (fixsuffix): New attribute.
8656 * config/i386/sse.md (VF1): Extened with wider modes.
8660 (sseintvecmodelower): Ditto.
8661 (ssescalarmode): Ditto.
8662 (ssescalarnum): Ditto.
8664 (ssexmmmode): Ditto.
8665 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
8666 (<sse>_rcp<mode>2): Change iterator.
8667 (rsqrt<mode>2): Ditto.
8668 (<sse>_rsqrt<mode>2): Ditto.
8669 (avx2_vec_dup<mode>): Ditto.
8670 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
8671 (round<mode>2_sfix): Ditto.
8672 (avx2_pbroadcast<mode>): Ditto.
8673 (*andnot<mode>3): Handle XI mode.
8674 (*<code><mode>3): Ditto.
8675 (AVXTOSSEMODE): Removed.
8676 (avx_vpermil<mode>): Changed to ...
8677 (<sse2_avx_avx512f>_vpermil<mode>): This.
8679 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8680 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8681 Sergey Lega <sergey.s.lega@intel.com>
8682 Anna Tikhonova <anna.tikhonova@intel.com>
8683 Ilya Tocar <ilya.tocar@intel.com>
8684 Andrey Turetskiy <andrey.turetskiy@intel.com>
8685 Ilya Verbin <ilya.verbin@intel.com>
8686 Kirill Yukhin <kirill.yukhin@intel.com>
8687 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8689 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
8690 (<sse>_comi): Ditto.
8691 (<sse>_ucomi): Ditto.
8692 (sse_cvtss2siq_2): Ditto.
8693 (sse2_cvtsd2si): Ditto.
8694 (sse2_cvtsd2siq): Ditto.
8695 (sse2_cvttsd2si): Ditto.
8696 (sse2_cvttsd2siq): Ditto.
8697 (<shift_insn><mode>3): Ditto.
8698 (sse2_cvtsi2sdq): Update constraint and prefix.
8699 (sse_cvtsi2ss): Update prefix.
8700 (sse_cvtsi2ssq): Ditto.
8702 2013-10-11 Jakub Jelinek <jakub@redhat.com>
8704 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
8705 ignore internal calls.
8707 2013-10-11 Richard Biener <rguenther@suse.de>
8709 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
8710 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
8711 TREE_OVERFLOW is set.
8713 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8715 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
8717 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
8718 * gimple.h: Likewise.
8720 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
8722 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
8725 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
8727 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
8728 * configure: Regenerate.
8730 2013-10-11 Jakub Jelinek <jakub@redhat.com>
8732 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
8733 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
8734 formatting fixes, use pp_colon instead of pp_character (..., ':'),
8735 similarly pp_right_paren.
8736 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
8737 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
8738 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
8739 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
8741 (omp_declare_simd_clauses_equal,
8742 omp_remove_redundant_declare_simd_attrs): New functions.
8743 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
8744 (walk_tree_1): Handle new OpenMP 4.0 clauses.
8745 * tree.h (OMP_LOOP_CHECK): Define.
8746 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
8747 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
8748 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
8749 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
8750 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
8751 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
8752 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
8753 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
8754 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
8755 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
8756 OMP_CLAUSE_SIMDLEN_EXPR): Define.
8757 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
8758 (omp_remove_redundant_declare_simd_attrs): New prototype.
8759 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
8760 GIMPLE_OMP_TEAMS): New codes.
8761 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
8762 * omp-low.c (struct omp_context): Add cancel_label and cancellable
8764 (target_nesting_level): New variable.
8765 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
8766 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
8767 for collapse > 1 static schedule unless ordered.
8768 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
8769 (determine_parallel_type): Adjust get_ws_args_for caller.
8770 (install_var_field): Handle mask & 4 for double indirection.
8771 (scan_sharing_clauses): Ignore shared clause on teams construct.
8772 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
8773 (create_omp_child_function): If inside target or declare target
8774 constructs, set "omp declare target" attribute on the child function.
8775 (find_combined_for): New function.
8776 (scan_omp_parallel): Handle combined loops.
8777 (scan_omp_target, scan_omp_teams): New functions.
8778 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
8779 restrictions and set ctx->cancellable for cancellable constructs.
8780 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
8781 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
8782 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
8783 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
8784 (omp_clause_aligned_alignment): New function.
8785 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
8786 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
8787 on teams constructs. Handle user defined reductions and new
8789 (lower_reduction_clauses): Don't set placeholder to address of ref
8790 if it has already the right type.
8791 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
8792 (expand_parallel_call): Use the new non-_start suffixed builtins,
8793 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
8794 and GOMP_parallel_end after the call.
8795 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
8796 (expand_omp_for_init_counts): Handle combined loops.
8797 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
8799 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
8800 end of cancellable loops.
8801 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8802 Likewise. Handle collapse > 1 loops.
8803 (expand_omp_simd): Handle combined loops.
8804 (expand_omp_for): Add inner_stmt argument, adjust callers of
8805 expand_omp_for* functions, use expand_omp_for_static*chunk even
8806 for collapse > 1 unless ordered.
8807 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
8808 of cancellable sections.
8809 (expand_omp_single): Remove need_barrier variable, just rely on
8810 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
8811 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
8812 (expand_omp_atomic_load, expand_omp_atomic_store,
8813 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
8814 (expand_omp_target): New function.
8815 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
8816 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
8817 (build_omp_regions_1): Immediately close region for
8818 GF_OMP_TARGET_KIND_UPDATE.
8819 (maybe_add_implicit_barrier_cancel): New function.
8820 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
8822 (lower_omp_single): Likewise. Add clobber after the barrier.
8823 (lower_omp_taskgroup): New function.
8824 (lower_omp_for): Handle combined loops. Adjust
8825 lower_rec_input_clauses caller. Handle cancellation.
8826 (lower_depend_clauses): New function.
8827 (lower_omp_taskreg): Lower depend clauses. Adjust
8828 lower_rec_input_clauses caller. Add clobber after the call. Handle
8830 (lower_omp_target, lower_omp_teams): New functions.
8831 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
8832 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
8833 and GOMP_cancellation_point calls.
8834 (lower_omp): Fold stmts inside of target region.
8835 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
8836 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
8837 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
8838 (BT_FN_VOID_OMPFN_PTR_UINT,
8839 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
8840 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
8841 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
8842 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
8843 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
8844 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
8845 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
8846 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8847 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8848 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
8849 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8850 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
8851 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
8852 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
8853 BUILT_IN_GOMP_PARALLEL_END.
8854 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
8855 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
8856 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
8857 GF_OMP_FOR_KIND_DISTRIBUTE.
8858 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
8859 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
8860 (dump_gimple_omp_return): Print lhs if it has any.
8861 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
8862 gimple_omp_atomic_seq_cst_p.
8863 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
8864 and GIMPLE_OMP_TEAMS.
8865 * langhooks.c (lhd_omp_mappable_type): New function.
8866 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
8867 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
8869 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
8870 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
8871 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
8872 (struct gimplify_omp_ctx): Add combined_loop field.
8873 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
8874 on stmts inside of target region.
8875 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
8876 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
8877 ORT_TARGET and ORT_TARGET_DATA.
8878 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
8880 (omp_notice_threadprivate_variable): Complain about threadprivate
8881 variables in target region.
8882 (omp_notice_variable): Complain about vars with non-mappable type
8883 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
8884 (omp_check_private): Ignore ORT_TARGET* regions.
8885 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
8886 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
8887 (find_combined_omp_for): New function.
8888 (gimplify_omp_for): Handle gimplification of combined loops.
8889 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
8891 (gimplify_omp_target_update): New function.
8892 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
8893 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
8894 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
8895 (gimplify_body): If fndecl has "omp declare target" attribute, add
8896 implicit ORT_TARGET context around it.
8897 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
8898 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
8899 * tree-nested.c (convert_nonlocal_reference_stmt,
8900 convert_local_reference_stmt, convert_gimple_call): Handle
8901 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8902 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
8903 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
8904 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
8905 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
8906 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
8907 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
8908 BUILT_IN_GOMP_LOOP_END_CANCEL,
8909 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
8910 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
8911 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
8912 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
8913 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
8914 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
8915 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
8916 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
8917 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
8918 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
8919 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
8920 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
8921 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
8922 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
8923 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
8924 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8925 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
8926 gimple_build_omp_teams): New functions.
8927 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
8928 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
8929 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
8930 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8931 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
8932 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
8933 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
8934 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
8935 GF_OMP_ATOMIC_SEQ_CST): New.
8936 (gimple_build_omp_taskgroup, gimple_build_omp_target,
8937 gimple_build_omp_teams): New prototypes.
8938 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
8939 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8940 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
8941 GIMPLE_OMP_SINGLE as end of range.
8942 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
8943 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
8944 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
8945 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
8946 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
8947 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
8948 gimple_omp_target_kind, gimple_omp_target_set_kind,
8949 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
8950 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
8951 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
8952 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
8953 gimple_omp_teams_set_clauses): New inlines.
8954 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
8955 and GIMPLE_OMP_TASKGROUP.
8956 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
8957 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
8958 enum omp_clause_proc_bind_kind): New.
8959 (union omp_clause_subcode): Add depend_kind, map_kind and
8960 proc_bind_kind fields.
8961 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
8962 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8963 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
8964 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
8965 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
8967 2013-10-10 Teresa Johnson <tejohnson@google.com>
8969 * predict.c (tree_estimate_probability): Add new parameter
8970 for estimate_bb_frequencies.
8971 (estimate_bb_frequencies): Add new parameter to force estimation.
8972 (rebuild_frequencies): When max frequency in function is small,
8973 recompute counts from frequencies.
8974 * predict.h (estimate_bb_frequencies): New parameter.
8976 2013-10-10 David Malcolm <dmalcolm@redhat.com>
8978 * ipa-inline.c (ipa_inline): Fix leak of "order" when
8979 optimizations are disabled.
8981 2013-10-10 David Malcolm <dmalcolm@redhat.com>
8983 * coverage.c (coverage_finish): Fix leak of da_file_name.
8985 2013-10-10 Jan Hubicka <jh@suse.cz>
8987 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
8988 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
8991 2013-10-10 Jakub Jelinek <jakub@redhat.com>
8994 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
8995 if any labels are in FALLTHRU_BB, use a special label emitted
8996 immediately after the asm goto insn rather than label_rtx
8998 (expand_asm_stmt): Adjust caller.
8999 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
9000 edge if the last insn in predecessor is a jump with single successor,
9001 but it isn't simplejump_p.
9003 2013-10-10 Richard Biener <rguenther@suse.de>
9005 PR tree-optimization/58656
9006 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
9008 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
9010 * gimplify.c: Include expr.h and tm_p.h for targets with special
9011 va-arg padding requirements.
9013 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
9015 * tree-flow.h: Move some prototypes to gimple.h.
9016 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
9017 * gimple.h: Relocate some prototypes from tree-flow.h
9018 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
9020 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
9021 (build_va_arg_indirect_ref): Relocate and make static.
9022 (std_gimplify_va_arg_expr): Relocate here.
9023 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
9024 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
9026 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9028 * doc/md.texi: Document the mnemonic attribute.
9030 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9033 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
9034 (set_attr_alternative x ...) when searching for user defined
9037 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
9039 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
9041 2013-10-09 Easwaran Raman <eraman@google.com>
9043 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
9044 * cfgexpand.c (defer_stack_allocation): ...use here
9045 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
9047 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
9049 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
9050 (operand_equal_for_value_replacement): New function, extracted from
9051 value_replacement and enhanced to catch more cases.
9052 (value_replacement): Use operand_equal_for_value_replacement.
9054 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9056 * loop-doloop.c (doloop_modify, doloop_optimize): Use
9057 get_max_loop_iterations.
9059 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9061 * config/arm/aarch-common.c (arm_early_load_addr_dep):
9062 Place comment above function.
9064 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9066 * tree-flow.h: Remove all remaining prototypes, enums and structs that
9067 are not related to tree-cfg.c.
9068 * tree-ssa-address.h: New file. Relocate prototypes.
9069 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
9070 (addr_for_mem_ref): New. Combine call to get_address_description and
9071 return addr_for_mem_ref.
9072 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
9073 * tree-ssa-live.h: Adjust prototypes.
9074 * passes.c: Include tree-ssa-live.h.
9075 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
9076 * graphite.c (graphite_transform_loops): Make static.
9077 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
9078 make_pass_graphite, pass_data_graphite_transforms,
9079 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
9080 * ipa-pure-const.c (warn_function_noreturn): Make static.
9081 (execute_warn_function_noreturn, gate_warn_function_noreturn,
9082 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
9083 Relocate from tree-cfg.c
9084 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
9086 (execute_warn_function_noreturn, gate_warn_function_noreturn,
9087 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
9088 Move to ipa-pure-const.c.
9089 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
9090 Relocate from tree-optimize.c.
9091 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
9092 make_pass_fixup_cfg): Move to tree-cfg.c.
9093 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
9094 Relocate some prototypes.
9095 * tree-data-ref.h (tree_check_data_deps) Add prototype.
9096 * tree-dump.c (dump_function_to_file): Remove prototype.
9097 Add tree-flow.h to the include file.
9098 * tree-dump.h: Remove prototype.
9099 * tree-parloops.h: New File. Add prototypes.
9100 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
9101 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
9102 from tree-ssa-loop.c.
9103 * tree-predcom.c (run_tree_predictive_commoning,
9104 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
9105 Relocate here from tree-ssa-loop.c.
9106 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
9107 ssa_name_values.release ().
9108 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
9109 (ssa_name_values): Relocate from tree-flow.h.
9110 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
9111 * tree-ssa-loop.c (run_tree_predictive_commoning,
9112 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
9113 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
9114 make_pass_graphite, pass_data_graphite_transforms,
9115 make_pass_graphite_transforms, gate_tree_parallelize_loops,
9116 tree_parallelize_loops, pass_data_parallelize_loops,
9117 make_pass_parallelize_loops): Move to other files.
9118 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
9120 * tree.h: Remove prototypes from tree-address.c.
9122 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9124 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
9125 (struct int_tree_map): Move to tree-hasher.h
9126 (SCALE, LABEL, PERCENT): Move to gimple.h
9127 * tree-flow-inline.h: Delete. Move functions to other files.
9128 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
9129 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
9130 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
9131 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
9132 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
9133 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
9134 * tree-hasher.h: Don't include tree-flow.h.
9135 (struct int_tree_map): Relocate from tree-flow.h.
9136 * tree-sra.c (contains_view_convert_expr_p): Relocate from
9137 tree-flow-inline.h and make static.
9138 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
9140 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
9141 tree-flow-inline.h and make static.
9142 * tree.h (is_global_var, may_be_aliased): Relocate from
9144 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
9145 * value-prof.c: No longer include tree-flow-inline.h.
9146 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
9148 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9150 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
9151 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
9152 (enum move_pos): Move to tree-ssa-loop-im.h
9153 * cfgloop.h: Move some prototypes.
9154 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
9155 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
9156 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
9157 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
9158 (loop_containing_stmt): Relocate from tree-flow-inline.h.
9159 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
9160 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
9161 (enum move_pos): Relocate here.
9162 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
9164 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
9165 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
9166 make_pass_lim): Relocate here from tree-ssa-loop.c.
9167 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
9169 (loop_edge_to_cancel, unloop_loops): Make static.
9170 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
9171 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
9172 (tree_complete_unroll, gate_tree_complete_unroll,
9173 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
9174 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
9175 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
9176 * tree-ssa-loop-ivopts.c: Remove local prototypes.
9177 (stmt_invariant_in_loop_p): Remove unused function.
9178 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
9179 * tree-ssa-loop-manip.h: New file. Add prototypes.
9180 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
9181 (gcov_type_to_double_int): Move to cfgloop.h.
9182 (double_int_cmp, bound_index,
9183 estimate_numbers_of_iterations_loop): Make static.
9184 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
9185 (max_loop_iterations): Factor out get_max_loop_iterations.
9186 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
9188 * tree-ssa-loop-niter.h: New file. Add prototypes.
9189 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
9190 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
9191 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
9192 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
9193 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
9194 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
9195 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
9196 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
9197 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
9198 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
9199 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
9200 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
9201 pass_data_complete_unroll, make_pass_complete_unroll,
9202 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
9203 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
9204 tree-ssa-loop-ivcanon.c.
9205 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
9206 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
9207 tree-ssa-loop-prefetch.c.
9208 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
9210 (get_lsm_tmp_name): Relocate and add suffix parameter.
9211 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
9212 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
9213 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
9214 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
9215 (get_estimated_loop_iterations): Factor out accessor from
9216 estimated_loop_iterations in tree-ssa-loop-niter.c.
9217 (get_max_loop_iterations): Factor out accessor from
9218 _max_loop_iterations in tree-ssa-niter.c.
9219 * loop-unroll.c (decide_unroll_constant_iterations,
9220 decide_unroll_runtime_iterations, decide_peel_simple,
9221 decide_unroll_stupid): Use new get_* accessors.
9223 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
9225 PR tree-optimization/20318
9226 * doc/extend.texi (returns_nonnull): New function attribute.
9227 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
9229 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
9230 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
9232 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
9235 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
9236 false if both components are bitfields.
9238 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
9240 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
9241 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
9242 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
9243 * config/aarch64/aarch64.h
9244 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
9245 * config/aarch64/aarch64-simd-builtins.def
9246 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
9248 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
9250 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
9252 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
9254 * config/aarch64/arm_neon.h (vdiv_f64): Added.
9256 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
9258 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
9259 (vneg_f64): New intrinsic.
9260 (vneg_s8): Asm replaced with C.
9261 (vneg_s16): Likewise.
9262 (vneg_s32): Likewise.
9263 (vneg_s64): New intrinsic.
9264 (vnegq_f32): Asm replaced with C.
9265 (vnegq_f64): Likewise.
9266 (vnegq_s8): Likewise.
9267 (vnegq_s16): Likewise.
9268 (vnegq_s32): Likewise.
9269 (vnegq_s64): Likewise.
9271 2013-10-09 Renlin Li <Renlin.Li@arm.com>
9273 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
9275 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9277 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
9278 packed stack special handling.
9279 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
9280 back to fixed stack slots for FPRs saved due to stdarg.
9282 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9284 * config/s390/s390.c (s390_frame_info): Restructure function.
9286 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9288 * config/s390/s390.c (struct s390_frame_layout): New field
9290 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
9291 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
9292 regs_ever_clobbered to char*.
9293 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
9294 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
9295 (s390_register_info): Enable FPR save slots. Move/Copy some
9296 functionality into ...
9297 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
9298 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
9300 (s390_frame_info): Do gpr slot allocation here now. stdarg does
9301 not imply a stack frame.
9302 (s390_init_frame_layout): Remove variable clobbered_regs.
9303 (s390_update_register_info): Remove function.
9304 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
9305 cannot be used for register renaming.
9306 (s390_hard_regno_scratch_ok): New function.
9307 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
9308 (s390_initial_elimination_offset): Change offset calculation of
9309 the return address pointer.
9310 (save_gprs): Deal with only r6 being saved from the call-saved regs.
9311 (restore_gprs): Set frame related flag.
9312 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
9313 (s390_emit_prologue): Call s390_register_info instead of
9314 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
9315 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
9316 (s390_optimize_prologue): Call s390_optimize_register_info.
9317 Try to remove also FPR slot save/restore INSNs. Remove frame
9318 related flags from restore INSNs.
9320 2013-10-08 DJ Delorie <dj@redhat.com>
9322 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
9325 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
9326 avoid conflict with the MI use of %c.
9327 * config/rl78/rl78-real.md: change %c to %C throughout.
9328 * config/rl78/rl78-virt.md: Likewise.
9330 2013-10-08 Jan Hubicka <jh@suse.cz>
9332 * config/i386/i386.c (ix86_option_override_internal): Switch
9333 to SSE math for -ffast-math when target ISA supports SSE2.
9335 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
9337 * tree-flow.h: Remove some prototypes.
9338 * tree.h: Remove some protypes, add a couple.
9339 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
9340 using_eh_for_cleanups_p): Add interface routines for front ends.
9341 * tree-eh.h: New file. Add protoptyes.
9342 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
9343 (add_stmt_to_eh_lp_fn): Make static.
9344 (lower_try_finally): Use new using_eh_for_cleanups_p.
9345 * emit-rtl.c: Include tree-eh.h.
9346 * gimple.h: Include tree-eh.h.
9348 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
9350 PR tree-optimization/58480
9351 * tree-vrp.c (infer_nonnull_range): New function.
9352 (infer_value_range): Call infer_nonnull_range.
9354 2013-10-08 Dehao Chen <dehao@google.com>
9356 PR tree-optimization/58619
9357 * tree-inline.c (copy_phis_for_bb): Combine location data
9360 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9363 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
9364 RTX_FRAME_RELATED_P on INSN.
9366 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9368 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
9369 (altivec_expand_vec_perm_const): Call it.
9371 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9373 * config/rs6000/vector.md (mov<mode>): Emit permuted move
9374 sequences for LE VSX loads and stores at expand time.
9375 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
9377 * config/rs6000/rs6000.c (rs6000_const_vec): New.
9378 (rs6000_gen_le_vsx_permute): New.
9379 (rs6000_gen_le_vsx_load): New.
9380 (rs6000_gen_le_vsx_store): New.
9381 (rs6000_gen_le_vsx_move): New.
9382 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
9383 (*vsx_le_perm_load_v4si): New.
9384 (*vsx_le_perm_load_v8hi): New.
9385 (*vsx_le_perm_load_v16qi): New.
9386 (*vsx_le_perm_store_v2di): New.
9387 (*vsx_le_perm_store_v4si): New.
9388 (*vsx_le_perm_store_v8hi): New.
9389 (*vsx_le_perm_store_v16qi): New.
9390 (*vsx_xxpermdi2_le_<mode>): New.
9391 (*vsx_xxpermdi4_le_<mode>): New.
9392 (*vsx_xxpermdi8_le_V8HI): New.
9393 (*vsx_xxpermdi16_le_V16QI): New.
9394 (*vsx_lxvd2x2_le_<mode>): New.
9395 (*vsx_lxvd2x4_le_<mode>): New.
9396 (*vsx_lxvd2x8_le_V8HI): New.
9397 (*vsx_lxvd2x16_le_V16QI): New.
9398 (*vsx_stxvd2x2_le_<mode>): New.
9399 (*vsx_stxvd2x4_le_<mode>): New.
9400 (*vsx_stxvd2x8_le_V8HI): New.
9401 (*vsx_stxvd2x16_le_V16QI): New.
9403 2013-10-07 Renlin Li <Renlin.Li@arm.com>
9405 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
9407 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9409 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
9410 loop to work also for 31bit ABI.
9411 Save the stack pointer for frame_size > 0.
9413 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9415 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
9416 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
9417 constraint letters from expanders.
9418 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
9419 retry count to general_operand.
9420 ("tabort"): Give operand 0 a mode.
9421 ("tabort_1"): Add mode and constraint letter for operand 0.
9422 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
9424 2013-10-04 Jeff Law <law@redhat.com>
9426 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
9428 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
9430 (thread_across_edge): Here. Call it.
9432 2013-10-04 Cary Coutant <ccoutant@google.com>
9434 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
9435 discarding a location list expression (or a piece of one).
9437 2013-10-03 Jan Hubicka <jh@suse.cz>
9439 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
9440 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
9441 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
9443 2013-10-03 Jan Hubicka <jh@suse.cz>
9445 * config/i386/i386.c (ix86_option_override_internal): Do not enable
9446 accumulate-outgoing-args when producing unwind info.
9448 2013-10-03 Wei Mi <wmi@google.com>
9450 * lra-constraints.c (insert_move_for_subreg): New function
9451 extracted from simplify_operand_subreg.
9452 (simplify_operand_subreg): Add reload for paradoxical subreg.
9454 2013-10-03 Rong Xu <xur@google.com>
9456 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
9457 the candidate of builtin_expect such that we should fix the
9458 size/time estimation.
9459 (estimate_function_body_sizes): Do the acutally size/time fix-up
9462 2013-10-03 Rong Xu <xur@google.com>
9464 * predict.c (tree_predict_by_opcode): Get the probability
9465 for builtin_expect from param builtin_expect_probability.
9466 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
9467 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
9468 * doc/invoke.texi: Add documentation for builtin-expect-probability.
9470 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
9473 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
9474 * calls.c (alloca_call_p): Use get_callee_fndecl.
9475 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
9476 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
9478 (vrp_visit_stmt): Remove duplicated code.
9480 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
9482 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
9483 ceildf2, btruncdf2, instead of vsx_* name.
9485 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
9486 iterators to only do V2DF and V4SF here. Move the DF code to
9487 rs6000.md where it is combined with SF mode. Replace <VSv> with
9488 just 'v' since only vector operations are handled with these insns
9489 after moving the DF support to rs6000.md.
9490 (vsx_sub<mode>3): Likewise.
9491 (vsx_mul<mode>3): Likewise.
9492 (vsx_div<mode>3): Likewise.
9493 (vsx_fre<mode>2): Likewise.
9494 (vsx_neg<mode>2): Likewise.
9495 (vsx_abs<mode>2): Likewise.
9496 (vsx_nabs<mode>2): Likewise.
9497 (vsx_smax<mode>3): Likewise.
9498 (vsx_smin<mode>3): Likewise.
9499 (vsx_sqrt<mode>2): Likewise.
9500 (vsx_rsqrte<mode>2): Likewise.
9501 (vsx_fms<mode>4): Likewise.
9502 (vsx_nfma<mode>4): Likewise.
9503 (vsx_copysign<mode>3): Likewise.
9504 (vsx_btrunc<mode>2): Likewise.
9505 (vsx_floor<mode>2): Likewise.
9506 (vsx_ceil<mode>2): Likewise.
9507 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
9508 (vsx_sminsf3): Likewise.
9509 (vsx_fmadf4): Likewise.
9510 (vsx_fmsdf4): Likewise.
9511 (vsx_nfmadf4): Likewise.
9512 (vsx_nfmsdf4): Likewise.
9513 (vsx_cmpdf_internal1): Likewise.
9515 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
9516 simpler to select whether a target has SPE or traditional floating
9517 point support in iterators.
9518 (TARGET_DF_SPE): Likewise.
9519 (TARGET_SF_FPR): Likewise.
9520 (TARGET_DF_FPR): Likewise.
9521 (TARGET_SF_INSN): Macros to say whether floating point support
9522 exists for a given operation for expanders.
9523 (TARGET_DF_INSN): Likewise.
9525 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
9526 combining of SF/DF mode operations, using both traditional and VSX
9534 (abs<mode>2): Combine SF/DF modes using traditional floating point
9535 instructions. Add support for using the upper DF registers with
9536 VSX support, and SF registers with power8-vector support. Update
9537 expanders for operations supported by both the SPE and traditional
9538 floating point units.
9539 (abs<mode>2_fpr): Likewise.
9540 (nabs<mode>2): Likewise.
9541 (nabs<mode>2_fpr): Likewise.
9542 (neg<mode>2): Likewise.
9543 (neg<mode>2_fpr): Likewise.
9544 (add<mode>3): Likewise.
9545 (add<mode>3_fpr): Likewise.
9546 (sub<mode>3): Likewise.
9547 (sub<mode>3_fpr): Likewise.
9548 (mul<mode>3): Likewise.
9549 (mul<mode>3_fpr): Likewise.
9550 (div<mode>3): Likewise.
9551 (div<mode>3_fpr): Likewise.
9552 (sqrt<mode>3): Likewise.
9553 (sqrt<mode>3_fpr): Likewise.
9554 (fre<Fs>): Likewise.
9555 (rsqrt<mode>2): Likewise.
9556 (cmp<mode>_fpr): Likewise.
9557 (smax<mode>3): Likewise.
9558 (smin<mode>3): Likewise.
9559 (smax<mode>3_vsx): Likewise.
9560 (smin<mode>3_vsx): Likewise.
9561 (negsf2): Delete SF operations that are merged with DF.
9568 (fmasf4_fpr): Likewise.
9569 (fmssf4_fpr): Likewise.
9570 (nfmasf4_fpr): Likewise.
9571 (nfmssf4_fpr): Likewise.
9572 (sqrtsf2): Likewise.
9573 (rsqrtsf_internal1): Likewise.
9574 (smaxsf3): Likewise.
9575 (sminsf3): Likewise.
9576 (cmpsf_internal1): Likewise.
9577 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
9578 (negdf2): Delete DF operations that are merged with SF.
9580 (nabsdf2): Likewise.
9586 (rsqrtdf_internal1): Likewise.
9587 (fmadf4_fpr): Likewise.
9588 (fmsdf4_fpr): Likewise.
9589 (nfmadf4_fpr): Likewise.
9590 (nfmsdf4_fpr): Likewise.
9591 (sqrtdf2): Likewise.
9592 (smaxdf3): Likewise.
9593 (smindf3): Likewise.
9594 (cmpdf_internal1): Likewise.
9595 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
9596 (btrunc<mode>2): Delete separate expander, and combine with the
9597 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
9598 (btrunc<mode>2_fpr): Likewise.
9599 (ceil<mode>2): Likewise.
9600 (ceil<mode>2_fpr): Likewise.
9601 (floor<mode>2): Likewise.
9602 (floor<mode>2_fpr): Likewise.
9603 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
9604 Add support for using the upper registers with VSX and
9605 power8-vector. Move insns to be closer to the define_expands. On
9606 VSX systems, prefer the traditional form of FMA over the VSX
9607 version, since the traditional form allows the target not to
9608 overlap with the inputs.
9609 (fms<mode>4_fpr): Likewise.
9610 (nfma<mode>4_fpr): Likewise.
9611 (nfms<mode>4_fpr): Likewise.
9613 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9614 Richard Earnshaw <richard.earnshaw@arm.com>
9616 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
9617 (struct mult_cost_table): Likewise.
9618 (struct mem_cost_table): Likewise.
9619 (struct fp_cost_table): Likewise.
9620 (struct vector_cost_table): Likewise.
9621 (cpu_cost_table): Likewise.
9622 * config/arm/arm.opt (mold-rts-costs): New option.
9623 (mnew-generic-costs): Likewise.
9624 * config/arm/arm.c (generic_extra_costs): New table.
9625 (cortexa15_extra_costs): Likewise.
9626 (arm_slowmul_tune): Use NULL as new costs.
9627 (arm_fastmul_tune): Likewise.
9628 (arm_strongarm_tune): Likewise.
9629 (arm_xscale_tune): Likewise.
9630 (arm_9e_tune): Likewise.
9631 (arm_v6t2_tune): Likewise.
9632 (arm_cortex_a5_tune): Likewise.
9633 (arm_cortex_a9_tune): Likewise.
9634 (arm_v6m_tune): Likewise.
9635 (arm_fa726te_tune): Likewise.
9636 (arm_cortex_a15_tune): Use cortex15_extra_costs.
9637 (arm_cortex_tune): Use generict_extra_costs.
9638 (shifter_op_p): New function.
9639 (arm_unspec_cost): Likewise.
9640 (LIBCALL_COST): Define.
9641 (arm_new_rtx_costs): New function.
9642 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
9643 table is available. Use old costs otherwise unless mnew-generic-costs
9645 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
9646 (cpu_cost_table): Declare.
9648 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
9651 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
9652 (*subs_mul_imm_<mode>)
9653 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
9654 (*sub_<shift>_<mode>)
9655 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
9656 Remove k constraint.
9658 2013-10-03 Ian Bolton <ian.bolton@arm.com>
9660 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
9662 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
9664 2013-10-02 Teresa Johnson <tejohnson@google.com>
9666 * predict.c (probably_never_executed): New function.
9667 (probably_never_executed_bb_p): Invoke probably_never_executed.
9668 (probably_never_executed_edge_p): Ditto.
9669 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
9670 Treat profile insanities conservatively.
9672 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
9674 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
9676 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
9678 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
9679 use it. Use smaller increase for scratch. Don't increase reject
9680 for early clobber scratch.
9681 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
9682 setting eliminated regs except setting fp from hfp.
9683 (lra_eliminate): Check lra_insn_recog_data on NULL.
9685 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9688 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
9689 setting -mvsx-timode by default until the underlying problem is fixed.
9690 (RS6000_CPU, power7 defaults): Likewise.
9692 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
9694 * config/x-linux (host-linux.o): Remove header dependencies.
9695 Use $(COMPILE) and $(POSTCOMPILE).
9696 * config/t-linux-android (linux-android.o): Ditto.
9698 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
9700 * Makefile.in (expmed.o-warn): Remove.
9702 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
9704 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
9705 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
9707 2013-10-02 Teresa Johnson <tejohnson@google.com>
9709 * dojump.c (do_jump_1): Divide probability between
9710 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
9712 2013-10-02 Tom Tromey <tromey@redhat.com>
9714 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
9716 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
9718 * tree-flow.h: Remove some prototypes.
9719 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
9720 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
9721 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
9722 mark_virtual_phi_result_for_renaming): Relocate here.
9723 * tree-into-ssa.h: Add prototypes.
9724 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
9725 single_pred_before_succ_order.
9726 (blocks_in_phiopt_order): Rename and move to cfganal.c.
9727 (nonfreeing_call_p) Move to gimple.c.
9728 * cfganal.c (single_pred_before_succ_order): Move and renamed from
9730 * basic-block.h (single_pred_before_succ_order): Add prototype.
9731 * gimple.c (nonfreeing_call_p): Relocate here.
9732 * gimple.h: Add prototype.
9733 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
9734 * tree-ssa-dom.h: New file. Relocate prototypes here.
9735 * tree-ssa.h: Include tree-ssa-dom.h.
9737 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
9739 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
9740 Use $(COMPILE) and $(POSTCOMPILE).
9742 * config/alpha/x-alpha (driver-alpha.o): Ditto.
9744 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
9746 * tree-flow.h: Remove some prototypes.
9747 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
9748 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
9749 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
9750 propagate_tree_value*): Move from here to...
9751 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
9752 propagate_tree_value*): Relocate here.
9753 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
9754 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
9755 * gimple-fold.c: Remove gimple-fold.h from include list.
9756 * tree-vrp.c: Remove gimple-fold.h from include list.
9757 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
9758 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
9759 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
9760 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
9761 * sese.c: Add tree-ssa-propagate.h to include list.
9763 2013-10-02 Richard Biener <rguenther@suse.de>
9765 * tree-loop-distribution.c: Include tree-vectorizer.h for
9767 (enum partition_kind): Remove PKIND_REDUCTION.
9768 (struct partition_s): Remove has_writes member, add reduction_p member.
9769 (partition_alloc): Adjust.
9770 (partition_builtin_p): Likewise.
9771 (partition_has_writes): Remove.
9772 (partition_reduction_p): New function.
9773 (partition_merge_into): Likewise.
9774 (generate_code_for_partition): Commonize builtin partition
9776 (rdg_cannot_recompute_vertex_p): Remove.
9777 (already_processed_vertex_p): Likewise.
9778 (rdg_flag_vertex): Do not set has_writes.
9779 (classify_partition): Adjust.
9780 (rdg_build_partitions): Do not set has_writes, treat all
9781 partitions as useful.
9782 (distribute_loop): Record number of library calls generated. Adjust.
9783 (tree_loop_distribution): Report number of loops and library
9784 calls generated as opt-info.
9786 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
9788 * tree-flow.h: Include new .h files. Move prototypes.
9789 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
9790 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
9791 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
9792 * tree-pretty-print.h: Add prototypes from tree-flow.h.
9793 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
9794 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
9795 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
9796 * tree.h (get_ref_base_and_extent): Move prototype out.
9797 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
9799 * gimple-low.h: New File. Add prototypes from tree-flow.h.
9800 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
9801 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
9802 * tree-scalar-evolution.c: Include tree.h.
9803 * sese.c: Include tree.h.
9804 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
9805 * dwarf2out.c: Include tree-dfa.h.
9806 * tree-chrec.c: Include tree.h.
9807 * tree-data-ref.c: Include tree.h.
9809 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
9811 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
9814 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9816 * config/t-sol2 (sol2-c.o): Remove header dependencies.
9817 Use $(COMPILE) and $(POSTCOMPILE).
9818 (sol2-cxx.o): Likewise.
9819 (sol2-stubs.o): Likewise.
9821 * config/x-solaris (host-solaris.o): Likewise.
9823 * config/sparc/t-sparc (sparc.o): Remove.
9824 (sparc-c.o): Remove header dependencies.
9825 Use $(COMPILE) and $(POSTCOMPILE).
9826 * config/sparc/x-sparc: Likewise.
9828 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
9830 * config/arc/arc-opts.h: Add 2013 to Copyright years.
9831 * config/arc/arc700.md: Likewise.
9832 * config/arc/arc-modes.def: Likewise.
9833 * config/arc/arc-simd.h: Likewise.
9834 * config/arc/t-arc-uClibc: Likewise.
9835 * config/arc/t-arc-newlib: Likewise.
9837 2013-10-02 Renlin Li <renlin.li@arm.com>
9839 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
9841 (aarch64_expand_epilogue): Likewise.
9843 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9844 Yufeng Zhang <yufeng.zhang@arm.com>
9846 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
9848 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
9849 'base_in' represent a conversion and legal_cast_p_1 holds; set
9850 'base_in' with the returned value from get_unwidened.
9852 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9854 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
9855 plus_constant is not used.
9857 2013-10-01 Wei Mi <wmi@google.com>
9859 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
9860 * config/i386/i386.md: Add define_peephole2 to
9861 break partial reg stall for cvtss2sd/cvtsd2ss.
9863 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9865 * config/arc/arc.c (pass_arc_ifcvt::clone):
9866 Update for ctxt_ -> m_ctxt change.
9868 2013-10-01 Jeff Law <law@redhat.com>
9870 * tree-ssa-threadupdate.c (struct redirection_data): Delete
9871 outgoing_edge and intermediate_edge fields. Instead store the path.
9872 (redirection_data::hash): Hash on the last edge's destination index.
9873 (redirection_data::equal): Check the entire thread path.
9874 (lookup_redirectio_data): Corresponding changes.
9875 (create_edge_and_update_destination_phis): Likewise.
9876 (thread_single_edge): Likewise.
9878 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9879 Diego Novillo <dnovillo@google.com>
9881 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
9882 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
9883 (vld32wh_insn, vld32wl_insn): Delete commented-out old
9884 versions of these patterns.
9886 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
9887 (__builtin_arc_aligned): Likewise.
9889 * config/arc/arc.md: Expand adc_0 comment stating the intended
9890 purpose and why it isn't ready.
9891 Replace commented out call_value_via_label_mixed with a
9892 plain comment about bl_s.
9894 * config/arc/arc.c (stdio.h): Don't include directly.
9895 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
9896 Remove if (1) condition.
9897 (arc_encode_section_info): Fix comment.
9899 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9901 * config/arc/arc.c (arc_conditional_register_usage):
9902 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
9903 Also set reg_alloc_order for DMA config regs.
9905 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9906 Jeremy Bennett <jeremy.bennett@embecosm.com>
9908 * doc/install.texi (--with-cpu): Mention ARC.
9909 (arc-*-elf32): New paragraph.
9910 (arc-linux-uclibc): Likewise.
9911 * doc/md.texi (Machine Constraints): Add ARC part.
9912 * doc/invoke.texi: (menu): Add ARC Options.
9913 (Machine Dependent Options) <ARC Options>: Add synopsis.
9914 (node ARC Options): Add.
9915 * doc/extend.texi (long_call / short_call attribute): Add ARC.
9916 (ARC Built-in Functions): New section defining
9917 generic ARC built-in functions.
9918 (ARC SIMD Built-in Functions): New section defining SIMD specific
9920 (Declaring Attributes of Functions): Extended
9921 description of short_call and long_call attributes for ARC and
9922 added index entries.
9924 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
9925 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
9926 Joern Rennecke <joern.rennecke@embecosm.com>
9927 Muhammad Khurram Riaz <khurram.riaz@arc.com>
9928 Brendan Kehoe <brendan@zen.org>
9929 Michael Eager <eager@eagercon.com>
9930 Simon Cook <simon.cook@embecosm.com>
9931 Jeremy Bennett <jeremy.bennett@embecosm.com>
9933 * config/arc, common/config/arc: New directories.
9935 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9936 Brendan Kehoe <brendan@zen.org>
9937 Simon Cook <simon.cook@embecosm.com>
9939 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
9941 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
9943 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
9944 * tree-ssa-coalesce.h: New. Move prototype to here.
9945 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
9946 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
9947 (gimple_can_coalesce_p): Move to...
9948 * gimple.c (gimple_can_coalesce_p): Here.
9950 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
9952 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
9953 (dump_decl_set): Move to gimple.c.
9954 * gimple.h: Don't include tree-ssa-operands.h.
9955 (dump_decl_set): Add prototype.
9956 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
9957 Move to gimple-ssa.h.
9958 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
9959 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
9960 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
9961 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
9962 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
9964 (dump_decl_set): Relocate here.
9965 * gimple-ssa.h: New file.
9966 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
9967 Relocate from gimple.h.
9968 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
9969 * tree-ssa-operands.c (swap_ssa_operands): Rename from
9970 swap_tree_operands and remove non-ssa path.
9971 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
9972 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
9974 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
9975 vect_is_simple_reduction_1): Use swap_ssa_operands.
9976 * tree-flow.h: Move various prototypes to tree-phinodes.h.
9977 (enum need_phi_state): Move to tree-into-ssa.c.
9978 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
9979 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
9980 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
9981 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
9982 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
9983 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
9984 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
9985 num_imm_uses): Move to ssa-iterators.h.
9986 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
9987 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
9989 (op_iter_done, op_iter_next_def, op_iter_next_tree,
9990 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
9991 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
9992 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
9993 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
9994 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
9995 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
9996 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
9997 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
9998 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
9999 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
10000 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
10001 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
10002 (set_phi_nodes): Move to tree-phinodes.h.
10003 * tree-ssa-operands.h (enum ssa_op_iter_type,
10004 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
10005 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
10006 (dump_decl_set): Remove prototype.
10007 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
10008 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
10009 (set_phi_nodes): Relocate from tree-flow-inline.h.
10010 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
10012 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
10013 include list. Temporarily add gimple.h to include list.
10014 * ssa-iterators.h: New file.
10015 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
10016 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
10017 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
10018 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
10019 Relocate from tree-ssa-operands.h.
10020 (delink_imm_use, link_imm_use_to_list, link_imm_use,
10021 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
10022 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
10023 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
10024 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
10025 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
10026 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
10027 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
10028 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
10029 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
10030 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
10031 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
10032 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
10033 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
10034 Relocate from tree-flow-inline.h.
10035 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
10037 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
10040 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
10041 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
10042 Insert '\t' to output template.
10043 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
10044 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
10045 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
10046 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
10048 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
10050 * doc/install.texi (Host/target specific installation notes for GCC):
10051 Put @anchor before @heading.
10052 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
10053 Use @email for email addresses.
10055 2013-10-01 Jeff Law <law@redhat.com>
10057 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
10058 a vec. Only delete the path if we create one without successfully
10059 registering a jump thread.
10060 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
10062 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
10063 (paths): New vector of jump threading paths.
10064 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
10065 (THREAD_PATH): New accessor macro for the entire thread path.
10066 (lookup_redirection_data): Get intermediate and final outgoing edge
10067 from the thread path.
10068 (create_edge_and_update_destination_phis): Copy the threading path.
10069 (ssa_fix_duplicate_block_edges): Get edges and block types from the
10070 jump threading path.
10071 (ssa_redirect_edges): Get edges and block types from the jump threading
10072 path. Free the path vector.
10073 (thread_block): Get edges from the jump threading path. Look at the
10074 entire path to see if we thread to a loop exit. If we cancel a jump
10075 thread request, then free the path vector.
10076 (thread_single_edge): Get edges and block types from the jump threading
10077 path. Free the path vector.
10078 (thread_through_loop_header): Get edges and block types from the jump
10079 threading path. Free the path vector.
10080 (mark_threaded_blocks): Iterate over the vector of paths and store
10081 the path on the appropriate edge. Get edges and block types from the
10082 jump threading path.
10083 (mark_threaded_blocks): Get edges and block types from the jump
10084 threading path. Free the path vector.
10085 (thread_through_all_blocks): Use the vector of paths rather than
10086 a vector of 3-edge sets.
10087 (register_jump_thread): Accept pointer to a path vector rather
10088 than the path vector itself. Store the path vector for later use.
10091 2013-10-01 Jakub Jelinek <jakub@redhat.com>
10092 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10095 * config/s390/s390.c (s390_split_branches): Modify check for table
10097 (s390_chunkify_start): Rearrange table jump insn check in order to
10098 deal with compare and branch insns correctly.
10100 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
10104 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
10105 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
10106 define_insn_and_split.
10107 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
10108 (shiftsi3_compare): New pattern.
10109 (rrx): New pattern.
10110 * config/arm/unspecs.md (UNSPEC_RRX): New.
10112 2013-10-01 Alan Modra <amodra@gmail.com>
10114 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
10115 casing inout operands.
10117 2013-10-01 Richard Biener <rguenther@suse.de>
10119 PR tree-optimization/58553
10120 * tree-loop-distribution.c (struct partition_s): Add niter member.
10121 (classify_partition): Populate niter member for the partition
10122 and properly identify whether the relevant store happens before
10123 or after the loop exit.
10124 (generate_memset_builtin): Use niter member from the partition.
10125 (generate_memcpy_builtin): Likewise.
10127 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
10129 * vec.h (vec_prefix, vec): Prefix member names with "m_".
10130 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
10132 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
10134 * basic-block.h (edge_list): Prefix member names with "m_".
10135 * context.h (context): Likewise.
10136 * domwalk.h (dom_walker): Likewise.
10137 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
10138 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10139 * hash-table.h (hash_table): Likewise.
10140 * machmode.h (bit_field_mode_iterator): Likewise.
10141 * pass_manager.h (pass_list): Likewise.
10142 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
10143 * tree-pass.h (pass_data): Likewise.
10144 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
10145 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
10146 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10147 * asan.c (pass_data_asan): Update accordingly.
10148 * cfganal.c (control_dependences::find_control_dependence): Likewise.
10149 (control_dependences::control_dependences): Likewise.
10150 (control_dependences::~control_dependences): Likewise.
10151 (control_dependences::~control_dependences): Likewise.
10152 (control_dependences::get_edges_dependent_on): Likewise.
10153 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
10154 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
10155 * context.c (gcc::context::context): Likewise.
10156 * cprop.c (pass_rtl_cprop::clone): Likewise.
10157 * domwalk.c (dom_walker::walk): Likewise.
10158 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
10159 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
10160 * mode-switching.c (pass_mode_switching::clone): Likewise.
10161 * passes.c (opt_pass::opt_pass): Likewise.
10162 (pass_manager::pass_manager): Likewise.
10163 * predict.c (pass_strip_predict_hints::clone): Likewise.
10164 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
10165 (pass_split_all_insns::clone): Likewise.
10166 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
10168 (bit_field_mode_iterator::next_mode): Likewise.
10169 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
10170 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
10171 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
10172 * tree-complex.c (pass_lower_complex::clone): Likewise.
10173 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
10174 * tree-object-size.c (pass_object_sizes::clone): Likewise.
10175 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
10176 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
10177 (pass_fold_builtins::clone): Likewise.
10178 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
10179 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
10180 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
10181 (pass_cd_dce::clone): Likewise.
10182 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
10183 (pass_phi_only_cprop::clone): Likewise.
10184 * tree-ssa-dse.c (pass_dse::clone): Likewise.
10185 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
10186 * tree-ssa-loop.c (pass_lim::clone): Likewise.
10187 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
10188 * tree-ssa-pre.c (pass_fre::clone): Likewise.
10189 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
10190 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
10191 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
10192 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
10193 * tree-vrp.c (pass_vrp::clone): Likewise.
10194 * tsan.c (pass_tsan::clone): Likewise.
10196 2013-09-30 Jakub Jelinek <jakub@redhat.com>
10198 PR middle-end/58564
10199 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
10200 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
10202 PR middle-end/58564
10203 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
10204 optimization, punt if sign_bit_p looked through any zero extension.
10206 2013-09-30 Teresa Johnson <tejohnson@google.com>
10208 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
10209 Update redirected out edge count in joiner case.
10210 (ssa_redirect_edges): Common the joiner and non-joiner cases
10211 so that joiner case gets profile updates.
10213 2013-09-30 Richard Biener <rguenther@suse.de>
10215 PR tree-optimization/58554
10216 * tree-loop-distribution.c (classify_partition): Require
10217 unconditionally executed stores for memcpy and memset recognition.
10218 (tree_loop_distribution): Calculate dominance info.
10220 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
10222 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
10223 (NO_PROFILE_COUNTERS): Likewise.
10224 (PROFILE_HOOK): Likewise.
10225 (FUNCTION_PROFILER): Likewise.
10226 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
10228 2013-09-30 Iain Sandoe <iain@codesourcery.com>
10230 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
10231 calls and defines in TARGET_MACHO conditional.
10232 (load_macho_picbase_di): Likewise.
10233 (reload_macho_picbase): Likewise.
10234 (reload_macho_picbase_si): Likewise.
10235 (reload_macho_picbase_di): Likewise.
10236 (nonlocal_goto_receiver): Likewise.
10238 2013-09-30 Nick Clifton <nickc@redhat.com>
10240 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
10241 that use the MSP430X ISA.
10242 (msp430_option_override): Scan -mmcu command line option for any
10243 MCU name that supports the MSP430X ISA.
10244 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
10245 -mmcu options which enable the MSP430X ISA.
10247 2013-09-30 Richard Biener <rguenther@suse.de>
10249 PR middle-end/58532
10250 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
10251 before looking for setjmp-like calls.
10253 2013-09-29 Iain Sandoe <iain@codesourcery.com>
10256 * config/darwin-protos.h (machopic_get_function_picbase): New.
10257 * config/darwin.c (machopic_get_function_picbase): New.
10258 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
10259 label for a new func. (load_macho_picbase_di): Likewise.
10260 (reload_macho_picbase): New expand.
10261 (reload_macho_picbase_si): New insn.
10262 (reload_macho_picbase_di): New insn.
10263 (nonlocal_goto_receiver): New define and split.
10264 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
10265 (unspecv enum): Add UNSPECV_NLGR.
10267 2013-09-29 Iain Sandoe <iain@codesourcery.com>
10269 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
10270 that altivec registers are correctly sized on Darwin.
10272 2013-09-29 Iain Sandoe <iain@codesourcery.com>
10274 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
10275 darwin-driver.o): Use COMPILE and POSTCOMPILE.
10276 * config/x-darwin (host-darwin.o): Likewise.
10277 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
10278 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
10279 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
10281 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
10283 * doc/invoke.texi: Fix usage of @tie{} command.
10285 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
10287 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
10289 2013-09-28 Jan Hubicka <jh@suse.cz>
10291 * config/i386/x86-tune.def: Add documentation for each of the options;
10294 2013-09-28 Jan Hubicka <jh@suse.cz>
10296 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
10298 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
10299 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
10300 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
10301 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
10302 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
10304 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
10306 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
10307 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
10308 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
10309 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
10310 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
10311 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
10312 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
10313 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
10314 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
10315 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
10316 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
10317 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
10318 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
10319 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
10320 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
10321 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
10322 gimple.h, godump.c, graphite-clast-to-gimple.c,
10323 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
10324 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
10325 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
10326 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
10327 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
10328 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
10329 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
10330 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
10331 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
10332 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
10333 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
10334 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
10335 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
10336 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
10337 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
10338 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
10339 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
10340 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
10341 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
10342 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
10343 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
10344 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
10345 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
10346 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
10347 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
10348 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10349 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
10350 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
10351 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
10352 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
10353 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
10354 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
10355 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
10356 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
10357 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
10358 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
10359 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
10360 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
10361 whitespace before "(".
10363 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
10365 * expr.h (extract_bit_field): Remove packedp parameter.
10366 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
10367 from forward declaration.
10368 (store_split_bit_field): Remove packedp arg from calls to
10369 extract_fixed_bit_field.
10370 (extract_bit_field_1): Remove packedp parameter and packedp
10371 argument from recursive calls and calls to extract_fixed_bit_field.
10372 (extract_bit_field): Remove packedp parameter and corresponding
10373 arg to extract_bit_field_1.
10374 (extract_fixed_bit_field): Remove packedp parameter. Remove code
10376 (extract_split_bit_field): Remove packedp arg from call to
10377 extract_fixed_bit_field.
10378 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
10379 (copy_blkmode_from_reg): Likewise.
10380 (copy_blkmode_to_reg): Likewise.
10381 (read_complex_part): Likewise.
10382 (store_field): Likewise.
10383 (expand_expr_real_1): Likewise.
10384 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
10385 to extract_bit_field.
10386 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
10387 call to extract_bit_field.
10388 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
10389 call to extract_bit_field.
10390 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
10391 and special packedp behavior from -fstrict-volatile-bitfields
10394 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10396 * lra-eliminations.c (init_elim_table): Guard value_p.
10398 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
10400 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
10401 DFmode, DImode, and SFmode in the upper VSX registers based on the
10402 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
10403 if -mpower8-vector. Combine -mvsx-timode handling with the rest
10404 of the VSX register handling.
10406 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
10407 (f32_sv): Likewise.
10408 (zero_extendsidi2_lfiwzx): Add support for loading into the
10409 Altivec registers with -mpower8-vector. Use wu/wv constraints to
10410 only do VSX memory options on Altivec registers.
10411 (extendsidi2_lfiwax): Likewise.
10412 (extendsfdf2_fpr): Likewise.
10413 (mov<mode>_hardfloat, SF/SD modes): Likewise.
10414 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
10415 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
10416 (movdi_internal64): Likewise.
10418 2013-09-27 Xinliang David Li <davidxl@google.com>
10420 * opts.c (finish_options): Adjust parameters
10421 according to vect cost model.
10422 (common_handle_option): Set dynamic vect cost
10424 targhooks.c (default_add_stmt_cost): Compute stmt cost
10426 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
10427 Use helper function.
10428 * tree-vectorizer.h (unlimited_cost_model): New function.
10429 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
10430 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
10432 (vect_enhance_data_refs_alignment): Ditto.
10433 * flag-types.h: New enum.
10434 * common/config/i386/i386-common.c (ix86_option_init_struct):
10435 No need to initialize vect_cost_model flag.
10436 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
10439 2013-09-27 Diego Novillo <dnovillo@google.com>
10441 * gimple.h (enum ssa_mode): Remove.
10443 2013-09-27 Paulo Matos <pmatos@broadcom.com>
10445 * cfgloop.h (number_of_loops): Fix typo in check for null.
10447 2013-09-27 Jakub Jelinek <jakub@redhat.com>
10449 PR middle-end/58551
10450 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
10451 are children of outermost saved_cfun's loop, and set it up to
10452 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
10453 if loop != loop0 and SESE region contains bbs that belong to loop0.
10455 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
10457 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
10458 (binary_scale_code_p, get_base_term, get_index_term): New functions.
10459 (set_address_segment, set_address_base, set_address_index)
10460 (set_address_disp): Accept the argument unconditionally.
10461 (baseness): Remove must_be_base_p and must_be_index_p checks.
10462 (decompose_normal_address): Classify as much as possible in the
10465 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
10467 * cse.c (count_reg_usage): Handle INT_LIST.
10468 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
10469 * reginfo.c (reg_scan_mark_refs): Likewise.
10470 * reload1.c (eliminate_regs_1): Likewise.
10472 2013-09-27 Iain Sandoe <iain@codesourcery.com>
10474 PR middle-end/58547
10475 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
10478 2013-09-27 Richard Biener <rguenther@suse.de>
10480 PR tree-optimization/58459
10481 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
10482 restriction not propagating into loops.
10484 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
10486 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
10487 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
10488 * doc/tree-ssa.texi (Walking use-def chains): Delete.
10490 2013-09-26 Richard Biener <rguenther@suse.de>
10492 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
10494 2013-09-26 Richard Biener <rguenther@suse.de>
10496 * alias.h (component_uses_parent_alias_set): Rename to ...
10497 (component_uses_parent_alias_set_from): ... this.
10498 * alias.c (component_uses_parent_alias_set): Rename to ...
10499 (component_uses_parent_alias_set_from): ... this and return
10500 the desired parent.
10501 (reference_alias_ptr_type_1): Use the result from
10502 component_uses_parent_alias_set_from instead of stripping
10503 components one at a time.
10504 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
10506 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
10508 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
10509 Move prototypes to...
10510 * tree-ssa-ter.h: New File. Move prototypes here.
10511 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
10512 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
10513 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
10514 from is_replaceable_p.
10515 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
10516 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
10517 (process_replaceable): Use ter_is_replaceable_p.
10518 (find_replaceable_in_bb): Use ter_is_replaceable_p.
10519 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
10520 newly refactored ssa_is_replaceable_p.
10521 * cfgexpand.c: Include tree-outof-ssa.h.
10522 * ssaexpand.h: Delete.
10524 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
10526 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
10527 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
10529 (create_gimple_tmp): Delete.
10530 (get_expr_type, build_assign, build_type_cast): Move to...
10531 * gimple-builder.c: New File.
10532 (get_expr_type): Relocate from gimple.c.
10533 (build_assign, build_type_cast): Change to only create ssanames.
10534 * gimple.h: Move prototypes to...
10535 * gimple-builder.h: New File. Here.
10536 * tree-ssa.h: And here.
10537 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
10538 count_uses_and_derefs): Relocate from gimple.c.
10539 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
10540 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
10541 * tree-ssa-math-opts (execute_cse_reciprocals): Use
10542 gimple_replace_ssa_lhs.
10543 * asan.c: Include gimple-builder.h.
10544 * Makefile.in: Add gimple-builder.o.
10546 2013-09-26 Richard Biener <rguenther@suse.de>
10548 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
10549 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
10550 (loe_visit_block): Use gcc_checking_assert.
10551 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
10552 gimple_assign_ssa_name_copy_p.
10553 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
10556 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
10558 * config/rs6000/t-rs6000 (rs6000.o): Remove.
10559 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
10561 2013-09-26 Richard Biener <rguenther@suse.de>
10563 PR tree-optimization/58539
10564 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
10565 the fact that debug statements are not taking part in loop-closed
10568 2013-09-26 Nick Clifton <nickc@redhat.com>
10570 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
10571 time warning message.
10572 (msp430_print_operand_raw): Delete unused letter parameter.
10573 (TARGET_PRINT_OPERAND_ADDRESS): Define.
10574 (msp430_print_operand_address): New function.
10575 (msp430_print_operand): Move address printing code from here to
10577 * config/msp430/msp430.md (movsipsi2): Add comment in generated
10579 (zero_extendpsisi2): Likewise.
10580 (extendpsisi2): New pattern.
10581 (andneghi3): New pattern.
10583 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
10585 * config/aarch64/aarch64.opt (mlra): New option.
10586 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
10587 (TARGET_LRA_P): Define.
10589 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
10591 * expr.c (expand_assignment): Remove obsolete comment.
10593 2013-09-25 Jeff Law <law@redhat.com>
10595 * tree-flow.h (thread_through_all_blocks): Prototype moved into
10596 tree-ssa-threadupdate.h.
10597 (register_jump_thread): Similarly.
10598 * tree-ssa-threadupdate.h: New header file.
10599 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
10600 * tree-vrp.c: Likewise.
10601 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
10602 (thread_around_empty_blocks): Change type of path vector argument to
10603 an edge,type pair from just an edge. Initialize both elements when
10604 appending to a jump threading path. Tweak references to elements
10606 (thread_across_edge): Similarly. Release memory for the elements
10608 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
10609 (dump_jump_thread_path): New function broken out from
10610 register_jump_thread.
10611 (register_jump_thread): Use dump_jump_thread_path. Change type of
10612 path vector entries. Search the path for NULL edges and dump
10613 the path if one is found. Tweak the conversion of path to 3-edge
10614 form to use the block copy type information embedded in the path.
10616 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
10618 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
10620 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
10621 Vladimir Makarov <vmakarov@redhat.com>
10623 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
10624 from the least significant bit.
10625 (strip_address_mutations): Add bitfield operations handling.
10626 (must_be_index_p): Add shifting and rotate operations handling.
10627 (set_address_base): Use must_be_base_p predicate.
10628 (set_address_index): Use must_be_index_p predicate.
10630 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
10631 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10632 Sergey Lega <sergey.s.lega@intel.com>
10633 Anna Tikhonova <anna.tikhonova@intel.com>
10634 Ilya Tocar <ilya.tocar@intel.com>
10635 Andrey Turetskiy <andrey.turetskiy@intel.com>
10636 Ilya Verbin <ilya.verbin@intel.com>
10637 Kirill Yukhin <kirill.yukhin@intel.com>
10638 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10640 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10642 (ix86_expand_vector_move_misalign): Support new unaligned load and
10643 stores and use new names.
10644 (CODE_FOR_sse2_storedqu): Rename to ...
10645 (CODE_FOR_sse2_storedquv16qi): ... this.
10646 (CODE_FOR_sse2_loaddqu): Rename to ...
10647 (CODE_FOR_sse2_loaddquv16qi): ... this.
10648 (CODE_FOR_avx_loaddqu256): Rename to ...
10649 (CODE_FOR_avx_loaddquv32qi): ... this.
10650 (CODE_FOR_avx_storedqu256): Rename to ...
10651 (CODE_FOR_avx_storedquv32qi): ... this.
10652 * config/i386/i386.md (fpint_logic): New.
10653 * config/i386/sse.md (VMOVE): Extend for AVX512.
10657 (VI_UNALIGNED_LOADSTORE): Ditto.
10658 (sse2_avx_avx512f): Ditto.
10659 (sse2_avx2): Extend for AVX512.
10660 (sse4_1_avx2): Ditto.
10661 (avx2_avx512f): New.
10662 (sse): Extend for AVX512.
10665 (avxsizesuffix): Ditto.
10666 (sseintvecmode): Ditto.
10667 (ssePSmode): Ditto.
10668 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
10669 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
10670 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
10671 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
10672 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
10673 (<sse2_avx_avx512f>_storedqu<mode): ... this.
10674 (<sse>_movnt<mode>): Replace constraint "x" with "v".
10675 (STORENT_MODE): Extend for AVX512.
10676 (*absneg<mode>2): Replace constraint "x" with "v".
10677 (*mul<mode>3): Ditto.
10678 (*ieee_smin<mode>3): Ditto.
10679 (*ieee_smax<mode>3): Ditto.
10680 (avx_cmp<mode>3): Replace VF with VF_128_256.
10681 (*<sse>_maskcmp<mode>3_comm): Ditto.
10682 (<sse>_maskcmp<mode>3): Ditto.
10683 (<sse>_andnot<mode>3): Extend for AVX512.
10684 (<code><mode>3, anylogic): Replace VF with VF_128_256.
10685 (<code><mode>3, fpint_logic): New.
10686 (*<code><mode>3): Extend for AVX512.
10687 (avx512flogicsuff): New.
10688 (avx512f_<logic><mode>): Ditto.
10689 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
10691 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
10692 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
10693 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
10694 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
10695 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
10696 (xop_vpermil2<mode>3): Ditto.
10697 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
10698 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
10699 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
10700 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
10702 2013-09-25 Tom Tromey <tromey@redhat.com>
10704 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
10705 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
10706 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
10707 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
10708 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
10709 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
10710 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
10711 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
10712 (GRAPHITE_HTAB_H): Remove.
10714 2013-09-25 Tom Tromey <tromey@redhat.com>
10716 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
10718 2013-09-25 Tom Tromey <tromey@redhat.com>
10720 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
10722 2013-09-25 Tom Tromey <tromey@redhat.com>
10724 * config/i386/t-i386 (i386.o): Remove.
10725 (i386-c.o): Use COMPILE and POSTCOMPILE.
10727 2013-09-25 Tom Tromey <tromey@redhat.com>
10729 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
10731 2013-09-25 Tom Tromey <tromey@redhat.com>
10733 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
10734 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
10735 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
10736 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
10737 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
10738 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
10739 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
10740 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
10741 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
10742 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
10743 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
10744 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
10745 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
10746 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
10747 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
10748 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
10749 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
10750 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
10751 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
10752 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
10753 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
10754 (tree-ssa-pre.o, tree-ssa-sccvn.o)
10755 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
10756 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
10757 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
10758 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
10759 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
10760 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
10761 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
10762 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
10763 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
10764 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
10765 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
10766 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
10767 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
10768 (graphite-clast-to-gimple.o, graphite-dependences.o)
10769 (graphite-interchange.o, graphite-poly.o)
10770 (graphite-scop-detection.o, graphite-sese-to-poly.o)
10771 (graphite-optimize-isl.o, tree-vect-loop.o)
10772 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
10773 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
10774 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
10775 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
10776 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
10777 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
10778 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
10779 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
10780 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
10781 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
10782 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
10783 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
10784 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
10785 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
10786 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
10787 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
10788 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
10789 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
10790 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
10791 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
10792 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
10793 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
10794 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
10795 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
10796 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
10797 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
10798 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
10799 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
10800 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
10801 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
10802 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
10803 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
10804 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
10805 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
10806 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
10807 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
10808 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
10809 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
10810 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
10811 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
10812 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
10813 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
10814 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
10815 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
10816 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
10817 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
10818 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
10819 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
10820 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
10821 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
10822 (gcov-dump.o): Remove.
10823 (default-c.o): Use COMPILE and POSTCOMPILE.
10824 (CFLAGS-gcc.o): New variable.
10825 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
10827 2013-09-25 Tom Tromey <tromey@redhat.com>
10829 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
10830 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
10831 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
10832 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
10833 (c-family/c-pragma.o, c-family/c-pretty-print.o)
10834 (c-family/c-semantics.o, c-family/c-ada-spec.o)
10835 (c-family/array-notation-common.o, c-family/stub-objc.o)
10836 (c-family/c-ubsan.o): Remove.
10838 2013-09-25 Tom Tromey <tromey@redhat.com>
10840 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
10842 2013-09-25 Tom Tromey <tromey@redhat.com>
10844 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
10845 to add -DENABLE_SHARED_LIBGCC.
10846 (gcc.o): Don't use subshell.
10848 2013-09-25 Tom Tromey <tromey@redhat.com>
10850 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
10851 * configure.ac: Don't invoke AM_PROG_CC_C_O.
10852 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
10853 * configure, config.in: Rebuild.
10855 2013-09-25 Tom Tromey <tromey@redhat.com>
10857 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
10858 (COMPILE, POSTCOMPILE): New variables.
10859 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
10860 (DEPFILES): New variable.
10861 Include ".Po" files.
10862 * configure.ac: Add checks for dependency checking.
10863 * configure, aclocal.m4: Regenerate.
10865 2013-09-25 Tom Tromey <tromey@redhat.com>
10867 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
10868 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
10870 2013-09-25 Tom Tromey <tromey@redhat.com>
10872 * Makefile.in (generated_files): Add options.h,
10873 target-hooks-def.h, insn-opinit.h,
10874 common/common-target-hooks-def.h, pass-instances.def,
10875 c-family/c-target-hooks-def.h.
10877 2013-09-25 Jeff Law <law@redhat.com>
10879 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
10880 than foo[foo.length () - 1] to access last member in a vec.
10881 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
10883 2013-09-25 Richard Biener <rguenther@suse.de>
10885 PR middle-end/58521
10886 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
10888 2013-09-25 Jan Hubicka <jh@suse.cz>
10890 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
10893 2013-09-25 Marek Polacek <polacek@redhat.com>
10896 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
10897 when determining the type name.
10899 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
10901 * config/sh/sh.md: Fix formatting.
10903 2013-09-24 Xinliang David Li <davidxl@google.com>
10905 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
10906 max peel iterations parameter.
10907 * param.def: New parameter.
10908 * doc/invoke.texi: Document New parameter.
10910 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
10912 * gimple-pretty-print.c: Various whitespace tweaks.
10913 * tree-core.h: Likewise.
10914 * tree-pretty-print.c: Likewise.
10915 * tree-ssa-alias.c: Likewise.
10916 * tree-ssa-copy.c: Likewise.
10917 * tree-ssanames.c: Likewise.
10918 * tree-ssanames.h: Likewise.
10919 * tree-vrp.c: Likewise.
10921 2013-09-24 Alan Modra <amodra@gmail.com>
10923 PR middle-end/57134
10924 PR middle-end/57586
10925 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
10926 for output operands that disallow regs. Don't use EXPAND_WRITE on
10929 2013-09-24 Richard Biener <rguenther@suse.de>
10931 PR middle-end/58513
10932 * tree.c (reference_alias_ptr_type): Move ...
10933 * alias.c (reference_alias_ptr_type): ... here and implement
10934 in terms of the new reference_alias_ptr_type_1.
10935 (ref_all_alias_ptr_type_p): New helper.
10936 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
10937 use ref_all_alias_ptr_type_p.
10938 (get_deref_alias_set): Add flag_strict_aliasing check here.
10939 (reference_alias_ptr_type_1): New function, split out from ...
10940 (get_alias_set): ... here.
10941 (alias_ptr_types_compatible_p): New function.
10942 * alias.h (reference_alias_ptr_type): Declare.
10943 (alias_ptr_types_compatible_p): Likewise.
10944 * tree.h (reference_alias_ptr_type): Remove.
10945 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
10946 to compare MEM_REF alias types.
10948 2013-09-24 Richard Biener <rguenther@suse.de>
10950 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
10952 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10954 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
10955 reload helper function arrays into a single array reg_addr.
10956 (reload_fpr_gpr): Likewise.
10957 (reload_gpr_vsx): Likewise.
10958 (reload_vsx_gpr): Likewise.
10959 (struct rs6000_reg_addr): Likewise.
10960 (reg_addr): Likewise.
10961 (rs6000_debug_reg_global): Change rs6000_vector_reload,
10962 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
10963 (rs6000_init_hard_regno_mode_ok): Likewise.
10964 (rs6000_secondary_reload_direct_move): Likewise.
10965 (rs6000_secondary_reload): Likewise.
10967 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
10968 constraints: wu, ww, and wy. Repurpose wv constraint added during
10969 power8 changes. Put wg constraint in alphabetical order.
10971 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
10972 for future work to add ISA 2.07 VSX single precision support.
10973 (-mvsx-scalar-double): Change default from -1 to 1, update
10974 documentation comment.
10975 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
10976 (-mupper-regs-df): New debug switch to control whether DF values
10977 can go in the traditional Altivec registers.
10978 (-mupper-regs-sf): New debug switch to control whether SF values
10979 can go in the traditional Altivec registers.
10981 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
10982 and wy constraints.
10983 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
10984 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
10985 Add new constraints, wu/ww/wy. Repurpose wv constraint.
10986 (rs6000_debug_legitimate_address_p): Print if we are running
10987 before, during, or after reload.
10988 (rs6000_secondary_reload): Add a comment.
10989 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
10991 * config/rs6000/constraints.md (wa constraint): Sort w<x>
10992 constraints. Update documentation string.
10993 (wd constraint): Likewise.
10994 (wf constraint): Likewise.
10995 (wg constraint): Likewise.
10996 (wn constraint): Likewise.
10997 (ws constraint): Likewise.
10998 (wt constraint): Likewise.
10999 (wx constraint): Likewise.
11000 (wz constraint): Likewise.
11001 (wu constraint): New constraint for ISA 2.07 SFmode scalar
11003 (ww constraint): Likewise.
11004 (wy constraint): Likewise.
11005 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
11006 in the previous submissions.
11007 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
11009 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
11011 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
11012 (REG_BR_PROB): Say that the probability is stored in an int_list.
11013 * reg-notes.def: Update commentary to mention INT_LIST.
11014 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
11015 (INT_LIST): New rtx.
11016 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
11017 * rtlanal.c (int_reg_note_p): New function.
11018 (alloc_reg_note): Assert that the note does not have an int argument.
11019 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
11020 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
11021 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
11022 rather than an INSN_LIST. Handle INT_LIST.
11023 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
11024 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
11025 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
11026 Manipulate them as ints rather than rtxes.
11027 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
11028 * regmove.c (copy_src_to_dest): Likewise.
11029 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
11031 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
11032 into the cases that need it.
11033 * config/arm/arm.c (arm_unwind_emit): Likewise.
11035 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
11036 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
11037 * loop-doloop.c (add_test, doloop_modify): Likewise.
11038 * loop-unswitch.c (compare_and_jump_seq): Likewise.
11039 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
11040 * predict.c (combine_predictions_for_insn): Likewise.
11041 * print-rtl.c (print_rtx): Handle INT_LIST.
11042 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
11043 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
11044 * config/arm/arm.c (emit_unlikely_jump): Likewise.
11045 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
11046 (ix86_split_fp_branch, predict_jump): Likewise.
11047 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
11048 * config/sh/sh.c (expand_cbranchsi4): Likewise.
11049 * config/spu/spu.c (ea_load_store_inline): Likewise.
11051 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
11052 value of a REG_BR_PROB note.
11053 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
11054 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
11055 * emit-rtl.c (try_split): Likewise.
11056 * predict.c (br_prob_note_reliable_p): Likewise.
11057 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
11058 * reorg.c (mostly_true_jump): Likewise.
11059 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
11060 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
11061 * config/i386/i386.c (ix86_print_operand): Likewise.
11062 * config/ia64/ia64.c (ia64_print_operand): Likewise.
11063 * config/mmix/mmix.c (mmix_print_operand): Likewise.
11064 * config/rs6000/rs6000.c (output_cbranch): Likewise.
11065 * config/s390/s390.c (s390_expand_tbegin): Likewise.
11066 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
11067 * config/sparc/sparc.c (output_cbranch): Likewise.
11068 * config/spu/spu.c (get_branch_target): Likewise.
11069 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
11070 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
11072 2013-09-23 Jan Hubicka <jh@suse.cz>
11074 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
11076 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
11077 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
11079 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
11080 (gimple_fold_call): Dump inconsistent devirtualizations; add
11081 sanity check for type based devirtualizations.
11082 * ipa-prop.c: Include ipa-utils.h
11083 (ipa_intraprocedural_devirtualization): Add sanity check.
11084 (try_make_edge_direct_virtual_call): Likewise.
11086 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
11088 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
11089 assignment statements.
11091 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11093 * gimple-pretty-print.c (dump_ssaname_info): New function.
11094 (dump_gimple_phi): Call it.
11095 (pp_gimple_stmt_1): Likewise.
11096 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
11097 (range_info_def): Declare.
11098 * tree-pretty-print.c (pp_double_int): New function.
11099 (dump_generic_node): Call it.
11100 * tree-pretty-print.h (pp_double_int): Declare.
11101 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
11102 * tree-ssanames.h (range_info_def): New structure.
11103 (value_range_type): Move definition here.
11104 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
11106 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
11108 (set_range_info): New function.
11109 (get_range_info): Likewise.
11110 (duplicate_ssa_name_range_info): Likewise.
11111 (duplicate_ssa_name_fn): Check pointer type and call
11112 duplicate_ssa_name_range_info.
11113 * tree-ssa-copy.c (fini_copy_prop): Likewise.
11114 * tree-vrp.c (value_range_type): Remove definition, now in
11116 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
11117 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
11118 (SSA_NAME_RANGE_INFO): New macro.
11120 2013-09-23 Richard Biener <rguenther@suse.de>
11122 PR tree-optimization/58464
11123 * tree-ssa-pre.c (phi_trans_lookup): Remove.
11124 (phi_trans_add): Change to add conditionally on being not present.
11125 (phi_translate_1): Remove recursion detection here.
11126 (phi_translate): Pre-seed the cache with NULL to catch
11127 recursion here in a more generic way.
11128 (bitmap_find_leader): Adjust comment.
11129 (get_representative_for): Dump value-numbers.
11130 (create_expression_by_pieces): Likewise.
11131 (insert_into_preds_of_block): Likewise.
11133 2013-09-23 Christian Bruel <christian.bruel@st.com>
11136 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
11137 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
11139 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
11142 2013-09-20 Renlin Li <renlin.li@arm.com>
11144 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
11146 (aarch64_expand_epilogue): Likewise.
11147 (aarch64_legitimize_reload_address): Likewise.
11149 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
11151 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
11152 NULL_TREE before pushing them onto the vector. Likewise for labels.
11154 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
11156 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
11157 comparison operators when -fno-trapping-math is in effect.
11158 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
11159 comparison operators in TFmode and assert that unsupported operators
11161 (ia64_print_operand): Likewise.
11163 2013-09-21 Jan Hubicka <jh@suse.cz>
11165 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
11166 (sse_typeless_stores): Enable for core
11167 (sse_load0_by_pxor): Likewise.
11168 (four_jump_limit): Disable for core.
11169 (pad_returns): Likewise.
11170 (avoid_vector_decode): Likewise.
11171 (fuse_cmp_and_branch): Enable for cores.
11172 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
11174 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
11176 PR middle-end/56791
11177 * config/pa/pa.c (pa_option_override): Disable auto increment and
11178 decrement instructions until reload is completed.
11180 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
11181 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
11182 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
11184 2013-09-20 DJ Delorie <dj@redhat.com>
11185 Nick Clifton <nickc@redhat.com>
11187 * config/rl78/rl78.c: Various whitespace and comment tweaks.
11188 (need_to_save): Save bank 0 on interrupts.
11189 (characterize_address): Strip far address wrappers.
11190 (rl78_as_legitimate_address): Likewise.
11191 (transcode_memory_rtx): Likewise.
11192 (rl78_peep_movhi_p): Disable this peephole after devirt.
11193 (rl78_propogate_register_origins): Forget all origins when a
11195 * config/rl78/rl78-virt.md: Various whitespace tweaks.
11196 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
11198 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
11199 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
11200 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
11202 * config/rl78/constraints.md: Various whitespace and paren tweaks.
11204 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
11206 * config/pa/pa.md: In "scc" insn patterns, change output template to
11207 handle const0_rtx in reg_or_0_operand operands.
11209 2013-09-20 Martin Husemann <martin@NetBSD.org>
11212 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
11213 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
11215 2013-09-20 Richard Biener <rguenther@suse.de>
11217 PR middle-end/58484
11218 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
11219 remembering SSA name version and block index.
11220 (new_scev_info_str): Adjust.
11221 (hash_scev_info): Likewise. Also hash the block index.
11222 (eq_scev_info): Adjust.
11223 (find_var_scev_info): Likewise.
11224 (struct instantiate_cache_entry): Remove.
11225 (struct instantiate_cache_type): Use a htab to map name, block
11227 (instantiate_cache_type::~instantiate_cache_type): Adjust.
11228 (get_instantiated_value_entry): Likewise.
11229 (hash_idx_scev_info, eq_idx_scev_info): New functions.
11230 (instantiate_scev_name): Adjust.
11232 2013-09-20 Jeff Law <law@redhat.com>
11234 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
11236 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
11238 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
11239 Call aarch64_simd_expand_args to update op[argc].
11241 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
11243 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
11246 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
11248 * gengtype.c (file_rules): Added rule for *.cc files.
11249 (get_output_file_with_visibility): Give fatal message when no
11252 2013-09-20 Renlin Li <renlin.li@arm.com>
11254 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
11255 (aarch64_expand_epilogue): Likewise.
11256 (aarch64_legitimize_reload_address): Likewise.
11258 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11260 PR middle-end/57748
11261 * expr.c (expand_assignment): Remove misalignp code path.
11263 2013-09-20 Marek Polacek <polacek@redhat.com>
11266 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
11267 TYPE_PRECISION. Add asserts.
11269 2013-09-20 Richard Biener <rguenther@suse.de>
11271 PR tree-optimization/58453
11272 * tree-loop-distribution.c (distribute_loop): Apply the cost
11273 model for -ftree-loop-distribute-patterns, too.
11275 2013-09-20 Richard Biener <rguenther@suse.de>
11277 PR middle-end/58473
11278 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
11279 make type comparison less strict.
11281 2013-09-20 Alan Modra <amodra@gmail.com>
11283 * configure: Regenerate.
11284 * aclocal.m4: Regenerate.
11286 2013-09-20 Marek Polacek <polacek@redhat.com>
11289 * doc/extend.texi: Document that attribute used is meant to be used
11290 on variables with static storage duration.
11292 2013-09-19 Jakub Jelinek <jakub@redhat.com>
11294 PR tree-optimization/58472
11295 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
11296 simd_lane_access set inv_p = false.
11297 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
11298 the simduid magic VAR_DECL.
11300 2013-09-19 Jan Hubicka <jh@suse.cz>
11302 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
11304 2013-09-17 Jeff Law <law@redhat.com>
11306 * tree-ssa-dom.c (record_temporary_equivalences): New function
11307 split out of dom_opt_dom_walker::after_dom_children.
11308 (dom_opt_dom_walker::thread_across_edge): Move common code
11309 in here from dom_opt_dom_walker::after_dom_children.
11310 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
11312 2013-09-19 Jan Hubicka <jh@suse.cz>
11314 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
11315 (TARGET_GENERIC): Use PROCESOR_GENERIC
11316 (enum processor_type): Unify generic32 and 64.
11317 * i386.md (cpu): Likewise.
11318 * x86-tune.def (use_leave): Enable for generic32.
11319 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
11320 * athlon.md: Change generic64 to generic in all occurences.
11321 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
11322 (ix86_target_macros_internal): Likewise.
11323 * driver-i386.c (host_detect_local_cpu): Likewise.
11324 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
11326 (generic_memcpy, generic_memset, generic_cost): This one.
11327 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
11328 (m_GENERIC32, m_GENERIC64): Remove.
11329 (m_GENERIC): Turn into one flag.
11330 (processor_target): Unify generic tunnings.
11331 (ix86_option_override_internal): Replace generic32/64 by generic.
11332 (ix86_issue_rate): Likewise.
11333 (ix86_adjust_cost): Likewise.
11335 2013-09-19 Jan Hubicka <jh@suse.cz>
11337 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
11338 of speculative flag.
11340 2013-09-19 Jakub Jelinek <jakub@redhat.com>
11342 * omp-low.c (expand_omp_sections): Always pass len - 1 to
11343 GOMP_sections_start, even if !exit_reachable.
11345 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
11347 * lra-constraints.c (need_for_all_save_p): Use macro
11348 HARD_REGNO_CALL_PART_CLOBBERED.
11349 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
11350 set up pseudo conflict hard regs.
11352 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
11355 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
11358 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
11360 PR rtl-optimization/58438
11361 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
11362 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
11363 from previous subpasses.
11365 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
11367 * arm.c (arm_get_frame_offsets): Validate architecture supports
11368 LDRD/STRD before accepting the tuning preference.
11369 (arm_expand_prologue): Likewise.
11370 (arm_expand_epilogue): Likewise.
11372 2013-09-18 Richard Biener <rguenther@suse.de>
11374 PR tree-optimization/58417
11375 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
11376 have chrecs with symbols defined in the loop as operands.
11377 (chrec_fold_multiply): Likewise.
11378 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
11379 parameters before folding binary operations.
11380 (struct instantiate_cache_entry_hasher): Remove.
11381 (struct instantiate_cache_type): Use a pointer-map.
11382 (instantiate_cache_type::instantiate_cache_type): New function.
11383 (instantiate_cache_type::get): Likewise.
11384 (instantiate_cache_type::set): Likewise.
11385 (instantiate_cache_type::~instantiate_cache_type): Adjust.
11386 (get_instantiated_value_entry): Likewise.
11387 (global_cache): New global.
11388 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
11389 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
11390 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
11391 (instantiate_scev_name): Adjust.
11392 (instantiate_scev): Construct global instead of local cache.
11393 (resolve_mixers): Likewise.
11395 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
11396 Paolo Carlini <paolo.carlini@oracle.com>
11399 * doc/implement-cxx.texi: Fix references to the C++ standards.
11401 2013-09-18 Jakub Jelinek <jakub@redhat.com>
11403 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
11404 * tree-vect-data-refs.c (vect_analyze_data_refs): For
11405 simd_lane_access drs, update also DR_ALIGNED_TO.
11407 2013-09-18 Marek Polacek <polacek@redhat.com>
11410 * doc/extend.texi: Document no_sanitize_undefined attribute.
11411 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
11412 no_sanitize_undefined attribute.
11414 2013-09-18 Nick Clifton <nickc@redhat.com>
11416 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
11417 (ASM_DECLARE_FUNCTION_NAME): Define.
11419 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
11421 * compare-elim.c (find_comparison_dom_walker): New class
11422 (find_comparisons_in_bb): Rename to
11423 find_comparison_dom_walker::before_dom_children
11424 (find_comparisons): Adjust
11425 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
11427 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
11428 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
11429 (init_walk_dominator_tree): Remove declaration.
11430 (fini_walk_dominator_tree): Remove declaration.
11431 * fwprop.c (single_def_use_dom_walker): New class
11432 (single_def_use_enter_block): Convert to
11433 single_def_use_dom_walker::before_dom_children.
11434 (single_def_use_leave_block): Convert to
11435 single_def_use_dom_walker::after_dom_children.
11436 (build_single_def_use_links): Adjust.
11437 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
11439 (find_candidates_in_block): Convert to
11440 find_candidates_dom_walker::before_dom_children.
11441 (execute_strength_reduction): Adjust.
11442 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
11443 (sese_dom_walker): New class.
11444 (sese_dom_walker::sese_dom_walker): New constructor.
11445 (sese_dom_walker::~sese_dom_walker): New destructor.
11446 (build_sese_conditions_before): Convert to
11447 sese_dom_walker::before_dom_children.
11448 (build_sese_conditions_after): Convert to
11449 sese_dom_walker::after_dom_children.
11450 (build_poly_scop): Adjust
11451 * tree-into-ssa.c (rewrite_dom_walker): New class
11452 (rewrite_enter_block): Convert to
11453 rewrite_dom_walker::before_dom_children.
11454 (rewrite_leave_block): Convert to
11455 rewrite_dom_walker::after_dom_children.
11456 (rewrite_update_dom_walker): New class.
11457 (rewrite_update_enter_block): Convert to
11458 rewrite_update_dom_walker::before_dom_children.
11459 (rewrite_update_leave_block): Convert to
11460 rewrite_update_dom_walker::after_dom_children.
11461 (rewrite_blocks, rewrite_into_ssa): Adjust.
11462 (mark_def_dom_walker): New class.
11463 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
11464 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
11465 (mark_def_sites_blocks): Convert to
11466 mark_def_dom_walker::before_dom_children.
11467 (mark_def_site_blocks): Remove.
11468 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
11469 (tree_ssa_dominator_optimize): Adjust.
11470 (dom_thread_across_edge): Convert to method
11471 dom_opt_dom_walker::thread_across_edge.
11472 (dom_opt_enter_block): Convert to member function
11473 dom_opt_dom_walker::before_dom_children.
11474 (dom_opt_leave_block): Convert to member function
11475 dom_opt_dom_walker::after_dom_children.
11476 * tree-ssa-dse.c (dse_dom_walker): New class.
11477 (dse_enter_block): Convert to member function
11478 dse_dom_walker::before_dom_children.
11479 (tree_ssa_dse): Adjust.
11480 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
11481 (determine_invariantness_stmt): Convert to method
11482 invariantness_dom_walker::before_dom_children.
11483 (determine_invariantness): Remove
11484 (move_computations_dom_walker): New class.
11485 (move_computations_stmt): Convert to method
11486 move_computations_dom_walker::before_dom_children.
11487 (move_computations, tree_ssa_lim): Adjust.
11488 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
11489 (nt_init_block): Convert to method
11490 notrappping_dom_walker::before_dom_children.
11491 (nt_fini_block): Convert to method
11492 method nontrapping_dom_walker::after_dom_children.
11493 (get_non_trapping): Adjust.
11494 * tree-ssa-pre.c (eliminate_dom_walker): New class.
11495 (eliminate_bb): Convert to method
11496 eliminate_dom_walker::before_dom_children.
11497 (eliminate_leave_block): Convert to method
11498 eliminate_dom_walker::after_dom_children.
11499 (eliminate): Adjust.
11500 * tree-ssa-strlen.c (strlen_dom_walker): New class.
11501 (strlen_enter_block): Convert to method
11502 strlen_dom_walker::before_dom_children.
11503 (strlen_leave_block): Convert to method
11504 method strlen_dom_walker::after_dom_children.
11505 (tree_ssa_strlen): Adjust.
11506 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
11507 (tree_ssa_uncprop): Adjust.
11508 (uncprop_leave_block): Convert to method
11509 uncprop_dom_walker::after_dom_children.
11510 (uncprop_leave_block): Convert to method
11511 uncprop_dom_walker::before_dom_children.
11513 2013-09-18 Bin Cheng <bin.cheng@arm.com>
11515 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
11516 branch in same basic block. Check both src and dest of the move insn.
11518 2013-09-17 Nick Clifton <nickc@redhat.com>
11520 * config/rl78/rl78-real.md (bf): New pattern.
11522 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
11523 (rl78_print_operand): Do not put a # before a %B.
11524 * config/rl78/rl78.opt: Tweak doc strings.
11526 2013-09-17 DJ Delorie <dj@redhat.com>
11528 * config/rl78/constraints.md (Wcv): Allow up to $r31.
11529 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
11530 (rl78_option_override): Likewise, if -mallregs.
11531 (is_virtual_register): Likewise.
11532 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
11533 (REGNO_OK_FOR_BASE_P): Likewise.
11534 * config/rl78/rl78.opt (-mallregs): New.
11536 2013-09-17 Nick Clifton <nickc@redhat.com>
11538 * config/rl78/rl78.c (need_to_save): Change return type to bool.
11539 For interrupt functions: save all call clobbered registers if the
11540 interrupt handler is not a leaf function.
11541 (rl78_expand_prologue): Always recompute the frame information.
11542 For interrupt functions: only select bank 0 if one of the bank 0
11543 registers is going to be psuhed.
11545 2013-09-17 DJ Delorie <dj@redhat.com>
11547 * config/rl78/constraints.md: For each W* constraint, rename to C*
11548 and create a W* constraint that checks for an optional ES: prefix
11550 * config/rl78/rl78.md (UNS_ES_ADDR): New.
11551 (es_addr): New. Used to wrap far addresses.
11552 * config/rl78/rl78-protos.h (rl78_es_addr): New.
11553 (rl78_es_base): New.
11554 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
11555 wrapped far addresses.
11556 (rl78_print_operand_1): Unwrap far addresses before processing.
11557 (rl78_lo16): Wrap far addresses in unspecs.
11558 (rl78_es_addr): New.
11559 (rl78_es_base): New.
11560 (insn_ok_now): Check for not-yet-wrapped far addresses.
11561 (transcode_memory_rtx): Properly re-wrap far addresses.
11563 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
11565 * config/sparc/t-rtems: Add leon3 multilibs.
11567 2013-09-17 Cong Hou <congh@google.com>
11569 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
11570 when checking the dot production pattern. The type of rhs operand
11571 of multiply is now checked correctly.
11573 2013-09-17 Jeff Law <law@redhat.com>
11575 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
11576 edge implied equivalences into successor phis.
11577 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
11578 here from tree-ssa-threadedge.c.
11579 (mark_threaded_blocks): When threading through a joiner, if both
11580 successors of the joiner's clone reach the same block, verify the
11581 PHI arguments are equal. If not, cancel the jump threading request.
11582 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
11583 tree-ssa-threadupdate.c
11584 (thread_across_edge): Don't check PHI argument equality when
11585 threading through joiner block here.
11587 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
11589 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
11590 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
11591 (warn_uninit, warn_uninitialized_vars,
11592 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
11593 Move to tree-ssa-uninit.c.
11594 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
11595 (has_undefined_value_p): New. Pass dependant parts of
11596 ssa_undefined_value_p.
11597 (uninit_undefined_value_p): Use has_undefined_value_p.
11598 (warn_uninit, warn_uninitialized_vars,
11599 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
11600 Move from tree-ssa.c.
11601 * tree-ssa.h: Adjust prototypes.
11603 2013-09-17 Jan Hubicka <jh@suse.cz>
11605 PR middle-end/58332
11606 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
11607 * ipa-inline.c (can_inline_edge_p): Do not downgrade
11608 FUNCTION_NOT_OPTIMIZED.
11609 * ipa-inline-analysis.c (compute_inline_parameters): Function
11610 not optimized is not inlinable unless it is alwaysinline.
11611 (inline_analyze_function): Force calls in not optimized
11612 function not inlinable.
11614 2013-09-17 Jan Hubicka <jh@suse.cz>
11616 PR middle-end/58329
11617 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
11619 * ipa.c (function_and_variable_visibility): Likewise.
11620 * ipa-profile.c (ipa_profile): Likewise.
11622 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
11625 * cgraph.c (cgraph_function_body_availability): Check for ifunc
11626 attribute, and don't inline the resolver in this case.
11628 2013-09-17 Teresa Johnson <tejohnson@google.com>
11630 * coverage.c (get_coverage_counts): Add missing newline.
11632 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11634 PR tree-optimization/58088
11635 * fold-const.c (mask_with_trailing_zeros): New function.
11636 (fold_binary_loc): Make sure we don't recurse infinitely
11637 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
11638 Use mask_with_trailing_zeros where appropriate.
11640 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
11642 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
11643 of 'prev' var to get better distance estimation.
11645 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
11647 * tree-inline.h (struct copy_body_data): Add transform_parameter.
11648 * tree-inline.c (is_parameter_of): New predicate.
11649 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
11650 a parameter has been remapped.
11651 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
11652 (optimize_inline_calls): Initialize transform_parameter.
11653 (copy_gimple_seq_and_replace_locals): Likewise.
11654 (tree_function_versioning): Likewise.
11655 (maybe_inline_call_in_expr): Likewise.
11657 2013-09-17 Nick Clifton <nickc@redhat.com>
11659 * config/msp430/msp430-protos.h: Add prototypes for new functions.
11660 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
11661 interrupt handlers.
11662 (is_attr_func): New function.
11663 (msp430_is_interrupt_func): New function.
11664 (is_naked_func): New function.
11665 (is_reentrant_func): New function.
11666 (is_critical_func): New function.
11667 (msp430_start_function): Add annotations for function attributes.
11668 (msp430_attr): New function.
11669 (msp430_attribute_table): New.
11670 (msp430_function_section): New function.
11671 (TARGET_ASM_FUNCTION_SECTION): Define.
11672 (msp430_builtin): New enum.
11673 (msp430_init_builtins): New function.
11674 (msp430_builtin_devl): New function.
11675 (msp430_expand_builtin): New function.
11676 (TARGET_INIT_BUILTINS): Define.
11677 (TARGET_EXPAND_BUILTINS): Define.
11678 (TARGET_BUILTIN_DECL): Define.
11679 (msp430_expand_prologue): Add support for naked, interrupt,
11680 critical and reentrant functions.
11681 (msp430_expand_epilogue): Likewise.
11682 (msp430_print_operand): Handle 'O' character.
11683 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
11685 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
11686 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
11687 (pushm): Use a 'n' rather than an 'i' constraint.
11688 (msp_return): Add generation of the interrupt return instruction.
11689 (disable_interrupts): New pattern.
11690 (enable_interrupts): New pattern.
11691 (push_intr_state): New pattern.
11692 (pop_intr_state): New pattern.
11693 (bic_SR): New pattern.
11694 (bis_SR): New pattern.
11695 * doc/extend.texi: Document MSP430 function attributes and builtin
11698 2013-09-17 Richard Biener <rguenther@suse.de>
11700 PR tree-optimization/58432
11701 * tree-loop-distribution.c (tree_loop_distribution): Also
11702 scan PHIs for outside loop uses and seed a partition from them.
11704 2013-09-17 Bin Cheng <bin.cheng@arm.com>
11706 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
11707 (restructure_reference): Call backtrace_base_for_ref.
11709 2013-09-17 Alan Modra <amodra@gmail.com>
11712 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
11715 2013-09-16 DJ Delorie <dj@redhat.com>
11717 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
11718 vregs location for RL78/G10.
11719 (rl78_expand_prologue): Avoid SEL on G10.
11720 (rl78_expand_epilogue): Likewise.
11721 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
11722 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
11723 __RL78_G10__ when appropriate.
11724 (ASM_SPEC): Pass -mg10 along to the assembler.
11725 * config/rl78/rl78.md (sel_rb): Disable for G10.
11726 * config/rl78/rl78.opt: Add -mg10 option.
11727 * config/rl78/t-rl78: Add -mg10 multilib.
11729 2013-09-16 Xinliang David Li <davidxl@google.com>
11731 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
11732 * omp-low.c (omp_max_vf): Ditto.
11733 (expand_omp_simd): Ditto.
11734 * tree-vectorizer.c (vectorize_loops): Ditto.
11735 (gate_vect_slp): Ditto.
11736 (gate_increase_alignment): Ditto.
11737 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
11738 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
11739 (gate_tree_vectorize): Name change.
11740 (tree_vectorize): Ditto.
11741 (pass_vectorize::gate): Call new function.
11742 (pass_vectorize::execute): Ditto.
11743 * opts.c: O3 default setting change.
11744 (finish_options): Check new flag.
11745 * doc/invoke.texi: Document new flags.
11746 * common.opt: New flags.
11748 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
11750 * doc/tm.texi.in (Cond Exec Macros): Remove node.
11751 (Condition Code): Don't reference it.
11752 * doc/tm.texi: Regenerate.
11754 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
11756 PR middle-end/58418
11757 * lra-constraints.c (undo_optional_reloads): Consider all optional
11758 reload even if it did not get a hard reg.
11760 2013-09-16 Teresa Johnson <tejohnson@google.com>
11762 * dumpfile.c (dump_loc): Remove newline emission.
11763 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
11764 emission to dump_printf_loc calls where missing.
11765 (vect_mark_for_runtime_alias_test): Ditto.
11766 (vect_analyze_data_ref_dependence): Ditto.
11767 (vect_analyze_data_ref_dependences): Ditto.
11768 (vect_slp_analyze_data_ref_dependence): Ditto.
11769 (vect_slp_analyze_data_ref_dependences): Ditto.
11770 (vect_compute_data_ref_alignment): Ditto.
11771 (vect_update_misalignment_for_peel): Ditto.
11772 (vect_verify_datarefs_alignment): Ditto.
11773 (vector_alignment_reachable_p): Ditto.
11774 (vect_get_data_access_cost): Ditto.
11775 (vect_enhance_data_refs_alignment): Ditto.
11776 (vect_find_same_alignment_drs): Ditto.
11777 (vect_analyze_data_refs_alignment): Ditto.
11778 (vect_analyze_group_access): Ditto.
11779 (vect_analyze_data_ref_access): Ditto.
11780 (vect_analyze_data_ref_accesses): Ditto.
11781 (vect_prune_runtime_alias_test_list): Ditto.
11782 (vect_analyze_data_refs): Ditto.
11783 (vect_create_addr_base_for_vector_ref): Ditto.
11784 (vect_create_data_ref_ptr): Ditto.
11785 (vect_grouped_store_supported): Ditto.
11786 (vect_grouped_load_supported): Ditto.
11787 * value-prof.c (check_counter): Ditto.
11788 (check_ic_target): Ditto.
11789 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
11790 (vect_recog_widen_mult_pattern): Ditto.
11791 (vect_recog_widen_sum_pattern): Ditto.
11792 (vect_recog_over_widening_pattern): Ditto.
11793 (vect_recog_widen_shift_pattern): Ditto.
11794 (vect_recog_rotate_pattern): Ditto.
11795 (vect_recog_vector_vector_shift_pattern): Ditto.
11796 (vect_recog_divmod_pattern): Ditto.
11797 (vect_recog_mixed_size_cond_pattern): Ditto.
11798 (vect_recog_bool_pattern): Ditto.
11799 (vect_pattern_recog_1): Ditto.
11800 (vect_pattern_recog): Ditto.
11801 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
11802 (vect_is_simple_iv_evolution): Ditto.
11803 (vect_analyze_scalar_cycles_1): Ditto.
11804 (vect_get_loop_niters): Ditto.
11805 (vect_analyze_loop_1): Ditto.
11806 (vect_analyze_loop_form): Ditto.
11807 (vect_analyze_loop_operations): Ditto.
11808 (vect_analyze_loop_2): Ditto.
11809 (vect_analyze_loop): Ditto.
11810 (report_vect_op): Ditto.
11811 (vect_is_slp_reduction): Ditto.
11812 (vect_is_simple_reduction_1): Ditto.
11813 (vect_get_known_peeling_cost): Ditto.
11814 (vect_estimate_min_profitable_iters): Ditto.
11815 (vect_model_reduction_cost): Ditto.
11816 (vect_model_induction_cost): Ditto.
11817 (get_initial_def_for_induction): Ditto.
11818 (vect_create_epilog_for_reduction): Ditto.
11819 (vectorizable_reduction): Ditto.
11820 (vectorizable_induction): Ditto.
11821 (vectorizable_live_operation): Ditto.
11822 (vect_loop_kill_debug_uses): Ditto.
11823 (vect_transform_loop): Ditto.
11824 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
11825 (vect_stmt_relevant_p): Ditto.
11826 (process_use): Ditto.
11827 (vect_mark_stmts_to_be_vectorized): Ditto.
11828 (vect_model_simple_cost): Ditto.
11829 (vect_model_promotion_demotion_cost): Ditto.
11830 (vect_model_store_cost): Ditto.
11831 (vect_get_store_cost): Ditto.
11832 (vect_model_load_cost): Ditto.
11833 (vect_get_load_cost): Ditto.
11834 (vect_init_vector_1): Ditto.
11835 (vect_get_vec_def_for_operand): Ditto.
11836 (vect_finish_stmt_generation): Ditto.
11837 (vectorizable_call): Ditto.
11838 (vectorizable_conversion): Ditto.
11839 (vectorizable_assignment): Ditto.
11840 (vectorizable_shift): Ditto.
11841 (vectorizable_operation): Ditto.
11842 (vectorizable_store): Ditto.
11843 (vectorizable_load): Ditto.
11844 (vectorizable_condition): Ditto.
11845 (vect_analyze_stmt): Ditto.
11846 (vect_transform_stmt): Ditto.
11847 (vect_is_simple_use): Ditto.
11848 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
11849 (vect_can_advance_ivs_p): Ditto.
11850 (vect_update_ivs_after_vectorizer): Ditto.
11851 (vect_do_peeling_for_loop_bound): Ditto.
11852 (vect_gen_niters_for_prolog_loop): Ditto.
11853 (vect_update_inits_of_drs): Ditto.
11854 (vect_create_cond_for_alias_checks): Ditto.
11855 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
11856 (vect_build_slp_tree_1): Ditto.
11857 (vect_supported_load_permutation_p): Ditto.
11858 (vect_analyze_slp_instance): Ditto.
11859 (vect_analyze_slp): Ditto.
11860 (vect_make_slp_decision): Ditto.
11861 (vect_detect_hybrid_slp): Ditto.
11862 (vect_bb_vectorization_profitable_p): Ditto.
11863 (vect_slp_analyze_bb_1): Ditto.
11864 (vect_update_slp_costs_according_to_vf): Ditto.
11865 (vect_get_mask_element): Ditto.
11866 (vect_transform_slp_perm_load): Ditto.
11867 (vect_schedule_slp_instance): Ditto.
11868 (vect_schedule_slp): Ditto.
11869 (vect_slp_transform_bb): Ditto.
11870 * profile.c (read_profile_edge_counts): Ditto.
11871 (compute_branch_probabilities): Ditto.
11872 * coverage.c (get_coverage_counts): Ditto.
11874 2013-09-16 Diego Novillo <dnovillo@google.com>
11876 * tree-core.h: Add missing comment lines from refactoring of tree.h.
11878 2013-09-16 Jan Hubicka <jh@suse.cz>
11880 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
11881 abstract functions; for static functions check the presence of body.
11883 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
11885 * config/aarch64/aarch64-simd-builtins.def (fma): New.
11886 * config/aarch64/aarch64-simd.md
11887 (aarch64_mla_elt<mode>): New.
11888 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
11889 (aarch64_mls_elt<mode>): Likewise.
11890 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
11891 (aarch64_fma4_elt<mode>): Likewise.
11892 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
11893 (aarch64_fma4_elt_to_128v2df): Likewise.
11894 (aarch64_fma4_elt_to_64df): Likewise.
11895 (fnma<mode>4): Likewise.
11896 (aarch64_fnma4_elt<mode>): Likewise.
11897 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
11898 (aarch64_fnma4_elt_to_128v2df): Likewise.
11899 (aarch64_fnma4_elt_to_64df): Likewise.
11900 * config/aarch64/iterators.md (VDQSF): New.
11901 * config/aarch64/arm_neon.h
11902 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
11903 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
11905 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
11907 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
11908 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
11909 (aarch64_mul3_elt_to_128df): Likewise.
11910 (aarch64_mul3_elt_to_64v2df): Likewise.
11911 * config/aarch64/iterators.md (VEL): Also handle DFmode.
11913 (VMUL_CHANGE_NLANES) Likewise.
11916 * config/aarch64/arm_neon.h
11917 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
11919 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
11921 * config/aarch64/arm_neon.h
11922 (vcvtx_high_f32_f64): Fix parameters.
11924 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11925 Uros Bizjak <ubizjak@gmail.com>
11927 * config/alpha.c: Include tree-ssanames.h.
11929 2013-09-16 Richard Biener <rguenther@suse.de>
11931 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
11932 (dot_rdg_1): Handle control_dd.
11933 (create_edge_for_control_dependence): New function.
11934 (create_rdg_edges): Add control dependences if asked for.
11935 (build_rdg): Likewise.
11936 (generate_loops_for_partition): If there are not necessary
11937 control stmts remove all their dependencies.
11938 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
11939 (distribute_loop): Pass on control dependences.
11940 (tree_loop_distribution): Compute control dependences and remove
11941 restriction on number of loop nodes.
11943 2013-09-16 Jakub Jelinek <jakub@redhat.com>
11945 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
11946 for internal calls.
11948 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
11950 * cse.c (try_const_anchors): Punt on CC modes.
11952 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11954 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
11956 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
11959 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
11960 calls to word_mode.
11962 2013-09-14 Iain Sandoe <iain@codesourcery.com>
11965 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
11967 (darwin_objc1_section): Likewise.
11968 (darwin_file_end): Emit Image Info section when required.
11970 2013-09-14 Jan Hubicka <jh@suse.cz>
11972 * tree-into-ssa.c (gate_into_ssa): New.
11973 (pass_data_build_ssa): Use it.
11974 * cgraph.h (expand_thunk): Update prototype.
11975 * cgraphunit.c (analyze_function): Expand thunks early.
11976 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
11977 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
11978 set lowered flag; do not add new function.
11979 (assemble_thunks_and_aliases): Update.
11980 * tree-ssa.c (gate_init_datastructures): New gate.
11981 (pass_data_init_datastructures): Use it.
11983 2013-09-14 Iain Sandoe <iain@codesourcery.com>
11986 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
11987 xmm register set described in the psABI.
11989 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
11991 * dwarf2out.c (should_emit_struct_debug): Add check
11992 for type_decl variable is not NULL.
11994 2013-09-13 Jacek Caban <jacek@codeweavers.com>
11996 * config.gcc: Use new winnt-c.c target hooks
11997 * config/t-winnt: New file
11998 * config/winnt-c.c: New file
11999 * doc/tm.texi.in: Document new hook
12000 * doc/tm.texi: Regenerated
12002 2013-09-13 Jan Hubicka <jh@suse.cz>
12004 PR middle-end/58094
12005 * ipa-inline.c (check_callers): New function.
12006 (check_caller_edge): Remove.
12007 (want_inline_function_to_all_callers_p): Also permit alises that are
12009 (inline_to_all_callers): Terminate the walk when devirtualization
12010 introduce new calls.
12012 2013-09-13 Jan Hubicka <jh@suse.cz>
12014 * ipa-inline-analysis.c (struct growth_data): Add node.
12015 (do_estimate_growth_1): Fix detection of recursion.
12017 2013-09-13 Jakub Jelinek <jakub@redhat.com>
12019 PR tree-optimization/58392
12020 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
12021 to avoid shadowing of outer loop variable. If
12022 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
12023 replace_by_duplicate_decl simduid of loops that have it set and
12024 set dest_cfun->has_simduid_loops and/or
12025 dest_cfun->has_force_vect_loops.
12026 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
12027 instead of maybe_lookup_decl.
12028 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
12029 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
12030 call. Copy over force_vect and copy and remap simduid. Set
12031 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
12032 (copy_cfg_body): Remove blocks_to_copy argument. Use
12033 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
12034 caller. Don't set cfun->has_simduid_loops and/or
12035 cfun->has_force_vect_loops here.
12036 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
12038 (expand_call_inline, tree_function_versioning): Adjust copy_body
12041 2013-09-13 Martin Jambor <mjambor@suse.cz>
12044 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
12045 the assert if the edge was a speculative one.
12047 2013-09-13 Richard Biener <rguenther@suse.de>
12049 * tree-data-ref.h (known_dependences_p): Move here ...
12050 * tree-loop-distribution.c (known_dependences_p): ... from here.
12051 (dump_rdg_component, debug_rdg_component): Remove.
12052 (dump_rdg): Adjust.
12053 (generate_loops_for_partition): Use gimple_uid instead of
12054 relying on matching stmt visit order.
12055 (rdg_build_partitions): Take starting stmt vector.
12056 (ldist_gen): Merge into ...
12057 (distribute_loop): ... this function. Do not compute starting
12059 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
12061 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12063 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
12064 Set type attribute correctly. Set predicable_short_it attribute.
12065 (cmpsi_shiftsi): Remove %? from output template.
12067 2013-09-13 Richard Biener <rguenther@suse.de>
12069 * tree-loop-distribution.c (struct rdg_component,
12070 rdg_defs_used_in_other_loops_p, free_rdg_components,
12071 rdg_build_components): Remove.
12072 (stmts_from_loop): Do not record virtual PHIs.
12073 (generate_loops_for_partition): Skip virtual PHIs.
12074 (build_rdg_partition_for_component): Rename to ...
12075 (build_rdg_partition_for_vertex): ... this and adjust.
12076 (rdg_build_partitions): Take a vector of starting vertices
12077 instead of components. Remove unnecessary leftover handling.
12078 (ldist_gen): Do not build components or record other stores.
12079 (distribute_loop): Do not distribute loops containing stmts
12082 2013-09-13 Christian Bruel <christian.bruel@st.com>
12085 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
12087 2013-09-13 Kai Tietz <ktietz@redhat.com>
12089 * config.gcc: Separate cases for mingw and cygwin targets,
12090 and add 64-bit cygwin target case.
12092 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
12093 dll-export inline-functions.
12094 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
12096 2013-09-13 Jeff Law <law@redhat.com>
12098 PR middle-end/58387
12100 2013-09-06 Jeff Law <law@redhat.com>
12102 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12103 edge implied equivalences into successor phis.
12105 2013-09-12 DJ Delorie <dj@redhat.com>
12107 * config/rl78/rl78-virt.md: Change from | to \; for asm line
12110 2013-09-12 Brooks Moses <bmoses@google.com>
12113 * Makefile.in: Do not install driver binaries in $(target)/bin.
12115 2013-09-12 DJ Delorie <dj@redhat.com>
12117 * config/rl78/rl78.opt (mrelax): New.
12118 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
12119 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
12121 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
12123 (rl78_expand_epilogue): Likewise.
12125 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
12127 PR middle-end/58335
12128 * lra-eliminations.c (remove_reg_equal_offset_note): New.
12129 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
12130 pointer elimination with using remove_reg_equal_offset_note.
12132 2013-09-12 DJ Delorie <dj@redhat.com>
12134 * config/msp430/: New port.
12135 * config.gcc (msp430): Added.
12136 * doc/invoke.texi: Document MSP430 options.
12137 * doc/install.texi: Document msp430-elf
12138 * doc/md.texi: Document msp430-elf
12139 * doc/contrib.texi: Document msp430-elf
12141 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
12144 2013-09-12 Martin Jambor <mjambor@suse.cz>
12147 * ipa-prop.c (remove_described_reference): Give up if the edge in the
12148 reference descriptor is NULL.
12149 (ipa_edge_removal_hook): If owning a reference descriptor, set its
12152 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
12154 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
12155 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
12156 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
12157 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
12158 make_temp_ssa_name): move to tree-ssanames.h
12159 * tree-ssa-alias.h: Move prototype.
12160 * tree-ssa.h: Include tree-ssanames.h.
12161 * tree-ssanames.c (FREE_SSANAMES): Move to here.
12162 * tree-ssanames.h: New. Move items from tree-flow*.h
12163 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
12165 2013-09-12 Richard Biener <rguenther@suse.de>
12167 PR tree-optimization/58404
12168 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
12169 propagate non-invariant addresses into dereferences wrapped
12170 in component references.
12172 2013-09-12 Richard Biener <rguenther@suse.de>
12174 PR tree-optimization/58402
12175 * passes.def: Move pass_late_warn_uninitialized later.
12177 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
12179 * tree-ssa.h: New. Move content from tree-flow.h and
12180 tree-flow-inline.h.
12181 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
12182 Move prototypes belonging to tree-ssa.c.
12183 * tree-flow-inline.h (redirect_edge_var_map_def,
12184 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
12186 * gimple.h: Adjust prototypes.
12187 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
12189 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
12190 * tree.h: Move prototype to tree-ssa.h.
12191 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
12192 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
12193 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
12194 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
12195 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
12196 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
12197 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
12198 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
12199 graphite-blocking.c, graphite-clast-to-gimple.c,
12200 graphite-dependences.c, graphite-interchange.c,
12201 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
12202 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
12203 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
12204 ipa-reference.c, ipa-split.c, ipa-utils.c,
12205 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
12206 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
12207 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
12208 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
12209 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
12210 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
12211 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
12212 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
12213 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
12214 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
12215 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
12216 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
12217 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
12218 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
12219 value-prof.c, var-tracking.c,
12220 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
12222 2013-09-12 Richard Biener <rguenther@suse.de>
12224 PR tree-optimization/58396
12225 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
12226 (build_rdg): Take a loop-nest parameter, fix memleaks.
12227 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
12229 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
12231 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
12234 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
12236 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
12237 The FMA instruction names should have a 'v' prefix.
12239 2013-09-12 Richard Biener <rguenther@suse.de>
12241 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
12242 (dot_rdg): Use popen instead of system in optional code.
12243 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
12244 (already_processed_vertex_p): Adjust.
12245 (has_anti_or_output_dependence, predecessor_has_mem_write,
12246 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
12247 rdg_flag_uses): Remove.
12248 (rdg_flag_vertex): Simplify.
12249 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
12251 (build_rdg_partition_for_component): Process the first vertex
12252 of a component only.
12253 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
12255 2013-09-12 Alan Modra <amodra@gmail.com>
12257 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
12259 2013-09-11 DJ Delorie <dj@redhat.com>
12260 Nick Clifton <nickc@redhat.com>
12262 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
12263 (rl78_stack_based_mem): New.
12264 * config/rl78/constraints.md (Iv08): New.
12273 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
12275 (movsi): Change from expand to insn-and-split.
12276 (ashrsi3): Clobber AX.
12280 * config/rl78/rl78.md (CC_REG): Fix.
12281 (addsi3): Allow memory and immediate operands.
12282 (addsi3_internal): Split into...
12283 (addsi3_internal_virt): ...new, and ...
12284 (addsi3_internal_real): ...new.
12286 (subsi3_internal_virt): New.
12287 (subsi3_internal_real): New.
12288 (mulsi3): Add memory operand.
12289 (mulsi3_rl78): Likewise.
12290 (mulsi3_g13): Likewise.
12291 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
12292 (cbranchqi4_real): Add more constraint options.
12293 (cbranchhi4_real): Expand pattern.
12294 (cbranchhi4_real_signed): New.
12295 (cbranchhi4_real_inverted): New.
12296 (cbranchsi4_real_lt): New.
12297 (cbranchsi4_real_ge): New.
12298 (cbranchsi4_real_signed): New.
12299 (cbranchsi4_real): New.
12301 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
12303 (lshrsi3_virt): Likewise.
12304 (ashlsi3_virt): Likewise.
12305 (cbranchqi4_virt_signed): New.
12306 (cbranchhi4_virt_signed): New.
12307 (cbranchsi4_virt): New.
12308 * config/rl78/rl78.c: Whitespace fixes throughout.
12309 (move_elim_pass): New.
12310 (pass_data_rl78_move_elim): New.
12311 (pass_rl78_move_elim): New.
12312 (make_pass_rl78_move_elim): New.
12313 (rl78_devirt_info): Run devirt earlier.
12314 (rl78_move_elim_info): New.
12315 (rl78_asm_file_start): Register it.
12316 (rl78_split_movsi): New.
12317 (rl78_as_legitimate_address): Allow virtual base registers when
12319 (rl78_addr_space_convert): Remove spurious debug stuff.
12320 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
12321 (rl78_print_operand): More cases for not printing '#'.
12322 (rl78_expand_compare): Remove most of the logic.
12323 (content_memory): New.
12324 (clear_content_memory): New.
12325 (get_content_index): New.
12326 (get_content_name): New.
12327 (display_content_memory): New.
12328 (update_content): New.
12329 (record_content): New.
12330 (already_contains): New.
12331 (insn_ok_now): Re-recog insns with virtual registers.
12332 (add_postponed_content_update): New.
12333 (process_postponed_content_update): New.
12334 (gen_and_emit_move): New.
12335 (transcode_memory_rtx): Record new location content.
12336 Use gen_and_emit_move.
12337 (force_into_acc): New.
12338 (move_to_acc): Use gen_and_emit_move.
12339 (move_from_acc): Likewise.
12340 (move_acc_to_reg): Likewise.
12341 (move_to_x): Likewise.
12342 (move_to_hl): Likewise.
12343 (move_to_de): Likewise.
12344 (rl78_alloc_physical_registers_op1): Record location content.
12345 (has_constraint): New.
12346 (rl78_alloc_physical_registers_op2): Record location content.
12347 Optimize use of HL.
12348 (rl78_alloc_physical_registers_ro1): Likewise.
12349 (rl78_alloc_physical_registers_cmp): Likewise.
12350 (rl78_alloc_physical_registers_umul): Likewise.
12351 (rl78_alloc_address_registers_macax): New.
12352 (rl78_alloc_physical_registers): Initialize and set location
12353 content memory as needed.
12354 (rl78_reorg): Make sure split2 is called.
12355 (rl78_rtx_costs): New.
12357 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
12359 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
12360 for (not (neg ...)) and (neg (not ...)) cases.
12362 2013-09-11 Richard Biener <rguenther@suse.de>
12364 PR middle-end/58377
12365 * passes.def: Split critical edges before late uninit warning passes.
12366 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
12368 2013-09-11 Jakub Jelinek <jakub@redhat.com>
12370 PR tree-optimization/58385
12371 * fold-const.c (build_range_check): If both low and high are NULL,
12372 use omit_one_operand_loc to preserve exp side-effects.
12374 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12376 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
12378 2013-09-11 Richard Biener <rguenther@suse.de>
12380 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
12381 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
12382 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
12383 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
12384 stmts_from_loop, known_dependences_p, build_empty_rdg,
12385 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
12386 * tree-loop-distribution.c: ... here.
12387 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
12388 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
12389 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
12390 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
12391 * tree-loop-distribution.c: ... here.
12392 * tree-loop-distribution.c: Include gimple-pretty-print.h.
12393 (struct partition_s): Add loops member.
12394 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
12395 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
12396 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
12398 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12399 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12400 Sergey Lega <sergey.s.lega@intel.com>
12401 Anna Tikhonova <anna.tikhonova@intel.com>
12402 Ilya Tocar <ilya.tocar@intel.com>
12403 Andrey Turetskiy <andrey.turetskiy@intel.com>
12404 Ilya Verbin <ilya.verbin@intel.com>
12405 Kirill Yukhin <kirill.yukhin@intel.com>
12406 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12408 * config/i386/constraints.md (k): New.
12410 * config/i386/i386.c (const regclass_map): Add new mask registers.
12411 (dbx_register_map): Ditto.
12412 (dbx64_register_map): Ditto.
12413 (svr4_dbx_register_map): Ditto.
12414 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
12416 (ix86_preferred_reload_class): Disable constants for mask registers.
12417 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
12418 (ix86_hard_regno_mode_ok): Support new mask registers.
12419 (x86_order_regs_for_local_alloc): Ditto.
12420 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
12421 (FIXED_REGISTERS): Add new mask registers.
12422 (CALL_USED_REGISTERS): Ditto.
12423 (REG_ALLOC_ORDER): Ditto.
12424 (VALID_MASK_REG_MODE): New.
12425 (FIRST_MASK_REG): Ditto.
12426 (LAST_MASK_REG): Ditto.
12427 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
12428 (MAYBE_MASK_CLASS_P): New.
12429 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
12430 (REG_CLASS_CONTENTS): Ditto.
12431 (MASK_REGNO_P): New.
12432 (ANY_MASK_REG_P): Ditto.
12433 (HI_REGISTER_NAMES): Add new mask registers.
12434 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
12435 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
12437 (attribute "type"): Add mskmov, msklog.
12438 (attribute "length_immediate"): Support them.
12439 (attribute "memory"): Ditto.
12440 (attribute "prefix_0f"): Ditto.
12441 (*movhi_internal): Support new mask registers.
12442 (*movqi_internal): Ditto.
12443 (define_split): Split out clobber pattern is a logic
12444 insn on mask registers.
12445 (*k<logic><mode>): New.
12446 (*andhi_1): Extend to support mask regs.
12447 (*andqi_1): Extend to support mask regs.
12448 (kandn<mode>): New.
12449 (define_split): Split and-not to and and not if operands
12451 (*<code><mode>_1): Separate HI mode to new pattern...
12452 (*<code>hi_1): This.
12453 (*<code>qi_1): Extend to support mask regs.
12454 (kxnor<mode>): New.
12455 (kortestzhi): Ditto.
12456 (kortestchi): Ditto.
12458 (*one_cmpl<mode>2_1): Remove HImode and handle it...
12459 (*one_cmplhi2_1): ...Here, now with mask registers support.
12460 (*one_cmplqi2_1): Support new mask registers.
12461 (HI/QImode arithmetics splitter): Don't split if mask registers
12463 (HI/QImode not splitter): Ditto.
12464 * config/i386/predicated.md (mask_reg_operand): New.
12465 (general_reg_operand): Ditto.
12467 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12469 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
12470 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
12472 2013-09-10 Jeff Law <law@redhat.com>
12474 PR tree-optimization/58380
12475 * tree-ssa-threadupdate.c (thread_block): Recognize another case
12476 of threading through a buried loop header.
12478 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
12479 return value for single successor case.
12481 2013-09-10 Jan Hubicka <jh@suse.cz>
12483 * ipa-devirt.c (ipa_devirt): Enable with LTO.
12485 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
12488 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
12489 support conditional execution.
12490 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
12492 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
12494 * lra.c (lra): Clear lra_optional_reload_pseudos before every
12496 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
12497 Check destination too to check move insn.
12498 (undo_optional_reloads): Add check that the original peudo did not
12499 changed its allocation and the optional reload was inherited on last
12500 inheritance pass. Break loop after deciding to keep optional reload.
12501 (lra_undo_inheritance): Add check that inherited pseudo still in
12504 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
12506 * config/aarch64/aarch64.md (generic_sched): New.
12507 * config/aarch64/aarch64-generic.md (load): Make conditional
12508 on generic_sched attribute.
12509 (nonload): Likewise.
12511 2013-09-10 Jan Hubicka <jh@suse.cz>
12513 * lto-cgraph.c: Include ipa-utils.h.
12514 (compute_ltrans_boundary): Also add possible targets into the boundary.
12516 2013-09-10 Jan Hubicka <jh@suse.cz>
12518 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
12519 VAR_DECL of vtable rather than full expression.
12521 2013-09-10 Jan Hubicka <jh@suse.cz>
12522 Paolo Carlini <paolo.carlini@oracle.com>
12524 * cgraphunit.c (analyze_functions): Save input_location, set it
12525 to UNKNOWN_LOCATION and restore it at the end.
12527 2013-09-10 Martin Jambor <mjambor@suse.cz>
12529 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
12530 represented by a thunk.
12532 2013-09-10 Jeff Law <law@redhat.com>
12534 PR tree-optimization/58343
12535 * tree-ssa-threadupdate.c (thread_block): Identify and disable
12536 jump threading requests through loop headers buried in the middle
12537 of a jump threading path.
12539 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
12540 in return value/type.
12542 2013-09-10 Jakub Jelinek <jakub@redhat.com>
12544 PR rtl-optimization/58365
12545 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
12546 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
12549 2013-09-10 Richard Biener <rguenther@suse.de>
12551 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
12552 * tree-data-ref.c (create_rdg_vertices): Collect all data
12553 references, signal failure to the caller, use data-ref API.
12554 (build_rdg): Compute data references only once. Maintain lifetime
12555 of data references and data dependences from within RDG.
12556 (free_rdg): Free dependence relations.
12557 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
12558 inventing extra dependences.
12559 (distribute_loop): Update for RDG API changes.
12561 2013-09-10 Kai Tietz <ktietz@redhat.com>
12563 * doc/invoke.texi (fms-extensions): Document changed
12564 behavior for ms-abi targets.
12565 * config/i386/i386.c (ix86_option_override_internal):
12566 Set default value of option -fms-extension for ms-abi targets.
12568 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12570 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
12572 2013-09-10 Alan Modra <amodra@gmail.com>
12575 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
12577 2013-09-10 Alan Modra <amodra@gmail.com>
12579 * config/rs6000/predicates.md (add_cint_operand): New.
12580 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
12581 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
12582 using add_cint_operand.
12583 (largetoc_high_plus_aix): Likewise.
12585 2013-09-09 Jakub Jelinek <jakub@redhat.com>
12587 PR tree-optimization/58364
12588 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
12589 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
12590 the current range can't be an unconditional true or false.
12592 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
12594 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
12596 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
12598 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
12600 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
12603 * doc/invoke.texi (-Wdelete-incomplete): Document it.
12605 2013-09-09 Ian Bolton <ian.bolton@arm.com>
12607 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
12608 NO_REGS for immediate that can't be moved directly into FP_REGS.
12610 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12612 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
12613 comparison with negated operand.
12614 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
12617 2013-09-09 Richard Biener <rguenther@suse.de>
12619 PR middle-end/58326
12620 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
12621 of a subloop record all its block as affecting loop-closed SSA form.
12623 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12625 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
12626 of an rtx/bitpos pair.
12627 (store_fixed_bit_field): Update accordingly.
12629 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12631 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
12633 * builtins.c (expand_errno_check): Likewise.
12634 * dwarf2cfi.c (init_return_column_size): Likewise.
12635 * except.c (sjlj_mark_call_sites): Likewise.
12636 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
12637 * lra-constraints.c (emit_inc): Likewise.
12638 * ree.c (combine_set_extension): Likewise.
12639 * regmove.c (fixup_match_2): Likewise.
12640 * reload1.c (inc_for_reload): Likewise.
12642 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12644 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
12645 (force_to_mode, simplify_shift_const_1, simplify_comparison):
12646 Use gen_int_mode with the mode of the associated simplify_* call.
12647 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
12648 * expmed.c (expand_shift_1): Likewise.
12649 * function.c (instantiate_virtual_regs_in_insn): Likewise.
12650 * loop-iv.c (iv_number_of_iterations): Likewise.
12651 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
12652 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12654 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12656 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
12657 of the associated expand_* call.
12658 (asan_emit_stack_protection): Likewise.
12659 * builtins.c (round_trampoline_addr): Likewise.
12660 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
12661 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
12662 (emit_store_flag): Likewise.
12663 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
12664 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
12666 * function.c (instantiate_virtual_regs_in_insn): Likewise.
12667 * ifcvt.c (noce_try_store_flag_constants): Likewise.
12668 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
12669 * modulo-sched.c (generate_prolog_epilog): Likewise.
12670 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
12671 (expand_ctz, expand_ffs, expand_unop): Likewise.
12673 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12675 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
12676 of the associated gen_rtx_* call.
12677 * caller-save.c (init_caller_save): Likewise.
12678 * combine.c (find_split_point, make_extraction): Likewise.
12679 (make_compound_operation): Likewise.
12680 * dwarf2out.c (mem_loc_descriptor): Likewise.
12681 * explow.c (plus_constant, probe_stack_range): Likewise.
12682 * expmed.c (expand_mult_const): Likewise.
12683 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
12684 * reload1.c (init_reload): Likewise.
12685 * valtrack.c (cleanup_auto_inc_dec): Likewise.
12686 * var-tracking.c (adjust_mems): Likewise.
12687 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
12688 rather than gen_rtx_fmt_ee.
12690 2013-09-09 Jan Hubicka <jh@suse.cz>
12692 PR middle-end/58294
12693 * value-prof.c (gimple_ic): Copy also abnormal edges.
12695 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12697 * asan.c (asan_shadow_cst): Use gen_int_mode.
12699 2013-09-08 Jan Hubicka <jh@suse.cz>
12701 * ipa-profile.c: Add toplevel comment.
12702 (ipa_propagate_frequency_1): Be more conservative when profile is read.
12703 (contains_hot_call_p): New function.
12704 (ipa_propagate_frequency): Set frequencies based on counts when
12706 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
12707 profile; do not tamper with profile after inlining if it is read.
12709 2013-09-08 Jan Hubicka <jh@suse.cz>
12711 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
12714 2013-09-08 Jan Hubicka <jh@suse.cz>
12716 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
12717 summary generation.
12719 2013-09-08 Jeff Law <law@redhat.com>
12722 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
12725 2013-09-08 Andi Kleen <ak@linux.intel.com>
12727 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
12729 2013-09-08 Jan Hubicka <jh@suse.cz>
12731 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
12733 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
12735 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
12736 for non-debug insns.
12737 * lra.c (new_insn_reg): Take the containing insn as a parameter.
12738 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
12739 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
12742 2013-09-08 Jan Hubicka <jh@suse.cz>
12744 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
12745 targets and devirtualize to BUILT_IN_UNREACHABLE.
12746 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
12747 * ipa.c (walk_polymorphic_call_targets): New function.
12748 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
12749 functions; use the new timevar.
12750 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
12751 was removed from the program.
12752 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
12753 not consider it in the walk when its vtable is dead.
12754 (possible_polymorphic_call_targets_1): Pass anonymous flag to
12756 (devirt_variable_node_removal_hook): New function.
12757 (possible_polymorphic_call_targets): Also register
12758 devirt_variable_node_removal_hook.
12759 (ipa_devirt): Do not do non-speculative devirtualization.
12760 (gate_ipa_devirt): One execute if devirtualizing speculatively.
12762 2013-09-08 Jan Hubicka <jh@suse.cz>
12764 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
12765 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
12766 varpool_remove_variable_insertion_hook): Declare.
12767 * varpool.c (varpool_node_hook_list): New structure.
12768 (first_varpool_node_removal_hook,
12769 first_varpool_variable_insertion_hook): New variables.
12770 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
12771 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
12772 varpool_remove_variable_insertion_hook,
12773 varpool_call_variable_insertion_hooks): New functions.
12774 (varpool_remove_node): Use it.
12776 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
12779 * diagnostic.c (diagnostic_build_prefix): When s.file is
12780 "<built-in>" don't output line and column numbers.
12782 2013-09-06 Jan Hubicka <jh@suse.cz>
12784 * cgraphunit.c (expand_thunk): Get body before touching arguments.
12785 * lto-streamer-out.c: Stream thunks, too.
12786 * lto-streamer-in.c (input_function): Pop cfun here
12787 (lto_read_body): Instead of here.
12789 2013-09-06 Caroline Tice <cmtice@google.com>
12791 * doc/install.texi: Add documentation for the --enable-vtable-verify
12792 and the --disable-libvtv configure options.
12794 2013-09-06 Jeff Law <law@redhat.com>
12796 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12797 edge implied equivalences into successor phis.
12799 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
12801 * resource.c (mark_referenced_resources): Handle COND_EXEC.
12803 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
12805 * resource.c (mark_target_live_regs): Compute resources taking
12806 into account if a call is predicated or not.
12808 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
12810 * toplev.c (output_stack_usage): Be prepared for suffixes created by
12811 the compiler in the function names.
12813 2013-09-06 Jan Hubicka <jh@suse.cz>
12815 PR middle-end/58094
12816 * ipa-inline.c (has_caller_p): New function.
12817 (want_inline_function_to_all_callers_p): Use it.
12818 (sum_callers, inline_to_all_callers): Break out from ...
12819 (ipa_inline): ... here.
12821 2013-09-06 Jan Hubicka <jh@suse.cz>
12823 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
12824 only when AVX is enabled.
12826 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12828 * config/aarch64/aarch64.md
12829 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
12830 is fpsimd_<load/store>2.
12831 (load_pair<mode>): Likewise.
12832 (store_pair<mode>): Likewise.
12834 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12836 * config/arm/types.md (type): Add "mrs" type.
12837 * config/aarch64/aarch64.md
12838 (aarch64_load_tp_hard): Make type "mrs".
12839 * config/arm/arm.md
12840 (load_tp_hard): Make type "mrs".
12841 * config/arm/cortex-a15.md: Update with new attributes.
12842 * config/arm/cortex-a5.md: Update with new attributes.
12843 * config/arm/cortex-a53.md: Update with new attributes.
12844 * config/arm/cortex-a7.md: Update with new attributes.
12845 * config/arm/cortex-a8.md: Update with new attributes.
12846 * config/arm/cortex-a9.md: Update with new attributes.
12847 * config/arm/cortex-m4.md: Update with new attributes.
12848 * config/arm/cortex-r4.md: Update with new attributes.
12849 * config/arm/fa526.md: Update with new attributes.
12850 * config/arm/fa606te.md: Update with new attributes.
12851 * config/arm/fa626te.md: Update with new attributes.
12852 * config/arm/fa726te.md: Update with new attributes.
12854 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12856 * config/aarch64/aarch64.md
12857 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
12858 (*movtf_aarch64): Likewise.
12859 * config/arm/arm.md
12860 (thumb1_movdi_insn): Use "multiple" for type where more than one
12861 instruction is used for a move.
12862 (*arm32_movhf): Likewise.
12863 (*thumb_movdf_insn): Likewise.
12865 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12867 * config/arm/types.md (type): Rename fcpys to fmov.
12868 * config/arm/vfp.md
12869 (*arm_movsi_vfp): Rename type fcpys as fmov.
12870 (*thumb2_movsi_vfp): Likewise
12871 (*movhf_vfp_neon): Likewise
12872 (*movhf_vfp): Likewise
12873 (*movsf_vfp): Likewise
12874 (*thumb2_movsf_vfp): Likewise
12875 (*movsfcc_vfp): Likewise
12876 (*thumb2_movsfcc_vfp): Likewise
12877 * config/aarch64/aarch64-simd.md
12878 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
12879 * config/aarch64/aarch64.md
12880 (*movsi_aarch64): Replace type mov_reg with fmovs.
12881 (*movdi_aarch64): Likewise
12882 (*movsf_aarch64): Likewise
12883 (*movdf_aarch64): Likewise
12885 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
12886 * config/arm/iwmmxt.md
12887 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
12888 * config/arm/arm1020e.md: Update with new attributes.
12889 * config/arm/cortex-a15-neon.md: Update with new attributes.
12890 * config/arm/cortex-a5.md: Update with new attributes.
12891 * config/arm/cortex-a53.md: Update with new attributes.
12892 * config/arm/cortex-a7.md: Update with new attributes.
12893 * config/arm/cortex-a8-neon.md: Update with new attributes.
12894 * config/arm/cortex-a9.md: Update with new attributes.
12895 * config/arm/cortex-m4-fpu.md: Update with new attributes.
12896 * config/arm/cortex-r4f.md: Update with new attributes.
12897 * config/arm/marvell-pj4.md: Update with new attributes.
12898 * config/arm/vfp11.md: Update with new attributes.
12900 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12902 * config/aarch64/aarch64.md
12903 (*madd<mode>): Fix type attribute.
12904 (*maddsi_uxtw): Likewise.
12905 (*msub<mode>): Likewise.
12906 (*msubsi_uxtw): Likewise.
12907 (<su_optab>maddsidi4): Likewise.
12908 (<su_optab>msubsidi4): Likewise.
12910 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12912 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
12913 * config/arm/arm.md (core_cycles): Remove fdiv.
12914 * config/arm/vfp.md:
12915 (*sqrtsf2_vfp): Update for attribute changes.
12916 (*sqrtdf2_vfp): Likewise.
12917 * config/aarch64/aarch64.md:
12918 (sqrt<mode>2): Update for attribute changes.
12919 * config/arm/arm1020e.md: Update with new attributes.
12920 * config/arm/cortex-a15-neon.md: Update with new attributes.
12921 * config/arm/cortex-a5.md: Update with new attributes.
12922 * config/arm/cortex-a53.md: Update with new attributes.
12923 * config/arm/cortex-a7.md: Update with new attributes.
12924 * config/arm/cortex-a8-neon.md: Update with new attributes.
12925 * config/arm/cortex-a9.md: Update with new attributes.
12926 * config/arm/cortex-m4-fpu.md: Update with new attributes.
12927 * config/arm/cortex-r4f.md: Update with new attributes.
12928 * config/arm/marvell-pj4.md: Update with new attributes.
12929 * config/arm/vfp11.md: Update with new attributes.
12931 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12933 * config/arm/types.md
12934 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
12935 * config/aarch64/aarch64.md
12936 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
12938 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
12939 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
12940 (float<GPI:mode><GPF:mode>2): Likewise.
12941 * config/arm/vfp.md
12942 (*truncsisf2_vfp): Update with new attributes.
12943 (*truncsidf2_vfp): Likewise.
12944 (fixuns_truncsfsi2): Likewise.
12945 (fixuns_truncdfsi2): Likewise.
12946 (*floatsisf2_vfp): Likewise.
12947 (*floatsidf2_vfp): Likewise.
12948 (floatunssisf2): Likewise.
12949 (floatunssidf2): Likewise.
12950 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
12951 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
12952 * config/arm/arm1020e.md: Update with new attributes.
12953 * config/arm/cortex-a15-neon.md: Update with new attributes.
12954 * config/arm/cortex-a5.md: Update with new attributes.
12955 * config/arm/cortex-a53.md: Update with new attributes.
12956 * config/arm/cortex-a7.md: Update with new attributes.
12957 * config/arm/cortex-a8-neon.md: Update with new attributes.
12958 * config/arm/cortex-a9.md: Update with new attributes.
12959 * config/arm/cortex-m4-fpu.md: Update with new attributes.
12960 * config/arm/cortex-r4f.md: Update with new attributes.
12961 * config/arm/marvell-pj4.md: Update with new attributes.
12962 * config/arm/vfp11.md: Update with new attributes.
12964 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12966 * config/aarch64/arm_neon.h
12967 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
12968 (vqtbx<1,2,3,4><q>_s8): Likewise.
12970 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12972 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
12973 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
12974 (add<mode>3): Add type attribute.
12975 (add<mode>3): Likewise.
12976 (usadd<mode>3): Likewise.
12977 (ssadd<mode>3): Likewise.
12978 (sub<mode>3): Likewise.
12979 (sub<mode>3): Likewise.
12980 (ussub<mode>3): Likewise.
12981 (sssub<mode>3): Likewise.
12982 (ssmulsa3): Likewise.
12983 (usmulusa3): Likewise.
12984 (arm_usatsihi): Likewise.
12985 * config/arm/vfp.md
12986 (*movdi_vfp): Add types for all instructions.
12987 (*movdi_vfp_cortexa8): Likewise.
12988 (*movhf_vfp_neon): Likewise.
12989 (*movhf_vfp): Likewise.
12990 (*movdf_vfp): Likewise.
12991 (*thumb2_movdf_vfp): Likewise.
12992 (*thumb2_movdfcc_vfp): Likewise.
12993 * config/arm/arm.md: Add type attribute to all insn patterns.
12994 (*thumb1_adddi3): Add type attribute.
12995 (*arm_adddi3): Likewise.
12996 (*adddi_sesidi_di): Likewise.
12997 (*adddi_zesidi_di): Likewise.
12998 (*thumb1_addsi3): Likewise.
12999 (addsi3_compare0): Likewise.
13000 (*addsi3_compare0_scratch): Likewise.
13001 (*compare_negsi_si): Likewise.
13002 (cmpsi2_addneg): Likewise.
13003 (*addsi3_carryin_<optab>): Likewise.
13004 (*addsi3_carryin_alt2_<optab>): Likewise.
13005 (*addsi3_carryin_clobercc_<optab>): Likewise.
13006 (*subsi3_carryin): Likewise.
13007 (*subsi3_carryin_const): Likewise.
13008 (*subsi3_carryin_compare): Likewise.
13009 (*subsi3_carryin_compare_const): Likewise.
13010 (*arm_subdi3): Likewise.
13011 (*thumb_subdi3): Likewise.
13012 (*subdi_di_zesidi): Likewise.
13013 (*subdi_di_sesidi): Likewise.
13014 (*subdi_zesidi_di): Likewise.
13015 (*subdi_sesidi_di): Likewise.
13016 (*subdi_zesidi_ze): Likewise.
13017 (thumb1_subsi3_insn): Likewise.
13018 (*arm_subsi3_insn): Likewise.
13019 (*anddi3_insn): Likewise.
13020 (*anddi_zesidi_di): Likewise.
13021 (*anddi_sesdi_di): Likewise.
13022 (*ne_zeroextracts): Likewise.
13023 (*ne_zeroextracts): Likewise.
13024 (*ite_ne_zeroextr): Likewise.
13025 (*ite_ne_zeroextr): Likewise.
13026 (*anddi_notdi_di): Likewise.
13027 (*anddi_notzesidi): Likewise.
13028 (*anddi_notsesidi): Likewise.
13029 (andsi_notsi_si): Likewise.
13030 (thumb1_bicsi3): Likewise.
13031 (*iordi3_insn): Likewise.
13032 (*iordi_zesidi_di): Likewise.
13033 (*iordi_sesidi_di): Likewise.
13034 (*thumb1_iorsi3_insn): Likewise.
13035 (*xordi3_insn): Likewise.
13036 (*xordi_zesidi_di): Likewise.
13037 (*xordi_sesidi_di): Likewise.
13038 (*arm_xorsi3): Likewise.
13039 (*andsi_iorsi3_no): Likewise.
13040 (*smax_0): Likewise.
13041 (*smax_m1): Likewise.
13042 (*arm_smax_insn): Likewise.
13043 (*smin_0): Likewise.
13044 (*arm_smin_insn): Likewise.
13045 (*arm_umaxsi3): Likewise.
13046 (*arm_uminsi3): Likewise.
13047 (*minmax_arithsi): Likewise.
13048 (*minmax_arithsi_): Likewise.
13049 (*satsi_<SAT:code>): Likewise.
13050 (arm_ashldi3_1bit): Likewise.
13051 (arm_ashrdi3_1bit): Likewise.
13052 (arm_lshrdi3_1bit): Likewise.
13053 (*arm_negdi2): Likewise.
13054 (*thumb1_negdi2): Likewise.
13055 (*arm_negsi2): Likewise.
13056 (*thumb1_negsi2): Likewise.
13057 (*negdi_extendsid): Likewise.
13058 (*negdi_zero_extend): Likewise.
13059 (*arm_abssi2): Likewise.
13060 (*thumb1_abssi2): Likewise.
13061 (*arm_neg_abssi2): Likewise.
13062 (*thumb1_neg_abss): Likewise.
13063 (one_cmpldi2): Likewise.
13064 (extend<mode>di2): Likewise.
13065 (*compareqi_eq0): Likewise.
13066 (*arm_extendhisi2addsi): Likewise.
13067 (*arm_movdi): Likewise.
13068 (*thumb1_movdi_insn): Likewise.
13069 (*arm_movt): Likewise.
13070 (*thumb1_movsi_insn): Likewise.
13071 (pic_add_dot_plus_four): Likewise.
13072 (pic_add_dot_plus_eight): Likewise.
13073 (tls_load_dot_plus_eight): Likewise.
13074 (*thumb1_movhi_insn): Likewise.
13075 (*thumb1_movsf_insn): Likewise.
13076 (*movdf_soft_insn): Likewise.
13077 (*thumb_movdf_insn): Likewise.
13078 (cbranchsi4_insn): Likewise.
13079 (cbranchsi4_scratch): Likewise.
13080 (*negated_cbranchsi4): Likewise.
13081 (*tbit_cbranch): Likewise.
13082 (*tlobits_cbranch): Likewise.
13083 (*tstsi3_cbranch): Likewise.
13084 (*cbranchne_decr1): Likewise.
13085 (*addsi3_cbranch): Likewise.
13086 (*addsi3_cbranch_scratch): Likewise.
13087 (*arm_cmpdi_insn): Likewise.
13088 (*arm_cmpdi_unsig): Likewise.
13089 (*arm_cmpdi_zero): Likewise.
13090 (*thumb_cmpdi_zero): Likewise.
13091 (*deleted_compare): Likewise.
13092 (*mov_scc): Likewise.
13093 (*mov_negscc): Likewise.
13094 (*mov_notscc): Likewise.
13095 (*cstoresi_eq0_thumb1_insn): Likewise.
13096 (cstoresi_nltu_thumb1): Likewise.
13097 (cstoresi_ltu_thu): Likewise.
13098 (thumb1_addsi3_addgeu): Likewise.
13099 (*arm_jump): Likewise.
13100 (*thumb_jump): Likewise.
13101 (*check_arch2): Likewise.
13102 (arm_casesi_internal): Likewise.
13103 (thumb1_casesi_dispatch): Likewise.
13104 (*arm_indirect_jump): Likewise.
13105 (*thumb1_indirect_jump): Likewise.
13107 (*and_scc): Likewise.
13108 (*ior_scc): Likewise.
13109 (*compare_scc): Likewise.
13110 (*cond_move): Likewise.
13111 (*cond_arith): Likewise.
13112 (*cond_sub): Likewise.
13113 (*cmp_ite0): Likewise.
13114 (*cmp_ite1): Likewise.
13115 (*cmp_and): Likewise.
13116 (*cmp_ior): Likewise.
13117 (*ior_scc_scc): Likewise.
13118 (*ior_scc_scc_cmp): Likewise.
13119 (*and_scc_scc): Likewise.
13120 (*and_scc_scc_cmp): Likewise.
13121 (*and_scc_scc_nod): Likewise.
13122 (*negscc): Likewise.
13123 (movcond_addsi): Likewise.
13124 (movcond): Likewise.
13125 (*ifcompare_plus_move): Likewise.
13126 (*if_plus_move): Likewise.
13127 (*ifcompare_move_plus): Likewise.
13128 (*if_move_plus): Likewise.
13129 (*ifcompare_arith_arith): Likewise.
13130 (*if_arith_arith): Likewise.
13131 (*ifcompare_arith_move): Likewise.
13132 (*if_arith_move): Likewise.
13133 (*ifcompare_move_arith): Likewise.
13134 (*if_move_arith): Likewise.
13135 (*ifcompare_move_not): Likewise.
13136 (*if_move_not): Likewise.
13137 (*ifcompare_not_move): Likewise.
13138 (*if_not_move): Likewise.
13139 (*ifcompare_shift_move): Likewise.
13140 (*if_shift_move): Likewise.
13141 (*ifcompare_move_shift): Likewise.
13142 (*if_move_shift): Likewise.
13143 (*ifcompare_shift_shift): Likewise.
13144 (*ifcompare_not_arith): Likewise.
13145 (*ifcompare_arith_not): Likewise.
13146 (*if_arith_not): Likewise.
13147 (*ifcompare_neg_move): Likewise.
13148 (*if_neg_move): Likewise.
13149 (*ifcompare_move_neg): Likewise.
13150 (*if_move_neg): Likewise.
13151 (prologue_thumb1_interwork): Likewise.
13152 (*cond_move_not): Likewise.
13153 (*sign_extract_onebit): Likewise.
13154 (*not_signextract_onebit): Likewise.
13155 (stack_tie): Likewise.
13156 (align_4): Likewise.
13157 (align_8): Likewise.
13158 (consttable_end): Likewise.
13159 (consttable_1): Likewise.
13160 (consttable_2): Likewise.
13161 (consttable_4): Likewise.
13162 (consttable_8): Likewise.
13163 (consttable_16): Likewise.
13164 (*thumb1_tablejump): Likewise.
13165 (prefetch): Likewise.
13166 (force_register_use): Likewise.
13167 (thumb_eh_return): Likewise.
13168 (load_tp_hard): Likewise.
13169 (load_tp_soft): Likewise.
13170 (tlscall): Likewise.
13171 (*arm_movtas_ze): Likewise.
13172 (*arm_rev): Likewise.
13173 (*arm_revsh): Likewise.
13174 (*arm_rev16): Likewise.
13175 * config/arm/thumb2.md
13176 (*thumb2_smaxsi3): Likewise.
13177 (*thumb2_sminsi3): Likewise.
13178 (*thumb32_umaxsi3): Likewise.
13179 (*thumb2_uminsi3): Likewise.
13180 (*thumb2_negdi2): Likewise.
13181 (*thumb2_abssi2): Likewise.
13182 (*thumb2_neg_abss): Likewise.
13183 (*thumb2_movsi_insn): Likewise.
13184 (tls_load_dot_plus_four): Likewise.
13185 (*thumb2_movhi_insn): Likewise.
13186 (*thumb2_mov_scc): Likewise.
13187 (*thumb2_mov_negs): Likewise.
13188 (*thumb2_mov_negs): Likewise.
13189 (*thumb2_mov_nots): Likewise.
13190 (*thumb2_mov_nots): Likewise.
13191 (*thumb2_movsicc_): Likewise.
13192 (*thumb2_movsfcc_soft_insn): Likewise.
13193 (*thumb2_indirect_jump): Likewise.
13194 (*thumb2_and_scc): Likewise.
13195 (*thumb2_ior_scc): Likewise.
13196 (*thumb2_ior_scc_strict_it): Likewise.
13197 (*thumb2_cond_move): Likewise.
13198 (*thumb2_cond_arith): Likewise.
13199 (*thumb2_cond_ari): Likewise.
13200 (*thumb2_cond_sub): Likewise.
13201 (*thumb2_negscc): Likewise.
13202 (*thumb2_movcond): Likewise.
13203 (thumb2_casesi_internal): Likewise.
13204 (thumb2_casesi_internal_pic): Likewise.
13205 (*thumb2_alusi3_short): Likewise.
13206 (*thumb2_mov<mode>_shortim): Likewise.
13207 (*thumb2_addsi_short): Likewise.
13208 (*thumb2_subsi_short): Likewise.
13209 (thumb2_addsi3_compare0): Likewise.
13210 (*thumb2_cbz): Likewise.
13211 (*thumb2_cbnz): Likewise.
13212 (*thumb2_one_cmplsi2_short): Likewise.
13213 (*thumb2_negsi2_short): Likewise.
13214 (*orsi_notsi_si): Likewise.
13215 * config/arm/arm1020e.md: Update with new attributes.
13216 * config/arm/arm1026ejs.md: Update with new attributes.
13217 * config/arm/arm1136jfs.md: Update with new attributes.
13218 * config/arm/arm926ejs.md: Update with new attributes.
13219 * config/arm/cortex-a15.md: Update with new attributes.
13220 * config/arm/cortex-a5.md: Update with new attributes.
13221 * config/arm/cortex-a53.md: Update with new attributes.
13222 * config/arm/cortex-a7.md: Update with new attributes.
13223 * config/arm/cortex-a8.md: Update with new attributes.
13224 * config/arm/cortex-a9.md: Update with new attributes.
13225 * config/arm/cortex-m4.md: Update with new attributes.
13226 * config/arm/cortex-r4.md: Update with new attributes.
13227 * config/arm/fa526.md: Update with new attributes.
13228 * config/arm/fa606te.md: Update with new attributes.
13229 * config/arm/fa626te.md: Update with new attributes.
13230 * config/arm/fa726te.md: Update with new attributes.
13232 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13234 * config/aarch64/aarch64-simd.md
13235 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
13236 <vwx> iterator to ensure correct register choice.
13237 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13238 (aarch64_sqdmull_n<mode>): Likewise.
13239 (aarch64_sqdmull2_n<mode>_internal): Likewise.
13240 * config/aarch64/arm_neon.h
13241 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
13242 (vml<as><q>_n_<su>16): Likewise.
13243 (vml<as>l_high_lane<q>_<su>16): Likewise.
13244 (vml<as>l_high_n_<su>16): Likewise.
13245 (vml<as>l_lane<q>_<su>16): Likewise.
13246 (vml<as>l_n_<su>16): Likewise.
13247 (vmul<q>_lane<q>_<su>16): Likewise.
13248 (vmul<q>_n_<su>16): Likewise.
13249 (vmull_lane<q>_<su>16): Likewise.
13250 (vmull_n_<su>16): Likewise.
13251 (vmull_high_lane<q>_<su>16): Likewise.
13252 (vmull_high_n_<su>16): Likewise.
13253 (vqrdmulh<q>_n_s16): Likewise.
13255 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
13257 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
13258 have the correct lane parameter.
13260 2013-09-06 Richard Biener <rguenther@suse.de>
13262 * cfganal.c (control_dependences::~control_dependences):
13263 Properly free all of the vector.
13265 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
13268 * config/i386/i386.c (ix86_conditional_register_usage):
13269 Proper initialize extended SSE registers.
13271 2013-09-06 Jan Hubicka <jh@suse.cz>
13273 PR tree-optimization/58311
13274 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
13276 2013-09-06 Jan Hubicka <jh@suse.cz>
13278 * Makefile.in (tree-sra.o): Update dependencies.
13279 * tree-sra.c: Include ipa-utils.h
13280 (scan_function): Use recursive_call_p.
13281 (has_caller_p): New function.
13282 (cgraph_for_node_and_aliases): Count also callers of aliases.
13284 2013-09-06 Jan Hubicka <jh@suse.cz>
13286 PR middle-end/58094
13287 * cgraph.h (symtab_semantically_equivalent_p): Declare.
13288 * tree-tailcall.c: Include ipa-utils.h.
13289 (find_tail_calls): Use it.
13290 * ipa-pure-const.c (check_call): Likewise.
13291 * ipa-utils.c (recursive_call_p): New function.
13292 * ipa-utils.h (recursive_call_p): Dclare.
13293 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
13294 (symtab_semantically_equivalent_p): New function.
13295 * Makefile.in (tree-tailcall.o): Update dependencies.
13297 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
13299 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
13300 non-inlinable part.
13302 2013-09-06 Richard Biener <rguenther@suse.de>
13304 * lto-streamer.h (lto_global_var_decls): Remove.
13305 * Makefile.in (OBJS): Remove lto-symtab.o.
13306 (lto-symtab.o): Remove.
13307 (GTFILES): Remove lto-symtab.c
13308 * lto-symtab.c: Move to lto/
13310 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13312 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
13313 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
13314 (UNSPEC_FPINT_RINT): New constant definitions.
13315 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
13316 definition with 2 attributes.
13317 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
13318 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
13321 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13323 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
13324 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
13325 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
13326 attribute to "z196_alone".
13327 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
13330 2013-09-06 Richard Biener <rguenther@suse.de>
13332 * basic-block.h (class control_dependences): New.
13333 * tree-ssa-dce.c (control_dependence_map): Remove.
13335 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
13336 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
13337 find_pdom, find_control_dependence, find_all_control_dependences):
13339 (mark_control_dependent_edges_necessary,
13340 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
13341 tree_dce_done, perform_tree_ssa_dce): Adjust.
13342 * cfganal.c (set_control_dependence_map_bit,
13343 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
13344 find_all_control_dependences): Move from tree-ssa-dce.c and
13345 implement as methods of control_dependences class.
13346 (control_dependences::control_dependences): New.
13347 (control_dependences::~control_dependences): Likewise.
13348 (control_dependences::get_edges_dependent_on): Likewise.
13349 (control_dependences::get_edge): Likewise.
13351 2013-09-04 Jan Hubicka <jh@suse.cz>
13353 * tree.c (types_same_for_odr): Drop overactive check.
13354 * ipa-devirt.c (hash_type_name): Likewise.
13356 2013-09-04 Jan Hubicka <jh@suse.cz>
13358 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
13359 (analyze_functions): ... here.
13361 2013-09-04 Jan Hubicka <jh@suse.cz>
13363 PR middle-end/58201
13364 * cgraphunit.c (analyze_functions): Clear AUX fields
13365 after processing; initialize assembler name has.
13367 2013-09-05 Jeff Law <law@redhat.com>
13369 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
13370 from thread_around_empty_block. Record threading path into PATH.
13371 Recurse if threading through the initial block is successful.
13372 (thread_across_edge): Corresponding changes to slightly simplify.
13374 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
13376 * config/aarch64/aarch64.md
13377 (type): Remove frecpe, frecps, frecpx.
13378 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
13379 fix to be a TARGET_SIMD instruction.
13380 (aarch64_frecps): Remove.
13381 * config/aarch64/aarch64-simd.md
13382 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
13383 (aarch64_frecps<mode>): Handle all float/vector of float modes.
13385 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
13386 Sofiane Naci <sofiane.naci@arm.com>
13388 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
13389 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
13390 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
13391 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
13392 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
13393 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
13394 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
13395 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
13396 into "clz, "rbit". Rename "shift" to "shift_imm".
13397 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
13398 changes. Update for attribute changes all occurrences of arlo_* and
13400 * config/arm/arm-fixed.md: Update for attribute changes
13401 all occurrences of arlo_* types.
13402 * config/arm/thumb2.md: Update for attribute changes all occurrences
13404 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
13405 (cortexa7_older_only): Likewise.
13406 (cortexa7_younger): Likewise.
13407 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
13408 (1020alu_shift_op): Likewise.
13409 (1020alu_shift_reg_op): Likewise.
13410 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
13411 (alu_shift_op): Likewise.
13412 (alu_shift_reg_op): Likewise.
13413 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
13414 (11_alu_shift_op): Likewise.
13415 (11_alu_shift_reg_op): Likewise.
13416 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
13417 (9_alu_shift_reg_op): Likewise.
13418 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
13420 (cortex_a15_alu_shift): Likewise.
13421 (cortex_a15_alu_shift_reg): Likewise.
13422 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
13424 (cortex_a5_alu_shift): Likewise.
13425 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
13427 (cortex_a53_alu_shift): Likewise.
13428 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
13430 (cortex_a7_alu_reg): Likewise.
13431 (cortex_a7_alu_shift): Likewise.
13432 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
13434 (cortex_a8_alu_shift): Likewise.
13435 (cortex_a8_alu_shift_reg): Likewise.
13436 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
13437 (cortex_a9_dp_shift): Likewise.
13438 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
13440 * config/arm/cortex-r4.md
13441 (cortex_r4_alu): Update for attribute changes.
13442 (cortex_r4_mov): Likewise.
13443 (cortex_r4_alu_shift_reg): Likewise.
13444 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
13445 (526_alu_shift_op): Likewise.
13446 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
13447 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
13448 (626te_alu_shift_op): Likewise.
13449 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
13450 (726te_alu_shift_op): Likewise.
13451 (726te_alu_shift_reg_op): Likewise.
13452 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
13453 (mp626_alu_shift_op): Likewise.
13454 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
13455 (pj4_alu_conds): Likewise.
13456 (pj4_shift): Likewise.
13457 (pj4_shift_conds): Likewise.
13458 (pj4_alu_shift): Likewise.
13459 (pj4_alu_shift_conds): Likewise.
13460 * config/aarch64/aarch64.md: Update for attribute change
13461 all occurrences of arlo_* and shift* types.
13463 2013-09-05 Mike Stump <mikestump@comcast.net>
13465 * tree.h: Move documentation for tree_function_decl to tree-core.h
13466 with the declaration.
13468 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
13471 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
13472 looking for widest mode.
13474 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
13476 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
13478 2013-09-05 Richard Biener <rguenther@suse.de>
13480 PR tree-optimization/58137
13481 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
13482 Do not create vectors of pointers.
13483 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
13484 types for the components of the vector initializer.
13485 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
13486 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
13488 2013-09-05 Martin Jambor <mjambor@suse.cz>
13490 * ipa-prop.c (remove_described_reference): Accept missing references,
13491 return false if that hppens, otherwise return true.
13492 (cgraph_node_for_jfunc): New function.
13493 (try_decrement_rdesc_refcount): Likewise.
13494 (try_make_edge_direct_simple_call): Use them.
13495 (ipa_edge_removal_hook): Remove references from rdescs.
13496 (ipa_edge_duplication_hook): Clone rdescs and their references
13497 when the new edge has the same caller as the old one.
13498 * cgraph.c (cgraph_resolve_speculation): Remove speculative
13499 reference before removing any edges.
13501 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
13503 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
13505 * thumb2.md (thumb2_storewb_parisi): New pattern.
13507 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
13509 * config/aarch64/aarch64-option-extensions.def: Add
13510 AARCH64_OPT_EXTENSION of 'crc'.
13511 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
13512 (AARCH64_ISA_CRC): Ditto.
13513 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
13514 description of the CRC extension.
13516 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
13518 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
13519 * config/rs6000/linux.h: Ditto.
13520 * alpha/linux.h: Ditto.
13521 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
13522 no_c99_libc_has_function.
13523 * config/c6x/uclinux-elf.h: Ditto.
13524 * config/lm32/uclinux-elf.h: Ditto.
13525 * config/m68k/uclinux.h: Ditto.
13526 * config/moxie/uclinux.h: Ditto.
13527 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
13528 (crisv32-*-linux*, cris-*-linux*): Ditto.
13529 * config/bfin/bfin.c: Include "tm_p.h".
13531 2013-09-05 Richard Biener <rguenther@suse.de>
13533 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
13534 check for a definition without a basic-block.
13536 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
13537 Sofiane Naci <sofiane.naci@arm.com>
13539 * config/aarch64/aarch64.md
13540 (*movti_aarch64): Rename r_2_f and f_2_r.
13541 (*movsf_aarch64): Likewise.
13542 (*movdf_aarch64): Likewise.
13543 (*movtf_aarch64): Likewise.
13544 (aarch64_movdi_<mode>low): Likewise.
13545 (aarch64_movdi_<mode>high): Likewise.
13546 (aarch64_mov<mode>high_di): Likewise.
13547 (aarch64_mov<mode>low_di): Likewise.
13548 (aarch64_movtilow_tilow): Likewise.
13549 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
13550 values to config/arm/types.md
13551 (attribute "conds"): Update for attribute change.
13552 (anddi3_insn): Likewise.
13553 (iordi3_insn): Likewise.
13554 (xordi3_insn): Likewise.
13555 (one_cmpldi2): Likewise.
13556 * config/arm/types.md (type): Add Neon types.
13557 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
13558 use "type" attribute.
13559 (movmisalign<mode>_neon_store): Likewise.
13560 (movmisalign<mode>_neon_load): Likewise.
13561 (vec_set<mode>_internal): Likewise.
13562 (vec_setv2di_internal): Likewise.
13563 (vec_extract<mode>): Likewise.
13564 (vec_extractv2di): Likewise.
13565 (add<mode>3_neon): Likewise.
13566 (adddi3_neon): Likewise.
13567 (sub<mode>3_neon): Likewise.
13568 (subdi3_neon): Likewise.
13569 (mul<mode>3_neon): Likewise.
13570 (mul<mode>3add<mode>_neon): Likewise.
13571 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
13572 (fma<VCVTF:mode>4)): Likewise.
13573 (fma<VCVTF:mode>4_intrinsic): Likewise.
13574 (fmsub<VCVTF:mode>4)): Likewise.
13575 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13576 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13577 (ior<mode>3): Likewise.
13578 (and<mode>3): Likewise.
13579 (anddi3_neon): Likewise.
13580 (orn<mode>3_neon): Likewise.
13581 (orndi3_neon): Likewise.
13582 (bic<mode>3_neon): Likewise.
13583 (bicdi3_neon): Likewise.
13584 (xor<mode>3): Likewise.
13585 (one_cmpl<mode>2): Likewise.
13586 (abs<mode>2): Likewise.
13587 (neg<mode>2): Likewise.
13588 (umin<mode>3_neon): Likewise.
13589 (umax<mode>3_neon): Likewise.
13590 (smin<mode>3_neon): Likewise.
13591 (smax<mode>3_neon): Likewise.
13592 (vashl<mode>3): Likewise.
13593 (vashr<mode>3_imm): Likewise.
13594 (vlshr<mode>3_imm): Likewise.
13595 (ashl<mode>3_signed): Likewise.
13596 (ashl<mode>3_unsigned): Likewise.
13597 (neon_load_count): Likewise.
13598 (ashldi3_neon_noclobber): Likewise.
13599 (signed_shift_di3_neon): Likewise.
13600 (unsigned_shift_di3_neon): Likewise.
13601 (ashrdi3_neon_imm_noclobber): Likewise.
13602 (lshrdi3_neon_imm_noclobber): Likewise.
13603 (widen_ssum<mode>3): Likewise.
13604 (widen_usum<mode>3): Likewise.
13605 (quad_halves_<code>v4si): Likewise.
13606 (quad_halves_<code>v4sf): Likewise.
13607 (quad_halves_<code>v8hi): Likewise.
13608 (quad_halves_<code>v16qi): Likewise.
13609 (reduc_splus_v2di): Likewise.
13610 (neon_vpadd_internal<mode>): Likewise.
13611 (neon_vpsmin<mode>): Likewise.
13612 (neon_vpsmax<mode>): Likewise.
13613 (neon_vpumin<mode>): Likewise.
13614 (neon_vpumax<mode>): Likewise.
13615 (ss_add<mode>_neon): Likewise.
13616 (us_add<mode>_neon): Likewise.
13617 (ss_sub<mode>_neon): Likewise.
13618 (us_sub<mode>_neon): Likewise.
13619 (neon_vadd<mode>_unspec): Likewise.
13620 (neon_vaddl<mode>): Likewise.
13621 (neon_vaddw<mode>): Likewise.
13622 (neon_vhadd<mode>): Likewise.
13623 (neon_vqadd<mode>): Likewise.
13624 (neon_vaddhn<mode>): Likewise.
13625 (neon_vmul<mode>): Likewise.
13626 (neon_vmla<mode>): Likewise.
13627 (neon_vmlal<mode>): Likewise.
13628 (neon_vmls<mode>): Likewise.
13629 (neon_vmlsl<mode>): Likewise.
13630 (neon_vqdmulh<mode>): Likewise.
13631 (neon_vqdmlal<mode>): Likewise.
13632 (neon_vqdmlsl<mode>): Likewise.
13633 (neon_vmull<mode>): Likewise.
13634 (neon_vqdmull<mode>): Likewise.
13635 (neon_vsub<mode>_unspec): Likewise.
13636 (neon_vsubl<mode>): Likewise.
13637 (neon_vsubw<mode>): Likewise.
13638 (neon_vqsub<mode>): Likewise.
13639 (neon_vhsub<mode>): Likewise.
13640 (neon_vsubhn<mode>): Likewise.
13641 (neon_vceq<mode>): Likewise.
13642 (neon_vcge<mode>): Likewise.
13643 (neon_vcgeu<mode>): Likewise.
13644 (neon_vcgt<mode>): Likewise.
13645 (neon_vcgtu<mode>): Likewise.
13646 (neon_vcle<mode>): Likewise.
13647 (neon_vclt<mode>): Likewise.
13648 (neon_vcage<mode>): Likewise.
13649 (neon_vcagt<mode>): Likewise.
13650 (neon_vtst<mode>): Likewise.
13651 (neon_vabd<mode>): Likewise.
13652 (neon_vabdl<mode>): Likewise.
13653 (neon_vaba<mode>): Likewise.
13654 (neon_vabal<mode>): Likewise.
13655 (neon_vmax<mode>): Likewise.
13656 (neon_vmin<mode>): Likewise.
13657 (neon_vpaddl<mode>): Likewise.
13658 (neon_vpadal<mode>): Likewise.
13659 (neon_vpmax<mode>): Likewise.
13660 (neon_vpmin<mode>): Likewise.
13661 (neon_vrecps<mode>): Likewise.
13662 (neon_vrsqrts<mode>): Likewise.
13663 (neon_vqabs<mode>): Likewise.
13664 (neon_vqneg<mode>): Likewise.
13665 (neon_vcls<mode>): Likewise.
13666 (clz<mode>2): Likewise.
13667 (popcount<mode>2): Likewise.
13668 (neon_vrecpe): Likewise.
13669 (neon_vrsqrte): Likewise.
13670 (neon_vget_lane<mode>_sext_internal): Likewise.
13671 (neon_vget_lane<mode>_zext_internal): Likewise.
13672 (neon_vdup_n<mode>): Likewise.
13673 (neon_vdup_nv2di): Likewise.
13674 (neon_vdpu_lane<mode>_internal): Likewise.
13675 (neon_vswp<mode>): Likewise.
13676 (float<mode><V_cvtto>2): Likewise.
13677 (floatuns<mode><V_cvtto>2): Likewise.
13678 (fix_trunc<mode><V_cvtto>)2): Likewise
13679 (fixuns_trunc<mode><V_cvtto)2): Likewise.
13680 (neon_vcvt<mode>): Likewise.
13681 (neon_vcvtv4sfv4hf): Likewise.
13682 (neon_vcvtv4hfv4sf): Likewise.
13683 (neon_vcvt_n<mode>): Likewise.
13684 (neon_vmovn<mode>): Likewise.
13685 (neon_vqmovn<mode>): Likewise.
13686 (neon_vqmovun<mode>): Likewise.
13687 (neon_vmovl<mode>): Likewise.
13688 (neon_vmul_lane<mode>): Likewise.
13689 (neon_vmull_lane<mode>): Likewise.
13690 (neon_vqdmull_lane<mode>): Likewise.
13691 (neon_vqdmulh_lane<mode>): Likewise.
13692 (neon_vmla_lane<mode>): Likewise.
13693 (neon_vmlal_lane<mode>): Likewise.
13694 (neon_vqdmlal_lane<mode>): Likewise.
13695 (neon_vmls_lane<mode>): Likewise.
13696 (neon_vmlsl_lane<mode>): Likewise.
13697 (neon_vqdmlsl_lane<mode>): Likewise.
13698 (neon_vext<mode>): Likewise.
13699 (neon_vrev64<mode>): Likewise.
13700 (neon_vrev32<mode>): Likewise.
13701 (neon_vrev16<mode>): Likewise.
13702 (neon_vbsl<mode>_internal): Likewise.
13703 (neon_vshl<mode>): Likewise.
13704 (neon_vqshl<mode>): Likewise.
13705 (neon_vshr_n<mode>): Likewise.
13706 (neon_vshrn_n<mode>): Likewise.
13707 (neon_vqshrn_n<mode>): Likewise.
13708 (neon_vqshrun_n<mode>): Likewise.
13709 (neon_vshl_n<mode>): Likewise.
13710 (neon_vqshl_n<mode>): Likewise.
13711 (neon_vqshlu_n<mode>): Likewise.
13712 (neon_vshll_n<mode>): Likewise.
13713 (neon_vsra_n<mode>): Likewise.
13714 (neon_vsri_n<mode>): Likewise.
13715 (neon_vsli_n<mode>): Likewise.
13716 (neon_vtbl1v8qi): Likewise.
13717 (neon_vtbl2v8qi): Likewise.
13718 (neon_vtbl3v8qi): Likewise.
13719 (neon_vtbl4v8qi): Likewise.
13720 (neon_vtbx1v8qi): Likewise.
13721 (neon_vtbx2v8qi): Likewise.
13722 (neon_vtbx3v8qi): Likewise.
13723 (neon_vtbx4v8qi): Likewise.
13724 (neon_vtrn<mode>_internal): Likewise.
13725 (neon_vzip<mode>_internal): Likewise.
13726 (neon_vuzp<mode>_internal): Likewise.
13727 (neon_vld1<mode>): Likewise.
13728 (neon_vld1_lane<mode>): Likewise.
13729 (neon_vld1_dup<mode>): Likewise.
13730 (neon_vld1_dupv2di): Likewise.
13731 (neon_vst1<mode>): Likewise.
13732 (neon_vst1_lane<mode>): Likewise.
13733 (neon_vld2<mode>): Likewise.
13734 (neon_vld2_lane<mode>): Likewise.
13735 (neon_vld2_dup<mode>): Likewise.
13736 (neon_vst2<mode>): Likewise.
13737 (neon_vst2_lane<mode>): Likewise.
13738 (neon_vld3<mode>): Likewise.
13739 (neon_vld3qa<mode>): Likewise.
13740 (neon_vld3qb<mode>): Likewise.
13741 (neon_vld3_lane<mode>): Likewise.
13742 (neon_vld3_dup<mode>): Likewise.
13743 (neon_vst3<mode>): Likewise.
13744 (neon_vst3qa<mode>): Likewise.
13745 (neon_vst3qb<mode>): Likewise.
13746 (neon_vst3_lane<mode>): Likewise.
13747 (neon_vld4<mode>): Likewise.
13748 (neon_vld4qa<mode>): Likewise.
13749 (neon_vld4qb<mode>): Likewise.
13750 (neon_vld4_lane<mode>): Likewise.
13751 (neon_vld4_dup<mode>): Likewise.
13752 (neon_vst4<mode>): Likewise.
13753 (neon_vst4qa<mode>): Likewise.
13754 (neon_vst4qb<mode>): Likewise.
13755 (neon_vst4_lane<mode>): Likewise.
13756 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13757 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13758 (neon_vec_<US>mult_lo_<mode>): Likewise.
13759 (neon_vec_<US>mult_hi_<mode>): Likewise.
13760 (neon_vec_<US>shiftl_<mode>): Likewise.
13761 (neon_unpack<US>_<mode>): Likewise.
13762 (neon_vec_<US>mult_<mode>): Likewise.
13763 (vec_pack_trunc_<mode>): Likewise.
13764 (neon_vec_pack_trunk_<mode>): Likewise.
13765 (neon_vabd<mode>_2): Likewise.
13766 (neon_vabd<mode>_3): Likewise.
13767 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
13768 (thumb2_movsi_vfp): Likewise.
13769 (movdi_vfp): Likewise.
13770 (movdi_vfp_cortexa8): Likewise.
13771 (movhf_vfp_neon): Likewise.
13772 (movhf_vfp): Likewiwse.
13773 (movsf_vfp): Likewiwse.
13774 (thumb2_movsf_vfp): Likewiwse.
13775 (movdf_vfp): Likewise.
13776 (thumb2_movdf_vfp): Likewise.
13777 (movsfcc_vfp): Likewise.
13778 (thumb2_movsfcc_vfp): Likewise.
13779 (movdfcc_vfp): Likewise.
13780 (thumb2_movdfcc_vfp): Likewise.
13781 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
13782 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
13783 (v10_v2c): Likewise.
13784 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
13786 (cortex_a15_neon_int_2): Likewise.
13787 (cortex_a15_neon_int_3): Likewise.
13788 (cortex_a15_neon_int_4): Likewise.
13789 (cortex_a15_neon_int_5): Likewise.
13790 (cortex_a15_neon_vqneg_vqabs): Likewise.
13791 (cortex_a15_neon_vmov): Likewise.
13792 (cortex_a15_neon_vaba): Likewise.
13793 (cortex_a15_neon_vaba_qqq): Likewise.
13794 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13795 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13796 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
13797 scalar_64_32_long_scalar): Likewise.
13798 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13799 (cortex_a15_neon_mla_qqq_8_16): Likewise.
13800 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
13801 lotype_qdd_64_32_long): Likewise.
13802 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13803 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13804 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
13805 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13806 (cortex_a15_neon_shift_1): Likewise.
13807 (cortex_a15_neon_shift_2): Likewise.
13808 (cortex_a15_neon_shift_3): Likewise.
13809 (cortex_a15_neon_vshl_ddd): Likewise.
13810 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13811 (cortex_a15_neon_vsra_vrsra): Likewise.
13812 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
13813 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
13814 (cortex_a15_neon_fp_vmul_ddd): Likewise.
13815 (cortex_a15_neon_fp_vmul_qqd): Likewise.
13816 (cortex_a15_neon_fp_vmla_ddd): Likewise.
13817 (cortex_a15_neon_fp_vmla_qqq): Likewise.
13818 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13819 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13820 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13821 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13822 (cortex_a15_neon_bp_simple): Likewise.
13823 (cortex_a15_neon_bp_2cycle): Likewise.
13824 (cortex_a15_neon_bp_3cycle): Likewise.
13825 (cortex_a15_neon_vld1_1_2_regs): Likewise.
13826 (cortex_a15_neon_vld1_3_4_regs): Likewise.
13827 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13828 (cortex_a15_neon_vld2_4_regs): Likewise.
13829 (cortex_a15_neon_vld3_vld4): Likewise.
13830 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13831 (cortex_a15_neon_vst1_3_4_regs): Likewise.
13832 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
13833 (cortex_a15_neon_vst3_vst4): Likewise.
13834 (cortex_a15_neon_vld1_vld2_lane): Likewise.
13835 (cortex_a15_neon_vld3_vld4_lane" 10
13836 (cortex_a15_neon_vst1_vst2_lane): Likewise.
13837 (cortex_a15_neon_vst3_vst4_lane): Likewise.
13838 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
13839 (cortex_a15_neon_ldm_2): Likewise.0
13840 (cortex_a15_neon_stm_2): Likewise.
13841 (cortex_a15_neon_mcr): Likewise.
13842 (cortex_a15_neon_mcr_2_mcrr): Likewise.
13843 (cortex_a15_neon_mrc): Likewise.
13844 (cortex_a15_neon_mrrc): Likewise.
13845 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
13847 (cortex_a15_alu_shift): Likewise.
13848 (cortex_a15_alu_shift_reg): Likewise.
13849 (cortex_a15_mult32): Likewise.
13850 (cortex_a15_mult64): Likewise.
13851 (cortex_a15_block): Likewise.
13852 (cortex_a15_branch): Likewise.
13853 (cortex_a15_load1): Likewise.
13854 (cortex_a15_load3): Likewise.
13855 (cortex_a15_store1): Likewise.
13856 (cortex_a15_store3): Likewise.
13857 (cortex_a15_call): Likewise.
13858 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
13859 (cortex_a5_f2r): Likewise.
13860 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
13862 (cortex_a53_f2r): Likewise.
13863 * config/arm/cortex-a7.md
13864 (cortex_a7_branch): Update for attribute change.
13865 (cortex_a7_call): Likewise.
13866 (cortex_a7_alu_imm): Likewise.
13867 (cortex_a7_alu_reg): Likewise.
13868 (cortex_a7_alu_shift): Likewise.
13869 (cortex_a7_mul): Likewise.
13870 (cortex_a7_load1): Likewise.
13871 (cortex_a7_store1): Likewise.
13872 (cortex_a7_load2): Likewise.
13873 (cortex_a7_store2): Likewise.
13874 (cortex_a7_load3): Likewise.
13875 (cortex_a7_store3): Likewise.
13876 (cortex_a7_load4): Likewise.
13877 (cortex_a7_store4): Likewise.
13878 (cortex_a7_fpalu): Likewise.
13879 (cortex_a7_fconst): Likewise.
13880 (cortex_a7_fpmuls): Likewise.
13881 (cortex_a7_neon_mul): Likewise.
13882 (cortex_a7_fpmacs): Likewise.
13883 (cortex_a7_neon_mla: Likewise.
13884 (cortex_a7_fpmuld: Likewise.
13885 (cortex_a7_fpmacd: Likewise.
13886 (cortex_a7_fpfmad: Likewise.
13887 (cortex_a7_fdivs: Likewise.
13888 (cortex_a7_fdivd: Likewise.
13889 (cortex_a7_r2f: Likewise.
13890 (cortex_a7_f2r: Likewise.
13891 (cortex_a7_f_flags: Likewise.
13892 (cortex_a7_f_loads: Likewise.
13893 (cortex_a7_f_loadd: Likewise.
13894 (cortex_a7_f_stores: Likewise.
13895 (cortex_a7_f_stored: Likewise.
13896 (cortex_a7_neon): Likewise.
13897 * config/arm/cortex-a8-neon.md
13898 (cortex_a8_neon_mrc): Update for attribute change.
13899 (cortex_a8_neon_mrrc): Likewise.
13900 (cortex_a8_neon_int_1): Likewise.
13901 (cortex_a8_neon_int_2): Likewise.
13902 (cortex_a8_neon_int_3): Likewise.
13903 (cortex_a8_neon_int_4): Likewise.
13904 (cortex_a8_neon_int_5): Likewise.
13905 (cortex_a8_neon_vqneg_vqabs): Likewise.
13906 (cortex_a8_neon_vmov): Likewise.
13907 (cortex_a8_neon_vaba): Likewise.
13908 (cortex_a8_neon_vaba_qqq): Likewise.
13909 (cortex_a8_neon_vsma): Likewise.
13910 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13911 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13912 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
13913 long_scalar): Likewise.
13914 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13915 (cortex_a8_neon_mla_qqq_8_16): Likewise.
13916 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
13917 long_scalar_qdd_64_32_long): Likewise.
13918 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13919 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13920 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
13921 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13922 (cortex_a8_neon_shift_1): Likewise.
13923 (cortex_a8_neon_shift_2): Likewise.
13924 (cortex_a8_neon_shift_3): Likewise.
13925 (cortex_a8_neon_vshl_ddd): Likewise.
13926 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13927 (cortex_a8_neon_vsra_vrsra): Likewise.
13928 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
13929 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
13930 (cortex_a8_neon_fp_vsum): Likewise.
13931 (cortex_a8_neon_fp_vmul_ddd): Likewise.
13932 (cortex_a8_neon_fp_vmul_qqd): Likewise.
13933 (cortex_a8_neon_fp_vmla_ddd): Likewise.
13934 (cortex_a8_neon_fp_vmla_qqq): Likewise.
13935 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
13936 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
13937 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13938 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13939 (cortex_a8_neon_bp_simple): Likewise.
13940 (cortex_a8_neon_bp_2cycle): Likewise.
13941 (cortex_a8_neon_bp_3cycle): Likewise.
13942 (cortex_a8_neon_ldr): Likewise.
13943 (cortex_a8_neon_str): Likewise.
13944 (cortex_a8_neon_vld1_1_2_regs): Likewise.
13945 (cortex_a8_neon_vld1_3_4_regs): Likewise.
13946 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13947 (cortex_a8_neon_vld2_4_regs): Likewise.
13948 (cortex_a8_neon_vld3_vld4): Likewise.
13949 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13950 (cortex_a8_neon_vst1_3_4_regs): Likewise.
13951 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
13952 (cortex_a8_neon_vst3_vst4): Likewise.
13953 (cortex_a8_neon_vld1_vld2_lane): Likewise.
13954 (cortex_a8_neon_vld3_vld4_lane): Likewise.
13955 (cortex_a8_neon_vst1_vst2_lane): Likewise.
13956 (cortex_a8_neon_vst3_vst4_lane): Likewise.
13957 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
13958 (cortex_a8_neon_mcr): Likewise.
13959 (cortex_a8_neon_mcr_2_mcrr): Likewise.
13960 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
13961 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
13963 (ca9_neon_mrrc): Likewise.
13964 (cortex_a9_neon_int_1): Likewise.
13965 (cortex_a9_neon_int_2): Likewise.
13966 (cortex_a9_neon_int_3): Likewise.
13967 (cortex_a9_neon_int_4): Likewise.
13968 (cortex_a9_neon_int_5): Likewise.
13969 (cortex_a9_neon_vqneg_vqabs): Likewise.
13970 (cortex_a9_neon_vmov): Likewise.
13971 (cortex_a9_neon_vaba): Likewise.
13972 (cortex_a9_neon_vaba_qqq): Likewise.
13973 (cortex_a9_neon_vsma): Likewise.
13974 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13975 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13976 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
13977 long_scalar): Likewise.
13978 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13979 (cortex_a9_neon_mla_qqq_8_16): Likewise.
13980 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
13981 long_scalar_qdd_64_32_long): Likewise.
13982 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13983 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13984 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
13985 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13986 (cortex_a9_neon_shift_1): Likewise.
13987 (cortex_a9_neon_shift_2): Likewise.
13988 (cortex_a9_neon_shift_3): Likewise.
13989 (cortex_a9_neon_vshl_ddd): Likewise.
13990 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13991 (cortex_a9_neon_vsra_vrsra): Likewise.
13992 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
13993 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
13994 (cortex_a9_neon_fp_vsum): Likewise.
13995 (cortex_a9_neon_fp_vmul_ddd): Likewise.
13996 (cortex_a9_neon_fp_vmul_qqd): Likewise.
13997 (cortex_a9_neon_fp_vmla_ddd): Likewise.
13998 (cortex_a9_neon_fp_vmla_qqq): Likewise.
13999 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
14000 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
14001 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14002 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14003 (cortex_a9_neon_bp_simple): Likewise.
14004 (cortex_a9_neon_bp_2cycle): Likewise.
14005 (cortex_a9_neon_bp_3cycle): Likewise.
14006 (cortex_a9_neon_ldr): Likewise.
14007 (cortex_a9_neon_str): Likewise.
14008 (cortex_a9_neon_vld1_1_2_regs): Likewise.
14009 (cortex_a9_neon_vld1_3_4_regs): Likewise.
14010 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14011 (cortex_a9_neon_vld2_4_regs): Likewise.
14012 (cortex_a9_neon_vld3_vld4): Likewise.
14013 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14014 (cortex_a9_neon_vst1_3_4_regs): Likewise.
14015 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
14016 (cortex_a9_neon_vst3_vst4): Likewise.
14017 (cortex_a9_neon_vld1_vld2_lane): Likewise.
14018 (cortex_a9_neon_vld3_vld4_lane): Likewise.
14019 (cortex_a9_neon_vst1_vst2_lane): Likewise.
14020 (cortex_a9_neon_vst3_vst4_lane): Likewise.
14021 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
14022 (cortex_a9_neon_mcr): Likewise.
14023 (cortex_a9_neon_mcr_2_mcrr): Likewise.
14024 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
14025 (cortex_a9_fps): Likewise.
14026 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
14028 (cortex_m4_fmuls): Likewise.
14029 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
14031 (cortex_r4_mrc): Likewise.
14032 * config/arm/iterators.md: Update comment referring to neon_type.
14033 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
14034 (iwmmxt_movsi_insn): Likewise.
14035 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
14037 (pj4_core_to_vfp): Likewise.
14038 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
14040 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
14041 (vfp_fstore): Likewise.
14042 * doc/md.texi: Change references to neon_type to refer to type.
14044 2013-09-04 Dodji Seketeli <dodji@redhat.com>
14046 * tree.h (DECL_BUILT_IN): Fix typo in comment.
14048 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
14050 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
14051 lglobl if not weak.
14053 2013-09-04 Easwaran Raman <eraman@google.com>
14055 PR middle-end/57370
14056 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
14057 (build_and_add_sum): Use it.
14058 (appears_later_in_bb): Simplify code.
14060 2013-09-04 Teresa Johnson <tejohnson@google.com>
14062 * dumpfile.c (dump_finish): Don't close stderr/stdout.
14064 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
14066 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
14068 2013-09-04 Jan Hubicka <jh@suse.cz>
14070 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
14071 * ipa-devirt.c: Include diganostic.h
14072 (odr_type_d): Add types and types_set.
14073 (hash_type_name): Work for types with vtables during LTO.
14074 (odr_hasher::remove): Fix comment; destroy types_set.
14075 (add_type_duplicate): New function,
14076 (get_odr_type): Use it.
14077 (dump_type_inheritance_graph): Dump type duplicates.
14078 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
14080 * tree.c (types_same_for_odr): Give exact answers on types with
14083 2013-09-04 Dodji Seketeli <dodji@redhat.com>
14085 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
14086 explaining their differences.
14088 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
14090 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
14092 2013-09-03 Jeff Law <law@redhat.com>
14094 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
14095 when not threading through a joiner block. Pass joiner/no joiner
14096 state to register_jump_thread.
14097 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
14098 state from argument rather than implying on path length.
14099 Dump the entire jump thread path into debugging dump.
14100 * tree-flow.h (register_jump_thread): Update prototype.
14102 2013-08-29 Xinliang David Li <davidxl@google.com>
14104 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14105 Remove a trivial gcc_assert.
14107 2013-08-29 Xinliang David Li <davidxl@google.com>
14109 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
14110 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
14111 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14112 Delay base decl alignment adjustment.
14113 * tree-vectorizer.c (vect_destroy_datarefs): New function.
14114 * tree-vectorizer.h: New data structure.
14115 (set_dr_misalignment): New function.
14116 (dr_misalignment): Ditto.
14117 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
14118 (vectorizable_load): Ditto.
14119 (ensure_base_align): New function.
14120 (vectorize_loops): Add dbg_cnt support.
14121 (execute_vect_slp): Ditto.
14122 * dbgcnt.def: New debug counter.
14123 * Makefile: New dependency.
14125 2013-09-03 Meador Inge <meadori@codesourcery.com>
14129 2013-08-30 Meador Inge <meadori@codesourcery.com>
14131 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
14133 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
14135 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
14136 function descriptor.
14138 2013-09-03 Richard Biener <rguenther@suse.de>
14140 * tree-affine.c (add_elt_to_tree): Fix association issue,
14141 avoid useless converts and make sure to always return a
14142 properly typed result.
14144 2013-09-03 Richard Biener <rguenther@suse.de>
14146 PR middle-end/57656
14147 * fold-const.c (negate_expr_p): Fix division case.
14148 (negate_expr): Likewise.
14150 2013-09-03 Richard Biener <rguenther@suse.de>
14153 * tree-streamer-out.c: Include tm.h.
14154 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
14156 2013-09-03 Jan Hubicka <jh@suse.cz>
14158 * tree-profile.c (tree_profiling): Cleanup CFG when done.
14160 2013-09-03 Alan Modra <amodra@gmail.com>
14162 * config.gcc (powerpc*-*-linux*): Add support for little-endian
14163 multilibs to big-endian target and vice versa.
14164 * config/rs6000/t-linux64: Use := assignment on all vars.
14165 (MULTILIB_EXTRA_OPTS): Remove fPIC.
14166 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
14167 * config/rs6000/t-linux64le: New file.
14168 * config/rs6000/t-linux64bele: New file.
14169 * config/rs6000/t-linux64lebe: New file.
14171 2013-09-02 Jan Hubicka <jh@suse.cz>
14173 * ipa-inline-transform.c (inline_transform): Do not
14174 optimize_inline_calls when not optimizing.
14176 2013-09-02 Jan Hubicka <jh@suse.cz>
14178 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
14179 duplicated nodes for assembler names.
14180 * symtab.c (symtab_unregister_node): Do not attempt to unlink
14181 hard registers from assembler name hash.
14183 2013-09-02 Jan Hubicka <jh@suse.cz>
14185 * ipa-split.c (execute_split_functions): Split externally visible
14186 functions called once.
14188 2013-09-02 Martin Jambor <mjambor@suse.cz>
14191 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
14192 linked list. When finding the correct duplicate, also consider also
14193 the caller in additon to its inlined_to node.
14195 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
14197 * config/aarch64/aarch64-simd-builtins.def
14198 (dup_lane_scalar): Remove.
14199 * config/aarch64/aarch64-simd.md
14200 (aarch64_simd_dup): Add 'w->w' alternative.
14201 (aarch64_dup_lane<mode>): Allow for VALL.
14202 (aarch64_dup_lane_scalar<mode>): Remove.
14203 (aarch64_dup_lane_<vswap_width_name><mode>): New.
14204 (aarch64_get_lane_signed<mode>): Add w->w altenative.
14205 (aarch64_get_lane_unsigned<mode>): Likewise.
14206 (aarch64_get_lane<mode>): Likewise.
14207 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
14208 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
14209 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
14210 (VCON): Change container of V2SF.
14211 (vswap_width_name): Likewise.
14212 * config/aarch64/arm_neon.h
14213 (__aarch64_vdup_lane_any): New.
14214 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
14215 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
14216 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
14218 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
14220 PR middle-end/56382
14221 * expr.c (emit_move_complex): Do not move complex FP values as parts if
14222 the source or the destination is a single hard register.
14224 2013-09-02 Richard Biener <rguenther@suse.de>
14226 PR middle-end/57511
14227 * tree-scalar-evolution.c (instantiate_scev_name): Allow
14230 2013-09-02 Richard Biener <rguenther@suse.de>
14232 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
14233 arithmetic to sizetype.
14235 2013-09-02 Bin Cheng <bin.cheng@arm.com>
14237 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
14238 Find auto-increment use both before and after candidate.
14240 2013-09-02 Marek Polacek <polacek@redhat.com>
14242 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
14244 2013-09-01 Jan Hubicka <jh@suse.cz>
14246 * Makefile.in: Add ipa-profile.o
14247 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
14248 * cgraph.c (struct cgraph_propagate_frequency_data,
14249 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
14250 ipa-profile.c; replace cgraph_ by ipa_ prefix.
14251 * cgraph.h (cgraph_propagate_frequency): Remove.
14252 * ipa-inline-analysis.c: Include ipa-utils.h;
14253 drop duplicated cfgloop.h.
14254 (inline_update_callee_summaries): Update.
14255 * ipa-profile.c: New file.
14256 * ipa-utils.h (ipa_propagate_frequency): Declare.
14257 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
14258 data-streamer.h, value-prof.h.
14259 (symtab_remove_unreachable_nodes): Update profile.
14260 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
14261 account_time_size, cmp_counts, dump_histogram,
14262 ipa_profile_generate_summary, ipa_profile_write_summary,
14263 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
14264 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
14265 Move to ipa-profile.c.
14267 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
14269 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
14271 2013-09-01 Jan Hubicka <jh@suse.cz>
14273 * common.opt (fdevirtualize-speculatively): New function.
14274 * invoke.texi (fdevirtualize-speculatively): Document.
14275 * ipa-devirt.c: Include ipa-inline.h
14276 (likely_target_p): New function.
14277 (ipa_devirt): New function.
14278 (gate_ipa_devirt): New function.
14279 (pass_data_ipa_devirt): New static var.
14280 (pass_ipa_devirt): Likewise.
14281 (make_pass_ipa_devirt): New function.
14282 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
14283 (common_handle_option): Disable devirtualization when
14284 value range profiling is available.
14285 * passes.def (pass_ipa_devirt): Add.
14286 * timever.def (TV_IPA_DEVIRT): New timevar.
14287 * tree-pass.h (make_pass_ipa_devirt):
14289 2013-09-01 Iain Sandoe <iain@codesourcery.com>
14291 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
14292 include sanitize(undefined).
14294 2013-08-31 Diego Novillo <dnovillo@google.com>
14296 * Makefile.in (TREE_CORE_H): Define.
14298 (GTFILES): Add tree-core.h.
14299 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
14301 * tree-core.h: New file.
14302 Move all data structures, enum, typedefs, global
14303 declarations and constants from ...
14304 * tree.h: ... here.
14306 2013-08-31 Jan Hubicka <jh@suse.cz>
14308 * bulitins.c (expand_builtin): Do not early exit for gcov
14309 instrumented functions.
14311 2013-08-31 Marek Polacek <polacek@redhat.com>
14313 * ubsan.c: Include tm_p.h.
14315 2013-08-31 Jan Hubicka <jh@suse.cz>
14317 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
14320 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
14321 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
14322 * tree-cfg.c (verify_gimple_label): ... here.
14323 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
14324 (ipa_merge_profiles): New function.
14325 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
14326 (lto_input_function_body): Likewise.
14327 * ipa-utils.h (ipa_merge_profiles): Declare.
14328 * lto-streamer.h (lto_input_function_body): Update prototype.
14329 (emit_label_in_global_context_p): Remove.
14330 * lto-symtab.c: Include ipa-utils.h
14331 (lto_cgraph_replace_node): Use ipa_merge_profiles.
14333 2013-08-31 Jan Hubicka <jh@suse.cz>
14335 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
14337 2013-08-31 Jan Hubicka <jh@suse.cz>
14339 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
14341 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
14343 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
14344 "cmp" RTX before signed_comparison_operator check to account
14345 for "code" changes.
14347 2013-08-30 Jan Hubicka <jh@suse.cz>
14349 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
14350 (detect_type_change_1): Rename to ...
14351 (detect_type_change): ... this one; early return on non-polymorphic
14353 (detect_type_change_ssa): Add comp_type parameter; update
14354 use of detect_type_change.
14355 (compute_complex_assign_jump_func): Add param_type parameter;
14356 update use of detect_type_change_ssa.
14357 (compute_complex_ancestor_jump_func): Likewise.
14358 (ipa_get_callee_param_type): New function.
14359 (ipa_compute_jump_functions_for_edge): Compute parameter type;
14360 update calls to the jump function computation functions.
14362 2013-08-30 Teresa Johnson <tejohnson@google.com>
14363 Steven Bosscher <steven@gcc.gnu.org>
14365 * cfgrtl.c (fixup_new_cold_bb): New routine.
14366 (commit_edge_insertions): Invoke fixup_partitions.
14367 (find_partition_fixes): New routine.
14368 (fixup_partitions): Ditto.
14369 (verify_hot_cold_block_grouping): Update comments.
14370 (rtl_verify_edges): Invoke find_partition_fixes.
14371 (rtl_verify_bb_pointers): Update comments.
14372 (rtl_verify_bb_layout): Ditto.
14373 * basic-block.h (probably_never_executed_edge_p): Declare.
14374 (fixup_partitions): Ditto.
14375 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
14376 * bb-reorder.c (sanitize_hot_paths): New function.
14377 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
14378 sanitize_hot_paths.
14379 * predict.c (probably_never_executed_edge_p): New routine.
14380 * cfg.c (check_bb_profile): Add partition insanity warnings.
14382 2013-08-30 Meador Inge <meadori@codesourcery.com>
14384 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
14386 2013-08-30 Marek Polacek <polacek@redhat.com>
14388 * Makefile.in (ubsan.o): Add.
14389 (c-family/c-ubsan.o): Add.
14390 (builtins.o): Add ubsan.h dependency.
14391 * ubsan.h: New file.
14392 * ubsan.c: New file.
14393 * common.opt: Add -fsanitize=undefined option.
14394 (flag_sanitize): Add variable.
14395 (fsanitize=): Add option. Add Driver.
14396 (fsanitize=thread): Remove option.
14397 (fsanitize=address): Likewise.
14398 (static-libubsan): New option.
14399 * doc/invoke.texi: Document the new flag and -static-libubsan.
14400 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
14401 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
14402 * builtin-attrs.def (ATTR_COLD): Define.
14403 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
14404 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
14405 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
14406 * flag-types.h (sanitize_code): New enum.
14407 * opts.c (common_handle_option): Parse command line arguments
14408 of -fsanitize=. Add -fsanitize=unreachable option.
14409 * varasm.c (get_variable_section): Adjust.
14410 (assemble_noswitch_variable): Likewise.
14411 (assemble_variable): Likewise.
14412 (output_constant_def_contents): Likewise.
14413 (categorize_decl_for_section): Likewise.
14414 (place_block_symbol): Likewise.
14415 (output_object_block): Likewise.
14416 * builtins.def: Likewise.
14417 * toplev.c (compile_file): Likewise.
14418 (process_options): Likewise.
14419 * cppbuiltin.c: Likewise.
14420 * tsan.c (tsan_pass): Likewise.
14421 (tsan_gate): Likewise.
14422 (tsan_gate_O0): Likewise.
14423 * cfgexpand.c (partition_stack_vars): Likewise.
14424 (expand_stack_vars): Likewise.
14425 (defer_stack_allocation): Likewise.
14426 (expand_used_vars): Likewise.
14427 * cfgcleanup.c (old_insns_match_p): Likewise.
14428 * asan.c (asan_finish_file): Likewise.
14429 (asan_instrument): Likewise.
14430 (gate_asan): Likewise.
14431 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
14432 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
14433 (asan_global_struct): Use pointer_sized_int_node instead
14434 calling build_nonstandard_integer_type.
14435 (initialize_sanitizer_builtins): Likewise.
14436 (asan_finish_file): Likewise.
14437 * gcc.c: Document %{%:function(args):X}.
14438 (static_spec_functions): Add sanitize.
14439 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
14440 store funcval != NULL there.
14441 (do_spec_1): Adjust handle_spec_function caller.
14442 (handle_braces): Allow %:function(args) as condition.
14443 (sanitize_spec_function): New function.
14444 (ADD_STATIC_LIBUBSAN_LIBS): Define.
14445 (LIBUBSAN_SPEC): Likewise.
14446 (LIBUBSAN_EARLY_SPEC): Likewise.
14447 (SANITIZER_SPEC): Handle libubsan.
14448 (SANITIZER_EARLY_SPEC): Likewise.
14449 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
14450 instead of fsanitize=address.
14451 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
14452 instead of fsanitize=address*.
14453 * builtins.c: Include ubsan.h.
14454 (fold_builtin_0): Instrument __builtin_unreachable.
14455 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
14456 instead of flag_asan.
14457 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
14458 (pointer_sized_int_node): Define.
14459 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
14461 2013-08-30 Mike Stump <mikestump@comcast.net>
14463 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
14466 2013-08-29 Jan Hubicka <jh@suse.cz>
14468 * cgraph.c (cgraph_function_body_availability): Handle weakref
14470 * passes.def: Remove pass_fixup_cfg.
14471 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
14472 track when we need to remove functions.
14473 (gate_ipa_inline): Execute inlining always; add comment why.
14474 (pass_data_ipa_inline): Remove TODO_remove_functions.
14475 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
14476 do not produce summaries.
14477 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
14478 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
14479 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
14480 constant pool and vtable.
14482 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
14484 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
14485 New arm_neon.h's internal macros to specify 64-bit constants.
14486 Avoid using stdint.h's macros.
14488 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
14490 * recog.c (verify_changes): Verify that changes[i].old is non-zero
14491 before applying REG_P.
14493 2013-08-30 Jakub Jelinek <jakub@redhat.com>
14495 PR tree-optimization/58277
14496 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
14497 after seeing too many stmts with vdef in between dombb and current
14498 bb, invalidate everything.
14500 2013-08-30 Richard Biener <rguenther@suse.de>
14502 * fold-const.c (fold_single_bit_test): Fix overflow test.
14504 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
14506 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
14507 and which can live in a register, always retrieve the value on entry.
14508 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
14509 passed by invisible reference specially.
14510 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
14511 (vt_add_function_parameter): Correctly deal with a parameter passed by
14512 invisible reference.
14514 2013-08-30 Jan Hubicka <jh@suse.cz>
14516 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
14518 2013-08-30 Richard Biener <rguenther@suse.de>
14520 PR tree-optimization/58228
14521 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
14522 allow invariant loads in nested loop vectorization.
14524 2013-08-30 Richard Biener <rguenther@suse.de>
14526 PR tree-optimization/58223
14527 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
14528 (has_anti_or_output_dependence): ... this and adjust to also
14529 look for output dependences.
14530 (mark_nodes_having_upstream_mem_writes): Adjust.
14531 (rdg_flag_uses): Likewise.
14533 2013-08-30 Richard Biener <rguenther@suse.de>
14535 PR tree-optimization/58010
14536 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
14537 assert that we have a loop-closed PHI.
14539 2013-08-29 Jan Hubicka <jh@suse.cz>
14541 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
14542 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
14543 * lto-section-in.c (lto_free_function_in_decl_state): New function.
14544 (lto_free_function_in_decl_state_for_node): New function.
14546 2013-08-29 Xinliang David Li <davidxl@google.com>
14548 * loop-unroll.c (report_unroll_peel): Minor message change.
14549 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
14550 Emit alignment peeling message with default -fopt-info.
14551 (vect_loop_versioning): Emit loop version info message.
14552 * tree-vectorizer.c (vectorize_loops): Minor message change.
14553 (execute_vect_slp): Ditto.
14555 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
14557 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
14558 of the clone from the DECL_NAME of the original function.
14560 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
14562 * passes.c (register_pass): Add overload.
14563 * tree-pass.h (register_pass): Forward declare it. Add comment.
14565 2013-08-29 Jan Hubicka <jh@suse.cz>
14567 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
14568 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
14569 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
14570 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
14571 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
14572 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
14573 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
14574 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
14576 2013-08-29 Teresa Johnson <tejohnson@google.com>
14578 * dumpfile.c (dump_loc): Output column number.
14579 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
14580 * doc/invoke.texi: Document optall -fopt-info flag.
14581 * profile.c (read_profile_edge_counts): Use new dump framework.
14582 (compute_branch_probabilities): Ditto.
14583 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
14584 when pass not in any opt group.
14585 * pass_manager.h (pass_manager::get_pass_profile): New method.
14586 * value-prof.c (check_counter): Use new dump framework.
14587 (check_ic_target): Ditto.
14588 * coverage.c (get_coverage_counts): Ditto.
14589 (coverage_init): Setup new dump framework.
14591 2013-08-29 Richard Biener <rguenther@suse.de>
14593 PR tree-optimization/58246
14594 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
14595 handle the dominance check inside a basic-block.
14597 2013-08-29 Richard Biener <rguenther@suse.de>
14599 PR middle-end/57287
14600 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
14601 of default defs that appear in abnormal PHI nodes.
14603 2013-08-29 Richard Biener <rguenther@suse.de>
14605 PR tree-optimization/57685
14606 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
14607 single-use operands to avoid exponential complexity.
14609 2013-08-28 Dehao Chen <dehao@google.com>
14611 * ipa-inline.c (edge_badness): Fix integer underflow.
14613 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
14615 * gtm-builtins.def (_ITM_free): Declare leaf.
14617 2013-08-28 Jakub Jelinek <jakub@redhat.com>
14620 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
14621 (*tls_local_dynamic_base_64_largepic): Likewise.
14622 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
14623 Remove predicate from call operand.
14624 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
14625 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
14627 2013-08-28 Jeff Law <law@redhat.com>
14629 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
14630 checks for the number of predecessors and successors allowed.
14631 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
14632 which require copying a joiner block if there is a request which
14633 is a subpath that requires no joiner block copying.
14635 2013-08-28 Jan Hubicka <jh@suse.cz>
14637 * lto-streamer-out.c (DFS_write_tree_body): Drop
14638 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
14639 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
14640 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
14641 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
14642 Do not read DECL_ERROR_ISSUED.
14643 (unpack_ts_decl_with_vis_value_fields): Do not read
14645 (lto_input_ts_binfo_tree_pointers): Do not read
14646 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
14647 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
14648 write DECL_ERROR_ISSUED..
14649 (pack_ts_decl_with_vis_value_fields): Do not write
14651 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
14652 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
14653 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
14654 * tree.h (tree_decl_common): Update comment.
14655 (DECL_ERROR_ISSUED): Remove.
14657 2013-08-28 Jakub Jelinek <jakub@redhat.com>
14659 PR middle-end/58257
14660 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
14662 2013-08-28 Jan Hubicka <jh@suse.cz>
14664 * builtins.def (free): Declare leaf.
14666 2013-08-27 David Malcolm <dmalcolm@redhat.com>
14668 * gdbhooks.py: New.
14669 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
14670 * configure: Regenerate.
14672 2013-08-27 Martin Jambor <mjambor@suse.cz>
14674 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
14675 (ipa_ancestor_jf_data): Likewise.
14676 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
14677 (ipa_get_jf_pass_through_type_preserved): New function.
14678 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
14679 (ipa_get_jf_ancestor_type_preserved): New function.
14680 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
14681 (ipa_get_jf_ancestor_result): Likewise.
14682 (propagate_vals_accross_pass_through): Use
14683 ipa_get_jf_pass_through_result to do all the value mappings.
14684 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
14685 type_preserved flag.
14686 (ipa_set_jf_cst_copy): New function.
14687 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
14688 (ipa_set_jf_arith_pass_through): Likewise.
14689 (ipa_set_ancestor_jf): Likewise.
14690 (compute_complex_assign_jump_func): Set type_preserved instead of
14692 (ipa_compute_jump_functions_for_edge): Likewise.
14693 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
14694 (update_jump_functions_after_inlining): Update type_preserved.
14695 Explicitely create jump functions when combining one with pass_through.
14696 (ipa_write_jump_function): Stream the type_preserved flags.
14697 (ipa_read_jump_function): Likewise.
14699 2013-08-27 Jakub Jelinek <jakub@redhat.com>
14700 Aldy Hernandez <aldyh@redhat.com>
14702 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
14703 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
14704 * function.h (struct function): Add has_force_vect_loops and
14706 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
14707 * gimple.c (gimple_build_omp_critical): Add KIND argument and
14709 * gimple.def: Update CLAUSES comments.
14710 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
14711 (gimple_build_omp_for): Add argument to prototype.
14712 (gimple_omp_for_kind): New.
14713 (gimple_omp_for_set_kind): New.
14714 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
14715 GOVD_DATA_SHARE_CLASS.
14716 (enum omp_region_type): Add ORT_SIMD.
14717 (gimple_add_tmp_var): Handle ORT_SIMD.
14718 (gimplify_var_or_parm_decl): Same.
14719 (is_gimple_stmt): Same.
14720 (omp_firstprivatize_variable): Same.
14721 (omp_add_variable): Only use splay_tree_insert if lookup failed.
14722 (omp_notice_variable): Handle ORT_SIMD.
14723 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
14724 (omp_check_private): Handle ORT_SIMD.
14725 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
14726 OMP_CLAUSE_SAFELEN.
14727 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
14728 Handle OMP_CLAUSE_LASTPRIVATE.
14729 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
14730 OMP_CLAUSE_SAFELEN.
14731 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
14732 (gimplify_expr): Handle OMP_SIMD.
14733 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
14734 (expand_GOMP_SIMD_VF): New.
14735 (expand_GOMP_SIMD_LAST_LANE): New.
14736 * internal-fn.def (GOMP_SIMD_LANE): New.
14737 (GOMP_SIMD_VF): New.
14738 (GOMP_SIMD_LAST_LANE): New.
14739 * omp-low.c: Include target.h.
14740 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
14741 OMP_CLAUSE_SAFELEN.
14742 (check_omp_nesting_restrictions): Same.
14744 (lower_rec_simd_input_clauses): New.
14745 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
14747 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
14748 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
14749 (expand_omp_build_assign): New.
14750 (expand_omp_for_init_counts): New.
14751 (expand_omp_for_init_vars): New.
14752 (extract_omp_for_update_vars): New.
14753 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
14754 and rewrite accordingly.
14755 (expand_omp_simd): New.
14756 (expand_omp_for): Use expand_omp_simd.
14757 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
14758 (lower_omp_for): Do not lower the body.
14759 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
14760 in their own loops.
14761 * tree-flow.h (find_omp_clause): Remove prototype.
14762 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
14763 forcing vectorization of the loop, or if flag_tree_vectorize.
14764 (gate_tree_if_conversion): Similarly.
14765 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
14766 gimple_build_omp_for.
14767 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
14768 * tree-parloops (create_parallel_loop): Pass kind argument to
14769 gimple_build_omp_for.
14770 * tree-pretty-print.c (dump_omp_clause): Add cases for
14771 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
14772 OMP_CLAUSE__SIMDUID_.
14773 (dump_generic_node): Handle OMP_SIMD.
14774 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
14775 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
14776 unroll OMP_SIMD loops here.
14777 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
14778 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
14780 (vect_analyze_data_refs): Handle simd loops.
14781 * tree-vect-loop.c (vectorizable_live_operation): Handle
14783 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
14784 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
14785 (vectorizable_load): Same.
14786 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
14787 (struct simduid_to_vf): New.
14788 (simduid_to_vf::hash): New.
14789 (simduid_to-vf::equal): New.
14790 (struct simd_array_to_simduid): New.
14791 (simd_array_to_simduid::hash): New.
14792 (simd_array_to_simduid::equal): New.
14793 (adjust_simduid_builtins): New.
14794 (struct note_simd_array_uses_struct): New.
14795 (note_simd_array_uses_cb): New.
14796 (note_simd_array_uses): New.
14797 (vectorize_loops): Handle simd hints and adjust simd builtins
14799 * tree-vectorizer.h (struct _stmt_vec_info): Add
14800 simd_lane_access_p field.
14801 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
14802 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
14803 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
14804 (omp_clause_code_name): Same.
14805 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
14806 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
14807 * tree.def (OMP_SIMD): New entry.
14808 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
14809 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
14810 (OMP_CLAUSE_DECL): Adjust range for new clauses.
14811 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
14812 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
14813 (OMP_CLAUSE_LINEAR_STEP): New.
14814 (OMP_CLAUSE_SAFELEN_EXPR): New.
14815 (OMP_CLAUSE__SIMDUID__DECL): New.
14816 (find_omp_clause): New prototype.
14818 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
14820 * config/i386/driver-i386.c (host_detect_local_cpu): Update
14821 Haswell processor detection.
14823 2013-08-27 Christian Widmer <shadow@umbrox.de>
14826 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
14827 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
14828 AVX2 capable processors.
14830 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
14832 * config/aarch64/arm_neon.h: Replace all inline asm implementations
14833 of vget_low_* with implementations in terms of other intrinsics.
14835 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
14837 PR middle-end/57219
14838 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
14839 values to -1, 0 and 1.
14841 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
14843 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
14844 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
14845 (<optab><mode>3_insn): Remove.
14846 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
14847 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
14848 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14849 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
14850 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
14851 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
14852 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
14853 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
14854 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
14855 (ror<mode>3_insn): Likewise.
14856 * config/aarch64/predicates.md (aarch64_simd_register): New.
14858 2013-08-27 Richard Biener <rguenther@suse.de>
14860 PR tree-optimization/57521
14861 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
14862 one edge is non-critical.
14863 (find_phi_replacement_condition): Make sure to use a non-critical
14864 edge. Cleanup and remove old bug workarounds.
14865 (bb_postdominates_preds): Remove.
14866 (if_convertible_loop_p_1): Do not compute post-dominators.
14867 (combine_blocks): Do not free post-dominators.
14868 (main_tree_if_conversion): Likewise.
14869 (pass_data_if_conversion): Add TODO_verify_ssa.
14871 2013-08-27 DJ Delorie <dj@redhat.com>
14873 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
14875 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
14877 * function.c (assign_parm_find_data_types): Set passed_mode and
14878 nominal_mode to the TYPE_MODE of nominal_type for the built
14879 pointer type in case of the struct-pass-by-reference.
14881 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
14883 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
14884 (UINT16_TYPE): Change default to "unsigned int".
14886 * config/avr/avr.opt (mfract-convert-truncate): New option.
14887 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
14888 is set, round negative fractional integers according to n1169
14889 when converting to integer types.
14891 2013-08-26 Jan Hubicka <jh@suse.cz>
14893 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
14894 methods can not be called indirectly when their address is not taken.
14896 2013-08-26 Jan Hubicka <jh@suse.cz>
14898 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
14901 2013-08-26 Jan Hubicka <jh@suse.cz>
14903 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
14906 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
14908 * reload.c (find_valid_class): Allow classes that do not include
14909 FIRST_PSEUDO_REGISTER - 1.
14911 2013-08-26 Jan Hubicka <jh@suse.cz>
14913 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
14914 fix edge count/frequency when speculation failed; fix type check
14915 for the direct call.
14917 2013-08-26 Jan Hubicka <jh@suse.cz>
14919 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
14921 2013-08-26 Jan Hubicka <jh@suse.cz>
14923 * ipa-inline-transform.c (inline_transform): Be ready for basic block
14924 to be changed by edge redirection.
14926 2013-08-26 Jan Hubicka <jh@suse.cz>
14928 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
14929 formating; add sanity check.
14930 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
14931 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
14932 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
14933 (resolve_noninline_speculation): Update callee keys, too.
14935 2013-08-26 Jan Hubicka <jh@suse.cz>
14937 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
14938 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
14940 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
14942 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
14945 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
14947 * config/i386/i386.c (ix86_debug_options): Remove prototype.
14948 (x86_64_elf_select_section): Ditto.
14949 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
14951 (ix86_pass_by_reference): Ditto.
14952 (output_set_got): Ditto.
14953 (ix86_unary_operator_ok): Ditto.
14954 (ix86_expand_builtin): Ditto.
14956 2013-08-23 Jan Hubicka <jh@suse.cz>
14958 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
14960 2013-08-23 Jan Hubicka <jh@suse.cz>
14962 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
14963 (tree_decl_with_vis): Add FINAL field.
14965 2013-08-23 Jeff Law <law@redhat.com>
14967 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
14968 the debugging dump when the expression is fully redundant.
14970 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
14972 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
14973 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
14974 * pretty-print.c (pp_formatted_text_data): Likewise.
14975 (pp_write_text_to_stream): Likewise.
14976 (pp_write_text_as_dot_label_to_stream): Likewise.
14977 (pp_append_r): Likewise.
14978 (pp_format): Likewise.
14979 (pp_flush): Likewise.
14980 (pp_clear_output_area): Likewise.
14981 (pp_append_text): Likewise.
14982 (pp_formatted_text): Likewise.
14983 (pp_remaining_character_count_for_line): Likewise.
14984 (pp_newline): Likewise.
14985 (pp_character): Likewise.
14986 (output_buffer::~output_buffer): Define.
14987 (pretty_printer::~pretty_printer): Destruct output buffer.
14988 * pretty-print.h (output_buffer::~output_buffer): Declare.
14989 (pretty_printer::~pretty_printer): Declare virtual.
14991 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
14994 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
14995 HOST_WIDE_INT_M1U): New macros.
14996 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
14997 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
14998 unsigned -1 for lshift.
14999 * cse.c (cse_insn): Likewise.
15000 * double-int.c (rshift_double, lshift_double): Likewise.
15001 * builtins.c (fold_builtin_bitop): Likewise.
15002 * combine.c (force_to_mode): Likewise.
15003 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
15004 * simplify-rtx.c (simplify_const_unary_operation,
15005 simplify_const_binary_operation): Likewise.
15006 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
15007 check_va_list_escapes): Likewise.
15008 * rtlanal.c (nonzero_bits1): Likewise.
15009 * expmed.c (expand_smod_pow2): Likewise.
15010 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
15012 2013-08-23 Jan Hubicka <jh@suse.cz>
15014 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
15015 as having address taken.
15017 2013-08-23 Jan Hubicka <jh@suse.cz>
15019 * ipa-utils.h (method_class_type): Declare.
15020 * ipa-devirt.c (method_class_type): Export.
15022 * cgraphunit.c (analyze_functions): Do basic devirtualization;
15023 do not walk base classes of anonymous types.
15025 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
15027 PR rtl-optimization/58220
15028 PR regression/58221
15029 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
15030 handle SEQUENCE insns properly.
15032 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
15034 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
15036 (pp_newline_and_indent): Likewise.
15037 (pp_separate_with): Likewise.
15038 * pretty-print.c (pp_newline_and_flush): Define.
15039 (pp_newline_and_indent): Likewise.
15040 (pp_separate_with): Likewise.
15042 2013-08-23 Jakub Jelinek <jakub@redhat.com>
15045 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
15046 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
15048 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
15050 * config/i386/predicates.md (ext_sse_reg_operand): New.
15051 * config/i386/i386.md (*movti_internal): Use
15052 predicate to determine if EVEX is needed.
15053 (*movsi_internal): Ditto.
15054 (*movdf_internal): Ditto.
15055 (*movsf_internal): Ditto.
15056 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
15058 2013-08-23 Jakub Jelinek <jakub@redhat.com>
15060 PR tree-optimization/58209
15061 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
15062 (find_tail_calls): Give up for pointer result types if m is non-NULL.
15063 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
15064 emit POINTER_PLUS_EXPR.
15065 (create_tailcall_accumulator): For pointer result type accumulate in
15068 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
15070 * configure.ac: Add backslashes missing from the last change.
15071 * configure: Regenerate.
15073 2013-08-22 Jan Hubicka <jh@susue.cz>
15075 * ipa.c (function_and_variable_visibility): First remember function
15076 was global and then make it local.
15078 2013-08-22 Julian Brown <julian@codesourcery.com>
15080 * configure.ac: Add aarch64 to list of arches which use "nop" in
15082 * configure: Regenerate.
15084 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15086 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
15087 gnu_libc_has_function.
15088 * config/s390/tpf.h: Likewise.
15090 2013-08-22 Jan Hubicka <jh@susue.cz>
15092 * timevar.c (validate_phases): Add cast.
15094 2013-08-22 Jan Hubicka <jh@susue.cz>
15096 * timevar.c (validate_phases): Use size_t for memory.
15097 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
15099 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
15101 * pretty-print.h (output_buffer::output_buffer): Declare.
15102 (pretty_printer::pretty_printer): Likewise.
15103 (pp_construct): Remove.
15104 * pretty-print.c (output_buffer::output_buffer): Define.
15105 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
15106 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
15107 (print_gimple_expr): Likewise.
15108 (print_gimple_seq): Likewise.
15109 (gimple_dump_bb): Likewise.
15110 * sched-vis.c (dump_value_slim): Likewise.
15111 (dump_insn_slim): Likewise.
15112 (dump_rtl_slim): Likewise.
15113 (str_pattern_slim): Likewise.
15114 * tree-mudflap.c (mf_varname_tree): Likewise.
15115 * graph.c (print_graph_cfg): Likewise.
15116 (start_graph_dump): Likewise.
15117 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
15119 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
15120 pretty printer initialization.
15121 * coretypes.h (diagnostic_context): Remove superflous type alias
15123 (pretty_printer): Likewise. Declare directly as a class.
15124 (pretty_print_info): Remove declaration as class.
15125 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
15126 and pp_clear_output_area.
15127 (asan_add_global): Likewise.
15129 2013-08-22 Jan Hubicka <jh@suse.cz>
15131 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
15132 * ipa-utils.h (update_type_inheritance_graph): Declare.
15133 (possible_polymorphic_call_target_p): Declare.
15134 (possible_polymorphic_call_target_p): New.
15135 * ipa-devirt.c: Update toplevel comments.
15136 (cached_polymorphic_call_targets): Move up.
15137 (odr_type_d): Move ID down.
15138 (polymorphic_type_binfo_p): Update comment.
15139 (odr_hasher::remove): Likewise;
15140 (get_odr_type): Set anonymous_namespace.
15141 (dump_odr_type): Dump it.
15142 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
15143 (maybe_record_node): Record node in cached_polymorphic_call_targets.
15144 (record_binfo): Add comment.
15145 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
15147 (devirt_node_removal_hook): Do not iCE when cache is freed.
15148 (possible_polymorphic_call_target_p): New predicate.
15149 (update_type_inheritance_graph): New function.
15151 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
15152 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15153 Sergey Lega <sergey.s.lega@intel.com>
15154 Anna Tikhonova <anna.tikhonova@intel.com>
15155 Ilya Tocar <ilya.tocar@intel.com>
15156 Andrey Turetskiy <andrey.turetskiy@intel.com>
15157 Ilya Verbin <ilya.verbin@intel.com>
15158 Kirill Yukhin <kirill.yukhin@intel.com>
15159 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15161 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
15162 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
15163 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
15164 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
15165 (OPTION_MASK_ISA_AVX2_UNSET): Update.
15166 (OPTION_MASK_ISA_AVX512F_UNSET): New.
15167 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
15168 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
15169 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
15170 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
15171 OPT_mavx512pf, OPT_mavx512er cases.
15172 * config/i386/constraints.md (v): New constraint.
15173 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
15174 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
15175 (bit_AVX512CD): New.
15176 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15177 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
15178 * config/i386/i386-c.c (ix86_target_macros_internal):
15179 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
15181 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
15182 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
15183 * config/i386/i386.c (regclass_map, dbx_register_map)
15184 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
15185 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
15186 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
15187 -mavx512pf options.
15188 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
15189 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
15190 -mavx512pf options. Fix formatting.
15191 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
15192 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
15193 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
15194 -mavx512cd, -mavx512pf options.
15195 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
15196 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
15197 (ix86_preferred_output_reload_class): Replace SSE_REGS with
15199 (ix86_hard_regno_mode_ok): Support 512-bit registers.
15200 (ix86_set_reg_reg_cost): Ditto.
15201 (x86_order_regs_for_local_alloc): Ditto.
15202 (MAX_VECT_LEN): Extend to 64-byte.
15203 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
15204 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
15205 (TARGET_AVX512ER, TARGET_AVX512CD): New.
15206 (BIGGEST_ALIGNMENT): Extend to 512-bits.
15207 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
15208 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
15209 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
15210 (SSE_REG_MODE_P): Support new modes.
15211 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
15212 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
15213 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
15214 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
15215 (REG_CLASS_CONTENTS): Add new registers.
15216 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
15217 (EXT_REX_SSE_REGNO_P): New.
15218 (HI_REGISTER_NAMES): Add new registers.
15219 * config/i386/i386.md: Define constants for new registers.
15220 (mode): Add new 512-bit modes.
15221 (prefix): Support evex prefix.
15222 (isa): Support avx512f, noavx512f, fma_avx512f.
15223 (ssemodesuffix): Add new 512-bit modes.
15225 (*movxi_internal_avx512f): Ditto.
15226 (*movdi_internal): Replace constraint "x" with the new constraint "v".
15228 (*movsi_internal): Likewise.
15229 (*movdf_internal): Likewise.
15230 (*movsf_internal): Likewise.
15231 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
15232 (<code><mode>3): Likewise.
15233 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
15235 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
15236 with the new constraint "v".
15237 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
15239 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
15240 with the new constraint "v".
15241 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
15242 (<sse2>_storedqu<avxsizesuffix>): Likewise.
15243 (*<plusminus_insn><mode>3): Likewise.
15244 (<sse>_vm<plusminus_insn><mode>3): Likewise.
15245 (*mul<mode>3): Likewise.
15246 (<sse>_vmmul<mode>3): Likewise.
15247 (<sse>_div<mode>3): Likewise.
15248 (<sse>_vmdiv<mode>3): Likewise.
15249 (<sse>_sqrt<mode>2): Likewise.
15250 (<sse>_vmsqrt<mode>2): Likewise.
15251 (*<code><mode>3_finite): Likewise.
15252 (*<code><mode>3) <smaxmin>: Likewise.
15253 (<sse>_vm<code><mode>3): Likewise.
15254 (*<code><mode>3) <any_logic>: Likewise.
15255 (*fma_fmadd_<mode>): Likewise.
15256 (*fma_fmsub_<mode>): Likewise.
15257 (*fma_fnmadd_<mode>): Likewise.
15258 (*fma_fnmsub_<mode>): Likewise.
15259 (*fma_fmaddsub_<mode>): Likewise.
15260 (*fma_fmsubadd_<mode>): Likewise.
15261 (*fmai_fmadd_<mode>): Likewise.
15262 (*fmai_fmsub_<mode>): Likewise.
15263 (*fmai_fnmadd_<mode>): Likewise.
15264 (*fmai_fnmsub_<mode>): Likewise.
15265 (sse_cvtsi2ss): Likewise.
15266 (sse_cvtsi2ssq): Likewise.
15267 (sse_cvtss2si): Likewise.
15268 (sse_cvtss2si_2): Likewise.
15269 (sse_cvtss2siq): Likewise.
15270 (sse_cvtss2siq_2): Likewise.
15271 (sse_cvttss2si): Likewise.
15272 (sse_cvtss2siq_2): Likewise.
15273 (float<sseintvecmodelower><mode>2): Likewise.
15274 (sse2_cvtsd2si_2): Likewise.
15275 (sse2_cvtsd2siq_2): Likewise.
15276 (*<plusminus_insn><mode>3): Likewise.
15277 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
15278 (*<sse4_1_avx2>_mul<mode>3): Likewise.
15279 (ashr<mode>3): Likewise.
15280 (<shift_insn><mode>3): Likewise.
15281 (avx2_<code><mode>3): Likewise.
15282 (*avx2_<code><mode>3): Likewise.
15283 (*andnot<mode>3): Likewise.
15284 (*<code><mode>3) <any_logic>: Likewise.
15285 (abs<mode>2): Likewise.
15286 (avx2_permvar<mode>): Likewise.
15287 (avx2_perm<mode>_1): Likewise.
15288 (*avx_vpermilp<mode>): Likewise.
15289 (avx_vpermilvar<mode>3): Likewise.
15290 (avx2_ashrv<mode>): Likewise.
15291 (avx2_<shift_insn>v<mode>): Likewise.
15292 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
15294 * doc/rtl.texi: Document XImode.
15296 2013-08-21 Jeff Law <law@redhat.com>
15298 * tree-flow.h (register_jump_thread): Pass vector of edges
15299 instead of each important edge.
15300 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
15301 thread path into a vector and pass that to register_jump_thread.
15302 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
15303 passed in edge vector to the current 3-edge form.
15306 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
15308 * dce.c (fini_dce): Call df_analyze again just in case
15309 delete_unmarked_insns removed anything.
15311 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
15313 * reload.h (struct reg_equivs): Rename to ..
15314 (struct reg_equivs_s): .. this.
15316 2013-08-20 Martin Liska <marxin.liska@gmail.com>
15318 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
15320 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15322 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
15324 2013-08-21 Jeff Law <law@redhat.com>
15326 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
15327 simplify assignments too. If the RHS collapses to a singleton
15328 range, then return the value for the range.
15330 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
15332 * config/i386/sse.md (V16): Rename to...
15334 (mov<mode>): Update iterator name.
15335 (*mov<mode>_internal): Ditto.
15336 (push<mode>1): Ditto.
15337 (movmisalign<mode>): Ditto.
15339 2013-08-20 Jan Hubicka <jh@suse.cz>
15342 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
15343 entry for direct edges.
15344 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
15346 2013-08-20 David Malcolm <dmalcolm@redhat.com>
15348 Revert my last two changes, r201865 and r201864:
15351 2013-08-20 David Malcolm <dmalcolm@redhat.com>
15353 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
15354 instances can own GC refs.
15356 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
15357 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
15358 (gcc::context::gt_pch_nx): Likewise.
15359 (gcc::context::gt_pch_nx): Likewise.
15360 * ggc.h (gt_ggc_mx <T>): New.
15361 (gt_pch_nx_with_op <T>): New.
15362 (gt_pch_nx <T>): New.
15363 * passes.c (opt_pass::gt_ggc_mx): New.
15364 (opt_pass::gt_pch_nx): New.
15365 (opt_pass::gt_pch_nx_with_op): New.
15366 (pass_manager::gt_ggc_mx): New.
15367 (pass_manager::gt_pch_nx): New.
15368 (pass_manager::gt_pch_nx_with_op): New.
15369 (pass_manager::operator new): Use
15370 ggc_internal_cleared_alloc_stat rather than xcalloc.
15371 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
15372 (pass_manager::gt_ggc_mx): New.
15373 (pass_manager::gt_pch_nx): New.
15374 (pass_manager::gt_pch_nx_with_op): New.
15375 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
15376 (opt_pass::operator new): New.
15377 (opt_pass::gt_ggc_mx): New.
15378 (opt_pass::gt_pch_nx): New.
15379 (opt_pass::gt_pch_nx_with_op): New.
15382 2013-08-20 David Malcolm <dmalcolm@redhat.com>
15384 * Makefile.in (GTFILES): Add context.h.
15385 * context.c (gcc::context::operator new): New.
15386 (gcc::context::gt_ggc_mx): New.
15387 (gcc::context::gt_pch_nx): New.
15388 (gcc::context::gt_pch_nx): New.
15389 * context.h (gcc::context): Add GTY((user)) marking.
15390 (gcc::context::operator new): New.
15391 (gcc::context::gt_ggc_mx): New.
15392 (gcc::context::gt_pch_nx): New.
15393 (gcc::context::gt_pch_nx): New.
15394 (g): Add GTY marking.
15395 (gt_ggc_mx (gcc::context *)): New.
15396 (gt_pch_nx (gcc::context *)): New.
15397 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
15398 void *cookie)): New.
15399 * gengtype.c (open_base_files) <ifiles>: Add context.h.
15401 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
15403 * dce.c (fini_dce): Call df_analyze again just in case
15404 delete_unmarked_insns removed anything.
15406 2013-08-20 Teresa Johnson <tejohnson@google.com>
15408 PR rtl-optimizations/57451
15409 * final.c (reemit_insn_block_notes): Prevent lexical blocks
15410 from crossing split section boundaries.
15412 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
15414 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
15415 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
15416 with MULTLIB_DEFAULTS.
15418 2013-08-20 Nick Clifton <nickc@redhat.com>
15420 * target.def (narrow_volatile_bitfield): Note that the default
15421 value is false, not !TARGET_STRICT_ALIGN.
15422 * doc/tm.texi: Regenerate.
15424 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
15426 Fix LIB_SPEC for systems without libpthread.
15428 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
15429 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
15431 * config/i386/linux-common.h: Likewise.
15432 * config/mips/linux-common.h: Likewise.
15434 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15436 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
15439 2013-08-20 David Malcolm <dmalcolm@redhat.com>
15441 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
15442 instances can own GC refs.
15444 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
15445 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
15446 (gcc::context::gt_pch_nx): Likewise.
15447 (gcc::context::gt_pch_nx): Likewise.
15448 * ggc.h (gt_ggc_mx <T>): New.
15449 (gt_pch_nx_with_op <T>): New.
15450 (gt_pch_nx <T>): New.
15451 * passes.c (opt_pass::gt_ggc_mx): New.
15452 (opt_pass::gt_pch_nx): New.
15453 (opt_pass::gt_pch_nx_with_op): New.
15454 (pass_manager::gt_ggc_mx): New.
15455 (pass_manager::gt_pch_nx): New.
15456 (pass_manager::gt_pch_nx_with_op): New.
15457 (pass_manager::operator new): Use
15458 ggc_internal_cleared_alloc_stat rather than xcalloc.
15459 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
15460 (pass_manager::gt_ggc_mx): New.
15461 (pass_manager::gt_pch_nx): New.
15462 (pass_manager::gt_pch_nx_with_op): New.
15463 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
15464 (opt_pass::operator new): New.
15465 (opt_pass::gt_ggc_mx): New.
15466 (opt_pass::gt_pch_nx): New.
15467 (opt_pass::gt_pch_nx_with_op): New.
15469 2013-08-20 David Malcolm <dmalcolm@redhat.com>
15471 * Makefile.in (GTFILES): Add context.h.
15472 * context.c (gcc::context::operator new): New.
15473 (gcc::context::gt_ggc_mx): New.
15474 (gcc::context::gt_pch_nx): New.
15475 (gcc::context::gt_pch_nx): New.
15476 * context.h (gcc::context): Add GTY((user)) marking.
15477 (gcc::context::operator new): New.
15478 (gcc::context::gt_ggc_mx): New.
15479 (gcc::context::gt_pch_nx): New.
15480 (gcc::context::gt_pch_nx): New.
15481 (g): Add GTY marking.
15482 (gt_ggc_mx (gcc::context *)): New.
15483 (gt_pch_nx (gcc::context *)): New.
15484 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
15485 void *cookie)): New.
15486 * gengtype.c (open_base_files) <ifiles>: Add context.h.
15488 2013-08-20 Alan Modra <amodra@gmail.com>
15491 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
15492 (rs6000_emit_epilogue): Likewise.
15494 2013-08-19 Dehao Chen <dehao@google.com>
15496 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
15498 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
15499 Jakub Jelinek <jakub@redhat.com>
15501 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
15502 (BUILT_IN_FABSD64): Likewise.
15503 (BUILT_IN_FABSD128): Likewise.
15504 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
15505 (fold_builtin_1): Likewise.
15506 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
15507 destination and source operands.
15508 (*abstd2_fpr): Likewise.
15509 (*nabstd2_fpr): Likewise.
15511 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
15513 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
15516 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
15518 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
15521 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
15523 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
15524 * builtins.c (default_libc_has_function): New.
15525 (gnu_libc_has_function): Ditto.
15526 (no_c99_libc_has_function): Ditto.
15527 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
15528 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
15529 (fold_builtin_sincos): Likewise.
15530 (fold_builtin_cexp): Likewise.
15531 * builtins.def (DEF_C94_BUILTIN): Likewise.
15532 (DEF_C99_BUILTIN): Likewise.
15533 (DEF_C99_C90RES_BUILTIN): Likewise.
15534 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
15535 definitions to using this define.
15536 * config/darwin-protos.h (darwin_libc_has_function): New.
15537 * config/darwin.c (darwin_libc_has_function): Ditto.
15538 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
15539 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
15540 * config/darwin.h: Ditto.
15541 * config/elfos.h: Ditto.
15542 * config/freebsd.h: Ditto.
15543 * config/i386/cygming.h: Ditto.
15544 * config/i386/djgpp.h: Ditto.
15545 * config/i386/i386-interix.h: Ditto.
15546 * config/microblaze/microblaze.h: Ditto.
15547 * config/mmix/mmix.h: Ditto.
15548 * config/gnu-user.h: Ditto.
15549 * config/ia64/hpux.h: Ditto.
15550 * config/pa/pa-hpux.h: Ditto.
15551 * config/pdp11/pdp11.h: Ditto.
15552 * config/picochip/picochip.h: Ditto.
15553 * config/linux.h: Ditto.
15554 * config/netbsd.h: Ditto.
15555 * config/openbsd.h: Ditto.
15556 * config/rs6000/aix43.h: Ditto.
15557 * config/rs6000/aix51.h: Ditto.
15558 * config/rs6000/aix52.h: Ditto.
15559 * config/rs6000/aix53.h: Ditto.
15560 * config/rs6000/aix61.h: Ditto.
15561 * config/rs6000/darwin.h: Ditto.
15562 * config/rs6000/linux.h: Ditto.
15563 * config/rs6000/linux64.h: Ditto.
15564 * config/s390/tpf.h: Ditto.
15565 * config/sol2-10.h: Ditto.
15566 * config/sol2.h: Ditto.
15567 * config/vms/vms.h: Ditto.
15568 * config/vxworks.h: Ditto.
15569 * config/linux-android.c (linux_android_libc_has_function):
15570 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
15571 * config/linux-protos.h (linux_android_libc_has_function):
15573 * config/i386/i386.c (ix86_libc_has_function): New.
15574 * config/i386/i386-protos.h
15575 (ix86_libc_has_function): New declaration.
15576 * config/i386/i386.md
15577 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
15578 ("isinf<mode>2): Likewise.
15579 * convert.c (convert_to_integer): Using new target hook
15580 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
15581 TARGET_C99_FUNCTIONS.
15582 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
15583 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
15584 * coretypes.h (function_class): New enum for different
15585 classes of functions.
15586 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
15587 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
15588 (TARGET_HAS_SINCOS): Likewise.
15589 (TARGET_LIBC_HAS_FUNCTION): New.
15590 * doc/tm.texi: Regenerated.
15591 * targhooks.h (default_libc_has_function): New declaration.
15592 (no_c99_libc_has_function): Ditto.
15593 (gnu_libc_has_function): Ditto.
15594 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
15595 and TARGET_HAS_SINCOS.
15597 2013-08-18 Jan Hubicka <jh@suse.cz>
15599 * Makeifle-in (ipa-devirt.o): New.
15600 (GTFILES): Add ipa-utils.h and ipa-devirt.c
15601 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
15602 (analyze_functions): Look into possible targets of polymorphic call.
15603 * dumpfile.c (dump_files): Add type-inheritance dump.
15604 * dumpfile.h (TDI_inheritance): New.
15605 * ipa-devirt.c: New file.
15606 * ipa-utils.h (odr_type_d): Forward declare.
15607 (odr_type): New type.
15608 (build_type_inheritance_graph): Declare.
15609 (possible_polymorphic_call_targets): Declare and introduce inline
15610 variant when only edge is pased.
15611 (dump_possible_polymorphic_call_targets): Likewise.
15612 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
15613 * tree.c (type_in_anonymous_namespace_p): Break out from ...
15614 (types_same_for_odr): ... here.
15615 * tree.h (type_in_anonymous_namespace_p): Declare.
15617 2013-08-18 Jakub Jelinek <jakub@redhat.com>
15619 PR tree-optimization/58006
15620 * tree-parloops.c (take_address_of): Don't ICE if get_name
15622 (eliminate_local_variables_stmt): Remove clobber stmts.
15624 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
15626 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
15627 error message is issued for an alias to undefined symbol.
15629 2013-08-18 Jan Hubicka <jh@suse.cz>
15631 * cgraph.c (cgraph_create_indirect_edge): Discover
15632 polymorphic calls and record basic info into indirect_info.
15633 * gimple-fold.c (gimple_fold_call): When doing BINFO based
15634 devirtualization, ignore objc function calls.
15635 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
15636 call with no parm index info.
15637 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
15638 * tree.c (virtual_method_call_p): New function.
15639 * tree.h (virtual_method_call_p): Declare.
15641 2013-08-16 Jan Hubicka <jh@suse.cz>
15643 PR middle-end/58179
15644 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
15646 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
15648 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
15651 2013-08-16 David Malcolm <dmalcolm@redhat.com>
15653 * gengtype.c (type_for_name): Add special-case support for
15654 locating types within the "gcc::" namespace.
15655 (open_base_files): Emit a "using namespace gcc" directive.
15657 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
15660 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
15661 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
15663 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
15664 array instead of each individual operand as a separate argument.
15665 (emit_fusion_gpr_load): Likewise.
15666 (expand_fusion_gpr_load): Add new function declaration.
15668 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
15669 signature to have the operands passed as an array, instead of as
15670 separate arguments. Allow ZERO_EXTEND to be in the memory
15671 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
15672 depend on the register live/dead flags when peepholes are run.
15673 (expand_fusion_gpr_load): New function to be called from the
15674 peephole2 pass, to change the register that addis sets to be the
15676 (emit_fusion_gpr_load): Change the calling signature to have the
15677 operands passed as an array, instead of as separate arguments.
15678 Allow ZERO_EXTEND to be in the memory address, and also
15679 SIGN_EXTEND if -mpower8-fusion-sign.
15681 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
15682 unspec enumeration.
15683 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
15684 adjust the register addis loads up in the peephole2 pass. Do not
15685 depend on the register live/dead state when the peephole pass is done.
15687 2013-08-16 David Malcolm <dmalcolm@redhat.com>
15689 * gengtype.c (create_user_defined_type): Ensure that the kind
15690 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
15691 declaration is seen before the GTY((user)) marking.
15693 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15696 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
15698 2013-08-16 Jan Hubicka <jh@suse.cz>
15700 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
15701 arugment expected_type.
15702 (gimple_fold_call): Use it.
15703 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
15704 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
15705 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
15706 (try_make_edge_direct_virtual_call): Likewise.
15707 * tree.c (obj_type_ref_class): New.
15708 * tree.h (obj_type_ref_class): Use it.
15710 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
15712 * sched-vis.c (rtl_slim_pp_initialized): Remove.
15713 (rtl_slim_pp): Likewise.
15714 (init_rtl_slim_pretty_print): Likewise.
15715 (dump_value_slim): Don't call it. Use local pretty printer.
15716 (dump_insn_slim): Likewise.
15717 (dump_rtl_slim): Likewise.
15718 (str_pattern_slim): Likewise.
15719 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
15722 2013-08-16 Jakub Jelinek <jakub@redhat.com>
15724 PR tree-optimization/58164
15725 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
15726 walk gimple_goto_dest of GIMPLE_GOTO.
15728 PR tree-optimization/58165
15729 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
15730 bi_call must be the last stmt in a bb, don't split_block, instead
15731 use fallthru edge from it and give up if there is none.
15732 Release conds vector when returning early.
15734 2013-08-14 Xinliang David Li <davidxl@google.com>
15736 * config/i386/i386.c (ix86_option_override_internal):
15737 Remove unused variable and field.
15739 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15742 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
15743 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
15744 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
15745 and Linux, correct BLKmode alignment when 128-bit alignment is
15746 required and compatibility flag is not set.
15747 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
15748 for zero-size arguments when compatibility flag is not set.
15750 2013-08-14 Jakub Jelinek <jakub@redhat.com>
15752 PR tree-optimization/58145
15753 * tree-sra.c (build_ref_for_offset): If prev_base has
15754 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
15756 2013-08-14 Xinliang David Li <davidxl@google.com>
15758 * config/i386/i386.c (ix86_option_override_internal):
15759 Fix uninitialized variable error.
15761 2013-08-14 Xinliang David Li <davidxl@google.com>
15763 * config/i386/i386.opt: Define two new options.
15764 * config/i386/x86-tune.def: Add arch selector field in macros.
15765 * config/i386/i386.h: Adjust macro definition.
15766 * config/i386/i386.c (ix86_option_override_internal):
15768 (parse_mtune_ctrl_str): New function.
15769 (set_ix86_tune_features): New function.
15770 (ix86_function_specific_restore): Call the new helper function.
15772 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
15774 PR rtl-optimization/57662
15775 * sel-sched.c (code_motion_process_successors): When the current insn
15776 is removed after the recursive traversal, break from the loop.
15777 Add comments and debug printouts.
15779 2013-08-14 Jakub Jelinek <jakub@redhat.com>
15780 Alexandre Oliva <aoliva@redhat.com>
15783 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
15784 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
15785 there also UNSPEC_PLTOFF.
15787 2013-08-14 Marek Polacek <polacek@redhat.com>
15789 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
15790 NUM_CONDITIONS bit positions.
15792 2013-08-13 Cary Coutant <ccoutant@google.com>
15794 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
15795 (attr_checksum): Hash vector contents instead of pointer.
15796 (attr_checksum_ordered): Likewise.
15798 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
15800 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
15801 when Pmode != word_mode. Add length_address attribute.
15802 (sse3_monitor_<mode>): Merge from sse3_monitor and
15803 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
15804 Pmode != word_mode. Update insn length attribute.
15805 * config/i386/i386.c (ix86_option_override_internal): Update
15806 ix86_gen_monitor selection for merged sse3_monitor insn.
15808 2013-08-13 Julian Brown <julian@codesourcery.com>
15810 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15811 perform invalid legitimization on greater-than-word-size modes for
15812 TARGET_E500_DOUBLE.
15814 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
15816 * ira.c (setup_class_translate_array): Use aclass instead of cl
15817 for classes not fully covered by allocno classes.
15819 2013-08-13 Jakub Jelinek <jakub@redhat.com>
15821 PR tree-optimization/57661
15822 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
15823 * tree-inline.c (tree_function_versioning): Initialize it.
15824 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
15825 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
15826 that is not being copied.
15829 * asan.c (instrument_strlen_call): Fix typo in comment.
15830 Use char * type even for the lhs of POINTER_PLUS_EXPR.
15832 2013-08-13 Steve Ellcey <sellcey@mips.com>
15834 * config/mips/mips.md (prefetch): Use lw instead of ld on
15835 loongson in 32bit mode.
15837 2013-08-13 Nick Clifton <nickc@redhat.com>
15839 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
15841 2013-08-13 Jan Hubicka <jh@suse.cz>
15843 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
15844 introduced edge; fix typo in sanity check.
15845 (cgraph_resolve_speculation): Export; improve diagnostic.
15846 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
15847 speculation at type mismatch.
15848 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
15849 (cgraph_resolve_speculation): Declare.
15850 (symtab_can_be_discarded): New function.
15851 * value-prof.c (gimple_ic_transform): Remove actual transform code.
15852 * ipa-inline-transform.c (speculation_removed): New global var.
15853 (clone_inlined_nodes): See if speculation can be removed.
15854 (inline_call): If speculations was removed, we growths may not match.
15855 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
15856 (speculation_useful_p): New function.
15857 (resolve_noninline_speculation): New function.
15858 (inline_small_functions): Resolve useless speculations.
15859 * ipa-inline.h (speculation_useful_p): Declare
15860 * ipa.c (can_replace_by_local_alias): Simplify.
15861 (ipa_profile): Produce speculative calls in non-lto, too;
15862 add simple cost model; produce local aliases.
15864 2013-08-13 David Malcolm <dmalcolm@redhat.com>
15866 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
15869 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
15871 * config/i386/i386.c (ix86_function_versions): Use error + inform.
15873 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
15875 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
15876 iterator instead of X87MODEF.
15878 2013-08-12 Perez Read <netfirewall@gmail.com>
15881 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
15882 operand 0 for intel asm alternative.
15883 (*movabs<mode>_2): Ditto for operand 1.
15885 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
15887 * config/aarch64/arm_none.h
15888 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
15890 2013-08-12 Nick Clifton <nickc@redhat.com>
15892 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
15894 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
15896 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
15897 expand for QI/HImode operand to produce more effictive code for
15898 unsigned char(short) --> float(double) conversion.
15900 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
15902 * doc/invoke.texi: Mention that -ftls-model does not force the final
15905 2013-08-12 Marek Polacek <polacek@redhat.com>
15906 Marc Glisse <marc.glisse@inria.fr>
15908 PR tree-optimization/57980
15909 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
15910 when creating -1 constant.
15912 2013-08-10 Jan Hubicka <jh@suse.cz>
15914 Workaround binutils PR14342.
15915 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
15916 (gimple_init_edge_profiler): Likewise.
15917 (gimple_gen_ic_func_profiler): Likewise.
15919 2013-08-09 Jan Hubicka <jh@suse.cz>
15921 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
15923 2013-08-09 Xinliang David Li <davidxl@google.com>
15925 * config/i386/stringop.def: New file.
15926 * config/i386/stringop.opt: New file.
15927 * config/i386/i386-opts.h: Include stringopt.def.
15928 * config/i386/i386.opt: Include stringopt.opt.
15929 * config/i386/i386.c (ix86_option_override_internal):
15930 Override default size based stringop inline strategies with options.
15931 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
15934 2013-08-09 Jan Hubicka <jh@suse.cz>
15936 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
15938 2013-08-09 Jan Hubicka <jh@suse.cz>
15940 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
15942 (dump_cgraph_node): Dump profile-id.
15943 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
15944 and common_target_probability.
15945 * lto-cgraph.c (lto_output_edge): Stream common targets.
15946 (lto_output_node): Stream profile ids.
15947 (input_node): Stream profile ids.
15948 (input_edge): Stream common targets.
15949 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
15950 * ipa.c: Include value-prof.h
15951 (ipa_profile_generate_summary): Turn indirect call statement histograms
15952 into common targets.
15953 (ipa_profile): Turn common targets into speculative edges.
15955 2013-08-09 Jan Hubicka <jh@suse.cz>
15957 * cgraph.h (cgraph_node): Add profile_id.
15958 * value-prof.c (cgraph_node_map): Turn into pointer_map.
15959 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
15960 (del_node_map): Update.
15961 (find_func_by_funcdef_no): Replace by ...
15962 (find_func_by_profile_id): ... this one.
15963 (gimple_ic_transform): Do not remove useful histograms when
15964 speculation is not done; dump info when indirect call removal
15966 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
15967 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
15968 (__gcov_indirect_call_profiler_v2): .. this one.
15969 * profile.h (init_node_map): Update.
15970 * coverage.c (coverage_compute_profile_id): New function.
15971 * coverage.h (coverage_compute_profile_id): Declare.
15972 * tree-profile.c (init_ic_make_global_vars): Make
15973 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
15974 (gimple_init_edge_profiler): Update prototype of
15975 __gcov_indirect_call_profiler.
15976 (gimple_gen_ic_func_profiler): Simplify.
15977 (tree_profiling): Use init_node_map
15979 2013-08-09 Jan Hubicka <jh@suse.cz>
15981 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
15982 non-speculative refs.
15983 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
15984 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
15985 (cgraph_set_call_stmt): Likewise.
15986 (cgraph_create_edge_1): Fix release checking compilatoin;
15987 clear lto_stmt_uid.
15988 (cgraph_free_edge): Free indirect info.
15989 (cgraph_turn_edge_to_speculative): New function.
15990 (cgraph_speculative_call_info): New function.
15991 (cgraph_make_edge_direct): Return direct edge; handle speculation.
15992 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
15993 (dump_cgraph_node): Dump speculation.
15994 (verify_edge_count_and_frequency): Accept speculative edges.
15995 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
15996 (verify_cgraph_node): Handle speculation.
15997 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
15998 (cgraph_set_call_stmt): Update prototype.
15999 (cgraph_make_edge_direct): Update prototype.
16000 (cgraph_speculative_call_info): Declare.
16001 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
16002 to change; update call of ipa_find_references.
16003 * ipa-ref.c (ipa_record_reference): Fix return value; clear
16004 lto_stmt_uid and speculative flags.
16005 (ipa_dump_references): Dump speculation.
16006 (ipa_clone_references): Clone speculative flag.
16007 (ipa_clone_referring): Likewise.
16008 (ipa_clone_ref): New function.
16009 (ipa_find_reference): Look into lto_stmt_uids
16010 (ipa_clear_stmts_in_references): Do not clear speculative calls.
16011 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
16012 (ipa_find_reference): Update declaration.
16013 (ipa_clone_ref): Declare.
16014 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
16015 stream speculative flag.
16016 (lto_output_ref): Stream statements uids and speculation.
16017 (input_ref): Likewise.
16018 (input_edge): Stream speuclation.
16019 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
16020 (cgraph_set_call_stmt_including_clones): Handle speculation.
16021 * ipa-inline.c (heap_edge_removal_hook): New function.
16022 (inline_small_functions): Register it.
16023 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
16024 also initialize refs.
16025 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
16027 (try_make_edge_direct_simple_call): Likewise.
16028 (try_make_edge_direct_simple_call): Likewise.
16029 (update_indirect_edges_after_inlining): Likewise.
16030 (remove_described_reference): Look proper lto_stmt_uid.
16031 (propagate_controlled_uses): Likewise.
16032 (propagate_controlled_uses): Liekwise.
16033 * tree-inline.c (copy_bb): Copy speculative edges.
16034 (redirect_all_calls): New function.
16035 (copy_cfg_body): Do redirection after loop info is updated.
16036 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
16038 2013-08-09 Jan Hubicka <jh@suse.cz>
16040 * lto-streamer-out.c (output_function): Renumber PHIs.
16041 * lto-streamer-in.c (input_function): Likewise.
16043 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
16045 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
16046 (get_lane_unsigned): Likewise.
16047 (dup_lane_scalar): Likewise.
16048 (get_lane): enable for VALL.
16049 * config/aarch64/aarch64-simd.md
16050 (aarch64_dup_lane_scalar<mode>): Remove.
16051 (aarch64_get_lane_signed<mode>): Likewise.
16052 (aarch64_get_lane_unsigned<mode>): Likewise.
16053 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
16054 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
16055 (aarch64_get_lane<mode>): Enable for all vector modes.
16056 (aarch64_get_lanedi): Remove misleading constraints.
16057 * config/aarch64/arm_neon.h
16058 (__aarch64_vget_lane_any): Define.
16059 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
16060 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
16061 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
16062 * config/aarch64/iterators.md (VDQQH): New.
16063 (VDQQHS): Likewise.
16064 (vwcore): Likewise.
16066 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
16068 * configure.ac: Add GAS check for LEON instructions on SPARC.
16069 * configure: Regenerate.
16070 * config.in: Likewise.
16071 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
16073 * config/sparc/sparc.opt (LEON, LEON3): New masks.
16074 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
16076 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
16077 (AS_LEON_FLAG): New macro.
16078 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
16079 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
16080 Deal with LEON and LEON3 for the memory model.
16081 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
16082 (atomic_compare_and_swap<mode>_1): Likewise.
16083 (*atomic_compare_and_swap<mode>_1): Likewise.
16085 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16087 * config/arm/neon.md (vcond): Fix floating-point vector
16088 comparisons against 0.
16090 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
16092 * lra-constraints.c (emit_spill_move): Remove assert.
16093 (process_alt_operands): Add more debugging
16094 output. Increase reject for spilling into memory. Decrease
16095 reject for reloading scratch.
16096 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
16098 2013-08-08 Steve Ellcey <sellcey@mips.com>
16100 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
16101 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
16102 micromips incompatible. Add nan2008.
16103 (MULTILIB_DIRNAMES): Add nan2008.
16104 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
16105 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
16106 and micromips incompatible. Add nan2008.
16107 (MULTILIB_DIRNAMES): Add nan2008.
16108 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
16110 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
16112 PR rtl-optimization/58079
16113 * combine.c (combine_simplify_rtx): Avoid using SUBST if
16114 simplify_comparison has widened a comparison with an integer.
16116 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16118 * config/arm/neon.md (movmisalign<mode>): Disable when we
16119 don't allow unaligned accesses.
16120 (*movmisalign<mode>_neon_store): Likewise.
16121 (*movmisalign<mode>_neon_load): Likewise.
16122 (*movmisalign<mode>_neon_store): Likewise.
16123 (*movmisalign<mode>_neon_load): Likewise.
16125 2013-08-08 Jan Hubicka <jh@suse.cz>
16127 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
16128 (make_pass_rebuild_cgraph_edges): Also clear references.
16129 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
16130 * ipa-inline-transform.c (inline_transform): Remove all references
16132 * cgraphunit.c (expand_function): Remove all references after
16134 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
16135 (ipa_find_reference): Rewrite to iterator.
16136 (remove_stmt_references): Likewise.
16137 (ipa_clear_stmts_in_references): New function.
16138 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
16139 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
16141 * ipa-split.c (split_function): Remove references in split function.
16143 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
16146 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
16147 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
16149 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
16152 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
16153 suggested mode for the assignment isn't compatible with the
16154 registers required.
16156 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
16159 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
16161 2013-08-07 Xinliang David Li <davidxl@google.com>
16163 * config/i386/i386.opt: New option -mtune-ctrl=.
16164 * config/i386/x86-tune.def: New file.
16165 * config/i386/i386.h: include x86-tune.def.
16166 * config/i386/i386.c (ix86_option_override_internal):
16167 Parsing -mtune-ctrl= option and set tune features.
16169 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
16172 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
16173 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
16176 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
16178 * rtl.h (update_alignments): Declare.
16179 * final.c (grow_label_align): New function extracted from...
16180 (shorten_branches): ...here. Call it.
16181 (update_alignments): New function.
16182 * reorg.c (sibling_labels): New variable.
16183 (get_label_before): Add SIBLING parameter. If it is non-zero, push
16184 the new label along with it onto the sibling_labels vector.
16185 (fill_simple_delay_slots): Adjust call to get_label_before.
16186 (fill_slots_from_thread): Likewise.
16187 (relax_delay_slots): Likewise.
16188 (make_return_insns): Likewise.
16189 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
16191 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
16193 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
16194 document its semantics.
16195 (diagnostic_report_diagnostic): Adjust accordingly.
16197 2013-08-07 David Malcolm <dmalcolm@redhat.com>
16199 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
16200 (sparc_option_override): ...and port to new C++ pass API.
16201 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
16203 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
16205 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
16207 2013-08-06 Caroline Tice <cmtice@google.com>
16209 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
16210 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
16211 * tree-pass.h: Add pass_vtable_verify.
16212 * varasm.c (assemble_variable): Add code to properly set the comdat
16213 section and name for the .vtable_map_vars section.
16214 (assemble_vtyv_preinit_initializer): New function.
16215 (default_sectin_type_flags): Make sure .vtable_map_vars section has
16217 * output.h: Add function decl for assemble_vtv_preinit_initializer.
16218 * vtable-verify.c: New file.
16219 * vtable-verify.h: New file.
16220 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
16221 initialiation levels.
16222 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
16223 * passes.def: Insert pass_vtable_verify.
16224 * aclocal.m4: Reorder includes.
16225 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
16226 -fvtv-counts options.
16227 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
16228 as appropriate, if -fvtable-verify=... is used.
16229 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
16230 -fvtable-verify=... is used.
16231 * Makefile.in (OBJS): Add vtable-verify.o to list.
16232 (vtable-verify.o): Add new build rule.
16233 (GTFILES): Add vtable-verify.c to list.
16234 * common.opt (fvtable-verify=): New flag.
16235 (vtv_priority): Values for fvtable-verify= flag.
16236 (fvtv-counts): New flag.
16237 (fvtv-debug): New flag.
16238 * tree.h (save_vtable_map_decl): New extern function decl.
16240 2013-08-07 David Malcolm <dmalcolm@redhat.com>
16242 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
16243 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
16244 (pass_data_rl78_devirt): ...new pass_data instance and...
16245 (make_pass_rl78_devirt): ...new function.
16246 (rl78_asm_file_start): Port pass registration to new C++ API.
16248 2013-08-07 David Malcolm <dmalcolm@redhat.com>
16250 * coretypes.h (rtl_opt_pass): Add.
16251 (gcc::context): Add.
16252 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
16253 (epiphany_init): Port to new C++ pass API.
16254 (epiphany_optimize_mode_switching): Likewise.
16255 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
16256 (pass_manager::get_pass_mode_switching): New.
16257 (pass_manager::get_pass_peephole2): New.
16258 * mode-switching.c (pass_mode_switching): Add clone method.
16259 * recog.c (pass_peephole2): Add clone method.
16260 (pass_split_all_insns): Add clone method.
16262 2013-08-06 David Malcolm <dmalcolm@redhat.com>
16264 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
16265 (mips_option_override): ...here, porting to new C++ API for passes.
16267 2013-08-06 Jan Hubicka <jh@suse.cz>
16269 * cgraph.c (cgraph_get_body): New function based on lto.c
16271 * cgraph.h (cgraph_get_body): Declare.
16272 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
16274 * cgraphunit.c (expand_function): Get body prior expanding.
16275 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
16276 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
16278 * passes.c (do_per_function_toporder): Get body.
16279 * tree-inline.c (expand_call_inline): Get body prior inlining it.
16280 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
16282 2013-08-06 Martin Jambor <mjambor@suse.cz>
16285 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
16286 is not re-finalized. Rename second parameter to no_collect.
16288 2013-08-06 Martin Jambor <mjambor@suse.cz>
16290 PR middle-end/58041
16291 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
16292 MEM_REF has proper alignment information.
16294 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
16297 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
16299 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
16300 rtx (*) (rtx, ...) with insn_gen_fn.
16301 * genoutput.c (output_insn_data): Cast gen_? function pointers to
16302 insn_gen_fn::stored_funcptr. Add initializer braces.
16304 2013-08-05 David Malcolm <dmalcolm@redhat.com>
16306 Rewrite how instances of passes are cloned to remove assumptions
16307 about their sizes (thus allowing pass subclasses to have
16308 additional data fields, albeit non-GC-managed ones at this point).
16310 * passes.c (make_pass_instance): Now that passes have clone
16311 methods, rewrite this function to eliminate XNEW and memcpy
16312 calls that used hardcoded sizes. Since this function no longer
16313 creates pass instances, rename it to...
16314 (add_pass_instance): ...this. Document the old way that passes were
16315 numbered and flagged, and rework this function to continue using it.
16316 (next_pass_1): Add an initial_pass argument for use by
16318 (position_pass): When adding multiple instances of a pass, use
16319 the pass's clone method, rather than relying on the XNEW/memcpy
16320 within the former make_pass_instance (now add_pass_instance).
16321 (pass_manager::pass_manager): When invoking next_pass_1, also supply
16322 the initial instance of the current pass within the pass manager.
16324 2013-08-05 David Malcolm <dmalcolm@redhat.com>
16326 This is the automated part of the conversion of passes from C
16327 structs to C++ classes.
16329 Patch autogenerated by refactor_passes.py from
16330 https://github.com/davidmalcolm/gcc-refactoring-scripts
16331 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
16333 * asan.c (pass_asan): Convert from a global struct to a subclass of
16334 gimple_opt_pass along with...
16335 (pass_data_asan): ...new pass_data instance and...
16336 (make_pass_asan): ...new function.
16337 (pass_asan_O0): Convert from a global struct to a subclass of
16338 gimple_opt_pass along with...
16339 (pass_data_asan_O0): ...new pass_data instance and...
16340 (make_pass_asan_O0): ...new function.
16341 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
16342 subclass of rtl_opt_pass along with...
16343 (pass_data_inc_dec): ...new pass_data instance and...
16344 (make_pass_inc_dec): ...new function.
16345 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
16346 a subclass of rtl_opt_pass along with...
16347 (pass_data_reorder_blocks): ...new pass_data instance and...
16348 (make_pass_reorder_blocks): ...new function.
16349 (pass_duplicate_computed_gotos): Convert from a global struct to a
16350 subclass of rtl_opt_pass along with...
16351 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
16352 (make_pass_duplicate_computed_gotos): ...new function.
16353 (pass_partition_blocks): Convert from a global struct to a subclass of
16354 rtl_opt_pass along with...
16355 (pass_data_partition_blocks): ...new pass_data instance and...
16356 (make_pass_partition_blocks): ...new function.
16357 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
16358 struct to a subclass of rtl_opt_pass along with...
16359 (pass_data_branch_target_load_optimize1): ...new pass_data instance
16361 (make_pass_branch_target_load_optimize1): ...new function.
16362 (pass_branch_target_load_optimize2): Convert from a global struct to a
16363 subclass of rtl_opt_pass along with...
16364 (pass_data_branch_target_load_optimize2): ...new pass_data instance
16366 (make_pass_branch_target_load_optimize2): ...new function.
16367 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
16368 of rtl_opt_pass along with...
16369 (pass_data_jump): ...new pass_data instance and...
16370 (make_pass_jump): ...new function.
16371 (pass_jump2): Convert from a global struct to a subclass of
16372 rtl_opt_pass along with...
16373 (pass_data_jump2): ...new pass_data instance and...
16374 (make_pass_jump2): ...new function.
16375 * cfgexpand.c (pass_expand): Convert from a global struct to a
16376 subclass of rtl_opt_pass along with...
16377 (pass_data_expand): ...new pass_data instance and...
16378 (make_pass_expand): ...new function.
16379 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
16380 of rtl_opt_pass along with...
16381 (pass_data_free_cfg): ...new pass_data instance and...
16382 (make_pass_free_cfg): ...new function.
16383 (pass_into_cfg_layout_mode): Convert from a global struct to a
16384 subclass of rtl_opt_pass along with...
16385 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
16386 (make_pass_into_cfg_layout_mode): ...new function.
16387 (pass_outof_cfg_layout_mode): Convert from a global struct to a
16388 subclass of rtl_opt_pass along with...
16389 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
16390 (make_pass_outof_cfg_layout_mode): ...new function.
16391 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
16392 struct to a subclass of gimple_opt_pass along with...
16393 (pass_data_build_cgraph_edges): ...new pass_data instance and...
16394 (make_pass_build_cgraph_edges): ...new function.
16395 (pass_rebuild_cgraph_edges): Convert from a global struct to a
16396 subclass of gimple_opt_pass along with...
16397 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
16398 (make_pass_rebuild_cgraph_edges): ...new function.
16399 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
16400 subclass of gimple_opt_pass along with...
16401 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
16403 (make_pass_remove_cgraph_callee_edges): ...new function.
16404 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
16405 struct to a subclass of rtl_opt_pass along with...
16406 (pass_data_stack_adjustments): ...new pass_data instance and...
16407 (make_pass_stack_adjustments): ...new function.
16408 * combine.c (pass_combine): Convert from a global struct to a subclass
16409 of rtl_opt_pass along with...
16410 (pass_data_combine): ...new pass_data instance and...
16411 (make_pass_combine): ...new function.
16412 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
16413 global struct to a subclass of rtl_opt_pass along with...
16414 (pass_data_compare_elim_after_reload): ...new pass_data instance
16416 (make_pass_compare_elim_after_reload): ...new function.
16417 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
16418 of rtl_opt_pass along with...
16419 (pass_data_rtl_cprop): ...new pass_data instance and...
16420 (make_pass_rtl_cprop): ...new function.
16421 * cse.c (pass_cse): Convert from a global struct to a subclass of
16422 rtl_opt_pass along with...
16423 (pass_data_cse): ...new pass_data instance and...
16424 (make_pass_cse): ...new function.
16425 (pass_cse2): Convert from a global struct to a subclass of
16426 rtl_opt_pass along with...
16427 (pass_data_cse2): ...new pass_data instance and...
16428 (make_pass_cse2): ...new function.
16429 (pass_cse_after_global_opts): Convert from a global struct to a
16430 subclass of rtl_opt_pass along with...
16431 (pass_data_cse_after_global_opts): ...new pass_data instance and...
16432 (make_pass_cse_after_global_opts): ...new function.
16433 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
16434 of rtl_opt_pass along with...
16435 (pass_data_ud_rtl_dce): ...new pass_data instance and...
16436 (make_pass_ud_rtl_dce): ...new function.
16437 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
16438 rtl_opt_pass along with...
16439 (pass_data_fast_rtl_dce): ...new pass_data instance and...
16440 (make_pass_fast_rtl_dce): ...new function.
16441 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
16442 a subclass of rtl_opt_pass along with...
16443 (pass_data_df_initialize_opt): ...new pass_data instance and...
16444 (make_pass_df_initialize_opt): ...new function.
16445 (pass_df_initialize_no_opt): Convert from a global struct to a
16446 subclass of rtl_opt_pass along with...
16447 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
16448 (make_pass_df_initialize_no_opt): ...new function.
16449 (pass_df_finish): Convert from a global struct to a subclass of
16450 rtl_opt_pass along with...
16451 (pass_data_df_finish): ...new pass_data instance and...
16452 (make_pass_df_finish): ...new function.
16453 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
16454 rtl_opt_pass along with...
16455 (pass_data_rtl_dse1): ...new pass_data instance and...
16456 (make_pass_rtl_dse1): ...new function.
16457 (pass_rtl_dse2): Convert from a global struct to a subclass of
16458 rtl_opt_pass along with...
16459 (pass_data_rtl_dse2): ...new pass_data instance and...
16460 (make_pass_rtl_dse2): ...new function.
16461 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
16462 subclass of rtl_opt_pass along with...
16463 (pass_data_dwarf2_frame): ...new pass_data instance and...
16464 (make_pass_dwarf2_frame): ...new function.
16465 * except.c (pass_set_nothrow_function_flags): Convert from a global
16466 struct to a subclass of rtl_opt_pass along with...
16467 (pass_data_set_nothrow_function_flags): ...new pass_data instance
16469 (make_pass_set_nothrow_function_flags): ...new function.
16470 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
16471 subclass of rtl_opt_pass along with...
16472 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
16474 (make_pass_convert_to_eh_region_ranges): ...new function.
16475 * final.c (pass_compute_alignments): Convert from a global struct to a
16476 subclass of rtl_opt_pass along with...
16477 (pass_data_compute_alignments): ...new pass_data instance and...
16478 (make_pass_compute_alignments): ...new function.
16479 (pass_final): Convert from a global struct to a subclass of
16480 rtl_opt_pass along with...
16481 (pass_data_final): ...new pass_data instance and...
16482 (make_pass_final): ...new function.
16483 (pass_shorten_branches): Convert from a global struct to a subclass of
16484 rtl_opt_pass along with...
16485 (pass_data_shorten_branches): ...new pass_data instance and...
16486 (make_pass_shorten_branches): ...new function.
16487 (pass_clean_state): Convert from a global struct to a subclass of
16488 rtl_opt_pass along with...
16489 (pass_data_clean_state): ...new pass_data instance and...
16490 (make_pass_clean_state): ...new function.
16491 * function.c (pass_instantiate_virtual_regs): Convert from a global
16492 struct to a subclass of rtl_opt_pass along with...
16493 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
16494 (make_pass_instantiate_virtual_regs): ...new function.
16495 (pass_leaf_regs): Convert from a global struct to a subclass of
16496 rtl_opt_pass along with...
16497 (pass_data_leaf_regs): ...new pass_data instance and...
16498 (make_pass_leaf_regs): ...new function.
16499 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
16500 subclass of rtl_opt_pass along with...
16501 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
16503 (make_pass_thread_prologue_and_epilogue): ...new function.
16504 (pass_match_asm_constraints): Convert from a global struct to a
16505 subclass of rtl_opt_pass along with...
16506 (pass_data_match_asm_constraints): ...new pass_data instance and...
16507 (make_pass_match_asm_constraints): ...new function.
16508 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
16509 subclass of rtl_opt_pass along with...
16510 (pass_data_rtl_fwprop): ...new pass_data instance and...
16511 (make_pass_rtl_fwprop): ...new function.
16512 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
16513 rtl_opt_pass along with...
16514 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
16515 (make_pass_rtl_fwprop_addr): ...new function.
16516 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
16517 rtl_opt_pass along with...
16518 (pass_data_rtl_pre): ...new pass_data instance and...
16519 (make_pass_rtl_pre): ...new function.
16520 (pass_rtl_hoist): Convert from a global struct to a subclass of
16521 rtl_opt_pass along with...
16522 (pass_data_rtl_hoist): ...new pass_data instance and...
16523 (make_pass_rtl_hoist): ...new function.
16524 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
16525 subclass of gimple_opt_pass along with...
16526 (pass_data_lower_cf): ...new pass_data instance and...
16527 (make_pass_lower_cf): ...new function.
16528 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
16529 from a global struct to a subclass of gimple_opt_pass along with...
16530 (pass_data_strength_reduction): ...new pass_data instance and...
16531 (make_pass_strength_reduction): ...new function.
16532 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
16533 of rtl_opt_pass along with...
16534 (pass_data_rtl_ifcvt): ...new pass_data instance and...
16535 (make_pass_rtl_ifcvt): ...new function.
16536 (pass_if_after_combine): Convert from a global struct to a subclass of
16537 rtl_opt_pass along with...
16538 (pass_data_if_after_combine): ...new pass_data instance and...
16539 (make_pass_if_after_combine): ...new function.
16540 (pass_if_after_reload): Convert from a global struct to a subclass of
16541 rtl_opt_pass along with...
16542 (pass_data_if_after_reload): ...new pass_data instance and...
16543 (make_pass_if_after_reload): ...new function.
16544 * init-regs.c (pass_initialize_regs): Convert from a global struct to
16545 a subclass of rtl_opt_pass along with...
16546 (pass_data_initialize_regs): ...new pass_data instance and...
16547 (make_pass_initialize_regs): ...new function.
16548 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
16549 of ipa_opt_pass_d along with...
16550 (pass_data_ipa_cp): ...new pass_data instance and...
16551 (make_pass_ipa_cp): ...new function.
16552 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
16553 global struct to a subclass of gimple_opt_pass along with...
16554 (pass_data_inline_parameters): ...new pass_data instance and...
16555 (make_pass_inline_parameters): ...new function.
16556 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
16557 subclass of gimple_opt_pass along with...
16558 (pass_data_early_inline): ...new pass_data instance and...
16559 (make_pass_early_inline): ...new function.
16560 (pass_ipa_inline): Convert from a global struct to a subclass of
16561 ipa_opt_pass_d along with...
16562 (pass_data_ipa_inline): ...new pass_data instance and...
16563 (make_pass_ipa_inline): ...new function.
16564 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
16565 struct to a subclass of gimple_opt_pass along with...
16566 (pass_data_local_pure_const): ...new pass_data instance and...
16567 (make_pass_local_pure_const): ...new function.
16568 (pass_ipa_pure_const): Convert from a global struct to a subclass of
16569 ipa_opt_pass_d along with...
16570 (pass_data_ipa_pure_const): ...new pass_data instance and...
16571 (make_pass_ipa_pure_const): ...new function.
16572 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
16573 to a subclass of ipa_opt_pass_d along with...
16574 (pass_data_ipa_reference): ...new pass_data instance and...
16575 (make_pass_ipa_reference): ...new function.
16576 * ipa-split.c (pass_split_functions): Convert from a global struct to
16577 a subclass of gimple_opt_pass along with...
16578 (pass_data_split_functions): ...new pass_data instance and...
16579 (make_pass_split_functions): ...new function.
16580 (pass_feedback_split_functions): Convert from a global struct to a
16581 subclass of gimple_opt_pass along with...
16582 (pass_data_feedback_split_functions): ...new pass_data instance and...
16583 (make_pass_feedback_split_functions): ...new function.
16584 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
16585 global struct to a subclass of simple_ipa_opt_pass along with...
16586 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
16588 (make_pass_ipa_function_and_variable_visibility): ...new function.
16589 (pass_ipa_free_inline_summary): Convert from a global struct to a
16590 subclass of simple_ipa_opt_pass along with...
16591 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
16592 (make_pass_ipa_free_inline_summary): ...new function.
16593 (pass_ipa_whole_program_visibility): Convert from a global struct to a
16594 subclass of ipa_opt_pass_d along with...
16595 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
16597 (make_pass_ipa_whole_program_visibility): ...new function.
16598 (pass_ipa_profile): Convert from a global struct to a subclass of
16599 ipa_opt_pass_d along with...
16600 (pass_data_ipa_profile): ...new pass_data instance and...
16601 (make_pass_ipa_profile): ...new function.
16602 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
16603 ipa_opt_pass_d along with...
16604 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
16605 (make_pass_ipa_cdtor_merge): ...new function.
16606 * ira.c (pass_ira): Convert from a global struct to a subclass of
16607 rtl_opt_pass along with...
16608 (pass_data_ira): ...new pass_data instance and...
16609 (make_pass_ira): ...new function.
16610 (pass_reload): Convert from a global struct to a subclass of
16611 rtl_opt_pass along with...
16612 (pass_data_reload): ...new pass_data instance and...
16613 (make_pass_reload): ...new function.
16614 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
16615 subclass of rtl_opt_pass along with...
16616 (pass_data_cleanup_barriers): ...new pass_data instance and...
16617 (make_pass_cleanup_barriers): ...new function.
16618 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
16619 of rtl_opt_pass along with...
16620 (pass_data_loop2): ...new pass_data instance and...
16621 (make_pass_loop2): ...new function.
16622 (pass_rtl_loop_init): Convert from a global struct to a subclass of
16623 rtl_opt_pass along with...
16624 (pass_data_rtl_loop_init): ...new pass_data instance and...
16625 (make_pass_rtl_loop_init): ...new function.
16626 (pass_rtl_loop_done): Convert from a global struct to a subclass of
16627 rtl_opt_pass along with...
16628 (pass_data_rtl_loop_done): ...new pass_data instance and...
16629 (make_pass_rtl_loop_done): ...new function.
16630 (pass_rtl_move_loop_invariants): Convert from a global struct to a
16631 subclass of rtl_opt_pass along with...
16632 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
16633 (make_pass_rtl_move_loop_invariants): ...new function.
16634 (pass_rtl_unswitch): Convert from a global struct to a subclass of
16635 rtl_opt_pass along with...
16636 (pass_data_rtl_unswitch): ...new pass_data instance and...
16637 (make_pass_rtl_unswitch): ...new function.
16638 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
16639 subclass of rtl_opt_pass along with...
16640 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
16642 (make_pass_rtl_unroll_and_peel_loops): ...new function.
16643 (pass_rtl_doloop): Convert from a global struct to a subclass of
16644 rtl_opt_pass along with...
16645 (pass_data_rtl_doloop): ...new pass_data instance and...
16646 (make_pass_rtl_doloop): ...new function.
16647 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
16648 a subclass of rtl_opt_pass along with...
16649 (pass_data_lower_subreg): ...new pass_data instance and...
16650 (make_pass_lower_subreg): ...new function.
16651 (pass_lower_subreg2): Convert from a global struct to a subclass of
16652 rtl_opt_pass along with...
16653 (pass_data_lower_subreg2): ...new pass_data instance and...
16654 (make_pass_lower_subreg2): ...new function.
16655 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
16656 struct to a subclass of ipa_opt_pass_d along with...
16657 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
16658 (make_pass_ipa_lto_gimple_out): ...new function.
16659 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
16660 of ipa_opt_pass_d along with...
16661 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
16662 (make_pass_ipa_lto_finish_out): ...new function.
16663 * mode-switching.c (pass_mode_switching): Convert from a global struct
16664 to a subclass of rtl_opt_pass along with...
16665 (pass_data_mode_switching): ...new pass_data instance and...
16666 (make_pass_mode_switching): ...new function.
16667 * modulo-sched.c (pass_sms): Convert from a global struct to a
16668 subclass of rtl_opt_pass along with...
16669 (pass_data_sms): ...new pass_data instance and...
16670 (make_pass_sms): ...new function.
16671 * omp-low.c (pass_expand_omp): Convert from a global struct to a
16672 subclass of gimple_opt_pass along with...
16673 (pass_data_expand_omp): ...new pass_data instance and...
16674 (make_pass_expand_omp): ...new function.
16675 (pass_lower_omp): Convert from a global struct to a subclass of
16676 gimple_opt_pass along with...
16677 (pass_data_lower_omp): ...new pass_data instance and...
16678 (make_pass_lower_omp): ...new function.
16679 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
16680 of gimple_opt_pass along with...
16681 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
16682 (make_pass_diagnose_omp_blocks): ...new function.
16683 * passes.c (pass_early_local_passes): Convert from a global struct to
16684 a subclass of simple_ipa_opt_pass along with...
16685 (pass_data_early_local_passes): ...new pass_data instance and...
16686 (make_pass_early_local_passes): ...new function.
16687 (pass_all_early_optimizations): Convert from a global struct to a
16688 subclass of gimple_opt_pass along with...
16689 (pass_data_all_early_optimizations): ...new pass_data instance and...
16690 (make_pass_all_early_optimizations): ...new function.
16691 (pass_all_optimizations): Convert from a global struct to a subclass
16692 of gimple_opt_pass along with...
16693 (pass_data_all_optimizations): ...new pass_data instance and...
16694 (make_pass_all_optimizations): ...new function.
16695 (pass_all_optimizations_g): Convert from a global struct to a subclass
16696 of gimple_opt_pass along with...
16697 (pass_data_all_optimizations_g): ...new pass_data instance and...
16698 (make_pass_all_optimizations_g): ...new function.
16699 (pass_rest_of_compilation): Convert from a global struct to a subclass
16700 of rtl_opt_pass along with...
16701 (pass_data_rest_of_compilation): ...new pass_data instance and...
16702 (make_pass_rest_of_compilation): ...new function.
16703 (pass_postreload): Convert from a global struct to a subclass of
16704 rtl_opt_pass along with...
16705 (pass_data_postreload): ...new pass_data instance and...
16706 (make_pass_postreload): ...new function.
16707 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
16708 subclass of rtl_opt_pass along with...
16709 (pass_data_gcse2): ...new pass_data instance and...
16710 (make_pass_gcse2): ...new function.
16711 * postreload.c (pass_postreload_cse): Convert from a global struct to
16712 a subclass of rtl_opt_pass along with...
16713 (pass_data_postreload_cse): ...new pass_data instance and...
16714 (make_pass_postreload_cse): ...new function.
16715 * predict.c (pass_profile): Convert from a global struct to a subclass
16716 of gimple_opt_pass along with...
16717 (pass_data_profile): ...new pass_data instance and...
16718 (make_pass_profile): ...new function.
16719 (pass_strip_predict_hints): Convert from a global struct to a subclass
16720 of gimple_opt_pass along with...
16721 (pass_data_strip_predict_hints): ...new pass_data instance and...
16722 (make_pass_strip_predict_hints): ...new function.
16723 * recog.c (pass_peephole2): Convert from a global struct to a subclass
16724 of rtl_opt_pass along with...
16725 (pass_data_peephole2): ...new pass_data instance and...
16726 (make_pass_peephole2): ...new function.
16727 (pass_split_all_insns): Convert from a global struct to a subclass of
16728 rtl_opt_pass along with...
16729 (pass_data_split_all_insns): ...new pass_data instance and...
16730 (make_pass_split_all_insns): ...new function.
16731 (pass_split_after_reload): Convert from a global struct to a subclass
16732 of rtl_opt_pass along with...
16733 (pass_data_split_after_reload): ...new pass_data instance and...
16734 (make_pass_split_after_reload): ...new function.
16735 (pass_split_before_regstack): Convert from a global struct to a
16736 subclass of rtl_opt_pass along with...
16737 (pass_data_split_before_regstack): ...new pass_data instance and...
16738 (make_pass_split_before_regstack): ...new function.
16739 (pass_split_before_sched2): Convert from a global struct to a subclass
16740 of rtl_opt_pass along with...
16741 (pass_data_split_before_sched2): ...new pass_data instance and...
16742 (make_pass_split_before_sched2): ...new function.
16743 (pass_split_for_shorten_branches): Convert from a global struct to a
16744 subclass of rtl_opt_pass along with...
16745 (pass_data_split_for_shorten_branches): ...new pass_data instance
16747 (make_pass_split_for_shorten_branches): ...new function.
16748 * ree.c (pass_ree): Convert from a global struct to a subclass of
16749 rtl_opt_pass along with...
16750 (pass_data_ree): ...new pass_data instance and...
16751 (make_pass_ree): ...new function.
16752 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
16753 subclass of rtl_opt_pass along with...
16754 (pass_data_stack_regs): ...new pass_data instance and...
16755 (make_pass_stack_regs): ...new function.
16756 (pass_stack_regs_run): Convert from a global struct to a subclass of
16757 rtl_opt_pass along with...
16758 (pass_data_stack_regs_run): ...new pass_data instance and...
16759 (make_pass_stack_regs_run): ...new function.
16760 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
16761 subclass of rtl_opt_pass along with...
16762 (pass_data_cprop_hardreg): ...new pass_data instance and...
16763 (make_pass_cprop_hardreg): ...new function.
16764 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
16765 subclass of rtl_opt_pass along with...
16766 (pass_data_reginfo_init): ...new pass_data instance and...
16767 (make_pass_reginfo_init): ...new function.
16768 * regmove.c (pass_regmove): Convert from a global struct to a subclass
16769 of rtl_opt_pass along with...
16770 (pass_data_regmove): ...new pass_data instance and...
16771 (make_pass_regmove): ...new function.
16772 * regrename.c (pass_regrename): Convert from a global struct to a
16773 subclass of rtl_opt_pass along with...
16774 (pass_data_regrename): ...new pass_data instance and...
16775 (make_pass_regrename): ...new function.
16776 * reorg.c (pass_delay_slots): Convert from a global struct to a
16777 subclass of rtl_opt_pass along with...
16778 (pass_data_delay_slots): ...new pass_data instance and...
16779 (make_pass_delay_slots): ...new function.
16780 (pass_machine_reorg): Convert from a global struct to a subclass of
16781 rtl_opt_pass along with...
16782 (pass_data_machine_reorg): ...new pass_data instance and...
16783 (make_pass_machine_reorg): ...new function.
16784 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
16785 of rtl_opt_pass along with...
16786 (pass_data_sched): ...new pass_data instance and...
16787 (make_pass_sched): ...new function.
16788 (pass_sched2): Convert from a global struct to a subclass of
16789 rtl_opt_pass along with...
16790 (pass_data_sched2): ...new pass_data instance and...
16791 (make_pass_sched2): ...new function.
16792 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
16793 to a subclass of rtl_opt_pass along with...
16794 (pass_data_stack_ptr_mod): ...new pass_data instance and...
16795 (make_pass_stack_ptr_mod): ...new function.
16796 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
16797 to a subclass of rtl_opt_pass along with...
16798 (pass_data_rtl_store_motion): ...new pass_data instance and...
16799 (make_pass_rtl_store_motion): ...new function.
16800 * tracer.c (pass_tracer): Convert from a global struct to a subclass
16801 of gimple_opt_pass along with...
16802 (pass_data_tracer): ...new pass_data instance and...
16803 (make_pass_tracer): ...new function.
16804 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
16805 to a subclass of gimple_opt_pass along with...
16806 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
16807 (make_pass_diagnose_tm_blocks): ...new function.
16808 (pass_lower_tm): Convert from a global struct to a subclass of
16809 gimple_opt_pass along with...
16810 (pass_data_lower_tm): ...new pass_data instance and...
16811 (make_pass_lower_tm): ...new function.
16812 (pass_tm_init): Convert from a global struct to a subclass of
16813 gimple_opt_pass along with...
16814 (pass_data_tm_init): ...new pass_data instance and...
16815 (make_pass_tm_init): ...new function.
16816 (pass_tm_mark): Convert from a global struct to a subclass of
16817 gimple_opt_pass along with...
16818 (pass_data_tm_mark): ...new pass_data instance and...
16819 (make_pass_tm_mark): ...new function.
16820 (pass_tm_edges): Convert from a global struct to a subclass of
16821 gimple_opt_pass along with...
16822 (pass_data_tm_edges): ...new pass_data instance and...
16823 (make_pass_tm_edges): ...new function.
16824 (pass_tm_memopt): Convert from a global struct to a subclass of
16825 gimple_opt_pass along with...
16826 (pass_data_tm_memopt): ...new pass_data instance and...
16827 (make_pass_tm_memopt): ...new function.
16828 (pass_ipa_tm): Convert from a global struct to a subclass of
16829 simple_ipa_opt_pass along with...
16830 (pass_data_ipa_tm): ...new pass_data instance and...
16831 (make_pass_ipa_tm): ...new function.
16832 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
16833 subclass of gimple_opt_pass along with...
16834 (pass_data_call_cdce): ...new pass_data instance and...
16835 (make_pass_call_cdce): ...new function.
16836 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
16837 subclass of gimple_opt_pass along with...
16838 (pass_data_build_cfg): ...new pass_data instance and...
16839 (make_pass_build_cfg): ...new function.
16840 (pass_split_crit_edges): Convert from a global struct to a subclass of
16841 gimple_opt_pass along with...
16842 (pass_data_split_crit_edges): ...new pass_data instance and...
16843 (make_pass_split_crit_edges): ...new function.
16844 (pass_warn_function_return): Convert from a global struct to a
16845 subclass of gimple_opt_pass along with...
16846 (pass_data_warn_function_return): ...new pass_data instance and...
16847 (make_pass_warn_function_return): ...new function.
16848 (pass_warn_function_noreturn): Convert from a global struct to a
16849 subclass of gimple_opt_pass along with...
16850 (pass_data_warn_function_noreturn): ...new pass_data instance and...
16851 (make_pass_warn_function_noreturn): ...new function.
16852 (pass_warn_unused_result): Convert from a global struct to a subclass
16853 of gimple_opt_pass along with...
16854 (pass_data_warn_unused_result): ...new pass_data instance and...
16855 (make_pass_warn_unused_result): ...new function.
16856 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
16857 a subclass of gimple_opt_pass along with...
16858 (pass_data_merge_phi): ...new pass_data instance and...
16859 (make_pass_merge_phi): ...new function.
16860 * tree-complex.c (pass_lower_complex): Convert from a global struct to
16861 a subclass of gimple_opt_pass along with...
16862 (pass_data_lower_complex): ...new pass_data instance and...
16863 (make_pass_lower_complex): ...new function.
16864 (pass_lower_complex_O0): Convert from a global struct to a subclass of
16865 gimple_opt_pass along with...
16866 (pass_data_lower_complex_O0): ...new pass_data instance and...
16867 (make_pass_lower_complex_O0): ...new function.
16868 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
16869 subclass of gimple_opt_pass along with...
16870 (pass_data_lower_eh): ...new pass_data instance and...
16871 (make_pass_lower_eh): ...new function.
16872 (pass_refactor_eh): Convert from a global struct to a subclass of
16873 gimple_opt_pass along with...
16874 (pass_data_refactor_eh): ...new pass_data instance and...
16875 (make_pass_refactor_eh): ...new function.
16876 (pass_lower_resx): Convert from a global struct to a subclass of
16877 gimple_opt_pass along with...
16878 (pass_data_lower_resx): ...new pass_data instance and...
16879 (make_pass_lower_resx): ...new function.
16880 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
16881 of gimple_opt_pass along with...
16882 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
16883 (make_pass_lower_eh_dispatch): ...new function.
16884 (pass_cleanup_eh): Convert from a global struct to a subclass of
16885 gimple_opt_pass along with...
16886 (pass_data_cleanup_eh): ...new pass_data instance and...
16887 (make_pass_cleanup_eh): ...new function.
16888 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
16889 to a subclass of simple_ipa_opt_pass along with...
16890 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
16891 (make_pass_ipa_lower_emutls): ...new function.
16892 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
16893 a subclass of gimple_opt_pass along with...
16894 (pass_data_if_conversion): ...new pass_data instance and...
16895 (make_pass_if_conversion): ...new function.
16896 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
16897 subclass of gimple_opt_pass along with...
16898 (pass_data_build_ssa): ...new pass_data instance and...
16899 (make_pass_build_ssa): ...new function.
16900 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
16901 global struct to a subclass of gimple_opt_pass along with...
16902 (pass_data_loop_distribution): ...new pass_data instance and...
16903 (make_pass_loop_distribution): ...new function.
16904 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
16905 subclass of gimple_opt_pass along with...
16906 (pass_data_mudflap_1): ...new pass_data instance and...
16907 (make_pass_mudflap_1): ...new function.
16908 (pass_mudflap_2): Convert from a global struct to a subclass of
16909 gimple_opt_pass along with...
16910 (pass_data_mudflap_2): ...new pass_data instance and...
16911 (make_pass_mudflap_2): ...new function.
16912 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
16913 subclass of gimple_opt_pass along with...
16914 (pass_data_mudflap_1): ...new pass_data instance and...
16915 (make_pass_mudflap_1): ...new function.
16916 (pass_mudflap_2): Convert from a global struct to a subclass of
16917 gimple_opt_pass along with...
16918 (pass_data_mudflap_2): ...new pass_data instance and...
16919 (make_pass_mudflap_2): ...new function.
16920 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
16921 gimple_opt_pass along with...
16922 (pass_data_nrv): ...new pass_data instance and...
16923 (make_pass_nrv): ...new function.
16924 (pass_return_slot): Convert from a global struct to a subclass of
16925 gimple_opt_pass along with...
16926 (pass_data_return_slot): ...new pass_data instance and...
16927 (make_pass_return_slot): ...new function.
16928 * tree-object-size.c (pass_object_sizes): Convert from a global struct
16929 to a subclass of gimple_opt_pass along with...
16930 (pass_data_object_sizes): ...new pass_data instance and...
16931 (make_pass_object_sizes): ...new function.
16932 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
16933 global struct to a subclass of gimple_opt_pass along with...
16934 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
16936 (make_pass_cleanup_cfg_post_optimizing): ...new function.
16937 (pass_fixup_cfg): Convert from a global struct to a subclass of
16938 gimple_opt_pass along with...
16939 (pass_data_fixup_cfg): ...new pass_data instance and...
16940 (make_pass_fixup_cfg): ...new function.
16941 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
16942 (make_pass_mudflap_1): ...new function.
16943 (pass_mudflap_2): Replace declaration with that of...
16944 (make_pass_mudflap_2): ...new function.
16945 (pass_asan): Replace declaration with that of...
16946 (make_pass_asan): ...new function.
16947 (pass_asan_O0): Replace declaration with that of...
16948 (make_pass_asan_O0): ...new function.
16949 (pass_tsan): Replace declaration with that of...
16950 (make_pass_tsan): ...new function.
16951 (pass_tsan_O0): Replace declaration with that of...
16952 (make_pass_tsan_O0): ...new function.
16953 (pass_lower_cf): Replace declaration with that of...
16954 (make_pass_lower_cf): ...new function.
16955 (pass_refactor_eh): Replace declaration with that of...
16956 (make_pass_refactor_eh): ...new function.
16957 (pass_lower_eh): Replace declaration with that of...
16958 (make_pass_lower_eh): ...new function.
16959 (pass_lower_eh_dispatch): Replace declaration with that of...
16960 (make_pass_lower_eh_dispatch): ...new function.
16961 (pass_lower_resx): Replace declaration with that of...
16962 (make_pass_lower_resx): ...new function.
16963 (pass_build_cfg): Replace declaration with that of...
16964 (make_pass_build_cfg): ...new function.
16965 (pass_early_tree_profile): Replace declaration with that of...
16966 (make_pass_early_tree_profile): ...new function.
16967 (pass_cleanup_eh): Replace declaration with that of...
16968 (make_pass_cleanup_eh): ...new function.
16969 (pass_sra): Replace declaration with that of...
16970 (make_pass_sra): ...new function.
16971 (pass_sra_early): Replace declaration with that of...
16972 (make_pass_sra_early): ...new function.
16973 (pass_early_ipa_sra): Replace declaration with that of...
16974 (make_pass_early_ipa_sra): ...new function.
16975 (pass_tail_recursion): Replace declaration with that of...
16976 (make_pass_tail_recursion): ...new function.
16977 (pass_tail_calls): Replace declaration with that of...
16978 (make_pass_tail_calls): ...new function.
16979 (pass_tree_loop): Replace declaration with that of...
16980 (make_pass_tree_loop): ...new function.
16981 (pass_tree_loop_init): Replace declaration with that of...
16982 (make_pass_tree_loop_init): ...new function.
16983 (pass_lim): Replace declaration with that of...
16984 (make_pass_lim): ...new function.
16985 (pass_tree_unswitch): Replace declaration with that of...
16986 (make_pass_tree_unswitch): ...new function.
16987 (pass_predcom): Replace declaration with that of...
16988 (make_pass_predcom): ...new function.
16989 (pass_iv_canon): Replace declaration with that of...
16990 (make_pass_iv_canon): ...new function.
16991 (pass_scev_cprop): Replace declaration with that of...
16992 (make_pass_scev_cprop): ...new function.
16993 (pass_empty_loop): Replace declaration with that of...
16994 (make_pass_empty_loop): ...new function.
16995 (pass_record_bounds): Replace declaration with that of...
16996 (make_pass_record_bounds): ...new function.
16997 (pass_graphite): Replace declaration with that of...
16998 (make_pass_graphite): ...new function.
16999 (pass_graphite_transforms): Replace declaration with that of...
17000 (make_pass_graphite_transforms): ...new function.
17001 (pass_if_conversion): Replace declaration with that of...
17002 (make_pass_if_conversion): ...new function.
17003 (pass_loop_distribution): Replace declaration with that of...
17004 (make_pass_loop_distribution): ...new function.
17005 (pass_vectorize): Replace declaration with that of...
17006 (make_pass_vectorize): ...new function.
17007 (pass_slp_vectorize): Replace declaration with that of...
17008 (make_pass_slp_vectorize): ...new function.
17009 (pass_complete_unroll): Replace declaration with that of...
17010 (make_pass_complete_unroll): ...new function.
17011 (pass_complete_unrolli): Replace declaration with that of...
17012 (make_pass_complete_unrolli): ...new function.
17013 (pass_parallelize_loops): Replace declaration with that of...
17014 (make_pass_parallelize_loops): ...new function.
17015 (pass_loop_prefetch): Replace declaration with that of...
17016 (make_pass_loop_prefetch): ...new function.
17017 (pass_iv_optimize): Replace declaration with that of...
17018 (make_pass_iv_optimize): ...new function.
17019 (pass_tree_loop_done): Replace declaration with that of...
17020 (make_pass_tree_loop_done): ...new function.
17021 (pass_ch): Replace declaration with that of...
17022 (make_pass_ch): ...new function.
17023 (pass_ccp): Replace declaration with that of...
17024 (make_pass_ccp): ...new function.
17025 (pass_phi_only_cprop): Replace declaration with that of...
17026 (make_pass_phi_only_cprop): ...new function.
17027 (pass_build_ssa): Replace declaration with that of...
17028 (make_pass_build_ssa): ...new function.
17029 (pass_build_alias): Replace declaration with that of...
17030 (make_pass_build_alias): ...new function.
17031 (pass_build_ealias): Replace declaration with that of...
17032 (make_pass_build_ealias): ...new function.
17033 (pass_dominator): Replace declaration with that of...
17034 (make_pass_dominator): ...new function.
17035 (pass_dce): Replace declaration with that of...
17036 (make_pass_dce): ...new function.
17037 (pass_dce_loop): Replace declaration with that of...
17038 (make_pass_dce_loop): ...new function.
17039 (pass_cd_dce): Replace declaration with that of...
17040 (make_pass_cd_dce): ...new function.
17041 (pass_call_cdce): Replace declaration with that of...
17042 (make_pass_call_cdce): ...new function.
17043 (pass_merge_phi): Replace declaration with that of...
17044 (make_pass_merge_phi): ...new function.
17045 (pass_split_crit_edges): Replace declaration with that of...
17046 (make_pass_split_crit_edges): ...new function.
17047 (pass_pre): Replace declaration with that of...
17048 (make_pass_pre): ...new function.
17049 (pass_profile): Replace declaration with that of...
17050 (make_pass_profile): ...new function.
17051 (pass_strip_predict_hints): Replace declaration with that of...
17052 (make_pass_strip_predict_hints): ...new function.
17053 (pass_lower_complex_O0): Replace declaration with that of...
17054 (make_pass_lower_complex_O0): ...new function.
17055 (pass_lower_complex): Replace declaration with that of...
17056 (make_pass_lower_complex): ...new function.
17057 (pass_lower_vector): Replace declaration with that of...
17058 (make_pass_lower_vector): ...new function.
17059 (pass_lower_vector_ssa): Replace declaration with that of...
17060 (make_pass_lower_vector_ssa): ...new function.
17061 (pass_lower_omp): Replace declaration with that of...
17062 (make_pass_lower_omp): ...new function.
17063 (pass_diagnose_omp_blocks): Replace declaration with that of...
17064 (make_pass_diagnose_omp_blocks): ...new function.
17065 (pass_expand_omp): Replace declaration with that of...
17066 (make_pass_expand_omp): ...new function.
17067 (pass_expand_omp_ssa): Replace declaration with that of...
17068 (make_pass_expand_omp_ssa): ...new function.
17069 (pass_object_sizes): Replace declaration with that of...
17070 (make_pass_object_sizes): ...new function.
17071 (pass_strlen): Replace declaration with that of...
17072 (make_pass_strlen): ...new function.
17073 (pass_fold_builtins): Replace declaration with that of...
17074 (make_pass_fold_builtins): ...new function.
17075 (pass_stdarg): Replace declaration with that of...
17076 (make_pass_stdarg): ...new function.
17077 (pass_early_warn_uninitialized): Replace declaration with that of...
17078 (make_pass_early_warn_uninitialized): ...new function.
17079 (pass_late_warn_uninitialized): Replace declaration with that of...
17080 (make_pass_late_warn_uninitialized): ...new function.
17081 (pass_cse_reciprocals): Replace declaration with that of...
17082 (make_pass_cse_reciprocals): ...new function.
17083 (pass_cse_sincos): Replace declaration with that of...
17084 (make_pass_cse_sincos): ...new function.
17085 (pass_optimize_bswap): Replace declaration with that of...
17086 (make_pass_optimize_bswap): ...new function.
17087 (pass_optimize_widening_mul): Replace declaration with that of...
17088 (make_pass_optimize_widening_mul): ...new function.
17089 (pass_warn_function_return): Replace declaration with that of...
17090 (make_pass_warn_function_return): ...new function.
17091 (pass_warn_function_noreturn): Replace declaration with that of...
17092 (make_pass_warn_function_noreturn): ...new function.
17093 (pass_cselim): Replace declaration with that of...
17094 (make_pass_cselim): ...new function.
17095 (pass_phiopt): Replace declaration with that of...
17096 (make_pass_phiopt): ...new function.
17097 (pass_forwprop): Replace declaration with that of...
17098 (make_pass_forwprop): ...new function.
17099 (pass_phiprop): Replace declaration with that of...
17100 (make_pass_phiprop): ...new function.
17101 (pass_tree_ifcombine): Replace declaration with that of...
17102 (make_pass_tree_ifcombine): ...new function.
17103 (pass_dse): Replace declaration with that of...
17104 (make_pass_dse): ...new function.
17105 (pass_nrv): Replace declaration with that of...
17106 (make_pass_nrv): ...new function.
17107 (pass_rename_ssa_copies): Replace declaration with that of...
17108 (make_pass_rename_ssa_copies): ...new function.
17109 (pass_sink_code): Replace declaration with that of...
17110 (make_pass_sink_code): ...new function.
17111 (pass_fre): Replace declaration with that of...
17112 (make_pass_fre): ...new function.
17113 (pass_check_data_deps): Replace declaration with that of...
17114 (make_pass_check_data_deps): ...new function.
17115 (pass_copy_prop): Replace declaration with that of...
17116 (make_pass_copy_prop): ...new function.
17117 (pass_vrp): Replace declaration with that of...
17118 (make_pass_vrp): ...new function.
17119 (pass_uncprop): Replace declaration with that of...
17120 (make_pass_uncprop): ...new function.
17121 (pass_return_slot): Replace declaration with that of...
17122 (make_pass_return_slot): ...new function.
17123 (pass_reassoc): Replace declaration with that of...
17124 (make_pass_reassoc): ...new function.
17125 (pass_rebuild_cgraph_edges): Replace declaration with that of...
17126 (make_pass_rebuild_cgraph_edges): ...new function.
17127 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
17128 (make_pass_remove_cgraph_callee_edges): ...new function.
17129 (pass_build_cgraph_edges): Replace declaration with that of...
17130 (make_pass_build_cgraph_edges): ...new function.
17131 (pass_local_pure_const): Replace declaration with that of...
17132 (make_pass_local_pure_const): ...new function.
17133 (pass_tracer): Replace declaration with that of...
17134 (make_pass_tracer): ...new function.
17135 (pass_warn_unused_result): Replace declaration with that of...
17136 (make_pass_warn_unused_result): ...new function.
17137 (pass_diagnose_tm_blocks): Replace declaration with that of...
17138 (make_pass_diagnose_tm_blocks): ...new function.
17139 (pass_lower_tm): Replace declaration with that of...
17140 (make_pass_lower_tm): ...new function.
17141 (pass_tm_init): Replace declaration with that of...
17142 (make_pass_tm_init): ...new function.
17143 (pass_tm_mark): Replace declaration with that of...
17144 (make_pass_tm_mark): ...new function.
17145 (pass_tm_memopt): Replace declaration with that of...
17146 (make_pass_tm_memopt): ...new function.
17147 (pass_tm_edges): Replace declaration with that of...
17148 (make_pass_tm_edges): ...new function.
17149 (pass_split_functions): Replace declaration with that of...
17150 (make_pass_split_functions): ...new function.
17151 (pass_feedback_split_functions): Replace declaration with that of...
17152 (make_pass_feedback_split_functions): ...new function.
17153 (pass_strength_reduction): Replace declaration with that of...
17154 (make_pass_strength_reduction): ...new function.
17155 (pass_ipa_lower_emutls): Replace declaration with that of...
17156 (make_pass_ipa_lower_emutls): ...new function.
17157 (pass_ipa_function_and_variable_visibility): Replace declaration with
17159 (make_pass_ipa_function_and_variable_visibility): ...new function.
17160 (pass_ipa_tree_profile): Replace declaration with that of...
17161 (make_pass_ipa_tree_profile): ...new function.
17162 (pass_early_local_passes): Replace declaration with that of...
17163 (make_pass_early_local_passes): ...new function.
17164 (pass_ipa_whole_program_visibility): Replace declaration with that
17166 (make_pass_ipa_whole_program_visibility): ...new function.
17167 (pass_ipa_lto_gimple_out): Replace declaration with that of...
17168 (make_pass_ipa_lto_gimple_out): ...new function.
17169 (pass_ipa_increase_alignment): Replace declaration with that of...
17170 (make_pass_ipa_increase_alignment): ...new function.
17171 (pass_ipa_inline): Replace declaration with that of...
17172 (make_pass_ipa_inline): ...new function.
17173 (pass_ipa_free_lang_data): Replace declaration with that of...
17174 (make_pass_ipa_free_lang_data): ...new function.
17175 (pass_ipa_free_inline_summary): Replace declaration with that of...
17176 (make_pass_ipa_free_inline_summary): ...new function.
17177 (pass_ipa_cp): Replace declaration with that of...
17178 (make_pass_ipa_cp): ...new function.
17179 (pass_ipa_reference): Replace declaration with that of...
17180 (make_pass_ipa_reference): ...new function.
17181 (pass_ipa_pure_const): Replace declaration with that of...
17182 (make_pass_ipa_pure_const): ...new function.
17183 (pass_ipa_pta): Replace declaration with that of...
17184 (make_pass_ipa_pta): ...new function.
17185 (pass_ipa_lto_finish_out): Replace declaration with that of...
17186 (make_pass_ipa_lto_finish_out): ...new function.
17187 (pass_ipa_tm): Replace declaration with that of...
17188 (make_pass_ipa_tm): ...new function.
17189 (pass_ipa_profile): Replace declaration with that of...
17190 (make_pass_ipa_profile): ...new function.
17191 (pass_ipa_cdtor_merge): Replace declaration with that of...
17192 (make_pass_ipa_cdtor_merge): ...new function.
17193 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
17195 (make_pass_cleanup_cfg_post_optimizing): ...new function.
17196 (pass_init_datastructures): Replace declaration with that of...
17197 (make_pass_init_datastructures): ...new function.
17198 (pass_fixup_cfg): Replace declaration with that of...
17199 (make_pass_fixup_cfg): ...new function.
17200 (pass_expand): Replace declaration with that of...
17201 (make_pass_expand): ...new function.
17202 (pass_instantiate_virtual_regs): Replace declaration with that of...
17203 (make_pass_instantiate_virtual_regs): ...new function.
17204 (pass_rtl_fwprop): Replace declaration with that of...
17205 (make_pass_rtl_fwprop): ...new function.
17206 (pass_rtl_fwprop_addr): Replace declaration with that of...
17207 (make_pass_rtl_fwprop_addr): ...new function.
17208 (pass_jump): Replace declaration with that of...
17209 (make_pass_jump): ...new function.
17210 (pass_jump2): Replace declaration with that of...
17211 (make_pass_jump2): ...new function.
17212 (pass_lower_subreg): Replace declaration with that of...
17213 (make_pass_lower_subreg): ...new function.
17214 (pass_cse): Replace declaration with that of...
17215 (make_pass_cse): ...new function.
17216 (pass_fast_rtl_dce): Replace declaration with that of...
17217 (make_pass_fast_rtl_dce): ...new function.
17218 (pass_ud_rtl_dce): Replace declaration with that of...
17219 (make_pass_ud_rtl_dce): ...new function.
17220 (pass_rtl_dce): Replace declaration with that of...
17221 (make_pass_rtl_dce): ...new function.
17222 (pass_rtl_dse1): Replace declaration with that of...
17223 (make_pass_rtl_dse1): ...new function.
17224 (pass_rtl_dse2): Replace declaration with that of...
17225 (make_pass_rtl_dse2): ...new function.
17226 (pass_rtl_dse3): Replace declaration with that of...
17227 (make_pass_rtl_dse3): ...new function.
17228 (pass_rtl_cprop): Replace declaration with that of...
17229 (make_pass_rtl_cprop): ...new function.
17230 (pass_rtl_pre): Replace declaration with that of...
17231 (make_pass_rtl_pre): ...new function.
17232 (pass_rtl_hoist): Replace declaration with that of...
17233 (make_pass_rtl_hoist): ...new function.
17234 (pass_rtl_store_motion): Replace declaration with that of...
17235 (make_pass_rtl_store_motion): ...new function.
17236 (pass_cse_after_global_opts): Replace declaration with that of...
17237 (make_pass_cse_after_global_opts): ...new function.
17238 (pass_rtl_ifcvt): Replace declaration with that of...
17239 (make_pass_rtl_ifcvt): ...new function.
17240 (pass_into_cfg_layout_mode): Replace declaration with that of...
17241 (make_pass_into_cfg_layout_mode): ...new function.
17242 (pass_outof_cfg_layout_mode): Replace declaration with that of...
17243 (make_pass_outof_cfg_layout_mode): ...new function.
17244 (pass_loop2): Replace declaration with that of...
17245 (make_pass_loop2): ...new function.
17246 (pass_rtl_loop_init): Replace declaration with that of...
17247 (make_pass_rtl_loop_init): ...new function.
17248 (pass_rtl_move_loop_invariants): Replace declaration with that of...
17249 (make_pass_rtl_move_loop_invariants): ...new function.
17250 (pass_rtl_unswitch): Replace declaration with that of...
17251 (make_pass_rtl_unswitch): ...new function.
17252 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
17253 (make_pass_rtl_unroll_and_peel_loops): ...new function.
17254 (pass_rtl_doloop): Replace declaration with that of...
17255 (make_pass_rtl_doloop): ...new function.
17256 (pass_rtl_loop_done): Replace declaration with that of...
17257 (make_pass_rtl_loop_done): ...new function.
17258 (pass_web): Replace declaration with that of...
17259 (make_pass_web): ...new function.
17260 (pass_cse2): Replace declaration with that of...
17261 (make_pass_cse2): ...new function.
17262 (pass_df_initialize_opt): Replace declaration with that of...
17263 (make_pass_df_initialize_opt): ...new function.
17264 (pass_df_initialize_no_opt): Replace declaration with that of...
17265 (make_pass_df_initialize_no_opt): ...new function.
17266 (pass_reginfo_init): Replace declaration with that of...
17267 (make_pass_reginfo_init): ...new function.
17268 (pass_inc_dec): Replace declaration with that of...
17269 (make_pass_inc_dec): ...new function.
17270 (pass_stack_ptr_mod): Replace declaration with that of...
17271 (make_pass_stack_ptr_mod): ...new function.
17272 (pass_initialize_regs): Replace declaration with that of...
17273 (make_pass_initialize_regs): ...new function.
17274 (pass_combine): Replace declaration with that of...
17275 (make_pass_combine): ...new function.
17276 (pass_if_after_combine): Replace declaration with that of...
17277 (make_pass_if_after_combine): ...new function.
17278 (pass_ree): Replace declaration with that of...
17279 (make_pass_ree): ...new function.
17280 (pass_partition_blocks): Replace declaration with that of...
17281 (make_pass_partition_blocks): ...new function.
17282 (pass_match_asm_constraints): Replace declaration with that of...
17283 (make_pass_match_asm_constraints): ...new function.
17284 (pass_regmove): Replace declaration with that of...
17285 (make_pass_regmove): ...new function.
17286 (pass_split_all_insns): Replace declaration with that of...
17287 (make_pass_split_all_insns): ...new function.
17288 (pass_fast_rtl_byte_dce): Replace declaration with that of...
17289 (make_pass_fast_rtl_byte_dce): ...new function.
17290 (pass_lower_subreg2): Replace declaration with that of...
17291 (make_pass_lower_subreg2): ...new function.
17292 (pass_mode_switching): Replace declaration with that of...
17293 (make_pass_mode_switching): ...new function.
17294 (pass_sms): Replace declaration with that of...
17295 (make_pass_sms): ...new function.
17296 (pass_sched): Replace declaration with that of...
17297 (make_pass_sched): ...new function.
17298 (pass_ira): Replace declaration with that of...
17299 (make_pass_ira): ...new function.
17300 (pass_reload): Replace declaration with that of...
17301 (make_pass_reload): ...new function.
17302 (pass_clean_state): Replace declaration with that of...
17303 (make_pass_clean_state): ...new function.
17304 (pass_branch_prob): Replace declaration with that of...
17305 (make_pass_branch_prob): ...new function.
17306 (pass_value_profile_transformations): Replace declaration with that
17308 (make_pass_value_profile_transformations): ...new function.
17309 (pass_postreload_cse): Replace declaration with that of...
17310 (make_pass_postreload_cse): ...new function.
17311 (pass_gcse2): Replace declaration with that of...
17312 (make_pass_gcse2): ...new function.
17313 (pass_split_after_reload): Replace declaration with that of...
17314 (make_pass_split_after_reload): ...new function.
17315 (pass_branch_target_load_optimize1): Replace declaration with that
17317 (make_pass_branch_target_load_optimize1): ...new function.
17318 (pass_thread_prologue_and_epilogue): Replace declaration with that
17320 (make_pass_thread_prologue_and_epilogue): ...new function.
17321 (pass_stack_adjustments): Replace declaration with that of...
17322 (make_pass_stack_adjustments): ...new function.
17323 (pass_peephole2): Replace declaration with that of...
17324 (make_pass_peephole2): ...new function.
17325 (pass_if_after_reload): Replace declaration with that of...
17326 (make_pass_if_after_reload): ...new function.
17327 (pass_regrename): Replace declaration with that of...
17328 (make_pass_regrename): ...new function.
17329 (pass_cprop_hardreg): Replace declaration with that of...
17330 (make_pass_cprop_hardreg): ...new function.
17331 (pass_reorder_blocks): Replace declaration with that of...
17332 (make_pass_reorder_blocks): ...new function.
17333 (pass_branch_target_load_optimize2): Replace declaration with that
17335 (make_pass_branch_target_load_optimize2): ...new function.
17336 (pass_leaf_regs): Replace declaration with that of...
17337 (make_pass_leaf_regs): ...new function.
17338 (pass_split_before_sched2): Replace declaration with that of...
17339 (make_pass_split_before_sched2): ...new function.
17340 (pass_compare_elim_after_reload): Replace declaration with that of...
17341 (make_pass_compare_elim_after_reload): ...new function.
17342 (pass_sched2): Replace declaration with that of...
17343 (make_pass_sched2): ...new function.
17344 (pass_stack_regs): Replace declaration with that of...
17345 (make_pass_stack_regs): ...new function.
17346 (pass_stack_regs_run): Replace declaration with that of...
17347 (make_pass_stack_regs_run): ...new function.
17348 (pass_df_finish): Replace declaration with that of...
17349 (make_pass_df_finish): ...new function.
17350 (pass_compute_alignments): Replace declaration with that of...
17351 (make_pass_compute_alignments): ...new function.
17352 (pass_duplicate_computed_gotos): Replace declaration with that of...
17353 (make_pass_duplicate_computed_gotos): ...new function.
17354 (pass_variable_tracking): Replace declaration with that of...
17355 (make_pass_variable_tracking): ...new function.
17356 (pass_free_cfg): Replace declaration with that of...
17357 (make_pass_free_cfg): ...new function.
17358 (pass_machine_reorg): Replace declaration with that of...
17359 (make_pass_machine_reorg): ...new function.
17360 (pass_cleanup_barriers): Replace declaration with that of...
17361 (make_pass_cleanup_barriers): ...new function.
17362 (pass_delay_slots): Replace declaration with that of...
17363 (make_pass_delay_slots): ...new function.
17364 (pass_split_for_shorten_branches): Replace declaration with that of...
17365 (make_pass_split_for_shorten_branches): ...new function.
17366 (pass_split_before_regstack): Replace declaration with that of...
17367 (make_pass_split_before_regstack): ...new function.
17368 (pass_convert_to_eh_region_ranges): Replace declaration with that
17370 (make_pass_convert_to_eh_region_ranges): ...new function.
17371 (pass_shorten_branches): Replace declaration with that of...
17372 (make_pass_shorten_branches): ...new function.
17373 (pass_set_nothrow_function_flags): Replace declaration with that of...
17374 (make_pass_set_nothrow_function_flags): ...new function.
17375 (pass_dwarf2_frame): Replace declaration with that of...
17376 (make_pass_dwarf2_frame): ...new function.
17377 (pass_final): Replace declaration with that of...
17378 (make_pass_final): ...new function.
17379 (pass_rtl_seqabstr): Replace declaration with that of...
17380 (make_pass_rtl_seqabstr): ...new function.
17381 (pass_release_ssa_names): Replace declaration with that of...
17382 (make_pass_release_ssa_names): ...new function.
17383 (pass_early_inline): Replace declaration with that of...
17384 (make_pass_early_inline): ...new function.
17385 (pass_inline_parameters): Replace declaration with that of...
17386 (make_pass_inline_parameters): ...new function.
17387 (pass_update_address_taken): Replace declaration with that of...
17388 (make_pass_update_address_taken): ...new function.
17389 (pass_convert_switch): Replace declaration with that of...
17390 (make_pass_convert_switch): ...new function.
17391 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
17392 to a subclass of simple_ipa_opt_pass along with...
17393 (pass_data_ipa_tree_profile): ...new pass_data instance and...
17394 (make_pass_ipa_tree_profile): ...new function.
17395 * tree-sra.c (pass_sra_early): Convert from a global struct to a
17396 subclass of gimple_opt_pass along with...
17397 (pass_data_sra_early): ...new pass_data instance and...
17398 (make_pass_sra_early): ...new function.
17399 (pass_sra): Convert from a global struct to a subclass of
17400 gimple_opt_pass along with...
17401 (pass_data_sra): ...new pass_data instance and...
17402 (make_pass_sra): ...new function.
17403 (pass_early_ipa_sra): Convert from a global struct to a subclass of
17404 gimple_opt_pass along with...
17405 (pass_data_early_ipa_sra): ...new pass_data instance and...
17406 (make_pass_early_ipa_sra): ...new function.
17407 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
17408 subclass of gimple_opt_pass along with...
17409 (pass_data_ccp): ...new pass_data instance and...
17410 (make_pass_ccp): ...new function.
17411 (pass_fold_builtins): Convert from a global struct to a subclass of
17412 gimple_opt_pass along with...
17413 (pass_data_fold_builtins): ...new pass_data instance and...
17414 (make_pass_fold_builtins): ...new function.
17415 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
17416 subclass of gimple_opt_pass along with...
17417 (pass_data_copy_prop): ...new pass_data instance and...
17418 (make_pass_copy_prop): ...new function.
17419 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
17420 global struct to a subclass of gimple_opt_pass along with...
17421 (pass_data_rename_ssa_copies): ...new pass_data instance and...
17422 (make_pass_rename_ssa_copies): ...new function.
17423 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
17424 subclass of gimple_opt_pass along with...
17425 (pass_data_dce): ...new pass_data instance and...
17426 (make_pass_dce): ...new function.
17427 (pass_dce_loop): Convert from a global struct to a subclass of
17428 gimple_opt_pass along with...
17429 (pass_data_dce_loop): ...new pass_data instance and...
17430 (make_pass_dce_loop): ...new function.
17431 (pass_cd_dce): Convert from a global struct to a subclass of
17432 gimple_opt_pass along with...
17433 (pass_data_cd_dce): ...new pass_data instance and...
17434 (make_pass_cd_dce): ...new function.
17435 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
17436 subclass of gimple_opt_pass along with...
17437 (pass_data_dominator): ...new pass_data instance and...
17438 (make_pass_dominator): ...new function.
17439 (pass_phi_only_cprop): Convert from a global struct to a subclass of
17440 gimple_opt_pass along with...
17441 (pass_data_phi_only_cprop): ...new pass_data instance and...
17442 (make_pass_phi_only_cprop): ...new function.
17443 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
17444 subclass of gimple_opt_pass along with...
17445 (pass_data_dse): ...new pass_data instance and...
17446 (make_pass_dse): ...new function.
17447 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
17448 a subclass of gimple_opt_pass along with...
17449 (pass_data_forwprop): ...new pass_data instance and...
17450 (make_pass_forwprop): ...new function.
17451 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
17452 struct to a subclass of gimple_opt_pass along with...
17453 (pass_data_tree_ifcombine): ...new pass_data instance and...
17454 (make_pass_tree_ifcombine): ...new function.
17455 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
17456 subclass of gimple_opt_pass along with...
17457 (pass_data_ch): ...new pass_data instance and...
17458 (make_pass_ch): ...new function.
17459 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
17460 subclass of gimple_opt_pass along with...
17461 (pass_data_tree_loop): ...new pass_data instance and...
17462 (make_pass_tree_loop): ...new function.
17463 (pass_tree_loop_init): Convert from a global struct to a subclass of
17464 gimple_opt_pass along with...
17465 (pass_data_tree_loop_init): ...new pass_data instance and...
17466 (make_pass_tree_loop_init): ...new function.
17467 (pass_lim): Convert from a global struct to a subclass of
17468 gimple_opt_pass along with...
17469 (pass_data_lim): ...new pass_data instance and...
17470 (make_pass_lim): ...new function.
17471 (pass_tree_unswitch): Convert from a global struct to a subclass of
17472 gimple_opt_pass along with...
17473 (pass_data_tree_unswitch): ...new pass_data instance and...
17474 (make_pass_tree_unswitch): ...new function.
17475 (pass_predcom): Convert from a global struct to a subclass of
17476 gimple_opt_pass along with...
17477 (pass_data_predcom): ...new pass_data instance and...
17478 (make_pass_predcom): ...new function.
17479 (pass_vectorize): Convert from a global struct to a subclass of
17480 gimple_opt_pass along with...
17481 (pass_data_vectorize): ...new pass_data instance and...
17482 (make_pass_vectorize): ...new function.
17483 (pass_graphite): Convert from a global struct to a subclass of
17484 gimple_opt_pass along with...
17485 (pass_data_graphite): ...new pass_data instance and...
17486 (make_pass_graphite): ...new function.
17487 (pass_graphite_transforms): Convert from a global struct to a subclass
17488 of gimple_opt_pass along with...
17489 (pass_data_graphite_transforms): ...new pass_data instance and...
17490 (make_pass_graphite_transforms): ...new function.
17491 (pass_check_data_deps): Convert from a global struct to a subclass of
17492 gimple_opt_pass along with...
17493 (pass_data_check_data_deps): ...new pass_data instance and...
17494 (make_pass_check_data_deps): ...new function.
17495 (pass_iv_canon): Convert from a global struct to a subclass of
17496 gimple_opt_pass along with...
17497 (pass_data_iv_canon): ...new pass_data instance and...
17498 (make_pass_iv_canon): ...new function.
17499 (pass_scev_cprop): Convert from a global struct to a subclass of
17500 gimple_opt_pass along with...
17501 (pass_data_scev_cprop): ...new pass_data instance and...
17502 (make_pass_scev_cprop): ...new function.
17503 (pass_record_bounds): Convert from a global struct to a subclass of
17504 gimple_opt_pass along with...
17505 (pass_data_record_bounds): ...new pass_data instance and...
17506 (make_pass_record_bounds): ...new function.
17507 (pass_complete_unroll): Convert from a global struct to a subclass of
17508 gimple_opt_pass along with...
17509 (pass_data_complete_unroll): ...new pass_data instance and...
17510 (make_pass_complete_unroll): ...new function.
17511 (pass_complete_unrolli): Convert from a global struct to a subclass of
17512 gimple_opt_pass along with...
17513 (pass_data_complete_unrolli): ...new pass_data instance and...
17514 (make_pass_complete_unrolli): ...new function.
17515 (pass_parallelize_loops): Convert from a global struct to a subclass
17516 of gimple_opt_pass along with...
17517 (pass_data_parallelize_loops): ...new pass_data instance and...
17518 (make_pass_parallelize_loops): ...new function.
17519 (pass_loop_prefetch): Convert from a global struct to a subclass of
17520 gimple_opt_pass along with...
17521 (pass_data_loop_prefetch): ...new pass_data instance and...
17522 (make_pass_loop_prefetch): ...new function.
17523 (pass_iv_optimize): Convert from a global struct to a subclass of
17524 gimple_opt_pass along with...
17525 (pass_data_iv_optimize): ...new pass_data instance and...
17526 (make_pass_iv_optimize): ...new function.
17527 (pass_tree_loop_done): Convert from a global struct to a subclass of
17528 gimple_opt_pass along with...
17529 (pass_data_tree_loop_done): ...new pass_data instance and...
17530 (make_pass_tree_loop_done): ...new function.
17531 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
17532 struct to a subclass of gimple_opt_pass along with...
17533 (pass_data_cse_reciprocals): ...new pass_data instance and...
17534 (make_pass_cse_reciprocals): ...new function.
17535 (pass_cse_sincos): Convert from a global struct to a subclass of
17536 gimple_opt_pass along with...
17537 (pass_data_cse_sincos): ...new pass_data instance and...
17538 (make_pass_cse_sincos): ...new function.
17539 (pass_optimize_bswap): Convert from a global struct to a subclass of
17540 gimple_opt_pass along with...
17541 (pass_data_optimize_bswap): ...new pass_data instance and...
17542 (make_pass_optimize_bswap): ...new function.
17543 (pass_optimize_widening_mul): Convert from a global struct to a
17544 subclass of gimple_opt_pass along with...
17545 (pass_data_optimize_widening_mul): ...new pass_data instance and...
17546 (make_pass_optimize_widening_mul): ...new function.
17547 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
17548 subclass of gimple_opt_pass along with...
17549 (pass_data_phiopt): ...new pass_data instance and...
17550 (make_pass_phiopt): ...new function.
17551 (pass_cselim): Convert from a global struct to a subclass of
17552 gimple_opt_pass along with...
17553 (pass_data_cselim): ...new pass_data instance and...
17554 (make_pass_cselim): ...new function.
17555 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
17556 subclass of gimple_opt_pass along with...
17557 (pass_data_phiprop): ...new pass_data instance and...
17558 (make_pass_phiprop): ...new function.
17559 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
17560 subclass of gimple_opt_pass along with...
17561 (pass_data_pre): ...new pass_data instance and...
17562 (make_pass_pre): ...new function.
17563 (pass_fre): Convert from a global struct to a subclass of
17564 gimple_opt_pass along with...
17565 (pass_data_fre): ...new pass_data instance and...
17566 (make_pass_fre): ...new function.
17567 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
17568 subclass of gimple_opt_pass along with...
17569 (pass_data_reassoc): ...new pass_data instance and...
17570 (make_pass_reassoc): ...new function.
17571 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
17572 subclass of gimple_opt_pass along with...
17573 (pass_data_sink_code): ...new pass_data instance and...
17574 (make_pass_sink_code): ...new function.
17575 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
17576 subclass of gimple_opt_pass along with...
17577 (pass_data_strlen): ...new pass_data instance and...
17578 (make_pass_strlen): ...new function.
17579 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
17580 struct to a subclass of gimple_opt_pass along with...
17581 (pass_data_build_alias): ...new pass_data instance and...
17582 (make_pass_build_alias): ...new function.
17583 (pass_build_ealias): Convert from a global struct to a subclass of
17584 gimple_opt_pass along with...
17585 (pass_data_build_ealias): ...new pass_data instance and...
17586 (make_pass_build_ealias): ...new function.
17587 (pass_ipa_pta): Convert from a global struct to a subclass of
17588 simple_ipa_opt_pass along with...
17589 (pass_data_ipa_pta): ...new pass_data instance and...
17590 (make_pass_ipa_pta): ...new function.
17591 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
17592 subclass of gimple_opt_pass along with...
17593 (pass_data_uncprop): ...new pass_data instance and...
17594 (make_pass_uncprop): ...new function.
17595 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
17596 global struct to a subclass of gimple_opt_pass along with...
17597 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
17598 (make_pass_late_warn_uninitialized): ...new function.
17599 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
17600 to a subclass of gimple_opt_pass along with...
17601 (pass_data_init_datastructures): ...new pass_data instance and...
17602 (make_pass_init_datastructures): ...new function.
17603 (pass_early_warn_uninitialized): Convert from a global struct to a
17604 subclass of gimple_opt_pass along with...
17605 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
17606 (make_pass_early_warn_uninitialized): ...new function.
17607 (pass_update_address_taken): Convert from a global struct to a
17608 subclass of gimple_opt_pass along with...
17609 (pass_data_update_address_taken): ...new pass_data instance and...
17610 (make_pass_update_address_taken): ...new function.
17611 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
17612 struct to a subclass of gimple_opt_pass along with...
17613 (pass_data_release_ssa_names): ...new pass_data instance and...
17614 (make_pass_release_ssa_names): ...new function.
17615 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
17616 subclass of gimple_opt_pass along with...
17617 (pass_data_stdarg): ...new pass_data instance and...
17618 (make_pass_stdarg): ...new function.
17619 * tree-switch-conversion.c (pass_convert_switch): Convert from a
17620 global struct to a subclass of gimple_opt_pass along with...
17621 (pass_data_convert_switch): ...new pass_data instance and...
17622 (make_pass_convert_switch): ...new function.
17623 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
17624 to a subclass of gimple_opt_pass along with...
17625 (pass_data_tail_recursion): ...new pass_data instance and...
17626 (make_pass_tail_recursion): ...new function.
17627 (pass_tail_calls): Convert from a global struct to a subclass of
17628 gimple_opt_pass along with...
17629 (pass_data_tail_calls): ...new pass_data instance and...
17630 (make_pass_tail_calls): ...new function.
17631 * tree-vect-generic.c (pass_lower_vector): Convert from a global
17632 struct to a subclass of gimple_opt_pass along with...
17633 (pass_data_lower_vector): ...new pass_data instance and...
17634 (make_pass_lower_vector): ...new function.
17635 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
17636 gimple_opt_pass along with...
17637 (pass_data_lower_vector_ssa): ...new pass_data instance and...
17638 (make_pass_lower_vector_ssa): ...new function.
17639 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
17640 to a subclass of gimple_opt_pass along with...
17641 (pass_data_slp_vectorize): ...new pass_data instance and...
17642 (make_pass_slp_vectorize): ...new function.
17643 (pass_ipa_increase_alignment): Convert from a global struct to a
17644 subclass of simple_ipa_opt_pass along with...
17645 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
17646 (make_pass_ipa_increase_alignment): ...new function.
17647 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
17648 gimple_opt_pass along with...
17649 (pass_data_vrp): ...new pass_data instance and...
17650 (make_pass_vrp): ...new function.
17651 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
17652 subclass of simple_ipa_opt_pass along with...
17653 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
17654 (make_pass_ipa_free_lang_data): ...new function.
17655 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
17656 gimple_opt_pass along with...
17657 (pass_data_tsan): ...new pass_data instance and...
17658 (make_pass_tsan): ...new function.
17659 (pass_tsan_O0): Convert from a global struct to a subclass of
17660 gimple_opt_pass along with...
17661 (pass_data_tsan_O0): ...new pass_data instance and...
17662 (make_pass_tsan_O0): ...new function.
17663 * var-tracking.c (pass_variable_tracking): Convert from a global
17664 struct to a subclass of rtl_opt_pass along with...
17665 (pass_data_variable_tracking): ...new pass_data instance and...
17666 (make_pass_variable_tracking): ...new function.
17667 * web.c (pass_web): Convert from a global struct to a subclass of
17668 rtl_opt_pass along with...
17669 (pass_data_web): ...new pass_data instance and...
17670 (make_pass_web): ...new function.
17671 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
17672 declaration with that of...
17673 (make_pass_mode_switch_use): ...new function.
17674 (pass_resolve_sw_modes): Replace declaration with that of...
17675 (make_pass_resolve_sw_modes): ...new function.
17676 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
17677 from a global struct to a subclass of rtl_opt_pass along with...
17678 (pass_data_mode_switch_use): ...new pass_data instance and...
17679 (make_pass_mode_switch_use): ...new function.
17680 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
17681 from a global struct to a subclass of rtl_opt_pass along with...
17682 (pass_data_resolve_sw_modes): ...new pass_data instance and...
17683 (make_pass_resolve_sw_modes): ...new function.
17684 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
17685 struct to a subclass of rtl_opt_pass along with...
17686 (pass_data_insert_vzeroupper): ...new pass_data instance and...
17687 (make_pass_insert_vzeroupper): ...new function.
17688 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
17689 global struct to a subclass of rtl_opt_pass along with...
17690 (pass_data_work_around_errata): ...new pass_data instance and...
17691 (make_pass_work_around_errata): ...new function.
17692 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
17693 struct to a subclass of rtl_opt_pass along with...
17694 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
17695 (make_pass_mips_machine_reorg2): ...new function.
17697 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17699 * passes.c (pass_manager::operator new): New.
17701 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17703 Handwritten part of conversion of passes to C++ classes.
17705 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
17706 (toplev.o): Add dep on PASS_MANAGER_H.
17707 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
17708 of early local pases to reflect this moving from a global to a
17709 member of gcc::pass_manager.
17710 (cgraph_add_new_function): Likewise.
17711 * lto-cgraph.c (lto_output_node): Update for conversion of
17712 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
17713 * passes.c (opt_pass::clone): New.
17714 (opt_pass::gate): New.
17715 (opt_pass::execute): New.
17716 (opt_pass::opt_pass): New.
17717 (pass_manager::execute_early_local_passes): New.
17718 (pass_manager::execute_pass_mode_switching): new.
17719 (finish_optimization_passes): Convert to...
17720 (pass_manager::finish_optimization_passes): ...this.
17721 (finish_optimization_passes): Update for conversion of passes to
17723 (register_dump_files_1): Use has_gate since we cannot portably
17724 check a vtable entry against NULL.
17725 (dump_one_pass): Likewise.
17726 (ipa_write_summaries_2): Likewise.
17727 (ipa_write_optimization_summaries_1): Likewise.
17728 (ipa_read_summaries_1): Likewise.
17729 (ipa_read_optimization_summaries_1): Likewise.
17730 (execute_ipa_stmt_fixups): Likewise.
17731 (pass_manager::pass_manager): Rewrite pass-creation, invoking
17732 pass-creation functions rather than wiring up globals, and
17733 storing the results in fields of pass_manager generated using
17734 pass-instances.def.
17735 (pass_manager::dump_profile_report): Update for conversion of
17736 passes to C++ classes.
17737 (pass_manager::execute_ipa_summary_passes): Likewise.
17738 (execute_one_ipa_transform_pass): Likewise.
17739 (execute_one_pass): Use has_gate and has_execute since we cannot
17740 portably check a vtable entry against NULL.
17741 * pass_manager.h (pass_manager::finish_optimization_passes): New.
17742 (pass_manager): Use pass-instances.def to add fields for the
17743 various pass instances.
17744 * toplev.c (finalize): Update for move of
17745 finish_optimization_passes to a method of gcc::pass_manager.
17746 * toplev.h (finish_optimization_passes): Move to method of class
17748 * tree-pass.h (struct pass_data): New.
17749 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
17750 (opt_pass::gate): Convert to virtual function.
17751 (opt_pass::~opt_pass): New.
17752 (opt_pass::clone): New.
17753 (opt_pass::execute): Convert to virtual function.
17754 (opt_pass::opt_pass): New.
17755 (opt_pass::ctxt_): new.
17756 (gimple_opt_pass): Convert to subclass of opt_pass.
17757 (gimple_opt_pass::gimple_opt_pass): New.
17758 (rtl_opt_pass): Convert to subclass of opt_pass.
17759 (rtl_opt_pass::rtl_opt_pass): New.
17760 (ipa_opt_pass_d): Convert to subclass of opt_pass.
17761 (ipa_opt_pass_d::ipa_opt_pass_d): New.
17762 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
17763 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
17764 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
17765 invocation of pass_mode_switching to reflect this moving from a
17766 global to a member of gcc::pass_manager.
17767 (ix86_option_override): Rework how pass_insert_vzeroupper is
17768 added to the pass_manager to reflect autogenerated changes.
17769 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
17771 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
17773 PR rtl-optimization/57708
17774 * recog.c (peep2_find_free_register): Validate all regs in a
17777 2013-08-05 Jan Hubicka <jh@suse.cz>
17780 * cgraph.c (verify_cgraph_node): Accept local flags from other
17782 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
17783 (function_and_variable_visibility): Likewise.
17784 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
17786 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
17788 * graph.c (init_graph_slim_pretty_print): Remove.
17789 (print_graph_cfg): Do not call it. Use local pretty printer.
17790 (start_graph_dump): Likewise.
17792 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
17794 * gimple-pretty-print.c (buffer): Remove.
17795 (initialized): Likewise.
17796 (maybe_init_pretty_print): Likewise.
17797 (print_gimple_stmt): Do not call it. Use non-static local
17798 pretty_printer variable.
17799 (print_gimple_expr): Likewise.
17800 (print_gimple_seq): Likewise.
17801 (gimple_dump_bb): Likewise.
17803 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
17805 * asan.c (asan_pp): Remove.
17806 (asan_pp_initialized): Likewise.
17807 (asan_pp_initialize): Likewise.
17808 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
17809 (asan_emit_stack_protection): Tidy. Use local pretty printer.
17810 (asan_add_global): Likewise.
17812 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
17814 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
17815 * diagnostic.h (diagnostic_flush_buffer): Adjust.
17816 * pretty-print.c (pp_formatted_text_data): Likewise.
17817 (pp_indent): Rename from pp_base_indent.
17818 (pp_format): Rename from pp_base_format.
17819 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
17820 (pp_format_verbatim): Rename from pp_base_format_verbatim.
17821 (pp_flush): Rename from pp_base_flush.
17822 (pp_set_line_maximum_length): Rename from
17823 pp_base_set_line_maximum_length.
17824 (pp_clear_output_area): Rename from pp_base_clear_output_area.
17825 (pp_set_prefix): Rename from pp_base_set_prefix.
17826 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
17827 (pp_emit_prefix): Rename from pp_base_emit_prefix.
17828 (pp_append_text): Rename from pp_base_append_text.
17829 (pp_formatted_text): Rename from pp_base_formatted_text.
17830 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
17831 (pp_remaining_character_count_for_line): Rename from
17832 pp_base_remaining_character_count_for_line.
17833 (pp_newline): Rename from pp_base_newline.
17834 (pp_character): Rename from pp_base_character.
17835 (pp_string): Rename from pp_base_string.
17836 (pp_maybe_space): Rename from pp_base_maybe_space.
17837 * asan.c (asan_pp_string): Adjust.
17838 (asan_emit_stack_protection): Likewise.
17839 (asan_add_global): Likewise.
17840 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
17841 * tree-mudflap.c (mf_varname_tree): Likewise.
17842 * tree-pretty-print.c (pp_tree_identifier): Rename from
17843 pp_base_tree_identifier.
17844 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
17845 Declare as function.
17847 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
17849 * pretty-print.h (pp_bar_bar): New.
17850 (pp_ampersand_ampersand): Likewise.
17851 (pp_less_equal): Likewise.
17852 (pp_greater_equal): Likewise.
17853 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
17854 printer functions instead of pp_string or operators and punctuators.
17855 (dump_gimple_call): Likewise.
17856 (dump_gimple_omp_for): Likewise.
17857 (dump_gimple_transaction): Likewise.
17858 (dump_gimple_phi): Likewise.
17859 (pp_gimple_stmt_1): Likewise.
17860 * sched-vis.c (print_insn): Likewise.
17861 * tree-mudflap.c (mf_varname_tree): Likewise.
17862 * tree-pretty-print.c (dump_block_node): Likewise.
17863 (dump_generic_node): Likewise.
17865 2013-08-02 Jan Hubicka <jh@suse.cz>
17867 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
17869 * lto-streamer-out.c (tree_is_indexable): Results decls and
17870 parm decls are not indexable.
17871 (DFS_write_tree_body): Do not follow args and results.
17872 (hash_tree): Likewise.
17873 (output_functions): Rearrange so struct function is needed
17874 only when real body is output; be able to also ouptut abstract
17875 functions; output DECL_ARGUMENTS and DECL_RESULT.
17876 (lto_output): When not in WPA, ale store abstract functions.
17877 (write_symbol): Do not care about RESULT_DECL.
17878 (output_symbol_p): Handle correctly sbtract decls.
17879 * lto-streamer-in.c (input_function): Rearrange so struct
17880 function can be NULL at entry; allow streaming of
17881 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
17882 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
17883 sanity check during LTO.
17884 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
17885 RESULT_DECl and DECL_ARGUMENTS.
17886 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
17889 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
17891 * pretty-print.h (pp_underscore): New.
17893 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
17894 printer functions instead of pp_character.
17895 (dump_binary_rhs): Likewise.
17896 (dump_ternary_rhs): Likewise.
17897 (dump_gimple_call_args): Likewise.
17898 (pp_points_to_solution): Likewise.
17899 (dump_gimple_call): Likewise.
17900 (dump_gimple_switch): Likewise.
17901 (dump_gimple_cond): Likewise.
17902 (dump_gimple_bind): Likewise.
17903 (dump_gimple_try): Likewise.
17904 (dump_gimple_omp_for): Likewise.
17905 (dump_gimple_omp_continue): Likewise.
17906 (dump_gimple_omp_single): Likewise.
17907 (dump_gimple_omp_sections): Likewise.
17908 (dump_gimple_omp_block): Likewise.
17909 (dump_gimple_omp_critical): Likewise.
17910 (dump_gimple_transaction): Likewise.
17911 (dump_gimple_asm): Likewise.
17912 (dump_gimple_phi): Likewise.
17913 (dump_gimple_omp_parallel): Likewise.
17914 (dump_gimple_omp_task): Likewise.
17915 (dump_gimple_omp_atomic_load): Likewise.
17916 (dump_gimple_omp_atomic_store): Likewise.
17917 (dump_gimple_mem_ops): Likewise.
17918 (pp_gimple_stmt_1): Likewise.
17919 (pp_cfg_jump): Likewise.
17920 (dump_implicit_edges): Likewise.
17921 (gimple_dump_bb_for_graph): Likewise.
17922 * graph.c (draw_cfg_node): Likewise.
17923 * langhooks.c (lhd_print_error_function): Likewise.
17924 * sched-vis.c (print_exp): Likewise.
17925 (print_value): Likewise.
17926 (print_pattern): Likewise.
17927 (print_insn): Likewise.
17928 (rtl_dump_bb_for_graph): Likewise.
17929 * tree-pretty-print.c (dump_function_declaration): Likewise.
17930 (dump_array_domain): Likewise.
17931 (dump_omp_clause): Likewise.
17932 (dump_location): Likewise.
17933 (dump_generic_node): Likewise.
17934 (print_struct_decl): Likewise.
17935 * diagnostic.c (diagnostic_show_locus): Use pp_space.
17937 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17939 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
17940 candidate table when replacing a candidate statement.
17941 (replace_rhs_if_not_dup): Likewise.
17942 (replace_one_candidate): Likewise.
17944 2013-08-02 Jan Hubicka <jh@suse.cz>
17945 Martin Liska <marxin.liska@gmail.com>
17947 * cgraphunit.c (add_new_function): Fix logic when adding from
17949 (assemble_thunk): Rename to ...
17950 (expand_thunk); .. this one; export; get it working with
17951 general functions; make produced gimple valid.
17952 * cgraph.h (expand_thunk): Declare.
17954 2013-08-02 Jan Hubicka <jh@suse.cz>
17956 * ipa-cp.c (gather_context_independent_values): Use
17957 ipa_get_param_move_cost.
17958 (get_replacement_map): Remove PARAM; move parameter folding
17960 (create_specialized_node): Update.
17961 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
17962 assert that we have gimple body; update move_cost.
17963 (count_formal_params): Assert that we have gimple body.
17964 (ipa_dump_param): New function.
17965 (ipa_alloc_node_params): Break out from ...
17966 (ipa_initialize_node_params): ... here.
17967 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
17968 (ipa_write_node_info): Stream move costs.
17969 (ipa_read_node_info): Read move costs.
17970 (ipa_update_after_lto_read): Do not recompute node params.
17971 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
17972 (ipa_get_param): Check we are not in WPA.
17973 (ipa_get_param_move_cost): New.
17974 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
17975 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
17976 parm numbers to be present.
17978 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
17980 PR rtl-optimization/58048
17981 * lra-constraints.c (process_alt_operands): Don't check asm
17982 operand on register.
17984 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
17986 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
17987 the implied StoreLoad barrier for atomic operations if before.
17989 2013-08-02 Jan Hubicka <jh@suse.cz>
17990 Martin Liska <marxin.liska@gmail.com>
17992 * cgraph.c (cgraph_function_body_availability): Do not check
17994 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
17995 symtab_node_availability): Declare.
17996 * ipa.c (can_replace_by_local_alias): New.
17997 (function_and_variable_visibility): Use it.
17998 * symtab.c (symtab_for_node_and_aliases,
17999 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
18001 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
18003 PR rtl-optimization/57963
18004 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
18005 (lra_constraints): Use them.
18007 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
18009 * config/arm/types.md (define_attr "type"): Add "load_acq"
18011 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
18013 (cortex_a53_store1): Likewise.
18015 2013-08-01 Jan Hubicka <jh@suse.cz>
18017 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
18018 partitions are not needed.
18020 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
18022 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
18023 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
18024 MAYBE_NON_Q_CLASS_P where appropriate.
18026 2013-08-01 Jan Hubicka <jh@suse.cz>
18028 * cgraph.h (release_function_body): Declare.
18029 * tree.c (free_lang_data_in_decl): Free, parameters and return values
18030 of unused delcarations.
18032 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18034 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
18035 RTL form when subtracting a constant.
18037 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18039 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
18040 Generate canonical plus rtx with negated immediate instead of minus
18042 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
18044 2013-08-01 Jan Hubicka <jh@suse.cz>
18046 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
18047 (cgraph_release_function_body): Likewise.
18048 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
18049 * cgraph.h (cgrpah_node): Rename abstract_and_needed
18050 to used_as_abstract_origin.
18051 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
18052 symbols used as abstract origins.
18053 * cgraphunit.c (analyze_functions): Update.
18054 * ipa.c (symtab_remove_unreachable_nodes): Recompute
18055 used_as_abstract_origin.
18056 * tree-inline.c (tree_function_versioning): Update
18057 used_as_abstract_origin; be ready for DECL_RESULT and
18058 DECL_ARGUMENTS to be NULL.
18060 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
18061 for abstract functions.
18062 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
18065 2013-08-01 Jan Hubicka <jh@suse.cz>
18067 * profile.c (compute_value_histograms): Fix thinko.
18069 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
18071 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
18072 aarch-common-protos.h to extra_headers.
18073 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
18074 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
18075 * config/aarch64/t-aarch64 (aarch-common.o): Define.
18077 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
18079 * config/aarch64/aarch64.md (define_attr "type"): Delete.
18080 Include "../arm/types.md". Define "type" attribute for all patterns.
18081 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
18084 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18086 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
18087 to support power8 load fusion.
18088 (fusion_gpr_mem_load): Likewise.
18090 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
18092 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
18093 declarations for power8 load fusion.
18094 (emit_fusion_gpr_load): Likewise.
18096 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18097 tuning for power8, turn on fusion mode by default. Turn on sign
18098 extending fusion mode if normal fusion mode is on, and we are at
18100 (fusion_gpr_load_p): New function, return true if we can fuse an
18101 addis instruction with a dependent load to a GPR.
18102 (emit_fusion_gpr_load): Emit the instructions for power8 load
18105 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
18106 (VSX load fusion peepholes): New peepholes to fuse together an
18107 addi instruction with a VSX load instruction.
18109 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
18110 peepholes to fuse an addis instruction with a load to a GPR base
18111 register. If we are supporting sign extending fusions, convert
18112 sign extending loads to zero extending loads and add an explicit
18115 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
18117 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
18118 aarch-common-protos.h to extra_headers.
18119 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
18120 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
18121 (arm_early_store_addr_dep): Likewise.
18122 (arm_no_early_alu_shift_dep): Likewise.
18123 (arm_no_early_alu_shift_value_dep): Likewise.
18124 (arm_no_early_mul_dep): Likewise.
18125 (arm_no_early_store_addr_dep): Likewise.
18126 (arm_mac_accumulator_is_mul_result): Likewise.
18127 (arm_mac_accumulator_is_result): Likewise.
18128 * config/arm/aarch-common.c: ... here. New file.
18129 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
18131 (arm_early_store_addr_dep): Likewise.
18132 (arm_no_early_alu_shift_dep): Likewise.
18133 (arm_no_early_alu_shift_value_dep): Likewise.
18134 (arm_no_early_mul_dep): Likewise.
18135 (arm_no_early_store_addr_dep): Likewise.
18136 (arm_mac_accumulator_is_mul_result): Likewise.
18137 (arm_mac_accumulator_is_result): Likewise.
18138 * config/arm/aarch-common-protos.h: ... here. New file.
18139 * config/arm/t-arm (aarch-common.o): Define.
18141 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
18143 * config/arm/arm.md: Include new file "types.md".
18144 (define_attr "type"): Move from here to ...
18145 (define_attr "mul32"): Likewise.
18146 (define_attr "mul64"): Likewise.
18147 * config/arm/types.md: ... here. New file.
18149 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
18151 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
18152 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
18154 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18156 * gen-pass-instances.awk: Fix offset of substr().
18158 2013-07-31 David Malcolm <dmalcolm@redhat.com>
18160 * Makefile.in (pass-instances.def): New.
18161 (passes.o): Replace dependency on passes.def with one on
18164 * gen-pass-instances.awk: New.
18166 * passes.c (pass_manager::pass_manager): Use pass-instances.def
18167 rather than passes.def, updating local definition of NEXT_PASS
18168 macro to add an extra NUM parameter (currently unused).
18170 2013-07-30 David Malcolm <dmalcolm@redhat.com>
18172 * Makefile.in (PASS_MANAGER_H): New.
18173 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
18174 (passes.o): Likewise.
18175 (statistics.o): Likewise.
18176 (cgraphunit.o): Likewise.
18177 (context.o): Depend on PASS_MANAGER_H.
18179 * pass_manager.h: New.
18181 * cgraphunit.c (cgraph_add_new_function): Update for moves
18182 of globals to fields of pass_manager.
18183 (analyze_function): Likewise.
18184 (expand_function): Likewise.
18185 (ipa_passes): Likewise.
18186 (compile): Likewise.
18188 * context.c (context::context): New.
18189 * context.h (context::context): New.
18190 (context::get_passes): New.
18191 (context::passes_): New.
18193 * lto-cgraph.c (input_node): Update for moves of globals to
18194 fields of pass_manager.
18196 * passes.c (all_passes): Remove, in favor of a field of the
18197 same name within the new class pass_manager.
18198 (all_small_ipa_passes): Likewise.
18199 (all_lowering_passes): Likewise.
18200 (all_regular_ipa_passes): Likewise.
18201 (all_late_ipa_passes): Likewise.
18202 (all_lto_gen_passes): Likewise.
18203 (passes_by_id): Likewise.
18204 (passes_by_id_size): Likewise.
18205 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
18206 the new class pass_manager.
18207 (set_pass_for_id): Convert to...
18208 (pass_manager::set_pass_for_id): ...method.
18209 (get_pass_for_id): Convert to...
18210 (pass_manager::get_pass_for_id): ...method.
18211 (register_one_dump_file): Move body of implementation into...
18212 (pass_manager::register_one_dump_file): ...here.
18213 (register_dump_files_1): Convert to...
18214 (pass_manager::register_dump_files_1): ...method.
18215 (register_dump_files): Convert to...
18216 (pass_manager::register_dump_files): ...method.
18217 (create_pass_tab): Update for moves of globals to fields of
18219 (dump_passes): Move body of implementation into...
18220 (pass_manager::dump_passes): ...here.
18221 (register_pass): Move body of implementation into...
18222 (pass_manager::register_pass): ...here.
18223 (init_optimization_passes): Convert into...
18224 (pass_manager::pass_manager): ...constructor for new
18225 pass_manager class, and initialize the pass_lists array.
18226 (check_profile_consistency): Update for moves of globals to
18227 fields of pass_manager.
18228 (dump_profile_report): Move body of implementation into...
18229 (pass_manager::dump_profile_report): ...here.
18230 (ipa_write_summaries_1): Update for moves of pass lists from
18231 being globals to fields of pass_manager.
18232 (ipa_write_optimization_summaries): Likewise.
18233 (ipa_read_summaries): Likewise.
18234 (ipa_read_optimization_summaries): Likewise.
18235 (execute_all_ipa_stmt_fixups): Likewise.
18237 * statistics.c (statistics_fini): Update for moves of globals to
18238 fields of pass_manager.
18240 * toplev.c (general_init): Replace call to
18241 init_optimization_passes with construction of the pass_manager
18244 * tree-pass.h (all_passes): Remove, in favor of a field of the
18245 same name within the new class pass_manager.
18246 (all_small_ipa_passes): Likewise.
18247 (all_lowering_passes): Likewise.
18248 (all_regular_ipa_passes): Likewise.
18249 (all_lto_gen_passes): Likewise.
18250 (all_late_ipa_passes): Likewise.
18251 (passes_by_id): Likewise.
18252 (passes_by_id_size): Likewise.
18253 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
18254 the new class pass_manager.
18255 (get_pass_for_id): Remove.
18257 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
18259 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
18262 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
18264 * arm.md (mulhi3): New expand pattern.
18266 2013-07-30 Jan Hubicka <jh@suse.cz>
18267 Martin Liska <marxin.liska@gmail.com>
18269 * profile.c (compute_value_histograms): Do not ICE when
18270 there is mismatch only on some counters.
18272 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18274 PR rtl-optimization/57637
18275 * function.c (move_insn_for_shrink_wrap): Also check the
18276 GEN set of the LIVE problem for the liveness analysis
18277 if it exists, otherwise give up.
18279 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18281 PR tree-optimization/57993
18282 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
18283 replaced statement in the candidate table.
18284 (phi_add_costs): Return infinite cost when the hidden basis does
18285 not dominate all phis on which the candidate is dependent.
18286 (replace_one_candidate): Record replaced statement in the
18289 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
18291 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
18292 (ashlv2si3): New expander.
18293 (*ashlv2si3_i): New define_insn_and_split.
18294 * predicates.md (float_operation): Allow patterns with three
18295 basic sub-patterns.
18297 PR rtl-optimization/58021
18298 * mode-switching.c (create_pre_exit): Always split off preceding
18299 insns if we are not at the basic block head.
18301 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
18303 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
18304 (UCLIBC_DYNAMIC_LINKER): New macro.
18305 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
18307 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
18308 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
18310 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
18311 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
18312 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
18313 for SF and DF modes. Use ieee_quad_format for TF mode.
18314 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
18315 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
18316 (mips_option_override): Handle `-mnan=legacy'.
18317 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
18318 `-mabs=2008' and `-mnan=2008'.
18319 (OPTION_DEFAULT_SPECS): Add "nan" default.
18320 (ASM_SPEC): Handle `-mnan='.
18321 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
18322 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
18323 comment accordingly.
18324 (neg<mode>2): Likewise.
18325 * config/mips/mips.opt (mabs, mnan): New options.
18326 * doc/install.texi (Configuration): Document `--with-nan=' option.
18327 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
18329 (MIPS Options): Document them.
18330 * config.gcc <mips*-*-*>: Handle `--with-nan='.
18331 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
18332 * configure: Regenerate.
18333 * config.in: Regenerate.
18335 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
18337 * config/i386/i386.md (float post-reload splitters): Do not check
18338 for subregs of SSE registers.
18340 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
18341 H.J. Lu <hongjiu.lu@intel.com>
18345 * config/i386/i386.md (post-reload splitter
18346 to avoid partial SSE reg dependency stalls): New pattern.
18348 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
18350 * config/s390/s390.md ("movcc"): Swap load and store instructions.
18352 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
18354 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
18355 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
18357 2013-07-26 Cary Coutant <ccoutant@google.com>
18359 * dwarf2out.c (die_checksum_ordered): Don't include template
18360 instantiations in signature.
18361 (is_template_parameter): New function.
18362 (is_template_instantiation): New function.
18363 (generate_skeleton_bottom_up): Don't include template instantiations
18365 (generate_skeleton): Likewise.
18366 (break_out_comdat_types): Move recursive call to break out nested
18368 (prune_unused_types_mark_generic_parms_dies): Call
18369 is_template_parameter.
18371 2013-07-26 Ian Bolton <ian.bolton@arm.com>
18373 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
18374 uses vector registers.
18375 * config/aarch64/iterators.md: Add attributes rtn and vas.
18377 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18378 Richard Earnshaw <richard.earnshaw@arm.com>
18380 * combine.c (simplify_comparison): Re-canonicalize operands
18382 * config/arm/arm.md (movcond_addsi): New splitter.
18384 2013-07-25 Sterling Augustine <saugustine@google.com>
18386 * dwarf2out.c (size_of_pubnames): Move code to...
18387 (include_pubname_in_output): ...here. New.
18388 (want_pubnames): Rearrange.
18389 (output_pubnames): Call include_pubname_in_output. Move assertion.
18391 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
18393 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
18395 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
18398 * doc/extend.texi: Remove obsolete builtins. Fix
18399 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
18401 2013-07-25 Jan Hubicka <jh@suse.cz>
18403 * cgraph.c (release_function_body): Break out from ...
18404 (cgraph_release_function_body): ... this one; also release DECL_RESULT
18405 and DECL_ARGUMENTS.
18406 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
18407 old_tree in the map.
18408 (create_specialized_node): Update.
18409 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
18411 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
18412 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
18413 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
18414 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
18417 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18419 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
18420 addsi3_carryin_alt2_<optab>): Correct output template.
18422 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18424 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
18425 Adjust for arm_restrict_it.
18426 Remove trailing whitespace.
18428 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
18430 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
18431 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
18433 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
18435 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
18437 PR rtl-optimization/57960
18438 * lra-constraints.c (process_alt_operands): Use the right mode
18439 when checking strict_low.
18441 2013-07-25 Jan Hubicka <jh@suse.cz>
18443 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
18444 * cgraph.c (cgraph_remove_node): Do not release function body
18445 when in cgraph streaming.
18446 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
18447 in other partitions are not considered reachable; fix handling of
18450 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18452 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
18454 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18459 * config/arm/arm.md ("*sibcall_insn): Replace use of
18460 Ss with US. Adjust output for v5 and v4t.
18461 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
18463 * config/arm/constraints.md ("Ss"): Rename to US.
18465 2013-07-25 Terry Guo <terry.guo@arm.com>
18467 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
18468 shift_add/shift_sub0/shift_sub1 RTXs.
18470 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
18471 Anton Blanchard <anton@au1.ibm.com>
18473 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
18474 (altivec_vpks<VI_char>ss): Likewise.
18475 (altivec_vpks<VI_char>us): Likewise.
18476 (altivec_vpku<VI_char>us): Likewise.
18477 (altivec_vpku<VI_char>um): Likewise.
18479 2013-07-24 David Malcolm <dmalcolm@redhat.com>
18481 Introduce context class.
18483 * Makefile.in (CONTEXT_H): New.
18484 (OBJS): Add context.o.
18485 (toplev.o): Add CONTEXT_H to dependencies.
18488 * toplev.c (general_init): Create the singleton gcc::context instance.
18494 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
18496 PR rtl-optimization/57968
18497 * mode-switching.c (create_pre_exit): Allow instructions that
18498 don't set a return register to need a non-exit mode.
18500 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18501 Anton Blanchard <anton@au1.ibm.com>
18503 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
18504 operands to vperm for little endian.
18505 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
18506 of lvsl to create the control mask for a vperm for little endian.
18508 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18509 Anton Blanchard <anton@au1.ibm.com>
18511 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
18512 two operands for little-endian.
18514 2013-07-23 Steve Ellcey <sellcey@mips.com>
18516 * config/mips/mips.c (mips_case_values_threshold): New.
18517 (TARGET_CASE_VALUES_THRESHOLD): Define.
18519 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18520 Anton Blanchard <anton@au1.ibm.com>
18522 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
18523 selection of field for vector splat in little endian mode.
18525 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18527 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
18528 expanders to rs6000.md.
18529 (ior<mode>3): Likewise.
18530 (and<mode>3): Likewise.
18531 (one_cmpl<mode>2): Likewise.
18532 (nor<mode>3): Likewise.
18533 (andc<mode>3): Likewise.
18534 (eqv<mode>3): Likewise.
18535 (nand<mode>3): Likewise.
18536 (orc<mode>3): Likewise.
18538 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
18541 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
18542 to split multi-word logical operations.
18543 (rs6000_split_logical_di): Likewise.
18544 (rs6000_split_logical): Likewise.
18546 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
18547 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
18548 and allow TImode operations in 32-bit.
18549 (vsx_and<mode>3_64bit): Likewise.
18550 (vsx_ior<mode>3_32bit): Likewise.
18551 (vsx_ior<mode>3_64bit): Likewise.
18552 (vsx_xor<mode>3_32bit): Likewise.
18553 (vsx_xor<mode>3_64bit): Likewise.
18554 (vsx_one_cmpl<mode>2_32bit): Likewise.
18555 (vsx_one_cmpl<mode>2_64bit): Likewise.
18556 (vsx_nor<mode>3_32bit): Likewise.
18557 (vsx_nor<mode>3_64bit): Likewise.
18558 (vsx_andc<mode>3_32bit): Likewise.
18559 (vsx_andc<mode>3_64bit): Likewise.
18560 (vsx_eqv<mode>3_32bit): Likewise.
18561 (vsx_eqv<mode>3_64bit): Likewise.
18562 (vsx_nand<mode>3_32bit): Likewise.
18563 (vsx_nand<mode>3_64bit): Likewise.
18564 (vsx_orc<mode>3_32bit): Likewise.
18565 (vsx_orc<mode>3_64bit): Likewise.
18567 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
18568 logical types in GPRs.
18570 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
18571 logical insns to rs6000.md, and allow TImode operations in
18573 (altivec_ior<mode>3): Likewise.
18574 (altivec_xor<mode>3): Likewise.
18575 (altivec_one_cmpl<mode>2): Likewise.
18576 (altivec_nor<mode>3): Likewise.
18577 (altivec_andc<mode>3): Likewise.
18579 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
18580 attributes for moving the 128-bit logical operations into
18582 (BOOL_REGS_OUTPUT): Likewise.
18583 (BOOL_REGS_OP1): Likewise.
18584 (BOOL_REGS_OP2): Likewise.
18585 (BOOL_REGS_UNARY): Likewise.
18586 (BOOL_REGS_AND_CR0): Likewise.
18587 (one_cmpl<mode>2): Add support for DI logical operations on
18588 32-bit, splitting the operations to 32-bit.
18589 (anddi3): Likewise.
18590 (iordi3): Likewise.
18591 (xordi3): Likewise.
18592 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
18593 changes to combine the 32/64-bit code, allow logical operations on
18594 TI mode in 32-bit, and to use similar match_operator patterns like
18595 scalar mode uses. Combine the Altivec and VSX code for logical
18596 operations, and move it here.
18597 (ior<mode>3, 128-bit types): Likewise.
18598 (xor<mode>3, 128-bit types): Likewise.
18599 (one_cmpl<mode>3, 128-bit types): Likewise.
18600 (nor<mode>3, 128-bit types): Likewise.
18601 (andc<mode>3, 128-bit types): Likewise.
18602 (eqv<mode>3, 128-bit types): Likewise.
18603 (nand<mode>3, 128-bit types): Likewise.
18604 (orc<mode>3, 128-bit types): Likewise.
18605 (and<mode>3_internal): Likewise.
18606 (bool<mode>3_internal): Likewise.
18607 (boolc<mode>3_internal1): Likewise.
18608 (boolc<mode>3_internal2): Likewise.
18609 (boolcc<mode>3_internal1): Likewise.
18610 (boolcc<mode>3_internal2): Likewise.
18611 (eqv<mode>3_internal1): Likewise.
18612 (eqv<mode>3_internal2): Likewise.
18613 (one_cmpl1<mode>3_internal): Likewise.
18615 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
18617 * config/microblaze/microblaze.c (microblaze_expand_prologue):
18618 Rename flag_stack_usage to flag_stack_usage_info.
18620 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
18622 * config/microblaze/sync.md: New file.
18623 * config/microblaze/microblaze.md: Include sync.md
18624 * config/microblaze/microblaze.c: Add print_operand 'y'.
18625 * config/microblaze/constraints.md: Add memory_contraint
18626 'Q' which is a single register.
18628 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
18630 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
18632 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
18634 * reload.c (find_reloads): Exit loop once we find this operand
18635 cannot be reloaded somehow for this alternative.
18637 * reload.c (find_reloads): Exit loop once we find a hard register.
18639 * rtlanal.c (computed_jump_p): Exit loop once we find label
18642 * i386.c (ix86_pad_returns): Exit loop after setting replace.
18644 * cfgloopmanip.c (remove_path): Exit loop after setting
18647 * gensupport.c (subst_dup): Avoid loop if code is not
18648 MATCH_DUP nor MATCH_OP_DUP.
18650 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
18652 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
18654 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18656 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
18657 true for SP_REGNUM if mode == ptr_mode.
18658 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
18659 with value R0_REGNUM + 31.
18661 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18663 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
18664 pad pointer-typed argument downward.
18666 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18668 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
18669 and __ILP32__ when the ILP32 model is in use.
18671 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18673 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
18674 (aarch64_load_symref_appropriately): In the case of
18675 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
18676 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
18677 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
18678 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
18679 if 'mode' doesn't equal to 'ptr_mode'.
18680 (aarch64_output_mi_thunk): Add an assertion on the alignment of
18681 'vcall_offset'; change to call aarch64_emit_move differently depending
18682 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
18683 to calculate the upper bound of 'vcall_offset'.
18684 (aarch64_cannot_force_const_mem): Change to also return true if
18686 (aarch64_legitimize_reload_address): In the case of large
18687 displacements, add new local variable 'xmode' and an assertion
18688 based on it; change to use 'xmode' to generate the new rtx and
18690 (aarch64_asm_trampoline_template): Change to generate the template
18691 differently depending on TARGET_ILP32 or not; change to use
18692 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
18693 (aarch64_trampoline_size): Removed.
18694 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
18695 and replace immediate literals with it. Change to use 'ptr_mode'
18696 instead of 'DImode' and call convert_memory_address if the mode
18697 of 'fnaddr' doesn't equal to 'ptr_mode'.
18698 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
18700 (aarch64_elf_asm_destructor): Likewise.
18701 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
18702 on TARGET_ILP32 instead of aarch64_trampoline_size.
18703 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
18704 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
18705 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
18706 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
18707 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
18708 (storewb_pair<GPI:mode>_<P:mode>): ... this.
18709 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
18710 depending on the value of 'mode'.
18711 (add_losym_<mode>): New.
18712 (ldr_got_small_<mode>): New, based on ldr_got_small.
18713 (ldr_got_small): Remove.
18714 (ldr_got_small_sidi): New.
18715 * config/aarch64/iterators.md (P): New.
18716 (PTR): Change to 'ptr_mode' in the condition.
18718 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18720 * config.gcc (aarch64*-*-*): Support --with-abi.
18721 (aarch64*-*-elf): Support --with-multilib-list.
18722 (aarch64*-*-linux*): Likewise.
18723 (supported_defaults): Add abi to aarch64*-*-*.
18724 * configure.ac: Mention AArch64 for --with-multilib-list.
18725 * configure: Re-generated.
18726 * config/aarch64/biarchilp32.h: New file.
18727 * config/aarch64/biarchlp64.h: New file.
18728 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
18730 (MULTILIB_DEFAULTS): Ditto.
18731 (DRIVER_SELF_SPECS): Ditto.
18732 (ASM_SPEC): Update to also substitute -mabi.
18733 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
18734 file whose name depends on -mabi= and -mbig-endian.
18735 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
18737 (POINTER_SIZE): New define.
18738 (POINTERS_EXTEND_UNSIGNED): Ditto.
18739 (enum aarch64_abi_type): New enumeration tag.
18740 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
18741 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
18742 (TARGET_ILP32): New define.
18743 * config/aarch64/aarch64.opt (mabi): New.
18744 (aarch64_abi): New.
18745 (ilp32, lp64): New values for -mabi.
18746 * config/aarch64/t-aarch64 (comma): New define.
18747 (MULTILIB_OPTIONS): Ditto.
18748 (MULTILIB_DIRNAMES): Ditto.
18749 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
18750 * doc/invoke.texi: Document -mabi for AArch64.
18752 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
18754 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
18756 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18757 Anton Blanchard <anton@au1.ibm.com>
18759 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
18760 endianness when selecting field to splat.
18762 2013-07-22 Eric Christopher <echristo@gmail.com>
18764 * dwarf2out.c (die_odr_checksum): New function to use
18765 CHECKSUM_ macros and ULEB128 for DIE tag.
18766 (generate_type_signature): Use.
18768 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
18770 * config.gcc (sparc*-*-*): Accept leon3 processor.
18771 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
18772 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
18773 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
18774 * config/sparc/sparc.opt (enum processor_type): Add leon3.
18775 (mfix-ut699): Adjust comment.
18776 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
18777 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
18778 (CPP_CPU_SPEC): Likewise.
18779 (ASM_CPU_SPEC): Likewise.
18780 * config/sparc/sparc.c (leon3_cost): New constant.
18781 (sparc_option_override): Add leon3 support.
18782 (mem_ref): New function.
18783 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
18784 (sparc_do_work_around_errata): Look into the instruction in the delay
18785 slot and adjust accordingly. Add fix for the data cache nullify issues
18786 of the UT699. Change insertion position for the NOP.
18787 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
18788 (leon3_load): New reservation.
18789 (leon_store): Bump latency to 2.
18790 (grfpu): New automaton.
18791 (grfpu_alu): New unit.
18792 (grfpu_ds): Likewise.
18793 (leon_fp_alu): Adjust.
18794 (leon_fp_mult): Delete.
18795 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
18796 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
18797 * config/sparc/sparc.md (cpu): Add leon3.
18798 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
18799 (swapsi): Likewise.
18800 (atomic_test_and_set): Likewise.
18801 (ldstub): Likewise.
18803 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
18805 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
18806 default for R5900 targets.
18807 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
18808 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
18809 * config/mips/mips.c (mips_option_override): Report an error for
18810 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
18811 for -march=r5900 -mhard-float.
18813 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
18815 * df-problems.c (can_move_insns_across): Exit loop once we
18816 find a non-fixed, non-global register.
18818 * ipa-pure-const.c (propagate_nothrow): Exit loop after
18821 * omega.c (omega_eliminate_red): Break after setting red_found.
18822 (omega_problem_has_red_equations): Similarly after setting found.
18823 (omega_query_variable): Similarly after setting coupled.
18825 2013-07-22 Marek Polacek <polacek@redhat.com>
18827 * gimplify.c: Don't include gimple.h twice.
18829 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18831 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
18832 instead of TARGET_THUMB1.
18833 (Pz): New constraint.
18834 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
18836 (compare_negsi_si): Likewise.
18837 (compare_addsi2_op0): Likewise.
18838 (compare_addsi2_op1): Likewise.
18839 (addsi3_carryin_<optab>): Likewise.
18840 (addsi3_carryin_alt2_<optab>): Likewise.
18841 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
18842 for arm_restrict_it.
18843 (subsi3_carryin): Likewise.
18844 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
18845 (minmax_arithsi): Disable for arm_restrict_it.
18846 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
18847 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
18848 (satsi_<SAT:code>_shift): Likewise.
18849 (arm_shiftsi3): Add alternative for 16-bit encoding.
18850 (arm32_movhf): Disable for arm_restrict_it.
18851 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
18852 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
18854 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
18856 * config/arm/arm.md (attribute "insn"): Delete.
18857 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
18858 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
18859 (not_shiftsi): Update for attribute change.
18860 (not_shiftsi_compare0): Likewise.
18861 (not_shiftsi_compare0_scratch): Likewise.
18862 (arm_one_cmplsi2): Likewise.
18863 (thumb1_one_cmplsi2): Likewise.
18864 (notsi_compare0): Likewise.
18865 (notsi_compare0_scratch): Likewise.
18866 (thumb1_movdi_insn): Likewise.
18867 (arm_movsi_insn): Likewise.
18868 (movhi_insn_arch4): Likewise.
18869 (movhi_bytes): Likewise.
18870 (arm_movqi_insn): Likewise.
18871 (thumb1_movqi_insn): Likewise.
18872 (arm32_movhf): Likewise.
18873 (thumb1_movhf): Likewise.
18874 (arm_movsf_soft_insn): Likewise.
18875 (thumb1_movsf_insn): Likewise.
18876 (thumb_movdf_insn): Likewise.
18877 (movsicc_insn): Likewise.
18878 (movsfcc_soft_insn): Likewise.
18879 (and_scc): Likewise.
18880 (cond_move): Likewise.
18881 (if_move_not): Likewise.
18882 (if_not_move): Likewise.
18883 (if_shift_move): Likewise.
18884 (if_move_shift): Likewise.
18885 (if_shift_shift): Likewise.
18886 (if_not_arith): Likewise.
18887 (if_arith_not): Likewise.
18888 (cond_move_not): Likewise.
18889 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
18890 (neon_mov<mode>): Likewise.
18891 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
18892 (thumb2_movsi_vfp): Likewise.
18893 (movsf_vfp): Likewise.
18894 (thumb2_movsf_vfp): Likewise.
18895 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
18897 (cortexa7_older_only): Likewise.
18898 (cortexa7_younger): Likewise.
18899 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
18900 (1020alu_shift_op): Likewise.
18901 (1020alu_shift_reg_op): Likewise.
18902 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
18903 (alu_shift_op): Likewise.
18904 (alu_shift_reg_op): Likewise.
18905 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
18906 (11_alu_shift_op): Likewise.
18907 (11_alu_shift_reg_op): Likewise.
18908 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
18909 (9_alu_shift_reg_op): Likewise.
18910 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
18912 (cortex_a15_alu_shift): Likewise.
18913 (cortex_a15_alu_shift_reg): Likewise.
18914 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
18915 (cortex_a5_alu_shift): Likewise.
18916 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
18918 (cortex_a53_alu_shift): Likewise.
18919 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
18921 (cortex_a7_alu_reg): Likewise.
18922 (cortex_a7_alu_shift): Likewise.
18923 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
18924 (cortex_a8_alu_shift): Likewise.
18925 (cortex_a8_alu_shift_reg): Likewise.
18926 (cortex_a8_mov): Likewise.
18927 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
18928 (cortex_a9_dp_shift): Likewise.
18929 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
18930 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
18931 (cortex_r4_mov): Likewise.
18932 (cortex_r4_alu_shift): Likewise.
18933 (cortex_r4_alu_shift_reg): Likewise.
18934 * config/arm/fa526.md (526_alu_op): Update for attribute change.
18935 (526_alu_shift_op): Likewise.
18936 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
18937 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
18938 (626te_alu_shift_op): Likewise.
18939 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
18940 (726te_alu_op): Likewise.
18941 (726te_alu_shift_op): Likewise.
18942 (726te_alu_shift_reg_op): Likewise.
18943 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
18944 (mp626_alu_shift_op): Likewise.
18945 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
18946 (pj4_alu_e1_conds): Likewise.
18947 (pj4_alu): Likewise.
18948 (pj4_alu_conds): Likewise.
18949 (pj4_shift): Likewise.
18950 (pj4_shift_conds): Likewise.
18951 (pj4_alu_shift): Likewise.
18952 (pj4_alu_shift_conds): Likewise.
18954 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18956 * config/arm/predicates.md (shiftable_operator_strict_it):
18958 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
18959 Disable cond_exec version for arm_restrict_it.
18960 (thumb2_smaxsi3): Convert to generate cond_exec.
18961 (thumb2_sminsi3): Likewise.
18962 (thumb32_umaxsi3): Likewise.
18963 (thumb2_uminsi3): Likewise.
18964 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
18965 (thumb2_neg_abssi2): Likewise.
18966 (thumb2_mov_scc): Add alternative for 16-bit encoding.
18967 (thumb2_movsicc_insn): Adjust alternatives.
18968 (thumb2_mov_negscc): Disable for arm_restrict_it.
18969 (thumb2_mov_negscc_strict_it): New pattern.
18970 (thumb2_mov_notscc_strict_it): New pattern.
18971 (thumb2_mov_notscc): Disable for arm_restrict_it.
18972 (thumb2_ior_scc): Likewise.
18973 (thumb2_ior_scc_strict_it): New pattern.
18974 (thumb2_cond_move): Adjust for arm_restrict_it.
18975 (thumb2_cond_arith): Disable for arm_restrict_it.
18976 (thumb2_cond_arith_strict_it): New pattern.
18977 (thumb2_cond_sub): Adjust for arm_restrict_it.
18978 (thumb2_movcond): Likewise.
18979 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
18980 (thumb2_zero_extendhisi2_v6): Likewise.
18981 (thumb2_zero_extendqisi2_v6): Likewise.
18982 (orsi_notsi_si): Likewise.
18983 (orsi_not_shiftsi_si): Likewise.
18985 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
18987 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
18988 instruction sequence is 1 byte shorter.
18990 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
18992 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
18993 it is not needed after split.
18995 2013-07-20 Iain Sandoe <iain@codesourcery.com>
18998 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
18999 second label for nonlocal goto receivers. Don't output pic base labels
19000 unless we're producing PIC; mark that action unreachable().
19001 (ix86_save_reg): If the function contains a nonlocal label, save the
19003 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
19004 * config/darwin.c (emitted_pic_label_num): New GTY.
19005 (update_pic_label_number_if_needed): New.
19006 (machopic_output_function_base_name): Adjust for nonlocal receiver
19008 (machopic_should_output_picbase_label): New.
19009 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
19010 (nonlocal_goto_receiver): New insn and split.
19012 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
19014 * config/aarch64/aarch64-builtins.c
19015 (aarch64_fold_builtin): Fold abs in all modes.
19016 * config/aarch64/aarch64-simd-builtins.def
19017 (abs): Enable for all modes.
19018 * config/aarch64/arm_neon.h
19019 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
19020 (vabs_f64): Add missing intrinsic.
19022 2013-07-19 Ian Bolton <ian.bolton@arm.com>
19024 * config/aarch64/arm_neon.h (vabs_s64): New function
19026 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
19029 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
19030 * config/avr/avr.md (adjust_len): Add `round'.
19031 * config/avr/avr-protos.h (avr_out_round): New prototype.
19032 (avr_out_plus): Add `out_label' argument.
19033 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
19034 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
19035 Handle the case where `insn' is just a pattern.
19036 (avr_out_bitop): Handle the case where `insn' is just a pattern.
19037 (avr_out_round): New function.
19038 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
19040 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
19042 * config/microblaze/microblaze.c (microblaze_expand_prologue):
19043 Add check for flag_stack_usage to handle -fstack-usage support
19045 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
19047 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
19048 interaction for new Power8 flags and VSX.
19050 2013-07-18 Sriraman Tallam <tmsriram@google.com>
19052 PR middle-end/57698
19053 * tree-inline.c (expand_call_inline): Emit errors during
19054 early_inlining only if optimization is not turned on.
19056 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19060 * passes.c (init_optimization_passes): Move the construction of
19061 the pass hierarchy into a new passes.def file.
19063 * Makefile.in (passes.o): Add dependency on passes.def.
19065 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19067 * passes.c (init_optimization_passes): Introduce macros for
19068 constructing the tree of passes (INSERT_PASSES_AFTER,
19069 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
19070 TERMINATE_PASS_LIST).
19072 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
19073 Wei Mi <wmi@google.com>
19075 PR rtl-optimization/57878
19076 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
19078 (reload_pseudo_compare_func): Check nregs first for reload
19081 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19083 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
19085 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
19087 * read-rtl.c (validate_const_int): Once an invalid character is
19088 seen, quit the loop.
19090 * gengtype.c (write_roots): Similarly once we find the "deletable"
19091 or "if_marked" option.
19093 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
19095 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
19096 "xtab" and "sat". Move value "clz" from here to ...
19097 (attriubte "type"): ... here.
19098 (satsi_<SAT:code>): Delete "insn" attribute.
19099 (satsi_<SAT:code>_shift): Likewise.
19100 (arm_zero_extendqisi2addsi): Likewise.
19101 (arm_extendqisi2addsi): Likewise.
19102 (clzsi2): Update for attribute changes.
19103 (rbitsi2): Likewise.
19104 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
19106 (arm_usatsihi): Likewise.
19107 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19109 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
19111 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
19112 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
19113 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
19114 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
19115 in alphabetical order.
19116 (attribute "core_cycles"): Update for attribute changes.
19117 (arm_addsi3): Likewise.
19118 (addsi3_compare0): Likewise.
19119 (addsi3_compare0_scratch): Likewise.
19120 (addsi3_compare_op1): Likewise.
19121 (addsi3_compare_op2): Likewise.
19122 (compare_addsi2_op0): Likewise.
19123 (compare_addsi2_op1): Likewise.
19124 (addsi3_carryin_shift_<optab>): Likewise.
19125 (subsi3_carryin_shift): Likewise.
19126 (rsbsi3_carryin_shift): Likewise.
19127 (arm_subsi3_insn): Likewise.
19128 (subsi3_compare0): Likewise.
19129 (subsi3_compare): Likewise.
19130 (arm_andsi3_insn): Likewise.
19131 (thumb1_andsi3_insn): Likewise.
19132 (andsi3_compare0): Likewise.
19133 (andsi3_compare0_scratch): Likewise.
19134 (zeroextractsi_compare0_scratch
19135 (andsi_not_shiftsi_si): Likewise.
19136 (iorsi3_insn): Likewise.
19137 (iorsi3_compare0): Likewise.
19138 (iorsi3_compare0_scratch): Likewise.
19139 (arm_xorsi3): Likewise.
19140 (thumb1_xorsi3_insn): Likewise.
19141 (xorsi3_compare0): Likewise.
19142 (xorsi3_compare0_scratch): Likewise.
19143 (satsi_<SAT:code>_shift): Likewise.
19145 (arm_shiftsi3): Likewise.
19146 (shiftsi3_compare0): Likewise.
19147 (not_shiftsi): Likewise.
19148 (not_shiftsi_compare0): Likewise.
19149 (not_shiftsi_compare0_scratch): Likewise.
19150 (arm_one_cmplsi2): Likewise.
19151 (thumb_one_complsi2): Likewise.
19152 (notsi_compare0): Likewise.
19153 (notsi_compare0_scratch): Likewise.
19154 (thumb1_zero_extendhisi2): Likewise.
19155 (arm_zero_extendhisi2): Likewise.
19156 (arm_zero_extendhisi2_v6): Likewise.
19157 (arm_zero_extendhisi2addsi): Likewise.
19158 (thumb1_zero_extendqisi2): Likewise.
19159 (thumb1_zero_extendqisi2_v6): Likewise.
19160 (arm_zero_extendqisi2): Likewise.
19161 (arm_zero_extendqisi2_v6): Likewise.
19162 (arm_zero_extendqisi2addsi): Likewise.
19163 (thumb1_extendhisi2): Likewise.
19164 (arm_extendhisi2): Likewise.
19165 (arm_extendhisi2_v6): Likewise.
19166 (arm_extendqisi): Likewise.
19167 (arm_extendqisi_v6): Likewise.
19168 (arm_extendqisi2addsi): Likewise.
19169 (thumb1_extendqisi2): Likewise.
19170 (thumb1_movdi_insn): Likewise.
19171 (arm_movsi_insn): Likewise.
19172 (movsi_compare0): Likewise.
19173 (movhi_insn_arch4): Likewise.
19174 (movhi_bytes): Likewise.
19175 (arm_movqi_insn): Likewise.
19176 (thumb1_movqi_insn): Likewise.
19177 (arm32_movhf): Likewise.
19178 (thumb1_movhf): Likewise.
19179 (arm_movsf_soft_insn): Likewise.
19180 (thumb1_movsf_insn): Likewise.
19181 (movdf_soft_insn): Likewise.
19182 (thumb_movdf_insn): Likewise.
19183 (arm_cmpsi_insn): Likewise.
19184 (cmpsi_shiftsi): Likewise.
19185 (cmpsi_shiftsi_swp): Likewise.
19186 (arm_cmpsi_negshiftsi_si): Likewise.
19187 (movsicc_insn): Likewise.
19188 (movsfcc_soft_insn): Likewise.
19189 (arith_shiftsi): Likewise.
19190 (arith_shiftsi_compare0
19191 (arith_shiftsi_compare0_scratch
19192 (sub_shiftsi): Likewise.
19193 (sub_shiftsi_compare0
19194 (sub_shiftsi_compare0_scratch
19195 (and_scc): Likewise.
19196 (cond_move): Likewise.
19197 (if_plus_move): Likewise.
19198 (if_move_plus): Likewise.
19199 (if_move_not): Likewise.
19200 (if_not_move): Likewise.
19201 (if_shift_move): Likewise.
19202 (if_move_shift): Likewise.
19203 (if_shift_shift): Likewise.
19204 (if_not_arith): Likewise.
19205 (if_arith_not): Likewise.
19206 (cond_move_not): Likewise.
19207 (thumb1_ashlsi3): Set type attribute.
19208 (thumb1_ashrsi3): Likewise.
19209 (thumb1_lshrsi3): Likewise.
19210 (thumb1_rotrsi3): Likewise.
19211 (shiftsi3_compare0_scratch): Likewise.
19212 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
19213 (neon_mov<mode>): Likewise.
19214 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
19216 (thumb2_movsi_insn): Likewise.
19217 (thumb2_cmpsi_neg_shiftsi): Likewise.
19218 (thumb2_extendqisi_v6): Likewise.
19219 (thumb2_zero_extendhisi2_v6): Likewise.
19220 (thumb2_zero_extendqisi2_v6): Likewise.
19221 (thumb2_shiftsi3_short): Likewise.
19222 (thumb2_addsi3_compare0_scratch): Likewise.
19223 (orsi_not_shiftsi_si): Likewise.
19224 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19225 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
19227 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
19228 (1020alu_shift_op): Likewise.
19229 (1020alu_shift_reg_op): Likewise.
19230 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
19231 (alu_shift_op): Likewise.
19232 (alu_shift_reg_op): Likewise.
19233 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
19234 (11_alu_shift_op): Likewise.
19235 (11_alu_shift_reg_op): Likewise.
19236 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
19237 (9_alu_shift_reg_op): Likewise.
19238 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19240 (cortex_a15_alu_shift): Likewise.
19241 (cortex_a15_alu_shift_reg): Likewise.
19242 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
19244 (cortex_a5_alu_shift): Likewise.
19245 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
19247 (cortex_a53_alu_shift): Likewise.
19248 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
19250 (cortex_a7_alu_reg): Likewise.
19251 (cortex_a7_alu_shift): Likewise.
19252 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
19254 (cortex_a8_alu_shift): Likewise.
19255 (cortex_a8_alu_shift_reg): Likewise.
19256 (cortex_a8_mov): Likewise.
19257 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
19258 (cortex_a9_dp_shift): Likewise.
19259 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
19261 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
19263 (cortex_r4_mov): Likewise.
19264 (cortex_r4_alu_shift): Likewise.
19265 (cortex_r4_alu_shift_reg): Likewise.
19266 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
19267 (526_alu_shift_op): Likewise.
19268 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19269 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19270 (626te_alu_shift_op): Likewise.
19271 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
19272 (726te_alu_op): Likewise.
19273 (726te_alu_shift_op): Likewise.
19274 (726te_alu_shift_reg_op): Likewise.
19275 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
19276 (mp626_alu_shift_op): Likewise.
19277 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
19278 (pj4_alu_e1_conds): Likewise.
19279 (pj4_alu): Likewise.
19280 (pj4_alu_conds): Likewise.
19281 (pj4_shift): Likewise.
19282 (pj4_shift_conds): Likewise.
19283 (pj4_alu_shift): Likewise.
19284 (pj4_alu_shift_conds): Likewise.
19285 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
19287 (cortexa7_older_only): Likewise.
19288 (cortexa7_younger): Likewise.
19290 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19292 * ipa-pure-const.c (generate_summary): Rename to...
19293 (pure_const_generate_summary): ... this.
19295 2013-07-17 Iain Sandoe <iain@codesourcery.com>
19297 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
19299 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
19302 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
19305 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19307 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
19308 enabled without -march=zEC12.
19309 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
19312 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
19314 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
19315 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
19316 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
19317 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
19318 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
19319 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
19320 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
19322 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
19323 and ISA_HAS_NMADD3_NMSUB3.
19324 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
19325 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
19326 (nmsub4<mode>, nmsub3<mode>): Likewise.
19327 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
19329 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
19331 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
19332 TARGET_MIPS5400 checking.
19334 2013-07-16 Jakub Jelinek <jakub@redhat.com>
19335 Peter Bergner <bergner@vnet.ibm.com>
19337 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
19338 registers in the comment.
19339 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
19340 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
19341 rather than FIRST_PSEUDO_REGISTERS.
19343 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
19345 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
19346 enable extra ISA flags with TARGET_HTM.
19348 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
19350 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
19353 2013-07-15 Cong Hou <congh@google.com>
19355 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
19356 in compare function for sorting.
19358 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
19360 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
19361 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
19362 * config/rs6000/rs6000.opt: Add -mhtm option.
19363 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
19364 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
19365 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
19366 __HTM__ if the HTM instructions are available.
19367 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
19368 htm_spr_reg_operand): New define_predicates.
19369 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
19370 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
19372 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
19373 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
19374 HTM builtin functions.
19375 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
19376 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
19377 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
19378 (rs6000_builtin_mask_calculate): Likewise.
19379 (rs6000_option_override_internal): Likewise.
19380 (bdesc_htm): Add new HTM builtin support.
19381 (htm_spr_num): New function.
19382 (htm_spr_regno): Likewise.
19383 (rs6000_htm_spr_icode): Likewise.
19384 (htm_expand_builtin): Likewise.
19385 (htm_init_builtins): Likewise.
19386 (rs6000_expand_builtin): Add support for HTM builtin functions.
19387 (rs6000_init_builtins): Likewise.
19388 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
19390 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
19391 (TARGET_HTM, MASK_HTM): Define macros.
19392 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
19393 (FIXED_REGISTERS): Likewise.
19394 (CALL_USED_REGISTERS): Likewise.
19395 (CALL_REALLY_USED_REGISTERS): Likewise.
19396 (REG_ALLOC_ORDER): Likewise.
19397 (enum reg_class): Likewise.
19398 (REG_CLASS_NAMES): Likewise.
19399 (REG_CLASS_CONTENTS): Likewise.
19400 (REGISTER_NAMES): Likewise.
19401 (ADDITIONAL_REGISTER_NAMES): Likewise.
19402 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
19403 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
19404 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
19405 * config/rs6000/htm.md: New file.
19406 * config/rs6000/htmintrin.h: New file.
19407 * config/rs6000/htmxlintrin.h: New file.
19409 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
19411 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
19412 Define SYMBOL_TINY_GOT, update comment.
19413 * config/aarch64/aarch64.c
19414 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
19415 (aarch64_expand_mov_immediate): Likewise.
19416 (aarch64_print_operand): Likewise.
19417 (aarch64_classify_symbol): Likewise.
19418 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
19419 (ldr_got_tiny): Define.
19421 2013-07-13 Tobias Grosser <tobias@grosser.es>
19423 PR tree-optimization/54094
19424 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
19425 scheduling dimension for the parallelism check from the polyhedral
19426 information in the AST.
19427 * graphite-dependences.c (carries_deps): Do not assume the schedule is
19430 2013-07-13 Jason Merrill <jason@redhat.com>
19432 * print-tree.c (debug_vec_tree): Use debug_raw.
19433 (debug_raw (vec<tree, va_gc> &)): New.
19434 (debug_raw (vec<tree, va_gc> *)): New.
19435 * tree.h: Declare them.
19437 2013-07-13 Bin Cheng <bin.cheng@arm.com>
19439 * ifcvt.c (ifcvt_after_combine): New static variable.
19440 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
19442 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
19443 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
19444 rest_of_handle_if_after_reload): Pass new argument for if_convert.
19446 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
19448 * config/mips/mips.c (mips_expand_call): Remove empty statement.
19450 2013-07-12 Michael Matz <matz@suse.de>
19452 PR middle-end/55771
19453 * convert.c (convert_to_real): Reject non-float inner types.
19455 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
19457 * config/aarch64/aarch64-protos.h
19458 (aarch64_simd_immediate_valid_for_move): Remove.
19459 * config/aarch64/aarch64.c (simd_immediate_info): New member.
19460 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
19462 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
19464 2013-07-11 Steve Ellcey <sellcey@mips.com>
19466 * config/mips/mips.c (mips_conditional_register_usage): Do not
19467 use t[0-7] registers in MIPS16 mode when optimizing for size.
19469 2013-07-11 Sriraman Tallam <tmsriram@google.com>
19471 * config/i386/i386.c (dispatch_function_versions): Fix array
19472 indexing of function_version_info to match actual_versions.
19474 2013-07-11 Teresa Johnson <tejohnson@google.com>
19476 * vec.h (struct va_gc): Move release out-of-line.
19477 (va_gc::release): Call ggc_free on released vec.
19479 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19481 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
19482 Require GOT register as additional operand in UNSPEC.
19483 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
19484 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
19485 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
19486 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
19487 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
19488 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
19489 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
19491 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
19494 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
19495 name seen by assembler/linker rather if available.
19497 2013-07-11 Andreas Schwab <schwab@suse.de>
19499 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
19501 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
19503 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
19505 2013-07-10 Joseph Myers <joseph@codesourcery.com>
19507 * doc/tm.texi.in: Move hook documentation to ....
19508 * target.def: ... here.
19510 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
19511 text on @hook line.
19512 * doc/tm.texi: Regenerate.
19514 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
19517 * doc/invoke.texi: Document -Wconditionally-supported.
19519 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
19522 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
19525 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
19528 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
19529 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
19530 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
19531 Remove duplicate devices.
19532 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
19533 * config/avr/t-multilib: Regenerate.
19534 * config/avr/avr-tables.opt: Regenerate.
19535 * doc/avr-mmcu.texi: Regenerate.
19537 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
19540 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
19542 2013-07-10 Graham Stott <graham.stott@btinternet.com>
19544 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
19545 the cost of MULT when optimizing for size.
19547 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19549 * config/cr16/cr16-protos.h: Don't include target.h.
19551 2013-07-09 Joseph Myers <joseph@codesourcery.com>
19553 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
19554 adjust register size for TDmode and TFmode for VSX registers.
19556 2013-07-08 Kai Tietz <ktietz@redhat.com>
19559 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
19560 hook_bool_const_tree_true.
19562 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19564 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
19565 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
19566 * config/s390/s390.md: Define FPR*_REGNUM constants.
19567 Fix FPR2_REGNUM constant (18 -> 17).
19568 ("*trunc<BFP:mode><DFP_ALL:mode>2")
19569 ("*trunc<DFP_ALL:mode><BFP:mode>2")
19570 ("trunc<BFP:mode><DFP_ALL:mode>2")
19571 ("trunc<DFP_ALL:mode><BFP:mode>2")
19572 ("*extend<BFP:mode><DFP_ALL:mode>2")
19573 ("*extend<DFP_ALL:mode><BFP:mode>2")
19574 ("extend<BFP:mode><DFP_ALL:mode>2")
19575 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
19578 2013-07-08 Graham Stott <graham.stott@btinternet.com>
19580 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
19582 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19584 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
19585 and cfun_fpr_bit_p to cfun_fpr_save_p.
19586 (s390_frame_area, s390_register_info, s390_frame_info)
19587 (s390_emit_prologue, s390_emit_epilogue)
19588 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
19590 * config/s390/s390.h: Define *_REGNUM macros for floating point
19593 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
19595 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
19597 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
19599 PR rtl-optimization/57786
19600 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
19601 and break out of the loop when it is set to false.
19603 2013-07-08 Jakub Jelinek <jakub@redhat.com>
19606 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
19607 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
19608 (const_int 63)) 0)).
19609 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
19610 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
19611 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
19613 PR rtl-optimization/57829
19614 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
19615 mask bits outside of mode are just sign-extension from mode to HWI.
19617 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
19619 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
19620 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
19621 adjust_address instead of change_address to keep info about alignment.
19622 (emit_strmov): Remove.
19623 (emit_memmov): New function.
19624 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
19625 (expand_movmem_epilogue): Likewise and return updated rtx for
19627 (expand_constant_movmem_prologue): Likewise and return updated rtx for
19628 destination and source.
19629 (decide_alignment): Refactor, handle vector_loop.
19630 (ix86_expand_movmem): Likewise.
19631 (ix86_expand_setmem): Likewise.
19632 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
19634 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
19636 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
19637 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
19639 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
19641 * config/i386/sse.md (sse_movlhps): Change alternative 3
19642 of operand 2 to "m".
19644 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
19647 * config/i386/sse.md (iptr): New mode attribute.
19648 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
19649 (<sse>_vm<plusminus_insn><mode>3): Ditto.
19650 (<sse>_vmmul<mode>3): Ditto.
19651 (<sse>_vmdiv<mode>3): Ditto.
19652 (sse_vmrcpv4sf2): Ditto.
19653 (<sse>_vmsqrt<mode>2): Ditto.
19654 (sse_vmrsqrtv4sf2): Ditto.
19655 (<sse>_vm<code><mode>3): Ditto.
19656 (avx_vmcmp<mode>3): Ditto.
19657 (<sse>_vmmaskcmp<mode>3): Ditto.
19658 (<sse>_comi): Ditto.
19659 (<sse>_ucomi): Ditto.
19660 (*xop_vmfrcz_<mode>): Ditto.
19661 (*fmai_fmadd_<mode>): Ditto.
19662 (*fmai_fmsub_<mode>): Ditto.
19663 (*fmai_fnmadd_<mode>): Ditto.
19664 (*fmai_fnmsub_<mode>): Ditto.
19665 (*fma4i_vmfmadd_<mode>): Ditto.
19666 (*fma4i_vmfmsub_<mode>): Ditto.
19667 (*fma4i_vmfnmadd_<mode>): Ditto.
19668 (*fma4i_vmfnmsub_<mode>): Ditto.
19669 (*xop_vmfrcz_<mode>): Ditto.
19670 (sse_cvtps2pi): Ditto.
19671 (sse_cvttps2pi): Ditto.
19672 (sse_cvtss2si): Ditto.
19673 (sse_cvtss2si_2): Ditto.
19674 (sse_cvtss2siq_2): Ditto.
19675 (sse_cvttss2si): Ditto.
19676 (sse_cvttss2siq): Ditto.
19677 (sse_cvtsd2si): Ditto.
19678 (sse_cvtsd2si_2): Ditto.
19679 (sse_cvtsd2siq_2): Ditto.
19680 (sse_cvttsd2si): Ditto.
19681 (sse_cvttsd2siq): Ditto.
19682 (sse_cvtsd2ss): Ditto.
19683 (sse_cvtss2sd): Ditto.
19684 (avx2_pbroadcast<mode>): Ditto.
19685 (avx2_pbroadcast<mode>_1): Ditto.
19686 (*avx_vperm_broadcast_v4sf): Ditto.
19688 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
19689 (sse_movlhps): Ditto.
19690 (sse_storehps): Ditto.
19691 (sse_loadhps): Ditto.
19692 (sse_storelps): Ditto.
19693 (sse_loadlps): Ditto.
19694 (*vec_concatv4sf): Ditto.
19695 (*vec_interleave_highv2df): Ditto.
19696 (*vec_interleave_lowv2df): Ditto.
19697 (*vec_extractv2df_1_sse): Ditto.
19698 (*vec_extractv2df_0_sse): Ditto.
19699 (sse2_storelpd): Ditto.
19700 (sse2_loadlpd): Ditto.
19701 (sse2_movsd): Ditto.
19702 (*vec_concatv4si): Ditto.
19703 (vec_concatv2di): Ditto.
19705 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
19706 for Intel asm dialect.
19707 (mmx_punpcklwd): Ditto.
19708 (mmx_punpckldq): Ditto.
19710 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
19711 for intel assembler dialect.
19713 2013-07-06 Jakub Jelinek <jakub@redhat.com>
19716 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
19717 for BUILT_IN_C{LZ,LRSB}*.
19718 * tree.h (CASE_INT_FN): Add FN##IMAX case.
19719 * tree-vrp.c (extract_range_basic): Handle
19720 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
19721 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
19722 fall thru to code calling set_value*.
19723 * builtins.c (expand_builtin): Remove *IMAX cases.
19724 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
19725 if width is bigger than 2*HWI.
19727 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
19729 PR rtl-optimization/55342
19730 * lra-int.h (lra_subreg_reload_pseudos): New.
19731 * lra.c: Add undoing optional reloads to the block diagram.
19732 (lra_subreg_reload_pseudos): New.
19733 (lra_optional_reload_pseudos): Change comments.
19734 (lra): Init and clear lra_subreg_reload_pseudos. Clear
19735 lra_optional_reload_pseudos after undo transformations.
19736 * lra-assigns.c (pseudo_prefix_title): New.
19737 (lra_setup_reg_renumber): Use it.
19738 (spill_for): Ditto. Check subreg reload pseudos too.
19739 (assign_by_spills): Consider subreg reload pseudos too.
19740 * lra-constraints.c (simplify_operand_subreg): Use
19741 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
19742 (curr_insn_transform): Recognize and do optional reloads.
19743 (undo_optional_reloads): New.
19744 (lra_undo_inheritance): Call undo_optional_reloads.
19746 2013-07-05 Thomas Quinot <quinot@adacore.com>
19748 * tree-complex.c (expand_complex_operations_1): Fix typo.
19750 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
19752 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
19753 (tune_params): New member 'const vec_costs'.
19754 * config/aarch64/aarch64.c (generic_vector_cost): New.
19755 (generic_tunings): New member 'generic_vector_cost'.
19756 (aarch64_builtin_vectorization_cost): New.
19757 (aarch64_add_stmt_cost): New.
19758 (TARGET_VECTORIZE_ADD_STMT_COST): New.
19759 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
19761 2013-07-03 Jakub Jelinek <jakub@redhat.com>
19764 * config/i386/predicates.md (vsib_address_operand): Disallow
19765 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
19767 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
19769 PR middle-end/55030
19770 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
19771 expand_builtin_setjmp_receiver.
19772 (expand_label): Adjust, call expand_builtin_setjmp_receiver
19773 with NULL for the label parameter.
19774 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
19775 the frame-pointer. Adjust comments.
19776 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
19777 only if LABEL is non-NULL.
19779 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
19781 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
19782 (ARM_ABI_AAPCS64): Ditto.
19784 (ARM_DEFAULT_ABI): Ditto.
19786 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19788 * config/aarch64/aarch64-builtins.c
19789 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
19790 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
19792 * config/aarch64/aarch64-simd.md
19793 (aarch64_ld1<VALL:mode>): New.
19794 (aarch64_st1<VALL:mode>): Likewise.
19795 * config/aarch64/arm_neon.h
19796 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
19798 2013-07-02 Sriraman Tallam <tmsriram@google.com>
19800 * config/i386/i386.c (gate_insert_vzeroupper): Check if
19802 (ix86_option_override_internal):Turn on all -mavx target flags by
19803 default as they are dependent on AVX anyway.
19805 2013-07-02 Cary Coutant <ccoutant@google.com>
19807 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
19808 deterministic hash.
19809 (loc_checksum_ordered): Likewise.
19810 (hash_loc_operands): Remove inline keyword.
19812 2013-07-02 Jakub Jelinek <jakub@redhat.com>
19814 PR tree-optimization/57741
19815 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
19816 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
19817 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
19818 Allow REAL_CST step_exprs if flag_associative_math.
19819 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
19821 2013-07-02 Ian Bolton <ian.bolton@arm.com>
19823 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
19825 2013-07-02 Ian Bolton <ian.bolton@arm.com>
19827 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
19829 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19831 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
19833 (iorsi3_insn): Likewise.
19834 (arm_xorsi3): Likewise.
19836 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
19838 * arm.md (attribute "wtype"): Delete. Move attribute values from here
19840 (attribute "type"): ... here, and prefix with "wmmx_".
19841 (attribute "core_cycles"): Update for attribute changes.
19842 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
19843 (tbcstv4hi): Likewise.
19844 (tbcstv2si): Likewise.
19845 (iwmmxt_iordi3): Likewise.
19846 (iwmmxt_xordi3): Likewise.
19847 (iwmmxt_anddi3): Likewise.
19848 (iwmmxt_nanddi3): Likewise.
19849 (iwmmxt_arm_movdi): Likewise.
19850 (iwmmxt_movsi_insn): Likewise.
19851 (mov<mode>_internal): Likewise.
19852 (and<mode>3_iwmmxt): Likewise.
19853 (ior<mode>3_iwmmxt): Likewise.
19854 (xor<mode>3_iwmmxt): Likewise.
19855 (add<mode>3_iwmmxt): Likewise.
19856 (ssaddv8qi3): Likewise.
19857 (ssaddv4hi3): Likewise.
19858 (ssaddv2si3): Likewise.
19859 (usaddv8qi3): Likewise.
19860 (usaddv4hi3): Likewise.
19861 (usaddv2si3): Likewise.
19862 (sub<mode>3_iwmmxt): Likewise.
19863 (sssubv8qi3): Likewise.
19864 (sssubv4hi3): Likewise.
19865 (sssubv2si3): Likewise.
19866 (ussubv8qi3): Likewise.
19867 (ussubv4hi3): Likewise.
19868 (ussubv2si3): Likewise.
19869 (mulv4hi3_iwmmxt): Likewise.
19870 (smulv4hi3_highpart): Likewise.
19871 (umulv4hi3_highpart): Likewise.
19872 (iwmmxt_wmacs): Likewise.
19873 (iwmmxt_wmacsz): Likewise.
19874 (iwmmxt_wmacu): Likewise.
19875 (iwmmxt_wmacuz): Likewise.
19876 (iwmmxt_clrdi): Likewise.
19877 (iwmmxt_clrv8qi): Likewise.
19878 (iwmmxt_clr4hi): Likewise.
19879 (iwmmxt_clr2si): Likewise.
19880 (iwmmxt_uavgrndv8qi3): Likewise.
19881 (iwmmxt_uavgrndv4hi3): Likewise.
19882 (iwmmxt_uavgv8qi3): Likewise.
19883 (iwmmxt_uavgv4hi3): Likewise.
19884 (iwmmxt_tinsrb): Likewise.
19885 (iwmmxt_tinsrh): Likewise.
19886 (iwmmxt_tinsrw): Likewise.
19887 (iwmmxt_textrmub): Likewise.
19888 (iwmmxt_textrmsb): Likewise.
19889 (iwmmxt_textrmuh): Likewise.
19890 (iwmmxt_textrmsh): Likewise.
19891 (iwmmxt_textrmw): Likewise.
19892 (iwmxxt_wshufh): Likewise.
19893 (eqv8qi3): Likewise.
19894 (eqv4hi3): Likewise.
19895 (eqv2si3): Likewise.
19896 (gtuv8qi3): Likewise.
19897 (gtuv4hi3): Likewise.
19898 (gtuv2si3): Likewise.
19899 (gtv8qi3): Likewise.
19900 (gtv4hi3): Likewise.
19901 (gtv2si3): Likewise.
19902 (smax<mode>3_iwmmxt): Likewise.
19903 (umax<mode>3_iwmmxt): Likewise.
19904 (smin<mode>3_iwmmxt): Likewise.
19905 (umin<mode>3_iwmmxt): Likewise.
19906 (iwmmxt_wpackhss): Likewise.
19907 (iwmmxt_wpackwss): Likewise.
19908 (iwmmxt_wpackdss): Likewise.
19909 (iwmmxt_wpackhus): Likewise.
19910 (iwmmxt_wpackwus): Likewise.
19911 (iwmmxt_wpackdus): Likewise.
19912 (iwmmxt_wunpckihb): Likewise.
19913 (iwmmxt_wunpckihh): Likewise.
19914 (iwmmxt_wunpckihw): Likewise.
19915 (iwmmxt_wunpckilb): Likewise.
19916 (iwmmxt_wunpckilh): Likewise.
19917 (iwmmxt_wunpckilw): Likewise.
19918 (iwmmxt_wunpckehub): Likewise.
19919 (iwmmxt_wunpckehuh): Likewise.
19920 (iwmmxt_wunpckehuw): Likewise.
19921 (iwmmxt_wunpckehsb): Likewise.
19922 (iwmmxt_wunpckehsh): Likewise.
19923 (iwmmxt_wunpckehsw): Likewise.
19924 (iwmmxt_wunpckelub): Likewise.
19925 (iwmmxt_wunpckeluh): Likewise.
19926 (iwmmxt_wunpckeluw): Likewise.
19927 (iwmmxt_wunpckelsb): Likewise.
19928 (iwmmxt_wunpckelsh): Likewise.
19929 (iwmmxt_wunpckelsw): Likewise.
19930 (ror<mode>3): Likewise.
19931 (ashr<mode>3_iwmmxt): Likewise.
19932 (lshr<mode>3_iwmmxt): Likewise.
19933 (ashl<mode>3_iwmmxt): Likewise.
19934 (ror<mode>3_di): Likewise.
19935 (ashr<mode>3_di): Likewise.
19936 (lshr<mode>3_di): Likewise.
19937 (ashl<mode>3_di): Likewise.
19938 (iwmmxt_wmadds): Likewise.
19939 (iwmmxt_wmaddu): Likewise.
19940 (iwmmxt_tmia): Likewise.
19941 (iwmmxt_tmiaph): Likewise.
19942 (iwmmxt_tmiabb): Likewise.
19943 (iwmmxt_tmiatb): Likewise.
19944 (iwmmxt_tmiabt): Likewise.
19945 (iwmmxt_tmiatt): Likewise.
19946 (iwmmxt_tmovmskb): Likewise.
19947 (iwmmxt_tmovmskh): Likewise.
19948 (iwmmxt_tmovmskw): Likewise.
19949 (iwmmxt_waccb): Likewise.
19950 (iwmmxt_wacch): Likewise.
19951 (iwmmxt_waccw): Likewise.
19952 (iwmmxt_waligni): Likewise.
19953 (iwmmxt_walignr): Likewise.
19954 (iwmmxt_walignr0): Likewise.
19955 (iwmmxt_walignr1): Likewise.
19956 (iwmmxt_walignr2): Likewise.
19957 (iwmmxt_walignr3): Likewise.
19958 (iwmmxt_wsadb): Likewise.
19959 (iwmmxt_wsadh): Likewise.
19960 (iwmmxt_wsadbz): Likewise.
19961 (iwmmxt_wsadhz): Likewise.
19962 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
19963 (iwmmxt_wabsdiffb): Likewise.
19964 (iwmmxt_wabsdiffh): Likewise.
19965 (iwmmxt_wabsdiffw): Likewise.
19966 (iwmmxt_waddsubhx): Likewise
19967 (iwmmxt_wsubaddhx): Likewise.
19968 (addc<mode>3): Likewise.
19969 (iwmmxt_avg4): Likewise.
19970 (iwmmxt_avg4r): Likewise.
19971 (iwmmxt_wmaddsx): Likewise.
19972 (iwmmxt_wmaddux): Likewise.
19973 (iwmmxt_wmaddsn): Likewise.
19974 (iwmmxt_wmaddun): Likewise.
19975 (iwmmxt_wmulwsm): Likewise.
19976 (iwmmxt_wmulwum): Likewise.
19977 (iwmmxt_wmulsmr): Likewise.
19978 (iwmmxt_wmulumr): Likewise.
19979 (iwmmxt_wmulwsmr): Likewise.
19980 (iwmmxt_wmulwumr): Likewise.
19981 (iwmmxt_wmulwl): Likewise.
19982 (iwmmxt_wqmulm): Likewise.
19983 (iwmmxt_wqmulwm): Likewise.
19984 (iwmmxt_wqmulmr): Likewise.
19985 (iwmmxt_wqmulwmr): Likewise.
19986 (iwmmxt_waddbhusm): Likewise.
19987 (iwmmxt_waddbhusl): Likewise.
19988 (iwmmxt_wqmiabb): Likewise.
19989 (iwmmxt_wqmiabt): Likewise.
19990 (iwmmxt_wqmiatb): Likewise.
19991 (iwmmxt_wqmiatt): Likewise.
19992 (iwmmxt_wqmiabbn): Likewise.
19993 (iwmmxt_wqmiabtn): Likewise.
19994 (iwmmxt_wqmiatbn): Likewise.
19995 (iwmmxt_wqmiattn): Likewise.
19996 (iwmmxt_wmiabb): Likewise.
19997 (iwmmxt_wmiabt): Likewise.
19998 (iwmmxt_wmiatb): Likewise.
19999 (iwmmxt_wmiatt): Likewise.
20000 (iwmmxt_wmiabbn): Likewise.
20001 (iwmmxt_wmiabtn): Likewise.
20002 (iwmmxt_wmiatbn): Likewise.
20003 (iwmmxt_wmiattn): Likewise.
20004 (iwmmxt_wmiawbb): Likewise.
20005 (iwmmxt_wmiawbt): Likewise.
20006 (iwmmxt_wmiawtb): Likewise.
20007 (iwmmxt_wmiawtt): Likewise.
20008 (iwmmxt_wmiawbbn): Likewise.
20009 (iwmmxt_wmiawbtn): Likewise.
20010 (iwmmxt_wmiawtbn): Likewise.
20011 (iwmmxt_wmiawttn): Likewise.
20012 (iwmmxt_wmerge): Likewise.
20013 (iwmmxt_tandc<mode>3): Likewise.
20014 (iwmmxt_torc<mode>3): Likewise.
20015 (iwmmxt_torvsc<mode>3): Likewise.
20016 (iwmmxt_textrc<mode>3): Likewise.
20017 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
20018 (wmmxt_pack): Likewise.
20019 (wmmxt_mult_c1): Likewise.
20020 (wmmxt_mult_c2): Likewise.
20021 (wmmxt_alu_c1): Likewise.
20022 (wmmxt_alu_c2): Likewise.
20023 (wmmxt_alu_c3): Likewise.
20024 (wmmxt_transfer_c1): Likewise.
20025 (wmmxt_transfer_c2): Likewise.
20026 (wmmxt_transfer_c3): Likewise.
20027 (marvell_f_iwmmxt_wstr): Likewise.
20028 (marvell_f_iwmmxt_wldr): Likewise.
20030 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
20032 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
20034 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
20037 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
20038 * lra-constraints.c (need_for_split_p): Check call used hard regs
20039 living through calls.
20041 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
20042 call used regs for call insn.
20044 2013-06-28 Jakub Jelinek <jakub@redhat.com>
20047 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
20048 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
20050 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
20052 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
20054 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
20056 * lra-constraints.c (need_for_split_p): Check call used hard regs
20057 living through calls.
20059 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
20062 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
20063 to tie with any other modes. Eliminate Altivec vector mode tests,
20064 since these are a subset of ALTIVEC or VSX vector modes. Simplify
20065 code, to return 0 if testing MODE2 for a condition, if we've
20066 already tested MODE1 for the same condition.
20068 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
20070 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
20073 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
20075 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20076 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
20078 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
20080 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
20082 (aarch64_symbolic_constant_p): Remove.
20083 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
20084 static. Fix line length and white space.
20085 (aarch64_symbolic_constant_p): Remove.
20086 * config/aarch64/predicates.md (aarch64_valid_symref):
20087 Use aarch64_classify_symbol_expression.
20089 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20091 * config/arm/constraints.md (Ts): New constraint.
20092 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
20094 (compare_scc): Use "Ts" constraint for operand 0.
20095 (ior_scc_scc): Likewise.
20096 (and_scc_scc): Likewise.
20097 (and_scc_scc_nodom): Likewise.
20098 (ior_scc_scc_cmp): Likewise for operand 7.
20099 (and_scc_scc_cmp): Likewise.
20100 * config/arm/thumb2.md (thumb2_movsi_insn):
20101 Add alternatives for 16-bit encodings.
20102 (thumb2_movhi_insn): Likewise.
20103 (thumb2_movsicc_insn): Likewise.
20104 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
20105 (thumb2_negscc): Use "Ts" constraint.
20106 Move mvn instruction outside cond_exec block.
20107 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
20108 for 16-bit encodings.
20110 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20112 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
20114 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
20115 (mulsi3subsi): Likewise.
20116 (mulsidi3adddi): Likewise.
20117 (mulsidi3_v6): Likewise.
20118 (umulsidi3_v6): Likewise.
20119 (umulsidi3adddi_v6): Likewise.
20120 (smulsi3_highpart_v6): Likewise.
20121 (umulsi3_highpart_v6): Likewise.
20122 (mulhisi3tb): Likewise.
20123 (mulhisi3bt): Likewise.
20124 (mulhisi3tt): Likewise.
20125 (maddhisi4): Likewise.
20126 (maddhisi4tb): Likewise.
20127 (maddhisi4tt): Likewise.
20128 (maddhidi4): Likewise.
20129 (maddhidi4tb): Likewise.
20130 (maddhidi4tt): Likewise.
20131 (zeroextractsi_compare0_scratch): Likewise.
20132 (insv_zero): Likewise.
20133 (insv_t2): Likewise.
20134 (anddi_notzesidi_di): Likewise.
20135 (anddi_notsesidi_di): Likewise.
20136 (andsi_notsi_si): Likewise.
20137 (iordi_zesidi_di): Likewise.
20138 (xordi_zesidi_di): Likewise.
20139 (andsi_iorsi3_notsi): Likewise.
20140 (smax_0): Likewise.
20141 (smax_m1): Likewise.
20142 (smin_0): Likewise.
20143 (not_shiftsi): Likewise.
20144 (unaligned_loadsi): Likewise.
20145 (unaligned_loadhis): Likewise.
20146 (unaligned_loadhiu): Likewise.
20147 (unaligned_storesi): Likewise.
20148 (unaligned_storehi): Likewise.
20149 (extv_reg): Likewise.
20150 (extzv_t2): Likewise.
20151 (divsi3): Likewise.
20152 (udivsi3): Likewise.
20153 (arm_zero_extendhisi2addsi): Likewise.
20154 (arm_zero_extendqisi2addsi): Likewise.
20155 (compareqi_eq0): Likewise.
20156 (arm_extendhisi2_v6): Likewise.
20157 (arm_extendqisi2addsi): Likewise.
20158 (arm_movt): Likewise.
20159 (thumb2_ldrd): Likewise.
20160 (thumb2_ldrd_base): Likewise.
20161 (thumb2_ldrd_base_neg): Likewise.
20162 (thumb2_strd): Likewise.
20163 (thumb2_strd_base): Likewise.
20164 (thumb2_strd_base_neg): Likewise.
20165 (arm_negsi2): Add alternative for 16-bit encoding.
20166 (arm_one_cmplsi2): Likewise.
20168 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20170 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
20171 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
20172 (movdfcc): Likewise.
20173 * config/arm/vfp.md (*thumb2_movsf_vfp):
20174 Disable predication for arm_restrict_it.
20175 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
20176 (*thumb2_movdfcc_vfp): Likewise.
20177 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
20178 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
20179 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
20180 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
20181 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
20182 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
20183 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
20184 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
20185 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
20186 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
20187 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
20188 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
20189 Disable predication for arm_restrict_it.
20191 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
20193 * config/i386/bmiintrin.h (_bextr_u32): New.
20194 (_bextr_u64): Ditto.
20196 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
20198 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
20199 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
20200 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
20201 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
20202 * config/mips/n32-elf.h: ...this new file.
20204 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
20207 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
20208 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
20210 2013-06-27 Catherine Moore <clm@codesourcery.com>
20212 * config/mips/mips-tables.opt: Regenerate.
20213 * config/mips/mips-cpus.def: Add m14ke and m14kec.
20214 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
20215 * doc/invoke.texi: Add -m14kc.
20217 2013-06-27 Jakub Jelinek <jakub@redhat.com>
20220 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
20221 constraints of operand 1 and 2.
20224 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
20225 to match RTL canonicalization. Swap predicates and
20226 constraints of operand 1 and 2.
20228 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
20230 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
20231 Process OP_INOUT regs for splitting too.
20233 2013-06-27 Jakub Jelinek <jakub@redhat.com>
20235 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
20236 decl before the loop, initialize to NULL.
20237 (vectorizable_load): Initialize ptr_incr to NULL.
20239 2013-06-27 Martin Jambor <mjambor@suse.cz>
20242 * ipa-ref.h (ipa_maybe_record_reference): Declare.
20243 * ipa-ref.c (ipa_maybe_record_reference): New function.
20244 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
20245 * ipa-cp.c (create_specialized_node): Record potential references from
20247 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
20249 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
20251 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
20252 parameter 'mode' of type 'enum machine_mode mode'; change to pass
20253 'mode' to force_reg.
20254 (aarch64_add_offset): Update calls to aarch64_force_temporary.
20255 (aarch64_expand_mov_immediate): Likewise.
20257 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
20259 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
20260 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
20262 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20264 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
20265 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
20266 (struct machine_function): Add tbegin_p.
20267 (s390_canonicalize_comparison): Fold CC mode compares to
20268 conditional jump if possible.
20269 (s390_emit_jump): Return the emitted jump.
20270 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
20271 Handle CCRAWmode compares.
20272 (s390_option_override): Default to -mhtm if available.
20273 (s390_reg_clobbered_rtx): Handle floating point regs as well.
20274 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
20275 FPRs instead of df_regs_ever_live_p.
20276 (s390_optimize_nonescaping_tx): New function.
20277 (s390_init_frame_layout): Extend clobbered_regs array to cover
20279 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
20280 (s390_expand_tbegin): New function.
20281 (enum s390_builtin): New enum definition.
20282 (code_for_builtin): New array definition.
20283 (s390_init_builtins): New function.
20284 (s390_expand_builtin): New function.
20285 (TARGET_INIT_BUILTINS): Define.
20286 (TARGET_EXPAND_BUILTIN): Define.
20287 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
20288 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
20289 (s390_alc_comparison): Likewise.
20290 * config/s390/s390-modes.def: Add CCRAWmode.
20291 * config/s390/s390.h (processor_flags): Add PF_TX.
20292 (TARGET_CPU_HTM): Define macro.
20293 (TARGET_HTM): Define macro.
20294 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
20295 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
20296 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
20297 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
20298 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
20299 (TBEGIN_MASK, TBEGINC_MASK): New constants.
20300 ("*cc_to_int"): Move up.
20301 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
20302 constants other than 0.
20303 ("*ccraw_to_int"): New insn and splitter definition.
20304 ("tbegin", "tbegin_nofloat", "tbegin_retry")
20305 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
20306 ("tx_assist"): New expander.
20307 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
20308 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
20309 * config/s390/s390.opt: Add -mhtm option.
20310 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
20311 * config/s390/htmxlintrin.h: New file.
20312 * config/s390/htmintrin.h: New file.
20313 * config/s390/s390intrin.h: New file.
20314 * doc/extend.texi: Document htm builtins.
20315 * config.gcc: Add the new header files to extra_headers.
20317 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
20319 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
20320 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
20322 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
20323 Pat Haugen <pthaugen@us.ibm.com>
20324 Peter Bergner <bergner@vnet.ibm.com>
20326 * config/rs6000/power8.md: New.
20327 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
20328 setting for power8 entry.
20329 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
20330 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
20331 test for Power4/Power5 only.
20332 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
20334 (force_new_group): Adjust comment.
20335 * config/rs6000/rs6000.md: Include power8.md.
20337 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
20339 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
20340 * config/arm/arm-protos.h (arm_max_conditional_execute): New
20342 (tune_params): Update comment.
20343 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
20344 (arm_max_conditional_execute): New function.
20345 (thumb2_final_prescan_insn): Use max_insn_skipped and
20346 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
20348 2013-06-25 Jakub Jelinek <jakub@redhat.com>
20350 PR tree-optimization/57705
20351 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
20352 SSA_NAME step, provided that it is not defined inside the loop.
20353 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
20354 (get_initial_def_for_induction): Handle SSA_NAME IV step.
20356 2013-06-25 Martin Jambor <mjambor@suse.cz>
20358 PR middle-end/57670
20359 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
20360 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
20362 (ipa_note_param_call): Initialize member_ptr flag.
20363 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
20364 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
20365 (ipa_write_indirect_edge_info): Stream member_ptr flag.
20366 (ipa_read_indirect_edge_info): Likewise.
20368 2013-06-25 Richard Biener <rguenther@suse.de>
20370 PR middle-end/56977
20371 * passes.c (init_optimization_passes): Move pass_fold_builtins
20372 and pass_dce earlier with -Og.
20374 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
20376 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
20377 <BIT_FIELD_REF>: Remove trailing TAB.
20378 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
20381 2013-06-24 Martin Jambor <mjambor@suse.cz>
20383 PR tree-optimization/57358
20384 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
20385 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
20386 (ipa_analyze_params_uses): Generate pessimistic info when true.
20388 2013-06-24 Martin Jambor <mjambor@suse.cz>
20390 PR tree-optimization/57539
20391 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
20392 global.inlined_to of the new node to it. All callers changed.
20393 * ipa-inline-transform.c (clone_inlined_nodes): New variable
20394 inlining_into, pass it to cgraph_clone_node.
20395 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
20396 ipa_free_edge_args_substructures.
20397 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
20398 rdesc linked list. Do not assert rdesc edges have inlined caller.
20399 Assert we have found an rdesc in the rdesc list.
20401 2013-06-24 Richard Biener <rguenther@suse.de>
20403 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
20404 (pointer_set_lookup): Declare.
20405 (class pointer_map): New template class implementing a
20406 generic pointer to T map.
20407 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
20408 pointer_map<T>::contains, pointer_map<T>::insert,
20409 pointer_map<T>::traverse): New functions.
20410 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
20411 (pointer_set_lookup): New function.
20412 (pointer_set_contains): Use pointer_set_lookup.
20413 (pointer_set_insert): Likewise.
20414 (insert_aux): Remove.
20415 (struct pointer_map_t): Embed a pointer_set_t.
20416 (pointer_map_create): Adjust.
20417 (pointer_map_destroy): Likewise.
20418 (pointer_map_contains): Likewise.
20419 (pointer_map_insert): Likewise.
20420 (pointer_map_traverse): Likewise.
20421 * tree-streamer.h (struct streamer_tree_cache_d): Use a
20422 pointer_map<unsigned> instead of a pointer_map_t.
20423 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
20424 (streamer_tree_cache_lookup): Likewise.
20425 (streamer_tree_cache_create): Likewise.
20426 (streamer_tree_cache_delete): Likewise.
20427 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
20428 pointer_map<unsigned> instead of a pointer_map_t.
20429 (lto_init_tree_ref_encoder): Adjust.
20430 (lto_destroy_tree_ref_encoder): Likewise.
20431 * lto-section-out.c (lto_output_decl_index): Likewise.
20432 (lto_record_function_out_decl_state): Likewise.
20433 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
20435 2013-06-24 Richard Biener <rguenther@suse.de>
20437 PR tree-optimization/57488
20438 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
20440 2013-06-24 Alan Modra <amodra@gmail.com>
20442 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
20443 (gen_easy_altivec_constant): Likewise.
20444 * config/rs6000/predicates.md (easy_vector_constant_add_self,
20445 easy_vector_constant_msb): Likewise.
20447 2013-06-23 Jakub Jelinek <jakub@redhat.com>
20450 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
20451 add missing return true.
20453 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
20456 * config/sh/predicates.md (general_extend_operand): Invoke
20457 general_movsrc_operand for memory operands.
20458 (general_movsrc_operand): Allow reg+reg addressing, do not use
20459 general_operand for memory operands.
20461 2013-06-23 Sriraman Tallam <tmsriram@google.com>
20463 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
20464 when current target options does not apply.
20465 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
20466 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
20467 * config/i386/bmiintrin.h: Pass appropriate target
20468 attributes to header.
20469 * config/i386/mmintrin.h: Ditto.
20470 * config/i386/nmmintrin.h: Ditto.
20471 * config/i386/avx2intrin.h: Ditto.
20472 * config/i386/fxsrintrin.h: Ditto.
20473 * config/i386/tbmintrin.h: Ditto.
20474 * config/i386/xsaveintrin.h: Ditto.
20475 * config/i386/f16cintrin.h: Ditto.
20476 * config/i386/xtestintrin.h: Ditto.
20477 * config/i386/xsaveoptintrin.h: Ditto.
20478 * config/i386/bmi2intrin.h: Ditto.
20479 * config/i386/lzcntintrin.h: Ditto.
20480 * config/i386/smmintrin.h: Ditto.
20481 * config/i386/wmmintrin.h: Ditto.
20482 * config/i386/x86intrin.h: Remove all header include guards.
20483 * config/i386/prfchwintrin.h: Ditto.
20484 * config/i386/pmmintrin.h: Ditto.
20485 * config/i386/tmmintrin.h: Ditto.
20486 * config/i386/xmmintrin.h: Ditto.
20487 * config/i386/popcntintrin.h: Ditto.
20488 * config/i386/rdseedintrin.h: Ditto.
20489 * config/i386/ammintrin.h: Ditto.
20490 * config/i386/emmintrin.h: Ditto.
20491 * config/i386/immintrin.h: Remove all header include guards.
20492 * config/i386/fma4intrin.h: Ditto.
20493 * config/i386/lwpintrin.h: Ditto.
20494 * config/i386/xopintrin.h: Ditto.
20495 * config/i386/ia32intrin.h: Ditto.
20496 * config/i386/avxintrin.h: Ditto.
20497 * config/i386/rtmintrin.h: Ditto.
20498 * config/i386/fmaintrin.h: Ditto.
20499 * config/i386/mm3dnow.h: Ditto.
20501 2013-06-22 Sriraman Tallam <tmsriram@google.com>
20503 * common/config/i386/i386-common.c: Handle LZCNT.
20505 2013-06-22 Andi Kleen <ak@linux.intel.com>
20507 * doc/extend.texi: Use __atomic_store_n instead of
20508 __atomic_store in HLE example.
20510 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
20512 * config/sh/sh.c: Remove <cstdlib> workaround.
20514 2013-06-21 Andi Kleen <ak@linux.intel.com>
20516 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
20518 2013-06-21 Andi Kleen <ak@linux.intel.com>
20520 * doc/extend.texi: Document that __atomic_clear and
20521 __atomic_test_and_set should only be used with bool.
20523 2013-06-20 Jan Hubicka <jh@suse.cz>
20525 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
20526 types_same_for_odr.
20527 * tree.c (decls_same_for_odr): New function.
20528 (same_for_edr): New function.
20529 (types_same_for_odr): New function.
20530 (get_binfo_at_offset): Use it.
20531 * tree.h (types_same_for_odr): Declare.
20533 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
20534 Jason Merrill <jason@redhat.com>
20536 * system.h: Include <cstdlib> as well as <stdlib.h>.
20538 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
20541 * config/i386/i386.c (construct_container): Report error if
20542 long double is used with disabled x87 float returns.
20544 2013-06-20 Jan Hubicka <jh@suse.cz>
20546 * lto-cgraph.c (input_symtab): Do not set cgraph state.
20548 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
20550 PR rtl-optimization/57425
20551 PR rtl-optimization/57569
20552 * alias.c (write_dependence_p): Remove parameters mem_mode and
20553 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
20554 Changed all callers.
20555 (canon_anti_dependence): Get comments and semantics in sync.
20556 Add parameter mem_canonicalized. Changed all callers.
20557 * rtl.h (canon_anti_dependence): Update prototype.
20559 2013-06-20 Richard Biener <rguenther@suse.de>
20561 * data-streamer-in.c (streamer_read_uhwi): Optimize single
20562 byte case, inline streamer_read_uchar and defer section
20565 2013-06-20 Richard Biener <rguenther@suse.de>
20567 PR tree-optimization/57584
20568 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
20569 SSA names into the expanded expression that take part in
20570 abnormal coalescing.
20572 2013-06-19 Sharad Singhai <singhai@google.com>
20574 * gcov.c (print_usage): Handle new option.
20575 (process_args): Ditto.
20576 (get_gcov_intermediate_filename): New function.
20577 (output_intermediate_file): New function.
20578 (output_gcov_file): New function
20579 (generate_results): Handle new option.
20580 (release_function): Relase demangled name.
20581 (read_graph_file): Handle demangled name.
20582 (output_lines): Ditto.
20583 * doc/gcov.texi: Document gcov intermediate format.
20585 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
20588 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
20589 (lra_emit_add): Use the functions. Add comment about Y as an
20592 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
20595 * collect2.c (collect_atexit): New.
20596 (collect_exit): Delete.
20597 (main): Register collect_atexit with atexit.
20598 (collect_wait): Change collect_exit to exit.
20600 * collect2.h (collect_exit): Delete.
20601 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
20603 2013-06-19 Wei Mi <wmi@google.com>
20605 PR rtl-optimization/57518
20606 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
20607 if regno is used in paradoxical subreg.
20608 (update_equiv_regs): Check pdx_subregs[regno] before
20609 set a reg to be equivalent with a mem.
20611 2013-06-19 Matthias Klose <doko@ubuntu.com>
20614 * file-find.h (find_a_file): Add a mode parameter.
20615 * file-find.c (find_a_file): Likewise.
20616 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
20617 with X_OK for the executables.
20618 * collect2.c (main): Call find_a_file with X_OK.
20620 2013-06-19 Steve Ellcey <sellcey@mips.com>
20623 * config/mips/mips.md (casesi_internal_mips16_<mode>):
20624 Use NEXT_INSN instead of next_real_insn.
20626 2013-06-19 Jan Hubicka <jh@suse.cz>
20628 * cgraph.h (const_value_known_p): Replace by ...
20629 (ctor_for_folding): .. this one.
20630 * cgraphunit.c (process_function_and_variable_attributes): Use it.
20631 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
20632 * expr.c (expand_expr_real_1): Likewise.
20633 (string_constant): Likewise.
20634 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
20635 * ipa.c (process_references): Likewise.
20636 (symtab_remove_unreachable_nodes): Likewise.
20637 * ipa-inline-analysis.c (param_change_prob): Likewise.
20638 * gimple-fold.c (canonicalize_constructor_val): Likewise.
20639 (get_base_constructor): Likwise.
20640 * varpool.c (varpool_remove_node): Likewise.
20641 (varpool_remove_initializer): LIkewise.
20642 (dump_varpool_node): LIkwise.
20643 (const_value_known_p): Rewrite to ...
20644 (ctor_for_folding): ... this one.
20646 2013-06-19 Jakub Jelinek <jakub@redhat.com>
20649 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
20650 PERSONALITY in $PATH derived prefixes.
20652 2013-06-19 Jeff Law <law@redhat.com>
20654 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
20657 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
20658 (simplify_bitwise_binary): Use it to simpify certain binary ops on
20661 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
20663 * config/arm/vfp.md: Move VFP instruction classification documentation
20665 * config/arm/arm.md: ... here. Update instruction classification
20668 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
20670 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
20671 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
20672 pattern. Use more efficient sequences on ARMv5 and Thumb2.
20674 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
20677 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
20678 with NEXT_INSN. Use tablejump_p to check for jump table data
20681 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
20684 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
20685 that now in C++ the value is correct per the C++ standards.
20687 2013-06-19 Richard Biener <rguenther@suse.de>
20689 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
20690 for global context.
20692 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20695 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20698 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
20699 with next_active_insn.
20701 2013-06-18 Sriraman Tallam <tmsriram@google.com>
20703 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
20704 functions are inlined during failures to flag an error.
20705 * tree-inline.c (expand_call_inline): Allow the error to be flagged
20706 in early inline pass.
20708 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
20710 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
20713 2013-06-18 Julian Brown <julian@codesourcery.com>
20715 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
20716 Permit virtual register pre-reload if !strict.
20717 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
20719 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
20721 * config/arm/neon.md (movmisalign<mode>): Use
20722 neon_perm_struct_or_reg_operand instead of
20723 neon_struct_or_register_operand.
20724 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
20725 neon_permissive_struct_operand instead of neon_struct_operand.
20726 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
20727 neon_vector_mem_operand.
20728 * config/arm/predicates.md (neon_struct_operand): Adjust call to
20729 neon_vector_mem_operand.
20730 (neon_permissive_struct_operand): New.
20731 (neon_struct_or_register_operand): Rename to...
20732 (neon_perm_struct_or_reg_operand): This. Adjust call to
20733 neon_vector_mem_operand.
20735 2013-06-18 Richard Biener <rguenther@suse.de>
20737 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
20738 * lto-streamer.h: Include pointer-set.h.
20739 (struct lto_decl_slot): Remove.
20740 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
20741 Remove next_index entry.
20742 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
20743 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
20744 (lto_init_tree_ref_encoder): Adjust.
20745 (lto_destroy_tree_ref_encoder): Likewise.
20746 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
20747 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
20748 (lto_output_decl_index): Adjust.
20749 (lto_new_out_decl_state): Likewise.
20750 (lto_record_function_out_decl_state): Likewise.
20751 * lto-streamer-out.c (copy_function): Likewise.
20753 2013-06-18 Richard Biener <rguenther@suse.de>
20755 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
20756 * cgraphunit.c: Include cfgloop.h.
20757 (init_lowered_empty_function): Initialize the loop tree.
20758 (assemble_thunk): Insert new BBs into loops.
20760 2013-06-18 Richard Biener <rguenther@suse.de>
20762 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
20763 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
20764 the map from cache entry to cache index optional.
20765 (streamer_tree_cache_replace_tree): Adjust accordingly.
20766 (streamer_tree_cache_append): Likewise.
20767 (streamer_tree_cache_delete): Likewise.
20768 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
20769 streamer cache map from cache entry to cache index.
20770 * lto-streamer-out.c (create_output_block): Adjust.
20772 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
20774 * config/arm/arm.md (attribute "insn"): Move multiplication and
20775 division attributes to...
20776 (attribute "type"): ... here. Remove mult.
20777 (attribute "mul32"): New attribute.
20778 (attribute "mul64"): Add umaal.
20779 (*arm_mulsi3): Update attributes.
20780 (*arm_mulsi3_v6): Likewise.
20781 (*thumb_mulsi3): Likewise.
20782 (*thumb_mulsi3_v6): Likewise.
20783 (*mulsi3_compare0): Likewise.
20784 (*mulsi3_compare0_v6): Likewise.
20785 (*mulsi_compare0_scratch): Likewise.
20786 (*mulsi_compare0_scratch_v6): Likewise.
20787 (*mulsi3addsi): Likewise.
20788 (*mulsi3addsi_v6): Likewise.
20789 (*mulsi3addsi_compare0): Likewise.
20790 (*mulsi3addsi_compare0_v6): Likewise.
20791 (*mulsi3addsi_compare0_scratch): Likewise.
20792 (*mulsi3addsi_compare0_scratch_v6): Likewise.
20793 (*mulsi3subsi): Likewise.
20794 (*mulsidi3adddi): Likewise.
20795 (*mulsi3addsi_v6): Likewise.
20796 (*mulsidi3adddi_v6): Likewise.
20797 (*mulsidi3_nov6): Likewise.
20798 (*mulsidi3_v6): Likewise.
20799 (*umulsidi3_nov6): Likewise.
20800 (*umulsidi3_v6): Likewise.
20801 (*umulsidi3adddi): Likewise.
20802 (*umulsidi3adddi_v6): Likewise.
20803 (*smulsi3_highpart_nov6): Likewise.
20804 (*smulsi3_highpart_v6): Likewise.
20805 (*umulsi3_highpart_nov6): Likewise.
20806 (*umulsi3_highpart_v6): Likewise.
20807 (mulhisi3): Likewise.
20808 (*mulhisi3tb): Likewise.
20809 (*mulhisi3bt): Likewise.
20810 (*mulhisi3tt): Likewise.
20811 (maddhisi4): Likewise.
20812 (*maddhisi4tb): Likewise.
20813 (*maddhisi4tt): Likewise.
20814 (maddhidi4): Likewise.
20815 (*maddhidi4tb): Likewise.
20816 (*maddhidi4tt): Likewise.
20817 (divsi3): Likewise.
20818 (udivsi3): Likewise.
20819 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
20820 (thumb2_mulsi_short_compare0): Likewise.
20821 (thumb2_mulsi_short_compare0_scratch): Likewise.
20822 * config/arm/arm1020e.md (1020mult1): Update attribute change.
20823 (1020mult2): Likewise.
20824 (1020mult3): Likewise.
20825 (1020mult4): Likewise.
20826 (1020mult5): Likewise.
20827 (1020mult6): Likewise.
20828 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
20830 (cortex_a15_mult64): Likewise.
20831 (cortex_a15_sdiv): Likewise.
20832 (cortex_a15_udiv): Likewise.
20833 * config/arm/arm1026ejs.md (mult1): Update attribute change.
20839 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
20840 (pj4_ir_div): Likewise.
20841 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
20842 (11_mult2): Likewise.
20843 (11_mult3): Likewise.
20844 (11_mult4): Likewise.
20845 (11_mult5): Likewise.
20846 (11_mult6): Likewise.
20847 (11_mult7): Likewise.
20848 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
20849 (cortex_a8_mla): Likewise.
20850 (cortex_a8_mull): Likewise.
20851 (cortex_a8_smulwy): Likewise.
20852 (cortex_a8_smlald): Likewise.
20853 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
20854 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
20855 (cortex_r4_mul_3): Likewise.
20856 (cortex_r4_mla_4): Likewise.
20857 (cortex_r4_mla_3): Likewise.
20858 (cortex_r4_smlald): Likewise.
20859 (cortex_r4_mull): Likewise.
20860 (cortex_r4_sdiv): Likewise.
20861 (cortex_r4_udiv): Likewise.
20862 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
20863 (cortex_a7_idiv): Likewise.
20864 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
20865 (9_mult2): Likewise.
20866 (9_mult3): Likewise.
20867 (9_mult4): Likewise.
20868 (9_mult5): Likewise.
20869 (9_mult6): Likewise.
20870 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
20871 (cortex_a53_sdiv): Likewise.
20872 (cortex_a53_udiv): Likewise.
20873 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
20874 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
20875 (mp626_mult2): Likewise.
20876 (mp626_mult3): Likewise.
20877 (mp626_mult4): Likewise.
20878 * config/arm/fa526.md (526_mult1): Update attribute change.
20879 (526_mult2): Likewise.
20880 * config/arm/arm-generic.md (mult): Update attribute change.
20881 (mult_ldsched_strongarm): Likewise.
20882 (mult_ldsched): Likewise.
20883 (multi_cycle): Likewise.
20884 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
20885 * config/arm/fa606te.md (606te_mult1): Update attribute change.
20886 (606te_mult2): Likewise.
20887 (606te_mult3): Likewise.
20888 (606te_mult4): Likewise.
20889 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
20890 (cortex_a9_mac16): Likewise.
20891 (cortex_a9_multiply): Likewise.
20892 (cortex_a9_mac): Likewise.
20893 (cortex_a9_multiply_long): Likewise.
20894 * config/arm/fa626te.md (626te_mult1): Update attribute change.
20895 (626te_mult2): Likewise.
20896 (626te_mult3): Likewise.
20897 (626te_mult4): Likewise.
20899 2013-06-18 Richard Biener <rguenther@suse.de>
20902 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
20904 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20907 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
20908 with next_active_insn.
20910 2013-06-18 Alan Modra <amodra@gmail.com>
20912 * config/rs6000/rs6000.h (enum data_align): New.
20913 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
20914 (DATA_ABI_ALIGNMENT): Define.
20915 (CONSTANT_ALIGNMENT): Correct comment.
20916 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
20917 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
20919 2013-06-17 David Malcolm <dmalcolm@redhat.com>
20921 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
20922 ATTRIBUTE_UNUSED marking.
20924 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
20926 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
20927 alternative and update.
20928 (aarch64_dup_lanedi): Delete.
20929 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
20930 * config/aarch64/aarch64-simd-builtins.def: Update.
20932 2013-06-17 Richard Biener <rguenther@suse.de>
20934 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
20935 (lto_input_scc): Declare.
20936 (lto_input_tree_1): Likewise.
20937 (struct lto_stats_d): Add num_tree_bodies_output and
20938 num_pickle_refs_output.
20939 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
20940 (lto_read_tree_1): Split out from ...
20941 (lto_read_tree): ... this.
20942 (lto_input_scc): New function.
20943 (lto_input_tree_1): Split out from ...
20944 (lto_input_tree): ... this. Handle LTO_tree_scc.
20945 (lto_data_in_create): Create the streamer cache without hashes.
20946 * lto-streamer-out.c (create_output_block): Create the streamer
20947 cache with hashes when not doing WPA.
20948 (lto_write_tree_1): Split out from ...
20949 (lto_write_tree): ... this.
20950 (get_symbol_initial_value): New function.
20951 (lto_output_tree_1): Split out from ...
20952 (lto_output_tree): ... this. Write trees as series of SCCs
20953 using a DFS walk via DFS_write_tree.
20954 (struct sccs, struct scc_entry): New types.
20955 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
20956 (DFS_write_tree_body): New function.
20957 (DFS_write_tree): Likewise.
20958 (hash_tree): Likewise.
20959 (scc_entry_compare): Likewise.
20960 (hash_scc): Likewise.
20961 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
20962 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
20963 TREE_CHAIN as regular reference.
20964 (streamer_read_integer_cst): Remove.
20965 (streamer_get_pickled_tree): Adjust.
20966 * tree-streamer-out.c (streamer_write_chain): Disable streaming
20967 of DECL_EXTERNALs in BLOCK_VARS for now.
20968 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
20970 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
20971 Add hash value argument and record that if hashes are recorded
20973 (streamer_tree_cache_insert_1): Adjust.
20974 (streamer_tree_cache_insert): Likewise.
20975 (streamer_tree_cache_insert_at): Rename to ...
20976 (streamer_tree_cache_replace_tree): ... this and adjust.
20977 (streamer_tree_cache_append): Adjust.
20978 (record_common_node): Likewise.
20979 (streamer_tree_cache_create): Add argument whether to
20980 record hash values together with trees.
20981 (streamer_tree_cache_delete): Adjust.
20982 * tree-streamer.h (struct streamer_tree_cache_d): Add
20984 (streamer_read_integer_cst): Remove.
20985 (streamer_tree_cache_insert): Adjust.
20986 (streamer_tree_cache_append): Likewise.
20987 (streamer_tree_cache_insert_at): Rename to ...
20988 (streamer_tree_cache_replace_tree): ... this and adjust.
20989 (streamer_tree_cache_create): Add argument whether to record hashes.
20990 (streamer_tree_cache_get): Rename to ...
20991 (streamer_tree_cache_get_tree): ... this.
20992 (streamer_tree_cache_get_hash): New function.
20993 * tree.c (cache_integer_cst): New function.
20994 * tree.h (cache_integer_cst): Declare.
20995 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
20996 * lto-symtab.c (lto_varpool_replace_node): Only release
20997 DECL_INITIAL of non-prevailing decls.
20998 * varpool.c (varpool_remove_initializer): Do not release
20999 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
21001 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
21003 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
21004 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
21005 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
21006 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
21007 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
21008 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
21009 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
21010 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
21011 instead of TARGET_64BIT.
21012 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
21013 Require ISA_HAS_<D>DIV.
21015 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
21017 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
21018 (mips*-*-linux*): Move default with_llsc setting to where other
21020 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
21022 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
21023 Likewise. Remove default with_tune setting. Move default float
21024 setting to its own block. Handle with_llsc in the same block as above.
21026 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
21028 PR rtl-optimization/57425
21029 PR rtl-optimization/57569
21030 * alias.c (write_dependence_p): Add new parameters mem_mode,
21031 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
21032 Changed all callers.
21033 (canon_anti_dependence): New function.
21034 * cse.c (check_dependence): Use canon_anti_dependence.
21035 * cselib.c (cselib_invalidate_mem): Likewise.
21036 * rtl.h (canon_anti_dependence): Declare.
21038 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
21040 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
21041 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
21042 ".set mips3" for 64-bit targets.
21044 2013-06-15 Dehao Chen <dehao@google.com>
21046 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
21047 * gimple-low.c (gimple_check_call_matching_types): Likewise.
21048 (gimple_check_call_args): Likewise.
21049 * value-prof.c (check_ic_target): Likewise.
21050 * ipa-inline.c (early_inliner): Likewise.
21051 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
21052 * cgraph.c (cgraph_create_edge_1): Likewise.
21053 (cgraph_make_edge_direct): Likewise.
21055 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21058 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
21059 rs6000_output_move_128bit to handle emitting quad memory
21060 operations. Set attribute length to 8 bytes.
21062 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
21064 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
21066 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
21067 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
21068 (aarch64_<su>mlsl<mode>): Likewise.
21070 2013-06-14 Mike Stump <mikestump@comcast.net>
21072 * Makefile.in (TARGET_H): Add insn-codes.h.
21074 2013-06-14 Alan Modra <amodra@gmail.com>
21076 PR middle-end/57134
21077 PR middle-end/57586
21078 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
21079 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
21080 bitfield expansion when EXPAND_MEMORY.
21081 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
21083 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
21085 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
21086 test for clearing quad memory on 32-bit later.
21088 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
21090 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
21091 (fold_negate_expr): Likewise.
21092 (fold_real_zero_addition_p): Handle vectors.
21093 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
21095 2013-06-14 Alan Modra <amodra@gmail.com>
21097 * varasm.c (force_const_mem): Revert 2013-06-07 change.
21099 2013-06-13 Jan Hubicka <jh@suse.cz>
21101 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
21102 Local comdats are not externally visible.
21103 * symtab.c (dump_symtab_base): Dump externally visible.
21104 (verify_symtab_base): Verify back links in the symtab hash.
21106 2013-06-13 Bin Cheng <bin.cheng@arm.com>
21108 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
21109 CONVERT_EXPR as equal nodes.
21111 2013-06-13 Bin Cheng <bin.cheng@arm.com>
21113 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
21115 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
21117 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
21118 Generalize to complex and vector.
21119 * tree.c (build_all_ones_cst): New function.
21120 * tree.h (build_all_ones_cst): Declare it.
21122 2013-06-13 Alan Modra <amodra@gmail.com>
21124 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
21125 * config/rs6000/rs6000.md (signbittf2): New insn.
21126 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
21127 (abstf2_internal, cmptf_internal2): Likewise.
21128 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
21130 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21131 Pat Haugen <pthaugen@us.ibm.com>
21132 Peter Bergner <bergner@vnet.ibm.com>
21134 * config/rs6000/rs6000.c (emit_load_locked): Add support for
21135 power8 byte, half-word, and quad-word atomic instructions.
21136 (emit_store_conditional): Likewise.
21137 (rs6000_expand_atomic_compare_and_swap): Likewise.
21138 (rs6000_expand_atomic_op): Likewise.
21140 * config/rs6000/sync.md (larx): Add new modes for power8.
21142 (AINT): New mode iterator to include TImode as well as normal
21143 integer modes on power8.
21144 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
21145 that VSX registers are not considered. Use AINT mode iterator
21146 instead of INT1 to allow inclusion of quad word atomic operations
21148 (load_locked<mode>): Likewise.
21149 (store_conditional<mode>): Likewise.
21150 (atomic_compare_and_swap<mode>): Likewise.
21151 (atomic_exchange<mode>): Likewise.
21152 (atomic_nand<mode>): Likewise.
21153 (atomic_fetch_<fetchop_name><mode>): Likewise.
21154 (atomic_nand_fetch<mode>): Likewise.
21155 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
21157 (ATOMIC): On power8, add QImode, HImode modes.
21158 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
21159 modes that promote to SImode.
21160 (load_lockedti): Convert TImode arguments to PTImode, so that we
21161 get a guaranteed even/odd register pair.
21162 (load_lockedpti): Likewise.
21163 (store_conditionalti): Likewise.
21164 (store_conditionalpti): Likewise.
21166 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
21167 atomic load/store instructions.
21170 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
21172 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
21174 (insn_count): New attribute, with most cases extracted from...
21175 (length): ...here. Redefine most cases in terms of insn_count.
21176 (single_insn): Delete.
21177 (can_delay): Use insn_count to check for single instructions.
21178 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
21179 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
21180 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
21181 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
21182 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
21183 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
21184 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
21185 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
21186 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
21187 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
21188 rather than "length".
21189 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
21190 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
21191 Use "insn_count" rather than "length".
21192 * config/mips/mips-dsp.md
21193 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
21194 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
21197 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
21199 PR tree-optimization/57361
21200 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
21202 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
21204 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
21206 (aarch64_simd_combine<mode>): New instruction expansion.
21207 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
21208 function prototype.
21209 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
21210 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
21212 2013-06-12 Jan Hubicka <jh@suse.cz>
21214 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
21215 decl has when in streaming stage.
21216 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
21217 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
21219 2013-06-12 Roland Stigge <stigge@antcom.de>
21222 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
21224 2013-06-12 Jakub Jelinek <jakub@redhat.com>
21226 PR tree-optimization/57537
21227 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
21228 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
21230 2013-06-12 Richard Biener <rguenther@suse.de>
21232 * data-streamer.h (streamer_write_char_stream): CSE
21233 obs->current_pointer.
21234 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
21235 streamer_write_char_stream manually and optimize the resulting loop.
21236 (streamer_write_hwi_stream): Likewise.
21238 2013-06-12 Jan Hubicka <jh@suse.cz>
21240 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
21241 * cgraph.h (varpool_create_empty_node): Declare.
21242 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
21244 * symtab.c (symtab_unregister_node): Be lax about missin entries
21246 (symtab_get_node): Update comment.
21247 * varpool.c (varpool_create_empty_node): Break out from ...
21248 (varpool_node_for_decl): ... here.
21249 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
21251 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
21253 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
21254 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
21255 part. Use straight-line flow at the end.
21256 <COMPONENT_REF>: Remove superfluous else.
21257 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
21259 2013-06-12 Jakub Jelinek <jakub@redhat.com>
21262 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
21263 target hook even for !TREE_PUBLIC decls. If no resolution info
21264 is available, return false for common and external decls.
21266 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
21268 * config/rl78/constraints.md (U): New constraint.
21269 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
21272 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21275 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
21276 to allow returning address to AT_PLATFORM name.
21278 2013-06-11 Jan Hubicka <jh@suse.cz>
21280 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
21281 * cgraph.h (symtab_node_base): Add weakref flag.
21282 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
21283 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
21284 (output_weakrefs): Use weakref flag.
21285 * fold-const.c (simple_operand_p): Handle WEAK.
21286 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
21287 * ipa.c (varpool_externally_visible_p): Drop weakref.
21288 (function_and_variable_visibility): Update comment; fix weakref
21289 sanity checks; do not clear DECL_WEAK on them.
21290 * lto-cgraph.c (lto_output_node): update.
21291 (lto_output_varpool_node): Update.
21292 (input_overwrite_node): Update.
21293 (input_node): Update.
21294 (input_varpool_node): Update.
21295 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
21296 (lto_symtab_merge_symbols): Add sanity check.
21297 (lto_symtab_prevailing_decl): Do not special case weakrefs.
21298 * passes.c (rest_of_decl_compilation): Set static flag, too.
21299 * symtab.c (dump_symtab_base): Dump weakref.
21300 (verify_symtab_base): Sanity check weakrefs.
21301 (symtab_make_decl_local): Remove duplicated code.
21302 (symtab_alias_ultimate_target): Simplify.
21303 * varpool.c (varpool_create_variable_alias): Set weakref flag.
21305 2013-06-11 Tom de Vries <tom@codesourcery.com>
21307 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
21308 sequence_vect == NULL.
21310 2013-06-11 DJ Delorie <dj@redhat.com>
21312 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
21313 (rl78_unwind_word_mode): New.
21315 2013-06-11 David Malcolm <dmalcolm@redhat.com>
21317 * final.c (debug_prefix_maps): Make static.
21319 2013-06-11 David Malcolm <dmalcolm@redhat.com>
21321 * function.c (initial_trampoline): Remove stray copy.
21323 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
21325 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
21327 2013-06-11 Martin Jambor <mjambor@suse.cz>
21329 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
21330 within bounds at the beginning of the function.
21332 2013-06-11 Alan Modra <amodra@gmail.com>
21334 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
21336 (get_named_section): Don't NULL !DECL_P decl.
21338 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
21340 * doc/invoke.texi (core-avx2): Document.
21342 (atom): Updated with MOVBE.
21344 2013-06-11 Richard Biener <rguenther@suse.de>
21346 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
21348 2013-06-11 Anton Blanchard <anton@samba.org>
21350 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
21351 correct shift value in little-endian mode.
21353 2013-06-11 Jakub Jelinek <jakub@redhat.com>
21356 * varasm.c (get_variable_align): Move #endif to the right place.
21358 2013-06-10 Cary Coutant <ccoutant@google.com>
21360 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
21361 for hash so that hash table traversal order is deterministic.
21363 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
21364 Pat Haugen <pthaugen@us.ibm.com>
21365 Peter Bergner <bergner@vnet.ibm.com>
21367 * config/rs6000/vector.md (GPR move splitter): Do not split moves
21368 of vectors in GPRS if they are direct moves or quad word load or
21371 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
21373 (direct_move_p): Likewise.
21374 (quad_load_store_p): Likewise.
21376 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
21377 classes into bins based on the physical register type.
21378 (reg_class_to_reg_type): Likewise.
21379 (IS_STD_REG_TYPE): Likewise.
21380 (IS_FP_VECT_REG_TYPE): Likewise.
21381 (reload_fpr_gpr): Arrays to determine what insn to use if we can
21382 use direct move instructions.
21383 (reload_gpr_vsx): Likewise.
21384 (reload_vsx_gpr): Likewise.
21385 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
21386 information that is a simplification of register classes. Also
21387 precalculate direct move reload helpers.
21388 (direct_move_p): New function to return true if the operation can
21389 be done as a direct move instruciton.
21390 (quad_load_store_p): New function to return true if the operation
21391 is a quad memory operation.
21392 (rs6000_legitimize_address): If quad memory, only allow register
21393 indirect for TImode addresses.
21394 (rs6000_legitimate_address_p): Likewise.
21395 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
21396 (rs6000_reload_register_type): Likewise.
21397 (register_to_reg_type): Return register type.
21398 (rs6000_secondary_reload_simple_move): New helper function for
21399 secondary reload and secondary memory needed to identify anything
21400 that is a simple move, and does not need reloading.
21401 (rs6000_secondary_reload_direct_move): New helper function for
21402 secondary reload to identify cases that can be done with several
21403 instructions via the direct move instructions.
21404 (rs6000_secondary_reload_move): New helper function for secondary
21405 reload to identify moves between register types that can be done.
21406 (rs6000_secondary_reload): Add support for quad memory operations
21407 and for direct move.
21408 (rs6000_secondary_memory_needed): Likewise.
21409 (rs6000_debug_secondary_memory_needed): Change argument names.
21410 (rs6000_output_move_128bit): New function to return the move to
21411 use for 128-bit moves, including knowing about the various
21412 limitations of quad memory operations.
21414 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
21415 memory operations. call rs6000_output_move_128bit for the actual
21416 instruciton(s) to generate.
21417 (vsx_movti_64bit): Likewise.
21419 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
21420 (UNSPEC_P8V_MTVSRWZ): Likewise.
21421 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
21422 (UNSPEC_P8V_MTVSRD): Likewise.
21423 (UNSPEC_P8V_XXPERMDI): Likewise.
21424 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
21425 (UNSPEC_FUSION_GPR): Likewise.
21426 (FMOVE128_GPR): New iterator for direct move.
21427 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
21428 (f32_sv): Likewise.
21429 (f32_dm): Likewise.
21430 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
21431 loads and direct move instructions.
21432 (zero_extendsidi2_lfiwzx): Likewise.
21433 (extendsidi2_lfiwax): Likewise.
21434 (extendsidi2_nocell): Likewise.
21435 (floatsi<mode>2_lfiwax): Likewise.
21436 (lfiwax): Likewise.
21437 (floatunssi<mode>2_lfiwzx): Likewise.
21438 (lfiwzx): Likewise.
21439 (fix_trunc<mode>_stfiwx): Likewise.
21440 (fixuns_trunc<mode>_stfiwx): Likewise.
21441 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
21442 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
21443 (parity<mode>2_cmpb): Set length/type attr.
21444 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
21445 for 'mr.' to fast_compare.
21446 (bpermd_<mode>): Change type attr to popcnt.
21447 (p8_fmrgow_<mode>): New insns for power8 direct move support.
21448 (p8_mtvsrwz_1): Likewise.
21449 (p8_mtvsrwz_2): Likewise.
21450 (reload_fpr_from_gpr<mode>): Likewise.
21451 (p8_mtvsrd_1): Likewise.
21452 (p8_mtvsrd_2): Likewise.
21453 (p8_xxpermdi_<mode>): Likewise.
21454 (reload_vsx_from_gpr<mode>): Likewise.
21455 (reload_vsx_from_gprsf): Likewise.
21456 (p8_mfvsrd_3_<mode>): LIkewise.
21457 (reload_gpr_from_vsx<mode>): Likewise.
21458 (reload_gpr_from_vsxsf): Likewise.
21459 (p8_mfvsrd_4_disf): Likewise.
21460 (multi-word GPR splits): Do not split direct moves or quad memory
21463 2013-06-10 David Malcolm <dmalcolm@redhat.com>
21465 * tree-into-ssa.c (interesting_blocks): Make static.
21467 2013-06-10 Jakub Jelinek <jakub@redhat.com>
21470 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
21471 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
21472 Use DATA_ABI_ALIGNMENT for that case instead if defined.
21473 (get_variable_align): New function.
21474 (get_variable_section, emit_bss, emit_common,
21475 assemble_variable_contents, place_block_symbol): Use
21476 get_variable_align instead of DECL_ALIGN.
21477 (assemble_noswitch_variable): Add align argument, use it
21478 instead of DECL_ALIGN.
21479 (assemble_variable): Adjust caller. Use get_variable_align
21480 instead of DECL_ALIGN.
21481 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
21483 (DATA_ABI_ALIGNMENT): Define.
21484 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
21485 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
21486 opt is false, only return the psABI mandated alignment increase.
21487 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
21488 (DATA_ABI_ALIGNMENT): ... this.
21489 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
21490 (DATA_ABI_ALIGNMENT): ... this.
21491 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
21492 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
21493 (DATA_ABI_ALIGNMENT): ... this.
21494 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
21495 * doc/tm.texi: Regenerated.
21497 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
21499 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
21500 cmp_code to construct REG_EQUAL note.
21502 2013-06-09 Jakub Jelinek <jakub@redhat.com>
21505 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
21506 that operands[2] doesn't overlap with operands[0].
21508 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
21509 Jan Hubicka <jh@suse.cz>
21511 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
21512 hack to mark symbols as used.
21514 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
21516 PR rtl-optimization/57559
21517 * lra-constraints.c (process_alt_operands): Don't discourage
21518 memory with known offset for offsetable memory constraint.
21519 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
21521 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
21523 * varasm.c (struct oc_local_state): Reorder fields.
21524 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
21525 and adjust accordingly.
21526 (output_constructor): Reorder initialization code and adjust call to
21527 output_constructor_bitfield.
21529 2013-06-07 Jan Hubicka <jh@suse.cz>
21531 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
21533 2013-06-07 David Malcolm <dmalcolm@redhat.com>
21535 * tree-object-size.c (unknown): Make const.
21537 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21539 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
21540 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
21541 for last alternative in the cpu_facility attribute.
21543 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21546 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
21547 (xordi3): Change operand 2 constraint to arm_xordi_operand.
21548 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
21549 * config/arm/constraints.md (Dg): New constraint.
21550 * config/arm/neon.md (xordi3_neon): Remove.
21551 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
21552 * config/arm/predicates.md (arm_xordi_operand): New predicate.
21554 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21556 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
21557 Clean up alternatives.
21559 2013-06-07 Alan Modra <amodra@gmail.com>
21561 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
21564 2013-06-07 Alan Modra <amodra@gmail.com>
21566 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
21568 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21570 * config/arm/constraints.md (Df): New constraint.
21571 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
21572 Correct length attribute for last two alternatives.
21574 2013-06-07 Alan Modra <amodra@gmail.com>
21576 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21577 override user -mfp-in-toc.
21578 (offsettable_ok_by_alignment): Consider just the current access
21579 rather than the whole object, unless BLKmode. Handle
21580 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
21581 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
21582 for -mcmodel=medium.
21583 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
21584 override user -mfp-in-toc or -msum-in-toc. Default to
21585 -mno-fp-in-toc for -mcmodel=medium.
21587 2013-06-06 DJ Delorie <dj@redhat.com>
21589 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
21590 TARGET_VALID_POINTER_MODE.
21592 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21593 Pat Haugen <pthaugen@us.ibm.com>
21594 Peter Bergner <bergner@vnet.ibm.com>
21596 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21597 Document new power8 builtins.
21599 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
21600 condition code register, to allow 128-bit logical operations to be
21601 done in the VSX or GPR registers.
21602 (nor<mode>3): Use the canonical form for nor.
21603 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
21604 vclz*, and vpopcnt* vector instructions.
21605 (nand<mode>3): Likewise.
21606 (orc<mode>3): Likewise.
21607 (clz<mode>2): LIkewise.
21608 (popcount<mode>2): Likewise.
21610 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
21611 that only the GPRs are recognized.
21613 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21614 support for new power8 builtins.
21616 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
21618 (xscvdpspn): Likewise.
21624 (vpopcnt): Likewise.
21625 (vpopcntb): Likewise.
21626 (vpopcnth): Likewise.
21627 (vpopcntw): Likewise.
21628 (vpopcntd): Likewise.
21630 (vmrgew): Likewise.
21631 (vmrgow): Likewise.
21633 (eqv_v16qi3): Likewise.
21634 (eqv_v8hi3): Likewise.
21635 (eqv_v4si3): Likewise.
21636 (eqv_v2di3): Likewise.
21637 (eqv_v4sf3): Likewise.
21638 (eqv_v2df3): Likewise.
21640 (nand_v16qi3): Likewise.
21641 (nand_v8hi3): Likewise.
21642 (nand_v4si3): Likewise.
21643 (nand_v2di3): Likewise.
21644 (nand_v4sf3): Likewise.
21645 (nand_v2df3): Likewise.
21647 (orc_v16qi3): Likewise.
21648 (orc_v8hi3): Likewise.
21649 (orc_v4si3): Likewise.
21650 (orc_v2di3): Likewise.
21651 (orc_v4sf3): Likewise.
21652 (orc_v2df3): Likewise.
21654 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
21655 allow power8 quad mode in 64-bit.
21656 (rs6000_builtin_vectorized_function): Add support to vectorize
21657 ISA 2.07 count leading zeros, population count builtins.
21658 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
21659 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
21660 (builtin_function_type): Add vgbbd builtin function which takes an
21662 (altivec_expand_vec_perm_const): Add support for new power8 merge
21665 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
21666 that does not include TImdoe for use with 32-bit.
21667 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
21669 (UNSPEC_VSX_CVDPSPN): Likewise.
21670 (vsx_xscvdpspn): Likewise.
21671 (vsx_xscvspdpn): Likewise.
21672 (vsx_xscvdpspn_scalar): Likewise.
21673 (vsx_xscvspdpn_directmove): Likewise.
21674 (vsx_and<mode>3): Split logical operations into 32-bit and
21675 64-bit. Add support to do logical operations on TImode as well as
21676 VSX vector types. Allow logical operations to be done in either
21677 VSX registers or in general purpose registers in 64-bit mode. Add
21678 splitters if GPRs were used. For AND, add clobber of CCmode to
21679 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
21681 (vsx_and<mode>3_32bit): Likewise.
21682 (vsx_and<mode>3_64bit): Likewise.
21683 (vsx_ior<mode>3): Likewise.
21684 (vsx_ior<mode>3_32bit): Likewise.
21685 (vsx_ior<mode>3_64bit): Likewise.
21686 (vsx_xor<mode>3): Likewise.
21687 (vsx_xor<mode>3_32bit): Likewise.
21688 (vsx_xor<mode>3_64bit): Likewise.
21689 (vsx_one_cmpl<mode>2): Likewise.
21690 (vsx_one_cmpl<mode>2_32bit): Likewise.
21691 (vsx_one_cmpl<mode>2_64bit): Likewise.
21692 (vsx_nor<mode>3): Likewise.
21693 (vsx_nor<mode>3_32bit): Likewise.
21694 (vsx_nor<mode>3_64bit): Likewise.
21695 (vsx_andc<mode>3): Likewise.
21696 (vsx_andc<mode>3_32bit): Likewise.
21697 (vsx_andc<mode>3_64bit): Likewise.
21698 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
21699 and xxlorc instructions.
21700 (vsx_eqv<mode>3_64bit): Likewise.
21701 (vsx_nand<mode>3_32bit): Likewise.
21702 (vsx_nand<mode>3_64bit): Likewise.
21703 (vsx_orc<mode>3_32bit): Likewise.
21704 (vsx_orc<mode>3_64bit): Likewise.
21706 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
21708 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
21710 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
21711 (p8_vmrgow): Likewise.
21712 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
21713 GPRs to be split under VSX.
21714 (p8v_clz<mode>2): Add power8 count leading zero support.
21715 (p8v_popcount<mode>2): Add power8 population count support.
21716 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
21719 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
21722 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
21724 (vec_nand): Likewise.
21725 (vec_vclz): Likewise.
21726 (vec_vclzb): Likewise.
21727 (vec_vclzd): Likewise.
21728 (vec_vclzh): Likewise.
21729 (vec_vclzw): Likewise.
21730 (vec_vgbbd): Likewise.
21731 (vec_vmrgew): Likewise.
21732 (vec_vmrgow): Likewise.
21733 (vec_vpopcnt): Likewise.
21734 (vec_vpopcntb): Likewise.
21735 (vec_vpopcntd): Likewise.
21736 (vec_vpopcnth): Likewise.
21737 (vec_vpopcntw): Likewise.
21739 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
21741 PR rtl-optimization/57468
21742 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
21745 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
21747 PR rtl-optimization/57459
21748 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
21749 type when setting live regs.
21751 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
21753 * config/s390/s390.opt (mlra): New option.
21754 * config/s390/s390.c (s390_decompose_address): Check displacement
21755 for all registers for LRA.
21756 (s390_secondary_reload): Don't used secondary reloads for LRA.
21757 (s390_lra_p): New function.
21758 (TARGET_LRA_P): Define.
21759 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
21760 of attribute cpu_facility to zarch for the last alternative.
21761 (*cmpmem_short): Ditto.
21763 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
21765 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
21766 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
21767 (arm_expand_prologue): Likewise.
21769 2013-06-06 Teresa Johnson <tejohnson@google.com>
21772 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
21773 as this is now done by redirect_edge_and_branch_force.
21774 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
21775 barriers, and fix interaction with splitting.
21776 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
21777 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
21778 reflect changes made in the routine.
21779 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
21780 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
21781 since this is called in cfglayout mode, and replace partition fixup
21782 with assert as that is now done by force_nonfallthru_and_redirect.
21783 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
21784 already be marked with region crossing note.
21785 (insert_section_boundary_note): Make non-static, gate on flag
21786 has_bb_partition, rewrite to also check for multiple partitions.
21787 (rest_of_handle_reorder_blocks): Remove call to
21788 insert_section_boundary_note, now done later during free_cfg.
21789 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
21790 * bb-reorder.h (insert_section_boundary_note): Declare.
21791 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
21792 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
21793 invoke insert_section_boundary_note.
21794 (try_redirect_by_replacing_jump): Remove unnecessary
21795 check for region crossing note.
21796 (fixup_partition_crossing): New function.
21797 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
21798 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
21799 in non-cfglayout mode.
21800 (force_nonfallthru_and_redirect): Fixup partition boundaries,
21801 remove old code that tried to do this. Emit barrier correctly
21802 when we are in cfglayout mode.
21803 (last_bb_in_partition): New function.
21804 (rtl_split_edge): Correctly fixup partition boundaries.
21805 (commit_one_edge_insertion): Remove old code that tried to
21806 fixup region crossing edge since this is now handled in
21807 split_block, and set up insertion point correctly since
21808 block may now end in a jump.
21809 (verify_hot_cold_block_grouping): Guard against checking when not in
21810 linearized RTL mode.
21811 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
21813 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
21814 rtl_verify_flow_info, so not called in cfglayout mode.
21815 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
21816 (fixup_reorder_chain): Remove old code that attempted to fixup region
21817 crossing note as this is now handled in force_nonfallthru_and_redirect.
21818 (duplicate_insn_chain): Don't duplicate switch section notes.
21819 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
21821 * basic-block.h (emit_barrier_after_bb): Declare.
21823 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21825 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
21826 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
21827 arm_usatsihi): Adjust alternatives for arm_restrict_it.
21829 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21831 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
21833 * config/arm/ldmstm.md: Regenerate.
21835 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21837 * config/arm/sync.md (atomic_loaddi_1):
21838 Disable predication for arm_restrict_it.
21839 (arm_load_exclusive<mode>): Likewise.
21840 (arm_load_exclusivesi): Likewise.
21841 (arm_load_exclusivedi): Likewise.
21842 (arm_load_acquire_exclusive<mode>): Likewise.
21843 (arm_load_acquire_exclusivesi): Likewise.
21844 (arm_load_acquire_exclusivedi): Likewise.
21845 (arm_store_exclusive<mode>): Likewise.
21846 (arm_store_exclusive<mode>): Likewise.
21847 (arm_store_release_exclusivedi): Likewise.
21848 (arm_store_release_exclusive<mode>): Likewise.
21850 2013-06-06 Richard Biener <rguenther@suse.de>
21852 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
21854 (lto_tag_is_tree_code_p): Adjust.
21855 (lto_tag_is_gimple_code_p): Likewise.
21856 (lto_gimple_code_to_tag): Likewise.
21857 (lto_tag_to_gimple_code): Likewise.
21858 (lto_tree_code_to_tag): Likewise.
21859 (lto_tag_to_tree_code): Likewise.
21860 * data-streamer.h (streamer_write_hwi_in_range): Use
21861 uhwi streaming to stream the normalized range.
21862 (streamer_read_hwi_in_range): Likewise.
21864 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21866 * config/arm/arm.md (enabled_for_depr_it): New attribute.
21867 (predicable_short_it): Likewise.
21868 (predicated): Likewise.
21869 (enabled): Handle above.
21870 (define_cond_exec): Set predicated attribute to yes.
21872 2013-06-05 Mike Stump <mikestump@comcast.net>
21874 * gdbinit.in (__FUNCTION__): Add.
21876 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
21878 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
21879 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
21881 2013-06-05 Jan Hubicka <jh@suse.cz>
21883 * varasm.c (mark_decl_referenced): Revert the removal until targets
21886 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
21888 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
21889 instead of mark_decl_referenced.
21891 2013-06-05 Jan Hubicka <jh@suse.cz>
21893 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
21894 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
21895 and symtab_used_from_object_file_p.
21896 (cgraph_make_node_local_1): Clear forced_by_abi.
21897 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
21898 * cgraph.h (symtab_node_base): Add forced_by_abi.
21899 (decide_is_variable_needed): Remove.
21900 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
21901 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
21902 (decide_is_symbol_needed): ... this one; handle symbols in general;
21903 always analyze virtuals; honnor forced_by_abi.
21904 (cgraph_finalize_function): Update.
21905 (varpool_finalize_decl): Update.
21906 (symbol_defined_and_needed): Remove.
21907 (analyze_functions): Update.
21908 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21909 output_refs, input_overwrite_node): Handle forced_by_abi.
21910 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
21911 (address_taken_from_non_vtable_p): ... this one.
21912 (comdat_can_be_unshared_p_1): New function.
21913 (cgraph_comdat_can_be_unshared_p): Rename to ...
21914 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
21915 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
21916 (function_and_variable_visibility): Clear forced_by_abi as needed.
21917 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
21918 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
21919 * symtab.c (dump_symtab_base): Dump forced_by_abi.
21920 * varpool.c (decide_is_variable_needed): Remove.
21922 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21924 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
21925 (arm_option_override): Override arm_restrict_it where appropriate.
21926 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
21927 * config/arm/arm.opt (mrestrict-it): New command-line option.
21928 * doc/invoke.texi: Document -mrestrict-it.
21930 2013-06-05 David Malcolm <dmalcolm@redhat.com>
21932 * tsan.c (tsan_atomic_table): Make const.
21934 2013-06-05 Richard Biener <rguenther@suse.de>
21936 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
21937 index associated with the tree we are supposed to replace.
21938 * tree-streamer-out.c (pack_ts_base_value_fields): Output
21939 TREE_ASM_WRITTEN as zero for everything but SSA names.
21941 2013-06-05 David Malcolm <dmalcolm@redhat.com>
21943 * tree-ssa-structalias.c (call_stmt_vars): Make static.
21945 2013-06-04 Jan Hubicka <jh@suse.cz>
21947 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
21948 (input_node, input_varpool_node): Handle correctly external same
21950 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
21951 nodes at ltrans stage.
21953 2013-06-04 Jan Hubicka <jh@suse.cz>
21955 * ipa-inline.c (update_caller_keys): Fix availability test.
21956 (update_callee_keys): Likewise.
21957 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
21958 to follow ELF standard.
21960 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
21962 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
21963 (mips64r5900el-*-elf*): New configurations.
21964 * config/mips/mips-cpus.def (r5900): New processor.
21965 * config/mips/mips-tables.opt: Regenerate.
21966 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
21967 (mips_issue_rate): Handle PROCESSOR_R5900.
21968 (mips_reorg_process_insns): Force reorder mode for the R5900.
21969 * config/mips/mips.h (TARGET_MIPS5900): Define.
21970 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
21972 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
21974 * config/mips/mips.md (processor): Add r5900.
21975 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
21977 2013-06-04 Ian Bolton <ian.bolton@arm.com>
21979 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
21980 into function to generate MOVI instruction.
21981 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
21982 (aarch64_preferred_simd_mode): Turn into wrapper.
21983 (aarch64_output_scalar_simd_mov_immediate): New function.
21984 * config/aarch64/aarch64-protos.h: Add prototype for above.
21986 2013-06-04 Ian Bolton <ian.bolton@arm.com>
21988 * config/aarch64/aarch64.c (simd_immediate_info): Remove
21989 element_char member.
21990 (sizetochar): Return signed char.
21991 (aarch64_simd_valid_immediate): Remove elchar and other
21992 unnecessary variables.
21993 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
21994 Calculate element_char as required.
21995 * config/aarch64/aarch64-protos.h: Update and move prototype
21996 for aarch64_output_simd_mov_immediate.
21997 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
22000 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22002 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
22003 information completed by aarch64_simd_valid_immediate.
22004 (aarch64_legitimate_constant_p): Update arguments.
22005 (aarch64_simd_valid_immediate): Work with struct rather than many
22007 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
22008 (aarch64_simd_make_constant): Update arguments.
22009 (aarch64_output_simd_mov_immediate): Work with struct rather than
22010 many pointers. Output immediate directly rather than as operand.
22011 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
22013 * config/aarch64/constraints.md (Dn): Update arguments.
22015 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22017 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
22019 (aarch64_simd_immediate_valid_for_move): Remove.
22020 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
22021 (aarch64_simd_make_constant): Update call.
22022 (aarch64_output_simd_mov_immediate): Update call.
22023 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
22025 * config/aarch64/constraints.md (Dn): Update call.
22027 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22029 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
22030 return type to bool for prototype.
22031 (aarch64_legitimate_constant_p): Check for true instead of not -1.
22032 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
22033 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
22035 2013-06-04 Catherine Moore <clm@codesourcery.com>
22037 * config/mips/mips.opt (meva): New.
22038 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
22039 (ASM_SPEC): Handle -meva.
22040 * doc/invoke.texi (meva): Document.
22042 2013-06-04 Alan Modra <amodra@gmail.com>
22044 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
22047 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22049 * rtl.def: Add extra fourth optional field to define_cond_exec.
22050 * gensupport.c (process_one_cond_exec): Process attributes from
22052 * doc/md.texi: Document fourth field in define_cond_exec.
22054 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
22056 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
22057 out the processing order as in store_bit_field_1.
22059 2013-06-04 Jan Hubicka <jh@suse.cz>
22061 PR middle-end/57500
22062 * cgraphunit.c (cgraph_process_same_body_aliases): Create
22063 non-VAR_DECL node if it does not exist yet.
22065 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22067 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
22068 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
22069 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
22070 target_cpu_default setting.
22072 2013-06-03 Teresa Johnson <tejohnson@google.com>
22074 * dumpfile.c (opt_info_switch_p): Change -fopt-info
22075 default to -fopt-info=optimized instead of all.
22076 * doc/invoke.texi: Ditto.
22077 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
22078 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
22079 (execute_vect_slp): Emit BB vectorization success under
22080 MSG_OPTIMIZED_LOCATIONS.
22081 * tree-vect-slp.c (vect_slp_transform_bb): Change
22082 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
22083 * tree-vect-loop.c (vect_transform_loop): Ditto.
22085 2013-06-03 Jason Merrill <jason@redhat.com>
22088 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22089 Use TARGET_EXPR for C++.
22091 2013-06-03 Jakub Jelinek <jakub@redhat.com>
22093 PR rtl-optimization/57268
22094 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
22095 if DEBUG_INSN_P (insn).
22098 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
22100 PR rtl-optimization/57268
22101 * sched-deps.c (sched_analyze_2): Flush dependence lists if
22102 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22104 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
22106 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
22107 (ix86_avoid_lea_for_addr): Likewise.
22108 (exact_dependency_1): Likewise.
22109 (ix86_adjust_cost): Likewise.
22110 (swap_top_of_ready_list): Fix formatting and !reload_completed check
22112 (do_reorder_for_imul): Fix typo, formatting and
22113 !reload_completed check removed.
22114 (ix86_sched_reorder): Fix typo and formatting.
22115 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
22118 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
22120 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
22122 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
22124 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
22125 <STRING_CST>: Likewise.
22126 <VECTOR_CST>: Likewise.
22128 2013-06-01 Janus Weil <janus@gcc.gnu.org>
22129 Mikael Morin <mikael@gcc.gnu.org>
22131 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
22132 * config.in: Regenerated.
22133 * configure: Regenerated.
22135 2013-06-01 Jan Hubicka <jh@suse.cz>
22137 PR middle-end/57366
22138 * cgraphunit.c (compile): When weakref is not supported,
22139 set up transparent aliases before final output pass.
22140 * varasm.c (assemble_alias): Do not try to do it here.
22142 2013-06-01 Jan Hubicka <jh@suse.cz>
22144 PR middle-end/57467
22145 * passes.c (for_per_function): Skip unanalyzed functions.
22147 2013-06-01 Jan Hubicka <jh@suse.cz>
22149 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
22150 (lto_symtab_merge_symbols_1): ... this one.
22151 (lto_symtab_merge_cgraph_nodes): Rename to ...
22152 (lto_symtab_merge_symbols): ... this one; simplify.
22153 * cgraph.c (same_body_aliases_done): Rename to ...
22154 (cpp_implicit_aliases_done): ... this one.
22155 (cgraph_create_function_alias): Update.
22156 (cgraph_same_body_alias): Update.
22157 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
22158 (verify_edge_corresponds_to_fndecl): Simplify.
22159 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
22160 (cgraph_node): Remove same_body_alias.
22161 (varpool_node): Remove alias_of and extra_name_alias.
22162 (same_body_aliases_done): Rename to ..
22163 (cpp_implicit_aliases_done): ... this one.
22164 (symtab_alias_ultimate_target): Add default parameter.
22165 (symtab_resolve_alias): New function.
22166 (fixup_same_cpp_alias_visibility): Declare.
22167 (cgraph_function_node): Add default parameter.
22168 (cgraph_node_asm_name): Likewise.
22169 (cgraph_function_or_thunk_node): Add default parameter; do
22170 not ICE when it is NULL.
22171 (varpool_variable_node): Likewise.
22172 * tree-emutls.c (create_emultls_var): Update.
22173 (ipa_lower_emutls): Update.
22174 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
22175 (cgraph_reset_node): Reset alias info.
22176 (cgraph_finalize_function): Update.
22177 (fixup_same_cpp_alias_visibility): Move to symtab.c.
22178 (analyze_function): Simplify.
22179 (cgraph_process_same_body_aliases): Simplify.
22180 (analyze_functions): Fixup same body aliases.
22181 (handle_alias_pairs): Simplify.
22182 (assemble_thunk): Update.
22183 (assemble_thunks_and_aliases): Update.
22184 (output_weakrefs): Rewrite.
22185 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
22186 (lto_output_varpool_node): Likewise.
22187 (compute_ltrans_boundary): Remve assert.
22188 (get_alias_symbol): New functoin.
22189 (input_node): Rewrite alias handling.
22190 (input_varpool_node): Likewise.
22191 * ipa-pure-const.c (propagate_pure_const): Fix formating.
22192 * ipa.c (process_references): Handle weakrefs correctly.
22193 (symtab_remove_unreachable_nodes): Likewise.
22194 * trans-mem.c (get_cg_data): Update.
22195 (ipa_tm_create_version_alias): Update.
22196 (ipa_tm_execute): Update.
22197 * symtab.c (dump_symtab_base): Dump aliases.
22198 (verify_symtab_base): Verify aliases.
22199 (symtab_node_availability): New function.
22200 (symtab_alias_ultimate_target): Simplify.
22201 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
22202 handle all the fixup cases.
22203 (symtab_resolve_alias): New function.
22204 * passes.c (ipa_write_summaries): Handle weakrefs.
22205 * varpool.c (varpool_analyze_node): Simplify.
22206 (assemble_aliases): Update.
22207 (varpool_create_variable_alias): Simplify.
22208 (varpool_extra_name_alias): Simplify.
22209 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
22210 (lto_symtab_merge_symbols): ... this one.
22212 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
22215 PR rtl-optimization/57268
22216 * sched-deps.c (sched_analyze_2): Flush dependence lists if
22217 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22219 2013-06-01 Tobias Burnus <burnus@net-b.de>
22221 Partially reverted:
22222 2013-05-31 Tobias Burnus <burnus@net-b.de>
22224 PR middle-end/57073
22225 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
22228 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
22230 PR rtl-optimization/57268
22231 * sched-deps.c (sched_analyze_2): Flush dependence lists if
22232 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22234 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
22236 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
22237 unordered comparison operators when -fno-trapping-math is in effect
22239 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
22240 and implement unordered comparison operators properly on the e500.
22242 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
22244 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
22245 for constant scalar integers.
22246 (simplify_relational_operation_1): Likewise.
22248 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
22250 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
22251 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
22254 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
22255 Igor Zamyatin <igor.zamyatin@intel.com>
22257 Silvermont (SLM) architecture performance tuning.
22258 * config/i386/i386.h (enum ix86_tune_indices): Add
22259 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
22260 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
22262 * config/i386/i386.c (initial_ix86_tune_features)
22263 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
22264 (ix86_lea_outperforms): Handle Silvermont tuning.
22265 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
22267 (ix86_use_lea_for_mov): Likewise.
22268 (ix86_avoid_lea_for_addr): Likewise.
22269 (ix86_lea_for_add_ok): Likewise.
22270 (exact_dependency_1): New function.
22271 (exact_store_load_dependency): Likewise.
22272 (ix86_adjust_cost): Handle Silvermont tuning.
22273 (do_reoder_for_imul): Likewise.
22274 (swap_top_of_ready_list): New function.
22275 (ix86_sched_reorder): Changed to handle Silvermont tuning.
22277 * config/i386/i386.md (peepholes that split memory operand in fp
22280 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
22282 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22283 Remove un-necessary braces.
22285 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
22287 * config/aarch64/aarch64.c (aarch64_classify_symbol):
22288 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
22290 2013-05-31 Tobias Burnus <burnus@net-b.de>
22292 PR middle-end/57073
22293 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
22295 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22298 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
22299 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
22300 * config/arm/neon.md (iordi3_neon): Remove.
22301 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
22302 * config/arm/predicates.md (imm_for_neon_logic_operand):
22303 Move to earlier in the file.
22304 (neon_logic_op2): Likewise.
22305 (arm_iordi_operand_neon): New predicate.
22307 2013-05-31 Richard Biener <rguenther@suse.de>
22309 PR tree-optimization/57478
22310 PR tree-optimization/57453
22311 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
22314 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22316 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
22317 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
22319 2013-05-30 Tobias Burnus <burnus@net-b.de>
22320 Thomas Koenig <tkoenig@gcc.gnu.org>
22322 PR middle-end/57073
22323 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
22324 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
22326 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
22328 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
22330 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
22332 * target.def (register_usage_leveling_p): New hook.
22333 * targhooks.c (default_register_usage_leveling_p): New.
22334 * targhooks.h (default_register_usage_leveling_p): New prototype.
22335 * lra-assigns.c (register_usage_leveling_p): Use the hook.
22336 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
22337 * doc/tm.texi: Update.
22338 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
22340 2013-05-30 Ian Bolton <ian.bolton@arm.com>
22342 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
22343 (*insv_reg<mode>): New define_insn.
22345 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
22347 PR rtl-optimization/57439
22348 * postreload.c (move2add_valid_value_p): Check that we have
22349 a zero subreg_regno_offset when accessing the register in
22350 the requested mode.
22352 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
22353 Igor Zamyatin <igor.zamyatin@intel.com>
22355 Silvermont (SLM) architecture pipeline model, tuning and
22357 * config.gcc: Add slm config options and target.
22359 * config/i386/slm.md: New.
22361 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
22363 * config/i386/i386-c.c (ix86_target_macros_internal): New case
22365 (ix86_target_macros_internal): Likewise.
22367 * config/i386/i386.c (slm_cost): New cost.
22368 (m_SLM): New macro flag.
22369 (initial_ix86_tune_features): Set m_SLM.
22370 (x86_accumulate_outgoing_args): Likewise.
22371 (x86_arch_always_fancy_math_387): Likewise.
22372 (processor_target_table): Add slm cost.
22373 (cpu_names): Add slm cpu name.
22374 (x86_option_override_internal): Set SLM ISA.
22375 (ix86_issue_rate): New case PROCESSOR_SLM.
22376 (ia32_multipass_dfa_lookahead): Likewise.
22377 (fold_builtin_cpu): Add slm.
22379 * config/i386/i386.h (TARGET_SLM): New target macro.
22380 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
22381 (processor_type): Add PROCESSOR_SLM.
22383 * config/i386/i386.md (cpu): Add new value "slm".
22384 (slm.md): Include slm.md.
22386 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
22387 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22389 * config/arm/arm-protos.h: Add and update function protos.
22390 * config/arm/arm.c (use_simple_return_p): New added.
22391 (thumb2_expand_return): Check simple_return flag.
22392 * config/arm/arm.md: Add simple_return and conditional simple_return.
22393 * config/arm/iterators.md: Add iterator for return and simple_return.
22395 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22397 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
22398 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
22399 (arm_emit_vfp_multi_reg_pop): Likewise.
22400 (thumb2_emit_ldrd_pop): Likewise.
22401 (arm_expand_epilogue): Add misc REG_CFA notes.
22402 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
22404 2013-05-29 Lawrence Crowl <crowl@google.com>
22406 * config/arm/t-arm: Update for below.
22408 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
22409 Change type to hash_table. Update dependent calls and types.
22411 * config/i386/t-cygming: Update for below.
22413 * config/i386/t-interix: Update for below.
22415 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
22416 Change type to hash_table. Update dependent calls and types.
22417 (i386_find_on_wrapper_list::wrappers): Likewise.
22419 * config/ia64/t-ia64: Update for below.
22421 * config/ia64/ia64.c (bundle_state_table):
22422 Change type to hash_table. Update dependent calls and types.
22424 * config/mips/mips.c (mips_reorg_process_insns::htab):
22425 Change type to hash_table. Update dependent calls and types.
22427 * config/sol2.c (solaris_comdat_htab):
22428 Change type to hash_table. Update dependent calls and types.
22430 * config/t-sol2: Update for above.
22432 2013-05-29 Teresa Johnson <tejohnson@google.com>
22434 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
22435 functions are not yet marked as defined.
22437 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
22438 Pat Haugen <pthaugen@us.ibm.com>
22439 Peter Bergner <bergner@vnet.ibm.com>
22441 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
22445 (vrotl<mode>3): Likewise.
22446 (vashl<mode>3): Likewise.
22447 (vlshr<mode>3): Likewise.
22448 (vashr<mode>3): Likewise.
22450 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22451 support for power8 V2DI builtins.
22453 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
22454 power8 V2DI builtins.
22455 (vupkhsw): Likewise.
22456 (vupklsw): Likewise.
22457 (vaddudm): Likewise.
22458 (vminsd): Likewise.
22459 (vmaxsd): Likewise.
22460 (vminud): Likewise.
22461 (vmaxud): Likewise.
22462 (vpkudum): Likewise.
22463 (vpksdss): Likewise.
22464 (vpkudus): Likewise.
22465 (vpksdus): Likewise.
22470 (vsubudm): Likewise.
22471 (vcmpequd): Likewise.
22472 (vcmpgtsd): Likewise.
22473 (vcmpgtud): Likewise.
22474 (vcmpequd_p): Likewise.
22475 (vcmpgtsd_p): Likewise.
22476 (vcmpgtud_p): Likewise.
22477 (vupkhsw): Likewise.
22478 (vupklsw): Likewise.
22479 (vaddudm): Likewise.
22480 (vmaxsd): Likewise.
22481 (vmaxud): Likewise.
22482 (vminsd): Likewise.
22483 (vminud): Likewise.
22484 (vpksdss): Likewise.
22485 (vpksdus): Likewise.
22486 (vpkudum): Likewise.
22487 (vpkudus): Likewise.
22492 (vsubudm): Likewise.
22494 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
22495 support for power8 V2DI instructions.
22497 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
22498 power8 V2DI instructions. Combine pack and unpack insns to use an
22499 iterator for each mode. Check whether a particular mode supports
22500 Altivec instructions instead of just checking TARGET_ALTIVEC.
22501 (UNSPEC_VPKUWUM): Likewise.
22502 (UNSPEC_VPKSHSS): Likewise.
22503 (UNSPEC_VPKSWSS): Likewise.
22504 (UNSPEC_VPKUHUS): Likewise.
22505 (UNSPEC_VPKSHUS): Likewise.
22506 (UNSPEC_VPKUWUS): Likewise.
22507 (UNSPEC_VPKSWUS): Likewise.
22508 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
22509 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
22510 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
22511 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
22512 (UNSPEC_VUPKHSB): Likewise.
22513 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
22514 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
22515 (UNSPEC_VUPKHSH): Likewise.
22516 (UNSPEC_VUPKLSB): Likewise.
22517 (UNSPEC_VUPKLSH): Likewise.
22519 (VI_char): Likewise.
22520 (VI_scalar): Likewise.
22521 (VI_unit): Likewise.
22523 (VP_small): Likewise.
22524 (VP_small_lc): Likewise.
22525 (VU_char): Likewise.
22526 (add<mode>3): Likewise.
22527 (altivec_vaddcuw): Likewise.
22528 (altivec_vaddu<VI_char>s): Likewise.
22529 (altivec_vadds<VI_char>s): Likewise.
22530 (sub<mode>3): Likewise.
22531 (altivec_vsubcuw): Likewise.
22532 (altivec_vsubu<VI_char>s): Likewise.
22533 (altivec_vsubs<VI_char>s): Likewise.
22534 (altivec_vavgs<VI_char>): Likewise.
22535 (altivec_vcmpbfp): Likewise.
22536 (altivec_eq<mode>): Likewise.
22537 (altivec_gt<mode>): Likewise.
22538 (altivec_gtu<mode>): Likewise.
22539 (umax<mode>3): Likewise.
22540 (smax<mode>3): Likewise.
22541 (umin<mode>3): Likewise.
22542 (smin<mode>3): Likewise.
22543 (altivec_vpkuhum): Likewise.
22544 (altivec_vpkuwum): Likewise.
22545 (altivec_vpkshss): Likewise.
22546 (altivec_vpkswss): Likewise.
22547 (altivec_vpkuhus): Likewise.
22548 (altivec_vpkshus): Likewise.
22549 (altivec_vpkuwus): Likewise.
22550 (altivec_vpkswus): Likewise.
22551 (altivec_vpks<VI_char>ss): Likewise.
22552 (altivec_vpks<VI_char>us): Likewise.
22553 (altivec_vpku<VI_char>us): Likewise.
22554 (altivec_vpku<VI_char>um): Likewise.
22555 (altivec_vrl<VI_char>): Likewise.
22556 (altivec_vsl<VI_char>): Likewise.
22557 (altivec_vsr<VI_char>): Likewise.
22558 (altivec_vsra<VI_char>): Likewise.
22559 (altivec_vsldoi_<mode>): Likewise.
22560 (altivec_vupkhsb): Likewise.
22561 (altivec_vupkhs<VU_char>): Likewise.
22562 (altivec_vupkls<VU_char>): Likewise.
22563 (altivec_vupkhsh): Likewise.
22564 (altivec_vupklsb): Likewise.
22565 (altivec_vupklsh): Likewise.
22566 (altivec_vcmpequ<VI_char>_p): Likewise.
22567 (altivec_vcmpgts<VI_char>_p): Likewise.
22568 (altivec_vcmpgtu<VI_char>_p): Likewise.
22569 (abs<mode>2): Likewise.
22570 (vec_unpacks_hi_v16qi): Likewise.
22571 (vec_unpacks_hi_v8hi): Likewise.
22572 (vec_unpacks_lo_v16qi): Likewise.
22573 (vec_unpacks_hi_<VP_small_lc>): Likewise.
22574 (vec_unpacks_lo_v8hi): Likewise.
22575 (vec_unpacks_lo_<VP_small_lc>): Likewise.
22576 (vec_pack_trunc_v8h): Likewise.
22577 (vec_pack_trunc_v4si): Likewise.
22578 (vec_pack_trunc_<mode>): Likewise.
22580 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
22582 (vec_vmaxsd): Likewise.
22583 (vec_vmaxud): Likewise.
22584 (vec_vminsd): Likewise.
22585 (vec_vminud): Likewise.
22586 (vec_vpksdss): Likewise.
22587 (vec_vpksdus): Likewise.
22588 (vec_vpkudum): Likewise.
22589 (vec_vpkudus): Likewise.
22590 (vec_vrld): Likewise.
22591 (vec_vsld): Likewise.
22592 (vec_vsrad): Likewise.
22593 (vec_vsrd): Likewise.
22594 (vec_vsubudm): Likewise.
22595 (vec_vupkhsw): Likewise.
22596 (vec_vupklsw): Likewise.
22598 2013-05-29 Jan Hubicka <jh@suse.cz>
22600 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
22601 flags; reorder rest of fields in more consistent way.
22602 (varpool_node): Remove analyzed, finalized and alias.
22603 (cgraph_ndoe): Likewise.
22604 (symtab_alias_ultimate_target): New function.
22605 (cgraph_function_node): Move offline.
22606 (cgraph_reset_node): Declare.
22607 (cgraph_comdat_can_be_unshared_p): Remove.
22608 (varpool_remove_initializer): Declare.
22609 (varpool_first_defined_variable, varpool_next_defined_variable
22610 cgraph_first_defined_function, cgraph_next_defined_function): Update.
22611 (cgraph_function_with_gimple_body_p): Update.
22612 (varpool_all_refs_explicit_p): Update.
22613 (symtab_alias_target): New function.
22614 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
22615 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
22616 (cgraph_function_or_thunk_node): Simplify using
22617 symtab_alias_ultimate_target.
22618 (varpool_variable_node): Likewise.
22619 * cgraph.c (cgraph_create_function_alias): Update.
22620 (cgraph_add_thunk): Update.
22621 (cgraph_remove_node): Update.
22622 (dump_cgraph_node): Do not dump removed flags.
22623 (cgraph_function_body_availability): Update.
22624 (cgraph_propagate_frequency): Update.
22625 (verify_cgraph_node): Check sanity of local flag.
22626 (cgraph_function_node): Move here from cgraph.h; revamp for
22627 cgraph_function_or_thunk_node.
22628 * lto-symtab.c (lto_varpool_replace_node): Update.
22629 (lto_symtab_resolve_can_prevail_p): Update.
22630 (lto_symtab_merge_cgraph_nodes): Update.
22631 * ipa-cp.c (determine_versionability, initialize_node_lattices,
22632 propagate_constants_accross_call, devirtualization_time_bonus,
22633 ipcp_propagate_stage): Update.
22634 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
22635 * ipa-inline-transform.c (clone_inlined_nodes,
22636 preserve_function_body_p): Update.
22637 * ipa-reference.c (propagate): Update.
22638 (write_node_summary_p): Update.
22639 * toplev.c (wrapup_global_declaration_2): Update.
22640 * cgraphunit.c (cgraph_analyze_function): Rename to ...
22641 (analyze_function) ... this one.
22642 (cgraph_process_new_functions): Update.
22643 (cgraph_reset_node): Export.
22644 (cgraph_finalize_function): Update.
22645 (cgraph_add_new_function): Update.
22646 (process_function_and_variable_attributes): Update.
22647 (varpool_finalize_decl): Update.
22648 (symbol_finalized): Remove.
22649 (symbol_finalized_and_needed): Rename to ...
22650 (symbol_defined_and_needed): ... update.
22651 (cgraph_analyze_functions): Update.
22652 (handle_alias_pairs): Update.
22653 (mark_functions_to_output): Update.
22654 (assemble_thunk): Update.
22655 (output_in_order): Update.
22656 (output_weakrefs): Update.
22657 (finalize_compilation_unit): Update.
22658 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
22659 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
22660 input_node, input_varpool_node): Update.
22661 * dbxout.c (dbxout_expand_expr): Update.
22662 * cgraphclones.c (cgraph_clone_node): Update.
22663 (cgraph_copy_node_for_versioning): Update.
22664 (cgraph_materialize_clone): Update.
22665 (cgraph_materialize_all_clones): Update.
22666 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
22667 propagate_pure_const, propagate_nothrow): Update.
22668 * lto-streamer-out.c (lto_output, write_symbol): Update.
22669 * ipa-utils.c (ipa_reverse_postorder): Update.
22670 * ipa-inline.c (can_inline_edge_p): Update.
22671 (update_caller_keys, ipa_inline): Update.
22672 * dwarf2out.c (reference_to_unused,
22673 premark_types_used_by_global_vars_helper): Update.
22674 * tree-eh.c (tree_could_trap_p): Update.
22675 * ipa-split.c (consider_split, execute_split_functions): Update.
22676 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
22677 has_addr_references_p): Update; move ahead in file for better
22679 (process_references): Simplify.
22680 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
22681 bodies are removed.
22682 (cgraph_comdat_can_be_unshared_p): Make static.
22683 (cgraph_externally_visible_p): Update.
22684 (varpool_externally_visible_p): Update.
22685 (function_and_variable_visibility): Update.
22686 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
22687 ipa_tm_mark_force_output_node): Update.
22688 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
22689 estimate_edge_devirt_benefit, inline_generate_summary,
22690 inline_write_summary): Update.
22691 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
22692 * ipa-prop.c (ipa_compute_jump_functions): Update.
22693 (ipa_print_node_params, ipa_prop_read_section,
22694 ipa_update_after_lto_read, read_replacements_section): Update.
22695 * varasm.c (mark_decl_referenced): Update.
22696 (assemble_alias, dump_tm_clone_pairs): Update.
22697 * tree-inline.c (copy_bb): Update.
22698 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
22700 * symtab.c (dump_symtab_base): Print new flags.
22701 (verify_symtab_base): Verify new flags.
22702 (symtab_alias_ultimate_target): New function.
22703 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
22704 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
22706 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
22708 * i386.c (ix86_get_function_versions_dispatcher,
22709 ix86_generate_version_dispatcher_body): Update.
22710 (fold_builtin_cpu): Use varpool_add_new_variable.
22711 * varpool.c (varpool_remove_initializer): Break out from ...
22712 (varpool_remove_node): ... this one.
22713 (dump_varpool_node, varpool_node_for_asm,
22714 cgraph_variable_initializer_availability, varpool_analyze_node,
22715 varpool_assemble_decl, varpool_remove_unreferenced_decls,
22716 varpool_finalize_named_section_flags, varpool_create_variable_alias):
22719 2013-05-29 Jan Hubicka <jh@suse.cz>
22721 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
22723 2013-05-29 Easwaran Raman <eraman@google.com>
22725 PR tree-optimization/57442
22726 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
22727 when control exits the main loop.
22729 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
22731 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
22733 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
22734 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
22735 * rx/t-rx: Add rx100 under multi library matches option for nofpu
22738 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22740 PR tree-optimization/57441
22741 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
22742 Don't limit size of incr_vec to number of candidates.
22744 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
22746 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
22747 and mips16 directories.
22748 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
22749 (MULTILIB_DIRNAMES): Ditto.
22750 (MULTILIB_EXCEPTIONS): Add new exceptions.
22751 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
22752 (MULTILIB_DIRNAMES): Ditto.
22753 (MULTILIB_EXCEPTIONS): Add new exceptions.
22755 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
22756 Marcus Shawcroft <marcus.shawcroft@arm.com>
22758 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
22759 SYMBOL_TINY_ABSOLUTE.
22760 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
22761 SYMBOL_TINY_ABSOLUTE.
22762 (aarch64_expand_mov_immediate): Likewise.
22763 (aarch64_classify_symbol): Likewise.
22764 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
22765 Permit SYMBOL_TINY_ABSOLUTE.
22766 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
22768 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
22769 Marcus Shawcroft <marcus.shawcroft@arm.com>
22771 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
22772 Refactor if/switch. Replace gcc_assert with if.
22774 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
22776 * config/i386/i386.c (initial_ix86_tune_features): Enable
22777 FP Reassociation for AMD bdver1 and bdver2.
22779 2013-05-29 Martin Jambor <mjambor@suse.cz>
22781 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
22782 and IMAGPART_EXPR do not occur within other handled_components.
22784 2013-05-29 Richard Biener <rguenther@suse.de>
22786 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
22787 access on whether the use is in the BB we currently try to
22789 (vect_bb_vectorization_profitable_p): Pass the BB we currently
22790 vectorize to vect_bb_slp_scalar_cost.
22792 2013-05-29 Richard Biener <rguenther@suse.de>
22794 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
22795 computing scalar cost offsetted by stmts that are kept live
22797 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
22798 for computation of scalar cost.
22800 2013-05-28 Steve Ellcey <sellcey@mips.com>
22802 * config/mips/mips-cpus.def (mips32r2): Change processor type.
22804 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
22806 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
22807 array notation built-in reduction functions.
22808 * doc/passes.texi (Passes): Added documentation about changes done
22810 * doc/invoke.texi (C Dialect Options): Added documentation about
22811 the -fcilkplus flag.
22812 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
22813 (BUILTINS_DEF): Depend on cilkplus.def.
22814 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
22815 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
22816 * cilkplus.def: New file.
22818 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
22820 PR rtl-optimization/57439
22821 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
22823 2013-05-28 Easwaran Raman <eraman@google.com>
22825 PR tree-optimization/57337
22826 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
22827 (find_insert_point): Correctly identify the insertion point
22828 when two statements with the same UID is compared.
22830 2013-05-28 Richard Biener <rguenther@suse.de>
22832 PR tree-optimization/56787
22833 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
22834 from the list of data references.
22835 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
22837 (vect_analyze_loop_operations): Likewise.
22838 (vect_transform_loop): Remove clobbers.
22840 2013-05-28 Martin Jambor <mjambor@suse.cz>
22842 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
22843 and REALPART_EXPRs have scalar type.
22845 2013-05-28 Richard Biener <rguenther@suse.de>
22847 PR tree-optimization/57411
22848 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
22850 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
22851 virtual operand propagation.
22853 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
22855 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
22856 destination register for bmasksi_vis.
22857 (vector_init_bshuffle): Likewise.
22858 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
22860 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
22862 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
22863 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
22864 mode if the instruction isn't available in the original mode.
22865 * config/sparc/sparc.opt (mfix-ut699): New option.
22866 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
22867 (divdf3): Turn into expander.
22868 (divdf3_nofix): New insn.
22869 (divdf3_fix): Likewise.
22870 (divsf3): Disable if -mfix-ut699.
22871 (sqrtdf2): Turn into expander.
22872 (sqrtdf2_nofix): New insn.
22873 (sqrtdf2_fix): Likewise.
22874 (sqrtsf2): Disable if -mfix-ut699.
22876 2013-05-27 Richard Biener <rguenther@suse.de>
22878 PR middle-end/57412
22879 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
22880 block for the new loop.
22882 2013-05-27 Richard Biener <rguenther@suse.de>
22884 PR tree-optimization/57343
22885 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
22886 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
22887 (number_of_iterations_cond): Do not build the folded tree.
22889 2013-05-27 Richard Biener <rguenther@suse.de>
22892 PR middle-end/57381
22893 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
22894 OEP_CONSTANT_ADDRESS_OF retained.
22896 PR tree-optimization/57417
22897 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
22898 for unchanged base.
22899 (set_ssa_val_to): Compare addresses using
22900 get_addr_base_and_unit_offset.
22902 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
22904 PR rtl-optimization/56833
22905 * postreload.c (move2add_record_mode): New function.
22906 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
22907 (move2add_use_add2_insn): Use move2add_record_sym_value.
22908 (move2add_use_add3_insn): Likewise.
22909 (reload_cse_move2add): Use move2add_valid_value_p and
22910 move2add_record_mode. Invalidate call-clobbered and REG_INC
22911 affected regs by setting reg_mode to VOIDmode.
22912 (move2add_note_store): Don't pretend the inside of a SUBREG is
22913 the actual destination. Invalidate single/leading registers by
22914 setting reg_mode to VOIDmode.
22915 Use move2add_record_sym_value, move2add_valid_value_p and
22916 move2add_record_mode.
22918 2013-05-27 Richard Biener <rguenther@suse.de>
22920 PR tree-optimization/57396
22921 * tree-affine.c (double_int_constant_multiple_p): Properly
22922 return false for val == 0 and div != 0.
22924 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
22926 * config/mips/mips.h: Use #elif in preprocessor conditions.
22928 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
22931 * config/mips/constraints.md (kl): New constraint.
22932 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
22933 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
22934 constraint for operand 0. Split after CSE for MIPS16. Emit a move
22935 from LO for MIPS16.
22936 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
22938 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
22941 * config/mips/mips.c (mips_can_inline_p): New function.
22942 (TARGET_CAN_INLINE_P): Define.
22944 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
22946 * sched-int.h (ds_t, dw_t): Make unsigned int.
22947 Fix documentation that describes how all the ds_t bits are used.
22948 Reserve the last bit for delayed-branch scheduling.
22949 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
22950 (BITS_PER_DEP_WEAK): Fix definition and documentation.
22951 (gen_dep_weak_1): Remove prototype.
22952 * sched-deps.c (get_dep_weak_1): Make static.
22953 * target.def (speculate_insn, needs_block_p, gen_spec_check,
22954 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
22955 * doc/tm.texi: Regenerate.
22956 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
22958 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
22961 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
22963 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
22964 Sandra Loosemore <sandra@codesourcery.com>
22966 * config.gcc (powerpc-*): Allow native for with-cpu.
22968 2013-05-24 Jeff Law <law@redhat.com>
22970 PR tree-optimization/57124
22971 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
22972 conversion feeding a condition if the range has an overflow
22973 if -fstrict-overflow. Add warnings for when we do make the
22976 2013-05-24 Dehao Chen <dehao@google.com>
22978 * tree-cfg.c (locus_discrim_map): Fix the typo.
22979 (locus_discrim_hasher): Likewise.
22980 (locus_discrim_hasher::hash): Likewise.
22981 (locus_discrim_hasher::equal): Likewise.
22983 2013-05-24 Martin Jambor <mjambor@suse.cz>
22985 PR tree-optimization/57294
22986 * cgraph.h (ipa_record_stmt_references): Declare.
22987 * cgraphbuild.c (ipa_record_stmt_references): New function.
22988 (build_cgraph_edges): Use ipa_record_stmt_references.
22989 (rebuild_cgraph_edges): Likewise.
22990 (cgraph_rebuild_references): Likewise.
22991 * ipa-prop.c (ipa_modify_call_arguments): Discard references
22992 associated with the old statement and build references from the
22993 newly built statements.
22994 * ipa-ref.c (ipa_remove_stmt_references): New function.
22995 * ipa-ref.h (ipa_remove_stmt_references): Declare.
22997 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
22999 * lra-constraints.c (emit_spill_move): Use smaller mode for
23001 (check_and_process_move): Consider mem-reg moves for secondary
23003 (curr_insn_transform): Don't lose insns emitted before for
23004 secondary memory moves.
23005 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
23006 reg set up in the current insn.
23008 2013-05-24 Dehao Chen <dehao@google.com>
23010 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
23012 (locus_descrim_hasher::equal): Likewise.
23013 (build_gimple_cfg): New discriminator assignment algorithm.
23014 (make_edges): Likewise.
23015 (next_discriminator_for_locus): Likewise.
23016 (same_line_p): Likewise.
23017 (assign_discriminators): Likewise.
23018 (make_cond_expr_edges): Likewise.
23019 (make_gimple_switch_edges): Likewise.
23020 (make_goto_expr_edges): Likewise.
23021 (make_gimple_asm_edges): Likewise.
23023 2013-05-24 Ian Bolton <ian.bolton@arm.com>
23025 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
23026 X format specifier to only display bottom 16 bits.
23027 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
23028 immediate to match for operand 2, since it will be masked.
23030 2013-05-24 Richard Biener <rguenther@suse.de>
23032 PR tree-optimization/57287
23033 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
23034 all SSA names that occur in abnormal PHIs.
23036 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
23039 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
23040 that index is not negative.
23042 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
23044 PR rtl-optimization/55177
23045 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
23046 (simplify_byte_swapping_operation): New.
23047 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
23048 (simplify_relational_operation_1): Deal with BSWAP.
23050 2013-05-23 Richard Henderson <rth@redhat.com>
23053 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
23054 (ix86_reorg): Call it.
23056 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
23059 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
23060 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
23061 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
23063 2013-05-23 Christian Bruel <christian.bruel@st.com>
23066 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
23068 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23069 Marcus Shawcroft <marcus.shawcroft@arm.com>
23071 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
23072 * config/aarch64/constraints.md (Usa): Remove.
23073 * doc/md.texi (AArch64 Usa): Remove.
23075 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23076 Marcus Shawcroft <marcus.shawcroft@arm.com>
23078 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
23079 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
23080 * config/aarch64/predicates.md (aarch64_const_address): Remove.
23081 (aarch64_mov_operand): Use aarch64_mov_operand_p.
23083 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
23085 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
23086 instruction (AdvSIMD).
23087 * config/aarch64/aarch64-builtins.c
23088 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
23089 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
23091 2013-05-23 Martin Jambor <mjambor@suse.cz>
23093 PR middle-end/57347
23094 * tree.h (contains_bitfld_component_ref_p): Declare.
23095 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
23096 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
23098 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
23099 not access a bit-field. Assert all final offsets are byte-aligned.
23101 2013-05-23 Richard Biener <rguenther@suse.de>
23103 PR tree-optimization/57380
23104 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
23105 least one invariant or re-used load.
23106 * passes.c (init_optimization_passes): Move pass_phiprop before
23109 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
23111 * config/aarch64/aarch64-simd.md
23112 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
23114 2013-05-23 Richard Biener <rguenther@suse.de>
23116 PR middle-end/57381
23117 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
23118 OEP_CONSTANT_ADDRESS_OF retained.
23120 2013-05-23 Jakub Jelinek <jakub@redhat.com>
23122 PR middle-end/57344
23123 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
23124 don't lower unit. Handle unit not being always BITS_PER_WORD.
23126 2013-05-23 Richard Biener <rguenther@suse.de>
23128 PR rtl-optimization/57341
23129 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
23130 instead of true_dependence.
23132 2013-05-22 David Malcolm <dmalcolm@redhat.com>
23134 * bb-reorder.c (branch_threshold): Make const.
23135 (exec_threshold): Ditto.
23137 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
23138 Pat Haugen <pthaugen@us.ibm.com>
23139 Peter Bergner <bergner@vnet.ibm.com>
23141 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
23142 documentation for the power8 crypto builtins.
23144 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
23146 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
23147 macros for defining power8 builtin functions.
23148 (BU_P8V_AV_2): Likewise.
23149 (BU_P8V_AV_P): Likewise.
23150 (BU_P8V_VSX_1): Likewise.
23151 (BU_P8V_OVERLOAD_1): Likewise.
23152 (BU_P8V_OVERLOAD_2): Likewise.
23153 (BU_CRYPTO_1): Likewise.
23154 (BU_CRYPTO_2): Likewise.
23155 (BU_CRYPTO_3): Likewise.
23156 (BU_CRYPTO_OVERLOAD_1): Likewise.
23157 (BU_CRYPTO_OVERLOAD_2): Likewise.
23158 (XSCVSPDP): Fix typo, point to the correct instruction.
23159 (VCIPHER): Add power8 crypto builtins.
23160 (VCIPHERLAST): Likewise.
23161 (VNCIPHER): Likewise.
23162 (VNCIPHERLAST): Likewise.
23163 (VPMSUMB): Likewise.
23164 (VPMSUMH): Likewise.
23165 (VPMSUMW): Likewise.
23166 (VPERMXOR_V2DI): Likewise.
23167 (VPERMXOR_V4SI: Likewise.
23168 (VPERMXOR_V8HI: Likewise.
23169 (VPERMXOR_V16QI: Likewise.
23170 (VSHASIGMAW): Likewise.
23171 (VSHASIGMAD): Likewise.
23172 (VPMSUM): Likewise.
23173 (VPERMXOR): Likewise.
23174 (VSHASIGMA): Likewise.
23176 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
23177 __CRYPTO__ if the crypto instructions are available.
23178 (altivec_overloaded_builtins): Add support for overloaded power8
23181 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
23182 support for power8 crypto builtins.
23183 (builtin_function_type): Likewise.
23184 (altivec_init_builtins): Add support for builtins that take vector
23185 long long (V2DI) arguments.
23187 * config/rs6000/crypto.md: New file, define power8 crypto
23190 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
23191 Pat Haugen <pthaugen@us.ibm.com>
23192 Peter Bergner <bergner@vnet.ibm.com>
23194 * doc/invoke.texi (Option Summary): Add power8 options.
23195 (RS/6000 and PowerPC Options): Likewise.
23197 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
23198 constraints.md instead of rs6000.h. Reorder w* constraints. Add
23199 wm, wn, wr documentation.
23201 * config/rs6000/constraints.md (wm): New constraint for VSX
23202 registers if direct move instructions are enabled.
23203 (wn): New constraint for no registers.
23204 (wq): New constraint for quad word even GPR registers.
23205 (wr): New constraint if 64-bit instructions are enabled.
23206 (wv): New constraint if power8 vector instructions are enabled.
23207 (wQ): New constraint for quad word memory locations.
23209 * config/rs6000/predicates.md (const_0_to_15_operand): New
23210 constraint for 0..15 for crypto instructions.
23211 (gpc_reg_operand): If VSX allow registers in VSX registers as well
23212 as GPR and floating point registers.
23213 (int_reg_operand): New predicate to match only GPR registers.
23214 (base_reg_operand): New predicate to match base registers.
23215 (quad_int_reg_operand): New predicate to match even GPR registers
23216 for quad memory operations.
23217 (vsx_reg_or_cint_operand): New predicate to allow vector logical
23218 operations in both GPR and VSX registers.
23219 (quad_memory_operand): New predicate for quad memory operations.
23220 (reg_or_indexed_operand): New predicate for direct move support.
23222 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
23223 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
23224 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
23225 (POWERPC_MASKS): Add power8 options.
23226 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
23229 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
23230 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
23232 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
23233 (-mpower8-fusion): New power8 options.
23234 (-mpower8-fusion-sign): Likewise.
23235 (-mpower8-vector): Likewise.
23236 (-mcrypto): Likewise.
23237 (-mdirect-move): Likewise.
23238 (-mquad-memory): Likewise.
23240 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
23241 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
23243 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
23244 (rs6000_debug_vector_unit): Add p8_vector.
23245 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
23246 definitions. Also print fusion state.
23247 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
23248 (rs6000_builtin_mask_calculate): Add power8 builtin support.
23249 (rs6000_option_override_internal): Add support for power8.
23250 (rs6000_common_init_builtins): Add debugging for skipped builtins
23251 if -mdebug=builtin.
23252 (rs6000_adjust_cost): Add power8 support.
23253 (rs6000_issue_rate): Likewise.
23254 (insn_must_be_first_in_group): Likewise.
23255 (insn_must_be_last_in_group): Likewise.
23256 (force_new_group): Likewise.
23257 (rs6000_register_move_cost): Likewise.
23258 (rs6000_opt_masks): Likewise.
23260 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
23261 power8 capable assembler, default to power7 options.
23262 (TARGET_DIRECT_MOVE): Likewise.
23263 (TARGET_CRYPTO): Likewise.
23264 (TARGET_P8_VECTOR): Likewise.
23265 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
23266 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
23267 (VECTOR_MEM_P8_VECTOR_P): Likewise.
23268 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
23269 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
23270 (TARGET_XSCVDPSPN): Likewise.
23271 (TARGET_XSCVSPDPN): Likewsie.
23272 (TARGET_SYNC_HI_QI): Likewise.
23273 (TARGET_SYNC_TI): Likewise.
23274 (MASK_CRYPTO): Likewise.
23275 (MASK_DIRECT_MOVE): Likewise.
23276 (MASK_P8_FUSION): Likewise.
23277 (MASK_P8_VECTOR): Likewise.
23278 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
23279 temporary used by some of the direct move instructions to get two FP
23280 temporary registers does not force creation of a stack frame.
23281 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
23282 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
23283 that any VSX registers are tieable, even if they are also an
23284 Altivec vector mode.
23285 (r6000_reg_class_enum): Add wm, wr, wv constraints.
23286 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
23287 (RS6000_BTM_CRYPTO): Likewise.
23288 (RS6000_BTM_COMMON): Likewise.
23290 * config/rs6000/rs6000.md (cpu attribute): Add power8.
23291 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
23292 (enum rs6000_vector): Add power8 vector support.
23294 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23298 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
23299 (any_sibcall_could_use_r3): this and handle indirect calls.
23300 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
23302 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23304 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
23306 2013-05-22 Richard Biener <rguenther@suse.de>
23308 PR middle-end/57349
23309 * profile.c (branch_prob): Do not split blocks that are
23310 abnormally receiving from ECF_RETURNS_TWICE functions.
23312 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23314 * recog.c (offsettable_address_addr_space_p): Fix calculation of
23315 address mode. Move pointer mode initialization to the same place.
23317 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23319 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
23320 while it has any effect.
23322 2013-05-21 Easwaran Raman <eraman@google.com>
23324 PR tree-optimization/57322
23325 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
23326 UID of the statement added to the BB to be 1.
23328 2013-05-21 Jakub Jelinek <jakub@redhat.com>
23330 PR tree-optimization/57331
23331 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
23332 of conversion from pointer type to integral type with integer.
23334 2013-05-21 Martin Jambor <mjambor@suse.cz>
23337 * ipa-prop.c (ipa_read_node_info): Process param_used and
23338 controlled_uses in the same order as when writing.
23340 2013-05-21 Magnus Granberg <baldrick@free.fr>
23343 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
23345 2013-05-21 Richard Biener <rguenther@suse.de>
23347 PR tree-optimization/57318
23348 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
23349 estimate stmts with side-effects as likely eliminated.
23351 2013-05-21 Richard Biener <rguenther@suse.de>
23353 PR tree-optimization/57330
23354 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
23355 preserve the call stmts fntype.
23357 2013-05-21 Richard Biener <rguenther@suse.de>
23359 PR tree-optimization/57303
23360 * tree-ssa-sink.c (statement_sink_location): Improve killing
23361 stmt detection and properly handle self-assignments.
23363 2013-05-21 Christian Bruel <christian.bruel@st.com>
23365 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
23366 spanning registers. LEAF_REG_REMAP is supported only for contiguous
23367 registers. Set register size out of the PARALLEL loop.
23369 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
23372 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
23373 (*fmasf4, *fmasf4_media): New insns.
23375 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23377 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
23378 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
23379 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
23380 (mips_idiv_insns): Update the comments to say that the returned
23381 instruction counts are in units of BASE_INSN_LENGTH.
23382 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
23383 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
23384 using 2 rather than 4 as the length of indirect MIPS16 and
23385 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
23386 length of a NOP. Don't divide MIPS16 lengths by 2.
23387 (mips16_split_long_branches): Assume a branch is long if the
23388 length is greater than 4 rather than 8.
23389 * config/mips/mips.md (length): Give MIPS16 lengths directly,
23390 rather than multiplying them by 2. Multiply instruction counts
23391 by BASE_INSN_LENGTH rather than 4.
23392 (*jump_mips16, tls_get_tp_mips16_<mode>)
23393 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
23395 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23397 * config/mips/mips.md (extended_mips16): Remove branch case.
23398 (length): Remove duplicated extended_mips16 test.
23400 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23402 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
23404 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
23406 * recog.h (Recog_data): Rename to...
23407 (recog_data_d): ...this.
23408 (recog_data): Update accordingly.
23409 * recog.c (recog_data): Likewise.
23410 * reload.c (save_recog_data): Likewise.
23411 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
23412 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
23414 2013-05-17 Julian Brown <julian@codesourcery.com>
23416 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
23417 found in a REG_EQUAL note, invalidate it.
23419 2013-05-17 Easwaran Raman <eraman@google.com>
23421 * tree-ssa-reassoc.c (find_insert_point): New function.
23422 (insert_stmt_after): Likewise.
23423 (get_def_stmt): Likewise.
23424 (ensure_ops_are_available): Likewise.
23425 (not_dominated_by): Likewise.
23426 (rewrite_expr_tree): Do not move statements beyond what is
23427 necessary. Remove call to swap_ops_for_binary_stmt...
23428 (reassociate_bb): ... and move it here.
23429 (build_and_add_sum): Assign UIDs for new statements.
23430 (linearize_expr): Likewise.
23431 (do_reassoc): Renumber gimple statement UIDs.
23433 2013-05-17 Jan Hubicka <jh@suse.cz>
23435 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
23437 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
23438 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
23440 (output_weakrefs): Update.
23442 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
23443 Martin Jambor <mjambor@suse.cz>
23445 PR middle-end/57276
23446 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
23447 value that corresponds to the given aggval is found in values vector.
23449 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
23451 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
23452 sse, sse2, sse3, ssse3 and sse4a flags to options.
23454 2013-05-17 David Malcolm <dmalcolm@redhat.com>
23456 * gengtype-state.c: (s_expr_writer): New class, to handle
23457 prettifying of output layout of s-expressions.
23458 (state_writer): New class, to write out gtype.state.
23459 (state_written_type_count): Move this variable into member data of
23461 (s_expr_writer::s_expr_writer): New code: constructor for new class
23462 (state_writer::state_writer(): ditto
23463 (s_expr_writer::write_new_line): New function
23464 (s_expr_writer::write_any_indent): ditto
23465 (s_expr_writer::begin_s_expr): ditto
23466 (s_expr_writer::end_s_expr): ditto
23467 (write_state_fileloc): convert to method of state_writer...
23468 (state_writer:: write_state_fileloc): ...and use methods of
23469 s_expr_writer to write indentation into the gtype.state output file
23470 to visually represent the hierarchical structure of the list
23472 (write_state_fields): ditto, renaming to...
23473 (state_writer::write_state_fields)
23474 (write_state_a_string): ditto, renaming to...
23475 (state_writer::write_state_a_string)
23476 (write_state_string_option): ditto, renaming to...
23477 (state_writer::write_state_string_option)
23478 (write_state_type_option): ditto, renaming to...
23479 (state_writer::write_state_type_option)
23480 (write_state_nested_option): ditto, renaming to...
23481 (state_writer::write_state_nested_option)
23482 (write_state_option): ditto, renaming to...
23483 (state_writer::write_state_option)
23484 (write_state_options): ditto, renaming to...
23485 (state_writer::write_state_options)
23486 (write_state_lang_bitmap): ditto, renaming to...
23487 (state_writer::write_state_lang_bitmap)
23488 (write_state_version): ditto, renaming to...
23489 (state_writer::write_state_version)
23490 (write_state_scalar_type): ditto, renaming to...
23491 (state_writer::write_state_scalar_type)
23492 (write_state_string_type): ditto, renaming to...
23493 (state_writer::write_state_string_type)
23494 (write_state_undefined_type): ditto, renaming to...
23495 (state_writer::write_state_undefined_type)
23496 (write_state_struct_union_type): ditto, renaming to...
23497 (state_writer::write_state_struct_union_type)
23498 (write_state_struct_type): ditto, renaming to...
23499 (state_writer::write_state_struct_type)
23500 (write_state_user_struct_type): ditto, renaming to...
23501 (state_writer::write_state_user_struct_type)
23502 (write_state_lang_struct_type): ditto, renaming to...
23503 (state_writer::write_state_lang_struct_type)
23504 (write_state_param_struct_type): ditto, renaming to...
23505 (state_writer::write_state_param_struct_type)
23506 (write_state_pointer_type): ditto, renaming to...
23507 (state_writer::write_state_pointer_type)
23508 (write_state_array_type): ditto, renaming to...
23509 (state_writer::write_state_array_type)
23510 (write_state_gc_used): ditto, renaming to...
23511 (state_writer::write_state_gc_used)
23512 (write_state_common_type_content): ditto, renaming to...
23513 (state_writer::write_state_common_type_content)
23514 (write_state_type): ditto, renaming to...
23515 (state_writer::write_state_type)
23516 (write_state_pair_list): ditto, renaming to...
23517 (state_writer::write_state_pair_list)
23518 (write_state_pair): ditto, renaming to...
23519 (state_writer::write_state_pair)
23520 (write_state_typedefs): ditto, renaming to...
23521 (state_writer::write_state_typedefs)
23522 (write_state_structures): ditto, renaming to...
23523 (state_writer::write_state_structures)
23524 (write_state_param_structs): ditto, renaming to...
23525 (state_writer::write_state_param_structs)
23526 (write_state_variables): ditto, renaming to...
23527 (state_writer::write_state_variables)
23528 (write_state_srcdir): ditto, renaming to...
23529 (state_writer::write_state_srcdir)
23530 (write_state_files_list): ditto, renaming to...
23531 (state_writer::write_state_files_list)
23532 (write_state_languages): ditto, renaming to...
23533 (state_writer::write_state_languages)
23534 (write_state): create a state_writer instance and use it when
23535 writing out the state file
23537 2013-05-17 Mike Stump <mikestump@comcast.net>
23539 PR rtl-optimization/57304
23540 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
23541 accessing DF_REF_REAL_LOC.
23543 2013-05-17 Jakub Jelinek <jakub@redhat.com>
23545 PR rtl-optimization/57281
23546 PR rtl-optimization/57300
23547 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
23548 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
23549 what the other splitter did if the registers are dead.
23551 2013-05-17 Richard Biener <rguenther@suse.de>
23553 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
23556 2013-05-17 Jakub Jelinek <jakub@redhat.com>
23558 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
23561 2013-05-17 Marek Polacek <polacek@redhat.com>
23563 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
23564 length when doing non-zero store of storing '\0' to '\0'.
23566 2013-05-17 Jakub Jelinek <jakub@redhat.com>
23568 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
23569 vect_external_def oprnd1 with loop_vinfo, try to emit
23570 optional cast, negation and and stmts on the loop preheader
23571 edge instead of into the pattern def seq.
23573 PR tree-optimization/57051
23574 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
23575 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
23577 2013-05-16 Nick Clifton <nickc@redhat.com>
23579 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
23580 (rl78_is_naked_func): New function.
23581 (rl78_expand_prologue): Skip prologue generation for naked functions.
23582 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
23583 * doc/extend.texi (naked): Add RL78 to the list of processors
23584 that supports this attribute.
23586 2013-05-16 Jeff Law <law@redhat.com>
23588 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
23590 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
23592 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
23593 cache parameters using detect_caches_amd also for CYRIX,
23594 NSC and TM2 signatures.
23596 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
23597 Dzianis Kahanovich <mahatma@eu.by>
23601 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23602 VIA/Centaur processors and determine their cache parameters
23603 using detect_caches_amd.
23605 2013-05-16 Teresa Johnson <tejohnson@google.com>
23607 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
23608 (rtl_verify_edges): New function.
23609 (rtl_verify_bb_insns): Ditto.
23610 (rtl_verify_bb_pointers): Ditto.
23611 (rtl_verify_bb_insn_chain): Ditto.
23612 (rtl_verify_fallthru): Ditto.
23613 (rtl_verify_bb_layout): Ditto.
23614 (rtl_verify_flow_info_1): Outline checks into new functions.
23615 (rtl_verify_flow_info): Ditto.
23617 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
23619 * cfghooks.c (copy_bbs): Add update_dominance argument.
23620 * cfghooks.h (copy_bbs): Update prototype.
23621 * tree-cfg.c (gimple_duplicate_sese_region):
23622 Add update_dominance argument.
23623 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
23624 * tree-ssa-loop-ch.c (copy_loop_headers): Update
23625 gimple_duplicate_sese_region call.
23626 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
23627 Update copy_bbs call.
23628 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
23629 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
23631 2013-05-16 Jakub Jelinek <jakub@redhat.com>
23633 * tree-vectorizer.h (NUM_PATTERNS): Increment.
23634 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
23635 vect_recog_rotate_pattern.
23636 (vect_recog_rotate_pattern): New function.
23638 2013-05-16 Jason Merrill <jason@redhat.com>
23640 * Makefile.in (LLINKER): New variable.
23641 (mostlyclean): Remove link mutex.
23642 * configure.ac: Handle --enable-link-mutex.
23643 * lock-and-run.sh: New script.
23645 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23648 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
23651 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23653 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
23655 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
23657 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
23658 * config/arm/arm.c (next_consecutive_mem): New function.
23659 (gen_movmem_ldrd_strd): Likewise.
23660 * config/arm/arm.md (movmemqi): Update condition and code.
23661 (unaligned_loaddi, unaligned_storedi): New patterns.
23663 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23665 * config.gcc: Obsolete *-*-solaris2.9*.
23666 * doc/install.texi (Specific, *-*-solaris2*): Document it.
23668 2013-05-16 Richard Biener <rguenther@suse.de>
23670 * passes.c (init_optimization_passes): Move pass_parallelize_loops
23671 earlier, after GRAPHITE transforms and IV canonicalization.
23673 2013-05-16 Jakub Jelinek <jakub@redhat.com>
23675 * omp-low.c (extract_omp_for_data): For collapsed loops,
23676 if at least one of the loops is known at compile time to
23677 iterate zero times, set count to 0.
23678 (expand_omp_regimplify_p): New function.
23679 (expand_omp_for_generic): For collapsed loops, if at least
23680 one of the loops isn't known to iterate at least once,
23681 add runtime check with setting count to 0.
23682 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
23683 For unsigned types if it isn't known at compile time that
23684 the loop will iterate at least once, add runtime check to bypass
23685 the whole loop if initial condition isn't true.
23687 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
23689 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
23691 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
23693 PR middle-end/57286
23694 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
23695 transformations to avoid an infinite loop.
23697 2013-05-16 Marek Polacek <polacek@redhat.com>
23699 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
23701 2013-05-15 Leif Ekblad <leif@rdos.net>
23703 * config/i386/i386.c (ix86_decompose_address): Use
23704 DEFAULT_TLS_SEG_REG to access TLS segment register.
23705 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
23706 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
23707 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
23709 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
23712 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
23713 sibling calls to functions that would normally be lazily bound,
23714 unless $gp is call-clobbered.
23716 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
23718 * config/i386/i386.c (ix86_option_override_internal): Update
23719 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
23720 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
23721 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
23722 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
23724 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
23726 2013-05-15 Andreas Schwab <schwab@suse.de>
23728 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
23729 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
23732 2013-05-15 Teresa Johnson <tejohnson@google.com>
23734 * loop-unroll.c (report_unroll_peel): Check decision before
23735 emitting unroll/peel message.
23737 2013-05-15 Teresa Johnson <tejohnson@google.com>
23739 * function.h (has_bb_partition): New rtl_data flag.
23740 (bb_reorder_complete): Ditto.
23741 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
23742 instead of flag_reorder_blocks_and_partition.
23743 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
23744 with some enhancements.
23745 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
23746 * bb-reorder.c (connect_traces): Check for has_bb_partition
23747 instead of flag_reorder_blocks_and_partition.
23748 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
23749 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
23750 verify_hot_cold_block_grouping.
23751 (partition_hot_cold_basic_blocks): Set has_bb_partition.
23753 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23756 * config/arm/predicates.md (call_insn_operand): New predicate.
23757 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
23758 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
23759 if insn is not a tail call.
23760 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
23762 * config/arm/arm.h (enum reg_class): New caller save register class.
23763 (REG_CLASS_NAMES): Likewise.
23764 (REG_CLASS_CONTENTS): Likewise.
23765 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
23768 2013-05-15 Richard Biener <rguenther@suse.de>
23770 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
23771 of MSG_OPTIMIZED_LOCATIONS.
23772 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
23773 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
23775 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
23776 of MSG_OPTIMIZED_LOCATIONS.
23777 (execute_vect_slp): Likewise.
23778 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
23779 (vect_create_cond_for_alias_checks): Likewise.
23780 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
23781 (vect_recog_widen_mult_pattern): Likewise.
23782 (vect_recog_widen_sum_pattern): Likewise.
23783 (vect_recog_over_widening_pattern): Likewise.
23784 (vect_recog_widen_shift_pattern): Likewise.
23785 (vect_recog_vector_vector_shift_pattern): Likewise.
23786 (vect_recog_divmod_pattern): Likewise.
23787 (vect_recog_mixed_size_cond_pattern): Likewise.
23788 (vect_recog_bool_pattern): Likewise.
23789 (vect_pattern_recog_1): Likewise.
23791 2013-05-15 Martin Jambor <mjambor@suse.cz>
23793 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
23794 non-functions to builtin_unreachable.
23795 * ipa-inline-transform.c (inline_call): Do not assert estimates were
23796 correct when new direct edges were discovered.
23798 2013-05-15 Martin Jambor <mjambor@suse.cz>
23800 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
23801 header, print symbol order instead of node uid, print more information
23802 about indirect edge targets.
23803 (ipa_make_edge_direct_to_target): Print symbol order instead of node
23805 (ipa_make_edge_direct_to_target): Likewise.
23806 (remove_described_reference): Likewise.
23807 (propagate_controlled_uses): Likewise.
23808 (ipa_print_node_params): Also print symbol order.
23809 (ipcp_transform_function): Print symbol order instead of node uids.
23810 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
23811 (cgraph_get_create_real_symbol_node): Likewise.
23812 * ipa-cp.c (print_lattice): Likewise.
23813 (print_all_lattices): Likewise.
23814 (determine_versionability): Likewise.
23815 (initialize_node_lattices): Likewise.
23816 (estimate_local_effects): Likewise.
23817 (update_profiling_info): Likewise.
23818 (create_specialized_node): Likewise.
23819 (perhaps_add_new_callers): Likewise.
23820 (decide_about_value): Likewise.
23821 (decide_whether_version_node): Likewise.
23822 (identify_dead_nodes): Likewise.
23823 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
23824 (dump_inline_summary): Likewise.
23825 (estimate_node_size_and_time): Likewise.
23826 (inline_analyze_function): Likewise.
23827 * ipa-inline.c (report_inline_failed_reason): Likewise.
23828 (want_early_inline_function_p): Likewise.
23829 (edge_badness): Likewise.
23830 (update_edge_key): Likewise.
23831 (inline_small_functions): Likewise. Add dumping of order to two other
23833 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
23834 instead of node uids.
23835 (propagate_pure_const): Likewise.
23836 (propagate_pure_const): Likewise.
23837 * ipa-utils.c (dump_cgraph_node_set): Likewise.
23838 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
23839 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
23841 * tree-pretty-print.c (dump_function_header): Likewise.
23842 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
23843 Print symbol order instead of node uids.
23845 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23847 * config/s390/s390.c (s390_register_move_cost): Don't impose the
23848 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
23850 2013-05-15 Richard Biener <rguenther@suse.de>
23852 PR tree-optimization/57275
23853 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
23854 return value for fail to do runtime alias checks for gather loads.
23856 2013-05-15 Jan Hubicka <jh@suse.cz>
23860 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
23861 weakrefs are not external.
23862 (lto_symtab_merge_decls): Fix thinko when dealing with
23863 non-lto_symtab decls.
23864 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
23865 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
23866 * varpool.c (dump_varpool_node): Dump more flags.
23868 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
23870 * config/i386/i386.c (processor_alias_table): Add instruction
23871 FSGSBASE for AMD bdver3 architecture.
23873 2013-05-14 Jakub Jelinek <jakub@redhat.com>
23875 * tree.c (warn_deprecated_use): Print file:line using locus color.
23876 * diagnostic.c (diagnostic_report_current_module): Print file:line
23877 and file:line:column using locus color.
23879 2013-05-14 Mike Stump <mikestump@comcast.net>
23881 * gdbinit.in: Add __null.
23883 2013-05-14 Mike Stump <mikestump@comcast.net>
23885 * recog.h: Rename struct recog_data to Recog_data.
23886 * recog.c: Likewise.
23887 * reload.c (can_reload_into): Likewise.
23888 * config/picochip/picochip.c: Likewise.
23890 2013-05-14 Mike Stump <mikestump@comcast.net>
23892 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
23894 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
23896 * resource.h (struct resources): Remove unch_memory member.
23897 (CLEAR_RESOURCE): Don't clear unch_memory.
23898 * resource.c (mark_referenced_resources): Don't set it.
23899 (mark_set_resources): Likewise.
23900 (mark_target_live_regs): Don't clear it.
23901 (init_resource_info): Likewise.
23902 * reorg.c (resource_conflicts_p): Don't compare it.
23903 (redundant_insn): Don't set it.
23905 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
23907 * emit-rtl.c (next_label): Remove unused function.
23908 (skip_consecutive_labels, link_cc0_insns): Move to ...
23909 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
23910 only place where these functions are used, and make them static.
23912 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
23914 * fold-const.c (fold_negate_expr): Handle vectors.
23915 (fold_truth_not_expr): Make it static.
23916 (fold_invert_truthvalue): New static function.
23917 (invert_truthvalue_loc): Handle vectors. Do not call
23918 fold_truth_not_expr directly.
23919 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
23920 <TRUTH_NOT_EXPR>: Do not cast to boolean.
23921 (fold_comparison): Handle vector constants.
23922 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
23923 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
23924 * tree.h (fold_truth_not_expr): Remove declaration.
23926 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
23928 * config/aarch64/aarch64-simd.md
23929 (aarch64_vcond_internal<mode>): Rename to...
23930 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
23931 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
23932 float modes. Clarify all iterator modes.
23933 (vcond<mode><mode>): Use new name for vcond expanders.
23934 (vcond<v_cmp_result><mode>): Likewise.
23935 (vcondu<mode><mode>: Likewise.
23936 * config/aarch64/iterators.md (VDQF_COND): New.
23938 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
23941 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
23942 variable for the shift amount. Check that we shift by non-negative
23945 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
23948 * config/arm/arm.h (EPILOGUE_USES): Only return true
23949 for LR_REGNUM after epilogue_completed.
23951 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
23953 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
23954 is error_mark_node.
23956 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23959 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
23960 and Solaris 11+/x86 with gld.
23961 * configure: Regenerate.
23963 2013-05-14 Jakub Jelinek <jakub@redhat.com>
23965 * expmed.c (expand_shift_1): Canonicalize rotates by
23966 constant bitsize / 2 to bitsize - 1.
23967 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
23968 case ROTATERT>: Likewise.
23971 2013-05-10 Jakub Jelinek <jakub@redhat.com>
23973 * config/i386/i386.md (rotateinv): New code attr.
23974 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
23975 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
23976 roll $31, %eax, etc.
23978 2013-05-14 Richard Biener <rguenther@suse.de>
23980 PR middle-end/57235
23981 * tree-eh.c (sink_clobbers): Give up for successors with
23982 multiple predecessors and no virtual uses.
23984 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
23986 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
23987 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
23989 2013-05-14 Jakub Jelinek <jakub@redhat.com>
23991 PR middle-end/57251
23992 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
23993 the case when both op0 and op1 have VOIDmode.
23995 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23997 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
23998 in multiply-accumulate mode.
24000 2013-05-13 Guozhi Wei <carrot@google.com>
24002 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
24004 2013-05-13 Kai Tietz <ktietz@redhat.com>
24007 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
24008 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
24009 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
24010 * config/i386/i386.c (ix86_option_override_internal): Likewise.
24011 (ix86_expand_prologue): Likewise.
24012 (ix86_expand_split_stack_prologue): Likewise.
24013 (legitimate_pic_address_disp_p): Likewise.
24014 (legitimize_pic_address): Likewise.
24015 (legitimize_tls_address): Likewise.
24016 (legitimize_pe_coff_symbol): Likewise.
24017 (output_pic_addr_const): Likewise.
24018 (construct_plt_address): Likewise.
24019 (ix86_expand_call): Likewise.
24020 (x86_output_mi_thunk): Likewise.
24021 (x86_function_profiler): Likewise.
24023 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
24025 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
24026 similar switch cases.
24027 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
24028 (aarch64_simd_mov_to_<mode>low): Delete.
24029 (aarch64_simd_mov_to_<mode>high): Delete.
24030 (move_lo_quad_<mode>): Add w<-r alternative.
24031 (aarch64_simd_move_hi_quad_<mode>): Likewise.
24032 (aarch64_simd_mov_from_*): Update type attribute.
24033 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
24036 2013-05-13 Jan Hubicka <jh@suse.cz>
24038 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
24039 * config/i386/i386.c (ix86_compute_frame_layout,
24040 ix86_expand_epilogue, emit_i387_cw_initialization,
24041 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
24042 ix86_local_alignment): Fix use of size/speed predicates.
24044 2013-05-13 Jakub Jelinek <jakub@redhat.com>
24046 PR tree-optimization/45216
24047 PR tree-optimization/57157
24048 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
24049 the (-Y) & (B - 1) variant if OP is |.
24050 * expmed.c (expand_shift_1): For rotations by const0_rtx just
24051 return shifted. Use (-op1) & (prec - 1) as other_amount
24052 instead of prec - op1.
24054 2013-05-13 Martin Jambor <mjambor@suse.cz>
24056 PR middle-end/42371
24057 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
24058 (ipa_constant_data): New type.
24059 (ipa_jump_func): Use ipa_constant_data to hold information about
24060 constant jump functions.
24061 (ipa_get_jf_constant): Adjust to jump function type changes.
24062 (ipa_get_jf_constant_rdesc): New function.
24063 (ipa_param_descriptor): New field controlled_uses.
24064 (ipa_get_controlled_uses): New function.
24065 (ipa_set_controlled_uses): Likewise.
24066 * ipa-ref.h (ipa_find_reference): Declare.
24067 * ipa-prop.c (ipa_cst_ref_desc): New type.
24068 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
24070 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
24071 New parameter cs. Adjust all callers.
24072 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
24073 (remove_described_reference): New function.
24074 (jfunc_rdesc_usable): Likewise.
24075 (try_make_edge_direct_simple_call): Decrement controlled use count,
24076 attempt to remove reference if it hits zero.
24077 (combine_controlled_uses_counters): New function.
24078 (propagate_controlled_uses): Likewise.
24079 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
24080 (ipa_edge_duplication_hook): Duplicate reference descriptions.
24081 (ipa_print_node_params): Print described use counter.
24082 (ipa_write_jump_function): Adjust to jump function type changes.
24083 (ipa_read_jump_function): New parameter CS, pass it to
24084 ipa_set_jf_constant. Adjust caller.
24085 (ipa_write_node_info): Stream controlled use count
24086 (ipa_read_node_info): Likewise.
24087 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
24089 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
24090 count. Remove cloning-added reference if it reaches zero.
24091 * ipa-ref.c (ipa_find_reference): New function.
24093 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24095 * config/i386/i386.c (processor_target_table): Modified default
24096 alignment values for AMD BD and BT architectures.
24098 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
24100 * tree-vect-generic.c (uniform_vector_p): Move ...
24101 * tree.c (uniform_vector_p): ... here.
24102 * tree.h (uniform_vector_p): Declare it.
24103 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
24106 2013-05-13 Jakub Jelinek <jakub@redhat.com>
24108 PR tree-optimization/57230
24109 * tree-ssa-strlen.c (handle_char_store): Record length for
24110 array store from STRING_CST.
24112 PR tree-optimization/57230
24113 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
24116 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
24118 * config/epiphany/epiphany.c (epiphany_init): Check size of
24119 NUM_MODES_FOR_MODE_SWITCHING.
24120 (epiphany_expand_prologue):
24121 Remove CONFIG_REGNUM initial value handling code.
24122 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
24123 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
24124 (emit_set_fp_mode, epiphany_mode_after): Likewise.
24125 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
24126 Don't return 1 for FP_MODE_NONE.
24127 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
24128 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
24129 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
24130 * config/epiphany/epiphany.md (save_config): New pattern.
24132 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
24134 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
24136 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
24138 * config/i386/i386.md (memory): Handle sseishft1.
24139 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
24140 (*vec_extractv2di_1): Ditto.
24142 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
24144 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
24147 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
24149 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
24150 Add mthumb/march=armv7-a multilib.
24151 Add mthumb/march=armv7-r multilib.
24152 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
24154 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
24156 * config/v850/t-rtems: Add more multilibs.
24158 2013-05-10 Richard Biener <rguenther@suse.de>
24160 PR tree-optimization/57214
24161 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
24162 not propagate from SSA names that occur in abnormal PHI nodes.
24164 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
24166 * stor-layout.c (element_precision): New function.
24167 * machmode.h (element_precision): Declare it.
24168 * tree.c (build_minus_one_cst): New function.
24169 (element_precision): Likewise.
24170 * tree.h (build_minus_one_cst): Declare new function.
24171 (element_precision): Likewise.
24172 * fold-const.c (operand_equal_p): Use element_precision.
24173 (fold_binary_loc): Handle vector types.
24174 * convert.c (convert_to_integer): Use element_precision.
24175 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
24178 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
24180 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
24181 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
24182 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
24183 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
24184 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
24185 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
24186 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
24187 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
24188 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
24189 (Uuw8): New constraints.
24190 (Usb4): Move into alphabetical order.
24191 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
24192 (sd8_operand, ub8_operand, uw8_operand): New predicates.
24193 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
24194 previously unnamed patterns.
24195 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
24196 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
24197 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
24198 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
24199 of set_attr_alternative/if_then_else. Use extended_mips16 instead
24200 of specific lengths.
24202 2013-05-10 Jakub Jelinek <jakub@redhat.com>
24204 * config/i386/i386.md (rotateinv): New code attr.
24205 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
24206 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
24207 roll $31, %eax, etc.
24209 PR tree-optimization/45216
24210 PR tree-optimization/57157
24211 * tree-ssa-forwprop.c (simplify_rotate): New function.
24212 (ssa_forward_propagate_and_combine): Call it.
24214 2013-05-10 Richard Biener <rguenther@suse.de>
24216 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
24217 disable peeling when we version for aliasing.
24218 (vector_alignment_reachable_p): Honor explicit user alignment.
24219 (vect_supportable_dr_alignment): Likewise.
24220 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
24221 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
24222 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
24223 then peeling to arrange for the cost-model check to come first.
24225 2013-05-10 Alan Modra <amodra@gmail.com>
24227 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
24228 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
24229 * configure: Regenerate.
24231 2013-05-10 Alan Modra <amodra@gmail.com>
24234 * varasm.c (default_elf_select_section): Move !DECL_P check..
24235 (get_named_section): ..to here before calling get_section_name.
24237 (default_section_type_flags): Add DECL_P check.
24238 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
24239 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
24241 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
24243 * config/epiphany/epiphany.c (epiphany_expand_prologue):
24244 When using gen_stack_adjust_str with a register offset, add a
24245 REG_FRAME_RELATED_EXPR note.
24247 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
24249 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
24250 (*vec_extractv4si_zext_mem): Ditto.
24251 (*vec_extractv2di): Add 0->x and x->x alternatives.
24252 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
24253 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
24255 2013-05-09 Jason Merrill <jason@redhat.com>
24257 N3639 C++1y VLA support
24258 * gimplify.c (gimplify_vla_decl): Don't touch an existing
24261 * tree.c (build_constructor_va): New.
24262 * tree.h: Declare it.
24264 2013-05-09 Martin Jambor <mjambor@suse.cz>
24267 * gimple-fold.c (canonicalize_constructor_val): Call
24268 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
24270 2013-05-09 Jan Hubicka <jh@suse.cz>
24271 Richard Biener <rguenther@suse.de>
24274 * symtab.c (symtab_make_decl_local): Do not add private names.
24276 2013-05-09 Jan Hubicka <jh@suse.cz>
24279 * symtab.c (insert_to_assembler_name_hash): Handle clones.
24280 (unlink_from_assembler_name_hash): Likewise.
24281 (symtab_prevail_in_asm_name_hash, symtab_register_node,
24282 symtab_unregister_node, symtab_initialize_asm_name_hash,
24283 change_decl_assembler_name): Update.
24285 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
24287 * config/aarch64/aarch64.md: New movtf split.
24288 (*movtf_aarch64): Update.
24289 (aarch64_movdi_tilow): Handle TF modes and rename to
24290 aarch64_movdi_<mode>low.
24291 (aarch64_movdi_tihigh): Handle TF modes and rename to
24292 aarch64_movdi_<mode>high
24293 (aarch64_movtihigh_di): Handle TF modes and rename to
24294 aarch64_mov<mode>high_di
24295 (aarch64_movtilow_di): Handle TF modes and rename to
24296 aarch64_mov<mode>low_di
24297 (aarch64_movtilow_tilow): Remove spurious whitespace.
24298 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
24300 (aarch64_print_operand): Update.
24302 2013-05-09 Alan Modra <amodra@gmail.com>
24304 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
24306 * configure: Regenerate.
24308 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
24310 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
24311 splitter preparation statements.
24312 * config/i386/sse.md (*vec_extract* splitters): Ditto.
24313 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
24316 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24318 * gimple-ssa-strength-reduction.c (count_candidates): Change
24319 return value to int.
24320 (analyze_candidates_and_replace): Change type of length to int.
24322 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
24324 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
24325 (*vec_extract<mode>): Use VI12_128 mode iterator.
24326 (*vec_extract<mode>_mem): Ditto.
24327 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
24330 2013-05-08 Diego Novillo <dnovillo@google.com>
24335 2012-08-17 Diego Novillo <dnovillo@google.com>
24338 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
24339 * config.in: Regenerate.
24340 * configure: Regenerate.
24341 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
24343 2013-05-08 Jan Hubicka <jh@suse.cz>
24346 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
24347 * cgraph.h (symtab_node_base): Add unique_name.
24348 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24349 input_overwrite_node, input_varpool_node): Stream unique_name.
24350 * cgraphclones.c (cgraph_create_virtual_clone,
24351 cgraph_function_versioning): Set unique_name.
24352 * ipa.c (function_and_variable_visibility): Set unique_name.
24354 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24356 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
24357 (alloc_cand_and_find_basis): Restrict conditional candidate
24358 processing to CAND_MULTs.
24360 2013-05-08 Jan Hubicka <jh@suse.cz>
24363 lto-symtab.c (lto_symtab_symbol_p): New function.
24364 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
24365 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
24366 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
24367 Skip static symbols.
24369 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
24371 PR tree-optimization/57200
24372 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
24373 Only call inform if the preceding warning_at returns true.
24375 2013-05-07 Han Shen <shenhan@google.com>
24377 * cfgexpand.c (record_or_union_type_has_array_p): New function.
24378 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
24379 * common.opt (fstack-protector-strong): New option.
24380 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
24381 * doc/invoke.texi (Optimization Options): Document
24382 "-fstack-protector-strong".
24383 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
24385 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
24387 * config/mips/mips.c (mips_machine_reorg2): Return 0.
24389 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
24391 * ira.c (update_equiv_regs): Add insn having equiv memory even if
24392 it is not lhs of the insn.
24393 (setup_reg_equiv): Remove insn having equiv memory which it is not
24395 * lra-constraints.c (process_address): Try to improve generation
24396 code for address base + disp.
24397 (lra_constraints): Make correct the code for checking insn setting
24398 up backward equivalence. Remove insn only if it is in the init
24400 * lra-eliminations.c (update_reg_eliminate): Change return value.
24401 (lra_eliminate): Use the result.
24403 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
24405 * config/i386/sse.md (ssescalarnummask): New mode attribute.
24406 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
24407 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
24408 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
24409 register target operands.
24410 (*vec_extractv8hi_sse2): New pattern.
24411 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
24412 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
24413 (*vec_extract<mode>_mem): New insn and split pattern.
24415 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
24417 * config/arm/arm.c (arm_asan_shadow_offset): New function.
24418 (TARGET_ASAN_SHADOW_OFFSET): Define.
24419 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
24420 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
24422 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24424 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
24425 (incr_vec_index): Return -1 if increment not found.
24426 (create_add_on_incoming_edge): Assert if increment not found.
24427 (record_increment): Limit number of increments recorded.
24428 (all_phi_incrs_profitable): Return false if an increment not found.
24429 (replace_profitable_candidates): Don't process increments that were
24431 (analyze_candidates_and_replace): Limit size of incr_vec.
24433 2013-05-07 Richard Biener <rguenther@suse.de>
24435 * calls.c (special_function_p): setjmp-like functions are leaf.
24436 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
24437 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
24439 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
24441 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
24442 (aarch64_simd_mov<mode>): New expander.
24443 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
24444 (aarch64_simd_mov_to_<mode>high): Likewise.
24445 (aarch64_simd_mov_from_<mode>low): Likewise.
24446 (aarch64_simd_mov_from_<mode>high): Likewise.
24447 (aarch64_dup_lane<mode>): Update.
24448 (aarch64_dup_lanedi): New instruction pattern.
24449 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
24450 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
24452 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24454 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
24455 (replace_mult_candidate): Remove unnecessary argument; remove
24456 unnecessary parameter from call to introduce_cast_before_cand.
24457 (replace_unconditional_candidate): Remove unnecessary parameter
24458 from call to replace_mult_candidate.
24459 (replace_conditional_candidate): Likewise.
24460 (insert_initializers): Use make_temp_ssa_name.
24461 (introduce_cast_before_cand): Remove unnecessary argument; use
24462 make_temp_ssa_name.
24463 (replace_one_candidate): Remove unnecessary argument; remove
24464 unnecessary parameter from calls to introduce_cast_before_cand.
24465 (replace_profitable_candidates): Remove unnecessary parameters
24466 from calls to replace_one_candidate.
24468 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24470 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
24471 phi def as possibly hiding a basis for a CAND_ADD whose operands
24472 have been commuted in the analysis.
24473 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
24475 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24477 * config/aarch64/aarch64.md
24478 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
24479 shift value between 0-4.
24481 2013-05-07 Richard Biener <rguenther@suse.de>
24483 * double-int.h (rshift): New overload.
24484 * double-int.c (rshift): New function.
24485 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
24486 (create_reference_ops_from_ref): Remove.
24487 (vn_reference_insert): Use shared ops for constructing the
24488 reference and copy it.
24490 2013-05-07 Richard Biener <rguenther@suse.de>
24492 PR middle-end/57190
24493 * tree-eh.c (sink_clobbers): Properly propagate
24494 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
24496 2013-05-07 Jakub Jelinek <jakub@redhat.com>
24498 PR tree-optimization/57149
24499 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
24500 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
24501 collect_phi_def_edges, execute_late_warn_uninitialized): Use
24502 uninit_undefined_value_p instead of ssa_undefined_value_p.
24505 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
24506 for modifier == EXPAND_INITIALIZER.
24508 2013-05-07 Anton Blanchard <anton@samba.org>
24510 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
24511 for powerpc64 little endian.
24512 * configure: Regenerate.
24514 2013-05-06 Graham Stott <grahams@btinternet.com>
24516 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
24517 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
24518 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
24519 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
24521 2013-05-06 Graham Stott <grahams@btinternet.com>
24523 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
24524 codes which allow non-lvalues.
24526 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
24528 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
24529 components are all 1s.
24530 (integer_minus_onep): New function.
24531 * tree.h (integer_minus_onep): Declare it.
24532 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
24533 integer_minus_onep instead of integer_all_onesp.
24535 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24538 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
24539 variations of these patterns.
24541 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
24543 * config/i386/i386.md (isa): Add x64_sse4 member.
24544 (enabled): Handle x64_sse4.
24545 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
24546 instruction for 64bit SSE4_1 targets. Update insn attributes.
24547 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
24548 instruction for SSE4_1 targets. Update insn attributes.
24549 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
24550 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
24551 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
24553 (*vec_extractv4si): Rename from *sse4_1_pextrd.
24554 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
24555 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
24557 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24560 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
24562 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
24564 * final.c (do_assembler_dialects): Don't handle curly braces and
24565 vertical bar escaped by % as dialect delimiters.
24566 (output_asm_insn): Print curly braces and vertical bar if escaped
24567 by % and ASSEMBLER_DIALECT defined.
24568 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
24569 * doc/tm.texi: Regenerated.
24571 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
24573 * config/mips/mips.c: Include tree-pass.h.
24574 (mips_reorg): Split in pre- and post-dbr_schedule parts.
24575 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
24576 (pass_mips_machine_reorg2): New machine specific pass.
24577 (insert_pass_mips_machine_reorg2): New pass plugin definition.
24578 (mips_option_override): Register the new pass.
24579 * rtl.h (cleanup_barriers): Remove prototype.
24580 (dbr_schedule): Likewise.
24581 * jump.c (cleanup_barriers): Make static.
24582 * reorg.c (dbr_schedule): Likewise.
24584 2013-05-06 Richard Biener <rguenther@suse.de>
24586 PR tree-optimization/57185
24587 * tree-parloops.c (add_field_for_reduction): Handle anonymous
24588 SSA names properly.
24590 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
24593 * config/i386/i386.c (add_parameter_dependencies): Add dependence
24594 between "first_arg" and "insn", not "last" and "insn".
24596 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24598 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
24599 (find_candidates_in_block): Re-enable slsr_process_phi.
24600 (create_phi_basis): Fix double counting of candidate adjustment.
24602 2013-05-06 Richard Biener <rguenther@suse.de>
24604 PR middle-end/57147
24605 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
24606 the edge is also fallthru, preserve it and just clear the
24608 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
24609 also complex, preserve that and just clear the fallthru flag.
24610 * tree-inline.c (update_ssa_across_abnormal_edges): Also
24611 update virtual operands.
24613 2013-05-06 Alan Modra <amodra@gmail.com>
24615 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
24616 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
24617 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
24618 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
24619 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
24620 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
24622 2013-05-06 Alan Modra <amodra@gmail.com>
24624 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
24625 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
24626 (DEFAULT_ASM_ENDIAN): Define.
24627 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
24628 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
24629 Update -K PIC clause from sysv4.h.
24630 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
24631 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
24633 2013-05-06 Alan Modra <amodra@gmail.com>
24635 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
24636 twice for little-endian.
24637 (ashrdi3_no_power, ashrdi3): Support little-endian.
24639 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24642 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
24643 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
24645 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
24646 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
24647 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
24650 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
24651 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24653 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
24654 * config/pa/pa.opt: Make mbig-switch a no-op.
24655 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
24656 (CASE_VECTOR_MODE): Always return SImode.
24657 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
24658 for the !TARGET_BIG_SWITCH case.
24659 * config/pa/pa-linux.h: Likewise.
24660 * config/pa/pa-openbsd.h: Likewise.
24661 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
24662 * config/pa/pa.md (short_jump): Remove define_insn.
24663 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
24664 (casesi0): Remove define_insn.
24665 (type): Remove btable_branch.
24666 (pa_combine_type): Likewise.
24667 (in_nullified_branch_delay): Likewise.
24668 (in_call_delay): Likewise.
24669 (define_delay): Likewise.
24670 (define_insn_reservation "Z3"): Likewise.
24671 (define_insn_reservation "Z4"): Likewise.
24672 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
24673 (pa_adjust_insn_length): Remove adjustment for btable branches.
24674 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
24677 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
24679 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
24680 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
24681 Add m->r,x alternatives.
24682 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
24683 splitters using SWI48x mode iterator.
24684 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
24685 TARGET_64BIT. Add m->x alternative.
24686 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
24687 Add o->x alternative. Enable for TARGET_SSE.
24688 (sse_storeq): Remove expander.
24689 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
24690 with memory input operand.
24691 (*vec_extractv2di_1 splitter): New.
24692 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
24693 * config/i386/i386.md (ssevecmodelower): New mode attribute.
24695 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24697 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
24698 (INT_LOWPART): Delete.
24699 (extract_MB): Adjust.
24700 (extract_ME): Adjust.
24701 (print_operand): Adjust.
24703 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24705 * config/rs6000/predicates.md (reg_or_add_cint_operand,
24706 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
24707 (reg_or_logical_cint_operand, easy_fp_constant,
24708 logical_const_operand): Delete "CONST_DOUBLE" case.
24709 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
24710 "HOST_BITS_PER_WIDE_INT == 64" test.
24711 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
24712 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
24713 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
24714 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
24716 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
24717 CONST_DOUBLE DImode/VOIDmode case.
24718 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
24719 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
24720 CONST_DOUBLE VOIDmode case.
24721 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
24722 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
24723 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
24724 Delete CONST_DOUBLE case.
24725 (splitters for mov FMOVE64 const_double): Delete
24726 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
24727 "HOST_BITS_PER_WIDE_INT >= 64" test.
24728 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
24730 (mov DI const_double): Delete.
24732 2013-05-04 Jakub Jelinek <jakub@redhat.com>
24734 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
24735 on op shows all bits zero in mode of a lowpart subreg, return zero.
24737 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24740 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
24741 to save TFmode registers and DImode to save TImode registers for
24742 caller save operations.
24743 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
24744 mark being partially clobbered since they only use the first
24747 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
24748 and TDmode only use the upper 64-bits of each VSX register.
24750 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24752 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
24753 (find_candidates_in_block): Disable slsr_process_phi.
24755 2013-05-03 Guozhi Wei <carrot@google.com>
24757 * coverage.c (coverage_obj_init): Move the construction of gcov
24759 (build_init_ctor): ... here.
24761 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24763 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
24764 (slsr_cand_d): Redefine def_phi.
24765 (stride_status, phi_adjust_status, count_phis_status): New enums.
24766 (find_phi_def): New.
24767 (find_basis_for_base_expr): New.
24768 (find_basis_for_candidate): Handle hidden bases.
24769 (alloc_cand_and_find_basis): Handle phi candidates.
24770 (slsr_process_phi): New.
24771 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
24772 (create_mul_imm_cand): Likewise.
24773 (create_add_ssa_cand): Exclude phi base candidates.
24774 (create_add_imm_cand): Likewise.
24775 (slsr_process_cast): Likewise.
24776 (slsr_process_copy): Likewise.
24777 (find_candidates_in_block): Handle phi candidates.
24778 (dump_candidate): Likewise.
24779 (unconditional_cands): Delete.
24780 (unconditional_cands_with_known_stride_p): Delete.
24781 (phi_dependent_cand_p): New.
24782 (cand_increment): Handle phi-dependent candidates.
24783 (replace_dependent): Delete.
24784 (replace_mult_candidate): New.
24785 (replace_unconditional_candidate): New.
24786 (incr_vec_index): Move to avoid forward reference.
24787 (create_add_on_incoming_edge): New.
24788 (create_phi_basis): New.
24789 (replace_dependents): Delete.
24790 (replace_conditional_candidate): New.
24791 (phi_add_costs): New.
24792 (replace_uncond_cands_and_profitable_phis): New.
24793 (record_increment): Handle phi adjustments.
24794 (record_phi_increments): New.
24795 (record_increments): Handle phi adjustments.
24796 (phi_incr_cost): New.
24797 (lowest_cost_path): Handle phis.
24798 (total_savings): Likewise.
24799 (analyze_increments): Likewise.
24800 (ncd_with_phi): New.
24801 (ncd_of_cand_and_phis): New.
24802 (nearest_common_dominator_for_cands): Handle phi increments.
24803 (all_phi_incrs_profitable): New.
24804 (replace_profitable_candidates): Handle phi-dependent candidates.
24805 (analyze_candidates_and_replace): Likewise.
24807 2013-05-03 Teresa Johnson <tejohnson@google.com>
24810 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
24811 do not exceed REG_BR_PROB_BASE.
24813 2013-05-03 Jeff Law <law@redhat.com>
24815 PR tree-optimization/57144
24816 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
24817 operand of the condition will bit into the new type when eliminating
24818 a cast feeding a condition.
24820 2013-05-03 Jakub Jelinek <jakub@redhat.com>
24822 PR rtl-optimization/57130
24823 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
24824 of COMPARE as in_code to the recursive call if needed.
24826 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
24828 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
24829 (enabled): Handle new members.
24830 * config/i386/sse.md (*vec_concatv2si): Merge from
24831 *vec_concatv2si_sse2 and vec_concatv2si_sse.
24832 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
24834 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
24836 PR tree-optimization/57027
24837 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
24838 for fnms opportunity, check we got the prerequisite kind
24839 of tree / gimple before using accessor functions.
24841 2013-05-03 Richard Biener <rguenther@suse.de>
24843 * double-int.h (lshift): New overload without precision
24844 and arith argument.
24845 (operator *=, operator +=, operator -=): Move ...
24846 * double-int.c (operator *=, operator +=, operator -=): ... here
24847 and implement more efficiently.
24848 (mul_double_with_sign): Remove.
24849 (lshift_double): Adjust to take unsinged shift argument, push
24850 dispatching code to callers.
24851 (mul_double_wide_with_sign): Add early out for callers that
24852 are not interested in high parts or overflow.
24853 (lshift): New function.
24854 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
24855 dispatch code here.
24856 (lrotate, rrotate): Use logical shifts.
24857 * expr.c (get_inner_reference): Use lshift.
24858 * fixed-value.c (do_fixed_divide): Likewise.
24859 * tree-dfa.c (get_ref_base_and_extent): Likewise.
24860 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24861 (indirect_refs_may_alias_p): Likewise.
24862 (stmt_kills_ref_p_1): Likewise.
24864 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
24866 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
24868 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
24870 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
24871 scalar form of FABD instruction.
24873 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
24875 * lra-constraints.c (process_alt_operands): Add checking alt
24876 number to choose the best alternative.
24878 2013-05-02 Richard Biener <rguenther@suse.de>
24880 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
24881 bitmap and its handling.
24882 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
24884 2013-05-02 Richard Biener <rguenther@suse.de>
24886 PR middle-end/57140
24887 * tree-inline.c (copy_loops): Properly handle removed loops.
24888 (copy_cfg_body): Mark destination loops for fixup if source
24889 loops needed fixup.
24891 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
24894 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
24895 generating simple_return for naked functions.
24897 2013-05-02 Martin Jambor <mjambor@suse.cz>
24899 PR middle-end/56988
24900 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
24901 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
24903 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
24904 ipa_agg_replacement_value structures.
24905 (known_aggs_to_agg_replacement_list): Likewise.
24906 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
24907 (read_agg_replacement_chain): Likewise.
24908 (ipcp_transform_function): Also check that by_ref flags match.
24910 2013-05-02 Richard Biener <rguenther@suse.de>
24912 * graphds.h (struct graph): Add obstack member.
24913 * graphds.c (new_graph): Initialize obstack and allocate
24915 (add_edge): Allocate edge from the obstack.
24916 (free_graph): Free the obstack instead of all edges and vertices.
24918 2013-05-02 Teresa Johnson <tejohnson@google.com>
24920 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
24922 * cfg.c (update_bb_profile_for_threading): Ditto.
24923 * tree-inline.c (copy_bb): Ditto.
24924 (copy_edges_for_bb): Ditto.
24925 (initialize_cfun): Ditto.
24926 (copy_cfg_body): Ditto.
24927 (expand_call_inline): Ditto.
24928 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
24929 (estimate_node_size_and_time): Ditto.
24930 (inline_merge_summary): Ditto.
24931 * cgraphclones.c (cgraph_clone_edge): Ditto.
24932 (cgraph_clone_node): Ditto.
24933 * sched-rgn.c (compute_dom_prob_ps): Ditto.
24934 (compute_trg_info): Ditto.
24936 2013-05-02 Ian Bolton <ian.bolton@arm.com>
24938 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
24939 S reg when fp attribute set.
24940 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
24942 2013-05-02 Ian Bolton <ian.bolton@arm.com>
24944 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
24946 (*and_one_cmplsi3_compare0_uxtw): Likewise.
24947 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
24948 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
24950 2013-05-02 Richard Biener <rguenther@suse.de>
24952 * tree-scalar-evolution.c (scev_info_hasher): Remove.
24953 (struct instantiate_cache_entry): New type.
24954 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
24955 (struct instantiate_cache_type): New type.
24956 (set_instantiated_value, get_instantiated_value): Remove.
24957 (get_instantiated_value_entry): New function.
24958 (instantiate_scev_name): Use the new cache and adjust.
24959 (instantiate_scev_poly): Adjust.
24960 (instantiate_scev_binary): Likewise.
24961 (instantiate_array_ref): Likewise.
24962 (instantiate_scev_convert): Likewise.
24963 (instantiate_scev_not): Likewise.
24964 (instantiate_scev_3): Likewise.
24965 (instantiate_scev_2): Likewise.
24966 (instantiate_scev_r): Likewise.
24967 (instantiate_scev): Likewise.
24968 (resolve_mixers): Likewise.
24970 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
24973 * lra-constraints.c (best_small_class_operands_num): Remove.
24974 (process_alt_operands): Remove small_class_operands_num. Take
24975 small classes operands into losers and only if the operand is not
24976 matched. Modify debugging output.
24977 (curr_insn_transform): Remove best_small_class_operands_num.
24980 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
24982 * config/aarch64/aarch64-builtins.c
24983 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
24984 * config/aarch64/aarch64-simd-builtins.def
24985 (reduc_splus_): Add new modes.
24986 (reduc_uplus_): New.
24987 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
24988 (reduc_uplus_v4sf): Likewise.
24989 (reduc_splus_v4sf): Likewise.
24990 (aarch64_addv<mode>): Likewise.
24991 (reduc_uplus_<mode>): Likewise.
24992 (reduc_splus_<mode>): Likewise.
24993 (aarch64_addvv2di): Likewise.
24994 (reduc_uplus_v2di): Likewise.
24995 (reduc_splus_v2di): Likewise.
24996 (aarch64_addvv2si): Likewise.
24997 (reduc_uplus_v2si): Likewise.
24998 (reduc_splus_v2si): Likewise.
24999 (reduc_<sur>plus_<mode>): New.
25000 (reduc_<sur>plus_v2di): Likewise.
25001 (reduc_<sur>plus_v2si): Likewise.
25002 (reduc_<sur>plus_v4sf): Likewise.
25003 (aarch64_addpv4sf): Likewise.
25004 * config/aarch64/arm_neon.h
25005 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
25006 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
25007 add UNSPEC_SADDV, UNSPEC_UADDV.
25009 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
25011 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25013 * config/aarch64/arm_neon.h
25014 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
25016 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25018 * config/aarch64/aarch64-builtins
25019 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
25021 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25023 * config/aarch64/aarch64-simd-builtins.def
25024 (reduc_smax_): New.
25025 (reduc_smin_): Likewise.
25026 (reduc_umax_): Likewise.
25027 (reduc_umin_): Likewise.
25028 (reduc_smax_nan_): Likewise.
25029 (reduc_smin_nan_): Likewise.
25032 (smax): Update for V2SF, V4SF and V2DF modes.
25035 (smin_nan): Likewise.
25036 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
25037 (<su><maxmin><mode>3): ...This, refactor.
25038 (s<maxmin><mode>3): New.
25039 (<maxmin_uns><mode>3): Likewise.
25040 (reduc_<maxmin_uns>_<mode>): Refactor.
25041 (reduc_<maxmin_uns>_v4sf): Likewise.
25042 (reduc_<maxmin_uns>_v2si): Likewise.
25043 (aarch64_<fmaxmin><mode>: Remove.
25044 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
25046 (vmin<q>_f<32,64>): Likewise.
25047 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
25049 (su): Add mappings for smax, smin, umax, umin.
25051 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
25052 (FMAXMIN): Rename as...
25053 (FMAXMIN_UNS): ...This.
25055 (fmaxminv): Likewise.
25056 (fmaxmin): Likewise.
25058 (maxmin_uns_op): Likewise.
25060 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25062 * config/aarch64/arm_neon.h
25063 (vac<ge, gt><sd>_f<32, 64>): Rename to...
25064 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
25065 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
25067 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25069 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
25070 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
25072 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25074 * config/aarch64/aarch64-simd.md
25075 (vcond<mode>_internal): Handle special cases for constant masks.
25076 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
25077 (vcondu<mode><mode>): Likewise.
25078 (vcond<v_cmp_result><mode>): New.
25080 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25082 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
25083 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
25084 * config/aarch64/aarch64-simd-builtins.def
25085 (cmeq): Update to BUILTIN_VALLDI.
25090 * config/aarch64/arm_neon.h
25091 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
25092 to builtins or C as appropriate.
25094 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25096 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
25098 (cmhi): Rename to...
25100 * config/aarch64/aarch64-simd.md
25101 (simd_mode): Add SF.
25102 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
25103 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
25104 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
25105 (cstore<mode>_neg): ...This.
25106 * config/aarch64/iterators.md
25108 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
25109 (COMPARISONS): New.
25110 (UCOMPARISONS): Likewise.
25111 (optab): Add missing comparisons.
25117 (VCMP_S): Likewise.
25118 (VCMP_U): Likewise.
25119 (V_cmp_result): Add DF, SF modes.
25120 (v_cmp_result): Likewise.
25122 (vmtype): Likewise.
25123 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
25125 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
25127 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
25128 define_insn to define_insn_and_split.
25129 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
25130 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
25131 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
25132 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
25133 (thumb2_negscc): Likewise.
25135 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
25137 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
25139 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
25141 * config/arm/thumb2.md: Remove trailing whitespaces.
25143 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25145 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
25146 Use gen_int_mode rather than GEN_INT.
25148 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
25150 * value-prof.c (stream_in_histogram_value): Remove the strayed
25153 2013-04-30 Richard Biener <rguenther@suse.de>
25155 PR middle-end/57122
25156 * cfghooks.c (split_edge): Properly check for the loop latch edge.
25158 2013-04-30 Richard Biener <rguenther@suse.de>
25160 PR middle-end/57107
25161 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
25163 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
25165 PR rtl-optimization/56957
25166 PR rtl-optimization/57105
25167 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
25168 variable. Use just INSN_UID for determining whether an insn
25169 should be only disconnected from the insn stream.
25170 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
25172 2013-04-30 Jakub Jelinek <jakub@redhat.com>
25174 PR tree-optimization/57104
25175 * tsan.c (instrument_expr): Don't instrument accesses to
25176 DECL_HARD_REGISTER VAR_DECLs.
25178 2013-04-30 Richard Biener <rguenther@suse.de>
25180 * function.h (loops_for_fn): New inline function.
25181 (set_loops_for_fn): Likewise.
25182 * cfgloop.h (place_new_loop): Add struct function parameter.
25183 (get_loop): Likewise.
25184 (get_loops): Likewise.
25185 (number_of_loops): Likewise.
25186 (fel_next): Adjust.
25187 (fel_init): Likewise.
25188 * cfg.c (get_loop_copy): Adjust.
25189 * cfgloop.c (flow_loops_dump): Likewise.
25190 (record_loop_exits): Likewise.
25191 (verify_loop_structure): Likewise.
25192 * cfgloopanal.c (mark_irreducible_loops): Likewise.
25193 (estimate_reg_pressure_cost): Likewise.
25194 (mark_loop_exit_edges): Likewise.
25195 * cfgloopmanip.c (place_new_loop): Likewise.
25196 (add_loop): Likewise.
25197 (duplicate_loop): Likewise.
25198 * graph.c (draw_cfg_nodes): Likewise.
25199 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
25200 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
25201 (extract_affine_chrec): Likewise.
25202 (build_scop_iteration_domain): Likewise.
25203 * graphite.c (graphite_initialize): Likewise.
25204 * ira-build.c (create_loop_tree_nodes): Likewise.
25205 (more_one_region_p): Likewise.
25206 (rebuild_regno_allocno_maps): Likewise.
25207 (mark_loops_for_removal): Likewise.
25208 (mark_all_loops_for_removal): Likewise.
25209 (remove_unnecessary_regions): Likewise.
25210 (ira_build): Likewise.
25211 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
25212 * loop-init.c (fix_loop_structure): Likewise.
25213 (gate_rtl_move_loop_invariants): Likewise.
25214 (gate_rtl_unswitch): Likewise.
25215 (gate_rtl_unroll_and_peel_loops): Likewise.
25216 (rtl_doloop): Likewise.
25217 * lto-streamer-in.c (input_cfg): Likewise.
25218 * lto-streamer-out.c (output_cfg): Likewise.
25219 * modulo-sched.c (sms_schedule): Likewise.
25220 * predict.c (tree_estimate_probability): Likewise.
25221 (tree_estimate_probability_driver): Likewise.
25222 (estimate_loops): Likewise.
25223 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
25224 (move_sese_region_to_fn): Likewise.
25225 (debug_loop_num): Likewise.
25226 * tree-chrec.c (chrec_evaluate): Likewise.
25227 (hide_evolution_in_other_loops_than_loop): Likewise.
25228 (chrec_component_in_loop_num): Likewise.
25229 (reset_evolution_in_loop): Likewise.
25230 (evolution_function_is_invariant_rec_p): Likewise.
25231 * tree-if-conv.c (main_tree_if_conversion): Likewise.
25232 * tree-inline.c (copy_loops): Likewise.
25233 (copy_cfg_body): Likewise.
25234 (tree_function_versioning): Likewise.
25235 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
25236 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25238 (add_to_evolution_1): Likewise.
25239 (scev_const_prop): Likewise.
25240 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
25241 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
25242 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
25243 (tree_ssa_lim_initialize): Likewise.
25244 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
25245 (verify_loop_closed_ssa): Likewise.
25246 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
25247 (tree_ssa_loop_im): Likewise.
25248 (tree_ssa_loop_unswitch): Likewise.
25249 (tree_vectorize): Likewise.
25250 (check_data_deps): Likewise.
25251 (tree_ssa_loop_ivcanon): Likewise.
25252 (tree_ssa_loop_bounds): Likewise.
25253 (tree_complete_unroll): Likewise.
25254 (tree_complete_unroll_inner): Likewise.
25255 (tree_parallelize_loops): Likewise.
25256 (tree_ssa_loop_prefetch): Likewise.
25257 (tree_ssa_loop_ivopts): Likewise.
25258 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
25259 * tree-vectorizer.c (vectorize_loops): Likewise.
25261 2013-04-29 Mike Frysinger <vapier@gentoo.org>
25263 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
25264 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
25265 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
25266 with EABI_LINK_SPEC.
25268 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
25271 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
25274 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
25277 * lra-constraints.c (process_alt_operands): Discourage a bit more
25278 using memory for pseudos. Print cost dump for alternatives.
25279 Modify cost values for conflicts with early clobbers.
25280 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
25282 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
25285 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
25287 2013-04-29 Ian Bolton <ian.bolton@arm.com>
25289 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
25290 from/to S register.
25291 (movdi_aarch64): Support LDR/STR from/to D register.
25293 2013-04-29 Ian Bolton <ian.bolton@arm.com>
25295 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
25296 or higher by default.
25298 2013-04-29 Richard Biener <rguenther@suse.de>
25300 PR middle-end/57075
25301 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
25302 even if not adding abnormal edges for calls that can make
25305 2013-04-29 Richard Biener <rguenther@suse.de>
25307 PR middle-end/57103
25308 * tree-cfg.c (move_stmt_op): Fix condition under which to update
25310 (move_stmt_r): Remove redundant checking.
25312 2013-04-29 Teresa Johnson <tejohnson@google.com>
25315 * basic-block.h (apply_scale): New function.
25316 (apply_probability): Use apply_scale.
25317 * gimple-streamer-in.c (input_bb): Ditto.
25318 * lto-streamer-in.c (input_cfg): Ditto.
25319 * lto-cgraph.c (merge_profile_summaries): Ditto.
25320 * tree-optimize.c (execute_fixup_cfg): Ditto.
25321 * tree-inline.c (copy_bb): Update comment to use apply_scale.
25322 (copy_edges_for_bb): Ditto.
25323 (copy_cfg_body): Ditto.
25325 2013-04-29 Tom de Vries <tom@codesourcery.com>
25327 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
25328 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
25329 (tail_merge_optimize): Handle current_loops == NULL.
25331 2013-04-26 Jeff Law <law@redhat.com>
25333 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
25334 (simplify_cond_using_ranges): Generalize code to simplify
25335 COND_EXPRs where one argument is a constant and the other
25336 is an SSA_NAME created by an integral type conversion.
25338 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25340 * config/arm/arm.md (store_minmaxsi): Use only when
25341 optimize_insn_for_size_p.
25343 2013-04-29 Christian Bruel <christian.bruel@st.com>
25346 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
25348 2013-04-29 Richard Biener <rguenther@suse.de>
25350 PR middle-end/57089
25351 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
25352 loop tree make sure to schedule a fixup for the child as well.
25353 (expand_omp_for_generic): Properly add loops.
25354 (expand_omp_for_static_nochunk): Likewise.
25355 (expand_omp_for_static_chunk): Likewise.
25356 (expand_omp_for): For the degenerate case fixup loops.
25357 (expand_omp_sections): Fix default bb placement in loops.
25358 (expand_omp_atomic_pipeline): Properly add loops.
25360 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25362 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
25364 2013-04-29 Tom de Vries <tom@codesourcery.com>
25366 * tree-ssa-tail-merge.c: Update header comment.
25368 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25370 * config/aarch64/arm_neon.h
25371 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
25372 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
25373 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
25374 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
25375 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
25376 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
25377 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
25378 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
25380 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25382 * config/aarch64/aarch64-simd.md
25383 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
25384 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
25385 fix_trunc, fixuns_trunc.
25386 (ftrunc<VDQF:mode>2): New.
25387 * config/aarch64/iterators.md (optab): Add fix, fixuns.
25388 (fix_trunc_optab): New.
25390 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25392 * config/aarch64/aarch64-builtins.c
25393 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
25394 iceilf, lround, iroundf.
25396 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
25399 * config/i386/i386.h (enum ix86_tune_indices)
25400 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
25401 New, split from X86_TUNE_INTER_UNIT_MOVES.
25402 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
25403 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
25404 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
25405 (TARGET_INTER_UNIT_MOVES): Remove.
25406 * config/i386/i386.c (initial_ix86_tune_features): Update.
25407 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
25408 (ix86_expand_convert_uns_didf_sse): Use
25409 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
25410 (ix86_expand_vector_init_one_nonzero): Ditto.
25411 (ix86_expand_vector_init_interleave): Ditto.
25412 (inline_secondary_memory_needed): Return true for moves from SSE class
25413 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
25414 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
25415 * config/i386/constraints.md (Yi, Ym): Depend on
25416 TARGET_INTER_UNIT_MOVES_TO_VEC.
25417 (Yj, Yn): New constraints.
25418 * config/i386/i386.md (*movdi_internal): Change constraints of
25419 operand 1 from Yi to Yj and from Ym to Yn.
25420 (*movsi_internal): Ditto.
25421 (*movdf_internal): Ditto.
25422 (*movsf_internal): Ditto.
25423 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
25424 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
25425 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
25426 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
25427 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
25428 * config/i386/sse.md (movdi_to_sse): Ditto.
25429 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
25430 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
25431 TARGET_INTER_UNIT_MOVES.
25432 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
25433 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
25434 instead of TARGET_INTER_UNIT_MOVES.
25435 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
25436 operand 1 from Yi to Yj and from Ym to Yn.
25438 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25440 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
25441 (float_truncate_hi_): Likewise.
25442 (float_extend_lo_): Likewise.
25443 (float_truncate_lo_): Likewise.
25444 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
25445 (aarch64_float_extend_lo_v2df): Likewise.
25446 (vec_unpacks_hi_v4sf): Likewise.
25447 (aarch64_float_truncate_lo_v2sf): Likewise.
25448 (aarch64_float_truncate_hi_v4sf): Likewise.
25449 (vec_pack_trunc_v2df): Likewise.
25450 (vec_pack_trunc_df): Likewise.
25452 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25454 * config/aarch64/aarch64-builtins.c
25455 (aarch64_fold_builtin): Fold float conversions.
25456 * config/aarch64/aarch64-simd-builtins.def
25457 (floatv2si, floatv4si, floatv2di): New.
25458 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
25459 * config/aarch64/aarch64-simd.md
25460 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
25461 * config/aarch64/iterators.md (FLOATUORS): New.
25462 (optab): Add float, floatuns.
25463 (su_optab): Likewise.
25465 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25467 * config/aarch64/aarch64-builtins.c
25468 (aarch64_builtin_vectorized_function): Use new names for
25470 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
25471 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
25472 (fcvtzu): Split as...
25473 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
25474 (fcvtas): Split as...
25475 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
25476 (fcvtau): Split as...
25477 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
25478 (fcvtps): Split as...
25479 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
25480 (fcvtpu): Split as...
25481 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
25482 (fcvtms): Split as...
25483 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
25484 (fcvtmu): Split as...
25485 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
25486 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
25487 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
25488 (lfrintnusf, lfrintnudf): Likewise.
25489 * config/aarch64/aarch64-simd.md
25490 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
25492 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
25493 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
25494 (fcvt_pattern): Likewise.
25496 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25498 * config/aarch64/aarch64-simd.md
25499 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
25500 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
25502 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25504 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
25505 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
25506 (vrnd<a,m,n,p>_f32): Implement using builtins.
25507 (vrnd<i,x><q>_f<32, 64>): New.
25509 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25511 * config/aarch64/aarch64-builtins.c
25512 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
25513 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
25514 (frintz): Rename to...
25516 (frintp): Rename to...
25518 (frintm): Rename to...
25520 (frinti): Rename to...
25521 (nearbyint): ...this.
25522 (frintx): Rename to...
25524 (frinta): Rename to...
25526 * config/aarch64/aarch64-simd.md
25527 (aarch64_frint<frint_suffix><mode>): Delete.
25528 (<frint_pattern><mode>2): Convert to insn.
25529 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
25530 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
25531 (frint_pattern): Likewise.
25532 (frint_suffix): Likewise.
25534 2013-04-29 Richard Biener <rguenther@suse.de>
25536 PR tree-optimization/57081
25537 * loop-init.c: Include tree-flow.h.
25538 (loop_optimizer_finalize): Free number of iteration estimates.
25539 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
25541 2013-04-29 Jakub Jelinek <jakub@redhat.com>
25543 PR tree-optimization/57083
25544 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
25545 non-singleton shift count range, zero extend low_bound for uns case.
25547 * config/i386/predicates.md (general_vector_operand): New predicate.
25548 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
25549 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
25550 if they aren't nonimmediate operands. If their original values
25551 satisfy const_vector_equal_evenodd_p, don't shift them.
25552 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
25553 predicates. For the SSE4.1 case force operands[{1,2}] into registers
25554 if not nonimmediate_operand.
25555 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
25556 instead of register_operand.
25557 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
25559 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
25561 * stor-layout.c (finalize_size_functions): Allocate a structure and
25562 reset cfun before dumping the functions.
25564 2013-04-27 Jakub Jelinek <jakub@redhat.com>
25566 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
25569 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
25570 use xop_pmacsdqh if uns_p.
25571 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
25572 the immediate rotate count.
25574 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
25576 * rtl.h (struct rtx_def): Add comment for field jump.
25577 (LRA_SUBREG_P): New macro.
25578 * recog.c (register_operand): Check LRA_SUBREG_P.
25579 * lra.c (lra): Add note at the end of RTL code. Align non-empty
25581 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
25582 (lra_final_code_change): Skip subreg change for operators.
25583 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
25584 if there are no operand changes.
25585 * lra-constraints.c (curr_insn_set): New.
25586 (match_reload): Set LRA_SUBREG_P.
25587 (emit_spill_move): Ditto.
25588 (check_and_process_move): Use curr_insn_set. Process only single
25589 set insns. Don't initialize sec_mem_p and change_p.
25590 (simplify_operand_subreg): Use LRA_SUBREG_P.
25591 (reg_in_class_p): New function.
25592 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
25593 of #ifdef. Add code to remove cycling.
25594 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
25595 non-null disp. Reload inner instead of disp when base and index
25596 are null. Try to put lo_sum into register.
25597 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
25598 (check_and_process_move): Move code for move cost check to
25599 simple_move_p. Remove equiv_substitution.
25600 (simple_move_p): New function.
25601 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
25602 curr_insn_set. Call check_and_process_move only for single set
25603 insns. Use the new function. Move call of check_and_process_move
25604 after operand equiv substitution and address process.
25606 2013-04-26 Jakub Jelinek <jakub@redhat.com>
25609 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
25610 with nonlocal goto receivers or returns twice calls, ignore
25611 unininitialized values from abnormal edges to nl goto receiver
25612 or returns twice call.
25614 2013-04-26 Jakub Jelinek <jakub@redhat.com>
25616 PR tree-optimization/57051
25617 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
25618 and VEC_RSHIFT_EXPR if shift count is a multiple of element
25621 2013-04-26 Richard Biener <rguenther@suse.de>
25623 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
25624 (expand_omp_taskreg): Likewise. Mark loops for fixup.
25625 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
25626 (fixup_loop_arrays_after_move): New function.
25627 (move_sese_region_to_fn): Properly outline the loop tree parts
25628 of the SESE region.
25630 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
25632 * config/i386/i386.md (type, unit): Fix long lines.
25634 2013-04-26 Richard Biener <rguenther@suse.de>
25636 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
25637 (lto-streamer-out.o): Likewise.
25638 * cfgloop.c (init_loops_structure): Export, add struct function
25639 argument and adjust.
25640 (flow_loops_find): Adjust.
25641 * cfgloop.h (enum loop_estimation): Add EST_LAST.
25642 (init_loops_structure): Declare.
25643 * lto-streamer-in.c: Include cfgloop.h.
25644 (input_cfg): Input the loop tree.
25645 * lto-streamer-out.c: Include cfgloop.h.
25646 (output_cfg): Output the loop tree.
25647 (output_struct_function_base): Do not drop PROP_loops.
25649 2013-03-26 Richard Biener <rguenther@suse.de>
25651 * tree-cfg.c (execute_build_cfg): Build the loop tree.
25652 (pass_build_cfg): Provide PROP_loops.
25653 (move_sese_region_to_fn): Remove loops that are outlined into fn
25655 * tree-inline.c: Include cfgloop.h.
25656 (initialize_cfun): Do not drop PROP_loops.
25657 (copy_loops): New function.
25658 (copy_cfg_body): Copy loop structure.
25659 (tree_function_versioning): Initialize destination loop tree.
25660 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
25661 (pass_parallelize_loops): Do IL verification.
25662 * loop-init.c (loop_optimizer_init): Fixup loops if required.
25663 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
25664 the CFG make sure we fixup loops as well.
25665 * tree-ssa-tail-merge.c: Include cfgloop.h.
25666 (replace_block_by): When merging loop latches mark loops for fixup.
25667 * lto-streamer-out.c (output_struct_function_base): Drop
25668 PROP_loops for now.
25669 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
25670 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
25671 * ipa-split.c: Include cfgloop.h.
25672 (split_function): Add the new return block to the loop tree root.
25673 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
25674 whether we have removed the forwarder block.
25675 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
25676 * cfgloop.h (place_new_loop): Declare.
25677 * cfgloopmanip.c (place_new_loop): Export.
25678 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
25679 (tree-switch-conversion.o): Likewise.
25680 (tree-complex.o): Likewise.
25681 (tree-inline.o): Likewise.
25682 (tree-ssa-tailmerge.o): Likewise.
25683 (ipa-split.o): Likewise.
25684 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
25685 (tree-ssa-copy.o): Likewise.
25686 * tree-switch-conversion.c: Include cfgloop.h
25687 (process_switch): If we emit a bit-test cascade, schedule loops
25689 * tree-complex.c: Include cfgloop.h.
25690 (expand_complex_div_wide): Properly add new basic-blocks to loops.
25691 * asan.c: Include cfgloop.h.
25692 (create_cond_insert_point): Properly add new basic-blocks to
25693 loops, schedule loop fixup.
25694 * cfgloop.c (verify_loop_structure): Check that looks are not
25696 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
25698 (expand_omp_for_generic): Likewise.
25699 (expand_omp_sections): Likewise.
25700 (expand_omp_atomic_pipeline): Schedule loops for fixup.
25701 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
25702 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
25703 is initialized, not when loops are present.
25704 * tree-parloops.c (parallelize_loops): Remove checking here.
25705 * passes.c (init_optimization_passes): Schedule a copy-propagation
25706 pass before complete unrolling of inner loops.
25708 2013-04-26 Jakub Jelinek <jakub@redhat.com>
25710 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
25711 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
25712 (colorize_init): Add argument to _WIN32 version.
25713 * toplev.c: Include diagnostic-color.h.
25714 (process_options): Default to -fdiagnostics-color=auto if
25715 GCC_COLORS env var is in the environment.
25716 * common.opt (fdiagnostics-color=): Add Var and Init.
25717 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
25718 env var is in the environment, the default is auto rather than never.
25720 * diagnostic.h (file_name_as_prefix): Add context argument.
25721 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
25722 the string as locus.
25723 * langhooks.c (lhd_print_error_function): Adjust caller.
25725 2013-04-25 Lawrence Crowl <crowl@google.com>
25727 * var-tracking.c (shared_hash_def::htab):
25728 Change type to hash_table. Update dependent calls and types.
25730 2013-04-25 Lawrence Crowl <crowl@google.com>
25732 * Makefile.in: Update as needed below.
25734 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
25735 Move declaration to after the type's method definitons.
25737 * attribs.c (htab_t scoped_attributes::attribute_hash):
25738 Change type to hash_table. Update dependent calls and types.
25740 * bitmap.c (htab_t bitmap_desc_hash):
25741 Change type to hash_table. Update dependent calls and types.
25743 * cselib.c (htab_t cselib_hash_table):
25744 Change type to hash_table. Update dependent calls and types.
25746 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
25747 (hash_string_slot_node): Move implementation into lto-streamer.h
25748 struct string_slot_hasher.
25749 (eq_string_slot_node): Likewise.
25751 * data-streamer-out.c: Update output_block::string_hash_table
25752 dependent calls and types.
25754 * dwarf2cfi.c (htab_t trace_index):
25755 Change type to hash_table. Update dependent calls and types.
25757 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
25758 Change type to hash_table. Update dependent calls and types.
25759 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
25760 (htab_t optimize_external_refs::map): Likewise.
25761 (htab_t output_comp_unit::extern_map): Likewise.
25762 (htab_t output_comdat_type_unit::extern_map): Likewise.
25763 (htab_t output_macinfo::macinfo_htab): Likewise.
25764 (htab_t optimize_location_lists::htab): Likewise.
25765 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
25767 * except.c (htab_t ehspec_hash_type):
25768 Change type to hash_table. Update dependent calls and types.
25769 (assign_filter_values::ttypes): Likewise.
25770 (assign_filter_values::ehspec): Likewise.
25771 (sjlj_assign_call_site_values::ar_hash): Likewise.
25772 (convert_to_eh_region_ranges::ar_hash): Likewise.
25774 * gcse.c (htab_t pre_ldst_table):
25775 Change type to hash_table. Update dependent calls and types.
25777 * ggc-common.c (htab_t saving_htab):
25778 Change type to hash_table. Update dependent calls and types.
25779 (htab_t loc_hash): Likewise.
25780 (htab_t ptr_hash): Likewise.
25781 (call_count): Rename ggc_call_count.
25782 (call_alloc): Rename ggc_call_alloc.
25783 (loc_descriptor): Rename make_loc_descriptor.
25784 (add_statistics): Rename ggc_add_statistics.
25786 * ggc-common.c (saving_htab):
25787 Change type to hash_table. Update dependent calls and types.
25789 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
25790 (push_gimplify_context): Likewise.
25791 (pop_gimplify_context): Likewise.
25792 (struct gimple_temp_hash_elt): Added.
25793 (struct gimplify_hasher): Likewise.
25794 (struct gimplify_ctx.temp_htab):
25795 Change type to hash_table. Update dependent calls and types.
25797 * gimple-fold.c: Include gimplify-ctx.h.
25799 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
25800 Change type to hash_table. Update dependent calls and types.
25801 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
25802 avoid potential global name collision.
25804 * gimplify.c: Include gimplify-ctx.h.
25805 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
25806 (htab_t gimplify_ctx::temp_htab):
25807 Update dependent calls and types for new type hash_table.
25808 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
25809 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
25811 * gimplify-ctx.h: New.
25812 (struct gimple_temp_hash_elt): Move from gimplify.c.
25813 (class gimplify_hasher): New.
25814 (struct gimplify_ctx): Move from gimple.h.
25815 (htab_t gimplify_ctx::temp_htab):
25816 Change type to hash_table. Update dependent calls and types.
25818 * graphite-clast-to-gimple.c: Include graphite-htab.h.
25819 (htab_t ivs_params::newivs_index):
25820 Change type to hash_table. Update dependent calls and types.
25821 (htab_t ivs_params::params_index): Likewise.
25822 (htab_t print_generated_program::params_index): Likewise.
25823 (htab_t gloog::newivs_index): Likewise.
25824 (htab_t gloog::params_index): Likewise.
25826 * graphite.c: Include graphite-htab.h.
25827 4htab_t graphite_transform_loops::bb_pbb_mapping):
25828 Change type to hash_table. Update dependent calls and types.
25830 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
25831 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
25832 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
25834 * graphite-dependences.c: Include graphite-htab.h.
25835 (loop_is_parallel_p): Change hash table type of parameter.
25837 * graphite-htab.h: New.
25838 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
25839 (extern find_pbb_via_hash): Move from graphite-poly.h.
25840 (extern loop_is_parallel_p): Move from graphite-poly.h.
25841 (extern get_loop_body_pbbs): Move from graphite-poly.h.
25843 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
25844 (extern loop_is_parallel_p): Move to graphite-htab.h.
25845 (extern get_loop_body_pbbs): Move to graphite-htab.h.
25847 * haifa-sched.c (htab_t delay_htab):
25848 Change type to hash_table. Update dependent calls and types.
25849 (htab_t delay_htab_i2): Likewise.
25851 * ira-color.c (htab_t allocno_hard_regs_htab):
25852 Change type to hash_table. Update dependent calls and types.
25854 * ira-costs.c (htab_t cost_classes_htab):
25855 Change type to hash_table. Update dependent calls and types.
25857 * loop-invariant.c (htab_t merge_identical_invariants::eq):
25858 Change type to hash_table. Update dependent calls and types.
25860 * loop-iv.c (htab_t bivs):
25861 Change type to hash_table. Update dependent calls and types.
25863 * loop-unroll.c (htab_t opt_info::insns_to_split):
25864 Change type to hash_table. Update dependent calls and types.
25865 (htab_t opt_info::insns_with_var_to_expand): Likewise.
25867 * lto-streamer.h (struct string_slot): Move from data-streamer.h
25868 (struct string_slot_hasher): New.
25869 (htab_t output_block::string_hash_table):
25870 Change type to hash_table. Update dependent calls and types.
25872 * lto-streamer-in.c (freeing_string_slot_hasher): New.
25873 (htab_t file_name_hash_table):
25874 Change type to hash_table. Update dependent calls and types.
25876 * lto-streamer-out.c: Update output_block::string_hash_table dependent
25879 * lto-streamer.c (htab_t tree_htab):
25880 Change type to hash_table. Update dependent calls and types.
25882 * omp-low.c: Include gimplify-ctx.h.
25884 * passes.c (htab_t name_to_pass_map):
25885 Change type to hash_table. Update dependent calls and types.
25886 (pass_traverse): Rename to passes_pass_traverse.
25888 * plugin.c (htab_t event_tab):
25889 Change type to hash_table. Update dependent calls and types.
25891 * postreload-gcse.c (htab_t expr_table):
25892 Change type to hash_table. Update dependent calls and types.
25893 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
25895 * sese.c (debug_rename_map_1): Make extern.
25896 (htab_t copy_bb_and_scalar_dependences::rename_map):
25897 Change type to hash_table. Update dependent calls and types.
25899 * sese.h (extern debug_rename_map): Move to .c file.
25901 * store-motion.c (htab_t store_motion_mems_table):
25902 Change type to hash_table. Update dependent calls and types.
25904 * trans-mem.c (htab_t tm_new_mem_hash):
25905 Change type to hash_table. Update dependent calls and types.
25907 * tree-browser.c (htab_t TB_up_ht):
25908 Change type to hash_table. Update dependent calls and types.
25910 * tree-cfg.c (htab_t discriminator_per_locus):
25911 Change type to hash_table. Update dependent calls and types.
25913 * tree-complex.c: Include tree-hasher.h
25914 (htab_t complex_variable_components):
25915 Change type to hash_table. Update dependent calls and types.
25917 * tree-eh.c (htab_t finally_tree):
25918 Change type to hash_table. Update dependent calls and types.
25920 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
25921 struct int_tree_hasher.
25922 (extern int_tree_map_eq): Likewise.
25923 (uid_decl_map_hash): Removed.
25924 (extern decl_tree_map_eq): Likewise.
25926 * tree-hasher.h: New.
25927 (struct int_tree_hasher): New.
25928 (typedef int_tree_htab_type): New.
25930 * tree-inline.c: Include gimplify-ctx.h.
25932 * tree-mudflap.c: Include gimplify-ctx.h.
25934 * tree-parloops.c: Include tree-hasher.h.
25935 (htab_t eliminate_local_variables_stmt::decl_address):
25936 Change type to hash_table. Update dependent calls and types.
25937 (htab_t separate_decls_in_region::decl_copies): Likewise.
25939 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
25940 Change type to hash_table. Update dependent calls and types.
25942 * tree-sra.c (candidates):
25943 Change type to hash_table. Update dependent calls and types.
25945 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
25947 (int_tree_map_hash): Likewise.
25949 * tree-ssa-dom.c (htab_t avail_exprs):
25950 Change type to hash_table. Update dependent calls and types.
25952 * tree-ssa-live.c (var_map_base_init::tree_to_index):
25953 Change type to hash_table. Update dependent calls and types.
25955 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
25956 Change type to hash_table. Update dependent calls and types.
25958 * tree-ssa-phiopt.c (seen_ssa_names):
25959 Change type to hash_table. Update dependent calls and types.
25961 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
25962 Change type to hash_table. Update dependent calls and types.
25964 * tree-ssa-uncprop.c (equiv):
25965 Change type to hash_table. Update dependent calls and types.
25967 2013-04-25 Jakub Jelinek <jakub@redhat.com>
25969 PR rtl-optimization/57003
25970 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
25971 call note_stores with kill_clobbered_value callback again after
25972 killing regs_invalidated_by_call.
25974 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
25976 * config/aarch64/aarch64-simd.md
25977 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
25978 (aarch64_simd_bsl<mode>): Likewise.
25979 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
25981 2013-04-25 Marek Polacek <polacek@redhat.com>
25983 PR tree-optimization/57066
25984 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
25986 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
25988 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
25990 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
25992 * config/aarch64/aarch64-builtins.c
25993 (aarch64_fold_builtin): New.
25994 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
25995 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
25996 * config/aarch64/aarch64-simd-builtins.def (abs): New.
25997 * config/aarch64/arm_neon.h
25998 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
26000 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26001 Tejas Belagod <tejas.belagod@arm.com>
26003 * config/aarch64/aarch64-builtins.c
26004 (aarch64_gimple_fold_builtin): New.
26005 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
26006 * config/aarch64/aarch64-simd-builtins.def (addv): New.
26007 * config/aarch64/aarch64-simd.md (addpv4sf): New.
26008 (addvv4sf): Update.
26009 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
26011 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26013 * config/aarch64/aarch64.md
26014 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
26016 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26018 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
26019 (*ngcsi_uxtw): New pattern.
26021 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26022 Julian Brown <julian@codesourcery.com>
26024 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
26025 (TB_DREG): Add T_V4HF.
26026 (v4hf_UP): New macro.
26027 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26028 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26029 Handle initialisation of V4HF. Adjust initialisation of reinterpret
26031 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26032 (arm_vector_mode_supported_p): Handle V4HF.
26033 (arm_mangle_map): Handle V4HFmode.
26034 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
26035 * config/arm/arm_neon_builtins.def: Add entries for
26036 vcvtv4hfv4sf, vcvtv4sfv4hf.
26037 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
26038 (neon_vcvtv4hfv4sf): Likewise.
26039 * config/arm/neon-gen.ml: Handle half-precision floating point
26041 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
26042 * config/arm/arm_neon.h: Regenerate.
26043 * config/arm/neon.ml (type elts): Add F16.
26044 (type vectype): Add T_float16x4, T_floatHF.
26045 (type vecmode): Add V4HF.
26046 (type features): Add Requires_FP_bit feature.
26047 (elt_width): Handle F16.
26048 (elt_class): Likewise.
26049 (elt_of_class_width): Likewise.
26050 (mode_of_elt): Refactor.
26051 (type_for_elt): Handle F16, fix error messages.
26052 (vectype_size): Handle T_float16x4.
26053 (vcvt_sh): New function.
26054 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
26055 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
26056 (string_of_mode): Handle V4HF.
26057 * doc/arm-neon-intrinsics.texi: Regenerate.
26059 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26061 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
26062 format specifier in 'X' case.
26064 2013-04-25 Alan Modra <amodra@gmail.com>
26067 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
26068 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
26069 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
26070 Repeat for many other rotate/shift and mask patterns using subregs.
26071 Name lshiftrt insns.
26072 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
26073 on WORDS_BIG_ENDIAN.
26075 2013-04-25 Alan Modra <amodra@gmail.com>
26077 * config.gcc: Support little-endian powerpc-linux targets.
26078 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
26079 (LINK_OS_LINUX_SPEC): Define.
26080 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
26081 Preserve MASK_LITTLE_ENDIAN.
26082 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
26083 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
26084 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
26085 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
26086 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
26087 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
26088 Correct fp word order for little-endian. Don't shift toc entries
26089 smaller than a word for little-endian.
26090 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
26091 (bswapdi2 splits): Correct low-part subreg for little-endian.
26092 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
26093 low/high where such is correct only for be.
26094 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
26095 little-endian for -mcall-aixdesc.
26097 2013-04-25 Alan Modra <amodra@gmail.com>
26099 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26100 replace_equiv_address_nv.
26102 2013-04-25 Alan Modra <amodra@gmail.com>
26104 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
26106 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26109 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26110 * rtl.h (struct rtx_def): ...
26112 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26114 PR rtl-optimizations/57046
26115 * lra-constraints (split_reg): Set up lra_risky_transformations_p
26116 for multi-reg splits.
26118 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
26120 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
26122 2013-04-24 Sterling Augustine <saugustine@google.com>
26124 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
26125 (comp_dir_string, debug_str_dwo_section): New.
26126 (DEBUG_STR_DWO_SECTION): Rename to ...
26127 (DEBUG_DWO_STR_SECTION): ... this.
26128 (DEBUG_NORM_STR_SECTION): Delete.
26129 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
26130 (DEBUG_STR_DWO_SECTION_FLAGS): New.
26131 (find_AT_string): Move most logic to ...
26132 (find_AT_string_in_table): ... here. New.
26133 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
26134 add_skeleton_AT_string. Delete logic.
26135 (output_skeleton_debug_sections): Remove call to
26136 add_top_level_skeleton_die_attrs.
26137 (add_comp_dir_attribute): Move logic to comp_dir_string.
26138 (dwarf2out_init): Initialize debug_str_dwo_section.
26139 (output_indirect_string): Call find_string_form.
26140 (output_indirect_strings): Rewrite.
26141 (prune_unused_types): Empty skeleton_debug_str_hash.
26142 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
26143 (dwarf2out_finish): Call output_indirect_strings.
26145 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
26147 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
26149 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26151 * rtl.h (struct rtx_def): Add comment for field jump.
26152 (LRA_SUBREG_P): New macro.
26153 * recog.c (register_operand): Check LRA_SUBREG_P.
26154 * lra.c (lra): Add note at the end of RTL code. Align non-empty
26156 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
26157 (lra_final_code_change): Skip subreg change for operators.
26158 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
26159 if there are no operand changes.
26160 * lra-constraints.c (curr_insn_set): New.
26161 (match_reload): Set LRA_SUBREG_P.
26162 (emit_spill_move): Ditto.
26163 (check_and_process_move): Use curr_insn_set. Process only single
26164 set insns. Don't initialize sec_mem_p and change_p.
26165 (simplify_operand_subreg): Use LRA_SUBREG_P.
26166 (reg_in_class_p): New function.
26167 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
26168 of #ifdef. Add code to remove cycling.
26169 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
26170 non-null disp. Reload inner instead of disp when base and index
26171 are null. Try to put lo_sum into register.
26172 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
26173 (check_and_process_move): Move code for move cost check to
26174 simple_move_p. Remove equiv_substitution.
26175 (simple_move_p): New function.
26176 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
26177 curr_insn_set. Call check_and_process_move only for single set
26178 insns. Use the new function. Move call of check_and_process_move
26179 after operand equiv substitution and address process.
26181 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
26183 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
26184 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
26185 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
26187 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
26189 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
26191 2013-04-24 Marek Polacek <polacek@redhat.com>
26193 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
26194 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
26195 (select_loops_exit_conditions): Likewise.
26196 (number_of_iterations_for_all_loops): Likewise.
26197 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
26198 (scev_analysis): Likewise.
26200 2013-04-02 Catherine Moore <clm@codesourcery.com>
26201 Chao-ying Fu <fu@mips.com>
26203 * config/mips/micromips.md (jraddiusp): New pattern.
26204 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
26205 instruction if possible.
26207 2013-04-24 Alan Modra <amodra@gmail.com>
26209 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
26211 2013-04-24 Julian Brown <julian@codesourcery.com>
26212 Chung-Lin Tang <cltang@codesourcery.com>
26214 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
26215 dependency behavior in enumeration type DIE generation. Add TODO note
26216 to comments about future DW_FORM_sdata/udata re-work of related code.
26218 2013-04-23 Lawrence Crowl <crowl@google.com>
26220 * Makefile.in: Update as needed below.
26222 * hash-table.h (class hash_table):
26223 Correct many methods with parameter types compare_type to the correct
26224 value_type. (Correct code was unlikely to notice the change.)
26225 (hash_table::elements_with_deleted) New.
26226 (class hashtable::iterator): New.
26227 (hashtable::begin()): New.
26228 (hashtable::end()): New.
26229 (FOR_EACH_HASH_TABLE_ELEMENT): New.
26231 * statistics.c (statistics_hashes):
26232 Change type to hash_table. Update dependent calls and types.
26234 * tree-into-ssa.c (var_infos):
26235 Change type to hash_table. Update dependent calls and types.
26237 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
26238 Change type to hash_table. Update dependent calls and types.
26240 * tree-ssa-loop-im.c (struct mem_ref.refs):
26241 Change type to hash_table. Update dependent calls and types.
26243 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
26244 Change type to hash_table. Update dependent calls and types.
26246 * tree-ssa-sccvn.c (vn_tables_s::nary):
26247 Change type to hash_table. Update dependent calls and types.
26248 (vn_tables_s::phis): Likewise.
26249 (vn_tables_s::references): Likewise.
26251 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
26252 (vn_reference_eq): Update parameter and return types.
26254 * tree-ssa-structalias.c (pointer_equiv_class_table):
26255 Change type to hash_table. Update dependent calls and types.
26256 (location_equiv_class_table): Likewise.
26258 * tree-vect-data-refs.c: Consequential changes for making
26259 peeling a hash_table.
26261 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
26262 (destroy_loop_vec_info): Dependent hash_table update.
26264 * tree-vectorizer.h (peeling_htab):
26265 Change type to hash_table. Update dependent calls and types.
26267 2013-04-23 Shiva Chen <shiva0217@gmail.com>
26269 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
26270 to check the register content is equal or not.
26271 * lra-constraints.c (match_reload): Use lra_assign_reg_val
26272 to assign register content record.
26273 * lra-eliminations.c (update_reg_eliminate): Use
26274 lra_update_reg_val_offset to update register content offset.
26275 * lra-int.h (struct lra_reg): Add offset member.
26276 (lra_reg_val_equal_p): New static inline function.
26277 (lra_update_reg_val_offset): New static inline function.
26278 (lra_assign_reg_val): New static inline function.
26279 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
26280 to assign register content record.
26281 (initialize_lra_reg_info_element): Initial offset to zero.
26283 2013-04-23 Catherine Moore <clm@codesourcery.com>
26285 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
26286 operands. Record compression.
26288 2013-04-23 Xinliang David Li <davidxl@google.com>
26290 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
26292 2013-04-23 Richard Biener <rguenther@suse.de>
26294 PR middle-end/57036
26295 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
26296 parameter, only add abnormal goto edges from the copied body
26297 if the call could perform abnormal gotos.
26298 (copy_cfg_body): Adjust.
26300 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
26302 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
26304 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
26306 * coretypes.h (gimple_stmt_iterator): Add struct to make
26309 2013-04-23 Richard Biener <rguenther@suse.de>
26311 PR tree-optimization/57026
26312 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
26313 from SSA names occuring in abnormal PHI nodes.
26315 2013-04-22 Andi Kleen <ak@linux.intel.com>
26317 * lto/lto.c (print_lto_report_1): Fix LTO report names.
26319 2013-04-22 Andi Kleen <ak@linux.intel.com>
26321 * lto/lto.c (print_lto_report_1): Declare early.
26322 (read_cgraph_and_symbols): Call print_lto_report_1 early.
26324 2013-04-22 Andi Kleen <ak@linux.intel.com>
26326 * common.opt (-flto-report-wpa): Add.
26327 * doc/invoke.texi (-flto-report-wpa): Add.
26328 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
26331 2013-04-22 Xinliang David Li <davidxl@google.com>
26333 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
26334 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
26335 * Makefile.in: New dependency
26337 David Daney <ddaney.cavm@gmail.com>
26339 * configure.ac (gcc_cv_as_micromips_support): Use the
26340 --fatal-warnings option.
26341 * configure: Regenerate.
26343 2013-04-22 Marek Polacek <polacek@redhat.com>
26346 * tsan.c (instrument_expr): Don't instrument expression
26347 in case its size is zero.
26349 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
26353 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
26355 * config/alpha/alpha.c (TARGET_LRA_P): New define.
26357 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
26359 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
26360 (gimple_stmt_iterator): New typedef.
26361 * gimple.h (gimple_stmt_iterator): Rename to...
26362 (gimple_stmt_iterator_d): ... This.
26363 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
26364 trees be valid for GIMPLE and GENERIC.
26365 (TARGET_GIMPLE_FOLD_BUILTIN): New.
26366 * gimple-fold.c (gimple_fold_call): Call target hook
26367 gimple_fold_builtin.
26368 * hooks.c (hook_bool_gsiptr_false): New.
26369 * hooks.h (hook_bool_gsiptr_false): New.
26370 * target.def (fold_stmt): New.
26371 * doc/tm.texi: Regenerate.
26373 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
26376 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
26377 a set sp if no stack realignment.
26379 2013-04-22 Nick Clifton <nickc@redhat.com>
26381 * config.gcc (tilegx-linux): Extend extra_objs rather than
26383 (tilepro-linux): Likewise.
26385 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
26387 * config/aarch64/aarch64-builtins.c
26389 (CF0, CF1, CF2, CF3, CF4, CF10): New.
26390 (VAR<1-12>): Add MAP parameter.
26391 (BUILTIN_*): Likewise.
26392 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
26393 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
26394 (aarch64_ushl_n<mode>): Likewise.
26395 (aarch64_sshr_n<mode>): Likewise.
26396 (aarch64_ushr_n<mode>): Likewise.
26397 (aarch64_<maxmin><mode>): Likewise.
26398 (aarch64_sqrt<mode>): Likewise.
26399 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
26400 (vshr<q>_n_*): Likewise.
26402 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
26404 * config/aarch64/aarch64-builtins.c
26405 (aarch64_simd_builtin_type_mode): Handle SF types.
26407 (BUILTIN_GPF): Define.
26408 (aarch64_init_simd_builtins): Handle SF types.
26409 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
26410 (frecps): Likewise.
26411 (frecpx): Likewise.
26412 * config/aarch64/aarch64-simd.md
26413 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
26414 (aarch64_frecpe<mode>): New.
26415 (aarch64_frecps<mode>): Likewise.
26416 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
26417 (v8type): Add frecp<esx>.
26418 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
26419 (aarch64_frecps<mode>): Likewise.
26420 * config/aarch64/iterators.md (FRECP): New.
26421 (frecp_suffix): Likewise.
26422 * config/aarch64/arm_neon.h
26423 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
26425 2013-04-22 Christian Bruel <christian.bruel@st.com>
26428 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
26429 (REG_CLASS_NAMES): Idem.
26430 (REG_CLASS_CONTENTS): Idem.
26431 (REGCLASS_HAS_FP_REG): Idem.
26432 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
26433 (sh_conditional_register_usage): Idem.
26435 2013-04-21 Jeff Law <law@redhat.com>
26437 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
26438 (ssa_forward_propagate_and_combine): Use it.
26440 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
26442 * lra.c: Update the flow chart diagram.
26444 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
26446 PR rtl-optimization/56847
26447 * lra-constraints.c (process_alt_operands): Discourage alternative
26448 with non-matche doffsettable memory constraint fro memory with
26451 2013-04-19 Richard Biener <rguenther@suse.de>
26453 PR tree-optimization/56982
26454 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
26456 * gimplify.c (gimplify_call_expr): Notice special calls.
26457 (gimplify_modify_expr): Likewise.
26458 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
26459 abnormal control flow receivers.
26460 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
26461 in the same way as cfun->has_nonlocal_labels.
26462 (gimple_purge_dead_abnormal_call_edges): Likewise.
26463 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
26464 receivers start a basic-block.
26466 2013-04-19 Richard Biener <rguenther@suse.de>
26468 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
26470 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
26471 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
26472 (SLP_TREE_LOAD_PERMUTATION): Add.
26473 (vect_transform_slp_perm_load): Adjust prototype.
26474 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
26475 (vect_free_slp_instance): Likewise.
26476 (vect_create_new_slp_node): Likewise.
26477 (vect_supported_slp_permutation_p): Remove.
26478 (vect_slp_rearrange_stmts): Adjust.
26479 (vect_supported_load_permutation_p): Likewise. Inline
26480 vect_supported_slp_permutation_p here.
26481 (vect_analyze_slp_instance): Compute load permutations per
26482 slp node instead of per instance.
26483 (vect_get_slp_defs): Adjust.
26484 (vect_transform_slp_perm_load): Likewise.
26485 (vect_schedule_slp_instance): Remove redundant code.
26486 (vect_schedule_slp): Remove hack for PR56270, add it ...
26487 * tree-vect-stmts.c (vectorizable_load): ... here, do not
26488 CSE loads for SLP. Adjust.
26490 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
26492 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
26493 spelling in two comments.
26495 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
26498 * config/arm/arm.c (load_multiple_sequence): Require SP
26499 as base register for loads if SP is in the register list.
26501 2013-04-19 Martin Jambor <mjambor@suse.cz>
26503 PR tree-optimization/56718
26504 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
26505 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
26506 and made public. Adjusted all callers.
26507 (ipa_intraprocedural_devirtualization): New function.
26508 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
26509 (ipa_intraprocedural_devirtualization): Likewise.
26510 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
26512 2013-04-19 Richard Biener <rguenther@suse.de>
26514 PR tree-optimization/57000
26515 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
26517 2013-04-19 Terry Guo <terry.guo@arm.com>
26519 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
26521 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
26522 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
26523 (cortex_m4_fmacs): Use new reservations.
26524 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
26526 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
26528 PR rtl-optimization/56999
26529 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
26531 (lra_coalesce): Remove split_origin_bitmap and related code.
26532 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
26533 ranges if necessary.
26535 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
26537 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
26539 (ix86_expand_call): Remove clobbered_registers array and use
26540 x86_64_ms_sysv_extra_clobbered_registers instead.
26541 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
26543 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
26545 * config/i386/i386.md (*call_rex64_ms_sysv): Use
26546 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
26547 (*call_value_rex64_ms_sysv): Ditto.
26549 2013-04-18 Cary Coutant <ccoutant@google.com>
26551 * dwarf2out.c (output_pubnames): Check die_perennial_p of
26552 parent instead of die_mark.
26554 2013-04-18 Diego Novillo <dnovillo@google.com>
26556 * gimple.c (create_gimple_tmp): New.
26557 (get_expr_type): New.
26558 (build_assign): New.
26559 (build_type_cast): New.
26560 * gimple.h (enum ssa_mode): Define.
26561 (gimple_seq_set_location): New.
26562 * asan.c (build_check_stmt): Change some gimple_build_* calls
26563 to use build_assign and build_type_cast.
26565 2013-04-18 Richard Biener <rguenther@suse.de>
26567 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26568 handle negative step. Remove redundant checks.
26569 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
26570 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
26571 for negative step and grouped loads fail to vectorize.
26573 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
26575 * emit-rtl.c (reset_insn_used_flags): New function.
26576 (reset_all_used_flags): Use it.
26577 (verify_insn_sharing): New function.
26578 (verify_rtl_sharing): Fix verification for SEQUENCEs.
26580 2013-04-18 Jakub Jelinek <jakub@redhat.com>
26582 PR tree-optimization/56984
26583 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
26584 and (x >> M) >= N don't register any assertion if N << M is the
26587 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
26589 * lower-subreg.c (resolve_simple_move): If called self-recursive,
26590 do not delete_insn insns that have not yet been emitted, only
26591 unlink them with remove_insn.
26592 * df-scan.c (df_insn_delete): Revert r197492.
26594 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
26596 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
26597 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
26599 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
26601 * config/arm/arm.md (movsicc_insn): Convert define_insn into
26602 define_insn_and_split.
26603 (and_scc,ior_scc,negscc): Likewise.
26604 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
26606 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
26608 * config/arm/arm.c (use_return_insn): Return 0 for targets that
26609 can benefit from using a sequence of LDRD instructions in epilogue
26610 instead of a single LDM instruction.
26612 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
26615 * doc/extend.texi: Fix typo.
26617 2013-04-17 Richard Biener <rguenther@suse.de>
26619 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
26620 (vect_build_slp_tree): ... here.
26621 (vect_build_slp_tree_1): Compute which stmts of the SLP group
26622 match. Remove special-casing of mismatched complex loads.
26623 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
26624 re-try the match with swapped commutative operands.
26625 (vect_supported_load_permutation_p): Remove special-casing of
26626 mismatched complex loads.
26627 (vect_analyze_slp_instance): Adjust.
26629 2013-04-17 Richard Biener <rguenther@suse.de>
26631 PR rtl-optimization/56921
26632 * cfgloop.h (struct loop): Add simple_loop_desc member.
26633 (struct niter_desc): Mark with GTY(()).
26634 (simple_loop_desc): Do not use aux field but simple_loop_desc.
26635 * loop-iv.c (get_simple_loop_desc): Likewise.
26636 (free_simple_loop_desc): Likewise.
26639 2013-04-16 Richard Biener <rguenther@suse.de>
26641 PR rtl-optimization/56921
26642 * loop-init.c (pass_rtl_move_loop_invariants): Add
26643 TODO_do_not_ggc_collect to todo_flags_finish.
26644 (pass_rtl_unswitch): Same.
26645 (pass_rtl_unroll_and_peel_loops): Same.
26646 (pass_rtl_doloop): Same.
26648 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
26650 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
26651 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
26652 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
26654 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
26655 * tree-streamer.c (record_common_node): Adjust reference in comment.
26657 2013-04-17 Terry Guo <terry.guo@arm.com>
26659 * config/arm/cortex-m4.md: Add a new bypass.
26661 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26663 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
26665 (*subs_<optab><mode>_multp2): New pattern.
26666 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
26667 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
26669 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26671 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
26672 (*subs_mul_imm_<mode>): New pattern.
26674 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
26677 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
26678 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
26679 (vsx_movti_32bit): Change j->wa to O->wa.
26681 2013-04-16 Richard Biener <rguenther@suse.de>
26683 PR rtl-optimization/56921
26684 * loop-init.c (pass_rtl_move_loop_invariants): Add
26685 TODO_do_not_ggc_collect to todo_flags_finish.
26686 (pass_rtl_unswitch): Same.
26687 (pass_rtl_unroll_and_peel_loops): Same.
26688 (pass_rtl_doloop): Same.
26690 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
26692 * config/arm/arm.c (emit_multi_reg_push): New declaration
26693 for an existing function.
26694 (arm_emit_strd_push): New function.
26695 (arm_expand_prologue): Used here.
26696 (arm_emit_ldrd_pop): New function.
26697 (arm_expand_epilogue): Used here.
26698 (arm_get_frame_offsets): Update condition.
26699 (arm_emit_multi_reg_pop): Add a special case for load of a single
26700 register with writeback.
26702 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
26704 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
26707 2013-04-16 Richard Biener <rguenther@suse.de>
26709 PR tree-optimization/56756
26710 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
26711 (first_mem_ref_loc): New.
26712 (execute_sm): Place the load temporarily before a previous
26713 access instead of in the latch edge to ensure its SSA dependencies
26714 are defined at points dominating the load.
26716 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
26718 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
26719 correct fix by moving header and footer insn to the footer of
26720 the merged basic block. Clear BB_END of the merged-away block.
26722 PR middle-end/43631
26723 * emit-rtl.c (make_note_raw): New function.
26724 (link_insn_into_chain): New static inline function.
26725 (add_insn): Use it.
26726 (add_insn_before, add_insn_after): Factor insn chain linking code...
26727 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
26728 using link_insn_into_chain.
26729 (note_outside_basic_block_p): New helper function for emit_note_after
26730 and emit_note_before.
26731 (emit_note_after): Use nobb variant of add_insn_after if the note
26732 should not be contained in a basic block.
26733 (emit_note_before): Use nobb variant of add_insn_before if the note
26734 should not be contained in a basic block.
26735 (emit_note_copy): Use make_note_raw.
26736 (emit_note): Likewise.
26737 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
26738 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
26739 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
26740 the moved barrier the tail of the basic block it follows.
26741 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
26743 2013-04-15 Jakub Jelinek <jakub@redhat.com>
26745 PR tree-optimization/56962
26746 * gimple-ssa-strength-reduction.c (record_increment): Only set
26747 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
26748 either rhs1 or rhs2 is equal to c->base_expr.
26750 2013-04-15 Richard Biener <rguenther@suse.de>
26752 PR tree-optimization/56933
26753 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
26755 (GROUP_READ_WRITE_DEPENDENCE): Remove.
26756 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
26757 * tree-vect-data-refs.c (vect_analyze_group_access): Move
26758 dependence check ...
26759 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
26761 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
26762 GROUP_READ_WRITE_DEPENDENCE.
26764 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26766 * emit-rtl.c (reset_all_used_flags): New function.
26767 (verify_rtl_sharing): Call reset_all_used_flags before and after
26768 performing the checks.
26770 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26772 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
26773 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
26774 * config/arm/constraints.md (De): New constraint.
26775 * config/arm/neon.md (anddi3_neon): Delete.
26776 (neon_vand<mode>): Expand to standard anddi3 pattern.
26777 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
26778 Move earlier in the file.
26779 (neon_inv_logic_op2): Likewise.
26780 (arm_anddi_operand_neon): New predicate.
26782 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26784 * configure.ac (gcc_cv_ld_as_needed): Set
26785 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
26786 Use -z ignore, -z record on *-*-solaris2*.
26787 (HAVE_LD_AS_NEEDED): Update comment.
26788 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
26789 * configure: Regenerate.
26790 * config.in: Regenerate.
26791 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
26792 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
26793 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
26794 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
26795 equivalents. Fix markup.
26796 * doc/tm.texi: Regenerate.
26798 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
26800 * config/i386/i386.opt: New option mstack-protector-guard=.
26801 * config/i386/i386-opts.h: Add enum stack_protector_guard.
26802 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
26803 TARGET_SSP_TLS_GUARD.
26804 * config/i386/i386.c (ix86_option_override_internal): Set
26805 ix86_stack_protector_guard.
26806 * config/i386/i386.md (stack_protect_set): Enable for
26807 TARGET_SSP_TLS_GUARD only.
26808 (stack_protect_set_<mode>): Ditto.
26809 (stack_protect_test): Ditto.
26810 (stack_protect_test_<mode>): Ditto.
26811 * doc/invoke.texi (i386 Option): Document.
26813 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
26816 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
26817 (S_MODES): Set H_MODE bit.
26818 (SF_MODES): Set only S_MODE and SF_MODE bits.
26819 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
26820 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
26821 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
26822 <MODE_FLOAT>: Likewise.
26824 2013-04-15 Joey Ye <joey.ye@arm.com>
26826 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
26828 2013-04-15 Joey Ye <joey.ye@arm.com>
26830 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
26832 (thumb_far_jump_used_p): Count instruction size and set
26835 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
26837 * reorg.c (fill_simple_delay_slots): Reindent block of code.
26838 * resource.c (mark_target_live_regs): Reformat conditional block.
26840 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
26842 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
26843 notes, they are emitted only just before final.
26844 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
26846 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
26848 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
26849 * cfgrtl.c (delete_insn): Call it here instead.
26850 * lra-spills.c (lra_final_code_change): Use delete_insn.
26851 * haifa-sched.c (sched_remove_insn): Likewise.
26852 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
26853 returning to the nop pool.
26854 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
26855 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
26857 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
26859 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
26860 * doc/tm.texi: Regenerated.
26862 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
26864 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
26867 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
26869 * df-core.c (df_find_def): Compare register numbers.
26870 (df_find_use): Likewise.
26872 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
26875 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
26876 lra_in_progress for return.
26878 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
26880 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
26881 define_insn into define_insn_and_split and emit movsicc patterns.
26883 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
26885 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
26887 2013-04-12 Richard Biener <rguenther@suse.de>
26889 * tree-pass.h (TODO_do_not_ggc_collect): New.
26890 * passes.c (execute_one_ipa_transform_pass): Honor
26891 TODO_do_not_ggc_collect.
26892 (execute_one_pass): Likewise.
26895 2013-04-10 Richard Biener <rguenther@suse.de>
26897 * passes.c (init_optimization_passes): Remove reload pass.
26898 * ira.c (do_reload): Merge into ...
26900 (rest_of_handle_reload): Remove.
26901 (pass_reload): Likewise.
26902 * config/i386/i386.c (ix86_option_override): Refer to ira instead
26903 of reload for vzeroupper pass placement.
26905 2013-04-12 Jakub Jelinek <jakub@redhat.com>
26907 PR tree-optimization/56918
26908 PR tree-optimization/56920
26909 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
26910 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
26911 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
26912 use wide_mul_with_sign method.
26914 2013-04-12 Richard Biener <rguenther@suse.de>
26916 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
26917 not be considered a gimple constant.
26919 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
26921 * fold-const.c (const_binop): Handle vector shifts by a scalar.
26922 (fold_binary_loc): Call const_binop also for mixed vector-scalar
26925 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
26926 Jakub Jelinek <jakub@redhat.com>
26928 * opts.c: Include diagnostic-color.h.
26929 (common_handle_option): Handle OPT_fdiagnostics_color_.
26930 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
26931 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
26932 (diagnostic-color.o): New.
26933 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
26934 (diagnostic_color_rule): New enum.
26935 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
26936 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
26937 the location string.
26938 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
26939 either NULL, or color kind.
26940 * diagnostic-color.c: New file.
26941 * diagnostic-color.h: New file.
26942 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
26944 * doc/invoke.texi (-fdiagnostics-color): Document.
26945 * pretty-print.h (pp_show_color): Define.
26946 (struct pretty_print_info): Add show_color field.
26947 * diagnostic.c: Include diagnostic-color.h.
26948 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
26949 macros. Colorize error:, warning: etc. strings and also the location
26951 (diagnostic_show_locus): Colorize the caret line.
26952 * pretty-print.c: Include diagnostic-color.h.
26953 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
26954 inside of %< %> quotes or quoted through q format modifier.
26956 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26958 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
26960 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26962 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
26963 code in CC_NZ mode.
26964 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
26967 2013-04-11 Marek Polacek <polacek@redhat.com>
26969 PR tree-optimization/48184
26970 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
26972 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
26974 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
26975 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
26976 (skip_simple_arithmetic): Tidy up.
26977 * tree.h (skip_simple_constant_arithmetic): Declare.
26979 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26981 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
26983 2013-04-11 Richard Biener <rguenther@suse.de>
26985 * tree-vect-loop.c (get_initial_def_for_induction): Properly
26986 generate vector constants.
26988 2013-04-11 Richard Biener <rguenther@suse.de>
26990 PR tree-optimization/56878
26991 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
26992 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
26994 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26995 Prefer to align the DR with the most invariant base address.
26997 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26999 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
27002 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27004 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
27005 floating-point vector comparisons against 0.
27007 2013-04-11 Jakub Jelinek <jakub@redhat.com>
27009 PR tree-optimization/56899
27010 * fold-const.c (extract_muldiv_1): Apply distributive law
27011 only if TYPE_OVERFLOW_WRAPS (ctype).
27013 2013-04-11 Bin Cheng <bin.cheng@arm.com>
27016 * ira-costs.c (scan_one_insn): Check whether the source rtx of
27017 loading has side effect.
27019 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
27021 * config/sparc/sparc.c: Include tree-pass.h.
27022 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
27023 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
27024 head of file. Change return type. Split off gate function.
27025 (sparc_gate_work_around_errata): New function.
27026 (pass_work_around_errata): New pass definition.
27027 (insert_pass_work_around_errata) New pass insert definition to
27028 insert pass_work_around_errata just after delayed-branch scheduling.
27029 (sparc_option_override): Insert the pass.
27030 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
27032 2013-04-10 David S. Miller <davem@davemloft.net>
27034 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
27035 or -mcpu=hypersparc.
27037 * target.def (cstore_mode): New hook.
27038 * target.h: Include insn-codes.h
27039 * targhooks.c: Likewise.
27040 (default_cstore_mode): New function.
27041 * targhooks.h: Declare it.
27042 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
27043 * doc/tm.texi: Rebuild.
27044 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
27045 target hook, rather than inspecting the insn_data.
27046 * config/sparc/sparc.c (sparc_cstore_mode): New function.
27047 (TARGET_CSTORE_MODE): Redefine.
27048 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
27050 * config/sparc/predicates.md (cstore_result_operand): New special
27052 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
27053 Use it for operand 0.
27054 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
27055 (*snesi_special): Likewise.
27056 (*snesi_zero): Likewise.
27057 (*seqsi_zero): Likewise.
27058 (*sltu_insn): Likewise.
27059 (*sgeu_insn): Likewise.
27060 (*seqdi_special): Make operand 0 and comparison operation be of
27062 (*snedi_special): Likewise.
27063 (*snedi_special_vis3): Likewise.
27064 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
27065 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
27066 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
27067 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
27068 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
27069 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
27070 (*sltu_extend_sp64): Likewise.
27071 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
27072 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
27073 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
27074 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
27075 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
27077 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
27079 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
27080 (aarch64_start_file): Use the new function.
27082 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27083 Jason Merrill <jason@redhat.com>
27085 * common.opt: Add -gdwarf.
27086 * opts.c (common_handle_option): Handle it.
27087 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
27089 2013-04-10 Richard Biener <rguenther@suse.de>
27091 * passes.c (execute_todo): Do not call ggc_collect conditional here.
27092 (execute_one_ipa_transform_pass): But unconditionally here.
27093 (execute_one_pass): And here.
27094 (init_optimization_passes): Remove reload pass.
27095 * tree-pass.h (TODO_ggc_collect): Remove.
27096 (pass_reload): Likewise.
27097 * ira.c (do_reload): Merge into ...
27099 (rest_of_handle_reload): Remove.
27100 (pass_reload): Likewise.
27101 * config/i386/i386.c (ix86_option_override): Refer to ira instead
27102 of reload for vzeroupper pass placement.
27103 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
27104 and todo_flags_finish of all passes.
27106 2013-04-10 Richard Biener <rguenther@suse.de>
27108 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
27109 first_const_oprnd field, rename first_def_type to first_op_type.
27110 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
27111 (vect_get_and_check_slp_defs): Always use the type of the
27112 operand. Allow mixed vect_external_def, vect_constant_def types.
27113 (vect_get_constant_vectors): Handle mixed vect_external_def,
27114 vect_constant_def types.
27116 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
27118 PR tree-optimization/55524
27119 * tree-ssa-math-opts.c
27120 (convert_mult_to_fma): Don't use an fms construct
27121 when we don't have an fms operation, but fnma, and it looks
27122 likely that we'll be able to use the latter.
27124 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27126 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
27128 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
27129 inline fail caused by overwritable functions.
27131 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
27133 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
27134 unnecessary bits in the constant power of two case.
27136 2013-04-10 Richard Biener <rguenther@suse.de>
27138 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
27139 broken code swapping operands.
27140 (vect_build_slp_tree): Do not compute load permutations here.
27141 (vect_analyze_slp_instance): Compute load permutations here,
27142 after building the SLP tree.
27144 2013-04-09 Christian Bruel <christian.bruel@st.com>
27146 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
27147 of next/prev_real_insn.
27149 2013-04-09 Jan Hubicka <jh@suse.cz>
27151 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
27152 Drop aliased parameter.
27153 (function_and_variable_visibility): Do not handle alias pairs.
27154 * cgraph.c (varpool_externally_visible_p): Update prototype.
27155 * varpool.c (varpool_add_new_variable): Update.
27157 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27159 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
27161 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
27163 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
27165 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
27167 2013-04-09 Marek Polacek <polacek@redhat.com>
27169 PR tree-optimization/48762
27170 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
27172 2013-04-09 Richard Biener <rguenther@suse.de>
27174 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
27176 (vect_build_slp_tree): Likewise.
27177 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
27178 calculating the cost of a SLP instance.
27179 (vect_analyze_slp_instance): Use it from here, after building
27182 2013-04-09 Jakub Jelinek <jakub@redhat.com>
27184 PR middle-end/56883
27185 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27186 expand_omp_for_static_chunk): Use simple_p = true in
27187 force_gimple_operand_gsi calls when assigning to addressable decls.
27189 2013-04-09 Jeff Law <law@redhat.com>
27191 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
27192 when the boolean was created by converting a wider object which
27193 had a boolean range.
27195 2013-04-09 Richard Biener <rguenther@suse.de>
27197 * tree-vectorizer.h (slp_void_p): Remove.
27198 (slp_tree): Typedef before _slp_tree declaration.
27199 (struct _slp_tree): Use a vector of slp_tree as children.
27200 (vect_get_place_in_interleaving_chain): Remove.
27201 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
27203 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
27205 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
27206 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
27207 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
27208 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
27209 Use slp_node instead of slp_void_p and adjust.
27211 2013-04-09 Richard Biener <rguenther@suse.de>
27213 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
27214 work that is not necessary.
27216 2013-04-09 Jakub Jelinek <jakub@redhat.com>
27218 PR tree-optimization/56854
27219 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
27220 forward into clobber stmts if it would change MEM_REF lhs into
27223 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
27225 * tree.c (type_hash_lookup, type_hash_add): Make static.
27226 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
27228 2013-04-09 Richard Biener <rguenther@suse.de>
27230 * tree.h (unsave_expr_now): Remove.
27231 * tree-inline.c (mark_local_for_remap_r): Remove.
27232 (unsave_expr_1): Likewise.
27233 (unsave_r): Likewise.
27234 (unsave_expr_now): Likewise.
27235 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
27236 (propagate_tree_value): Likewise.
27238 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
27240 * doc/rtl.texi (sequence): Rewrite documentation to match the
27241 current use of SEQUENCE rtl objects.
27242 * rtl.def (SEQUENCE): Likewise.
27244 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
27245 Update documentation.
27246 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
27247 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
27249 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
27251 2013-04-08 Teresa Johnson <tejohnson@google.com>
27253 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
27254 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
27256 (estimate_edge_size_and_time): Add comment to suggest using rounding
27258 (estimate_node_size_and_time): Ditto.
27259 (remap_edge_change_prob): Use helper rounding divide methods.
27260 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
27261 (gimple_mod_pow2_value_transform): Ditto.
27262 (gimple_mod_subtract_transform): Ditto.
27263 (gimple_ic_transform): Ditto.
27264 (gimple_stringops_transform): Ditto.
27265 * stmt.c (conditional_probability): Ditto.
27266 (emit_case_dispatch_table): Ditto.
27267 * lto-cgraph.c (merge_profile_summaries): Ditto.
27268 * tree-optimize.c (execute_fixup_cfg): Ditto.
27269 * cfgcleanup.c (try_forward_edges): Ditto.
27270 * cfgloopmanip.c (scale_loop_profile): Ditto.
27272 (duplicate_loop_to_header_edge): Ditto.
27273 (lv_adjust_loop_entry_edge): Ditto.
27274 * tree-vect-loop.c (vect_transform_loop): Ditto.
27275 * profile.c (compute_branch_probabilities): Ditto.
27276 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
27277 * lto-streamer-in.c (input_cfg): Ditto.
27278 * gimple-streamer-in.c (input_bb): Ditto.
27279 * ipa-cp.c (update_profiling_info): Ditto.
27280 (update_specialized_profile): Ditto.
27281 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
27282 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
27284 * sched-rgn.c (compute_dom_prob_ps): Ditto.
27285 (compute_trg_info): Ditto.
27286 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
27287 (purge_dead_edges): Ditto.
27288 * loop-unswitch.c (unswitch_loop): Ditto.
27289 * cgraphclones.c (cgraph_clone_edge): Ditto.
27290 (cgraph_clone_node): Ditto.
27291 * tree-inline.c (copy_bb): Ditto.
27292 (copy_edges_for_bb): Ditto.
27293 (initialize_cfun): Ditto.
27294 (copy_cfg_body): Ditto.
27295 (expand_call_inline): Ditto.
27297 2013-04-08 Kai Tietz <ktietz@redhat.com>
27299 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
27300 TARGET_CYGWIN64 by TARGET_64BIT.
27302 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
27304 * config/epiphany/epiphany.md (GPR_1): New constant.
27305 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
27306 * config/epiphany/epiphany.c (gen_compare_reg):
27307 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
27308 is already in place.
27309 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
27310 Don't require being called during rtl expansion; If y operlaps r0,
27312 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
27313 (epiphany_expand_epilogue): Likewise.
27315 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
27316 Don't use CC_FPmode for ORDERED / UNORDERED.
27317 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
27319 * config/epiphany/constraints.md (CnL): New constraint.
27320 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
27321 * config/epiphany/predicates.md (add_operand): Allow 1024.
27323 * config/epiphany/epiphany.md (logical_op): New code iterator.
27324 (op_mnc): New code attribute.
27325 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
27326 (mov_f+1, mov_f+2): New peephole2 patterns.
27328 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
27329 (cstoresi4): Also allow re-use of zero result when doing a NE
27330 comparison to a non-zero operand.
27331 Use (clobber (scratch)) for first insn if the gpr output is not needed.
27333 * config/epiphany/epiphany.md (<insn_opname>v2si3):
27334 Use gen_addsi3_i / gen_subsi3_i.
27336 2013-04-08 Jakub Jelinek <jakub@redhat.com>
27340 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
27341 contain anything but clobbers, at most one __builtin_stack_restore,
27342 optionally debug stmts and final resx, and if it has at least one
27343 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
27344 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
27345 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
27346 which isn't defaut definition, remove them.
27347 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
27348 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
27349 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
27350 with MEM_REF LHS with SSA_NAME address.
27352 2013-04-08 Jeff Law <law@redhat.com>
27354 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
27356 2013-04-08 Richard Biener <rguenther@suse.de>
27358 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
27360 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
27361 determined vector type.
27362 (vect_analyze_data_refs): Likewise.
27363 (vect_get_new_vect_var): Adjust.
27364 (vect_create_destination_var): Preserve SSA name versions.
27365 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
27366 not dump anything here.
27368 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
27370 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
27371 Add member lr_slot_known.
27372 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
27374 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
27375 Remove code that sets lr_slot_offset according to what a previous
27376 version of epiphany_emit_save_restore used to do.
27377 (epiphany_emit_save_restore): When doing an lr save or restore,
27378 set/verify lr_slot_known and lr_slot_offset.
27380 2013-04-08 Xinyu Qi <xyqi@marvell.com>
27383 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
27386 2013-04-08 Richard Biener <rguenther@suse.de>
27388 * alias.c (find_base_term): Fix thinko in previous change.
27390 2013-04-08 Jakub Jelinek <jakub@redhat.com>
27392 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
27393 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
27394 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
27395 if possible to compute val.
27396 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
27397 For QImode integers don't require anything about precision. Use
27398 const_with_all_bytes_same to find out if the constant doesn't have
27399 repeated bytes in it.
27401 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27403 * config/s390/s390.c (s390_expand_insv): Only accept insertions
27406 2013-04-08 Marek Polacek <polacek@redhat.com>
27408 PR rtl-optimization/48182
27409 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
27412 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27415 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
27416 nuses, make sure we have a label.
27418 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27421 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
27422 (rs6000_emit_swdiv_low_precision): Remove.
27423 (rs6000_emit_swdiv): Rewrite to handle between one and four
27424 iterations of Newton-Raphson generally; modify required number of
27425 iterations for some cases.
27426 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
27428 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
27430 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
27431 set-but-unused variable.
27433 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
27434 basic blocks of released function bodies garbage-collectable.
27436 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
27437 (struct rtl_opt_pass): Add TODO_df_finish.
27439 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
27441 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27443 * config/arm/constraints.md (q): New constraint.
27444 * config/arm/ldrdstrd.md: New file.
27445 * config/arm/arm.md (ldrdstrd.md) New include.
27446 (arm_movdi): Use "q" instead of "r" constraint
27447 for double-word memory access.
27448 (movdf_soft_insn): Likewise.
27449 * config/arm/vfp.md (movdi_vfp): Likewise.
27450 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
27451 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
27452 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
27453 (mem_ok_for_ldrd_strd): Likewise.
27454 (output_move_double): Update assertion.
27456 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27458 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
27460 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27462 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
27463 define_insn_and_split.
27464 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
27466 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27468 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
27469 define_insn_and_split.
27470 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
27471 (shiftsi3_compare): New pattern.
27472 (rrx): New pattern.
27473 * config/arm/unspecs.md (UNSPEC_RRX): New.
27475 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27477 * config/arm/arm.md (negdi_extendsidi): New pattern.
27478 (negdi_zero_extendsidi): Likewise.
27480 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27482 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
27483 define_insn_and_split.
27484 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
27485 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
27487 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27489 * config/arm/arm.md (arm_subdi3): Convert define_insn into
27490 define_insn_and_split.
27491 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
27492 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
27494 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27496 * config/arm/arm.md (subsi3_carryin): New pattern.
27497 (subsi3_carryin_const): Likewise.
27498 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
27499 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
27501 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27503 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
27505 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27507 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
27508 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
27510 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27512 * config/arm/arm.c (arm_expand_builtin): Change fcode
27513 type to unsigned int.
27515 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27517 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
27519 2013-04-04 Ian Lance Taylor <iant@google.com>
27521 * doc/standards.texi (Standards): The Go frontend supports the Go 1
27524 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
27526 PR middle-end/56729
27527 * df-scan.c (df_insn_delete): Disable failing assert.
27529 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27531 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
27532 New function prototype.
27533 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
27534 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
27535 (arm_builtin_vectorized_function): New function.
27537 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27539 * config/arm/arm_neon_builtins.def: New file.
27540 * config/arm/arm.c (neon_builtin_data): Move contents to
27541 arm_neon_builtins.def.
27542 (enum arm_builtins): Include neon builtin definitions.
27543 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
27544 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
27546 2013-04-04 Marek Polacek <polacek@redhat.com>
27548 PR tree-optimization/48186
27549 * predict.c (maybe_hot_frequency_p): Return false if
27550 HOT_BB_FREQUENCY_FRACTION is 0.
27551 (cgraph_maybe_hot_edge_p): Likewise.
27553 2013-04-04 Richard Biener <rguenther@suse.de>
27555 PR tree-optimization/56826
27556 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
27559 2013-04-04 Richard Biener <rguenther@suse.de>
27561 PR tree-optimization/56213
27562 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
27563 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
27565 2013-04-04 Richard Biener <rguenther@suse.de>
27567 PR tree-optimization/56837
27568 * tree-loop-distribution.c (classify_partition): For non-zero
27569 values require that the value has the same precision as its
27570 mode to be useful as memset value.
27572 2013-04-03 Nick Clifton <nickc@redhat.com>
27574 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
27575 (fmssf4): Use fmsf.s on E3V5 architectures.
27576 (fnmasf4): Use fnmaf.s on E3V5 architectures.
27577 (fnmssf4): Use fnmsf.s on E3V5 architectures.
27579 2013-04-03 Jeff Law <law@redhat.com>
27581 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
27582 (lra-eliminations.o): Likewise.
27584 2013-04-03 Teresa Johnson <tejohnson@google.com>
27586 * gcov-io.c (compute_working_sets): Moved most of body of old
27587 compute_working_sets here from profile.c.
27588 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
27589 (gcov_working_set_t): Moved typedef here from basic-block.h
27590 (compute_working_set): Declare.
27591 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
27592 (get_working_sets): Renamed from compute_working_set,
27593 replace most of body with call to new compute_working_sets.
27594 (get_exec_counts): Replace call to compute_working_sets
27595 to get_working_sets.
27596 * profile.h (get_working_sets): Renamed from compute_working_set.
27597 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
27598 to get_working_sets.
27599 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
27600 * gcov-dump.c (dump_working_sets): New function.
27602 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
27604 * hwint.c (sext_hwi, zext_hwi): New functions.
27605 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
27606 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
27607 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
27608 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
27609 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
27610 (sext_hwi, zext_hwi): New functions.
27612 2013-04-03 Jeff Law <law@redhat.com>
27614 PR tree-optimization/56799
27615 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
27616 back test for widening conversion erroneously dropped in prior change.
27618 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27621 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
27622 instead of next_real_insn.
27624 2013-04-03 Marek Polacek <polacek@redhat.com>
27627 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
27629 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27632 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
27634 (thumb1_output_casesi): Likewise.
27635 (thumb2_output_casesi): Likewise.
27637 2013-04-03 Richard Biener <rguenther@suse.de>
27639 PR tree-optimization/56817
27640 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
27642 (tree_unroll_loops_completely_1): ... new function to manually
27643 walk the loop tree, properly defering outer loops of unrolled
27644 loops to later iterations.
27646 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
27648 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
27649 (vectorizable_load): Likewise.
27650 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
27651 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
27653 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
27655 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
27658 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27660 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
27662 2013-04-03 Bin Cheng <bin.cheng@arm.com>
27664 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
27666 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
27668 PR tree-optimization/56790
27669 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
27672 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
27674 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
27676 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
27677 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
27680 2013-04-03 Jakub Jelinek <jakub@redhat.com>
27683 * tree.h (force_folding_builtin_constant_p): New decl.
27684 * builtins.c (force_folding_builtin_constant_p): New variable.
27685 (fold_builtin_constant_p): Fold immediately also if
27686 force_folding_builtin_constant_p.
27688 2013-04-03 Richard Biener <rguenther@suse.de>
27690 PR tree-optimization/56812
27691 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
27692 DRs of the same interleaving chain are independent.
27694 2013-04-02 Jason Merrill <jason@redhat.com>
27696 * gdbinit.in (pbb): Use debug fn.
27698 2013-04-02 Lawrence Crowl <crowl@google.com>
27700 * sese.h (struct ivtype_map_elt_s): Remove unused.
27701 (extern debug_ivtype_map): Remove unused.
27702 (extern eq_ivtype_map_elts): Remove unused.
27703 * sese.c (debug_ivtype_map): Removed unused.
27704 (debug_ivtype_map_1): Removed unused.
27705 (debug_ivtype_elt): Remove unused.
27706 (eq_ivtype_map_elts): Remove unused.
27708 2013-04-02 Kai Tietz <ktietz@redhat.com>
27711 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
27712 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
27713 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
27715 (legitimize_pe_coff_symbol): Likewise.
27716 (is_imported_p): New helper-function.
27717 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
27718 for Windows x64 targets.
27719 (ix86_expand_prologue): Optimize for pe-coff targets.
27720 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
27721 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
27722 medium/large code-model.
27723 (legitimize_pic_address): Likewise.
27724 (legitimize_tls_address): Likewise.
27725 (ix86_expand_call): Likewise.
27726 (x86_output_mi_thunk): Likewise.
27727 (get_dllimport_decl): Add new beimport argument.
27728 (construct_plt_address): Don't assert for x64 pe-coff targets.
27729 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
27731 (SYMBOL_FLAG_STUBVAR): New macro.
27732 (SYMBOL_REF_STUBVAR_P): Likewise.
27733 * config/i386/winnt.c (stub_list): New structure.
27734 (stub_head): New local variable.
27735 (i386_pe_record_stub): New function.
27736 (i386_pe_file_end): Emit refptr-stubs.
27738 2013-04-02 Jakub Jelinek <jakub@redhat.com>
27740 PR rtl-optimization/56745
27741 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
27742 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
27745 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
27746 and both of them are MEM_REFs, just compare first argument for
27747 equality and attempt to deal even with differing offsets.
27750 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
27751 of gimple_clobber_p to be MEM_REF.
27752 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
27753 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
27754 after gimplification.
27755 * asan.c (get_mem_ref_of_assignment): Don't instrument
27756 gimple_clobber_p stmts.
27757 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
27758 gimple_clobber_p stmt if they have MEM_REF lhs and
27759 are dead because of another gimple_clobber_p stmt.
27760 * tree-ssa-live.c (clear_unused_block_pointer): Treat
27761 gimple_clobber_p stmts like debug stmts.
27762 (remove_unused_locals): Remove clobbers with MEM_REF lhs
27763 that refer to unused VAR_DECLs or uninitialized values.
27764 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
27765 gimple_clobber_p stmts if they refer to removed parameters.
27766 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
27769 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
27771 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
27772 using SWI48 mode attribute.
27774 2013-04-02 Wei Mi <wmi@google.com>
27776 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
27777 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
27778 *<rotate_insn><mode>3_mask in i386.md.
27780 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
27782 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
27784 2013-04-02 Richard Biener <rguenther@suse.de>
27786 PR tree-optimization/56778
27787 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27788 Runtime alias tests are not supported for gather loads.
27789 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
27790 stmts referenced from SSA operands before updating SSA form.
27792 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
27793 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27795 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
27796 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
27797 * config/arm/cortex-a53.md: New file.
27798 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
27799 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
27800 * config/arm/arm.c (arm_issue_rate): Likewise.
27801 * config/arm/arm-tune.md: Regenerate
27802 * config/arm/arm-tables.opt: Regenerate.
27803 * config/arm/arm-cores.def: Add cortex-a53.
27805 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
27807 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
27810 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
27812 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
27813 scalar load/store operations using B/H registers.
27814 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
27816 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
27818 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
27820 * config/aarch64/aarch64.c
27821 (aarch64_simd_scalar_immediate_valid_for_move): New.
27822 * config/aarch64/aarch64-protos.h
27823 (aarch64_simd_scalar_immediate_valid_for_move): New.
27824 * config/aarch64/constraints.md (Dh, Dq): New.
27825 * config/aarch64/iterators.md (hq): New.
27827 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
27829 * reorg.c (get_branch_condition): Deal with conditional returns.
27830 (fill_simple_delay_slots): Remove dead code dealing with jumps.
27832 2013-04-01 Wei Mi <wmi@google.com>
27834 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
27835 Truncate operand 2 using %b asm operand modifier.
27836 (*<shift_insn><mode>3_mask): Ditto.
27837 (*<rotate_insn><mode>3_mask): Ditto.
27839 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
27841 PR middle-end/56798
27842 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
27844 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
27846 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
27848 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
27850 2013-03-30 Lawrence Crowl <crowl@google.com>
27852 * dse.c (clear_alias_sets): Remove never set.
27853 (disqualified_clear_alias_sets): Remove never set.
27854 (clear_alias_mode_pool): Remove never set.
27855 (dse_step0): Remove condition that is never true.
27856 (canon_address): Remove condition that is never true.
27857 (dse_step7): Remove condition that is never true.
27858 (rest_of_handle_dse): Remove condition that is never true.
27859 (rest_of_handle_dse::did_global): Remove never read from above.
27860 (dse_step2_spill): Remove never called from above.
27861 (dse_step5_spill): Remove never called from above.
27863 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
27865 * doc/md.texi (Standard Names) <casesi>: Update documentation for
27866 JUMP_TABLE_DATA changes.
27867 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
27868 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
27869 (Insns) <jump_table_data>: New entry.
27870 * doc/tm.texi: Regenerate.
27872 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
27874 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
27875 for table jump at the end of a basic block using tablejump_p.
27876 * targhooks.c (default_invalid_within_doloop): Likewise.
27877 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
27878 target hook implementation that is identical to the default hook.
27879 (rs6000_invalid_within_doloop): Remove.
27881 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
27882 unused variable from tablejump_p call.
27884 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
27885 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
27886 (INSN_DELETED_P): Likewise.
27887 (emit_jump_table_data): New prototype.
27888 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
27889 after 4th as unused.
27890 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
27891 * sched-vis.c (print_insn): Likewise.
27892 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
27893 insn for compatibility with back ends that use next_active_insn to
27894 identify jump table data.
27895 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
27896 (remove_insn): Likewise.
27897 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
27899 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
27900 (emit_jump_table_data): New function.
27902 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
27903 basic block, a JUMP_TABLE_DATA never is.
27904 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
27905 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
27906 off from code handling real insns.
27907 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
27908 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
27909 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
27910 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
27911 is not a NONDEBUG_INSN_P.
27912 * ira-costs.c (scan_one_insn): Likewise.
27913 * jump.c (mark_all_labels): Likewise.
27914 (mark_jump_label_1): Likewise.
27915 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
27916 * lra.c (get_insn_freq): Expect all insns reaching here to be in
27918 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
27919 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
27920 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
27921 JUMP_TABLE_DATA_P insns.
27922 (calculate_elim_costs_all_insns): Likewise.
27923 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
27924 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
27925 (delete_output_reload): Code style fixups.
27926 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
27927 insn flags on this non-insn.
27928 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
27929 as scheduling barriers, for pre-change compatibility.
27930 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
27931 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
27933 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
27934 redundant JUMP_TABLE_DATA_P test.
27935 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
27936 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
27937 (frv_for_each_packet): Likewise.
27938 * config/i386/i386.c (min_insn_size): Likewise.
27939 (ix86_avoid_jump_mispredicts): Likewise.
27940 * config/m32r/m32r.c (m32r_is_insn): Likewise.
27941 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
27942 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
27943 (mips16_insn_length): Robustify.
27944 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
27945 (mips16_split_long_branches): Likewise.
27946 * config/pa/pa.c (pa_combine_instructions): Likewise.
27947 * config/rs6000/rs6000.c (get_next_active_insn): Treat
27948 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
27949 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
27950 as contributing to pool range lengths.
27951 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
27952 Remove redundant JUMP_TABLE_DATA_P test.
27953 (sh_loop_align): Likewise.
27954 (split_branches): Likewise.
27955 (sh_insn_length_adjustment): Likewise.
27956 * config/spu/spu.c (get_branch_target): Likewise.
27958 2013-03-29 Jan Hubicka <jh@suse.cz>
27960 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
27961 gcov streaming; stream hot bb threshold to ltrans.
27962 * predict.c (get_hot_bb_threshold): Break out from ....
27963 (maybe_hot_count_p): ... here.
27964 (set_hot_bb_threshold): New function.
27965 * lto-section-in.c (lto_section_name): Add profile.
27966 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
27967 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
27968 and data-streamer.h
27969 (histogram_entry): New structure.
27970 (histogram, histogram_pool): New global vars.
27971 (histogram_hash): New structure.
27972 (histogram_hash::hash): New method.
27973 (histogram_hash::equal): Likewise.
27974 (account_time_size): New function.
27975 (cmp_counts): New function.
27976 (dump_histogram): New function.
27977 (ipa_profile_generate_summary): New function.
27978 (ipa_profile_write_summary): New function.
27979 (ipa_profile_read_summary): New function.
27980 (ipa_profile): Decide on threshold.
27981 (pass_ipa_profile): Add ipa_profile_write_summary and
27982 ipa_profile_read_summary.
27983 * Makefile.in (ipa.o): Update dependencies.
27984 * lto-streamer.h (LTO_section_ipa_profile): New section.
27986 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
27988 * tree.h (VAR_P): New.
27990 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
27993 * doc/invoke.texi ([-fwhole-program]): Fix typo.
27995 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
27997 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
27998 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
27999 (control_flow_insn_p): Likewise.
28000 * cfgrtl.c (duplicate_insn_chain): Likewise.
28001 * final.c (get_attr_length_1): Likewise.
28002 (shorten_branches): Likewise.
28003 (final_scan_insn): Likewise.
28004 * function.c (instantiate_virtual_regs): Likewise.
28005 * gcse.c (insert_insn_end_basic_block): Likewise.
28006 * ira-costs.c (scan_one_insn): Likewise.
28007 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
28008 * lra.c (check_rtl): Likewise.
28009 * reload1.c (elimination_costs_in_insn): Likewise.
28010 * reorg.c (follow_jumps): Likewise.
28012 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
28013 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
28014 (thumb_far_jump_used_p): Likewise.
28015 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
28016 (workaround_speculation): Likewise.
28017 (add_sched_insns_for_speculation): Likewise.
28018 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
28019 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
28020 (frv_for_each_packet): Likewise.
28021 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
28022 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
28023 (final_emit_insn_group_barriers): Likewise.
28024 * config/m32r/m32r.c (m32r_is_insn): Likewise.
28025 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
28026 (mips16_insn_length): Likewise.
28027 * config/pa/pa.c (pa_reorg): Likewise.
28028 (pa_combine_instructions): Likewise.
28029 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
28030 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
28031 (sh_reorg): Likewise.
28032 (split_branches): Likewise.
28033 * config/spu/spu.c (get_branch_target): Likewise.
28035 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
28038 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
28040 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
28041 Fix declaration name.
28043 2013-03-28 Lawrence Crowl <crowl@google.com>
28045 * graphds.h (struct graph.indicies): Remove unused.
28046 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
28047 (SCOP_ORIGINAL_PDDRS): Remove unused.
28048 * sese.h (extern insert_loop_close_phis): Removed unused.
28049 (extern insert_guard_phis): Removed unused.
28050 (extern ivtype_map_elt_info): Removed unused.
28051 (new_ivtype_map_elt): Removed unused.
28052 * sese.c (ivtype_map_elt_info): Removed unused.
28054 2013-03-28 Lawrence Crowl <crowl@google.com>
28056 * Makefile.in: Add several missing include dependences.
28058 (test-dump.o): New. This object is not added to any executable,
28059 but is present for ad-hoc testing.
28061 (debug (const bitmap_head_def &)): New.
28062 (debug (const bitmap_head_def *)): New.
28064 (extern debug (const bitmap_head_def &)): New.
28065 (extern debug (const bitmap_head_def *)): New.
28067 (debug (edge_def &)): New.
28068 (debug (edge_def *)): New.
28070 (debug (basic_block_def &)): New.
28071 (debug (basic_block_def *)): New.
28073 (dump_node (const_tree, int, FILE *)): Correct source file.
28075 (debug (die_struct &)): New.
28076 (debug (die_struct *)): New.
28078 (extern debug (die_struct &)): New.
28079 (extern debug (die_struct *)): New.
28080 * gimple-pretty-print.c
28081 (debug (gimple_statement_d &)): New.
28082 (debug (gimple_statement_d *)): New.
28083 * gimple-pretty-print.h
28084 (extern debug (gimple_statement_d &)): New.
28085 (extern debug (gimple_statement_d *)): New.
28087 (debug (ira_allocno_copy &)): New.
28088 (debug (ira_allocno_copy *)): New.
28089 (debug (ira_allocno &)): New.
28090 (debug (ira_allocno *)): New.
28092 (extern debug (ira_allocno_copy &)): New.
28093 (extern debug (ira_allocno_copy *)): New.
28094 (extern debug (ira_allocno &)): New.
28095 (extern debug (ira_allocno *)): New.
28097 (debug (live_range &)): New.
28098 (debug (live_range *)): New.
28100 (debug (lra_live_range &)): New.
28101 (debug (lra_live_range *)): New.
28103 (debug (lra_live_range &)): New.
28104 (debug (lra_live_range *)): New.
28106 (debug (omega_pb_d &)): New.
28107 (debug (omega_pb_d *)): New.
28109 (extern debug (omega_pb_d &)): New.
28110 (extern debug (omega_pb_d *)): New.
28112 (debug (const rtx_def &)): New.
28113 (debug (const rtx_def *)): New.
28115 (debug_tree (tree): Move within file.
28116 (debug_raw (const tree_node &)): New.
28117 (debug_raw (const tree_node *)): New.
28118 (dump_tree_via_hooks (const tree_node *, int)): New.
28119 (debug (const tree_node &)): New.
28120 (debug (const tree_node *)): New.
28121 (debug_verbose (const tree_node &)): New.
28122 (debug_verbose (const tree_node *)): New.
28123 (debug_head (const tree_node &)): New.
28124 (debug_head (const tree_node *)): New.
28125 (debug_body (const tree_node &)): New.
28126 (debug_body (const tree_node *)): New.
28127 (debug_vec_tree (tree): Move and reimplement in terms of dump.
28128 (debug (vec<tree, va_gc> &)): New.
28129 (debug (vec<tree, va_gc> *)): New.
28131 (extern debug (const rtx_def &)): New.
28132 (extern debug (const rtx_def *)): New.
28134 (debug_raw (simple_bitmap_def &)): New.
28135 (debug_raw (simple_bitmap_def *)): New.
28136 (debug (simple_bitmap_def &)): New.
28137 (debug (simple_bitmap_def *)): New.
28139 (extern debug (simple_bitmap_def &)): New.
28140 (extern debug (simple_bitmap_def *)): New.
28141 (extern debug_raw (simple_bitmap_def &)): New.
28142 (extern debug_raw (simple_bitmap_def *)): New.
28144 (debug (vinsn_def &)): New.
28145 (debug (vinsn_def *)): New.
28146 (debug_verbose (vinsn_def &)): New.
28147 (debug_verbose (vinsn_def *)): New.
28148 (debug (expr_def &)): New.
28149 (debug (expr_def *)): New.
28150 (debug_verbose (expr_def &)): New.
28151 (debug_verbose (expr_def *)): New.
28152 (debug (vec<rtx> &)): New.
28153 (debug (vec<rtx> *)): New.
28155 (extern debug (vinsn_def &)): New.
28156 (extern debug (vinsn_def *)): New.
28157 (extern debug_verbose (vinsn_def &)): New.
28158 (extern debug_verbose (vinsn_def *)): New.
28159 (extern debug (expr_def &)): New.
28160 (extern debug (expr_def *)): New.
28161 (extern debug_verbose (expr_def &)): New.
28162 (extern debug_verbose (expr_def *)): New.
28163 (extern debug (vec<rtx> &)): New.
28164 (extern debug (vec<rtx> *)): New.
28166 (_list_iter_cond_expr): Make inline instead of static.
28168 (debug (sreal &)): New.
28169 (debug (sreal *)): New.
28171 (extern debug (sreal &)): New.
28172 (extern debug (sreal *)): New.
28174 (extern debug_raw (const tree_node &)): New.
28175 (extern debug_raw (const tree_node *)): New.
28176 (extern debug (const tree_node &)): New.
28177 (extern debug (const tree_node *)): New.
28178 (extern debug_verbose (const tree_node &)): New.
28179 (extern debug_verbose (const tree_node *)): New.
28180 (extern debug_head (const tree_node &)): New.
28181 (extern debug_head (const tree_node *)): New.
28182 (extern debug_body (const tree_node &)): New.
28183 (extern debug_body (const tree_node *)): New.
28184 (extern debug (vec<tree, va_gc> &)): New.
28185 (extern debug (vec<tree, va_gc> *)): New.
28187 (debug (struct loop &)): New.
28188 (debug (struct loop *)): New.
28189 (debug_verbose (struct loop &)): New.
28190 (debug_verbose (struct loop *)): New.
28191 * tree-dump.c: Add header dependence.
28193 (extern debug (struct loop &)): New.
28194 (extern debug (struct loop *)): New.
28195 (extern debug_verbose (struct loop &)): New.
28196 (extern debug_verbose (struct loop *)): New.
28198 (debug (data_reference &)): New.
28199 (debug (data_reference *)): New.
28200 (debug (vec<data_reference_p> &)): New.
28201 (debug (vec<data_reference_p> *)): New.
28202 (debug (vec<ddr_p> &)): New.
28203 (debug (vec<ddr_p> *)): New.
28205 (extern debug (data_reference &)): New.
28206 (extern debug (data_reference *)): New.
28207 (extern debug (vec<data_reference_p> &)): New.
28208 (extern debug (vec<data_reference_p> *)): New.
28209 (extern debug (vec<ddr_p> &)): New.
28210 (extern debug (vec<ddr_p> *)): New.
28212 (debug (pt_solution &)): New.
28213 (debug (pt_solution *)): New.
28215 (extern debug (pt_solution &)): New.
28216 (extern debug (pt_solution *)): New.
28218 (debug (_var_map &)): New.
28219 (debug (_var_map *)): New.
28220 (debug (tree_live_info_d &)): New.
28221 (debug (tree_live_info_d *)): New.
28223 (extern debug (_var_map &)): New.
28224 (extern debug (_var_map *)): New.
28225 (extern debug (tree_live_info_d &)): New.
28226 (extern debug (tree_live_info_d *)): New.
28228 2013-03-28 Jan Hubicka <jh@suse.cz>
28230 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
28232 2013-03-28 Ian Bolton <ian.bolton@arm.com>
28234 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
28235 record only when desired or required.
28237 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
28239 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
28240 *vec_extractv2di_1_rex64. Use x64 isa attribute.
28242 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28244 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
28245 (*andsi3_compare0_uxtw): New pattern.
28246 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
28247 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
28249 2013-03-28 Jan Hubicka <jh@suse.cz>
28251 * data-streamer-in.c (streamer_read_gcov_count): New function.
28252 * gimple-streamer-out.c: Include value-prof.h.
28253 (output_gimple_stmt): Output histogram.
28254 (output_bb): Use streamer_write_gcov_count.
28255 * value-prof.c: Include data-streamer.h
28256 (dump_histogram_value): Add HIST_TYPE_MAX.
28257 (stream_out_histogram_value): New function.
28258 (stream_in_histogram_value): New function.
28259 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
28260 (stream_out_histogram_value, stream_in_histogram_value): Declare.
28261 * data-streamer-out.c (streamer_write_gcov_count): New function.
28262 (streamer_write_gcov_count_stream): New function.
28263 * lto-cgraph.c (lto_output_edge): Update counter streaming.
28264 (lto_output_node): Likewise.
28265 (input_node, input_edge): Likewise.
28266 * lto-streamer-out.c (output_cfg): Update streaming.
28267 * lto-streamer-in.c (input_cfg): Likewise.
28268 * data-streamer.h (streamer_write_gcov_count,
28269 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
28270 * gimple-streamer-in.c: Include value-prof.h
28271 (input_gimple_stmt): Input histograms.
28272 (input_bb): Update profile streaming.
28274 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
28276 * genmodes.c (emit_max_int): New function.
28277 (emit_insn_modes_h): Added call to emit_max_function.
28278 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
28280 * machmode.def: Fixed comment.
28282 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
28284 * combine.c (try_combine): Removed useless assert.
28285 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
28287 2013-03-28 Marek Polacek <polacek@redhat.com>
28288 Richard Biener <rguenther@suse.de>
28290 PR tree-optimization/56695
28291 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
28292 build signed result of a vector comparison.
28293 * tree-cfg.c (verify_gimple_comparison): Check that a result
28294 of a vector comparison has signed type.
28296 2013-03-28 Richard Biener <rguenther@suse.de>
28298 PR tree-optimization/37021
28299 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
28300 do not restrict gaps between groups.
28301 * tree-vect-stmts.c (vectorizable_load): Properly account for
28302 a gap between groups.
28304 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
28306 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
28307 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
28310 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
28312 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
28313 * doc/extend.texi (Named Address Spaces): Ditto.
28314 (Variable Attributes): Ditto.
28316 2013-03-27 Kai Tietz <ktietz@redhat.com>
28318 * config.build: Add support for cygwin x64 target.
28319 * config.gcc: Likewise.
28320 * config.host: Likewise.
28321 * configure.ac: Likewise
28322 * configure: Regenerated.
28324 2013-03-27 Kai Tietz <ktietz@redhat.com>
28326 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
28327 * config/i386/t-cygwin-w64: New file.
28328 * config/i386/cygwin-w64.h: New file.
28329 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
28330 and add support for x64-cygwin target.
28331 (CPP_SPEC): Likewise.
28332 (CXX_WRAP_SPEC_LIST): Undefine before define.
28333 (LIBGCJ_SONAME): Use 15 as version.
28335 2013-03-27 Richard Biener <rguenther@suse.de>
28337 PR tree-optimization/56716
28338 * tree-ssa-structalias.c (perform_var_substitution): Adjust
28339 dumping for ref nodes.
28341 2013-03-27 Martin Jambor <mjambor@suse.cz>
28343 PR tree-optimization/55334
28344 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
28345 restricted pointers to arrays.
28347 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
28349 * Makefile.in (.SUFFIXES): Add .cc.
28350 (.c.o): Apply same recipe for implicit rule .cc.o.
28352 2013-03-27 Richard Biener <rguenther@suse.de>
28354 PR tree-optimization/37021
28355 * tree-vect-data-refs.c (vect_check_strided_load): Allow
28356 REALPART/IMAGPART_EXPRs around the supported refs.
28357 * tree-ssa-structalias.c (find_func_aliases): Assume that
28358 floating-point values are not used to transfer pointers.
28360 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
28362 * target.def (TARGET_HAS_IFUNC_P): New target hook.
28363 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
28364 * doc/tm.texi: Regenerate.
28365 * targhooks.h (default_has_ifunc_p): New.
28366 * targhooks.c (default_has_ifunc_p): Ditto.
28367 * config/linux-protos.h: New file.
28368 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
28369 hook for linux which disables support of indirect functions in android.
28370 * config/linux-android.c: New file.
28371 * config/t-linux-android.c: Ditto.
28372 * config.gcc: Added new object file linux-android.o.
28373 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
28374 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
28375 * varasm.c (do_assemble_alias): Likewise.
28376 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
28377 doesn't support indirect functions.
28378 * configure: Regenerate.
28380 2013-03-27 Bin Cheng <bin.cheng@arm.com>
28383 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
28384 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
28387 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28389 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
28391 2013-03-27 Terry Guo <terry.guo@arm.com>
28393 * config/arm/arm-cores.def: Added core cortex-r7.
28394 * config/arm/arm-tune.md: Regenerated.
28395 * config/arm/arm-tables.opt: Regenerated.
28396 * doc/invoke.texi: Added entry for core cortex-r7.
28398 2013-03-27 Walter Lee <walt@tilera.com>
28400 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
28401 double-decrement of next_scratch_regno.
28403 2013-03-27 Walter Lee <walt@tilera.com>
28405 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
28407 (insn_v1mulus): Ditto.
28408 (insn_v2muls): Ditto.
28410 2013-03-27 Walter Lee <walt@tilera.com>
28412 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
28413 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
28415 2013-03-27 Walter Lee <walt@tilera.com>
28417 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
28418 (*sibcall_value): Ditto.
28420 2013-03-27 Walter Lee <walt@tilera.com>
28422 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
28423 (insn_mnz_v8qi): ... this ...
28424 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
28426 (insn_v<n>mnz): Replaced by ...
28427 (insn_v1mnz): ... this ...
28428 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
28430 (insn_mz_<mode>): Replaced by ...
28431 (insn_mz_v8qi): ... this ...
28432 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
28434 (insn_v<n>mz): Replaced by ...
28435 (insn_v1mz): ... this ...
28436 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
28439 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
28441 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
28443 2013-03-26 Roland McGrath <mcgrathr@google.com>
28445 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
28446 than fprintf with a non-constant, non-format string.
28448 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
28450 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
28451 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
28452 operand 0 predicate.
28453 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
28454 attribute. Use general_x64nomem_operand as operand 1 predicate.
28455 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
28456 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
28457 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
28458 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
28459 (mov<mode>_insv_1): Remove expander. Merge insn with
28460 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
28461 Use general_x64nomem_operand as operand 1 predicate.
28462 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
28463 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
28464 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
28465 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
28466 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
28467 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
28468 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
28469 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
28470 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
28471 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
28472 (general_x64nomem_operand): Ditto.
28474 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
28476 * config/rtems.opt: Add -pthread option.
28478 2013-03-26 Richard Biener <rguenther@suse.de>
28480 * alias.c (find_base_term): Avoid redundant and not used recursion.
28481 (base_alias_check): Get the initial base term from the caller.
28482 (true_dependence_1): Compute and pass base terms to base_alias_check.
28483 (write_dependence_p): Likewise.
28484 (may_alias_p): Likewise.
28486 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
28488 * config/aarch64/aarch64.c (aarch64_classify_address): Support
28489 PC-relative load in SI modes and above only.
28491 2013-03-26 Xinyu Qi <xyqi@marvell.com>
28493 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
28494 * config/arm/iwmmxt.md (WCGR0): Update.
28495 (WCGR1, WCGR2, WCGR3): Likewise.
28497 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
28499 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
28500 Use x64 and nox64 isa attributes.
28502 2013-03-26 Richard Biener <rguenther@suse.de>
28504 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
28505 alignment computations and rely on get_object_alignment_1
28506 for the !TYPE_P case.
28507 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
28509 2013-03-26 Walter Lee <walt@tilera.com>
28511 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
28512 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
28514 2013-03-25 Jeff Law <law@redhat.com>
28516 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
28517 check for INTEGRAL_TYPE_P that was missing due to checking in
28518 wrong version of prior patch.
28520 2013-03-25 Walter Lee <walt@tilera.com>
28522 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
28523 TILEGX_INSN_SHUFFLEBYTES1.
28524 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
28526 (tilegx_builtins): Ditto.
28527 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
28529 2013-03-25 Walter Lee <walt@tilera.com>
28531 * config/tilegx/tilegx.md (floatsisf2): New pattern.
28532 (floatunssisf2): New pattern.
28533 (floatsidf2): New pattern.
28534 (floatunssidf2): New pattern.
28536 2013-03-25 Walter Lee <walt@tilera.com>
28538 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
28539 tests for constraint J, K, N, P.
28541 2013-03-25 Walter Lee <walt@tilera.com>
28543 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
28544 Use indirect/pcrel encoding.
28545 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
28548 2013-03-25 Steve Ellcey <sellcey@mips.com>
28550 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
28551 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
28552 * config/mips/mips.c (mips_option_override): Set IMADD default.
28553 * config/mips/mips.h (PTF_AVOID_IMADD): New.
28554 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
28555 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
28556 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
28557 * doc/invoke.texi (-mimadd/-mno-imadd): New.
28559 2013-03-25 Jeff Law <law@redhat.com>
28561 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
28562 slightly to avoid creating and folding useless trees. Simplify
28563 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
28565 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
28567 * config/i386/i386.md (*zero_extendsidi2): Merge with
28568 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
28569 * config/i386/predicates.md (x86_64_zext_operand): Rename from
28570 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
28571 targets. Clarify comment.
28573 2013-03-25 Martin Jambor <mjambor@suse.cz>
28575 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
28576 pass-through jump functions differently.
28577 (ipa_read_jump_function): Likewise. Also use setter functions to set
28580 2013-03-25 Martin Jambor <mjambor@suse.cz>
28582 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
28583 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
28585 (ipa_get_indirect_edge_target): New function.
28586 (devirtualization_time_bonus): New parameter known_aggs, pass it to
28587 ipa_get_indirect_edge_target. Update all callers.
28588 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
28589 ipa_get_indirect_edge_target_1 instead of calling
28590 ipa_get_indirect_edge_target.
28591 (create_specialized_node): Pass aggvlas to
28592 ipcp_discover_new_direct_edges.
28594 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28596 * config/arm/arm.md (f_sels, f_seld): New types.
28597 (*cmov<mode>): New pattern.
28598 * config/arm/predicates.md (arm_vsel_comparison_operator): New
28601 2013-03-25 Kai Tietz <ktietz@redhat.com>
28603 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
28604 POSIX-printf for mingw-hosted builds.
28606 2013-03-25 Richard Biener <rguenther@suse.de>
28608 PR middle-end/56694
28609 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
28610 must-not-throw stmt location.
28612 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28614 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
28615 Emit load-acquire versions when acq is true.
28616 (arm_emit_store_exclusive): Add rel parameter.
28617 Emit store-release versions when rel is true.
28618 (arm_split_compare_and_swap): Use acquire-release instructions
28620 of barriers when appropriate.
28621 (arm_split_atomic_op): Likewise.
28622 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
28623 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
28624 (VUNSPEC_SLX): Likewise.
28625 (VUNSPEC_LDA): Likewise.
28626 (VUNSPEC_STL): Likewise.
28627 * config/arm/sync.md (atomic_load<mode>): New pattern.
28628 (atomic_store<mode>): Likewise.
28629 (arm_load_acquire_exclusive<mode>): Likewise.
28630 (arm_load_acquire_exclusivesi): Likewise.
28631 (arm_load_acquire_exclusivedi): Likewise.
28632 (arm_store_release_exclusive<mode>): Likewise.
28634 2013-03-25 Catherine Moore <clm@codesourcery.com>
28636 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
28637 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
28638 * config/mip/predicates.md (lwsp_swsp_operand,
28639 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
28640 sb16_operand, db4_operand, db7_operand, ib3_operand,
28641 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
28642 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
28643 andi16_operand): New predicates.
28644 * config/mips/mips.md (compression): New attribute.
28645 (enabled): New attribute.
28646 (length): Consider compression in computing length.
28647 (shift_compression): New code attribute.
28648 (*add<mode>3): New operands. Record compression.
28649 (sub<mode>3): Likewise.
28650 (one_cmpl<mode>2): Likewise.
28651 (*and<mode>3): Likewise.
28652 (*ior<mode>3): Likewise.
28653 (unnamed pattern for xor): Likewise.
28654 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
28655 (*<optab><mode>3): Likewise.
28656 (*mov<mode>_internal: Likewise.
28657 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
28658 (mips_unsigned_immediate_p): New.
28659 (umips_lwsp_swsp_address_p): New.
28660 (m16_based_address_p): New.
28661 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
28662 (mips_unsigned_immediate_p): New prototype.
28663 (lwsp_swsp_address_p): New prototype.
28664 (m16_based_address_p): New prototype.
28665 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
28666 (mips_signed_immediate_p): New function.
28667 (m16_based_address_p): New function.
28668 (lwsp_swsp_address_p): New function.
28669 (mips_print_operand_punctuation): Recognize short delay slot insns
28670 for microMIPS.add<mode>3"
28672 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28675 * config/arm/iterators.md (v_cmp_result): New mode attribute.
28676 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
28678 2013-03-25 Richard Biener <rguenther@suse.de>
28680 PR tree-optimization/56689
28681 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
28684 2013-03-25 Richard Biener <rguenther@suse.de>
28686 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
28688 (memory_references): Likewise.
28689 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
28690 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
28691 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
28692 (gather_mem_refs_in_loops): Fold into ...
28693 (analyze_memory_references): ... this. Move initialization
28694 to tree_ssa_lim_initialize.
28695 (fill_always_executed_in): Rename to ...
28696 (fill_always_executed_in_1): ... this.
28697 (fill_always_executed_in): Move contains_call computation to
28698 this new function from ...
28699 (tree_ssa_lim_initialize): ... here.
28700 (tree_ssa_lim): Call fill_always_executed_in.
28702 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
28704 * postreload.c (reload_combine): Fix code detecting returns.
28706 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
28708 * function.c (emit_use_return_register_into_block): On cc0 targets,
28709 do not emit the sequence between cc0 setter and user.
28711 2013-03-25 Kai Tietz <ktietz@redhat.com>
28713 * config/i386/predicates.md (local_symbolic_operand): Interpret
28714 dll-imported symbols as none-local.
28716 2013-03-25 Richard Biener <rguenther@suse.de>
28718 * tree-ssa-loop-im.c (struct depend): Remove.
28719 (struct lim_aux_data): Make depends a vec of gimples.
28720 (free_lim_aux_data): Adjust.
28721 (add_dependency): Likewise.
28722 (set_level): Likewise.
28724 2013-03-25 Richard Biener <rguenther@suse.de>
28726 PR middle-end/56434
28727 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
28728 the pointer returned by calls with ECF_MALLOC set.
28730 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
28732 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
28734 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
28736 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
28737 using MMXMODE mode iterator.
28738 (*move<mode>_internal): Merge with *movv2sf_internal and
28739 *movv2sf_internal_rex64 using MMXMODE mode iterator.
28741 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
28743 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
28744 (record_last_mem_set_info): Likewise.
28746 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
28747 of XNEWVEC followed by memset.
28748 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
28750 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
28752 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
28753 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
28754 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
28755 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
28756 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
28757 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
28758 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
28759 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
28760 BARRIER_P instead of GET_CODE.
28762 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
28764 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
28765 inaccuracy in the probing code.
28767 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
28768 (ctrapdi4): Likewise.
28770 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
28772 * calls.c (expand_call): Add missing guard to code handling return
28773 of non-BLKmode structures in MSB.
28774 * function.c (expand_function_end): Likewise.
28776 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
28778 * combine.c (try_combine): Adjust comment. Do not add the set of
28779 insn #0 if the destination indirectly is set or dies in insn #2.
28780 Tidy up code to distribute a new note.
28782 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
28784 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
28785 also for alternatives 16 and 17.
28787 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
28789 * config/i386/sse.md (*mov<mode>_internal): Merge with
28790 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
28791 Emit insn template depending on type attribute. Use
28792 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
28793 movd instead of movq mnemonic for interunit moves. Rewrite mode
28794 attribute calculation. Remove unit attribute calculation.
28795 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
28796 Set prefix_data16 attribute for DImode ssemov types.
28797 Use Ym instead of y for SSE-MMX conversion alternatives.
28798 Reorder operand constraints.
28800 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
28802 * df.h (df_insn_delete): Adjust prototype.
28803 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
28804 and let it decide whether mark the basic block dirty.
28805 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
28806 * df-scan.c (df_insn_info_delete): New helper function, split
28807 off from df_insn_delete.
28808 (df_scan_free_bb_info): Use it.
28809 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
28811 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
28812 that the insn is actually an insn and it has a non-NULL basic block.
28813 Do not mark basic block dirty if only deleting a DEBUG_INSN.
28815 2013-03-22 Richard Biener <rguenther@suse.de>
28817 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
28819 (mem_ref_alloc): Do not allocate them.
28820 (refs_independent_p): Do not query or maintain a cache.
28822 2013-03-22 Richard Biener <rguenther@suse.de>
28824 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
28825 (gather_mem_refs_in_loops): Do not compute it.
28826 (analyze_memory_references): Do not allocate it.
28827 (tree_ssa_lim_finalize): Do not free it.
28828 (for_all_locs_in_loop): Do not query all_refs_in_loop.
28830 2013-03-22 Richard Biener <rguenther@suse.de>
28832 * is-a.h (as_a): Use gcc_checking_assert.
28834 2013-03-22 Ian Bolton <ian.bolton@arm.com>
28836 * config/aarch64/aarch64.c (aarch64_print_operand): New
28837 format specifier for printing a constant in hex.
28838 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
28839 format specifier for printing second operand.
28841 2013-03-22 Richard Biener <rguenther@suse.de>
28843 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
28845 (gather_mem_refs_in_loops): Perform store accumulation here.
28846 (create_vop_ref_mapping_loop): Remove.
28847 (create_vop_ref_mapping): Likewise.
28848 (analyze_memory_references): Initialize refs_stored_in_loop.
28849 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
28850 (record_indep_loop): Remove.
28851 (record_dep_loop): New function.
28852 (ref_indep_loop_p_1): Adjust to only walk over references
28853 in the loop, not its subloops.
28854 (ref_indep_loop_p): Rename to ...
28855 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
28856 maintaining a more fine-grained cache.
28857 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
28858 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
28860 2013-03-22 Richard Biener <rguenther@suse.de>
28862 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
28863 (struct mem_ref): Make accesses_in_loop a vec of a vec of
28864 aggregate mem_ref_loc.
28865 (free_mem_ref_locs): Inline into ...
28866 (memref_free): ... this and adjust.
28867 (mem_ref_alloc): Adjust.
28868 (mem_ref_locs_alloc): Remove.
28869 (record_mem_ref_loc): Adjust.
28870 (get_all_locs_in_loop): Rewrite into ...
28871 (for_all_locs_in_loop): ... this iterator.
28872 (rewrite_mem_ref_loc): New functor.
28873 (rewrite_mem_refs): Use for_all_locs_in_loop.
28874 (sm_set_flag_if_changed): New functor.
28875 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
28876 (ref_always_accessed): New functor.
28877 (ref_always_accessed_p): Use for_all_locs_in_loop.
28879 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
28881 * tree-pass.h (PROP_gimple_lvec): New.
28882 * passes.c (dump_properties): Handle PROP_gimple_lvec.
28883 (init_optimization_passes): Move pass_lower_vector.
28884 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
28886 (pass_lower_vector): Provide PROP_gimple_lvec.
28887 (pass_lower_vector_ssa): Likewise.
28888 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
28890 2013-03-21 Mark Wielaard <mjw@redhat.com>
28892 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
28894 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
28896 * config/i386/i386.md (*movdi_internal): Disparage slightly
28897 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
28898 conversion alternatives.
28900 2013-03-21 Jakub Jelinek <jakub@redhat.com>
28902 PR middle-end/48087
28903 * diagnostic.def (DK_WERROR): New kind.
28904 * diagnostic.h (werrorcount): Define.
28905 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
28906 promoted to DK_ERROR, increment DK_WERROR counter instead of
28908 * toplev.c (toplev_main): Call print_ignored_options even if
28909 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
28910 even if just werrorcount is non-zero.
28913 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
28915 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
28916 (string_cst_pool_decl): New function.
28917 (optimize_one_addr_into_implicit_ptr): New function.
28918 (resolve_addr_in_expr): Optimize DWARF location expression
28919 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
28920 which doesn't live in memory, but has DW_AT_location or
28921 DW_AT_const_value, or refers to a string literal, into
28922 DW_OP_GNU_implicit_pointer.
28923 (optimize_location_into_implicit_ptr): New function.
28924 (resolve_addr): If removing DW_AT_location of a variable because
28925 it was DW_OP_addr of address of the variable, but the variable doesn't
28926 live in memory, try to emit const value attribute for the initializer.
28928 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
28930 * tree.h (VECTOR_TYPE_P): New macro.
28931 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
28932 TYPE_MODE): Use it.
28933 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
28934 VEC_COND_EXPR cannot be lvalues.
28935 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
28937 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
28939 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
28940 Restrict the transformation to equal modes.
28942 2013-03-21 Richard Biener <rguenther@suse.de>
28944 PR tree-optimization/39326
28945 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
28946 (MEM_ANALYZABLE): Adjust.
28947 (record_mem_ref_loc): Move bitmap ops ...
28948 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
28949 unanalyzable refs, do not record locations for it.
28950 (analyze_memory_references): Allocate ref zero as shared
28952 (refs_independent_p): Do not test for unanalyzed mems here.
28953 (ref_indep_loop_p_1): Special-case disambiguation against
28954 the unanalyzed ref.
28955 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
28957 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
28959 * config/arm/arm-protos.h (tune_params): Add
28960 prefer_neon_for_64bits field.
28961 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
28962 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
28963 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
28964 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
28965 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
28966 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
28967 (arm_option_override): Handle -mneon-for-64bits new option.
28968 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
28969 (prefer_neon_for_64bits): Declare new variable.
28970 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
28971 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
28972 (arch_enabled): Handle new arch types. Remove support for onlya8
28974 (one_cmpldi2): Use new arch names.
28975 (zero_extend<mode>di2, extend<mode>di2): Ditto.
28976 * config/arm/arm.opt (mneon-for-64bits): Add option.
28977 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
28978 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
28979 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
28981 * doc/invoke.texi (-mneon-for-64bits): Document.
28983 2013-03-21 Richard Biener <rguenther@suse.de>
28985 PR tree-optimization/39326
28986 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
28987 (sort_bbs_in_loop_postorder_cmp): New function.
28988 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
28990 2013-03-21 Richard Biener <rguenther@suse.de>
28992 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
28993 (vect_insert_into_interleaving_chain): Likewise.
28994 (vect_drs_dependent_in_basic_block): Inline ...
28995 (vect_slp_analyze_data_ref_dependence): ... here. New function,
28997 (vect_analyze_data_ref_dependence): ... here. Simplify.
28998 (vect_check_interleaving): Simplify.
28999 (vect_analyze_data_ref_dependences): Likewise. Split out ...
29000 (vect_slp_analyze_data_ref_dependences): ... this new function.
29001 (dr_group_sort_cmp): New function.
29002 (vect_analyze_data_ref_accesses): Compute data-reference groups
29003 here instead of in vect_analyze_data_ref_dependence. Use
29004 a more efficient algorithm.
29005 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
29006 vect_slp_analyze_data_ref_dependences. Call
29007 vect_analyze_data_ref_accesses earlier.
29008 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
29009 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
29010 (vect_slp_analyze_data_ref_dependences): New prototype.
29012 2013-03-21 Richard Biener <rguenther@suse.de>
29014 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
29015 ref is stored in the loop.
29016 (find_refs_for_sm): Walk only over all stores.
29017 (store_motion_loop): Allocate from lim_bitmap_obstack.
29018 (store_motion): Likewise.
29020 2013-03-21 Richard Biener <rguenther@suse.de>
29022 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
29023 Update virtual SSA form.
29025 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29027 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
29028 * configure: Regenerate.
29029 * config.in: Regenerate.
29030 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
29031 if !HAVE_LD_EH_FRAME_CIEV3.
29033 2013-03-21 Richard Biener <rguenther@suse.de>
29035 * tree-cfg.c (verify_expr_no_block): New function.
29036 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
29037 nor DECL_VALUE_EXPR have locations with associated blocks.
29038 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
29039 (clear_unused_block_pointer): Remove code dealing with
29040 blocks in DECL_DEBUG_EXPR locations.
29042 2013-03-21 Richard Biener <rguenther@suse.de>
29044 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
29045 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
29046 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
29047 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
29048 instead of DECL_DEBUG_EXPR_IS_FROM.
29049 * gimplify.c (gimplify_modify_expr): Likewise.
29050 * tree-cfg.c (verify_expr_location_1): Likewise.
29051 * tree-complex.c (create_one_component_var): Likewise.
29052 * tree-sra.c (create_access_replacement): Likewise.
29053 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
29054 (clear_unused_block_pointer): Likewise.
29055 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
29056 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
29057 * var-tracking.c (var_debug_decl): Likewise.
29058 (track_expr_p): Likewise.
29059 * tree-inline.c (add_local_variables): Likewise. Set
29060 DECL_HAS_DEBUG_EXPR_P after copying it.
29061 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
29062 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
29064 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
29067 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
29068 * configure: Regenerate.
29069 * config.in: Regenerate.
29070 * config/i386/i386.md (*movdf_internal): Use
29071 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
29072 movd instead of movq mnemonic for interunit moves.
29073 (*movdi_internal): Ditto.
29075 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29077 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
29078 (abd<mode>_3): New pattern.
29079 (aba<mode>_3): New pattern.
29080 (fabd<mode>_3): New pattern.
29082 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29084 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
29085 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
29086 occurrence of REGISTER_PREFIX as its empty string.
29088 2013-03-20 Jeff Law <law@redhat.com>
29090 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
29091 addititional equivalences for equality comparisons between an SSA_NAME
29092 and a constant where the SSA_NAME was set from a widening conversion.
29094 2013-03-20 Walter Lee <walt@tilera.com>
29096 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
29098 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
29100 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
29101 depending on type attribute.
29102 (*movti_internal): Ditto.
29103 (*movtf_internal): Ditto.
29104 (*movxf_internal): Ditto.
29105 (*movdf_internal): Ditto.
29106 (*movsf_internal): Ditto.
29108 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
29110 * config/i386/i386.md (*movti_internal): Set prefix attribute to
29111 maybe_vex for sselog1 and ssemov types.
29112 (*movdi_internal): Reorder operand constraints.
29113 (*movsi_internal): Ditto. Set prefix attribute to
29114 maybe_vex for sselog1 and ssemov types.
29115 (*movtf_internal): Set prefix attribute to maybe_vex
29116 for sselog1 and ssemov types.
29117 (*movdf_internal): Ditto. Set prefix_data16 attribute for
29118 DImode ssemov types. Reorder operand constraints.
29119 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
29120 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
29121 attribute for SImode ssemov types. Reorder operand constraints.
29123 2013-03-20 Martin Jambor <mjambor@suse.cz>
29125 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
29126 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
29128 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
29130 * config/rs6000/predicates.md (indexed_address, update_address_mem
29131 update_indexed_address_mem): New predicates.
29132 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
29133 attribute for load/store instructions.
29134 * config/rs6000/dfp.md (movsd_store): Likewise.
29135 (movsd_load): Likewise.
29136 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
29137 (unnamed HI->DI extend define_insn): Likewise.
29138 (unnamed SI->DI extend define_insn): Likewise.
29139 (unnamed QI->SI extend define_insn): Likewise.
29140 (unnamed QI->HI extend define_insn): Likewise.
29141 (unnamed HI->SI extend define_insn): Likewise.
29142 (unnamed HI->SI extend define_insn): Likewise.
29143 (extendsfdf2_fpr): Likewise.
29144 (movsi_internal1): Likewise.
29145 (movsi_internal1_single): Likewise.
29146 (movhi_internal): Likewise.
29147 (movqi_internal): Likewise.
29148 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
29149 attribute for load/store instructions.
29150 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
29152 (mov<mode>_softfloat): Likewise.
29153 (mov<mode>_hardfloat32): Likewise.
29154 (mov<mode>_hardfloat64): Likewise.
29155 (mov<mode>_softfloat64): Likewise.
29156 (movdi_internal32): Likewise.
29157 (movdi_internal64): Likewise.
29158 (probe_stack_<mode>): Likewise.
29160 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
29162 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
29163 floating point, and decimal floating point to reload iterator.
29165 * config/rs6000/constraints.md (wl constraint): New constraints to
29166 return FLOAT_REGS if certain options are used to reduce the number
29167 of separate patterns that exist in the file.
29168 (wx constraint): Likewise.
29169 (wz constraint): Likewise.
29171 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29172 -mdebug=reg, print wg, wl, wx, and wz constraints.
29173 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
29174 Initialize the reload functions for 64-bit binary/decimal floating
29176 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
29177 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
29178 create the buffer on the stack to overcome not having a 32-bit
29180 (rs6000_emit_move): Likewise.
29181 (rs6000_secondary_memory_needed_rtx): Likewise.
29182 (rs6000_alloc_sdmode_stack_slot): Likewise.
29183 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
29184 via xxlxor, just like DFmode 0.0.
29186 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
29187 define as 1 if we are running on a power7 or newer.
29188 (enum r6000_reg_class_enum): Add new constraints.
29190 * config/rs6000/dfp.md (movsd): Delete, combine with binary
29191 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
29192 with other moves by using conditional constraits (wg). Use LFIWZX
29193 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
29194 (movsd splitter): Likewise.
29195 (movsd_hardfloat): Likewise.
29196 (movsd_softfloat): Likewise.
29198 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
29199 binary and decimal floating point moves.
29200 (fmove_ok): New attributes to combine binary and decimal floating
29201 point moves, and to combine power6x (mfpgpr) moves along normal
29203 (real_value_to_target): Likewise.
29204 (f32_lr): Likewise.
29205 (f32_lm): Likewise.
29206 (f32_li): Likewise.
29207 (f32_sr): Likewise.
29208 (f32_sm): Likewise.
29209 (f32_si): Likewise.
29210 (movsf): Combine binary and decimal floating point moves. Combine
29211 power6x (mfpgpr) moves with other moves by using conditional
29212 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
29213 (mov<mode> for SFmode/SDmode); Likewise.
29214 (SFmode/SDmode splitters): Likewise.
29215 (movsf_hardfloat): Likewise.
29216 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
29217 (movsf_softfloat): Likewise.
29218 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
29220 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
29221 wx and wz constraints.
29223 * config/rs6000/constraints.md (wg constraint): New constraint to
29224 return FLOAT_REGS if -mmfpgpr (power6x) was used.
29226 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
29229 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29230 -mdebug=reg, print wg, wl, wx, and wz constraints.
29231 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
29232 Initialize the reload functions for 64-bit binary/decimal floating
29234 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
29235 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
29236 create the buffer on the stack to overcome not having a 32-bit
29238 (rs6000_emit_move): Likewise.
29239 (rs6000_secondary_memory_needed_rtx): Likewise.
29240 (rs6000_alloc_sdmode_stack_slot): Likewise.
29241 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
29242 via xxlxor, just like DFmode 0.0.
29244 * config/rs6000/dfp.md (movdd): Delete, combine with binary
29245 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
29246 with other moves by using conditional constraits (wg). Use LFIWZX
29247 and STFIWX for loading SDmode on power7.
29248 (movdd splitters): Likewise.
29249 (movdd_hardfloat32): Likewise.
29250 (movdd_softfloat32): Likewise.
29251 (movdd_hardfloat64_mfpgpr): Likewise.
29252 (movdd_hardfloat64): Likewise.
29253 (movdd_softfloat64): Likewise.
29255 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
29256 64-bit binary and decimal floating point moves.
29257 (FMOVE64X): Likewise.
29258 (movdf): Combine 64-bit binary and decimal floating point moves.
29259 Combine power6x (mfpgpr) moves with other moves by using
29260 conditional constraits (wg).
29261 (mov<mode> for DFmode/DDmode): Likewise.
29262 (DFmode/DDmode splitters): Likewise.
29263 (movdf_hardfloat32): Likewise.
29264 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
29265 (movdf_softfloat32): Likewise.
29266 (movdf_hardfloat64_mfpgpr): Likewise.
29267 (movdf_hardfloat64): Likewise.
29268 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
29269 (movdf_softfloat64): Likewise.
29270 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
29271 (reload_<mode>_load): Move to later in the file so they aren't in
29272 the middle of the floating point move insns.
29273 (reload_<mode>_store): Likewise.
29275 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
29278 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
29279 constraint if -mdebug=reg.
29280 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
29281 Enable using dd reload support if needed.
29283 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
29284 binary and decimal floating point moves in rs6000.md.
29285 (movtd_internal): Likewise.
29287 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
29288 decimal floating point moves.
29290 (movtf_internal): Likewise.
29291 (mov<mode>_internal, TDmode/TFmode): Likewise.
29292 (movtf_softfloat): Likewise.
29293 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
29295 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
29296 movdi_internal64, using wg constraint for move direct operations.
29297 (movdi_internal64): Likewise.
29299 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
29300 MODES_TIEABLE_P for selected modes. Print the numerical value of
29301 the various virtual registers. Use GPR/FPR first/last values,
29302 instead of hard coding the register numbers. Print which modes
29303 have reload functions registered.
29304 (rs6000_option_override_internal): If -mdebug=reg, trace the options
29305 settings before/after setting cpu, target and subtarget settings.
29306 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
29307 and for secondary reload failures in rs6000_secondary_reload_inner.
29308 (rs6000_secondary_reload_fail): Likewise.
29309 (rs6000_secondary_reload_inner): Likewise.
29311 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
29312 macros for first/last GPR and FPR registers.
29313 (LAST_GPR_REGNO): Likewise.
29314 (FIRST_FPR_REGNO): Likewise.
29315 (LAST_FPR_REGNO): Likewise.
29317 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
29318 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
29319 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
29320 (vcond<mode><mode>): Likewise.
29321 (vcondu<mode><mode>): Likewise.
29322 (vector_gtu<mode>): Likewise.
29323 (vector_gte<mode>): Likewise.
29324 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
29325 to prevent the compiler from converting DImode operations to TImode.
29326 (ior<mode>3): Likewise.
29327 (and<mode>3): Likewise.
29328 (one_cmpl<mode>2): Likewise.
29329 (nor<mode>3): Likewise.
29330 (andc<mode>3): Likewise.
29332 * config/rs6000/constraints.md (wt constraint): New constraint
29333 that returns VSX_REGS if TImode is allowed in VSX registers.
29335 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
29336 constant under VSX.
29338 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
29339 similar to TImode, but it is restricted to being in the GPRs.
29341 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
29342 TImode to occupy a single VSX register.
29344 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
29345 -mvsx-timode for power7/power8.
29346 (power7 cpu): Likewise.
29347 (power8 cpu): Likewise.
29349 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
29350 sure that TFmode/TDmode take up two registers if they are ever
29351 allowed in the upper VSX registers.
29352 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
29354 (rs6000_init_hard_regno_mode_ok): Likewise.
29355 (rs6000_debug_reg_global): Add debugging for PTImode and wt
29356 constraint. Print if LRA is turned on.
29357 (rs6000_option_override_internal): Give an error if -mvsx-timode
29358 and VSX is not enabled.
29359 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
29360 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
29361 to reg+offset addressing. Use PTImode when checking offset
29362 addresses for validity.
29363 (reg_offset_addressing_ok_p): Likewise.
29364 (rs6000_legitimate_offset_address_p): Likewise.
29365 (rs6000_legitimize_address): Likewise.
29366 (rs6000_legitimize_reload_address): Likewise.
29367 (rs6000_legitimate_address_p): Likewise.
29368 (rs6000_eliminate_indexed_memrefs): Likewise.
29369 (rs6000_emit_move): Likewise.
29370 (rs6000_secondary_reload): Likewise.
29371 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
29372 reloads to fpr registers to continue to use reg+offset addressing,
29373 but 64-bit reloads to altivec registers need reg+reg addressing.
29374 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
29375 it. Treat LO_SUM like a PLUS operation.
29376 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
29377 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
29378 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
29379 registers to share a register with a smaller sized type, since VSX
29380 puts scalars in the upper 64-bits.
29381 (print_operand): Add support for PTImode.
29382 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
29383 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
29384 registers, but don't have arithmetic support.
29385 (rs6000_memory_move_cost): Add test for VSX.
29386 (rs6000_opt_masks): Add -mvsx-timode.
29388 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
29391 (VSr): Use wt constraint for TImode.
29392 (VSv): Drop TImode support.
29393 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
29394 (vsx_movti_64bit): Likewise.
29395 (vsx_movti_32bit): Likewise.
29396 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
29397 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
29398 one '?' on the appropriate output constraint. Do not allow TImode
29399 logical operations on 32-bit systems.
29400 (vsx_ior<mode>3): Likewise.
29401 (vsx_xor<mode>3): Likewise.
29402 (vsx_one_cmpl<mode>2): Likewise.
29403 (vsx_nor<mode>3): Likewise.
29404 (vsx_andc<mode>3): Likewise.
29405 (vsx_concat_<mode>): Likewise.
29406 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
29408 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
29409 OPTION_MASK_VSX_TIMODE.
29410 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
29411 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
29413 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
29414 (TI2 iterator): New iterator for TImode, PTImode.
29415 (wd mode attribute): Add values for vector types.
29416 (movti_string): Replace TI move operations with operations for TImode
29417 and PTImode. Add support for TImode being allowed in VSX registers.
29418 (mov<mode>_string, TImode/PTImode): Likewise.
29419 (movti_ppc64): Likewise.
29420 (mov<mode>_ppc64, TImode/PTImode): Likewise.
29421 (TI mode splitters): Likewise.
29423 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
29426 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
29428 PR tree-optimization/56355
29429 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
29430 Also handle integers with undefined overflow.
29432 2013-03-20 Catherine Moore <clm@codesourcery.com>
29433 Maciej W. Rozycki <macro@codesourcery.com>
29434 Tom de Vries <tom@codesourcery.com>
29435 Nathan Sidwell <nathan@codesourcery.com>
29436 Iain Sandoe <iain@codesourcery.com>
29437 Nathan Froyd <froydnj@codesourcery.com>
29438 Chao-ying Fu <fu@mips.com>
29440 * doc/extend.texi: (micromips, nomicromips, nocompression):
29441 Document new function attributes.
29442 * doc/invoke.texi (minterlink-compressed, mmicromips,
29443 m14k, m14ke, m14kec): Document new options.
29444 (minterlink-mips16): Update documentation.
29445 * doc/md.texi (ZC, ZD): Document new constraints.
29446 * configure.ac (gcc_cv_as_micromips): Check if linker
29447 supports the .set micromips directive.
29448 * configure: Regenerate.
29449 * config.in: Regenerate.
29450 * config/mips/mips-tables.opt: Regenerate.
29451 * config/mips/micromips.md: New file.
29452 * constraints.md (ZC, ZD): New constraints.
29453 * config/mips/predicates.md (movep_src_register): New predicate.
29454 (movep_src_operand): New predicate.
29455 (non_volatile_mem_operand): New predicate.
29456 * config/mips/mips.md (multimem): New type.
29457 (length): Differentiate between 17-bit and 18-bit branch offsets.
29458 (MOVEP1, MOVEP2): New mode iterator.
29459 (mov_<load>l): Use ZC constraint.
29460 (mov_<load>r): Likewise.
29461 (mov_<store>l): Likewise.
29462 (mov_<store>r): Likewise.
29463 (*branch_equality<mode>_inverted): Add microMIPS support.
29464 (*branch_equality<mode>): Likewise.
29465 (*jump_absolute): Likewise.
29466 (indirect_jump_<mode>): Likewise.
29467 (tablejump_<mode>): Likewise.
29468 (<optab>_internal): Likewise.
29469 (sibcall_internal): Likewise.
29470 (sibcall_value_internal): Likewise.
29471 (prefetch): Use constraint ZD.
29472 * config/mips/mips.opt (minterlink-compressed): New option.
29473 (minterlink-mips16): Now an alias for minterlink-compressed.
29474 (mmicromips): New option.
29475 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
29476 (compare_and_swap_12): Likewise.
29477 (sync_add<mode>): Likewise.
29478 (sync_<optab>_12): Likewise.
29479 (sync_old_<optab>_12): Likewise.
29480 (sync_new_<optab>_12): Likewise.
29481 (sync_nand_12): Likewise.
29482 (sync_old_nand_12): Likewise.
29483 (sync_new_nand_12): Likewise.
29484 (sync_sub<mode>): Likewise.
29485 (sync_old_add<mode>): Likewise.
29486 (sync_old_sub<mode>): Likewise.
29487 (sync_new_add<mode>): Likewise.
29488 (sync_new_sub<mode>): Likewise.
29489 (sync_<optab><mode>): Likewise.
29490 (sync_old_<optab><mode>): Likewise.
29491 (sync_new_<optab><mode>): Likewise.
29492 (sync_nand<mode>): Likewise.
29493 (sync_old_nand<mode>): Likewise.
29494 (sync_new_nand<mode>): Likewise.
29495 (sync_lock_test_and_set<mode>): Likewise.
29496 (test_and_set_12): Likewise.
29497 (atomic_compare_and_swap<mode>): Likewise.
29498 (atomic_exchange<mode>_llsc): Likewise.
29499 (atomic_fetch_add<mode>_llsc): Likewise.
29500 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
29501 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
29502 (umips_save_restore_pattern_p): Likewise.
29503 (umips_load_store_pair_p): Likewise.
29504 (umips_output_load_store_pair): Likewise.
29505 (umips_movep_target_p): Likewise.
29506 (umips_12bit_offset_address_p): Likewise.
29507 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
29508 (mips_base_mips16): Rename this...
29509 (mips_base_compression_flags): ...to this. Update all uses.
29510 (mips_attribute_table): Add micromips, nomicromips and nocompression.
29511 (mips_mips16_decl_p): Delete.
29512 (mips_nomips16_decl_p): Delete.
29513 (mips_get_compress_on_flags): New function.
29514 (mips_get_compress_off_flags): New function.
29515 (mips_get_compress_mode): New function.
29516 (mips_get_compress_on_name): New function.
29517 (mips_get_compress_off_name): New function.
29518 (mips_insert_attributes): Support multiple compression types.
29519 (mips_merge_decl_attributes): Likewise.
29520 (umips_12bit_offset_address_p): New function.
29521 (mips_start_function_definition): Emit .set micromips directive.
29522 (mips_call_may_need_jalx_p): New function.
29523 (mips_function_ok_for_sibcall): Add microMIPS support.
29524 (mips_print_operand_punctuation): Support short delay slots and
29526 (umips_swm_mask, umips_swm_encoding): New.
29527 (umips_build_save_restore): New function.
29528 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
29529 (was_mips16_p): Remove.
29530 (old_compression_mode): New.
29531 (mips_set_compression_mode): New function.
29532 (mips_set_current_function): Add microMIPS support.
29533 (mips_option_override): Likewise.
29534 (umips_save_restore_pattern_p): New function.
29535 (umips_output_save_restore): New function.
29536 (umips_load_store_pair_p_1): New function.
29537 (umips_load_store_pair_p): New function.
29538 (umips_output_load_store_pair_1): New function.
29539 (umips_output_load_store_pair): New function.
29540 (umips_movep_target_p) New function.
29541 (mips_prepare_pch_save): Add microMIPS support.
29542 * config/mips/mips.h (TARGET_COMPRESSION): New.
29543 (TARGET_CPU_CPP_BUILTINS): Update macro
29544 to use new compression flags and to support microMIPS.
29545 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
29546 (MIPS_ARCH_FLOAT_SPEC): Likewise.
29547 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
29548 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
29549 (ASM_SPEC): Support mmicromips and mno-micromips.
29550 (M16STORE_REG_P): New macro.
29551 (MIPS_CALL): Support TARGET_MICROMIPS.
29552 (MICROMIPS_J): New macro.
29553 (mips_base_mips16): Rename this...
29554 (mips_base_compression_flags): ...to this.
29555 (UMIPS_12BIT_OFFSET_P): New macro.
29556 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
29557 (MULTILIB_DIRNAMES): Likewise.
29558 2013-03-20 Richard Biener <rguenther@suse.de>
29560 PR tree-optimization/56661
29561 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
29562 the result does not have to be distinct.
29564 2013-03-20 Richard Biener <rguenther@suse.de>
29566 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
29569 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29570 Steven Bosscher <steven@gcc.gnu.org>
29572 PR rtl-optimization/56605
29573 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
29575 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
29578 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
29579 that require movd instead of movq.
29581 2013-03-20 Richard Biener <rguenther@suse.de>
29583 * tree-ssa-structalias.c (struct variable_info): Add pointer
29584 to the first field of an aggregate with sub-vars. Make
29585 this and the pointer to the next subfield its ID.
29586 (vi_next): New function.
29587 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
29588 storedanything_id, integer_id): Increment by one.
29589 (new_var_info, get_call_vi, lookup_call_clobber_vi,
29590 get_call_clobber_vi): Adjust.
29591 (solution_set_expand): Simplify and speedup.
29592 (solution_set_add): Inline into ...
29593 (set_union_with_increment): ... this. Adjust accordingly.
29594 (do_sd_constraint): Likewise.
29595 (do_ds_constraint): Likewise.
29596 (do_complex_constraint): Simplify.
29597 (build_pred_graph): Adjust.
29598 (solve_graph): Likewise. Simplify and speedup.
29599 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
29600 get_constraint_for_component_ref, get_constraint_for_1,
29601 first_vi_for_offset, first_or_preceding_vi_for_offset,
29602 create_function_info_for, create_variable_info_for_1,
29603 create_variable_info_for, intra_create_variable_infos): Adjust.
29604 (init_base_vars): Push NULL for ID zero.
29605 (compute_points_to_sets): Adjust.
29607 2013-03-20 Richard Biener <rguenther@suse.de>
29609 * cfgloop.c (verify_loop_structure): Streamline and avoid
29610 ICEing on corrupt loop tree.
29611 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
29614 2013-03-20 Richard Biener <rguenther@suse.de>
29616 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
29617 check whether an SSA update is needed.
29619 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
29621 * config/mips/constraints.md (T): Rename to...
29625 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
29626 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
29628 2013-03-19 Ian Bolton <ian.bolton@arm.com>
29630 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
29631 (*subsi3_carryin_uxtw): Likewise.
29633 2013-03-19 Ian Bolton <ian.bolton@arm.com>
29635 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
29636 (*rorsi3_insn_uxtw): Likewise.
29638 2013-03-19 Ian Bolton <ian.bolton@arm.com>
29640 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
29641 (*extrsi5_insn_uxtw): Likewise.
29643 2013-03-19 Richard Biener <rguenther@suse.de>
29645 PR tree-optimization/56273
29646 * passes.c (init_optimization_passes): Move second VRP after DOM.
29648 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
29650 * config/i386/i386.md (*movti_internal): Merge from
29651 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
29652 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
29653 nox64 isa attributes.
29655 2013-03-18 Richard Biener <rguenther@suse.de>
29657 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
29659 (merge_node_constraints): Likewise.
29660 (build_succ_graph): Likewise.
29661 (valid_graph_edge): Inline into single caller.
29662 (unify_nodes): Likewise. Use bitmap_set_bit return value
29664 (scc_visit): Fix formatting and variable use.
29665 (do_sd_constraint): Use gcc_checking_assert.
29666 (do_ds_constraint): Likewise.
29667 (do_complex_constraint): Likewise.
29668 (condense_visit): Likewise. Cleanup.
29669 (dump_pred_graph): New function.
29670 (perform_var_substitution): Dump the pred-graph before
29671 variable substitution.
29672 (find_equivalent_node): Use gcc_checking_assert.
29673 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
29675 2013-03-18 Richard Biener <rguenther@suse.de>
29677 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
29678 Remove cond_expr_stmt_list argument and do not gimplify the
29680 (vect_loop_versioning): Adjust.
29681 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
29682 Cleanup to use less temporaries.
29683 (vect_create_data_ref_ptr): Cleanup.
29685 2013-03-18 Jakub Jelinek <jakub@redhat.com>
29687 PR tree-optimization/56635
29688 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
29689 require types_compatible_p types.
29691 2013-03-18 Nick Clifton <nickc@redhat.com>
29693 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
29694 spurious backslash.
29696 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
29697 Add missing line to comment describing function.
29699 2013-03-18 Richard Biener <rguenther@suse.de>
29701 PR tree-optimization/56210
29702 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29703 Handle string / character search functions.
29704 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
29706 2013-03-18 Richard Biener <rguenther@suse.de>
29708 PR middle-end/56483
29709 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
29710 and implement properly.
29711 * gimple.h (gimple_cond_single_var_p): Remove.
29713 2013-03-18 Richard Biener <rguenther@suse.de>
29715 * tree-data-ref.h (find_data_references_in_loop): Declare.
29716 * tree-data-ref.c (get_references_in_stmt): Use a stack
29717 vector pre-allocated in the callers.
29718 (find_data_references_in_stmt): Adjust.
29719 (graphite_find_data_references_in_stmt): Likewise.
29720 (create_rdg_vertices): Likewise.
29721 (find_data_references_in_loop): Export.
29722 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
29723 Compute dependences here...
29724 (vect_analyze_data_refs): ...not here. When we encounter
29725 a non-vectorizable data reference in basic-block vectorization
29726 truncate the data reference vector. Do not bother to
29727 fixup data-dependence information for gather loads.
29728 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
29729 of data references, as reported.
29731 2013-03-18 Richard Biener <rguenther@suse.de>
29733 PR tree-optimization/3713
29734 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
29735 has_constants and expr.
29736 (stmt_has_constants): Properly valueize SSA names when deciding
29737 whether the stmt has constants.
29739 2013-03-18 Richard Biener <rguenther@suse.de>
29741 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
29742 whole function when there is nothing to do.
29743 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
29744 * tree-vectorizer.c (vectorize_loops): Update virtual and
29745 loop-closed SSA once.
29746 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
29748 2013-03-18 Richard Biener <rguenther@suse.de>
29750 PR middle-end/56113
29751 * domwalk.c (bb_postorder): New global static.
29752 (cmp_bb_postorder): New function.
29753 (walk_dominator_tree): Replace scheme imposing an order for
29754 visiting dominator sons by one sorting them at the time they
29755 are pushed on the stack.
29757 2013-03-18 Richard Biener <rguenther@suse.de>
29759 PR tree-optimization/39326
29760 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
29761 (struct mem_ref): Replace mem member with ao_ref typed member.
29762 (MEM_ANALYZABLE): Adjust.
29763 (memref_eq): Likewise.
29764 (mem_ref_alloc): Likewise.
29765 (gather_mem_refs_stmt): Likewise.
29766 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
29767 (execute_sm_if_changed_flag_set): Adjust.
29768 (execute_sm): Likewise.
29769 (ref_always_accessed_p): Likewise.
29770 (refs_independent_p): Likewise.
29771 (can_sm_ref_p): Likewise.
29773 2013-03-18 Jakub Jelinek <jakub@redhat.com>
29776 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
29777 return 1 even for !unsignedp.
29779 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29781 * config/i386/i386.md (isa): Add x64 and nox64.
29782 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
29783 (*pushtf): Enable *roF alternative for x64 isa only.
29784 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
29785 mode attribute of integer alternatives to DImode for TARGET_64BIT.
29786 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
29787 (*movtf_internal): Merge from *movtf_internal_rex64 and
29788 *movtf_internal_sse. Use x64 and nox64 isa attributes.
29789 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
29790 nox64 isa attributes.
29791 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
29792 nox64 isa attributes.
29793 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
29795 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29797 * config/alpha/alpha.c (TARGET_LRA_P): New define.
29799 2013-03-17 Jakub Jelinek <jakub@redhat.com>
29802 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
29803 class names. Remove trailing comma after "ALL_REGS".
29805 2013-03-16 Jan Hubicka <jh@suse.cz>
29807 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
29808 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
29809 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
29810 of cgraph_get_create_node.
29811 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
29813 2013-03-16 Jason Merrill <jason@redhat.com>
29816 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
29817 with DW_AT_default_value.
29819 2013-03-16 Jakub Jelinek <jakub@redhat.com>
29821 * BASE-VER: Set to 4.9.0.
29823 2013-03-14 Andi Kleen <ak@linux.intel.com>
29826 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
29827 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
29828 Document _x* TSX intrinsics.
29830 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
29831 David Holsgrove <david.holsgrove@xilinx.com>
29833 * configure.ac: Add MicroBlaze TLS support detection.
29834 * configure: Regenerate.
29835 * config/microblaze/microblaze-protos.h
29836 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
29837 symbol_mentioned_p, label_mentioned_p): Add prototypes.
29838 * config/microblaze/microblaze.c (microblaze_address_type): Add
29839 ADDRESS_TLS and tls_reloc address types.
29840 (microblaze_address_info): Add tls_reloc.
29841 (TARGET_HAVE_TLS): Define.
29842 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
29843 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
29844 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
29845 load_tls_operand, microblaze_call_tls_get_addr,
29846 microblaze_legitimize_tls_address): New functions.
29847 (microblaze_classify_unspec): Handle UNSPEC_TLS.
29848 (get_base_reg): Use microblaze_tls_symbol_p.
29849 (microblaze_classify_address): Handle TLS.
29850 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
29851 label_mentioned_p and microblaze_tls_referenced_p.
29852 (microblaze_legitimize_address): Handle TLS.
29853 (microblaze_address_insns): Handle ADDRESS_TLS.
29854 (pic_address_needs_scratch): Handle TLS.
29855 (print_operand_address): Handle TLS.
29856 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
29857 (microblaze_expand_move): Handle TLS.
29858 (microblaze_legitimate_constant_p): Check
29859 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
29860 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
29861 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
29862 (PIC_OFFSET_TABLE_REGNUM): Set.
29863 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
29864 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
29865 (addsi3, movsi_internal2, movdf_internal): Update constraints
29866 * config/microblaze/predicates.md (arith_plus_operand): Define
29867 (move_operand): Redefine as move_src_operand,
29868 check microblaze_tls_referenced_p.
29870 2013-03-14 Ian Bolton <ian.bolton@arm.com>
29872 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
29873 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
29875 2013-03-14 Ian Bolton <ian.bolton@arm.com>
29877 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
29880 2013-03-14 Jakub Jelinek <jakub@redhat.com>
29882 PR tree-optimization/53265
29883 * common.opt (Waggressive-loop-optimizations): New option.
29884 * tree-ssa-loop-niter.c: Include tree-pass.h.
29885 (do_warn_aggressive_loop_optimizations): New function.
29886 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
29887 if number_of_latch_executions returned constant.
29888 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
29889 early. If number_of_latch_executions returned constant, set
29890 nb_iterations_upper_bound back to it.
29891 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
29893 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
29894 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
29896 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
29897 (MULTILIB_OSDIRNAMES): Set.
29898 * genmultilib: If defaultosdirname doesn't start with :: , set
29899 defaultosdirname2 instead, clear it and emit two . multilib_raw
29900 entries instead of just one.
29902 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
29904 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
29905 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
29906 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
29907 (SUBTARGET_OVERRIDE_OPTIONS): New.
29909 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
29912 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
29913 (musermode): Convert to Var(TARGET_USERMODE).
29914 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
29915 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
29916 * config/sh/sh.c (sh_option_override): Use
29917 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
29918 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
29920 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
29922 (udivsi3_i4_single, divsi3_i4_single): Use
29923 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
29925 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
29927 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
29930 2013-03-13 Richard Biener <rguenther@suse.de>
29932 PR tree-optimization/56608
29933 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
29934 calls when vectorizing basic-blocks.
29936 2013-03-13 Jakub Jelinek <jakub@redhat.com>
29939 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
29942 2013-03-12 Jakub Jelinek <jakub@redhat.com>
29944 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
29946 2013-03-11 Jan Hubicka <jh@suse.cz>
29949 * lto-streamer-out.c (output_symbol_p): Skip references from
29950 constructors of external variables.
29952 2013-03-11 Jan Hubicka <jh@suse.cz>
29954 PR middle-end/56571
29955 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
29957 * emit-rtl.c (verify_rtx_sharing): Likewise.
29958 (copy_insn_1): Likewise.
29959 * rtl.c (copy_rtx): Likewise.
29961 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
29964 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
29965 output_operand_lossage message.
29967 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
29970 * arm.c (shift_op): Validate RTL pattern on the fly.
29971 (arm_print_operand, case 'S'): Don't use shift_operator to validate
29974 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29977 * config/pa/pa.md (call_value): Check for calls to powf and direct to
29978 new call patterns that clobber %fr12.
29979 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
29980 split and postreload patterns.
29981 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
29982 registers %fr12 and %fr12R as call used.
29984 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
29986 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
29987 (canon_address, record_store, replace_read, check_mem_read_rtx,
29988 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
29989 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
29990 rest_of_handle_dse): Likewise.
29992 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
29994 PR middle-end/56524
29995 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
29997 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
29998 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
29999 (save_optabs_if_changed): Replace with...
30000 (init_tree_optimization_optabs): ...this.
30001 * optabs.c (save_optabs_if_changed): Rename to...
30002 (init_tree_optimization_optabs): ...this. Take the optimization node
30003 as argument. Do nothing if the base optabs are already correct.
30004 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
30005 to recompute optabs.
30006 * function.h (function): Remove optabs field.
30007 * function.c (invoke_set_current_function_hook): Call
30008 init_tree_optimization_optabs. Use the result to initialize
30011 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
30013 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
30014 if GTMA_HAS_NO_INSTRUMENTATION.
30015 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
30016 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
30017 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
30018 * gimple-pretty-print.c (dump_gimple_transaction): Handle
30019 GTMA_HAS_NO_INSTRUMENTATION.
30021 2013-03-08 Jakub Jelinek <jakub@redhat.com>
30023 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
30026 2013-03-08 Marek Polacek <polacek@redhat.com>
30027 Jakub Jelinek <jakub@redhat.com>
30029 PR tree-optimization/56478
30030 * predict.c (is_comparison_with_loop_invariant_p): Change the
30031 type of loop_step to tree.
30032 (predict_loops): Adjust.
30033 (predict_iv_comparison): Perform the computations on double_ints.
30035 2013-03-08 Richard Biener <rguenther@suse.de>
30037 PR tree-optimization/56570
30038 * tree-cfg.c (verify_expr_location_1): Verify locations for
30040 * tree-sra.c (create_access_replacement): Strip locations
30041 from DECL_DEBUG_EXPRs.
30043 2013-03-08 Richard Biener <rguenther@suse.de>
30045 * tree-inline.c (expand_call_inline): Do not associate
30046 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
30047 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
30049 2013-03-08 Richard Biener <rguenther@suse.de>
30051 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
30052 or block changes with -Og. Fix for location / block encoding
30053 changes and PHI arguments with locations.
30055 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
30057 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
30059 (struct output_info): Likewise.
30060 (register_overhead): Remove bad gcc_assert.
30061 (bitmap_find_bit): If there is only a single bitmap element, do not
30062 count a miss as a search.
30063 (print_statistics): Update for counter type changes.
30064 (dump_bitmap_statistics): Likewise. Print headers such that they
30065 are properly lined up with the printed counters.
30067 2013-03-07 Jakub Jelinek <jakub@redhat.com>
30069 PR tree-optimization/56559
30070 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
30071 check that it has only a single use.
30073 2013-03-07 Richard Biener <rguenther@suse.de>
30075 * doc/invoke.texi (fwhole-program): Discourage use in combination
30078 2013-03-06 Jakub Jelinek <jakub@redhat.com>
30080 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
30082 PR tree-optimization/56539
30083 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
30084 instead of GSI_CONTINUE_LINKING as last argument to
30085 force_gimple_operand_gsi. Adjust function comment.
30087 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
30090 PR middle-end/56548
30091 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
30092 promoted mode, convert the result back to the original mode.
30094 2013-03-06 Richard Biener <rguenther@suse.de>
30096 PR middle-end/56294
30097 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
30098 (insert_updated_phi_nodes_compare_uids): New function.
30099 (update_ssa): Sort symbols_to_rename after UID before
30100 traversing it to insert PHI nodes.
30102 2013-03-06 Richard Biener <rguenther@suse.de>
30104 PR middle-end/50494
30105 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
30106 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
30109 2013-02-13 Richard Biener <rguenther@suse.de>
30112 * varasm.c (output_constant_def_1): Get the decl representing
30113 the constant as argument.
30114 (output_constant_def): Wrap output_constant_def_1.
30115 (make_decl_rtl): Use output_constant_def_1 with the decl
30116 representing the constant.
30117 (build_constant_desc): Optionally re-use a decl already
30118 representing the constant.
30119 (tree_output_constant_def): Adjust.
30121 2013-03-06 Joey Ye <joey.ye@arm.com>
30124 * gcc.c (convert_white_space): New function.
30125 (main): Handles white space in function name.
30127 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
30130 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
30131 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
30132 to SH_DIV_CALL_TABLE for TARGET_SH2.
30133 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
30135 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
30136 call-table options.
30138 2013-03-05 Sterling Augustine <saugustine@google.com>
30139 Cary Coutant <ccoutant@google.com>
30142 * dwarf2out.c (resolve_addr): Don't call
30143 remove_loc_list_addr_table_entries a second time for the same
30146 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30149 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
30150 (avoid_complex_debug_insns): New function.
30151 (expand_debug_locations): Call it.
30153 PR rtl-optimization/56484
30154 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
30155 lifetimes of hard registers on small register class machines.
30157 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
30159 * config/microblaze/microblaze-protos.h: Rename
30160 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
30161 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
30163 (microblaze_fast_interrupt_function_p): New function.
30164 (microblaze_is_interrupt_handler): Rename to
30165 microblaze_is_interrupt_variant and add fast_interrupt check.
30166 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
30167 (save_restore_insns): Likewise.
30168 (compute_frame_size): Likewise.
30169 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
30170 (microblaze_globalize_label): Likewise.
30171 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
30172 * config/microblaze/microblaze.md: Use wrapper
30173 microblaze_is_interrupt_variant.
30175 2013-03-05 Kai Tietz <ktietz@redhat.com>
30177 * sdbout.c (sdbout_one_type): Switch to current function's section
30178 supporting cold/hot.
30180 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
30182 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
30185 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30187 PR middle-end/56461
30188 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
30189 if VALGRIND_GET_VBITS is defined, temporarily make object
30190 memory all defined, and restore previous valgrind addressability
30191 and definability afterwards. Free this_object at the end.
30193 PR middle-end/56461
30194 * lra.c (lra): Call lra_clear_live_ranges if live_p,
30195 right before calling lra_create_live_ranges, also call it
30196 when clearing live_p. Only call lra_clear_live_ranges
30197 at the end if live_p.
30199 PR middle-end/56461
30200 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
30202 2013-03-05 Richard Biener <rguenther@suse.de>
30204 PR tree-optimization/56521
30205 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
30208 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
30211 * except.h (remove_unreachable_eh_regions): New prototype.
30212 * except.c (remove_eh_handler_splicer): New function, split out
30213 of remove_eh_handler.
30214 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
30215 warning about running it on many EH regions one at a time.
30216 (remove_unreachable_eh_regions_worker): New function, walk the
30217 EH tree in depth-first order and remove non-marked regions.
30218 (remove_unreachable_eh_regions): New function.
30219 * tree-eh.c (mark_reachable_handlers): New function, split out
30220 from remove_unreachable_handlers.
30221 (remove_unreachable_handlers): Use mark_reachable_handlers and
30222 remove_unreachable_eh_regions.
30223 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
30224 and remove_unreachable_eh_regions.
30226 2013-03-05 Richard Biener <rguenther@suse.de>
30228 PR middle-end/56525
30229 * loop-init.c (fix_loop_structure): Remove loops in two stages,
30230 not freeing them until the end.
30232 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30234 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
30236 2013-03-05 Richard Biener <rguenther@suse.de>
30238 PR tree-optimization/56270
30239 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
30240 of loads after scheduling an SLP instance.
30242 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30244 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
30246 (check_gcc_parallelize): Run guality.exp as a separate job from
30247 vect.exp with unsorted.exp and $(dg_target_exps) separately from
30248 struct-layout-1.exp with stackalign.exp.
30250 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
30252 PR middle-end/56461
30253 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
30254 load_index sbitmap even if some bit in it isn't set.
30256 PR middle-end/56461
30257 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
30258 (discover_iteration_bound_by_body_walk): Change queues to
30259 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
30260 spelling in comment. Call safe_push on queues[bound_index] directly.
30261 Release queues[queue_index] in every iteration unconditionally.
30262 Release bounds vector.
30264 PR middle-end/56461
30265 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
30266 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
30267 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
30270 2013-03-05 Richard Biener <rguenther@suse.de>
30273 * tree-inline.c (remap_blocks_to_null): New function.
30274 (expand_call_inline): When expanding a call stmt without
30275 an associated block inline remap all callee blocks to NULL.
30277 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30279 PR rtl-optimization/56494
30280 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
30281 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
30282 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
30284 PR middle-end/56461
30285 * sel-sched-ir.c (free_sched_pools): Release
30286 succs_info_pool.stack[succs_info_pool.max_top] vectors too
30287 if succs_info_pool.max_top isn't -1.
30290 * opts.c (opts_obstack, opts_concat): Moved to...
30291 * opts-common.c (opts_obstack, opts_concat): ... here.
30293 2013-03-04 Jakub Jelinek <jakub@redhat.com>
30295 PR middle-end/56461
30296 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
30298 2013-03-04 Martin Jambor <mjambor@suse.cz>
30300 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
30301 all appropriate places.
30303 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
30305 PR tree-optimization/56424
30306 * ipa-split.c (split_function): Do not set the RSO flag if result is
30307 not by reference and its type is a register type.
30309 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
30311 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
30312 (microblaze_legitimate_pic_operand): Likewise
30313 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
30314 new function microblaze_legitimate_pic_operand
30315 * config/microblaze/microblaze-protos.h
30316 (microblaze_legitimate_pic_operand): Declare.
30318 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30320 * config/microblaze/predicates.md (call_insn_simple_operand):
30321 New predicate for supported rtx code types.
30322 * config/microblaze/microblaze.md (call_internal1): Use
30323 call_insn_simple_operand predicate.
30325 2013-03-04 Jakub Jelinek <jakub@redhat.com>
30327 PR middle-end/56461
30328 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
30329 partitions.ordered_remove.
30331 PR middle-end/56461
30332 * tree-vect-stmts.c (vectorizable_conversion): Don't call
30333 vec_oprnds0.create (1) for modifier == NONE.
30335 PR middle-end/56461
30336 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
30337 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
30338 vec_oprnds1 right before pushing anything to it for
30341 PR middle-end/56461
30342 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
30343 set nbbs to 0 instead of having separate code path.
30344 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
30345 instead of false as last argument if returning NULL.
30347 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
30349 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
30350 the attribute is now called "target" instead of "option".
30351 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
30352 * doc/tm.texi.in (Target Attributes): Likewise document the correct
30353 attribute/pragma name for TARGET_OPTION_VALID_P and
30354 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
30355 * doc/tm.texi: Regenerated.
30357 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
30359 * config/microblaze/microblaze.c:
30360 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
30361 * config/microblaze/microblaze.h: Add -mxl-reorder to
30363 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
30364 instructions emitted if TARGET_REORDER.
30365 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
30366 or 0 for -m/-mno case, but initialises as 2 to detect default use case
30369 2013-03-01 Xinliang David Li <davidxl@google.com>
30371 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
30374 2013-03-01 Jakub Jelinek <jakub@redhat.com>
30376 PR middle-end/56461
30377 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
30378 vector even when returning true. Fix up function comment formatting.
30380 PR middle-end/56461
30381 * ira-build.c (ira_loop_nodes_count): New variable.
30382 (create_loop_tree_nodes): Initialize it.
30383 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
30385 PR middle-end/56461
30386 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
30387 method on dr_chain and result_chain.
30388 * tree-vect-stmts.c (vectorizable_store): Only call
30389 result_chain.create if j == 0.
30391 PR middle-end/56461
30392 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
30393 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
30394 before overwriting it.
30396 2013-03-01 Tobias Burnus <burnus@net-b.de>
30398 * doc/extended.texi (C Extensions): Change order in @menu
30400 (Other MIPS Built-in Functions): Move last MIPS entry before
30401 "picoChip Built-in Functions".
30402 (SH Built-in Functions): Move after RX Built-in Functions.
30403 * doc/gcc.texi (Introduction): Change order in @menu
30405 * doc/md.texi (Constraints): Ditto.
30406 * gty.texi (Type Information): Ditto.
30407 (User-provided marking routines for template types): Make
30409 * doc/invoke.texi (AArch64 Options): Move before
30410 "Adapteva Epiphany Options".
30412 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
30413 Jakub Jelinek <jakub@redhat.com>
30416 * asan.c (gate_asan): Lookup no_sanitize_address instead of
30417 no_address_safety_analysis attribute.
30418 * doc/extend.texi (no_address_safety_attribute): Rename to
30419 no_sanitize_address attribute, mention no_address_safety_analysis
30420 attribute as deprecated alias.
30422 2013-02-28 Jakub Jelinek <jakub@redhat.com>
30424 PR middle-end/56461
30425 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
30426 type to vec<vec<tree> > *.
30427 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
30428 to be vec<tree> instead of vec<tree> *, set vec_defs
30429 to vNULL and call vec_defs.create (number_of_vects), adjust other
30431 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
30432 vectorizable_condition): Adjust vect_get_slp_defs callers.
30434 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
30436 * config/aarch64/aarch64.c
30437 (aarch64_float_const_representable): Remove unused variable.
30439 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
30441 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
30443 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
30445 * config/aarch64/aarch64-builtins.c
30446 (aarch64_init_simd_builtins): Make static.
30448 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
30450 * config/aarch64/aarch64.c
30451 (aarch64_simd_make_constant): Make static.
30453 2013-02-28 Martin Jambor <mjambor@suse.cz>
30455 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
30456 with no initialization to the RHS of debug statements.
30458 2013-02-28 Martin Jambor <mjambor@suse.cz>
30460 PR tree-optimization/56294
30461 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
30463 (get_access_replacement): Do not call create_access_replacement.
30464 Assert a replacement exists.
30465 (get_repl_default_def_ssa_name): Create the replacement declaration
30468 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30470 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
30471 final_end_function.
30473 2013-02-28 Marek Polacek <polacek@redhat.com>
30475 PR rtl-optimization/56466
30476 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
30477 if we're changing a loop.
30478 (peel_loops_completely): Likewise.
30480 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
30483 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
30485 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
30488 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
30489 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
30490 INTX_FTYPE_FX, FX_FTYPE_INTX.
30491 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
30493 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
30495 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
30496 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
30497 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
30498 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
30499 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
30500 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
30501 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
30502 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
30503 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
30504 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
30505 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
30506 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
30507 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
30508 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
30509 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
30510 (avrxmega6): Increase max flash segments from 5 to 6.
30511 * config/avr/t-multilib: Regenerate.
30512 * config/avr/avr-tables.opt: Regenerate.
30513 * doc/avr-mmcu.texi: Regenerate.
30515 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
30517 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
30518 (avr_device_to_arch): Rename to avr_device_to_ld.
30519 (avr_device_to_as): New prototype.
30520 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
30521 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
30522 * config/avr/driver-avr.c (avr_device_to_as): New.
30523 (avr_device_to_arch): Rename to avr_device_to_ld.
30525 2013-02-27 Jakub Jelinek <jakub@redhat.com>
30527 PR middle-end/56461
30528 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
30529 method on dr_chain and result_chain.
30531 PR middle-end/56461
30532 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
30533 pointer_set_destroy on not_executed_last_iteration.
30535 PR middle-end/56461
30536 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
30538 PR middle-end/56461
30539 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
30540 FOR_EACH_DEFINED_FUNCTION when freeing state.
30542 PR middle-end/56461
30543 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
30545 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
30548 PR middle-end/56461
30549 * ipa-cp.c (decide_whether_version_node): Call vec_free on
30550 known_aggs[i].items and release known_aggs vector.
30552 PR middle-end/56461
30553 * ipa-reference.c (propagate): Free node_info even for alias nodes.
30555 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30557 * config/microblaze/microblaze.c (microblaze_emit_compare):
30558 Use xor for EQ/NE comparisions.
30559 * config/microblaze/microblaze.md (cstoresf4): Add constraints
30560 (cbranchsf4): Adjust operator to comparison_operator.
30562 2013-02-27 Jakub Jelinek <jakub@redhat.com>
30564 PR middle-end/56461
30565 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
30567 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
30568 vec_safe_push, always update *slot.
30569 (redirect_edge_var_map_clear): Use vec_free.
30570 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
30571 (free_var_map_entry): Use vec_free.
30572 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
30573 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
30575 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
30577 PR middle-end/45472
30578 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
30579 when the may_trap_p bit of the exprs being merged differs.
30580 Reorder tests for speculativeness in the logical and operator.
30582 2013-02-27 Jakub Jelinek <jakub@redhat.com>
30584 * incpath.c (add_standard_paths): Use reconcat instead of concat
30585 where appropriate and avoid leaking memory.
30587 * opts.h: Include obstack.h.
30588 (opts_concat): New prototype.
30589 (opts_obstack): New declaration.
30590 * opts.c (opts_concat): New function.
30591 (opts_obstack): New variable.
30592 (init_options_struct): Call gcc_init_obstack on opts_obstack.
30593 (finish_options): Use opts_concat instead of concat
30594 and XOBNEWVEC instead of XNEWVEC.
30595 * opts-common.c (generate_canonical_option, decode_cmdline_option,
30596 generate_option): Likewise.
30597 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
30598 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
30601 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
30602 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
30604 2013-02-26 Jakub Jelinek <jakub@redhat.com>
30606 PR middle-end/56461
30607 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
30609 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
30611 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
30612 (arm_block_move_unaligned_straight): Likewise.
30613 (arm_adjust_block_mem): Likewise.
30615 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
30618 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
30619 temp, cond and label.
30620 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
30623 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
30624 * config/c6x/c6x.h (dbx_register_map): Update declaration.
30627 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
30628 of prologue/epilogue functions.
30631 * config/tilegx/tilegx.c (tilegx_expand_prologue):
30632 Remove unused variable cfa_offset.
30633 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
30636 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
30637 type promotion to unsigned.
30640 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
30641 for HOST_WIDE_INT of 32 bit / same size as int.
30642 (arm_block_move_unaligned_straight): Likewise.
30643 (arm_adjust_block_mem): Likewise.
30646 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
30649 2013-02-26 Marek Polacek <polacek@redhat.com>
30651 PR tree-optimization/56426
30652 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
30654 2013-02-26 Richard Biener <rguenther@suse.de>
30657 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
30658 unused variable loops.
30660 2013-02-26 Jakub Jelinek <jakub@redhat.com>
30662 PR tree-optimization/56448
30663 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
30664 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
30665 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
30666 later operands of the references, or even first operand for
30667 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
30669 PR tree-optimization/56443
30670 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
30671 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
30672 to type_for_mode langhook.
30674 2013-02-25 Matt Turner <mattst88@gmail.com>
30676 * doc/invoke.texi: Document r4700.
30678 2013-02-25 Richard Biener <rguenther@suse.de>
30680 PR tree-optimization/56175
30681 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
30683 (simplify_bitwise_binary): ... here. Also guard the conversion
30684 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
30686 2013-02-25 Catherine Moore <clm@codesourcery.com>
30689 2013-02-24 Catherine Moore <clm@codesourcery.com>
30690 Maciej W. Rozycki <macro@codesourcery.com>
30691 Tom de Vries <tom@codesourcery.com>
30692 Nathan Sidwell <nathan@codesourcery.com>
30693 Iain Sandoe <iain@codesourcery.com>
30694 Nathan Froyd <froydnj@codesourcery.com>
30695 Chao-ying Fu <fu@mips.com>
30697 * doc/extend.texi: (micromips, nomicromips, nocompression):
30698 Document new function attributes.
30699 * doc/invoke.texi (minterlink-compressed, mmicromips,
30700 m14k, m14ke, m14kec): Document new options.
30701 (minterlink-mips16): Update documentation.
30702 * doc/md.texi (ZC, ZD): Document new constraints.
30703 * configure.ac (gcc_cv_as_micromips): Check if linker
30704 supports the .set micromips directive.
30705 * configure: Regenerate.
30706 * config.in: Regenerate.
30707 * config/mips/mips-tables.opt: Regenerate.
30708 * config/mips/micromips.md: New file.
30709 * constraints.md (ZC, AD): New constraints.
30710 * config/mips/predicates.md (movep_src_register): New predicate.
30711 (movep_src_operand): New predicate.
30712 (non_volatile_mem_operand): New predicate.
30713 * config/mips/mips.md (multimem): New type.
30714 (length): Differentiate between 17-bit and 18-bit branch offsets.
30715 (MOVEP1, MOVEP2): New mode iterator.
30716 (mov_<load>l): Use ZC constraint.
30717 (mov_<load>r): Likewise.
30718 (mov_<store>l): Likewise.
30719 (mov_<store>r): Likewise.
30720 (*branch_equality<mode>_inverted): Add microMIPS support.
30721 (*branch_equality<mode>): Likewise.
30722 (*jump_absolute): Likewise.
30723 (indirect_jump_<mode>): Likewise.
30724 (tablejump_<mode>): Likewise.
30725 (<optab>_internal): Likewise.
30726 (sibcall_internal): Likewise.
30727 (sibcall_value_internal): Likewise.
30728 (prefetch): Use constraint ZD.
30729 * config/mips/mips.opt (minterlink-compressed): New option.
30730 (minterlink-mips16): Now an alias for minterlink-compressed.
30731 (mmicromips): New option.
30732 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30733 (compare_and_swap_12): Likewise.
30734 (sync_add<mode>): Likewise.
30735 (sync_<optab>_12): Likewise.
30736 (sync_old_<optab>_12): Likewise.
30737 (sync_new_<optab>_12): Likewise.
30738 (sync_nand_12): Likewise.
30739 (sync_old_nand_12): Likewise.
30740 (sync_new_nand_12): Likewise.
30741 (sync_sub<mode>): Likewise.
30742 (sync_old_add<mode>): Likewise.
30743 (sync_old_sub<mode>): Likewise.
30744 (sync_new_add<mode>): Likewise.
30745 (sync_new_sub<mode>): Likewise.
30746 (sync_<optab><mode>): Likewise.
30747 (sync_old_<optab><mode>): Likewise.
30748 (sync_new_<optab><mode>): Likewise.
30749 (sync_nand<mode>): Likewise.
30750 (sync_old_nand<mode>): Likewise.
30751 (sync_new_nand<mode>): Likewise.
30752 (sync_lock_test_and_set<mode>): Likewise.
30753 (test_and_set_12): Likewise.
30754 (atomic_compare_and_swap<mode>): Likewise.
30755 (atomic_exchange<mode>_llsc): Likewise.
30756 (atomic_fetch_add<mode>_llsc): Likewise.
30757 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30758 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30759 (umips_save_restore_pattern_p): Likewise.
30760 (umips_load_store_pair_p): Likewise.
30761 (umips_output_load_store_pair): Likewise.
30762 (umips_movep_target_p): Likewise.
30763 (umips_12bit_offset_address_p): Likewise.
30764 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30765 (mips_base_mips16): Rename this...
30766 (mips_base_compression_flags): ...to this. Update all uses.
30767 (mips_attribute_table): Add micromips, nomicromips and nocompression.
30768 (mips_mips16_decl_p): Delete.
30769 (mips_nomips16_decl_p): Delete.
30770 (mips_get_compress_on_flags): New function.
30771 (mips_get_compress_off_flags): New function.
30772 (mips_get_compress_mode): New function.
30773 (mips_get_compress_on_name): New function.
30774 (mips_get_compress_off_name): New function.
30775 (mips_insert_attributes): Support multiple compression types.
30776 (mips_merge_decl_attributes): Likewise.
30777 (umips_12bit_offset_address_p): New function.
30778 (mips_start_function_definition): Emit .set micromips directive.
30779 (mips_call_may_need_jalx_p): New function.
30780 (mips_function_ok_for_sibcall): Add microMIPS support.
30781 (mips_print_operand_punctuation): Support short delay slots and
30783 (umips_swm_mask, umips_swm_encoding): New.
30784 (umips_build_save_restore): New function.
30785 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30786 (was_mips16_p): Remove.
30787 (old_compression_mode): New.
30788 (mips_set_compression_mode): New function.
30789 (mips_set_current_function): Add microMIPS support.
30790 (mips_option_override): Likewise.
30791 (umips_save_restore_pattern_p): New function.
30792 (umips_output_save_restore): New function.
30793 (umips_load_store_pair_p_1): New function.
30794 (umips_load_store_pair_p): New function.
30795 (umips_output_load_store_pair_1): New function.
30796 (umips_output_load_store_pair): New function.
30797 (umips_movep_target_p) New function.
30798 (mips_prepare_pch_save): Add microMIPS support.
30799 * config/mips/mips.h (TARGET_COMPRESSION): New.
30800 (TARGET_CPU_CPP_BUILTINS): Update macro
30801 to use new compression flags and to support microMIPS.
30802 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30803 (MIPS_ARCH_FLOAT_SPEC): Likewise.
30804 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30805 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30806 (ASM_SPEC): Support mmicromips and mno-micromips.
30807 (M16STORE_REG_P): New macro.
30808 (MIPS_CALL): Support TARGET_MICROMIPS.
30809 (MICROMIPS_J): New macro.
30810 (mips_base_mips16): Rename this...
30811 (mips_base_compression_flags): ...to this.
30812 (UMIPS_12BIT_OFFSET_P): New macro.
30813 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30814 (MULTILIB_DIRNAMES): Likewise.
30816 2013-02-25 Tom de Vries <tom@codesourcery.com>
30818 PR rtl-optimization/56131
30819 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
30820 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
30821 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
30823 2013-02-25 Tobias Burnus <burnus@net-b.de>
30825 * doc/invoke.texi (-fsanitize=): Move from optimization
30826 to debugging options.
30828 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
30830 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
30832 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
30833 Alexander Monakov <amonakov@ispras.ru>
30835 PR middle-end/56077
30836 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
30837 flush pending lists also on non-jumps. Adjust comment.
30839 2013-02-24 Catherine Moore <clm@codesourcery.com>
30840 Maciej W. Rozycki <macro@codesourcery.com>
30841 Tom de Vries <tom@codesourcery.com>
30842 Nathan Sidwell <nathan@codesourcery.com>
30843 Iain Sandoe <iain@codesourcery.com>
30844 Nathan Froyd <froydnj@codesourcery.com>
30845 Chao-ying Fu <fu@mips.com>
30847 * doc/extend.texi: (micromips, nomicromips, nocompression):
30848 Document new function attributes.
30849 * doc/invoke.texi (minterlink-compressed, mmicromips,
30850 m14k, m14ke, m14kec): Document new options.
30851 (minterlink-mips16): Update documentation.
30852 * doc/md.texi (ZC, ZD): Document new constraints.
30853 * configure.ac (gcc_cv_as_micromips): Check if linker
30854 supports the .set micromips directive.
30855 * configure: Regenerate.
30856 * config.in: Regenerate.
30857 * config/mips/mips-tables.opt: Regenerate.
30858 * config/mips/micromips.md: New file.
30859 * constraints.md (ZC, AD): New constraints.
30860 * config/mips/predicates.md (movep_src_register): New predicate.
30861 (movep_src_operand): New predicate.
30862 (non_volatile_mem_operand): New predicate.
30863 * config/mips/mips.md (multimem): New type.
30864 (length): Differentiate between 17-bit and 18-bit branch offsets.
30865 (MOVEP1, MOVEP2): New mode iterator.
30866 (mov_<load>l): Use ZC constraint.
30867 (mov_<load>r): Likewise.
30868 (mov_<store>l): Likewise.
30869 (mov_<store>r): Likewise.
30870 (*branch_equality<mode>_inverted): Add microMIPS support.
30871 (*branch_equality<mode>): Likewise.
30872 (*jump_absolute): Likewise.
30873 (indirect_jump_<mode>): Likewise.
30874 (tablejump_<mode>): Likewise.
30875 (<optab>_internal): Likewise.
30876 (sibcall_internal): Likewise.
30877 (sibcall_value_internal): Likewise.
30878 (prefetch): Use constraint ZD.
30879 * config/mips/mips.opt (minterlink-compressed): New option.
30880 (minterlink-mips16): Now an alias for minterlink-compressed.
30881 (mmicromips): New option.
30882 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30883 (compare_and_swap_12): Likewise.
30884 (sync_add<mode>): Likewise.
30885 (sync_<optab>_12): Likewise.
30886 (sync_old_<optab>_12): Likewise.
30887 (sync_new_<optab>_12): Likewise.
30888 (sync_nand_12): Likewise.
30889 (sync_old_nand_12): Likewise.
30890 (sync_new_nand_12): Likewise.
30891 (sync_sub<mode>): Likewise.
30892 (sync_old_add<mode>): Likewise.
30893 (sync_old_sub<mode>): Likewise.
30894 (sync_new_add<mode>): Likewise.
30895 (sync_new_sub<mode>): Likewise.
30896 (sync_<optab><mode>): Likewise.
30897 (sync_old_<optab><mode>): Likewise.
30898 (sync_new_<optab><mode>): Likewise.
30899 (sync_nand<mode>): Likewise.
30900 (sync_old_nand<mode>): Likewise.
30901 (sync_new_nand<mode>): Likewise.
30902 (sync_lock_test_and_set<mode>): Likewise.
30903 (test_and_set_12): Likewise.
30904 (atomic_compare_and_swap<mode>): Likewise.
30905 (atomic_exchange<mode>_llsc): Likewise.
30906 (atomic_fetch_add<mode>_llsc): Likewise.
30907 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30908 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30909 (umips_save_restore_pattern_p): Likewise.
30910 (umips_load_store_pair_p): Likewise.
30911 (umips_output_load_store_pair): Likewise.
30912 (umips_movep_target_p): Likewise.
30913 (umips_12bit_offset_address_p): Likewise.
30914 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30915 (mips_base_mips16): Rename this...
30916 (mips_base_compression_flags): ...to this. Update all uses.
30917 (mips_attribute_table): Add micromips, nomicromips and nocompression.
30918 (mips_mips16_decl_p): Delete.
30919 (mips_nomips16_decl_p): Delete.
30920 (mips_get_compress_on_flags): New function.
30921 (mips_get_compress_off_flags): New function.
30922 (mips_get_compress_mode): New function.
30923 (mips_get_compress_on_name): New function.
30924 (mips_get_compress_off_name): New function.
30925 (mips_insert_attributes): Support multiple compression types.
30926 (mips_merge_decl_attributes): Likewise.
30927 (umips_12bit_offset_address_p): New function.
30928 (mips_start_function_definition): Emit .set micromips directive.
30929 (mips_call_may_need_jalx_p): New function.
30930 (mips_function_ok_for_sibcall): Add microMIPS support.
30931 (mips_print_operand_punctuation): Support short delay slots and
30933 (umips_swm_mask, umips_swm_encoding): New.
30934 (umips_build_save_restore): New function.
30935 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30936 (was_mips16_p): Remove.
30937 (old_compression_mode): New.
30938 (mips_set_compression_mode): New function.
30939 (mips_set_current_function): Add microMIPS support.
30940 (mips_option_override): Likewise.
30941 (umips_save_restore_pattern_p): New function.
30942 (umips_output_save_restore): New function.
30943 (umips_load_store_pair_p_1): New function.
30944 (umips_load_store_pair_p): New function.
30945 (umips_output_load_store_pair_1): New function.
30946 (umips_output_load_store_pair): New function.
30947 (umips_movep_target_p) New function.
30948 (mips_prepare_pch_save): Add microMIPS support.
30949 * config/mips/mips.h (TARGET_COMPRESSION): New.
30950 (TARGET_CPU_CPP_BUILTINS): Update macro
30951 to use new compression flags and to support microMIPS.
30952 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30953 (MIPS_ARCH_FLOAT_SPEC): Likewise.
30954 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30955 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30956 (ASM_SPEC): Support mmicromips and mno-micromips.
30957 (M16STORE_REG_P): New macro.
30958 (MIPS_CALL): Support TARGET_MICROMIPS.
30959 (MICROMIPS_J): New macro.
30960 (mips_base_mips16): Rename this...
30961 (mips_base_compression_flags): ...to this.
30962 (UMIPS_12BIT_OFFSET_P): New macro.
30963 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30964 (MULTILIB_DIRNAMES): Likewise.
30966 2013-02-24 Jakub Jelinek <jakub@redhat.com>
30969 * target-globals.c (save_target_globals): For init_reg_sets and
30970 target_reinit remporarily set this_fn_optabs to this_target_optabs.
30972 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
30974 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
30975 * config/aarch64/t-aarch64
30976 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
30978 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
30980 PR inline-asm/56148
30981 * lra-constraints.c (process_alt_operands): Reload operand
30982 conflicting with earlier clobber only if no more other conflicting
30985 2013-02-22 Jakub Jelinek <jakub@redhat.com>
30988 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
30989 if not linking a shared library.
30991 2013-02-22 Seth LaForge <sethml@google.com>
30993 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
30995 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
30997 * config/arm/arm.md (split for extendsidi): Update condition.
30998 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
30999 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
31000 (qhs_zextenddi_cstr): Likewise.
31002 2013-02-21 Jakub Jelinek <jakub@redhat.com>
31004 PR middle-end/56420
31005 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
31006 avoid signed wrapping.
31007 (expand_mult): Handle properly multiplication by
31008 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
31009 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
31010 in the compiler if coeff is HOST_WIDE_INT_MIN.
31011 (expand_divmod): Don't make ext_op1 static, change it's type to
31012 uhwi. Avoid undefined behavior in -INTVAL (op1).
31014 PR rtl-optimization/50339
31015 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
31017 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
31018 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
31019 into splitting_ashiftrt field.
31020 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
31022 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
31025 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
31027 PR middle-end/56108
31028 * trans-mem.c (execute_tm_mark): Do not expand transactions that
31029 are sure to go irrevocable.
31031 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
31033 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
31034 scalars are valid operands.
31036 2013-02-21 Martin Jambor <mjambor@suse.cz>
31038 PR tree-optimization/56310
31039 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
31040 only matching indices and non-negative final offsets.
31041 (intersect_aggregates_with_edge): Pass src_idx to
31042 agg_replacements_to_vector. Pass src_idx insstead of index to
31043 intersect_with_agg_replacements.
31045 2013-02-21 Martin Jambor <mjambor@suse.cz>
31047 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
31048 instead of hard-wired defaults.
31050 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
31052 * doc/invoke.texi (MIPS Options): Update documentation of the
31053 floating-point multiply-accumulate instruction restrictions.
31055 2013-02-21 Kostya Serebryany <kcc@google.com>
31057 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
31058 asan_shadow_offset on x86_64 linux.
31060 2013-02-21 Richard Biener <rguenther@suse.de>
31062 PR tree-optimization/56415
31064 2013-02-11 Richard Biener <rguenther@suse.de>
31066 PR tree-optimization/56273
31067 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
31070 2013-02-21 Jakub Jelinek <jakub@redhat.com>
31073 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
31076 PR inline-asm/56405
31077 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
31078 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
31080 2013-02-20 Jan Hubicka <jh@suse.cz>
31082 PR tree-optimization/56265
31083 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
31084 when target is referenced for first time.
31086 2013-02-20 Richard Biener <rguenther@suse.de>
31088 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
31089 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
31090 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
31091 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
31092 not return anything.
31093 (rename_ssa_copies): Do not remove unused locals.
31094 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
31095 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
31096 * passes.c (execute_function_todo): Do not schedule unused locals
31097 removal if cleanup_tree_cfg did something.
31098 * tree-ssa-live.c (remove_unused_locals): Dump statistics
31099 about the number of removed locals.
31101 2013-02-20 Richard Biener <rguenther@suse.de>
31103 PR tree-optimization/56398
31104 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
31106 2013-02-20 Martin Jambor <mjambor@suse.cz>
31108 PR tree-optimization/55334
31109 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
31110 restricted pointers to arrays.
31112 2013-02-20 Richard Biener <rguenther@suse.de>
31113 Jakub Jelinek <jakub@redhat.com>
31115 PR tree-optimization/56396
31116 * tree-ssa-ccp.c (n_const_val): New static variable.
31117 (get_value): Return NULL for SSA names we don't have a lattice
31119 (ccp_initialize): Initialize n_const_val.
31120 * tree-ssa-copy.c (n_copy_of): New static variable.
31121 (init_copy_prop): Initialize n_copy_of.
31122 (get_value): Return NULL_TREE for SSA names we don't have a
31125 2013-02-20 Martin Jambor <mjambor@suse.cz>
31127 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
31129 2013-02-20 Richard Biener <rguenther@suse.de>
31131 * genpreds.c (write_lookup_constraint): Do not compare first
31132 letter of the constraint again.
31134 2013-02-20 Richard Biener <rguenther@suse.de>
31136 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
31138 (get_use_iv_cost): Terminate hashtable walk when coming across
31141 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
31143 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
31144 reassociation for avx2 targets.
31146 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31148 * config/microblaze/microblaze.c: microblaze_has_clz = 0
31149 Add version check for v8.10.a to enable microblaze_has_clz
31150 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
31151 version and TARGET_PATTERN_COMPARE check
31152 * config/microblaze/microblaze.md: New clzsi2 instruction
31154 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31156 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
31157 function before branching.
31159 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
31161 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
31163 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
31165 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
31167 PR middle-end/55889
31168 * sel-sched.c: Include ira.h.
31169 (implicit_clobber_conflict_p): New function.
31170 (moveup_expr): Use it.
31171 * Makefile.in (sel-sched.o): Depend on ira.h.
31173 2013-02-19 Richard Biener <rguenther@suse.de>
31175 PR tree-optimization/56384
31176 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
31177 (vn_hash_type): Split out from ...
31178 (vn_hash_constant_with_type): ... here.
31179 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
31180 (vn_phi_eq): Compare types from vn_phi_s structure.
31181 (vn_phi_lookup): Populate vn_phi_s type.
31182 (vn_phi_insert): Likewise.
31184 2013-02-19 Jakub Jelinek <jakub@redhat.com>
31186 PR tree-optimization/56350
31187 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
31188 if haven't found reduction or nested cycle operand, rather than
31189 asserting we must find it.
31191 PR tree-optimization/56381
31192 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
31195 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
31196 Jakub Jelinek <jakub@redhat.com>
31199 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
31200 (swap_optab_enable): Same.
31201 (init_all_optabs): Use argument instead of global.
31202 * tree.h (struct tree_optimization_option): New field target_optabs.
31203 * expr.h (init_all_optabs): Add argument to prototype.
31204 (TREE_OPTIMIZATION_OPTABS): New.
31205 (save_optabs_if_changed): Protoize.
31206 * optabs.h: Declare this_fn_optabs.
31207 * optabs.c (save_optabs_if_changed): New.
31208 Declare this_fn_optabs.
31209 (init_optabs): Add argument to init_all_optabs() call.
31210 * function.c (invoke_set_current_function_hook): Handle per
31212 * function.h (struct function): New field optabs.
31213 * config/mips/mips.c (mips_set_mips16_mode): Handle when
31214 optimization_current_node has changed.
31215 * target-globals.h (save_target_globals_default_opts): Protoize.
31216 * target-globals.c (save_target_globals_default_opts): New.
31218 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31221 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
31222 registers %fr12 and %fr12R as call used.
31225 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
31226 and HImode, require all displacements to be an integer multiple of
31228 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
31229 only allow QImode and HImode when reload is in progress and strict is
31230 true. Likewise for symbolic addresses. Use base14_operand to check
31231 displacements in REG+BASE addresses.
31233 2013-02-18 Richard Biener <rguenther@suse.de>
31235 PR tree-optimization/56366
31236 * tree-vect-loop.c (get_initial_def_for_induction): Properly
31237 handle sign-conversion of outer-loop initial induction value.
31239 2013-02-18 Richard Biener <rguenther@suse.de>
31241 PR middle-end/56349
31242 * cfghooks.c (merge_blocks): If we merge a latch into another
31243 block adjust references to it.
31244 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
31245 (verify_loop_structure): Verify that a recorded latch is in fact
31248 2013-02-18 Richard Biener <rguenther@suse.de>
31250 PR tree-optimization/56321
31251 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
31252 order SSA name release and virtual operand unlinking.
31254 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31256 * config/microblaze/microblaze.md (save_stack_block): Define.
31257 (restore_stack_block): Likewise.
31259 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31261 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
31262 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
31263 * config/microblaze/microblaze.c (microblaze_option_override):
31264 Bail out early for PIC modes when target does not support PIC.
31266 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31268 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
31269 Replace with a microblaze version.
31270 (microblaze_trampoline_init): Adapt for microblaze.
31271 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
31274 2013-02-16 Jakub Jelinek <jakub@redhat.com>
31275 Dodji Seketeli <dodji@redhat.com>
31278 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
31279 (instrument_mem_region_access): Do not forget to always put
31280 instrumentation of the of 'base' and 'base + len' in a "if (len !=
31281 0) statement, even for cases where either 'base' or 'base + len'
31282 are not instrumented -- because they have been previously
31283 instrumented. Simplify the logic by putting all the statements
31284 instrument 'base + len' inside a sequence, and then insert that
31285 sequence right before the current insertion point. Then, to
31286 instrument 'base + len', just get an iterator on that statement.
31287 And do not forget to update the pointer to iterator the function
31288 received as argument.
31290 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
31292 PR rtl-optimization/56348
31293 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
31295 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
31297 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
31298 (clean_graph_dump_file): Pass base to start_graph_dump.
31300 2013-02-14 Richard Henderson <rth@redhat.com>
31303 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
31305 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
31307 * collect2-aix.h: Define F_LOADONLY.
31309 2013-02-14 Richard Biener <rguenther@suse.de>
31312 * varasm.c (output_constant_def_1): Get the decl representing
31313 the constant as argument.
31314 (output_constant_def): Wrap output_constant_def_1.
31315 (make_decl_rtl): Use output_constant_def_1 with the decl
31316 representing the constant.
31317 (build_constant_desc): Optionally re-use a decl already
31318 representing the constant.
31319 (tree_output_constant_def): Adjust.
31321 2013-02-14 Dodji Seketeli <dodji@redhat.com>
31324 * asan.c (instrument_builtin_call): Really put the length of the
31325 second source argument into src1_len.
31327 2013-02-13 Jakub Jelinek <jakub@redhat.com>
31329 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
31330 argument. If it is false, don't create edge from then_bb to
31332 (insert_if_then_before_iter): Pass true to it.
31333 (build_check_stmt): Pass false to it.
31334 (transform_statements): Flush hash table only on extended basic
31335 block boundaries, rather than at the beginning of every bb.
31336 Don't flush hash table on nonfreeing_call_p calls.
31337 * tree-flow.h (nonfreeing_call_p): New prototype.
31338 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
31340 2013-02-13 David S. Miller <davem@davemloft.net>
31342 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
31344 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
31347 * ira.c (max_regno_before_ira): Move from ...
31349 (fix_reg_equiv_init): Use max_regno_before_ira instead of
31352 2013-02-13 Jakub Jelinek <jakub@redhat.com>
31354 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
31356 2013-02-13 Richard Biener <rguenther@suse.de>
31359 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
31360 globals in MEM_REFs.
31362 2013-02-13 Richard Biener <rguenther@suse.de>
31364 * loop-init.c (loop_optimizer_init): Clear loop state when
31365 re-initializing preserved loops.
31366 * loop-unswitch.c (unswitch_single_loop): Return whether
31367 we unswitched the loop. Do not verify loop state here.
31368 (unswitch_loops): When we unswitched a loop discover new loops.
31370 2013-02-13 Kostya Serebryany <kcc@google.com>
31372 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
31374 * sanitizer.def: Rename __asan_init to __asan_init_v1.
31376 2013-02-12 Dodji Seketeli <dodji@redhat.com>
31378 Avoid instrumenting duplicated memory access in the same basic block
31379 * Makefile.in (asan.o): Add new dependency on hash-table.h
31380 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
31381 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
31382 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
31383 (free_mem_ref_resources, has_mem_ref_been_instrumented)
31384 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
31385 (get_mem_ref_of_assignment): New functions.
31386 (get_mem_refs_of_builtin_call): Extract from
31387 instrument_builtin_call and tweak a little bit to make it fit with
31389 (instrument_builtin_call): Use the new
31390 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
31391 of is_gimple_builtin_call.
31392 (instrument_derefs, instrument_mem_region_access): Insert the
31393 instrumented memory reference into the hash table.
31394 (maybe_instrument_assignment): Renamed instrument_assignment into
31395 this, and change it to advance the iterator when instrumentation
31396 actually happened and return true in that case. This makes it
31397 homogeneous with maybe_instrument_assignment, and thus give a
31398 chance to callers to be more 'regular'.
31399 (transform_statements): Clear the memory reference hash table
31400 whenever we enter a new BB, when we cross a function call, or when
31401 we are done transforming statements. Use
31402 maybe_instrument_assignment instead of instrumentation. No more
31403 need to special case maybe_instrument_assignment and advance the
31404 iterator after calling it; it's now handled just like
31405 maybe_instrument_call. Update comment.
31407 2013-02-13 Richard Biener <rguenther@suse.de>
31409 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
31410 Fix loop discovery code.
31412 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
31414 PR inline-asm/56148
31415 * lra-constraints.c (process_alt_operands): Match early clobber
31416 operand with itself. Check conflicts with earlyclobber only if
31417 the operand is not reloaded. Prefer to reload conflicting operand
31418 if earlyclobber and matching operands are the same.
31420 2013-02-12 Richard Biener <rguenther@suse.de>
31423 * lto-streamer-out.c (write_symbol): Do not output symbols
31424 for hard register variables.
31426 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
31429 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
31430 (umulsidi3_insn, mulsidi3_insn): New insns.
31432 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
31434 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
31435 (struct tune_params): Add vec_costs field.
31436 * config/arm/arm.c (arm_builtin_vectorization_cost)
31437 (arm_add_stmt_cost): New functions.
31438 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
31439 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
31440 (arm_default_vec_cost): New struct of type cpu_vec_costs.
31441 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
31442 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
31443 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
31444 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
31446 2013-02-12 Richard Biener <rguenther@suse.de>
31449 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
31450 decls again if possible.
31452 2013-02-12 Richard Biener <rguenther@suse.de>
31454 PR middle-end/56288
31455 * tree-ssa.c (verify_ssa_name): Fix check, move
31456 SSA_NAME_IN_FREE_LIST check up.
31458 2013-02-12 Jakub Jelinek <jakub@redhat.com>
31459 Steven Bosscher <steven@gcc.gnu.org>
31461 PR rtl-optimization/56151
31462 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
31463 equal to op0 or op1, and last_insn pattern is CODE operation
31464 with MEM dest and one of the operands matches that MEM.
31466 2013-02-11 Sriraman Tallam <tmsriram@google.com>
31468 * doc/extend.texi: Document Function Multiversioning and "default"
31469 parameter string to target attribute.
31470 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
31471 target attribute parameter is "default".
31472 (ix86_compare_version_priority): Remove checks for target attribute.
31473 (ix86_mangle_function_version_assembler_name): Change error to sorry.
31474 Remove check for target attribute equal to NULL. Add assert.
31475 (ix86_generate_version_dispatcher_body): Change error to sorry.
31477 2013-02-11 Iain Sandoe <iain@codesourcery.com>
31478 Jack Howarth <howarth@bromo.med.uc.edu>
31479 Patrick Marlier <patrick.marlier@gmail.com>
31482 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
31483 define ENDFILE_SPEC as TM_DESTRUCTOR.
31484 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
31486 2013-02-11 Alexander Potapenko <glider@google.com>
31487 Jack Howarth <howarth@bromo.med.uc.edu>
31488 Jakub Jelinek <jakub@redhat.com>
31491 * config/darwin.c (cdtor_record): Rename ctor_record.
31492 (sort_cdtor_records): Rename sort_ctor_records.
31493 (finalize_dtors): New routine to sort destructors by
31494 priority before use in assemble_integer.
31495 (machopic_asm_out_destructor): Use finalize_dtors if needed.
31497 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
31499 PR rtl-optimization/56275
31500 * simplify-rtx.c (avoid_constant_pool_reference): Check that
31501 offset is non-negative and less than cmode size before
31502 calling simplify_subreg.
31504 2013-02-11 Richard Biener <rguenther@suse.de>
31506 PR tree-optimization/56264
31507 * cfgloop.h (fix_loop_structure): Adjust prototype.
31508 * loop-init.c (fix_loop_structure): Return the number of
31509 newly discovered loops.
31510 * tree-cfgcleanup.c (repair_loop_structures): When new loops
31511 are discovered, do a full loop-closed SSA rewrite.
31513 2013-02-11 Richard Biener <rguenther@suse.de>
31515 PR tree-optimization/56273
31516 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
31518 (check_array_ref): Fix missing newline in dumps.
31519 (search_for_addr_array): Likewise.
31521 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
31523 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
31525 2013-02-09 Jakub Jelinek <jakub@redhat.com>
31528 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
31530 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
31532 PR rtl-optimization/56246
31533 * lra-constraints.c (simplify_operand_subreg): Try to reuse
31535 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
31536 constraints are satisfied.
31538 2013-02-08 Jeff Law <law@redhat.com>
31541 * emit-rtl.c (reg_is_parm_p): New function.
31542 * regs.h (reg_is_parm_p): New prototype.
31543 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
31544 callee-clobbered registers.
31546 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
31549 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
31550 If there is no implicit builtin declaration, just return NULL.
31552 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
31554 * config/i386/sse.md (FMAMODEM): New mode iterator.
31555 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
31556 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
31558 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
31560 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
31561 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
31562 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
31564 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31566 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
31567 (microblaze*-*-elf): Likewise.
31568 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
31570 * config/microblaze/microblaze-c.c: Add builtin defines for
31571 _LITTLE_ENDIAN and _BIG_ENDIAN.
31572 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
31573 add to TARGET_DEFAULT flags.
31574 Expand ASM_SPEC and LINK_SPEC.
31575 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
31576 * config/microblaze/microblaze.md: Update extendsidi2 and
31577 movdi_internal instructions to use low-order / high-order reg
31579 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
31580 options and inversemask / mask of LITTLE_ENDIAN.
31581 * config/microblaze/t-microblaze: Expand multilib options to
31582 include mlittle-endian (le) and update exceptions patterns.
31584 2013-02-08 Jakub Jelinek <jakub@redhat.com>
31586 PR rtl-optimization/56195
31587 * lra-constraints.c (get_reload_reg): Don't reuse regs
31588 if they have smaller mode than requested, if they have
31589 wider mode than requested, try to return a SUBREG.
31591 PR tree-optimization/56250
31592 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
31593 if type is unsigned and code isn't MULT_EXPR.
31595 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
31597 PR tree-optimization/56064
31598 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
31599 bits according to mode.
31600 * fixed-value.h (fixed_from_double_int)
31601 (const_fixed_from_double_int): Adjust comments.
31603 2013-02-08 Richard Biener <rguenther@suse.de>
31606 * lto-streamer.h (struct data_in): Remove current_file, current_line
31607 and current_col members.
31608 * lto-streamer-out.c (lto_output_location): Stream changed bits
31609 en-block for efficiency.
31610 * lto-streamer-in.c (clear_line_info): Remove.
31611 (lto_input_location): Cache current file, line and column
31612 globally via local statics. Read changed bits en-block.
31613 (input_function): Do not call clear_line_info.
31614 (lto_read_body): Likewise.
31615 (lto_input_toplevel_asms): Likewise.
31617 2013-02-08 Michael Matz <matz@suse.de>
31619 PR tree-optimization/52448
31620 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
31621 (nt_call_phase): New static.
31622 (add_or_mark_expr): Only mark accesses with newer phase than any
31624 (nonfreeing_call_p): New.
31625 (nt_init_block): Update nt_call_phase, mark blocks as visited.
31626 (nt_fini_block): Keep blocks marked as visited.
31627 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
31629 2013-02-08 Richard Biener <rguenther@suse.de>
31631 * ira.c (ira): Free broken dominator information.
31633 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
31635 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
31637 2013-02-08 Marek Polacek <polacek@redhat.com>
31639 * cfgloop.c (verify_loop_structure): Add more checking of headers.
31641 2013-02-08 Richard Biener <rguenther@suse.de>
31643 PR middle-end/56181
31644 * cfgloop.h (flow_loops_find): Adjust.
31645 (bb_loop_header_p): Declare.
31646 * cfgloop.c (bb_loop_header_p): New function split out from ...
31647 (flow_loops_find): ... here. Adjust function signature,
31648 support incremental loop structure update.
31649 (verify_loop_structure): Cleanup. Verify a loop is a loop.
31650 * cfgloopmanip.c (fix_loop_structure): Move ...
31651 * loop-init.c (fix_loop_structure): ... here.
31652 (apply_loop_flags): Split out from ...
31653 (loop_optimizer_init): ... here.
31654 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
31655 in incremental mode, only remove dead loops here.
31657 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
31660 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
31661 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
31662 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
31663 (*round<mode>3.libgcc): New insns for fixed-modes.
31664 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
31665 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
31666 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
31667 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
31668 implementations. Define to __builtin_avr_absFX,
31669 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
31670 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
31671 __builtin_avr_countlsFX, respectively.
31672 * config/avr/avr-c.c (target.h): Include it.
31673 (enum avr_builtin_id): New enum.
31674 (avr_resolve_overloaded_builtin): New static function.
31675 (avr_register_target_pragmas): Use it to set
31676 targetm.resolve_overloaded_builtin.
31677 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
31678 tree nodes used by DEF_BUILTIN.
31679 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
31680 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
31681 <AVR_BUILTIN_xxBITS>: Same.
31683 2013-02-08 Richard Biener <rguenther@suse.de>
31685 * cfgloop.c (verify_loop_structure): Properly handle
31686 a loop exiting to another loop header.
31687 * ira-int.h (ira_loops): Remove.
31688 * ira.c (ira_loops): Remove.
31689 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
31690 (do_reload): Use loop_optimizer_finalize.
31691 * ira-build.c (create_loop_tree_nodes): Use get_loops and
31692 number_of_loops to access the loop tree.
31693 (more_one_region_p): Likewise.
31694 (finish_loop_tree_nodes): Likewise.
31695 (rebuild_regno_allocno_maps): Likewise.
31696 (mark_loops_for_removal): Likewise.
31697 (mark_all_loops_for_removal): Likewise.
31698 (remove_unnecessary_regions): Likewise.
31699 (ira_build): Likewise.
31700 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
31702 2013-02-08 Richard Biener <rguenther@suse.de>
31704 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
31705 * ipa-pure-const.c (analyze_function): Avoid calling
31706 mark_irreducible_loops twice.
31707 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
31709 2013-02-07 David S. Miller <davem@davemloft.net>
31711 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
31713 * var-tracking.c (vt_add_function_parameter): Test the presence of
31714 HAVE_window_save properly and do not remap argument registers when
31715 we have a leaf function.
31717 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
31720 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
31722 * config/i386/i386.c (ix86_print_operand): Ditto.
31724 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
31726 * lra-constraints.c (process_alt_operands): Fix recently added comment.
31728 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
31730 PR rtl-optimization/56225
31731 * lra-constraints.c (process_alt_operands): Check that reload hard
31732 reg can hold value for strict_low_part.
31734 2013-02-07 Jakub Jelinek <jakub@redhat.com>
31737 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
31738 dwarf2out_end_function.
31739 (in_first_function_p, maybe_at_text_label_p,
31740 first_loclabel_num_not_at_text_label): New variables.
31741 (dwarf2out_var_location): In the first function find out
31742 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
31743 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
31746 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
31748 PR rtl-optimization/56178
31749 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
31750 SUBREG of a register. Tidy up related block of code.
31751 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
31752 note if the source is a register or a SUBREG of a register.
31754 2013-02-07 Jakub Jelinek <jakub@redhat.com>
31757 * config/rs6000/rs6000.md (ptrm): New mode attr.
31758 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
31759 call_value_indirect_aix<pttrsize>,
31760 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
31763 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
31765 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
31766 if -bnortl. Convert to strcmp and strncmp.
31768 2013-02-07 Alan Modra <amodra@gmail.com>
31771 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
31772 addresses won't wrap when offsetting.
31773 (rs6000_secondary_reload): Provide secondary reloads needed for
31774 wrapping LO_SUM addresses.
31776 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
31778 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
31779 MACH, just __MACH__.
31781 2013-02-06 Richard Biener <rguenther@suse.de>
31783 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
31784 instead of calling fix_loop_structure.
31786 2013-02-06 Jakub Jelinek <jakub@redhat.com>
31788 PR middle-end/56217
31789 * omp-low.c (use_pointer_for_field): Return false if
31790 lower_send_shared_vars doesn't generate any copy-out code.
31792 2013-02-06 Tom de Vries <tom@codesourcery.com>
31794 PR rtl-optimization/56131
31795 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
31796 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
31797 of the label is NULL. Add comment.
31799 2013-02-05 Jakub Jelinek <jakub@redhat.com>
31801 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
31804 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
31805 (STATIC_LIBTSAN_LIBS): Likewise.
31806 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
31807 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
31808 is defined, don't add anything else beyond that.
31809 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
31810 (LINK_COMMAND_SPEC): Use them.
31812 PR tree-optimization/56205
31813 * tree-stdarg.c (check_all_va_list_escapes): Return true if
31814 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
31815 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
31817 2013-02-05 Richard Biener <rguenther@suse.de>
31819 PR tree-optimization/53342
31820 PR tree-optimization/53185
31821 * tree-vectorizer.h (vect_check_strided_load): Remove.
31822 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
31823 not disallow peeling for vectorized strided loads.
31824 (vect_check_strided_load): Make static and simplify.
31825 (vect_analyze_data_refs): Adjust.
31826 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
31827 correctly when vectorizing strided loads.
31829 2013-02-05 Richard Biener <rguenther@suse.de>
31831 * doc/install.texi: Refer to ISL, not PPL.
31833 2013-02-05 Jan Hubicka <jh@suse.cz>
31835 PR tree-optimization/55789
31836 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
31838 2013-02-05 Jan Hubicka <jh@suse.cz>
31840 PR tree-optimization/55789
31841 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
31842 the dead call anyway.
31844 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
31847 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
31849 2013-02-04 Alexander Potapenko <glider@google.com>
31850 Jack Howarth <howarth@bromo.med.uc.edu>
31851 Jakub Jelinek <jakub@redhat.com>
31854 * config/darwin.c (sort_ctor_records): Stabilized qsort
31855 on constructor priority by using original position.
31856 (finalize_ctors): New routine to sort constructors by
31857 priority before use in assemble_integer.
31858 (machopic_asm_out_constructor): Use finalize_ctors if needed.
31860 2013-02-04 Jakub Jelinek <jakub@redhat.com>
31863 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
31864 about visibility on artificial decls.
31865 * config/sol2.c (solaris_assemble_visibility): Likewise.
31867 2013-02-04 Kai Tietz <ktietz@redhat.com>
31870 * config/i386/i386.c (function_value_ms_64): Add additional valtype
31871 argument and improve checking of return-argument types for 16-byte
31873 (ix86_function_value_1): Add additional valtype argument on call
31874 of function_value_64.
31875 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
31876 handling infunction_value_64 function.
31878 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
31880 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
31882 2013-02-04 Richard Biener <rguenther@suse.de>
31884 PR tree-optimization/56188
31885 * tree-ssa-structalias.c (label_visit): Consider case with
31886 initially non-empty points-to set.
31887 (perform_var_substitution): Dump node mapping and clean up.
31889 2013-02-04 Richard Guenther <rguenther@suse.de>
31892 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
31893 node prevail as last resort.
31894 (lto_symtab_merge_decls): Remove guard on LTRANS here.
31895 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
31897 2013-02-04 Richard Biener <rguenther@suse.de>
31899 PR tree-optimization/56113
31900 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
31902 (equiv_class_lookup_or_add): ... this.
31903 (label_visit): Adjust and fix error in previous patch.
31904 (perform_var_substitution): Adjust.
31906 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
31908 * config/sh/divtab.c: Fix formatting and comments throughout the file.
31909 * config/sh/sh4-300.md: Likewise.
31910 * config/sh/sh4a.md: Likewise.
31911 * config/sh/constraints.md: Likewise.
31912 * config/sh/sh.md: Likewise.
31913 * config/sh/netbsd-elf.h: Likewise.
31914 * config/sh/predicates.md: Likewise.
31915 * config/sh/sh-protos.h: Likewise.
31916 * config/sh/ushmedia.h: Likewise.
31917 * config/sh/linux.h: Likewise.
31918 * config/sh/sh.c: Likewise.
31919 * config/sh/superh.h: Likewise.
31920 * config/sh/elf.h: Likewise.
31921 * config/sh/sh4.md: Likewise.
31922 * config/sh/sh.h: Likewise.
31924 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31926 * config/pa/constraints.md: Adjust unused letters. Change "T"
31927 constraint to match_test floating_point_store_memory_operand().
31928 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
31929 (base14_operand): New.
31930 (floating_point_store_memory_operand): New.
31931 (integer_store_memory_operand): Revise to use base14_operand and
31932 reg_plus_base_memory_operand.
31933 (move_dest_operand): Allow symbolic_memory_operands.
31934 (symbolic_memory_operand): Check for LO_SOM.
31935 (symbolic_operand): Change default case to break.
31936 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
31937 CONST_DOUBLE values to be reloaded by putting them into memory when
31938 the destination is a floating point register.
31939 (movdf): Remove code to handle CONST_DOUBLE.
31941 (reload_indf_r1): New.
31942 (reload_insf_r1): New.
31943 Consistently use "Q" and "T" constraints with integer and floating
31944 point move instructions, respectively.
31945 (movdi): Remove FAIL.
31946 Change predicate for source operand unamed DImode move from
31947 general_operand to move_src_operand.
31948 (umulsidi3): Change predicate for destination operand to
31950 Likewise for similar unamed patterns.
31951 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
31952 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
31953 (hppa_legitimize_address): Simplify mask calculation.
31954 (pa_emit_move_sequence): Revised handling of secondary reloads from
31955 REG+D addresses for floating point loads and stores. Directly handle
31956 loading CONST0_RTX (mode) to a floating point register.
31957 (pa_secondary_reload): Handle reloading DF and SFmode constant values
31958 to floating point registers. Don't restrict secondary reloads to
31959 floating point registers to integer modes. Revise some comments and
31961 (TARGET_LEGITIMATE_ADDRESS_P): Define.
31962 (pa_legitimate_address_p): New.
31963 (pa_legitimize_reload_address): New.
31964 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
31965 (STRICT_REG_OK_FOR_BASE_P): New.
31966 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
31967 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
31969 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
31970 Andrew Dixie <andrewd@gentrack.com>
31972 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
31975 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
31977 * expmed.c (extract_bit_field_1): Pass the full width of the
31978 structure to get_best_reg_extraction_insn.
31980 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
31983 * configure.ac (use_cxa_atexit): Add AIX.
31984 * configure: Regenerate.
31986 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
31988 2013-02-01 Jakub Jelinek <jakub@redhat.com>
31991 * final.c (need_profile_function): New variable.
31992 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
31993 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
31994 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
31995 notes, targetm.asm_out.function_prologue doesn't emit anything,
31996 HAVE_prologue and profiler should be emitted before prologue,
31997 set need_profile_function instead of emitting it.
31998 (final_scan_insn): If need_profile_function, emit
31999 profile_function on the first NOTE_INSN_BASIC_BLOCK or
32000 NOTE_INSN_FUNCTION_BEG note.
32002 2013-02-01 Richard Henderson <rth@redhat.com>
32004 * config/rs6000/rs6000.md (smulditi3): New.
32007 * config/alpha/alpha.md (umulditi3): New.
32009 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
32011 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
32012 (ASM_OUTPUT_ALIGNED_LOCAL): New.
32014 2013-02-01 Richard Biener <rguenther@suse.de>
32016 PR tree-optimization/56113
32017 * tree-ssa-structalias.c (label_visit): Reduce work for
32018 single-predecessor nodes.
32020 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
32022 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
32023 range isn't testing for zero.
32025 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
32027 PR middle-end/56113
32028 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
32030 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
32031 Nick Clifton <nickc@redhat.com>
32033 * config/v850/constraints.md (Q): Define as a memory constraint.
32034 * config/v850/predicates.md (label_ref_operand): New predicate.
32035 (e3v5_shift_operand): New predicate.
32036 (ior_operator): New predicate.
32037 * config/v850/t-v850: Add e3v5 multilib.
32038 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
32039 (v850_gen_movdi): Prototype.
32040 * config/v850/v850.c: Add support for e3v5 architecture.
32041 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
32043 (construct_save_jarl): Add e3v5 long JARL support.
32044 (v850_adjust_insn_length): New function. Adjust length of call
32045 insns when using e3v5 instructions.
32046 (v850_gen_movdi): New function: Generate instructions to move a
32048 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
32049 (CPP_SPEC): Define __v850e3v5__ as appropriate.
32050 (TARGET_USE_FPU): Enable for e3v5.
32051 (CONST_OK_FOR_W): New macro.
32052 (ADJUST_INSN_LENGTH): Define.
32053 * config/v850/v850.md (UNSPEC_LOOP): Define.
32054 (attr cpu): Add v850e3v5.
32055 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
32056 (movdi): New pattern.
32057 (movdi_internal): New pattern.
32058 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
32059 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
32060 (cstoresf4): Likewise.
32061 (cstoredf4): Likewise.
32062 (insv): New pattern.
32063 (rotlso3_a): New pattern.
32064 (rotlsi3_b): New pattern
32065 (rotlsi3_v850e3v5): New pattern.
32066 (doloop_begin): New pattern.
32067 (fix_loop_counter): New pattern.
32068 (doloop_end): New pattern.
32069 (branch_normal): Add e3v5 long branch support.
32070 (branch_invert): Likewise.
32071 (branch_z_normal): Likewise.
32072 (branch_z_invert): Likewise.
32073 (branch_nz_normal): Likewise.
32074 (branch_nz_invert): Likewise.
32075 (call_internal_short): Add e3v5 register-indirect JARL support.
32076 (call_internal_long): Likewise.
32077 (call_value_internal_short): Likewise.
32078 (call_value_internal_long): Likewise.
32079 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
32080 (mloop): New option.
32081 * config.gcc: Add support for configuring v840e3v5 target.
32082 * doc/invoke.texi: Document new v850 specific command line options.
32084 2013-01-31 Paul Koning <ni1d@arrl.net>
32088 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
32089 children if parent is a class.
32090 (prune_unused_types_prune): Don't add DW_AT_declaration.
32092 2013-01-31 Richard Biener <rguenther@suse.de>
32094 PR tree-optimization/56157
32095 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
32096 match up operand with SLP child.
32098 2013-01-31 Jason Merrill <jason@redhat.com>
32101 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
32102 parameters the first time.
32103 (gen_scheduled_generic_parms_dies): Check completeness here.
32105 2013-01-31 Richard Biener <rguenther@suse.de>
32107 PR middle-end/53073
32108 * common.opt (faggressive-loop-optimizations): New flag,
32109 enabled by default.
32110 * doc/invoke.texi (faggressive-loop-optimizations): Document.
32111 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
32112 infer_loop_bounds_from_undefined by it.
32114 2013-01-31 Richard Biener <rguenther@suse.de>
32116 PR tree-optimization/56150
32117 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
32118 visit virtual operands.
32119 (find_uses_to_rename_bb): Likewise.
32121 2013-01-31 Richard Biener <rguenther@suse.de>
32123 PR tree-optimization/56150
32124 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
32125 mixed store non-store stmts.
32127 2013-01-30 Jakub Jelinek <jakub@redhat.com>
32130 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
32131 LIBASAN_EARLY_SPEC is defined.
32132 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
32133 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
32135 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
32138 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
32139 invalid args instead of ICEing on it.
32140 (ix86_valid_target_attribute_tree): Return error_mark_node if
32141 ix86_valid_target_attribute_inner_p failed.
32142 (ix86_valid_target_attribute_p): Return false only if
32143 ix86_valid_target_attribute_tree returned error_mark_node. Allow
32144 target("default") attribute.
32145 (sorted_attr_string): Change argument from const char * to tree,
32146 merge in all target attribute arguments rather than just one.
32147 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
32148 instead of free. Avoid using strcat.
32149 (ix86_mangle_function_version_assembler_name): Mangle
32150 target("default") as if no target attribute is present. Adjust
32151 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
32152 instead of xmalloc and XDELETEVEC instead of free.
32153 (ix86_function_versions): Don't return true if one of the decls
32154 doesn't have target attribute. If they don't and one of the decls
32155 is DECL_FUNCTION_VERSIONED, report an error. Adjust
32156 sorted_attr_string caller. Use XDELETEVEC instead of free.
32157 (ix86_supports_function_versions): Remove.
32158 (make_name): Fix up formatting.
32159 (make_dispatcher_decl): Remove resolver_name and its initialization.
32160 Avoid leaking memory.
32161 (is_function_default_version): Return true if there is
32162 target("default") attribute rather than no target attribute at all.
32163 (make_resolver_func): Avoid leaking memory.
32164 (ix86_generate_version_dispatcher_body): Likewise.
32165 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
32166 * target.def (supports_function_versions): Remove.
32167 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
32168 * doc/tm.texi: Regenerated.
32170 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
32172 PR rtl-optimization/56144
32173 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
32174 for values with side effects.
32176 2013-01-30 Richard Biener <rguenther@suse.de>
32178 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
32179 (sparseset_pop): Likewise.
32180 * cfganal.c (compute_idf): Likewise. Increase work-stack size
32181 to be able to use quick_push in the worker loop.
32183 2013-01-30 Marek Polacek <polacek@redhat.com>
32185 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
32187 2013-01-30 Richard Biener <rguenther@suse.de>
32190 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
32192 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
32194 PR tree-optimization/56064
32195 * fixed-value.c (fixed_from_double_int): New function.
32196 * fixed-value.h (fixed_from_double_int): New prototype.
32197 (const_fixed_from_double_int): New static inline function.
32198 * fold-const.c (native_interpret_fixed): New static function.
32199 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
32200 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
32201 (native_encode_fixed): New static function.
32202 (native_encode_expr) <FIXED_CST>: Use it.
32203 (native_interpret_int): Move double_int worker code to...
32204 * double-int.c (double_int::from_buffer): ...this new static method.
32205 * double-int.h (double_int::from_buffer): Prototype it.
32207 2013-01-30 Richard Biener <rguenther@suse.de>
32209 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
32210 New pointer-map and obstack.
32211 (init_alias_vars): Allocate pointer-map and obstack.
32212 (delete_points_to_sets): Free them.
32213 (find_what_var_points_to): Cache result.
32214 (find_what_p_points_to): Adjust for changed interface of
32215 find_what_var_points_to.
32216 (compute_points_to_sets): Likewise.
32217 (ipa_pta_execute): Likewise.
32219 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32221 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
32222 * configure: Regenerate.
32223 * config.in: Regenerate.
32224 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
32225 #nobits/#progbits if supported.
32227 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
32230 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
32231 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
32232 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
32234 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32236 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
32237 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
32239 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32241 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
32242 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
32244 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32246 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
32248 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
32249 * config/arm/cortex-a7.md: New bypasses using
32250 arm_mac_accumulator_is_result.
32252 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32254 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
32255 (cortex_a7_neon_mla): Likewise.
32256 (cortex_a7_fpfmad): New reservation.
32257 (cortex_a7_fpmacs): Use ffmas and update required units.
32258 (cortex_a7_fpmuld): Update required units and latency.
32259 (cortex_a7_fpmacd): Likewise.
32260 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
32261 (cortex_a7_neon). Likewise.
32262 (bypass) Update participating units.
32264 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32266 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
32267 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
32269 * config/arm/vfp11.md (vfp_farith): Use ffmas.
32270 (vfp_fmul): Use ffmad.
32271 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
32272 (cortex_r4_fmacd): Use ffmad.
32273 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
32274 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
32275 (cortex_a9_fmacd): Use ffmad.
32276 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
32277 (cortex_a8_vfp_macd): Use ffmad.
32278 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
32279 (cortex_a5_fpmacd): Use ffmad.
32280 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
32281 (cortex_a15_vfp_macd): Use ffmad.
32282 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
32284 2013-01-29 Jason Merrill <jason@redhat.com>
32287 * varasm.c (default_assemble_visibility): Don't warn about
32288 visibility on artificial decls.
32290 2013-01-29 Richard Biener <rguenther@suse.de>
32292 PR tree-optimization/56113
32293 * tree-ssa-structalias.c (equiv_class_lookup): Also return
32295 (label_visit): Free duplicate bitmaps and record the leader instead.
32296 (perform_var_substitution): Adjust.
32298 2013-01-29 Richard Biener <rguenther@suse.de>
32300 PR tree-optimization/55270
32301 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
32302 the CFG, schedule loops for fixup.
32304 2013-01-29 Nick Clifton <nickc@redhat.com>
32306 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
32309 2013-01-28 Leif Ekblad <leif@rdos.net>
32311 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
32312 * config/i386/i386.h (TARGET_RDOS): New macro.
32313 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
32314 * config/i386/i386.c (ix86_option_override_internal): For 64bit
32315 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
32316 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
32317 DEFAULT_LARGE_SECTION_THRESHOLD.
32318 * config/i386/i386.md (R14_REG, R15_REG): New constants.
32319 * config/i386/rdos.h: New file.
32320 * config/i386/rdos64.h: New file.
32322 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
32325 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
32328 2013-01-28 Jakub Jelinek <jakub@redhat.com>
32330 PR rtl-optimization/56117
32331 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
32332 call cselib_lookup_from_insn on the MEM before calling
32333 add_insn_mem_dependence.
32335 2013-01-28 Richard Biener <rguenther@suse.de>
32337 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
32338 to a stmt that didn't have one.
32339 (copy_phis_for_bb): Likewise for PHI arguments.
32340 (copy_debug_stmt): Likewise for debug stmts.
32342 2013-01-28 Richard Biener <rguenther@suse.de>
32344 PR tree-optimization/56034
32345 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
32346 (partition_builtin_p): Adjust.
32347 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
32348 it is the last partition.
32349 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
32350 up the vertex for the definition.
32351 (classify_partition): Classify whether a partition is a
32352 PKIND_REDUCTION, thus has uses outside of the loop.
32353 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
32354 Merge all PKIND_REDUCTION partitions into the last partition.
32355 (tree_loop_distribution): Seed partitions from reductions as well.
32357 2013-01-28 Jakub Jelinek <jakub@redhat.com>
32359 PR tree-optimization/56125
32360 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
32361 pow(x,c) into sqrt(x) * powi(x, n/2) or
32362 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
32363 optimizing for size.
32364 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
32365 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
32368 PR tree-optimization/56094
32369 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
32370 to UNKNOWN_LOCATION while gimplifying expr.
32372 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
32375 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
32376 operand 0 in movabs insn template for -masm=intel asm alternative.
32377 (*movabs<mode>_2): Ditto for operand 1.
32379 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
32382 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
32385 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32387 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
32390 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32392 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
32393 Undef to avoid warning.
32395 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
32397 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
32398 * configure: Regenerate.
32400 2013-01-25 Jakub Jelinek <jakub@redhat.com>
32402 PR tree-optimization/56098
32403 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
32404 for stmts with volatile ops.
32405 (cond_store_replacement): Don't optimize if assign has volatile ops.
32406 (cond_if_else_store_replacement_1): Don't optimize if either
32407 then_assign or else_assign have volatile ops.
32408 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
32411 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
32413 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
32415 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
32417 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
32418 missing ':' in asm example.
32420 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
32422 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
32423 entries into lane and laneq entries.
32424 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
32425 Remove AdvSIMD scalar modes.
32426 (aarch64_sq<r>dmulh_laneq<mode>): New.
32427 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
32429 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
32430 builtin implementations to relfect changes in RTL in aarch64-simd.md.
32431 * config/aarch64/iterators.md (VCOND): New.
32434 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
32437 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
32438 Add NULL LIBNAME argument to existing definitions.
32439 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
32440 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
32441 * config/avr/avr.c (DEF_BUILTIN): Same.
32442 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
32443 (avr_expand_builtin): Expand to a vanilla call if a libgcc
32444 implementation is available (DECL_ASSEMBLER_NAME is set).
32445 (avr_fold_absfx): New static function.
32446 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
32447 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
32448 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
32449 AVR_BUILTIN_ABSLLK.
32450 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
32451 (abshk, absk, abslk, absllk): Provide as static inline functions.
32453 2013-01-25 Marek Polacek <polacek@redhat.com>
32455 PR tree-optimization/56035
32456 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
32458 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
32460 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
32461 (*movtf_internal_rex64): Add (!o,C) alternative
32462 (*movxf_internal_rex64): Ditto.
32463 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
32465 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
32467 * doc/invoke.texi: fix typo.
32468 * doc/objc.texi: fix typo.
32470 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
32472 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
32473 for the first two alternatives.
32475 2013-01-24 Diego Novillo <dnovillo@google.com>
32477 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
32478 (ggc-zone.o): Remove.
32479 * configure.ac: Remove option --with-gc.
32480 * configure: Re-generate.
32481 * doc/install.texi: Remove documentation for --with-gc.
32482 * gengtype.c (write_enum_defn): Remove. Update all users.
32483 (write_Types_process_field): Remove generation of gt_e_* argument.
32484 (output_type_enum): Remove. Update all users.
32485 (write_enum_defn): Remove. Update all users.
32486 (enum alloc_zone): Remove. Update all users.
32487 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
32488 * ggc-common.c (ggc_splay_alloc): Remove first argument.
32489 Update all callers.
32490 (struct ptr_data): Remove field TYPE. Update all users.
32491 (gt_pch_note_object): Remove argument TYPE. Update all users.
32492 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
32494 * ggc-none.c (ggc_alloc_typed_stat): Remove.
32495 (struct alloc_zone): Remove.
32496 (ggc_internal_alloc_zone_stat): Remove.
32497 (ggc_internal_cleared_alloc_zone_stat): Remove.
32498 * ggc-page.c (ggc_alloc_typed_stat): Remove.
32499 (ggc_pch_count_object): Remove last argument. Update all users.
32500 (ggc_pch_alloc_object): Remove last argument. Update all users.
32501 (struct alloc_zone): Remove.
32502 * ggc-zone.c: Remove.
32503 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
32504 (struct alloc_zone): Remove.
32505 (ggc_alloc_typed_stat): Remove.
32506 (ggc_alloc_typed): Remove.
32507 (ggc_splay_alloc): Remove first argument.
32508 (rtl_zone): Remove. Update all users.
32509 (tree_zone): Remove. Update all users.
32510 (tree_id_zone): Remove. Update all users.
32511 (ggc_internal_zone_alloc_stat): Remove. Update all users.
32512 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
32513 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
32514 * tree-ssanames.c: Remove references to zone allocator in comments.
32516 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
32518 * config/avr/avr.c (avr_out_fract): Make register numbers that
32519 might be outside of source operand signed.
32521 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
32523 * config/i386/constraints.md (Yf): New constraint.
32524 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
32525 of f constraint to conditionaly disable x87 register preferences.
32526 (*movdf_internal): Ditto.
32527 (*movsf_internal): Ditto.
32529 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
32531 PR inline-asm/55934
32532 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
32533 that have operands with impossible constraints.
32534 Add a FIXME for a speed-up opportunity.
32535 * lra-constraints.c (process_alt_operands): Verify that a class
32536 selected from constraints on asms is valid for the operand mode.
32537 (curr_insn_transform): Remove incorrect comment.
32539 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
32541 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
32542 TOC operand is a valid symbol ref in the constant pool.
32544 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32546 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
32548 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
32551 * config/avr/stdfix.h: New file.
32552 * t-avr (stdfix-gcc.h): New rule to build it.
32553 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
32555 2013-01-23 Kostya Serebryany <kcc@google.com>
32557 * config/darwin.h: remove dependency on
32558 CoreFoundation (asan on Mac OS).
32560 2013-01-23 Jakub Jelinek <jakub@redhat.com>
32563 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
32564 instead of cmpdi_operand for first comparison operand.
32565 Don't assert that comparison operands aren't both constants.
32567 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
32569 * doc/install.texi (Downloading the Source): Update references to
32570 downloading separate components.
32572 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
32574 * doc/extend.texi (__int128): Improve grammar.
32576 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
32579 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
32580 alternative to (o,r).
32581 (*movdi_internal_rex64): Remove (!o,n) alternative.
32582 (DImode immediate->memory splitter): Remove.
32583 (DImode immediate->memory peephole2): Remove.
32584 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
32585 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
32586 alternative to (!o,*r).
32587 (*movtf_internal_sse): New pattern.
32588 (*movxf_internal_rex64): New pattern.
32589 (*movxf_internal): Disable for TARGET_64BIT.
32590 (*movdf_internal_rex64): Remove (!o,F) alternative.
32592 2013-01-22 Jakub Jelinek <jakub@redhat.com>
32594 PR middle-end/56074
32595 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
32596 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
32597 * tree-vect-loop-manip.c (find_loop_location): Also ignore
32598 stmt locations where LOCATION_LOCUS of the stmt location is
32599 UNKNOWN_LOCATION or BUILTINS_LOCATION.
32602 * config/i386/i386.md (UNSPEC_STOS): New.
32603 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
32604 *strsetqi_1): Add UNSPEC_STOS.
32606 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
32609 * doc/invoke.texi: Remove left over -Wsynth example.
32611 2013-01-21 Jakub Jelinek <jakub@redhat.com>
32613 PR tree-optimization/56051
32614 * fold-const.c (fold_binary_loc): Don't fold
32615 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
32616 a narrowing conversion, or widening conversion from signed
32619 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
32621 PR rtl-optimization/56023
32622 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
32623 dependent on debug instruction.
32625 2013-01-21 Martin Jambor <mjambor@suse.cz>
32627 PR middle-end/56022
32628 * function.c (allocate_struct_function): Call
32629 invoke_set_current_function_hook earlier.
32631 2013-01-21 Jakub Jelinek <jakub@redhat.com>
32633 * reload1.c (init_reload): Only initialize reload_obstack
32634 during the first call.
32636 2013-01-21 Marek Polacek <polacek@redhat.com>
32638 * cfgloop.c (verify_loop_structure): Fix up grammar.
32640 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
32642 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
32643 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
32645 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32648 * config/arm/marvell-pj4.md: Update copyright year.
32649 Fix up use of alu to alu_reg and simple_alu_imm.
32651 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
32653 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
32655 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
32658 * lra-constraints.c (curr_insn_transform): Don't reuse original
32659 insn for secondary memory move when memory mode should be different.
32661 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32663 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
32664 atomic_storedi_1): New patterns.
32666 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
32668 btver2 pipeline descriptions.
32669 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
32671 * config/i386/i386.md (btver2_decode): New type attributes.
32672 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
32674 * config/i386/btver2.md: New file describing btver2 pipelines.
32676 2013-01-19 Andrew Pinski <apinski@cavium.com>
32678 PR tree-optimization/52631
32679 * tree-ssa-sccvn (visit_use): Before looking up the original
32680 statement, try looking up the simplified expression.
32682 2013-01-19 Anthony Green <green@moxielogic.com>
32684 * config/moxie/moxie.c (moxie_expand_prologue): Set
32685 current_function_static_stack_size.
32687 2013-01-18 Jakub Jelinek <jakub@redhat.com>
32689 PR tree-optimization/56029
32690 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
32691 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
32693 2013-01-18 Sharad Singhai <singhai@google.com>
32695 PR tree-optimization/55995
32696 * dumpfile.c (dump_loc): Print location only if available.
32697 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
32699 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
32702 * lra-constraints.c (curr_insn_transform): Reuse original insn for
32703 secondary memory move.
32704 (inherit_reload_reg): Use rclass instead of cl for
32705 check_secondary_memory_needed_p.
32707 2013-01-18 Jakub Jelinek <jakub@redhat.com>
32709 PR middle-end/56015
32710 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
32711 the case where writing real complex part of target modifies op1.
32713 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
32715 * config/aarch64/aarch64-simd.md
32716 (aarch64_vcond_internal<mode>): Handle unordered cases.
32717 * config/aarch64/iterators.md (v_cmp_result): New.
32719 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
32720 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32722 * config/arm/marvell-pj4.md: New file.
32723 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
32724 * config/arm/arm.md (generic_sched): Add marvell_pj4.
32725 (generic_vfp): Likewise.
32726 * config/arm/arm-cores.def: Add marvell-pj4.
32727 * config/arm/arm-tune.md: Regenerate.
32728 * config/arm/arm-tables.opt: Regenerate.
32729 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
32730 * doc/invoke.texi: Document marvell-pj4.
32732 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
32734 * config/aarch64/arm_neon.h: Map scalar types to standard types.
32736 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
32741 * var-tracking.c (negative_power_of_two_p): New.
32742 (global_get_addr_cache, local_get_addr_cache): New.
32743 (get_addr_from_global_cache, get_addr_from_local_cache): New.
32744 (vt_canonicalize_addr): Rewrite using the above. Adjust the
32746 (vt_stack_offset_p): Remove.
32747 (vt_canon_true_dep): Always canonicalize loc's address.
32748 (clobber_overlapping_mems): Make sure we have a MEM.
32749 (local_get_addr_clear_given_value): New.
32750 (val_reset): Clear local cached entries.
32751 (compute_bb_dataflow): Create and release the local cache.
32752 Disable duplicate MEMs clobbering.
32753 (emit_notes_in_bb): Clobber MEMs likewise.
32754 (vt_emit_notes): Create and release the local cache.
32755 (vt_initialize, vt_finalize): Create and release the global
32756 cache, respectively.
32757 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
32759 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
32761 PR libmudflap/53359
32762 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
32763 not found in the symtab.
32765 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
32768 PR rtl-optimization/55547
32769 PR rtl-optimization/53827
32772 * alias.c (offset_overlap_p): New, factored out of...
32773 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
32774 the conservative special case for symbolic constants. Don't
32775 adjust zero sizes on alignment.
32777 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
32779 PR rtl-optimization/52573
32780 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
32781 REG_UNUSED for the same register.
32783 2013-01-17 Richard Biener <rguenther@suse.de>
32784 Marek Polacek <polacek@redhat.com>
32786 PR rtl-optimization/55833
32787 * loop-unswitch.c (unswitch_loops): Move loop verification...
32788 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
32789 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
32790 Set it to true when we're removing a loop from hierarchy tree in
32791 an irreducible region.
32792 (fix_bb_placements): Adjust caller.
32793 (fix_loop_placements): Likewise.
32795 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
32797 * config/avr/builtins.def (DEF_BUILTIN): Factor out
32798 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
32799 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
32800 Remove ID. Adjust comments.
32801 * config/avr/avr-c.c (avr_builtin_name): Remove.
32802 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
32803 * config/avr/avr.c (avr_tolower): New static function.
32804 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
32805 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
32806 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
32809 2013-01-17 Jan Hubicka <jh@suse.cz>
32811 PR tree-optimization/55273
32812 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
32814 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
32817 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
32818 store through atomic_store<mode>_1.
32819 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
32821 2013-01-17 Martin Jambor <mjambor@suse.cz>
32823 PR tree-optimizations/55264
32824 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
32825 for virtual methods.
32826 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
32827 virtual methods before inlining is over.
32828 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
32830 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
32833 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
32835 PR rtl-optimization/56005
32836 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
32837 pending reads for prefetch.
32839 2013-01-16 Ian Bolton <ian.bolton@arm.com>
32841 * config/aarch64/aarch64.md
32842 (*cstoresi_neg_uxtw): New pattern.
32843 (*cmovsi_insn_uxtw): New pattern.
32844 (*<optab>si3_uxtw): New pattern.
32845 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
32846 (*<optab>si3_insn_uxtw): New pattern.
32847 (*bswapsi2_uxtw): New pattern.
32849 2013-01-16 Richard Biener <rguenther@suse.de>
32851 * tree-inline.c (tree_function_versioning): Remove set but
32852 never used variable.
32854 2013-01-16 Richard Biener <rguenther@suse.de>
32856 PR tree-optimization/55964
32857 * tree-flow.h (rename_variables_in_loop): Remove.
32858 (rename_variables_in_bb): Likewise.
32859 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
32860 (copy_loop_before): Adjust and delete update-ssa status.
32861 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
32862 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
32863 (rename_variables_in_loop): Remove.
32864 (slpeel_update_phis_for_duplicate_loop): Likewise.
32865 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
32866 use available cfg machinery instead of duplicating it.
32867 Update PHI nodes and perform poor-mans SSA update here.
32868 (slpeel_tree_peel_loop_to_edge): Adjust.
32870 2013-01-16 Richard Biener <rguenther@suse.de>
32872 PR tree-optimization/54767
32873 PR tree-optimization/53465
32874 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
32875 (vrp_visit_phi_node): For PHI arguments coming via backedges
32876 drop all symbolical range information.
32877 (execute_vrp): Compute backedges.
32879 2013-01-16 Richard Biener <rguenther@suse.de>
32881 * doc/install.texi: Update CLooG and ISL requirements to
32884 2013-01-16 Christian Bruel <christian.bruel@st.com>
32887 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
32888 (broken_move): Handle UNSPECV_SP_SWITCH_B.
32889 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
32891 2013-01-16 DJ Delorie <dj@redhat.com>
32893 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
32894 (UNSPECV_SP_SWITCH_E): New.
32895 (sp_switch_1): Change to an unspec.
32896 (sp_switch_2): Change to an unspec. Don't use post-inc when we
32899 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
32901 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
32902 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
32903 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
32904 (expand_mem_thread_fence): Ditto.
32905 (expand_mem_signal_fence): Ditto.
32906 (expand_atomic_load): Ditto.
32907 (expand_atomic_store): Ditto.
32909 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
32911 PR rtl-optimization/55547
32912 PR rtl-optimization/53827
32915 * alias.c (memrefs_conflict_p): Set sizes to negative after
32918 2013-01-15 Jakub Jelinek <jakub@redhat.com>
32921 * function.c (thread_prologue_and_epilogue_insns): Always
32922 add crtl->drap_reg to set_up_by_prologue.set, even if
32923 stack_realign_drap is false.
32925 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32927 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
32928 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
32929 *call): Fix indention.
32931 2013-01-15 Tom de Vries <tom@codesourcery.com>
32934 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
32937 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
32939 PR rtl-optimization/55153
32940 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
32942 2013-01-15 Martin Jambor <mjambor@suse.cz>
32944 PR tree-optimization/55920
32945 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
32946 accesses as grp_to_be_debug_replaced.
32948 2013-01-15 Jakub Jelinek <jakub@redhat.com>
32950 PR tree-optimization/55920
32951 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
32952 there is non-useless type conversion needed from debug rhs to lhs,
32953 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
32955 2013-01-15 Joseph Myers <joseph@codesourcery.com>
32956 Mikael Pettersson <mikpe@it.uu.se>
32959 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
32961 (ASM_OUTPUT_CASE_LABEL): Remove.
32962 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
32963 * final.c (shorten_branches): Update alignment of labels before
32964 jump tables if CASE_VECTOR_SHORTEN_MODE.
32966 2013-01-15 Richard Biener <rguenther@suse.de>
32969 * system.h: Do not include gmp.h for building host tools.
32971 2013-01-15 Richard Biener <rguenther@suse.de>
32973 PR middle-end/55882
32974 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
32975 account for bitpos when computing alignment.
32977 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
32979 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
32980 (ix86_target_macros_internal): Likewise.
32982 * config/i386/i386.c (m_CORE2I7): Removed.
32983 (m_CORE_HASWELL): New macro.
32984 (m_CORE_ALL): Likewise.
32985 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
32986 (initial_ix86_arch_features): Likewise.
32987 (processor_target_table): Initializations for Core avx2.
32988 (cpu_names): New names "core-avx2".
32989 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
32990 PROCESSOR_CORE_HASWELL.
32991 (ix86_issue_rate): New case.
32992 (ia32_multipass_dfa_lookahead): Likewise.
32993 (ix86_sched_init_global): Likewise.
32995 * config/i386/i386.h (TARGET_HASWELL): New macro.
32996 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
32997 (processor_type): New PROCESSOR_HASWELL.
32999 2013-01-15 Jakub Jelinek <jakub@redhat.com>
33001 PR tree-optimization/55955
33002 * tree-vect-loop.c (vectorizable_reduction): Give up early on
33003 *SHIFT_EXPR and *ROTATE_EXPR codes.
33005 PR tree-optimization/48766
33006 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
33007 -ftrapv disable -fwrapv.
33009 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33012 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
33013 etc. to 1 and not to __flash.
33014 Use LL suffix for __INT24_MAX__ with -mint8.
33015 Use ULL suffix for __UINT24_MAX__ with -mint8.
33017 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33019 * config/avr/avr-arch.h
33020 (struct base_arch_s): Use typedef avr_arch_t instead.
33021 (struct arch_info_s): Use typedef avr_arch_info_t instead.
33022 (struct mcu_type_s): Use typedef avr_mcu_t instead.
33023 * config/avr/avr.c: Same.
33024 * config/avr/avr-devices.c: Same.
33025 * config/avr/driver-avr.c: Same.
33026 * config/avr/gen-avr-mmcu-texi.c: Same.
33027 * config/avr/avr-mcus.def: Adjust comment.
33029 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
33031 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
33032 * config/aarch64/iterators.md (VALLDI): New.
33034 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
33035 Andi Kleen <ak@linux.intel.com>
33038 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
33039 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
33042 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33044 * config/avr/avr-stdint.h: Remove trailing blanks.
33045 * config/avr/avr-log.h: Same.
33046 * config/avr/avr-arch.h: Same.
33047 * config/avr/avr-devices.c: Same.
33048 * config/avr/avr-dimode.md: Same.
33049 * config/avr/predicates.md: Same.
33050 * config/avr/avr-c.c: Same. And fix typo.
33052 * config/avr/avr-protos.h: Same. And:
33053 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
33054 (init_cumulative_args): Rename to avr_init_cumulative_args.
33055 (expand_prologue): Rename to avr_expand_prologue.
33056 (expand_epilogue): Rename to avr_expand_epilogue.
33057 (adjust_insn_length): Rename to avr_adjust_insn_length.
33058 (notice_update_cc): Rename to avr_notice_update_cc.
33059 (final_prescan_insn): Rename to avr_final_prescan_insn.
33060 * config/avr/avr.c: Same.
33061 * config/avr/avr.h: Same.
33062 * config/avr/avr.md: Remove trailing blanks.
33063 (prologue): Use avr_expand_prologue.
33064 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
33066 2013-01-14 Richard Biener <rguenther@suse.de>
33068 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
33069 verify_location, collect_subblocks): New functions.
33070 (verify_gimple_in_cfg): Verify that locations only reference
33071 BLOCKs in the functions BLOCK tree.
33073 2013-01-14 Richard Biener <rguenther@suse.de>
33075 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
33077 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
33079 (insert_out_of_ssa_copy_on_edge): Likewise.
33080 (rewrite_close_phi_out_of_ssa): Likewise.
33081 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
33083 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
33084 propagated constants.
33085 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
33088 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33090 * config/avr/avr-modes.def: Add GPL copyright notice.
33092 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
33094 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
33095 MEMMODEL_MASK to determine memory model.
33096 (atomic_store<mode>): Ditto from operands[2].
33097 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
33099 2013-01-13 Jakub Jelinek <jakub@redhat.com>
33102 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
33103 (fold_gimple_assign): Don't call unshare_expr here.
33104 (fold_ctor_reference): Call unshare_expr.
33106 2013-01-13 Terry Guo <terry.guo@arm.com>
33108 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
33109 * doc/fragments.texi: Document MULTILIB_REUSE.
33110 * gcc.c (multilib_reuse): New internal spec.
33111 (set_multilib_dir): Also search multilib from multilib_reuse.
33112 * genmultilib (tmpmultilib3): Refactor code.
33113 (tmpmultilib4): Ditto.
33114 (multilib_reuse): New multilib argument.
33116 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
33118 * Makefile.in: Update copyright.
33120 2013-01-12 Tom de Vries <tom@codesourcery.com>
33122 PR middle-end/55890
33123 * calls.c (expand_call): Check if arg_nr is valid.
33125 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
33127 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
33128 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
33129 documentation. Add missing '__' in front of
33130 __builtin_ia32_packssdw256.
33132 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33135 * config/s390/s390.c (s390_preferred_reload_class): Do not return
33136 NO_REGS for larl operands.
33137 (s390_reload_larl_operand): Use s390_load_address instead of
33140 2013-01-11 Richard Biener <rguenther@suse.de>
33142 * tree-cfg.c (verify_node_sharing_1): Split out from ...
33143 (verify_node_sharing): ... here.
33144 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
33146 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
33148 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
33149 Substitute TREECHECKING.
33150 * configure: Regenerate.
33151 * Makefile.in (TREECHECKING): New.
33153 2013-01-11 Richard Guenther <rguenther@suse.de>
33155 PR tree-optimization/44061
33156 * tree-vrp.c (extract_range_basic): Compute zero as
33157 value-range for __builtin_constant_p of function parameters.
33159 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
33161 Update copyright years.
33163 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
33165 PR rtl-optimization/55672
33166 * lra-eliminations.c (mark_not_eliminable): Permit addition with
33167 const to be eliminable.
33169 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
33171 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
33172 * configure: Regenerate.
33174 2013-01-10 Richard Biener <rguenther@suse.de>
33176 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
33178 2013-01-10 Richard Biener <rguenther@suse.de>
33181 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
33182 locations for virtual PHI arguments.
33183 (rewrite_update_phi_arguments): Likewise.
33185 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
33187 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
33190 2013-01-10 Jakub Jelinek <jakub@redhat.com>
33192 PR tree-optimization/55921
33193 * tree-complex.c (expand_complex_asm): New function.
33194 (expand_complex_operations_1): Call it for GIMPLE_ASM.
33196 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33199 * config/s390/s390.c (s390_symref_operand_p)
33200 (s390_loadrelative_operand_p): Merge the two functions.
33201 (s390_check_qrst_address, print_operand_address): Add parameters
33202 to s390_loadrelative_operand_p invokation.
33203 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
33204 (s390_reload_larl_operand, s390_secondary_reload): Use
33205 s390_loadrelative_operand_p instead of s390_symref_operand_p.
33206 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
33208 2013-01-09 Mike Stump <mikestump@comcast.net>
33210 * dse.c (record_store): Remove unnecessary assert.
33212 2013-01-09 Jan Hubicka <jh@suse.cz>
33214 PR tree-optimization/55569
33215 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
33216 * cfgloop.h (scale_loop_profile): Likewise.
33218 2013-01-09 Jan Hubicka <jh@suse.cz>
33221 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
33223 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
33225 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
33227 PR middle-end/55114
33228 * expr.h (maybe_emit_group_store): Declare.
33229 * expr.c (maybe_emit_group_store): New function.
33230 * builtins.c (expand_builtin_int_roundingfn): Call it.
33231 (expand_builtin_int_roundingfn_2): Likewise.
33233 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
33235 PR rtl-optimization/55829
33236 * lra-constraints.c (match_reload): Add code for absent output.
33237 (curr_insn_transform): Add code for reloads of matched inputs
33240 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
33242 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
33243 attribute of movddup insn to DF.
33244 (*vec_interleave_lowv2df): Ditto.
33245 (vec_dupv2df): Ditto.
33247 2013-01-09 Jan Hubicka <jh@suse.cz>
33249 PR tree-optimiation/55875
33250 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
33251 EVERY_ITERATION parameter.
33252 (number_of_iterations_exit): Check if exit is executed every iteration.
33253 (idx_infer_loop_bounds): Similarly here.
33254 (n_of_executions_at_most): Simplify
33255 to only test for cases where statement is dominated by the
33256 particular bound; handle correctly the "postdominance" test.
33257 (scev_probably_wraps_p): Use max loop iterations info
33258 as a global bound first.
33260 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
33261 Nick Clifton <nickc@redhat.com>
33263 * config/v850/v850.md (cbranchsf4): New pattern.
33264 (cstoresf4): New pattern.
33265 (cbranchdf4): New pattern.
33266 (cstoredf4): New pattern.
33267 (movsicc): Disallow floating point comparisons.
33268 (cmpsf_le_insn): Fix order of operators.
33269 (cmpsf_lt_insn): Likewise.
33270 (cmpsf_eq_insn): Likewise.
33271 (cmpdf_le_insn): Likewise.
33272 (cmpdf_lt_insn): Likewise.
33273 (cmpdf_eq_insn): Likewise.
33274 (cmpsf_ge_insn): Use LE comparison.
33275 (cmpdf_ge_insn): Likewise.
33276 (cmpsf_gt_insn): Use LT comparison.
33277 (cmpdf_gt_insn): Likewise.
33278 (cmpsf_ne_insn): Delete pattern.
33279 (cmpdf_ne_insn): Delete pattern.
33280 * config/v850/v850.c (v850_gen_float_compare): Use
33281 gen_cmpdf_eq_insn for NE comparison.
33282 (v850_float_z_comparison_operator)
33283 (v850_float_nz_comparison_operator): Move from here ...
33284 * config/v850/predicates.md: ... to here. Move GT and GE
33285 comparisons into v850_float_z_comparison_operator.
33286 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
33288 (v850_float_nz_comparison_operator): Likewise.
33290 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33292 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
33293 with calls to gen_insvsi/gen_insvdi.
33295 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33297 * config/i386/i386.c (initial_ix86_tune_features): Set up
33298 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
33300 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
33301 Jakub Jelinek <jakub@redhat.com>
33303 PR tree-optimization/48189
33304 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
33305 If nitercst is 0, don't predict the exit edge.
33307 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33309 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
33310 in asm_fprintf with reg_names.
33311 (aarch64_print_operand_address): Likewise.
33312 (aarch64_return_addr): Likewise.
33313 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
33315 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33317 * config/pa/pa.h (VAL_U6_BITS_P): Define.
33318 (INT_U6_BITS): Likewise.
33319 * config/pa/predicates.md (uint6_operand): New predicate.
33320 (shift5_operand, shift6_operand): Likewise.
33321 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
33323 (lshrdi3): Use shift6_operand.
33324 (shrpsi4, shrpdi4): New insn patterns.
33325 (extzv): Delete expander.
33326 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
33327 predicates in unamed zero extract patterns. Tighten common constraint.
33328 (extv): Delete expander.
33329 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
33330 predicates in unamed sign extract patterns. Tighten common constraint.
33331 (insv): Delete expander.
33332 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
33333 predicates in unamed insert patterns. Tighten common constraint.
33334 Change uint32_operand predicate to uint6_operand predicate in unamed
33335 DImode pattern to insert constant values of type 1...1xxxx.
33337 2013-01-04 Jan Hubicka <jh@suse.cz>
33339 PR tree-optimization/55823
33340 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
33343 2013-01-08 Jakub Jelinek <jakub@redhat.com>
33344 Uros Bizjak <ubizjak@gmail.com>
33346 PR rtl-optimization/55845
33347 * df-problems.c (can_move_insns_across): Stop scanning at
33348 volatile_insn_p source instruction or give up if
33349 across_from .. across_to range contains any volatile_insn_p
33352 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
33354 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
33355 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
33357 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
33358 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
33360 2013-01-08 Jakub Jelinek <jakub@redhat.com>
33363 * asan.c (asan_clear_shadow): New function.
33364 (asan_emit_stack_protection): Use it.
33366 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
33368 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
33369 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
33370 with tab instead of space.
33372 2013-01-08 Nick Clifton <nickc@redhat.com>
33374 * config/rl78/rl78.c (rl78_expand_prologue): Always select
33375 register bank 0 at the start of an interrupt handler.
33376 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
33379 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
33381 * config/aarch64/aarch64-simd.md
33382 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
33383 (aarch64_simd_bsl): Likewise.
33384 (aarch64_vcond_internal<mode>): Likewise.
33385 (vcond<mode><mode>): Likewise.
33386 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
33387 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
33389 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
33391 * config/aarch64/aarch64-builtins.c
33392 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
33394 2013-01-08 Martin Jambor <mjambor@suse.cz>
33397 * tree-sra.c (analyze_access_subtree): Return true also after
33398 potentially creating a debug-only replacement.
33400 2013-01-08 Jakub Jelinek <jakub@redhat.com>
33402 PR middle-end/55890
33403 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
33405 PR tree-optimization/54120
33406 * tree-vrp.c (range_fits_type_p): Don't allow
33407 src_precision < precision from signed vr to unsigned_p
33408 if vr->min or vr->max is negative.
33409 (simplify_float_conversion_using_ranges): Test can_float_p
33410 against CODE_FOR_nothing.
33412 2013-01-08 Jakub Jelinek <jakub@redhat.com>
33413 Richard Biener <rguenther@suse.de>
33415 PR middle-end/55851
33416 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
33417 types instead of just INTEGER_TYPE types.
33419 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
33421 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
33424 2013-01-07 Steve Ellcey <sellcey@mips.com>
33427 * config/mips/mips.opt: Change mad to mmad to match documentation.
33429 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
33432 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
33433 .progmemx.data now.
33435 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
33438 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
33439 (avr_addrspace_t): Add .section_name field.
33440 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
33442 (avr_addrspace): Same. Initialize .section_name. Remove last
33443 NULL entry. Put __memx into .progmemx.data.
33444 (progmem_section_prefix): Remove.
33445 (avr_asm_init_sections): No need to initialize progmem_section.
33446 (avr_asm_named_section): Use avr_addrspace[].section_name to get
33447 section name prefix.
33448 (avr_asm_select_section): Ditto. And use get_unnamed_section to
33449 retrieve the progmem section.
33450 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
33451 boundary to run over avr_addrspace[].
33452 (avr_register_target_pragmas): Ditto.
33454 2013-01-06 Jakub Jelinek <jakub@redhat.com>
33456 * varasm.c (output_constant_def_contents): For asan_protect_global
33457 protected strings, adjust DECL_ALIGN if needed, before testing for
33459 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
33460 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
33462 (output_object_block): For asan protected decls, emit asan padding
33463 after their contents.
33464 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
33465 (asan_finish_file): Test it here instead.
33467 2013-01-07 Nick Clifton <nickc@redhat.com>
33468 Matthias Klose <doko@debian.org>
33469 Doug Kwan <dougkwan@google.com>
33470 H.J. Lu <hongjiu.lu@intel.com>
33473 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
33475 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
33477 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
33479 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
33481 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
33483 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
33486 * doc/install.texi (Cross-Compiler-Specific Options): Document
33489 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
33491 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
33492 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
33493 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
33494 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
33495 vqmovun_high_s64): Fix source operand number and update copyright.
33497 2013-01-07 Richard Biener <rguenther@suse.de>
33499 PR middle-end/55890
33500 * gimple.h (gimple_call_builtin_p): New overload.
33501 * gimple.c (validate_call): New function.
33502 (gimple_call_builtin_p): Likewise.
33503 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33504 Use gimple_call_builtin_p.
33505 (find_func_clobbers): Likewise.
33506 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
33507 (strlen_optimize_stmt): Likewise.
33509 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
33511 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
33512 (vld1q_dup_*): Likewise.
33513 (vld1_*): Likewise.
33514 (vld1q_*): Likewise.
33515 (vld1_lane_*): Likewise.
33516 (vld1q_lane_*): Likewise.
33518 2013-01-07 Richard Biener <rguenther@suse.de>
33520 * lto-streamer.h (LTO_minor_version): Bump to 2.
33522 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
33524 * config/aarch64/aarch64-protos.h
33525 (aarch64_const_double_zero_rtx_p): Rename to...
33526 (aarch64_float_const_zero_rtx_p): ...this.
33527 (aarch64_float_const_representable_p): New.
33528 (aarch64_output_simd_mov_immediate): Likewise.
33529 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
33530 move immediate case.
33531 * config/aarch64/aarch64.c
33532 (aarch64_const_double_zero_rtx_p): Rename to...
33533 (aarch64_float_const_zero_rtx_p): ...this.
33534 (aarch64_print_operand): Allow printing of new constants.
33535 (aarch64_valid_floating_const): New.
33536 (aarch64_legitimate_constant_p): Check for valid floating-point
33538 (aarch64_simd_valid_immediate): Likewise.
33539 (aarch64_vect_float_const_representable_p): New.
33540 (aarch64_float_const_representable_p): Likewise.
33541 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
33542 (aarch64_output_simd_mov_immediate): New.
33543 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
33544 (*movdf_aarch64): Likewise.
33545 * config/aarch64/constraints.md (Ufc): New.
33546 (Y): call aarch64_float_const_zero_rtx.
33547 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
33549 2013-01-07 Richard Biener <rguenther@suse.de>
33551 PR tree-optimization/55888
33552 PR tree-optimization/55862
33553 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
33554 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
33555 not if it is contained therein.
33557 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
33559 * config/avr/t-avr: Typo.
33561 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
33564 * config/avr/t-avr: Don't automatically rebuild
33565 $(srcdir)/config/avr/t-multilib
33566 $(srcdir)/config/avr/avr-tables.opt
33567 $(srcdir)/doc/avr-mmcu.texi
33568 (avr-mcus): New phony target to build them on request.
33569 (s-avr-mlib, s-avr-mmcu-texi): Remove.
33570 * avr/avr-mcus.def: Adjust comments.
33572 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
33574 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
33576 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
33578 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
33580 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
33582 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
33584 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
33586 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
33587 to generate profiling.
33588 * config/rs6000/aix64.h (LIB_SPEC): Same.
33590 2013-01-04 Andrew Pinski <apinski@cavium.com>
33592 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
33594 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
33596 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
33598 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
33600 (ix86_expand_move): Ditto.
33601 (ix86_zero_extend_to_Pmode): Ditto.
33602 (ix86_expand_call): Ditto.
33603 (ix86_expand_special_args_builtin): Ditto.
33604 (ix86_expand_builtin): Ditto.
33606 2013-01-04 Richard Biener <rguenther@suse.de>
33608 PR tree-optimization/55862
33609 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
33610 translating them through PHI nodes.
33612 2013-01-04 Martin Jambor <mjambor@suse.cz>
33614 PR tree-optimization/55755
33615 * tree-sra.c (sra_modify_assign): Do not check that an access has no
33616 children when trying to avoid producing a VIEW_CONVERT_EXPR.
33618 2013-01-04 Marek Polacek <polacek@redhat.com>
33620 PR middle-end/55859
33621 * opts.c (default_options_optimization): Clarify error message.
33623 2013-01-04 Richard Biener <rguenther@suse.de>
33625 PR middle-end/55863
33626 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
33629 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33632 * config/pa/pa.md (movsi): Revert previous change.
33633 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
33636 2013-01-03 Richard Henderson <rth@redhat.com>
33638 * config/i386/i386.c (ix86_expand_move): Always assign to op1
33639 after eliminating TLS symbols.
33641 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
33644 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
33645 * graphite-poly.c (debug_gmp_value): Likewise.
33647 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
33650 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
33651 selected code model, define __code_mode_small__, __code_model_medium__,
33652 __code_model_large__, __code_model_32__ or __code_model_kernel__.
33653 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
33654 xchg temporary register with %k. Declare temporary register as
33656 [__x86_64__]: For medium and large code models, preserve %rbx register.
33658 2013-01-03 Richard Biener <rguenther@suse.de>
33660 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
33661 (dump_subscript): Adjust.
33662 (finalize_ddr_dependent): Do not dump redundant info.
33663 (analyze_siv_subscript): Adjust.
33664 (subscript_dependence_tester): Likewise.
33665 (compute_affine_dependence): Likewise.
33667 2013-01-03 Richard Biener <rguenther@suse.de>
33670 2013-01-03 Richard Biener <rguenther@suse.de>
33672 PR tree-optimization/55857
33673 * tree-vect-stmts.c (vectorizable_load): Do not setup
33674 re-alignment for invariant loads.
33676 2013-01-02 Richard Biener <rguenther@suse.de>
33678 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
33679 invariant load do not generate a vector load from the scalar location.
33681 2013-01-03 Richard Biener <rguenther@suse.de>
33683 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
33684 for not vectorizing.
33685 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
33686 not build INDIRECT_REFs, call get_name once only.
33687 (vect_create_data_ref_ptr): Likewise. Dump base object kind
33688 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
33690 2013-01-03 Richard Biener <rguenther@suse.de>
33692 PR tree-optimization/55857
33693 * tree-vect-stmts.c (vectorizable_load): Do not setup
33694 re-alignment for invariant loads.
33696 2013-01-03 Richard Biener <rguenther@suse.de>
33699 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
33700 prefer a built-in decl.
33702 2013-01-03 Jakub Jelinek <jakub@redhat.com>
33704 * gcc.c (process_command): Update copyright notice dates.
33705 * gcov.c (print_version): Likewise.
33706 * gcov-dump.c (print_version): Likewise.
33708 PR rtl-optimization/55838
33709 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
33710 iv0.step, iv1.step and step.
33712 2013-01-03 Jakub Jelinek <jakub@redhat.com>
33713 Marc Glisse <marc.glisse@inria.fr>
33715 PR tree-optimization/55832
33716 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
33717 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
33718 integer_{one,zero}_node.
33720 2013-01-03 Jakub Jelinek <jakub@redhat.com>
33723 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
33724 * var-tracking.c (reverse_op): Don't add reverse ops to
33725 VALUEs that have already
33726 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
33728 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
33730 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
33732 2013-01-02 Teresa Johnson <tejohnson@google.com>
33734 * dumpfile.c (dump_loc): Print filename with location.
33735 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
33736 new location_t parameter to emit complete unroll message with
33737 new dump framework.
33738 (canonicalize_loop_induction_variables): Compute loops location
33739 and pass to try_unroll_loop_completely.
33740 * loop-unroll.c (report_unroll_peel): New function.
33741 (peel_loops_completely): Use new dump format with location
33742 for main dumpfile message, and invoke report_unroll_peel on success.
33743 (decide_unrolling_and_peeling): Ditto.
33744 (decide_peel_once_rolling): Remove old dumpfile message subsumed
33745 by report_unroll_peel.
33746 (decide_peel_completely): Ditto.
33747 (decide_unroll_constant_iterations): Ditto.
33748 (decide_unroll_runtime_iterations): Ditto.
33749 (decide_peel_simple): Ditto.
33750 (decide_unroll_stupid): Ditto.
33751 * cfgloop.c (get_loop_location): New function.
33752 * cfgloop.h (get_loop_location): Declare.
33754 2013-01-02 Sriraman Tallam <tmsriram@google.com>
33756 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
33759 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33761 PR middle-end/55198
33762 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
33763 BLKmode objects when EXPAND_MEMORY is specified.
33765 2013-01-02 Sriraman Tallam <tmsriram@google.com>
33767 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
33769 (fold_builtin_cpu): Do not share cpu model decls across statements.
33771 2013-01-02 Jason Merrill <jason@redhat.com>
33774 * tree.c (build_array_type_1): Revert earlier change.
33776 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
33778 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
33780 * config/aarch64/aarch64-tune.md: Re-generate.
33782 2013-01-02 Richard Biener <rguenther@suse.de>
33784 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
33785 invariant load do not generate a vector load from the scalar location.
33787 2013-01-02 Richard Biener <rguenther@suse.de>
33790 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
33791 * configure: Regenerate.
33793 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33795 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
33796 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
33797 (expand_builtin_int_roundingfn_2): Keep the original target around
33798 for the fallback case.
33800 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33802 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
33803 to be clear for sign changes.
33805 2013-01-01 Jan Hubicka <jh@suse.cz>
33807 * ipa-inline-analysis.c: Fix formatting.
33809 2013-01-01 Jakub Jelinek <jakub@redhat.com>
33811 PR tree-optimization/55831
33812 * tree-vect-loop.c (get_initial_def_for_induction): Use
33813 gsi_after_labels instead of gsi_start_bb.
33815 Copyright (C) 2013 Free Software Foundation, Inc.
33817 Copying and distribution of this file, with or without modification,
33818 are permitted in any medium without royalty provided the copyright
33819 notice and this notice are preserved.