1 2012-05-02 Michael Matz <matz@suse.de>
3 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
4 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
5 (const_gimple_seq_node): Remove.
6 (gimple_seq_node): Typedef as gimple.
7 (struct gimple_statement_base): Add next and prev members,
8 adjust all WORD markers in using structs.
9 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
10 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
11 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
13 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
15 (gimple_init_singleton): New function.
16 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
17 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
19 (gsi_stmt_ptr): Remove.
20 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
22 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
23 again, adjust for above changes.
24 (update_call_edge_frequencies): Adjust for above changes.
25 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
26 (gsi_insert_seq_nodes_after): Ditto.
27 (gsi_split_seq_after): Ditto.
28 (gsi_set_stmt): Ditto.
29 (gsi_split_seq_before): Ditto.
31 (gsi_insert_seq_before_without_update): Don't free sequence.
32 (gsi_insert_seq_after_without_update): Ditto.
33 (gsi_replace): Assert some more invariants.
34 (gsi_insert_before_without_update, gsi_insert_after_without_update):
36 (gsi_for_stmt): Don't search for stmt.
37 (gsi_insert_on_edge_immediate): Tidy.
39 * gimple.c (gimple_alloc_k): Remove "sequences".
40 (gimple_seq_cache): Remove.
41 (gimple_alloc_stat): Make stmt a singleton sequence.
42 (gimple_seq_alloc, gimple_seq_free): Remove.
43 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
45 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
46 create iterator from correct sequence.
47 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
49 2012-05-02 Michael Matz <matz@suse.de>
51 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
53 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
54 sequence, lazily allocate it.
55 (bb_seq_addr): New function.
56 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
57 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
58 (gsi_none): New function.
59 (gsi_start_bb): Adjust.
60 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
61 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
62 (gsi_last_bb): Adjust.
64 * tree-flow-inline.h (phi_nodes_ptr): New function.
66 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
67 datastructure and interface change.
68 (gsi_insert_seq_before_without_update): Ditto.
69 (gsi_insert_seq_nodes_after): Ditto.
70 (gsi_insert_seq_after_without_update): Ditto.
71 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
72 (gsi_split_seq_before): Ditto.
73 (gsi_start_phis): Adjust.
74 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
76 (vect_transform_loop): Ditto.
77 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
78 gimple_seq_copy): Don't use gimple_seq_alloc.
79 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
80 (gimplify_seq_add_seq): Ditto.
81 * lto-streamer-in.c (make_new_block): Ditto.
82 * tree-cfg.c (create_bb): Ditto.
83 * tree-sra.c (initialize_parameter_reductions): Ditto.
85 2012-05-02 Michael Matz <matz@suse.de>
87 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
88 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
89 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
90 set_bb_seq): Move down to after gimple_statement_d definition.
92 2012-05-02 Michael Matz <matz@suse.de>
94 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
95 gsi_replace_with_seq, instead of inserting itself.
96 * gimple-iterator.c (gsi_replace_with_seq): New function.
97 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
98 iterator instead of statement, advance it.
99 (ssa_forward_propagate_and_combine): Adjust call to above.
101 2012-05-02 Michael Matz <matz@suse.de>
103 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
105 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
106 * tree-nested.c (walk_gimple_omp_for): Ditto.
107 * trans-mem.c (lower_transaction): Ditto.
108 * tree-eh.c (do_return_redirection): Ditto.
109 (do_goto_redirection): Ditto.
110 (lower_try_finally_switch): Ditto.
111 * gimplify.c (gimplify_stmt): Ditto.
112 (gimplify_scan_omp_clauses): Ditto.
113 (gimplify_omp_for): Ditto.
114 (gimplify_function_tree): Ditto.
115 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
116 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
117 (mf_build_check_statement_for): Ditto.
118 (mx_register_decls): Ditto.
119 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
120 and don't use itertors to append.
121 (insert_stmts): Ditto.
122 (insert_out_of_ssa_copy): Ditto.
123 (insert_out_of_ssa_copy_on_edge): Ditto.
125 2012-05-02 Michael Matz <matz@suse.de>
127 * gimple.h (gimple_bind_body_ptr): New function.
128 (gimple_bind_body): Use it.
129 (gimple_catch_handler): Use gimple_catch_handler_ptr.
130 (gimple_eh_filter_failure_ptr): New function.
131 (gimple_eh_filter_failure): Use it.
132 (gimple_eh_else_n_body_ptr): New function.
133 (gimple_eh_else_n_body): Use it.
134 (gimple_eh_else_e_body_ptr): New function.
135 (gimple_eh_else_e_body): Use it.
136 (gimple_try_eval_ptr): New function.
137 (gimple_try_eval): Use it.
138 (gimple_try_cleanup_ptr): New function.
139 (gimple_try_cleanup): Use it.
140 (gimple_wce_cleanup_ptr): New function.
141 (gimple_wce_cleanup): Use it.
142 (gimple_omp_body_ptr): New function.
143 (gimple_omp_body): Use it.
144 (gimple_omp_for_pre_body_ptr): New function.
145 (gimple_omp_for_pre_body): Use it.
146 (gimple_transaction_body_ptr): New function.
147 (gimple_transaction_body): Use it.
148 (gsi_split_seq_before): Adjust to return nothing and take pointer
150 (gsi_set_stmt): Declare.
151 (gsi_replace_with_seq): Declare.
152 (walk_gimple_seq_mod): Declare.
153 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
155 * gimple-iterator.c (gsi_set_stmt): New function.
156 (gsi_split_seq_before): Return new sequence via pointer argument.
157 (gsi_replace): Use gsi_set_stmt.
159 * tree-ssa-loop-im.c (move_computations_stmt): First remove
161 * tree-complex.c (update_complex_components_on_edge): Don't
163 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
165 (reserve_phi_args_for_new_edge): Change call to above,
168 * omp-low.c (lower_omp): Change prototype to take pointer to
170 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
171 iterators. Adjust call to lower_omp.
172 (lower_lastprivate_clauses): Adjust call to lower_omp.
173 (lower_reduction_clauses): Ditto.
174 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
175 (lower_omp_sections): Don't explicitely count sequence length,
176 nullify lowered bodies earlier, ensure stmts are part of only
177 one sequence, adjust call to lower_omp.
178 (lower_omp_single): Ensure stmts are part of only one sequence,
179 adjust call to lower_omp.
180 (lower_omp_master): Ditto.
181 (lower_omp_ordered): Ditto.
182 (lower_omp_critical): Ditto.
183 (lower_omp_for): Ditto.
184 (lower_omp_taskreg): Ditto, tidy.
185 (lower_omp_1): Adjust calls to lower_omp.
186 (execute_lower_omp): Ditto.
187 (lower_omp): Adjust to take pointer to sequence.
188 (diagnose_sb_2): Use walk_gimple_seq_mod.
189 (diagnose_omp_structured_block_errors): Ditto and set possibly
190 changed function body.
191 * gimple-low.c (lower_function_body): Set function body after
193 (lower_sequence): Adjust to take pointer to sequence.
194 (lower_omp_directive): Ensure stmt isn't put twice into the
195 sequence, adjust call to lower_sequence.
196 (lower_stmt): Adjust calls to lower_sequence.
197 (lower_gimple_bind): Ditto.
198 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
199 * tree-nested.c (walk_body): Take pointer to sequence, use
201 (walk_function): Adjust call to walk_body, set possibly changed
203 (walk_gimple_omp_for): Adjust calls to walk_body.
204 (convert_nonlocal_omp_clauses): Ditto.
205 (convert_nonlocal_reference_stmt): Ditto.
206 (convert_local_omp_clauses): Ditto.
207 (convert_local_reference_stmt): Ditto.
208 (convert_tramp_reference_stmt): Ditto.
209 (convert_gimple_call): Ditto.
210 (convert_nl_goto_reference): Use local iterator copy.
211 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
212 but taking pointer to sequence, ensure gsi_start is called with
214 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
215 asserting that the sequence head didn't change.
216 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
218 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
219 (execute_lower_tm): Ditto, and set possibly changed body.
220 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
221 call gsi_start with that lvalue.
222 (replace_goto_queue_stmt_list): Ditto.
223 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
224 (replace_goto_queue): Ditto.
225 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
226 (lower_try_finally_onedest): Ditto.
227 (lower_try_finally_copy): Ditto.
228 (lower_try_finally_switch): Ditto.
229 (lower_try_finally): Ditto.
230 (lower_eh_filter): Ditto.
231 (lower_eh_must_not_throw): Ditto.
232 (lower_cleanup): Ditto.
233 (lower_eh_constructs_2): Ditto.
234 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
235 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
236 set possibly changed body.
237 (optimize_double_finally): Call gsi_start with lvalue.
239 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
240 (gimple_split_block): Ditto.
241 (gimple_merge_blocks): Use gsi_start_phis.
242 (move_stmt_r): Use walk_gimple_seq_mod.
243 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
244 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
245 (rebuild_cgraph_edges): Ditto.
246 (cgraph_rebuild_references): Ditto.
247 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
248 * tree-inline.c (copy_phis_for_bb): Ditto.
249 * tree-ssa-dce.c: Ditto.
251 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
253 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
254 Andi Kleen <ak@linux.intel.com>
256 * coretypes.h (MEMMODEL_MASK): New.
257 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
258 and return new variable.
259 (expand_builtin_atomic_exchange): Mask memmodel values.
260 (expand_builtin_atomic_compare_exchange): Ditto.
261 (expand_builtin_atomic_load): Ditto.
262 (expand_builtin_atomic_store): Ditto.
263 (expand_builtin_atomic_clear): Ditto.
264 * doc/extend.texi: Mention port-dependent memory model flags.
265 * config/i386/cpuid.h (bit_HLE): New.
266 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
268 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
269 * config/i386/i386-c.c (ix86_target_macros_internal): Set
271 (ix86_target_string)<-mhle>: New.
272 (ix86_valid_target_attribute_inner_p)<OPT_mhle>: Ditto.
273 * config/i386/i386.c (ix86_target_string)<OPTION_MASK_ISA_HLE>:
275 (ix86_valid_target_attribute_inner_p)<OPT_mhle>: Ditto.
276 (ix86_option_override_internal)<PTA_HLE>: New switch, set it
277 enabled for generic, generic64 and core-avx2.
278 (ix86_print_operand): Generate HLE lock prefixes.
279 (ix86_memmodel_check): New.
280 (TARGET_MEMMODEL_CHECK): Ditto.
281 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
282 (IX86_HLE_ACQUIRE): Ditto.
283 (IX86_HLE_RELEASE): Ditto.
284 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
285 * config/i386/i386.opt (mhle): Ditto.
286 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
287 success model to instruction emitter.
288 (atomic_fetch_add<mode>): Ditto.
289 (atomic_exchange<mode>): Ditto.
290 (atomic_add<mode>): Ditto.
291 (atomic_sub<mode>): Ditto.
292 (atomic_<code><mode>): Ditto.
293 (*atomic_compare_and_swap_doubledi_pic): Ditto.
294 (atomic_compare_and_swap_single<mode>): Define and use argument
296 (atomic_compare_and_swap_double<mode>): Ditto.
297 * configure.ac: Check if assembler support HLE prefixes.
298 * configure: Regenerate.
301 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
304 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
306 (gimplify_switch_expr): ... here.
307 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
308 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
309 to clean up case labels with values outside the index type range.
310 (simplify_gimple_switch): Call it if something changed.
311 Remove strange and unnecessary assert.
313 2012-05-02 Richard Guenther <rguenther@suse.de>
315 * fold-const.c (div_if_zero_remainder): sizetypes no longer
317 (int_const_binop_1): New worker for int_const_binop with
318 overflowable parameter. Pass it through
319 to force_fit_type_double.
320 (int_const_binop): Wrap around int_const_binop_1 with overflowable
322 (size_binop_loc): Call int_const_binop_1 with overflowable equal
323 to minus one, forcing overflow detection for even unsigned types.
324 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
325 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
326 * stor-layout.c (initialize_sizetypes): sizetypes no longer
328 (layout_type): For zero-sized arrays ignore overflow on the
330 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
331 (bit_value_binop_1): Likewise.
332 * tree.c (double_int_to_tree): Likewise.
333 (double_int_fits_to_tree_p): Likewise.
334 (force_fit_type_double): Likewise.
335 (host_integerp): Likewise.
336 (int_fits_type_p): Likewise.
337 * varasm.c (output_constructor_regular_field): Sign-extend the
338 field-offset to cater for negative offsets produced by the Ada frontend.
339 * omp-low.c (extract_omp_for_data): Convert the loop step to
340 signed for pointer adjustments.
342 2012-05-02 Richard Guenther <rguenther@suse.de>
344 * tree.c (valid_constant_size_p): New function.
345 * tree.h (valid_constant_size_p): Declare.
346 * cfgexpand.c (expand_one_var): Adjust check for too large
347 variables by using valid_constant_size_p.
348 * varasm.c (assemble_variable): Likewise.
350 * c-decl.c (grokdeclarator): Properly check for sizes that
351 cover more than half of the address-space.
353 2012-05-02 Jakub Jelinek <jakub@redhat.com>
355 PR tree-optimization/53163
356 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
357 return value from compute_all_dependences.
359 PR rtl-optimization/53160
360 * ree.c (combine_reaching_defs): Handle the case where cand->insn
361 has been modified by ree pass already.
363 2012-05-01 Ian Lance Taylor <iant@google.com>
366 * c-decl.c (build_compound_literal): Make the decl readonly if it
367 an array of a readonly type.
368 * gimplify.c (gimplify_compound_literal_expr): Add fallback
369 parameter. Change all callers. If the decl is not addressable
370 and is not an l-value, make it readonly.
372 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
374 * ira.c (allocated_reg_info_size): New static variable.
375 (expand_reg_info): Manage it. Call
376 setup_preferred_alternate_classes_for_new_pseudos.
377 (ira): Don't do it here. Remove local allocated_reg_info_size,
378 set the global before calling find_moveable_pseudos.
379 (find_moveable_pseudos): Call expand_reg_info rather than
382 2012-05-01 Richard Henderson <rth@redhat.com>
384 * common.opt (fsync-libcalls): New.
385 * doc/invoke.texi: Document it.
386 * optabs.c (init_sync_libfuncs): Honor it.
388 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
389 Richard Sandiford <r.sandiford@uk.ibm.com>
391 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
393 * lower-subreg.h: New file.
394 * target-globals.h (this_target_lower_subreg): Declare.
395 (target_globals): Add lower_subreg;
396 (restore_target_globals): Restore this_target_lower_subreg.
397 * target-globals.c: Include it.
398 (default_target_globals): Add default_target_lower_subreg.
399 (save_target_globals): Initialize target_lower_subreg.
400 * rtl.h (init_lower_subreg): Added declaration.
401 * toplev.c (backend_init_target): Call initializer for lower-subreg
403 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
404 (default_target_lower_subreg): New variable.
405 (this_target_lower_subreg): Likewise.
406 (twice_word_mode, choices): New macros.
407 (shift_cost, compute_splitting_shift, compute_costs)
408 (init_lower_subreg): New functions.
409 (resolve_simple_move): Add speed_p argument. Check choices.
410 (find_pseudo_copy): Don't check the mode size here.
411 (resolve_simple_move): Assert the mode size.
412 (find_decomposable_shift_zext): Add speed_p argument and return
413 a bool. Check choices.
414 (resolve_shift_zext): Add comment.
415 (dump_shift_choices, dump_choices): New functions.
416 (decompose_multiword_subregs): Dump list of profitable
417 transformations. Add code to skip non profitable transformations.
418 Update calls to simple_move and find_decomposable_shift_zext.
420 2012-05-01 Ian Bolton <ian.bolton@arm.com>
421 Sameera Deshpande <sameera.deshpande@arm.com>
422 Greta Yorsh <greta.yorsh@arm.com>
424 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
425 (thumb1_unexpanded_epilogue): ...this.
426 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
427 (thumb1_unexpanded_epilogue): ...this.
428 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
429 (thumb1_unexpanded_epilogue): ...this.
431 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
433 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
434 comparing enumeration values. Update comments.
436 2012-05-01 Alan Modra <amodra@gmail.com>
439 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
440 load_cr_save, add_crlr_cfa_restore): New functions.
441 (rs6000_restore_saved_cr): Rename to..
442 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
443 (rs6000_emit_epilogue): Use new functions. Adjust condition
444 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
445 regs when using out-of-line restore only when shrink wrapping.
447 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
450 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
451 calls to cgraph_node_name in xstrdup.
452 (ipa_make_edge_direct_to_target): Ditto.
453 * cgraph.c (dump_cgraph_node): Ditto.
454 * tree-sra.c (convert_callers_for_node): Ditto.
455 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
456 * ipa-cp.c (perhaps_add_new_callers): Ditto.
457 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
458 (cgraph_materialize_all_clones): Ditto.
459 * ipa-inline.c (report_inline_failed_reason): Ditto.
460 (want_early_inline_function_p): Ditto.
461 (edge_badness): Ditto.
462 (update_edge_key): Ditto.
463 (flatten_function): Ditto.
465 (inlinw_always_inline_functions): Ditto.
466 (early_inline_small_functions): Ditto.
468 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
471 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
474 012-04-30 Jan Hubicka <jh@suse.cz>
476 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
477 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
478 (cgraph_add_to_same_comdat_group): Remove.
479 (cgraph_add_asm_node): Move to cgraphunit.c.
480 (cgraph_make_decl_local): Move to symtab.c
481 (cgraph_make_node_local_1): Update.
482 (cgraph_can_remove_if_no_direct_calls_and): Update.
483 (used_from_object_file_p): Update.
484 (resolution_used_from_other_file_p): Move to symtab.c
485 (cgraph_used_from_object_file_p): move to symtab.c
486 (verify_cgraph_node): Verify same comdat groups.
487 * cgraph.h (cgraph_asm_node): Rename to ...
488 (asm_node): ... this one.
489 (cgraph_asm_nodes): Rename to ...
490 (asm_nodes): ... this one.
491 (symtab_add_to_same_comdat_group): New function.
492 (symtab_dissolve_same_comdat_group_list): New function.
493 (symtab_used_from_object_file_p): Declare.
494 (symtab_make_decl_local): Declare.
495 (cgraph_add_to_same_comdat_group): Remove.
496 (cgraph_add_asm_node): Remove.
497 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
499 (cgraph_finalize_compilation_unit): Rename to ...
500 (finalize_compilation_unit): ... this one.
501 (cgraph_optimize): Rename to ....
502 (compile): ... this one.
503 (add_asm_node): Declare.
504 (fixup_same_cpp_alias_visibility): Declare.
505 (cgraph_make_decl_local): Remove.
506 (varpool_assemble_pending_decls): Rename to ...
507 (varpool_output_variables): ... this one.
508 (varpool_remove_unreferenced_decls): Remove.
509 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
510 (preserve_function_body_p): Make static.
511 * toplev.c (compile_file): Update comments; update.
512 * cgraphunit.c: Update comments.
513 (cgraph_expand_all_functions): Rename to ...
514 (expand_all_functions): ... this one; update.
515 (cgraph_mark_functions_to_output): Rename to ...
516 (mark_functions_to_output): ... this one; cleanup.
517 (cgraph_output_pending_asms): Remove prototype.
518 (asm_nodes, asm_last_node): New static vars.
519 (cgraph_process_new_functions): Update.
520 (cgraph_reset_node): Cleanup; add comment.
521 (cgraph_add_new_function): Update.
522 (cgraph_output_pending_asms): Rename to ...
523 (output_asm_statements): ... this one.
524 (add_asm_node): New function.
525 (fixup_same_cpp_alias_visibility): New function based on code
526 in cgraph_analyze_function.
527 (cgraph_analyze_function): Use it.
528 (cgraph_order_sort): Update.
529 (cgraph_output_in_order): Update.
530 (cgraph_function_versioning): Update.
531 (cgraph_optimize): Rename to ...
532 (compile): ... this one; initialize streamer hooks here.
533 (cgraph_finalize_compilation_unit): Rename to ...
534 (finalize_compilation_unit): ... this one; do not initialize streamer
536 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
537 * dwarf2out.c: Update ocmment.
538 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
539 * method.c (use_thunk): Likewise.
540 * semantics.c (maybe_add_lambda_conv_op): Likewise.
541 * decl2.c (maybe_emit_vtables): Likewise.
542 (cp_write_global_declarations): Use finalize_compilation_unit.
543 * parser.c (cp_parser_asm_definition): Use add_asm_node.
544 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
545 * c-decl.c (c_write_global_declarations): Use
546 finalize_compilation_unit.
547 * langhooks.c (write_global_declarations): Update.
548 * ipa.c (cgraph_externally_visible_p): Update.
549 (dissolve_same_comdat_group_list): Remove.
550 (function_and_variable_visibility): Update.
551 * symtab.c: Inlcude lto-streamer.h and rtl.h
552 (ld_plugin_symbol_resolution_names): New.
553 (symtab_add_to_same_comdat_group): New.
554 (symtab_dissolve_same_comdat_group_list): New.
555 (resolution_used_from_other_file_p): Move here from cgraph.c
556 (symtab_used_from_object_file_p): New.
557 (symtab_make_decl_local): New.
558 * passes.c (register_pass): Update comments.
559 * c-parser.c (c_parser_asm_definition): Update.
560 * varpool.c (varpool_analyze_node): Use
561 fixup_same_cpp_alias_visibility.
562 (varpool_remove_unreferenced_decls): Make static.
563 (varpool_assemble_pending_decls): Rename to ...
564 (varpool_output_variables): ... this one; call
565 varpool_remove_unreferenced_decls.
566 (varpool_used_from_object_file_p): Remove.
568 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
571 * c-typeck.c (build_array_ref): Call
572 convert_vector_to_pointer_for_subscript.
573 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
575 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
577 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
578 to compile-time "mode == <MODE>mode" checks.
579 (and splitter): Ditto.
581 2012-04-30 Richard Henderson <rth@redhat.com>
583 * config/arm/arm.md (UNSPEC_LL): New.
584 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
585 (arm_load_exclusivedi): Use %H0.
587 2012-04-30 Jason Merrill <jason@redhat.com>
589 * dwarf2out.c (comdat_symbol_id): Add const.
590 (union die_symbol_or_type_node): Add const to die_symbol.
591 (output_die_symbol, output_die, output_comp_unit): Adjust.
593 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
595 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
596 * config/arm/neon.md (negdi2_neon): New insn.
597 Also add splitters for core and NEON registers.
599 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
601 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
602 (arm_print_operand): Add 'x' format.
603 * config/arm/constraints.md (Dn): Allow const_int.
604 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
605 Use 'x' format to print constants.
606 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
607 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
609 (movdi_vfp_cortexa8): Likewise.
611 2012-04-30 Ian Bolton <ian.bolton@arm.com>
612 Sameera Deshpande <sameera.deshpande@arm.com>
613 Greta Yorsh <greta.yorsh@arm.com>
615 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
616 * config/arm/arm.c (ldm_stm_operation_p): New function.
617 * config/arm/predicates.md (load_multiple_operation): Update predicate.
618 (store_multiple_operation): Likewise.
620 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
621 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
622 * config/arm/predicates.md (load_multiple_operation): Add arguments.
623 (store_multiple_operation): Likewise.
625 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
627 * config/i386/i386.md (and<mode>3): Expand masking operations with
628 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
629 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
631 2012-04-30 Dodji Seketeli <dodji@redhat.com>
634 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
635 argument for the various warning_at calls.
636 * docs/invoke.texi: Update the documentation.
638 2012-04-30 Dodji Seketeli <dodji@redhat.com>
640 Switch -ftrack-macro-expansion=2 on by default.
641 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
644 Fix va_start related location
645 * builtins.c (fold_builtin_next_arg): Unwinds to the first
646 location in real source code.
648 Make conversion warnings work on NULL with -ftrack-macro-expansion
649 * input.h (expansion_point_location_if_in_system_header): Declare
651 * input.c (expansion_point_location_if_in_system_header): Define it.
653 Fix -Wuninitialized for -ftrack-macro-expansion
654 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
655 declaration. Use linemap_location_before_p for source locations.
657 Strip "<built-in>" loc from displayed expansion context
658 * input.c (expand_location_1): When expanding to spelling location
659 in a context of a macro expansion, skip reserved system header
660 locations. Update comments. * tree-diagnostic.c
661 (maybe_unwind_expanded_macro_loc): Likewise.
663 Make expand_location resolve to locus in main source file
664 * input.c (expand_location_1): New. Takes a parameter to choose
665 whether to resolve the location to spelling or expansion point.
666 Was factorized from ...
667 (expand_location): ... here.
668 (expand_location_to_spelling_point): New. Implemented in terms of
670 * diagnostic.c (diagnostic_build_prefix): Use the new
671 expand_location_to_spelling_point instead of expand_location.
673 Fix PCH crash on GTYed pointer-to-scalar field of a struct
674 * gengtype.c (write_types_process_field): Force second argument of
675 the call to the PCH object hierarchy walker to be 'x'.
677 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
679 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
680 predicate to discriminate types.
682 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
684 * doc/invoke.texi (Wmissing-format-attribute): Document as an
685 alias of Wsuggest-attribute=format.
686 * c-typeck.c (convert_for_assignment): Replace
687 Wmissing-format-attribute with Wsuggest-attribute=format.
688 (digest_init): Likewise.
690 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
692 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
693 * common.opt (Wmissing-noreturn): Alias of
694 -Wsuggest-attribute=noreturn.
696 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
699 * config/cris/cris.md (andqu): New peephole2.
700 (andu): Tweak head comment.
702 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
703 Steven Bosscher <steven@gcc.gnu.org>
704 Maxim Kuvyrkov <maxim@codesourcery.com>
706 PR tree-optimization/38785
707 * common.opt (ftree-partial-pre): New option.
708 * doc/invoke.texi: Document it.
709 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
710 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
712 (execute_pre): Use flag_tree_partial_pre.
714 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
717 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
720 2012-04-27 Ollie Wild <aaw@google.com>
722 * doc/invoke.texi (Wliteral-suffix): Document new option.
724 2012-04-27 Tom Tromey <tromey@redhat.com>
726 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
727 (dwarf_tag_name): Use get_DW_TAG_name.
728 (dwarf_attr_name): Use get_DW_AT_name.
729 (dwarf_form_name): Use get_DW_FORM_name.
730 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
732 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
734 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
735 arguments are -1 and 0, by negating the result of the conditional.
737 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
740 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
742 2012-04-27 Richard Guenther <rguenther@suse.de>
744 * tree-flow.h (is_hidden_global_store): Remove.
745 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
746 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
747 (stmt_may_clobber_global_p): Likewise.
748 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
749 (stmt_may_clobber_global_p): Likewise.
750 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
751 stmt_may_clobber_global_p.
752 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
754 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
756 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
759 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
760 reorganize some fields and update comments. Rename bit_test_uniq
761 and bit_test_count to uniq resp. count. Remove bit_test_bb.
762 (collect_switch_conv_info): New function, collects info about a
763 GIMPLE_SWITCH into a struct switch_conv_info.
764 (check_range): Simplify to use pre-recorded info. Fix think-o in
765 range-branch ratio check.
766 (check_process_case): Remove function.
767 (check_all_empty_except_final): New function, verifies that all
768 non-final basic blocks are empty.
769 (process_switch): Simplify to use pre-recorded info. Call
770 collect_switch_conv_info to do that. Assert that degenerate switch
771 statements have been cleaned up.
773 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
776 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
778 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
781 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
783 2012-04-27 Tom de Vries <tom@codesourcery.com>
785 PR tree-optimization/51879
786 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
787 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
789 (defs_to_varying): ... here. Don't set use_processed.
790 (visit_reference_op_call): Handle gimple_vdef.
791 Handle case that lhs is NULL_TREE.
792 (visit_use): Use mark_use_processed. Handle calls with side-effect
793 using visit_reference_op_call.
795 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
797 * sched-deps.c (fixup_sched_groups): Rename to...
798 (chain_to_prev_insn): ...this.
799 (chain_to_prev_insn_p): New function.
800 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
802 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
804 * sched-int.h (_haifa_insn_data): Move priority_status.
806 (INSN_MODEL_INDEX): New macro.
807 * haifa-sched.c (insn_delay): New function.
808 (sched_regno_pressure_class): Update commentary.
809 (mark_regno_birth_or_death): Pass the liveness bitmap and
810 pressure array as arguments, instead of using curr_reg_live and
811 curr_reg_pressure. Only update the pressure if the bit in the
812 liveness set has changed.
813 (initiate_reg_pressure_info): Always trust the live-in set for
814 SCHED_PRESSURE_MODEL.
815 (initiate_bb_reg_pressure_info): Update call to
816 mark_regno_birth_or_death.
817 (dep_list_size): Take the list as argument.
818 (calculate_reg_deaths): New function, extracted from...
819 (setup_insn_reg_pressure_info): ...here.
820 (MODEL_BAR): New macro.
821 (model_pressure_data, model_insn_info, model_pressure_limit)
822 (model_pressure_group): New structures.
823 (model_schedule, model_worklist, model_insns, model_num_insns)
824 (model_curr_point, model_before_pressure, model_next_priority):
826 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
827 (MODEL_INSN_INFO, MODEL_INSN): New macros.
828 (model_index, model_update_limit_points_in_group): New functions.
829 (model_update_limit_points, model_last_use_except): Likewise.
830 (model_start_update_pressure, model_update_pressure): Likewise.
831 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
832 (model_excess_cost, model_dump_pressure_points): Likewise.
833 (model_set_excess_costs): Likewise.
834 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
835 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
836 schedule as an alternative tie-breaker. Update the call to
838 (ready_sort): Call model_set_excess_costs.
839 (update_register_pressure): Update call to mark_regno_birth_or_death.
840 Rely on that function to check liveness rather than doing it here.
841 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
842 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
843 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
844 (model_record_pressure, model_record_pressures): New functions.
845 (model_record_final_pressures, model_add_successors_to_worklist)
846 (model_promote_predecessors, model_choose_insn): Likewise.
847 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
848 (model_start_schedule, model_finalize_pressure_group): Likewise.
849 (model_end_schedule): Likewise.
850 (schedule_insn): Say when we're scheduling the next instruction
851 in the model schedule.
852 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
853 (queue_to_ready): Do not add instructions that are
854 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
855 Always allow the next instruction in the model schedule to be added.
856 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
857 and delay for SCHED_PRESSURE_MODEL too.
858 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
859 SCHED_PRIORITY_MODEL, but also take the DFA into account.
860 (schedule_block): Call model_start_schedule and model_end_schedule.
861 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
862 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
863 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
865 (sched_finish): Update accordingly.
866 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
867 to SCHED_PRESSURE_MODEL.
868 (add_jump_dependencies): Update call to dep_list_size.
869 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
870 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
871 to SCHED_PRESSURE_MODEL.
872 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
873 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
874 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
875 handling to SCHED_PRESSURE_MODEL.
877 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
879 * common.opt (fsched-pressure-algorithm=): New option.
880 * flag-types.h (sched_pressure_algorithm): New enum.
881 * sched-int.h (sched_pressure_p): Replace with...
882 (sched_pressure): ...this new variable.
883 * haifa-sched.c (sched_pressure_p): Replace with...
884 (sched_pressure): ...this new variable.
885 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
886 (update_reg_and_insn_max_reg_pressure, schedule_insn)
887 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
888 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
889 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
890 (sched_analyze_insn): Likewise.
891 * sched-rgn.c (schedule_region): Likewise.
892 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
894 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
896 * PR middle-end/52997
897 * ira.c (find_moveable_pseudos): Call resize_reg_info.
900 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
901 * expr.c (convert_move): Honor unsignedp when extending partial int
903 * genmodes.c (complete_mode): Don't clear component field of partial
905 (emit_mode_inner): Don't emit it however.
906 (calc_wider_mode): Partial int modes widen to their component.
908 2012-04-26 David S. Miller <davem@davemloft.net>
910 * config/sparc/niagara4.md: New file.
911 * config/sparc/sparc.md: Include it.
912 * config/sparc/sparc.c (niagara4_costs): New processor costs.
913 (sparc_option_override): Use it.
914 (sparc_use_sched_lookahead): Return 2 for niagara4.
915 (sparc_issue_rate): Likewise.
917 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
918 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
919 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
920 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
921 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
922 alignaddrldi_vis): Set type to gsr.
923 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
924 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
925 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
926 v<vis3_shift_patname><mode>3, fmean16_vis,
927 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
928 fucmp<code>8<P:mode>_vis): Set type to fga.
929 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
930 * config/sparc/niagara.md: Likewise.
931 * config/sparc/niagara2.md: Likewise.
932 * config/sparc/ultra3.md: Likewise, and fix type matching for
933 us3_ialuX reservation.
935 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
937 * reload.c (find_reloads): Change the loop nesting when trying an
938 alternative with swapped operands.
940 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
942 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
943 comment. Delete unused parameter first_exp_point_map.
944 (virt_loc_aware_diagnostic_finalizer): Update call.
946 2012-04-26 Michael Hope <michael.hope@linaro.org>
947 Richard Earnshaw <rearnsha@arm.com>
949 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
950 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
951 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
952 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
954 2012-04-25 Sriraman Tallam <tmsriram@google.com>
956 * doc/extend.texi: Document avx2 support.
957 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
959 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
962 * config/cris/cris.md ("*andhi_lowpart_v32")
963 ("*andqi_lowpart_v32"): Change first input-only operand from
964 a (match_operand ...) to (match_dup 0). Drop alternatives with
965 const_int-matching constraints for redundancy.
966 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
967 three-operand alternative.
969 2012-04-25 Jakub Jelinek <jakub@redhat.com>
972 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
973 instead expand it as zero extension.
975 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
978 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
980 2012-04-25 Jakub Jelinek <jakub@redhat.com>
982 * common.opt (flag_debug_types_section): Default to 0.
983 (dwarf_version): Default to 4.
984 (dwarf_record_gcc_switches): Default to 1.
985 (dwarf_strict): Default to 0.
986 * toplev.c (process_options): Don't handle dwarf_strict
987 or dwarf_version here.
988 * config/vxworks.c (vxworks_override_options): Don't
989 test whether dwarf_strict or dwarf_version are negative,
990 instead test !global_options_set.x_dwarf_*.
991 * config/darwin.c (darwin_override_options): Default to
993 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
994 and -fno-debug-types-section are now the default.
996 2012-04-25 Jan Hubicka <jh@suse.cz>
998 * cgraphunit.c: Update toplevel comment.
999 (tree_rest_of_compilation): Merge into cgraph_expand_function.
1000 (cgraph_analyze_function): Make static.
1001 (cgraph_decide_is_function_needed): Make static.
1002 (cgraph_add_new_function): Use expand_function instead of
1003 rest_of_compilation.
1004 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
1005 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
1007 (cgraph_inline_p): Remove.
1008 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
1009 (init_cgraph): Add comment.
1010 * cgraphbuild.c (record_reference, mark_address, mark_load,
1011 mark_store): Do not call analyze_expr hook.
1012 * cgraph.c: Update toplevel comment.
1013 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
1014 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
1015 Move fere from cgraphunit.c
1016 (cgraph_mark_force_output_node): Move to cgraph.h
1017 * cgraph.h: Reorder so the comments match the function placement.
1018 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
1019 (cgraph_mark_force_output_node): Move here from cgraph.c
1020 * tree.c (free_lang_data): Do not clear analyze_expr hook.
1021 * ipa-inline-transform.c (preserve_function_body_p): New function.
1022 (inline_transform): Update.
1023 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
1024 * langhooks.h (lang_hooks_for_callgraph): Remove.
1025 (lang_hooks): Remove callgraph.
1026 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
1027 * varpool.c: Remove out of date comment.
1028 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
1029 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
1031 2012-04-25 Jan Hubicka <jh@suse.cz>
1034 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
1035 forward declaration.
1036 (cgraph_finalize_function): Finalize them here.
1037 * symtab.c (dump_symtab): Dump ctors and dtors.
1039 2012-04-25 Jakub Jelinek <jakub@redhat.com>
1042 * stor-layout.c (get_best_mode): Don't return mode with bitsize
1043 larger than maxbits. Don't compute maxbits modulo align.
1044 Also check that unit bytes long store at bitpos / unit * unit
1045 doesn't affect bits beyond bitregion_end.
1046 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
1047 would not fit into bitregion_start ... bitregion_end + 1 bit region.
1048 (store_split_bit_field): Decrease unit close to end of bitregion_end
1049 if access is restricted in order to avoid mutual recursion.
1051 PR tree-optimization/53058
1052 * double-int.h (double_int_max_value, double_int_min_value): New
1054 * double-int.c (double_int_max_value, double_int_min_value): New
1056 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
1057 or GT_EXPR with double_int_max_value instead of double_int_mask.
1059 2012-04-25 Richard Guenther <rguenther@suse.de>
1061 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
1062 * tree-vect-loop.c (vect_transform_loop): Adjust.
1063 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
1064 the maximum number of iterations for the epilogue loop.
1065 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
1067 2012-04-25 Jakub Jelinek <jakub@redhat.com>
1070 * c-typeck.c (set_nonincremental_init,
1071 set_nonincremental_init_from_string): Pass true instead of false
1072 as IMPLICIT to add_pending_init.
1074 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
1076 * c-typeck.c (pop_init_level): Improve diagnostics.
1078 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
1080 * compare-elim.c (try_eliminate_compare): Also handle operands with
1081 implicit extensions.
1083 2012-04-25 Alan Modra <amodra@gmail.com>
1085 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
1086 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
1087 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
1088 (no_global_regs_above): Delete.
1089 (no_global_regs): New function.
1090 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
1091 value for load multiple test.
1092 (savres_routine_syms): Increase size.
1093 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
1094 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
1095 rather than a number of boolean flags. Update all callers.
1096 (rs6000_savres_routine_name): Generate vector save/restore names.
1097 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
1098 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
1099 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
1100 and using_store_multiple. Expand uses. Don't always use r11 as
1101 frame reg when needed for out-of-line saves. Set up initial offset
1102 for out-of-line vector saves when buying stack frame. Handle pointer
1103 reg setup for out-of-line fp save. Emit call to out-of-line vector
1104 save function. Choose r11 or r12 for vrsave reg when available for
1106 (rs6000_output_function_prologue): Don't emit .extern for ELF.
1107 (rs6000_emit_epilogue): Choose a better frame reg when restoring
1108 from back-chain to suit out-of-line vector restore functions. Emit
1109 call to out-of-line vector restore function. Adjust register used
1110 for cr restore. Tweak pointer register setup for gpr restore.
1111 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
1113 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
1114 (V_SAVE_INLINE): Define.
1115 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
1117 2012-04-25 Alan Modra <amodra@gmail.com>
1119 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
1120 out-of-line save/restore for large frames. Don't disable
1121 out-of-line saves on ABI_AIX when using static chain reg.
1122 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
1123 clobber static chain reg, and tweak for out-of-line gpr saves
1126 2012-04-25 Alan Modra <amodra@gmail.com>
1128 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
1129 (rs6000_emit_prologue): Use the above to catch register overlap.
1131 2012-04-25 Alan Modra <amodra@gmail.com>
1133 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
1134 decl. Move logic selecting update reg to callers. Update all callers.
1135 (rs6000_emit_allocate_stack): Add copy_off param.
1136 (emit_frame_save): Don't handle reg+reg addressing.
1137 (ptr_regno_for_savres): New function, extracted from..
1138 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
1139 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
1140 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
1141 frame offset adjustment for out-of-line save with copy from sp.
1142 Simplify condition controlling whether cr is saved early or
1143 late. Use ptr_regno_for_savres to verify correct reg is set
1144 up for out-of-line saves. Pass the actual pointer reg used to
1145 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
1146 function. Rearrange spe vars so code is similar to that
1147 elsewhere in this function. Don't update frame_off when spe
1148 save code will restore r11. Use emit_frame_save for spe and
1149 gpr saves. Consolidate darwin out-of-line gpr setup with that
1150 for other abis. Don't assume frame_offset is zero and frame
1151 reg is sp when setting up altivec reg saves, and calculate
1152 exact offset requirement.
1153 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
1154 spe restore code. Consolidate darwin out-of-line gpr setup
1155 with that for other abis.
1157 2012-04-25 Alan Modra <amodra@gmail.com>
1159 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
1160 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
1162 (emit_frame_save): Delete frame_ptr param. Rename total_size to
1164 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
1165 and emit_frame_save calls. Cope with possibly missing note.
1167 2012-04-24 Sriraman Tallam <tmsriram@google.com>
1169 * config/i386/i386.c (build_processor_model_struct): New function.
1170 (make_var_decl): New function.
1171 (fold_builtin_cpu): New function.
1172 (ix86_fold_builtin): New function.
1173 (make_cpu_type_builtin): New function.
1174 (ix86_init_platform_type_builtins): New function.
1175 (ix86_expand_builtin): Expand new builtins by folding them.
1176 (ix86_init_builtins): Make new builtins to detect CPU type.
1177 (TARGET_FOLD_BUILTIN): New macro.
1178 (IX86_BUILTIN_CPU_INIT): New enum value.
1179 (IX86_BUILTIN_CPU_IS): New enum value.
1180 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
1181 * config/i386/i386-builtin-types.def: New function type.
1182 * testsuite/gcc.target/builtin_target.c: New testcase.
1183 * doc/extend.texi: Document builtins.
1185 2012-04-24 Olivier Hainque <hainque@adacore.com>
1187 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
1188 * toplev.c (process_options): Default to dwarf_version 2.
1189 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
1190 and dwarf_version 2.
1192 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
1194 * tree-pretty-print.h (default_tree_printer): Do not declare.
1195 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
1197 (default_tree_diagnostic_starter): Make static.
1198 (default_tree_printer): Move to here. Make static.
1199 (tree_diagnostics_defaults): New.
1200 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
1201 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
1202 * toplev.c: Do not include tree-pass.h.
1203 (default_tree_printer): Move from here.
1204 (general_init): Use tree_diagnostics_defaults.
1206 2012-04-24 Chao-ying Fu <fu@mips.com>
1208 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
1209 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
1210 * config/mips/gnu-user.h
1211 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
1212 (GNU_USER_TARGET_LINK_SPEC): New define.
1213 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
1214 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
1215 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
1216 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
1217 GNU_USER_TARGET_ENDFILE_SPEC.
1218 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
1219 (GNU_USER_TARGET_LINK_SPEC): New define.
1220 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
1221 * config/mips/linux-common.h: New file.
1223 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1226 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
1227 (altivec_build_resolved_builtin): Call fully_fold_convert.
1229 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
1232 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
1234 2012-04-24 Richard Guenther <rguenther@suse.de>
1236 PR tree-optimization/53085
1237 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
1240 2012-04-24 Richard Guenther <rguenther@suse.de>
1242 * tree-if-conv.c (main_tree_if_conversion): Move bb under
1245 2012-04-24 Jim Meyering <meyering@redhat.com>
1247 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
1248 absence of an define_enum call.
1250 2012-04-24 Richard Guenther <rguenther@suse.de>
1252 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
1253 the epilogue loop is not re-used as unvectorized version
1254 record the its maximum number of iterations.
1256 2012-04-24 Andrew Pinski <apinski@cavium.com>
1258 * tree-ssa-forwprop.c (simplify_bitwise_binary):
1259 Don't directly use def1/def2.
1261 2012-04-24 Richard Guenther <rguenther@suse.de>
1263 PR tree-optimization/53098
1264 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
1267 2012-04-24 Andrew Pinski <apinski@cavium.com>
1270 * tree-ssa-forwprop.c (defcodefor_name): New function.
1271 (simplify_bitwise_binary): Use defcodefor_name instead of manually
1272 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
1273 Simplify "(~X | Y) & X" to "X & Y" and
1274 "(~X & Y) | X" to "X | Y".
1276 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1278 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
1279 validate_change to add clobbers if IN_GROUP is nonzero.
1280 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
1281 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
1283 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
1285 * config/s390/s390.c (insn_invalid_p): Likewise.
1287 2012-04-24 Jakub Jelinek <jakub@redhat.com>
1290 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
1291 (output_addressed_constants): Likewise.
1294 * varasm.c (get_section): Don't ICE for section conflicts with
1295 built-in section kinds.
1297 2012-04-23 DJ Delorie <dj@redhat.com>
1299 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
1300 (LIBSTDCXX): Change to CPP2.
1302 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
1305 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
1308 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
1310 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
1311 (*addsi_2_zext): Ditto.
1312 (*add<mode>_3): Ditto.
1313 (*addsi_3_zext): Ditto.
1314 (*add<mode>_5): Ditto.
1316 2012-04-23 Andrew Pinski <apinski@cavium.com>
1318 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
1319 (C & B) to (A OP0) & B.
1321 2012-04-23 Martin Jambor <mjambor@suse.cz>
1323 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
1324 temporaries created for a bitfield (reverting revision 122014).
1326 2012-04-23 Richard Guenther <rguenther@suse.de>
1328 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
1329 the condition using is_gimple_condexpr and avoid the not necessary
1331 (set_prologue_iterations): Likewise.
1332 (vect_loop_versioning): Likewise.
1334 2012-04-23 Richard Guenther <rguenther@suse.de>
1336 PR tree-optimization/53070
1337 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
1338 (main_tree_if_conversion): Verify we succeeded in that.
1340 2012-04-23 Jan Hubicka <jh@suse.cz>
1342 * lto-symtab.c (lto_cgraph_replace_node): Do not call
1343 mark_reahcable_node.
1344 * cgraph.c (cgraph_remove_node): Do not clear reachable.
1345 (cgraph_mark_reachable_node): Remove.
1346 (cgraph_mark_force_output_node): Do not set reachable.
1347 (dump_cgraph_node): Do not dump reachable.
1348 (cgraph_create_virtual_clone): Do not set reachable.
1349 * cgraph.h (cgraph_node): Remove reachable flag.
1350 (varpool_node): Remove reachable flag.
1351 (cgraph_mark_if_needed): Remove.
1352 (cgraph_mark_reachable_node): Remove.
1353 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
1354 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
1356 (cgraph_add_new_function): Likewise.
1357 (cgraph_mark_if_needed): Remove.
1358 (cgraph_analyze_function): Do not set target as reachable.
1359 (process_function_and_variable_attributes): Do not care about
1361 (cgraph_analyze_functions): Do not set reachable flags.
1362 (cgraph_mark_functions_to_output): Do not check reachability.
1363 (cgraph_copy_node_for_versioning): Do not set reachable flag.
1364 (dbxout_expand_expr): Update.
1365 * c-decl.c (merge_decls): Do not track changed externs.
1366 * ipa.c: Include pointer-set.h
1367 (enqueue_cgraph_node): Use reachable pointer set.
1368 (process_references): Likewise.
1369 (cgraph_remove_unreachable_nodes): Likewise.
1370 (whole_program_function_and_variable_visibility): Do not recompute
1372 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
1374 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
1376 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
1378 2012-04-23 Richard Guenther <rguenther@suse.de>
1381 * c-typeck.c (build_binary_op): Fix typo.
1383 2012-04-23 Jakub Jelinek <jakub@redhat.com>
1385 PR tree-optimizations/52891
1386 * tree-vect-patterns.c (adjust_bool_pattern): Use
1387 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
1388 but with non-standard precision.
1390 2012-04-22 Jan Hubicka <jh@suse.cz>
1392 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
1395 2012-04-22 Jan Hubicka <jh@suse.cz>
1397 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
1398 * cgraphbuild.c (record_reference, record_type_list, mark_address,
1399 mark_load, mark_store): Do not mark varpool nodes as needed.
1400 * cgraph.c (cgraph_new_nodes): Remove.
1401 (cgraph_create_function_alias): Do not mark nodes as reachable.
1402 (cgraph_add_thunk): Likewise.
1403 (cgraph_mark_reachable_node): Do not manage the queue.
1404 * cgraph.h (cgraph_node): Remove next_needed.
1405 (varpool_nodes_queue): Remove next_needed and prev_needed.
1406 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
1407 (cgraph_new_nodes): Declare.
1408 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
1409 (varpool_analyze_pending_decls): Remove.
1410 (varpool_analyze_node): New.
1411 (varpool_mark_needed_node): Remove.
1412 (varpool_first_variable, varpool_next_variable): New inlines.
1413 (varpool_first_static_initializer, varpool_next_static_initializer):
1415 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
1416 (varpool_first_defined_variable): New inline.
1417 (varpool_next_defined_variable): New inline
1418 (FOR_EACH_VARIABLE): Reimplement.
1419 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
1420 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
1422 * cgraphunit.c (cgraph_new_nodes): Declare here.
1423 (enqueue_node): New function.
1424 (cgraph_process_new_functions): update for new
1425 node set; when constructing cgraph enqueue node for processing.
1426 (cgraph_add_new_function): Use new node set.
1427 (process_function_and_variable_attributes): Do not set varpool needed
1429 (referred_to_p): New function.
1430 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
1431 when varpool is in construction.
1432 (cgraph_analyze_functions): Rewrite.
1433 (cgraph_expand_all_functions): Update.
1434 (cgraph_output_in_order): Do not analyze pending decls; do not set
1436 (cgraph_optimize): Do not analyze pending decls.
1437 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
1438 in other partition; do not mark node as needed.
1439 * dwarf2out.c (reference_to_unused): Use analyzed flag.
1440 (premark_types_used_by_global_vars_helper): Likewise.
1441 * ipa.c (process_references): Do not call varpool_mark_needed_node.
1442 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
1444 (function_and_variable_visibility): Do not mark node as needed.
1445 (whole_program_function_and_variable_visibility): Likewise.
1446 * Makefile.in (gt-varpool.h): No longer needed.
1447 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
1448 (ipa_write_summaries): Do not use needed flag.
1449 * varpool.c: Do not include gt-varpool.h
1450 (x_varpool_nodes_queue, x_varpool_last_needed_node,
1451 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
1452 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
1454 (varpool_remove_node): Do not update the lists.
1455 (dump_varpool_node): Do not dump needed flag.
1456 (varpool_enqueue_needed_node): Remove.
1457 (varpool_mark_needed_node): Remove.
1458 (varpool_reset_queue): Remove.
1459 (varpool_finalize_decl): Move to cgraphunit.c
1460 (varpool_analyze_node): New functions based on former
1461 varpool_analyze_pending_decls.
1462 (varpool_analyze_pending_decls): Remove.
1463 (varpool_assemble_decl): Do not update the lists.
1464 (enqueue_node): New function.
1465 (varpool_remove_unreferenced_decls): Rewrite.
1466 (varpool_empty_needed_queue): Remove.
1467 (add_new_static_var): Do not mark node as needed.
1468 (varpool_create_variable_alias): Handle expansion state
1470 * except.c (output_ttype): Do not mark node as needed.
1471 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
1472 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
1474 * tree-switch-conversion.c (build_one_array): Likewise.
1476 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1479 * doc/invoke.texi (pedantic): Rename to Wpedantic.
1480 * common.opt (Wpedantic): New.
1481 (pedantic): Alias Wpedantic.
1482 * diagnostic.c (warning_at): Likewise.
1483 * c-decl.c (diagnose_mismatched_decls): Likewise.
1484 (build_array_declarator): Likewise.
1485 (mark_forward_parm_decls):
1486 (check_bitfield_type_and_width): Likewise.
1487 (grokdeclarator): Likewise.
1488 (grokfield): Likewise.
1489 (finish_struct): Likewise.
1490 (build_enumerator): Likewise.
1491 (store_parm_decls_oldstyle): Likewise.
1492 (declspecs_add_qual): Likewise.
1493 (declspecs_add_type): Likewise.
1494 (finish_declspecs): Likewise.
1495 * c-typeck.c (composite_type): Likewise.
1496 (comp_target_types): Likewise.
1497 (build_array_ref): Likewise.
1498 (pointer_diff): Likewise.
1499 (build_unary_op): Likewise.
1500 (build_conditional_expr): Likewise.
1501 (build_c_cast): Likewise.
1502 (convert_for_assignment): Likewise.
1503 (maybe_warn_string_init): Likewise.
1504 (digest_init): Likewise.
1505 (pop_init_level): Likewise.
1506 (set_init_index): Likewise.
1507 (c_finish_goto_label): Likewise.
1508 (c_finish_return): Likewise.
1509 (do_case): Likewise.
1510 (build_binary_op): Likewise.
1511 * c-parser.c (static): Likewise.
1512 (c_parser_external_declaration): Likewise.
1513 (c_parser_declaration_or_fndef): Likewise.
1514 (c_parser_static_assert_declaration_no_se): Likewise.
1515 (c_parser_enum_specifier): Likewise.
1516 (c_parser_struct_or_union_specifier): Likewise.
1517 (c_parser_struct_declaration): Likewise.
1518 (c_parser_alignas_specifier): Likewise.
1519 (c_parser_braced_init): Likewise.
1520 (c_parser_initelt): Likewise.
1521 (c_parser_compound_statement_nostart): Likewise.
1522 (c_parser_conditional_expression): Likewise.
1523 (c_parser_alignof_expression): Likewise.
1524 (c_parser_postfix_expression): Likewise.
1525 (c_parser_postfix_expression_after_paren_): Likewise.
1526 (c_parser_objc_class_instance_variables): Likewise.
1527 (c_parser_objc_method_definition): Likewise.
1528 (c_parser_objc_methodprotolist): Likewise.
1530 2012-04-22 Ian Lance Taylor <iant@google.com>
1532 * godump.c (go_output_typedef): Dump size of structs.
1534 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
1536 Correcting transform_to_exit_first_loop + fix to PR46886
1537 * tree-parloops.c (transform_to_exit_first_loop): Remove
1538 setting of number of iterations according to the loop pattern.
1539 Duplicate from entry to exit->src instead of loop->latch.
1540 (pallelize_loops): Remove the condition preventing do-while loops.
1541 * tree-cfg.c (bool bb_in_region_p): New.
1542 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
1543 Adjust redirection of the duplicated iteration.
1545 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
1548 * rtl.def (ADDRESS): Use "i" rather than "w".
1549 * rtl.h (find_base_term): Delete.
1550 (may_be_sp_based_p): Declare.
1551 * rtl.c (rtx_code_size): Remove ADDRESS special case.
1552 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
1553 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
1555 (find_base_term): Make static.
1556 (may_be_sp_based_p): New function.
1557 * dse.c (record_store): Use it.
1558 * store-motion.c (store_killed_in_insn): Likewise.
1560 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
1562 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
1564 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1567 * c-typeck.c (inform_declaration): New.
1568 (build_function_call_vec): Do not pretty-print
1569 expressions when caret is enabled.
1570 (convert_arguments): Use inform_declaration.
1572 2012-04-20 Jim Meyering <meyering@redhat.com>
1574 * genmodes.c (make_complex_modes): Don't truncate a mode name of
1575 length 7 or more when prepending a "C". Suggested by Richard Guenther.
1577 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1579 PR rtl-optimization/44214
1580 * fold-const.c (exact_inverse): New function.
1581 (fold_binary_loc): Fold vector and complex division by constant into
1582 multiply by recripocal with flag_reciprocal_math; fold vector division
1583 by constant into multiply by reciprocal with exact inverse.
1585 2012-04-20 Jan Hubicka <jh@suse.cz>
1587 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
1589 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
1590 (cgraph_remove_node): Update.
1591 (cgraph_mark_needed_node): Remove.
1592 (cgraph_mark_force_output_node): New.
1593 (dump_cgraph_node): Do not dump needed flag.
1594 (cgraph_node_cannot_be_local_p_1): Update.
1595 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
1596 * cgraph.h (symtab_node_base): Add force_output flag.
1597 (cgraph_node): Remove needed flag.
1598 (varpool_node): Remove force_output flag.
1599 (cgraph_mark_needed_node): Remove.
1600 (cgraph_mark_force_output_node): New.
1601 (cgraph_only_called_directly_or_aliased_p,
1602 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
1603 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
1604 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
1605 (cgraph_add_new_function): Update.
1606 (cgraph_mark_if_needed): Update.
1607 (verify_cgraph_node): Update.
1608 (cgraph_analyze_function): Alias target is reachable.
1609 (process_function_and_variable_attributes): Update: externally_visible
1610 flag makes function reachable.
1611 (cgraph_analyze_functions): Update dumping.
1612 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1613 input_overwrite_node, input_varpool_node): Update streaming.
1614 * lto-streamer-out.c (produce_symtab): Use force_output.
1615 * ipa.c (process_references): Weakrefs must be processed.
1616 (cgraph_remove_unreachable_nodes): Likewise; update for new
1618 (varpool_externally_visible_p): Weakrefs are externally visible
1619 even if they are not.
1620 (function_and_variable_visibility): Update; when processing alias
1621 pair force the targets to be output.
1622 (whole_program_function_and_variable_visility): Use
1623 mark_reachable_node.
1624 * trans-mem.c (ipa_tm_mark_needed_node): Remove
1625 (ipa_tm_mark_force_output_node): New function.
1626 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1627 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
1629 * varasm.c (mark_decl_referenced): Update.
1630 (find_decl_and_mark_needed): Remove.
1631 (find_decl): New function.
1632 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
1633 alias targets as needed.
1634 (dump_tm_clone_pairs): Update.
1635 * tree-inline.c (copy_bb): Update check.
1636 * symtab.c (dump_symtab_base): Dump force_output.
1637 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
1638 * passes.c (execute_todo): Fix dumping.
1639 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
1640 (varpool_analyze_pending_decls): Alias target is reachable.
1641 (varpool_create_variable_alias): Finalize weakrefs.
1643 2012-04-20 Jakub Jelinek <jakub@redhat.com>
1646 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
1647 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
1648 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
1649 macros instead of constants.
1650 * dse.c (record_store): Check for SP ADDRESS by comparing
1651 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
1652 XEXP to be stack_pointer_rtx.
1654 2012-04-20 Richard Guenther <rguenther@suse.de>
1656 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
1657 update_call_from_tree when propagating into a call.
1659 2012-04-20 Alan Modra <amodra@gmail.com>
1661 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
1662 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
1663 sp_offset to frame_off. Move world save code earlier.
1665 2012-04-20 Richard Guenther <rguenther@suse.de>
1667 PR tree-optimization/53050
1668 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
1669 Do only one transform on COND_EXPRs at the same time.
1671 2012-04-19 Jan Hubicka <jh@suse.cz>
1673 * symtab.c (dump_symtab_base): Revert accidental checkin.
1675 2012-04-20 Alan Modra <amodra@gmail.com>
1678 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
1679 static chain, set REST_INLINE_FPRS too.
1681 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
1683 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
1686 2012-04-20 Richard Guenther <rguenther@suse.de>
1688 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
1689 loops that can never run more often than the vectorization factor.
1691 2012-04-19 Jan Hubicka <jh@suse.cz>
1693 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
1695 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
1697 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
1699 2012-04-19 Jim Meyering <meyering@redhat.com>
1701 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
1702 We verified above that the string(including trailing NUL) fits in buf,
1705 2012-04-19 Richard Guenther <rguenther@suse.de>
1707 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
1708 for dumping DECL_SECTION_NAME.
1710 2012-04-19 Michael Matz <matz@suse.de>
1713 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
1714 (struct tree_vector): Adjust GTY length.
1715 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
1717 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
1719 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
1720 caller emitted the length calulation already.
1721 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
1722 before handling any of the fields for structs.
1724 2012-04-19 Richard Guenther <rguenther@suse.de>
1726 PR tree-optimization/53031
1727 * tree-vrp.c (adjust_range_with_scev): Revert back to
1728 using max_loop_iterations.
1730 2012-04-19 Michael Matz <matz@suse.de>
1732 * diagnostic.c (emit_diagnostic): Move va_end call after user
1734 (warning, warning_at, pedwarn, permerror): Ditto.
1736 2012-04-19 Richard Guenther <rguenther@suse.de>
1738 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
1741 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
1744 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
1745 the case *(X+const).
1747 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1749 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
1751 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1754 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
1755 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
1757 2012-04-19 Richard Guenther <rguenther@suse.de>
1759 PR rtl-optimization/44688
1760 * loop-iv.c (determine_max_iter): Only return max_iter.
1761 (iv_number_of_iterations): Also use the recorded loop bound
1762 on the maximum number of iterations.
1763 * loop-unroll.c (decide_unroll_runtime_iterations): Use
1764 max_iter to avoid unrolling loops that do not roll.
1765 (decide_unroll_stupid): Likewise.
1767 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
1769 * targhooks.c (default_case_values_threshold): Fix code style nit.
1771 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
1772 case range and type folding from here...
1773 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
1774 type, as documented in tree.def.
1776 2012-04-18 Jan Hubicka <jh@suse.cz>
1778 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
1780 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
1781 cgraph hash and same comdat groups.
1782 (cgraph_optimize): Verify symbol table.
1783 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
1784 (dissolve_same_comdat_group_list): Work on symtab nodes.
1785 (function_and_variable_visibility): Dissolve variable same comdat group
1787 * symtab.c: Include timevar.h
1788 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
1790 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
1792 * tree-switch-conversion.c (info): Remove global pass info.
1793 (check_range, check_process_case, check_final_bb, create_temp_arrays,
1794 free_temp_arrays, gather_default_values, build_constructors,
1795 array_value_type, build_one_array, build_arrays, gen_def_assigns,
1796 fix_phi_nodes, gen_inbound_check): Pass info around from ...
1797 (process_switch): ... here. Unify message format. Return a const
1798 char pointer to the failure reason message.
1799 (do_switchconv): Unify message format. Update process_switch usage.
1801 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
1802 * tree-cfg.c (edge_to_cases): Fix documentation.
1804 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
1806 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
1808 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1810 PR tree-optimization/52976
1811 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
1812 (possibly_move_powi): New function.
1813 (rewrite_expr_tree): Call possibly_move_powi.
1814 (rewrite_expr_tree_parallel): Likewise.
1815 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
1816 call add_to_ops_vec instead.
1818 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1820 PR tree-optimization/52976
1821 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
1822 (decrement_power): Likewise.
1823 (propagate_op_to_single_use): Likewise.
1824 (zero_one_operation): Handle __builtin_pow* calls in linearized
1825 expression trees; factor logic into propagate_op_to_single_use.
1826 (undistribute_ops_list): Allow operands with repeat counts > 1.
1828 2012-04-18 Richard Guenther <rguenther@suse.de>
1830 PR tree-optimization/44688
1831 * cfgloop.h (record_niter_bound): Declare.
1832 * tree-ssa-loop-niter.c (record_niter_bound): Export.
1833 Update the estimation with the upper bound here...
1834 (estimate_numbers_of_iterations_loop): ... instead of here.
1835 Do not forcefully reset a recorded upper bound.
1836 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
1837 Record the maximum number of loop iterations of the prologue loop.
1839 2012-04-18 Jan Hubicka <jh@suse.cz>
1841 * lto-symtab.c (lto_cgraph_replace_node): Update.
1842 * cgraphbuild.c (record_reference, record_type_list,
1843 record_eh_tables, mark_address, mark_load, mark_store): Update.
1844 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
1845 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
1847 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
1848 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
1849 * reload.c: Fix typo in comment.
1850 * rtlanal.c: Likewise.
1851 * tree-emultls.c (gen_emutls_addr): Update.
1852 * ipa-reference.c (analyze_function): Update.
1853 * cgraphunit.c (cgraph_analyze_function,
1854 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
1856 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
1857 (ipa_remove_reference): Likewise.
1858 (ipa_remove_all_refering): Rename to ...
1859 (ipa_remove_all_referring): ... this one; update.
1860 (ipa_dump_references): Update.
1861 (ipa_dump_referring): Update.
1862 (ipa_clone_references): Update.
1863 (ipa_clone_refering): Rename to ...
1864 (ipa_clone_referring): ... this one; update.
1865 (ipa_ref_cannot_lead_to_return): Update.
1866 (ipa_ref_has_aliases_p): Update.
1867 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
1869 (ipa_ref_type): Remove.
1870 (ipa_ref_ptr_u): Remove.
1871 (ipa_ref): Remove referencing, refered, refered_index, refering_type
1872 and refered_type; add referring, referred and referred_index.
1873 (ipa_ref_list): Rename refering to referring.
1874 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
1875 ipa_clone_references, ipa_clone_referring): Update prototypes.
1876 * lto-cgraph.c (referenced_from_other_partition_p): Update.
1877 (lto_output_ref): Update.
1878 (add_references): Update.
1879 (input_varpool_node): Update.
1880 (input_refs): Update.
1881 * ipa-ref-inline.h (ipa_ref_node): Update.
1882 (ipa_ref_varpool_node): Update.
1883 (ipa_ref_referring_node): Update.
1884 (ipa_ref_referring_varpool_node): Update.
1885 (ipa_ref_referring_ref_list): Update.
1886 (ipa_ref_referred_ref_list): Update.
1887 (ipa_ref_list_first_referring): Update.
1888 (ipa_empty_ref_list): Update.
1889 (ipa_ref_list_refering_iterate): Rename to ...
1890 (ipa_ref_list_referring_iterate): ... this one.
1891 * cse.c: Update comment.
1892 * ipa-utils.c (ipa_reverse_postorder): Update.
1893 * tree-ssa-alias.c: Update.
1894 * ipa-inline.c (reset_edge_caches): Update.
1895 (update_caller_keys): Update.
1896 * ipa-inline.h: Update comments.
1897 * jump.c: Update comment.
1898 * alias.c: Likewise.
1899 * ipa.c (process_references): Update.
1900 (cgraph_remove_unreachable_nodes): Likewise.
1901 (ipa_discover_readonly_nonaddressable_var): Likewise.
1902 (cgraph_address_taken_from_non_vtable_p): Likewise.
1903 * trans-mem.c (ipa_tm_execute): Update.
1904 * simplify-rtx.c: Fix comment.
1905 * rtl.c: Fix comment.
1906 * symtab.c (symtab_unregister_node): Update.
1907 * varpool.c (dump_varpool_node): Update.
1908 (varpool_analyze_pending_decls): Update.
1909 (assemble_aliases): Update.
1910 (varpool_for_node_and_aliases): Update.
1912 2012-04-18 Richard Guenther <rguenther@suse.de>
1914 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
1915 use_undefined_p parameter.
1916 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
1917 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
1919 (estimate_numbers_of_iterations): Likewise.
1920 (estimated_loop_iterations): Adjust.
1921 (max_loop_iterations): Likewise.
1922 (scev_probably_wraps_p): Likewise.
1923 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
1924 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
1925 not max_loop_iterations.
1926 (execute_vrp): Remove explicit number of iterations estimation.
1928 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
1930 * config/i386/linux-common.h: New.
1932 * config.gcc: Add i386/linux-common.h before
1933 all i386/linux.h and i386/linux64.h usages.
1935 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
1936 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
1937 * config/i386/gnu-user64.h: Likewise.
1939 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
1940 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
1941 (GNU_USER_TARGET_MATHFILE_SPEC): New.
1942 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
1944 2012-04-18 Jan Hubicka <jh@suse.cz>
1946 * cgraph.c (cgraph_node_name): Remove.
1947 (dump_cgraph_node): Use dump_symtab_base; reformat.
1948 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
1949 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
1951 (cgraph_node_name, varpool_node_name): Remove.
1952 (cgraph_node_asm_name, varpool_node_asm_name,
1953 cgraph_node_name, varpool_node_name): New.
1954 * tree-pass.h (TODO_dump_cgraph): Rename to ...
1955 (TODO_dump_symtab): ... this one.
1956 * ipa-cp (pass_ipa_cp): Update.
1957 * ia-reference.c (generate_summary, read_write_all_from_decl,
1958 propagate, ipa_reference_read_optimization_summary): Update.
1959 * cgraphunit.c (cgraph_analyze_functions): Update.
1960 (cgraph_optimize): Update.
1961 * ipa-ref.c (ipa_dump_references): Update.
1962 (ipa_dump_refering): Update.
1963 * ipa-inline.c (pass_ipa_inline): Update.
1964 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
1965 * ipa.c (pass_ipa_function_visibility,
1966 pass_ipa_whole_program_visibility): Update.
1967 * tree-sra.c (pass_early_ipa_sra): Update.
1968 * symtab.c: Include langhooks.h
1969 (symtab_node_asm_name): New.
1970 (symtab_node_name): New.
1971 (symtab_type_names): New static var.
1972 (dump_symtab_base): New.
1973 (dump_symtab_node, dump_symtab): New.
1974 (debug_symtab_node, debug_symtab): New.
1975 * tree-ssa-structalias.c: Dump symbol table.
1976 * pases.c (execute_todo): Handle TODO_dump_symtab instead
1977 of TODO_dump_cgraph.
1978 * varpoo.c (varpool_node_name): Remove.
1979 (dump_varpool_node): Use dump_symtab_base; reformat.
1981 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1983 * doc/invoke.texi (Language Independent Options): @item should be
1986 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
1989 * rtl.c (rtx_code_size): Handle ADDRESS.
1991 2012-04-17 Tom de Vries <tom@codesourcery.com>
1993 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
1996 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
1999 * config/i386/sync.md (atomic_<code><mode>): Rename to
2000 atomic_<logic><mode>.
2002 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2004 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
2005 * alias.c (reg_base_value): Expand and update comment.
2006 (arg_base_value): New variable.
2007 (unique_id): Move up file.
2008 (unique_base_value, unique_base_value_p, known_base_value_p): New.
2009 (find_base_value): Use arg_base_value and known_base_value_p.
2010 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
2011 (find_base_term): Use known_base_value_p.
2012 (base_alias_check): Use unique_base_value_p.
2013 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
2014 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
2016 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
2018 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
2020 2012-04-17 Michael Matz <matz@suse.de>
2022 PR tree-optimization/18437
2023 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
2024 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
2025 (vect_check_strided_load): Declare.
2026 * tree-vect-data-refs.c (vect_check_strided_load): New function.
2027 (vect_analyze_data_refs): Use it to accept strided loads.
2028 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
2030 2012-04-17 Richard Guenther <rguenther@suse.de>
2033 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
2034 loops when redirecting an entry or latch edge.
2036 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
2038 * sel-sched.c (sel_global_init): Revert previous change.
2040 2012-04-17 Richard Guenther <rguenther@suse.de>
2042 * tree-flow.h (array_at_struct_end_p): Move declaration ...
2043 * tree.h (array_at_struct_end_p): ... here.
2044 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
2045 * expr.c (array_at_struct_end_p): ... here. Rewrite.
2047 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
2049 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
2050 COST_TABLE): Remove.
2051 (estimate_case_costs): Remove.
2052 (expand_case): Do not call estimate_case_costs
2053 to set use_cost_table.
2054 (balance_case_nodes): Do not use use_cost_table.
2056 2012-04-16 Jan Hubicka <jh@suse.cz>
2058 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
2059 (hash_node, eq_node): Remove.
2060 (cgraph_create_node): Do not handle hashtable.
2061 (cgraph_get_node): Remove.
2062 (cgraph_insert_node_to_hashtable): Remove.
2063 (hash_node_by_assembler_name): Remove.
2064 (eq_assembler_name): Remove.
2065 (cgraph_node_for_asm): Rewrite.
2066 (cgraph_find_replacement_node): Break out from ...
2067 (cgraph_remove_node): ... here; do not maintain hashtables.
2068 (change_decl_assembler_name): Remove.
2069 (cgraph_clone_node): Do not maintain hashtables.
2070 * cgraph.h (const_symtab_node): New typedef.
2071 (cgraph_insert_node_to_hashtable): Remove.
2072 (symtab_get_node, symtab_node_for_asm,
2073 symtab_insert_node_to_hashtable): Declare.
2074 (cgraph_find_replacement_node): Declare.
2075 (cgraph_get_node, varpool_get_node): Turn into inlines.
2076 (cgraph, varpool): Work sanely on NULL pointers.
2077 (FOR_EACH_SYMBOL): New walker.
2078 * ipa-inline-transform.c (save_inline_function_body): Use
2079 symtab_insert_node_to_hashtable.
2080 * symtab.c: Include ggc.h and diagnostics.h
2081 (symtab_hash, assembler_name_hash): New static vars;
2082 (hash_node, eq_node, hash_node_by_assembler_name,
2083 eq_assembler_name, insert_to_assembler_name_hash,
2084 unlink_from_assembler_name_hash): New.
2085 (symtab_register_node): Update hashtables.
2086 (symtab_insert_node_to_hashtable): New.
2087 (symtab_unregister_node): Update hashtables.
2088 (symtab_get_node): New.
2089 (symtab_node_for_asm): New.
2090 (change_decl_assembler_name): New.
2091 * Makefile.in (symtab.o): Needs GTY.
2092 * varpool.c (varpool_hash): Remove.
2093 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
2094 (varpool_node): Rewrite using varpool_get_node.
2095 (varpool_remove_node): DO not maintain hashtables.
2096 (varpool_node_for_asm): Rewrite.
2098 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
2100 * doc/invoke.texi: Copy-edit to put verbs in the present tense
2101 when describing the current behavior of GCC.
2103 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
2105 * genemit.c (gen_exp): Remove ADDRESS handling.
2106 * genoutput.c (scan_operands): Likewise.
2107 * genpeep.c (match_rtx): Likewise.
2108 * genrecog.c (add_to_sequence): Likewise.
2110 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
2112 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
2114 2012-04-16 Martin Jambor <mjambor@suse.cz>
2116 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
2119 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
2122 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
2123 hints for 'A' operand types.
2125 2012-04-16 Jan Hubicka <jh@suse.cz>
2127 * cgraph.h (symtab_node_base): Add next and previous pointers.
2128 (cgraph_node): Remove next and preivous pointers.
2129 (varpool_node): Likewise; remove next/previous GTY marker;
2130 it is not type safe.
2131 (symtab_node_def): Update GTY marker
2132 (x_cgraph_nodes, cgraph_nodes): Remove.
2133 (symtab_nodes): New function.
2134 (cgraph_order): Rename to ...
2135 (symtab_order): ... this one.
2136 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
2138 (x_varpool_nodes, varpool_nodes): Remove.
2139 (FOR_EACH_STATIC_VARIABLE): Update.
2140 (symtab_function_p, symtab_variable_p): New function.
2141 (FOR_EACH_VARIABLE): Update.
2142 (varpool_first_variable, varpool_next_variable): New functions.
2143 (FOR_EACH_VARIABLE): Update.
2144 (cgraph_first_defined_function): Update.
2145 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
2146 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
2147 (cgraph_first_function, cgraph_next_function): New.
2148 (FOR_EACH_FUNCTION): Update.
2149 (cgraph_first_function_with_gimple_body,
2150 cgraph_next_function_with_gimple_body): Update.
2151 * symtab.c: New file.
2152 * cgraph.c: Update copyright dates.
2153 (x_cgraph_nodes, cgraph_order): Remove.
2154 (NEXT_FREE_NODE): Update.
2155 (SET_NEXT_FREE_NODE): New.
2156 (cgraph_create_node_1): Remove common code.
2157 (cgraph_create_node): Remove common code; call symtab_register_node.
2158 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
2159 (cgraph_add_asm_node): Update.
2160 (cgraph_clone_node): Register new node.
2161 * cgraphunit.c (process_function_and_variable_attributes): Update.
2162 (cgraph_analyze_functions): Update.
2163 (cgraph_analyze_functions): Update.
2164 (cgraph_output_in_order): Update.
2165 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
2167 * ipa-inline.c (recursive_inlining): Update.
2168 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
2169 * ipa.c (cgraph_remove_unreachable_nodes): Update.
2170 * Makefile.in: Add symtab.o
2171 * varpool.c (x_varpool_nodes): Remove
2172 (varpool_node): Remove common code; call symtab_register_node.
2173 (varpool_remove_node): Remove common code; call symtab_unregister_node.
2175 2012-04-16 Richard Guenther <rguenther@suse.de>
2178 * tree.h (VECTOR_CST_NELTS): Adjust.
2179 (struct tree_vector): Add explicit length field.
2180 (make_vector_stat): Declare.
2181 (make_vector): Define.
2182 * tree.c (make_vector_stat): New function.
2183 (build_vector_stat): Use it.
2184 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
2186 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2188 PR tree-optimization/52976
2189 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
2190 (undistribute_ops_list): Ops with repeat counts aren't eligible for
2192 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
2194 2012-04-16 Jan Hubicka <jh@suse.cz>
2196 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
2198 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
2199 walkers to walk cgraph and varpool.
2200 * cgraph.c (cgraph_node_for_asm): Likewise.
2201 (dump_cgraph): Likewise.
2202 * value-prof.c (init_node_map): Likewise.
2203 * tree.c (free_lang_data_in_cgraph): Likewise.
2204 * tree-emutls.c: (ipa_lower_emutls): Likewise.
2205 * ipa-reference.c (generate_summary, propagate): Likewise.
2206 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
2207 cgraph_mark_functions_to_output, cgraph_output_in_order,
2208 output_weakrefs, cgraph_materialize_all_clones,
2209 cgraph_optimize): Likewise.
2210 * lto-cgraph.c (merge_profile_summaries): Likewise.
2211 (input_cgraph): Likewise.
2212 * ipa-pure-const.c (generate_summary): Likewise.
2213 (propagate): Likwise.
2214 * ipa-utils.c (ipa_reduced_postorder): Likewise.
2215 (ipa_free_postorder_info): Likewise.
2216 (ipa_reverse_postorder): Likewise.
2217 * ipa-inline.c (ipa_inline): Likewise.
2218 * matrix-reorg.c (find_matrices_decl): Likewise.
2219 (matrix_reorg): Likewise.
2220 * tree-vectorizer.c (increase_alignment): Likewise.
2221 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
2222 (function_and_variable_visibility): Likewise.
2223 (whole_program_function_and_variable_visibility): Likewise.
2224 (ipa_cdtor_merge): Likewise.
2225 * trans-mem.c (ipa_tm_execute): Likewise.
2226 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
2227 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
2228 (ipa_print_all_params): Likewise.
2229 (ipa_update_after_lto_read): Likewise.
2230 * tree-profie.c (tree_profiling): Likewise.
2231 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
2232 * passes.c (dump_passes): Likewise.
2233 (do_per_function): Likewise.
2234 (ipa_write_summaries): Likewise.
2235 * varpool.c (dump_varpool): Likewise.
2236 (varpool_node_for_asm): Likewise.
2237 (varpool_assemble_pending_decls): Likewise.
2239 2012-04-16 Richard Guenther <rguenther@suse.de>
2241 PR tree-optimization/52975
2242 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
2243 condition but always mark it with TRUTH_NOT_EXPR.
2245 2012-04-16 Richard Guenther <rguenther@suse.de>
2247 PR tree-optimization/52975
2248 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
2249 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
2250 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
2251 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
2253 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
2255 * config/i386/sse.md (ssse3_plusminus): New code iterator.
2256 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
2257 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
2258 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
2259 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
2260 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
2261 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
2263 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
2264 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
2265 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
2266 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
2267 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
2268 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
2270 (xop_plus): New code iterator.
2271 (macs): New code attribute.
2273 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
2274 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
2276 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
2277 xop_plus code iterator.
2278 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
2279 xop_plus code iterator.
2280 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
2281 xop_plus code iterator.
2282 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
2283 xop_plus code iterator.
2285 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
2286 any_extend code iterator.
2287 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
2288 any_extend code iterator.
2289 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
2290 any_extend code iterator.
2291 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
2292 any_extend code iterator.
2293 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
2294 any_extend code iterator.
2295 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
2296 any_extend code iterator.
2298 2012-04-14 Tom de Vries <tom@codesourcery.com>
2300 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
2301 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
2302 DELETED_LABEL note, and move it to ...
2303 * cfgrtl.c (delete_insn): ... here. Change return type to void.
2304 (delete_insn_and_edges): Likewise.
2305 (delete_insn_chain): Handle new return type of delete_insn. Delete
2306 chain backwards rather than forwards.
2307 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
2309 * cfglayout.c (fixup_reorder_chain): Delete unused label.
2311 2012-04-14 Jan Hubicka <jh@suse.cz>
2313 * cgraph.h: Update copyrights;
2314 (symtab_node): Turn to union typedef.
2315 (symtab_node_base): New structure.
2316 (symtab_type): Add SYMTAB_SYMBOL tag.
2317 (cgraph_node): Annotate some pinters with nested_ptr.
2318 (varpool_node): Likewise.
2319 (cgraph_local_info): Remove lto_file_data
2320 and externally_visible.
2321 (cgraph_node): Remove decl; same_comdat_group list;
2322 aux; ref_list; order; address_taken; reachable_from_other_parittion,
2323 in_other_partition; resolution.
2324 (varpool_node): Remove decl; same_comdat_group;
2325 ref_list; lto_file_data; aux; order; resolution; externally_visible;
2326 used_from_other_partition; in_other_partition.
2327 (symtab_node_def): New union.
2328 (cgraph, varpool): Update.
2329 (varpool_first_static_initializer, varpool_next_static_initializer,
2330 cgraph_only_called_directly_or_aliased_p,
2331 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
2332 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
2333 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
2335 * cgraph.c: Likewise.
2336 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
2337 * cgraphbuild.c: Likewise.
2338 * lto-symtab.c: Likewise.
2339 * c-gimplify.c: Likewise.
2340 * value-prof.c: Likewise.
2342 * ipa-cp.c: Likewise.
2343 * tree-emutls.c: Likewise.
2344 * ipa-inline-transform.c: Likwise.
2345 * ipa-reference.c: Likewise.
2346 * cgraphunit.c: Likewise.
2347 * ipa-ref.c: Likewise.
2348 * lto-cgraph.c: Likewise.
2349 * ipa-ref-inline.h: Likewise.
2350 * ipa-pure-const.c: Likewise.
2351 * lto-streamer-out.c: Likewise.
2352 * ipa-utils.c: Likewise.
2353 * ipa-inline.c: Likewise.
2354 * matrix-reorg.c: Likewise.
2355 * tree-eh.c: Likewise.
2356 * tree-vectorizer.c: Likewise.
2357 * ipa-split.c: Likewise.
2359 * trans-mem.c: Likewise.
2360 * ipa-inline-analysis.c: Likewise.
2361 * gimplify.c: Likewise.
2362 * cfgexpand.c: Likewise.
2363 * tree-sra.c: Likewise.
2364 * ipa-prop.c: Likewise.
2365 * varasm.c: Likewise.
2366 * tree-nested.c: Likewise.
2367 * tree-inline.c: Likewise.
2368 * tree-profile.c: Likewise.
2369 * tree-ssa-structalias.c: Likewise.
2370 * passes.c: Likewise.
2371 * varpool.c: Likewise.
2373 2012-04-14 Tom de Vries <tom@codesourcery.com>
2375 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
2376 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
2377 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
2379 (gsi_advance_fw_nondebug_nonlocal): New function.
2380 (local_def): Removed function.
2381 (same_succ_hash): Use stmt_local_def.
2382 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
2383 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
2385 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
2387 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
2388 and __ILP32__ for x32.
2390 2012-04-13 Martin Jambor <mjambor@suse.cz>
2393 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
2394 fold_ctor_reference returns a zero constant.
2396 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
2398 * config.gcc: Add i386/gnu-user-common.h before all
2399 i386/gnu-user.h and i386/gnu-user64.h usages.
2401 * config/i386/gnu-user-common.h: New.
2403 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
2404 (CC1_SPEC): Likewise.
2405 (ENDFILE_SPEC): Likewise.
2406 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
2407 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
2408 (TARGET_OS_CPP_BUILTINS): Likewise.
2409 (LIBGCC2_HAS_TF_MODE): Likewise.
2410 (LIBGCC2_TF_CEXT): Likewise.
2411 (TF_SIZE): Likewise.
2412 (TARGET_ASM_FILE_END): Likewise.
2413 (STACK_CHECK_MOVING_SP): Likewise.
2414 (STACK_CHECK_STATIC_BUILTIN): Likewise.
2415 * config/i386/gnu-user64.h: Likewise.
2417 2012-04-13 Martin Jambor <mjambor@suse.cz>
2419 * expr.c (expand_expr_real_1): Pass type, not the expression, to
2420 set_mem_attributes for a memory temporary. Do not call the function
2421 for the memory temporary created for a bitfield.
2423 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
2426 * df.h (enum debug_temp_where): New.
2427 (dead_debug_init, dead_debug_finish) Declare.
2428 (dead_debug_add, dead_debug_insert_temp): Declare.
2429 (struct dead_debug_use, struct dead_debug): Moved from...
2430 * df-problems.c: ... here.
2431 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
2433 (df_create_unused_note): Likewise.
2434 (df_set_dead_notes_for_mw): Move comment where it belongs.
2435 (dead_debug_init): Export.
2436 (dead_debug_reset_uses): New, factored out of...
2437 (dead_debug_finish): ...this. Export.
2438 (dead_debug_reset): Remove.
2439 (dead_debug_add): Export.
2440 (dead_debug_insert_before): Rename to...
2441 (dead_debug_insert_temp): ... this. Add where argument. Export.
2442 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
2443 Return insertion count.
2444 (df_note_bb_compute): Adjust.
2445 * dce.c (word_dce_process_block): Adjust dead debug uses.
2446 (dce_process_block): Likewise.
2448 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
2450 * df-problems.c (df_note_bb_compute): Do not take note of
2451 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
2453 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
2456 * var-tracking.c (expand_depth): New type.
2457 (onepart_aux, expand_loc_callback_data): Change depth type to it.
2458 (loc_exp_dep_alloc): Adjust initializer.
2459 (update_depth): Use new type. Add entryvals.
2460 (vt_expand_var_loc_chain): Take note of expansions with
2461 ENTRY_VALUEs, but don't accept them right away. Run an optional
2462 second pass accepting the minimum ENTRY_VALUE count found in the
2464 (vt_expand_loc_callback, INIT_ELCD): Adjust.
2466 2012-04-13 Tom de Vries <tom@codesourcery.com>
2468 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
2469 parameters vuse and vuse_escaped.
2470 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
2471 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
2474 2012-04-13 Richard Guenther <rguenther@suse.de>
2476 PR tree-optimization/52969
2477 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
2478 the condition for the COND_EXPR and handle predicate negation
2479 by swapping the COND_EXPR arms.
2481 2012-04-13 Nick Clifton <nickc@redhat.com>
2483 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
2484 TODO_dump_func flag.
2486 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
2488 PR rtl-optimization/52203
2489 PR rtl-optimization/52715
2491 Revert the 2012-03-07 fix for PR 52203.
2492 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
2493 the insn does not modify DFA right before issuing, adjust
2494 issue_rate accordingly.
2496 2012-04-13 Richard Guenther <rguenther@suse.de>
2499 * c-typeck.c (pointer_diff): Remove bogus assert.
2501 2012-04-13 Richard Guenther <rguenther@suse.de>
2504 * convert.c (convert_to_pointer): Remove special-casing of zero.
2506 2012-04-13 Joey Ye <joey.ye@arm.com>
2508 * config/arm/constraints.md (Pe): New constraint.
2509 * config/arm/arm.md: New split for imm 256-510.
2511 2012-04-13 Terry Guo <terry.guo@arm.com>
2513 * config/arm/arm-cores.def: Added core cortex-m0plus.
2514 * config/arm/arm-tune.md: Regenerated.
2515 * config/arm/arm-tables.opt: Regenerated.
2516 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
2518 2012-04-13 Alan Modra <amodra@gmail.com>
2521 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
2522 tie regs on destination of sets. Delete forward declaration.
2523 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
2524 (rs6000_emit_prologue): Likewise.
2525 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
2527 (is_mem_ref): Use tie_operand to recognise stack ties.
2528 * config/rs6000/predicates.md (tie_operand): New.
2529 * config/rs6000/rs6000.md (restore_stack_block): Generate new
2531 (restore_stack_nonlocal): Likewise.
2532 (stack_tie): Update.
2533 (frame_tie): Delete.
2535 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2537 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
2538 HOST_WIDE_INT_PRINT_DEC in format strings.
2540 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
2543 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
2544 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
2545 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
2546 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
2547 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
2548 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
2549 avx2_permvarv8si using VI4F_256 mode iterator.
2550 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
2551 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
2552 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
2553 gen_avx2_permvarv8sf.
2554 (expand_vec_perm_pshufb): Ditto.
2556 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2559 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
2560 the list of options to enable the FCFID instruction.
2561 (TARGET_EXTRA_BUILTINS): Adjust comment.
2563 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2565 PR tree-optimization/18589
2566 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
2567 (operand_entry): Add count field.
2568 (add_repeat_to_ops_vec): New function.
2569 (completely_remove_stmt): Likewise.
2570 (remove_def_if_absorbed_call): Likewise.
2571 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
2572 (acceptable_pow_call): New function.
2573 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
2574 entries with repeat counts when found.
2575 (repeat_factor_d): New struct and associated typedefs.
2576 (repeat_factor_vec): New static vector variable.
2577 (compare_repeat_factors): New function.
2578 (get_reassoc_pow_ssa_name): Likewise.
2579 (attempt_builtin_powi): Likewise.
2580 (reassociate_bb): Call attempt_builtin_powi.
2581 (fini_reassoc): Two new calls to statistics_counter_event.
2583 2012-04-12 Richard Guenther <rguenther@suse.de>
2585 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
2586 * cgraph.h (tree_rest_of_compilation): Remove.
2587 * cgraph.c (cgraph_add_new_function): Move ...
2588 * cgraphunit.c (cgraph_add_new_function): ... here.
2589 (tree_rest_of_compilation): Make static.
2590 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
2591 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
2592 gate_all_early_local_passes, execute_all_early_local_passes,
2593 pass_early_local_passes, gate_all_early_optimizations,
2594 pass_all_early_optimizations): Move ...
2595 * passes.c (gate_all_optimizations, pass_all_optimizations,
2596 gate_all_early_local_passes, execute_all_early_local_passes,
2597 pass_early_local_passes, gate_all_early_optimizations,
2598 pass_all_early_optimizations): ... here.
2599 * tree-optimize.c (execute_free_datastructures): Remove.
2600 * tree-flow.h (execute_free_datastructures): Remove.
2601 * tree-optimize.c (execute_init_datastructures,
2602 pass_init_datastructures): Move ...
2603 * tree-ssa.c (execute_init_datastructures,
2604 pass_init_datastructures): ... here.
2605 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
2606 execute_free_datastructures.
2608 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
2610 * dbgcnt.def (ira_move): New counter.
2611 * ira-int.h (ira_create_new_reg): Declare function.
2612 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
2613 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
2614 no longer static. All callers changed.
2615 * ira.c: Include "dbgcnt.h".
2616 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
2617 move_unallocated_pseudos): New static functions.
2618 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
2619 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
2620 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
2621 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
2622 to the pseudos generated in find_moveable_pseudos.
2623 * Makefile.in (ira.o): Add $(DBGCNT_H).
2625 2012-04-12 Richard Guenther <rguenther@suse.de>
2627 PR tree-optimization/52943
2628 * tree-chrec.h (chrec_is_positive): Remove.
2629 * tree-scalar-evolution.c (chrec_is_positive): Move ...
2630 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
2631 Return false for a constant zero instead of negative.
2632 (analyze_siv_subscript_cst_affine): Handle zero difference
2633 in the initial condition explicitely.
2635 2012-04-12 Richard Guenther <rguenther@suse.de>
2637 * tree-parloops.c (parallelize_loops): Also consult the upper
2638 bound for the number of iterations.
2639 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
2640 (loop_prefetch_arrays): Likewise.
2642 2012-04-12 Richard Guenther <rguenther@suse.de>
2644 * cfgloop.h (estimated_loop_iterations_int): Ditch
2645 'conservative' parameter.
2646 (max_stmt_executions_int): Likewise.
2647 (estimated_loop_iterations): Likewise.
2648 (max_stmt_executions): Likewise.
2649 (max_loop_iterations): Declare.
2650 (max_loop_iterations_int): Likewise.
2651 (estimated_stmt_executions): Likewise.
2652 (estimated_stmt_executions_int): Likewise.
2653 * tree-ssa-loop-niter.c (estimated_loop_iterations):
2655 (max_loop_iterations): ... this.
2656 (estimated_loop_iterations_int): Split parts to ...
2657 (max_loop_iterations_int): ... this.
2658 (max_stmt_executions_int): Split parts to ...
2659 (estimated_stmt_executions_int): ... this.
2660 (max_stmt_executions): Split parts to ...
2661 (estimated_stmt_executions): ... this.
2662 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
2663 * predict.c (predict_loops): Likewise.
2664 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
2665 (analyze_siv_subscript_cst_affine): Likewise.
2666 (compute_overlap_steps_for_affine_1_2): Likewise.
2667 (analyze_subscript_affine_affine): Likewise.
2668 (init_omega_for_ddr_1): Likewise.
2669 * tree-parloops.c (parallelize_loops): Likewise.
2670 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2671 (may_eliminate_iv): Likewise.
2672 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
2673 (loop_prefetch_arrays): Likewise.
2674 * tree-vrp.c (adjust_range_with_scev): Likewise.
2676 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
2678 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
2679 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
2681 (dump_table): Use bool type for need_align and have_df variables.
2682 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
2683 (regs_used): Remove register modifier.
2684 (barrier_align): Move variables slot, credit, jump_to_next
2685 into if block above for loop. Use bool type for jump_to_next.
2686 (sh_function_arg): Use NULL_RTX instead of 0.
2688 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
2690 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
2691 (bswapsi2): New expander.
2693 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
2695 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
2696 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
2698 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
2700 PR rtl-optimization/52876
2701 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
2702 Don't call mark_reg_pointer for incompatible pointer sign extension.
2704 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
2707 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
2709 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
2710 comparisons against TYPE_PRECISION.
2711 * tree-ssa-forwprop.c (combine_conversions): Likewise.
2713 2012-04-11 Xinliang David Li <davidxl@google.com>
2715 * tree-passes.h: Remove TODO_dump_func.
2716 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
2717 * trans-mem.c: Remove TODO_dump_func.
2718 * ira.c: Remove TODO_dump_func.
2720 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
2722 * config/i386/i386.c (ix86_option_override_internal): Check
2723 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
2724 after TARGET_64BIT is updated.
2726 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
2728 * config/sh/sh.h: Remove old secondary reload code.
2730 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
2732 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
2733 (ready_reorder): ... this function.
2735 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
2737 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
2740 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
2741 insns so that no other insn is queued for a time before them.
2743 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
2746 2012-04-11 Richard Guenther <rguenther@suse.de>
2749 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
2750 consider loop nesting.
2751 (evolution_function_is_univariate_p): Properly check the remainder
2754 2012-04-11 Richard Guenther <rguenther@suse.de>
2757 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
2759 2012-04-11 Nick Clifton <nickc@redhat.com>
2761 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
2762 information, if requested.
2764 * config/rx/rx.c (rx_expand_prologue): Likewise.
2766 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
2767 Michael Matz <matz@suse.de>
2770 * rtlanal.c (unsigned_reg_p): New function.
2771 Update copyright notice dates.
2772 * rtl.h (unsigned_reg_p): Prototype it.
2773 Update copyright notice dates.
2774 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
2776 * expr.c (expand_expr_real_1): Set register attributes.
2777 * stmt.c (expand_case): Likewise.
2779 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
2782 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
2783 consider_sh2a and allow_zero.
2784 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
2785 (disp_addr_displacement): New function.
2786 (sh_address_cost): Use disp_addr_displacement function instead
2787 of DISP_ADDR_OFFSET.
2788 (sh_legitimate_address_p): Adapt to changed
2789 sh_legitimate_index_p declaration.
2790 (sh_find_mov_disp_adjust): Remove HImode check.
2791 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
2792 disp_addr_displacement and max_mov_insn_displacement.
2793 (max_mov_insn_displacement): Remove HImode check.
2794 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
2795 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
2796 * config/sh/constraints.md (K05, K13): New constraints.
2797 (K12): Correct comment.
2798 (Sdd): Do not use DISP_ADDR_P macro.
2799 (Snd, Sbw): Use satisfies_constraint_Sdd.
2800 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
2801 (*extendhisi2_compact, movhi_i): Remove.
2802 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
2803 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
2804 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
2805 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
2806 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
2807 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
2808 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
2810 Add new peepholes for HImode displacement addressing.
2812 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
2814 * config/sh/sh.h (SIDI_OFF): Remove.
2815 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
2816 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
2819 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2822 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
2823 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
2824 * doc/md.texi (Standard Names): Add bswap.
2825 * builtin-types.def (BT_UINT16): New primitive type.
2826 (BT_FN_UINT16_UINT16): New function type.
2827 * builtins.def (BUILT_IN_BSWAP16): New.
2828 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
2829 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
2830 expand_builtin_bswap.
2831 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
2832 (fold_builtin_1): Likewise.
2833 (is_inexpensive_builtin): Likewise.
2834 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
2835 missing bits for bswap to libcall code.
2836 * tree.c (build_common_tree_nodes): Build uint16_type_node.
2837 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
2838 (uint16_type_node): New define.
2839 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
2840 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
2842 (rs6000_init_builtins): Likewise.
2843 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
2845 2012-04-11 Tristan Gingold <gingold@adacore.com>
2847 * doc/extend.texi (Type Attributes): Move paragraph.
2849 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2852 * diagnostic.h (show_caret): Declare.
2853 (caret_max_width): Declare.
2854 (diagnostic_show_locus): Declare.
2855 * diagnostic.c (diagnostic_initialize): Initialize to false.
2856 (diagnostic_show_locus): New.
2857 (diagnostic_report_diagnostic): Call it.
2858 (getenv_columns): New.
2860 (diagnostic_set_caret_max_width): New.
2861 * input.c (read_line): New.
2862 (location_get_source_line): New.
2863 * input.h (location_get_source_line): Declare.
2864 * toplev.c (general_init): Initialize show_caret from options.
2865 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
2866 * opts.c (common_handle_option): Likewise.
2867 * pretty-print.h (pp_get_prefix): New.
2868 (pp_base_get_prefix): New.
2869 * common.opt (fdiagnostics-show-caret): New option.
2870 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
2872 2012-04-11 Richard Guenther <rguenther@suse.de>
2874 PR rtl-optimization/52881
2875 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
2877 2012-04-11 Richard Guenther <rguenther@suse.de>
2879 PR tree-optimization/52912
2880 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
2881 manipulation code we are threading through a loop header
2882 to an exit destination.
2884 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2886 * tree.h (warn_if_unused_value): Move declaration from here.
2887 * stmt.c (warn_if_unused_value): Move definition from here.
2889 2010-04-10 Michael Matz <matz@suse.de>
2891 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
2893 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
2894 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
2895 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
2896 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
2897 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
2898 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
2899 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
2900 (vect_record_strided_load_vectors): Rename to
2901 vect_record_grouped_load_vectors.
2902 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
2903 Rename use of above macros.
2904 (vect_verify_datarefs_alignment): Ditto.
2905 (vector_alignment_reachable_p): Ditto.
2906 (vect_peeling_hash_get_lowest_cost): Ditto.
2907 (vect_enhance_data_refs_alignment): Ditto.
2908 (vect_analyze_group_access): Ditto and rename stride to groupsize.
2909 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
2910 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
2911 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
2912 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
2913 (vect_record_strided_load_vectors): Rename to
2914 vect_record_grouped_load_vectors.
2915 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
2916 (destroy_loop_vec_info): Ditto.
2917 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
2918 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
2919 (vect_analyze_slp): Ditto.
2920 (new_bb_vec_info): Ditto.
2921 (destroy_bb_vec_info): Ditto.
2922 (vect_schedule_slp_instance): Ditto and rename strided_store to
2924 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
2925 vect_cost_group_size.
2926 (vect_model_store_cost): Rename use of above macros and call
2927 to vect_cost_strided_group_size.
2928 (vect_model_load_cost): Ditto.
2929 (vectorizable_store): Ditto, rename strided_store to grouped_store
2930 and calls to renamed tree-vectorizer.h functions.
2931 (vectorizable_load): Ditto.
2932 (vect_transform_stmt): Rename use of above macros and strided_store
2935 2012-04-10 Jan Hubicka <jh@suse.cz>
2937 * cgraph.h: Remove misledaing comment on ipa-ref.h.
2938 (symtab_type): New enum.
2939 (symtab_node): New structure.
2940 (cgraph_node, varpool_node): Add symbol base type.
2941 (cgraph, varpool): New accestor functions.
2942 * cgraph.c (cgraph_create_node_1): Set symbol type.
2943 * varpool.c (varpool_node): Set symbol type.
2945 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2946 Richard Sandiford <rdsandiford@googlemail.com>
2948 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
2950 2012-04-10 Richard Guenther <rguenther@suse.de>
2953 * gimple-low.c (gimple_check_call_args): Properly account for
2954 compatible aggregate types.
2956 2012-04-10 Richard Guenther <rguenther@suse.de>
2958 * toplev.h (tree_rest_of_compilation): Remove.
2959 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2960 * cgraph.h (tree_rest_of_compilation): Declare.
2961 * tree-optimize.c (tree_rest_of_compilation): Move ...
2962 * cgraphunit.c (tree_rest_of_compilation): ... here.
2963 * cgraph.c (cgraph_add_new_function): Adjust.
2964 * Makefile.in (tree-optimize.o): Adjust.
2965 (cgraphunit.o): Likewise.
2967 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2969 PR tree-optimization/52870
2970 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
2971 presumed pattern statement is within the same loop or basic block.
2973 2012-04-10 Tristan Gingold <gingold@adacore.com>
2975 * gengtype.c (main): Make uintptr_t a known type.
2977 2012-04-10 Richard Guenther <rguenther@suse.de>
2979 * tree-pass.h (tree_lowering_passes): Remove.
2980 * tree-optimize.c (tree_lowering_passes): Remove.
2981 * cgraph.c (cgraph_add_new_function): Inline relevant parts
2982 of tree_lowering_passes, avoid redundant call of early local passes.
2983 * cgraphunit.c (cgraph_lower_function): Fold into ...
2984 (cgraph_analyze_function): ... its single caller. Inline
2985 relevant parts of tree_lowering_passes.
2987 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
2990 * config/pa/pa.opt: Remove SIO and GNU_LD.
2992 2012-04-09 Jan Hubicka <jh@suse.cz>
2997 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
2998 boundary, add its target too.
2999 * lto.c (add_references_to_partition): Add also aliased nodes.
3000 (add_cgraph_node_to_partition,
3001 add_varpool_node_to_partition): Work on nodes, not functions/variables;
3002 when adding alias, add also the aliased object.
3004 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
3007 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
3008 VOIDmode immediate operands.
3009 * config/i386/constraints.md (Wz): New constraint.
3010 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
3012 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
3015 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
3016 the DECL generated for the special GOT helper.
3018 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
3020 * config/sh/constraints.md: Update list of constraints in
3022 (Sr0): Remove unused memory constraint.
3024 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3026 * tree-pretty-print.h: Update comment.
3028 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
3030 * config/sh/sh.md: Use braced string notation where applicable.
3031 (*prefetch_i4, prefetch_m2a): Merge into ...
3032 (*prefetch): ... this new insn.
3034 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
3036 * config/sh/sh.h (high_life_started): Remove
3037 * config/sh/predicates.md (general_movdst_operand): Use
3038 'reload_in_progress' instead of 'high_life_started'.
3039 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
3040 divsi_inv_fp): Likewise.
3042 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
3044 * config/sh/sh-protos.h (prepare_move_operands): Return void
3046 * config/sh/sh.c (prepare_move_operands): Likewise.
3047 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
3049 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
3051 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
3052 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
3053 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
3054 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
3055 commutative_float_operator, noncommutative_float_operator,
3056 sh_handle_pragma): Remove.
3058 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
3060 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
3061 Use @option markup on command-line options. Use @samp markup on
3062 literal keywords to options. Use @code markup on code fragments.
3063 Use other markup in preference to quotation marks in the text.
3064 Add markup to some passages without any.
3066 2012-04-06 Mike Stump <mikestump@comcast.net>
3068 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
3070 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
3072 * config/sh/sh.c (hi_const): Remove.
3073 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
3076 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
3078 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
3080 * config/sh/sh.c (sh_expand_t_scc): Likewise.
3081 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
3082 calling sh_expand_t_scc.
3084 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
3086 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
3087 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
3088 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
3089 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
3090 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
3091 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
3092 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
3093 sh2a_is_function_vector_call): Use bool as return type.
3094 (sh_pass_in_reg_p): Remove.
3095 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
3096 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
3097 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
3098 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
3099 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
3100 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
3101 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
3102 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
3103 sh_loads_bankedreg_p): Use bool as return type.
3104 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
3105 'register' modifier.
3107 2012-04-06 Matt Turner <mattst88@gmail.com>
3109 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
3111 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
3113 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
3114 of the destination isn't also a FP_REGS register.
3116 2012-04-05 Teresa Johnson <tejohnson@google.com>
3117 H.J. Lu <hongjiu.lu@intel.com>
3119 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
3120 * config/i386/i386.md (move immediate to memory peephole2):
3121 Add cases for HImode move when LCP stall avoidance is needed.
3122 * config/i386/i386.c (initial_ix86_tune_features): Initialize
3123 X86_TUNE_LCP_STALL entry.
3125 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
3128 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
3129 CONST_INT operands, zero-extended with AND.
3131 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
3134 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
3135 first argument instead of mode size. Move displacement calculations
3137 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
3138 ... these new functions.
3139 (disp_adjust): Remove max_mov_disp field.
3140 (sh_legitimate_index_p): Use max_mov_insn_displacement and
3141 mov_insn_alignment_mask.
3142 (sh_address_cost): Use max_mov_insn_displacement.
3144 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
3146 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
3147 (arch_enabled): Handle new arch types.
3148 (one_cmpldi2): Add NEON support.
3150 2012-04-05 Richard Guenther <rguenther@suse.de>
3152 * gimple.c (walk_gimple_op): Compute val_only for the LHS
3153 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
3154 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
3155 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
3156 ... here and make static.
3157 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
3160 2012-04-05 Richard Guenther <rguenther@suse.de>
3162 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
3163 basic-block before removing it.
3165 2012-04-05 Richard Guenther <rguenther@suse.de>
3167 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
3168 version namespace as we release the freelist.
3170 2012-04-05 Richard Guenther <rguenther@suse.de>
3172 * tree-nrv.c (tree_nrv): Release VDEFs.
3173 * tree-sra.c (sra_modify_constructor_assign): Likewise.
3174 (sra_modify_assign): Likewise.
3175 * tree-vect-stmts.c (vect_remove_stores): Likewise.
3176 * tree-vect-loop.c (vect_transform_loop): Likewise.
3177 * tree-ssa-dom.c (optimize_stmt): Likewise.
3178 * tree-vect-slp.c (vect_schedule_slp): Likewise.
3179 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
3181 2012-04-05 Richard Guenther <rguenther@suse.de>
3183 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
3185 * gimple.h (gsi_remove): Adjust.
3186 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
3187 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
3188 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
3189 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
3190 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
3191 * tree-ssa-pre.c (eliminate): Likewise.
3193 2012-04-04 Mike Stump <mikestump@comcast.net>
3195 * doc/rtl.texi (const_double): Document as sign-extending.
3196 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
3197 * emit-rtl.c (immed_double_int_const): Refine to state the
3199 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
3200 CONST_DOUBLE integers.
3201 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
3202 negative values are converted. Fix conversions bigger than
3203 HOST_BITS_PER_WIDE_INT.
3204 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
3205 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
3206 * explow.c (plus_constant_mode): Add.
3207 (plus_constant): Implement with plus_constant_mode.
3208 * rtl.h (plus_constant_mode): Add.
3210 2012-04-04 Richard Guenther <rguenther@suse.de>
3212 PR tree-optimization/52808
3213 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
3214 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
3216 2012-04-04 Tristan Gingold <gingold@adacore.com>
3218 * expr.c (expand_expr_real_2): Handle larger sizetype in
3221 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
3223 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
3224 to m2a-single instead of m2e.
3226 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
3228 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
3229 Change type of BITOFFSET to signed. Make sure the lower bound of
3230 the computed range is non-negative by adjusting OFFSET and BITPOS.
3231 (expand_assignment): Adjust call to get_bit_range.
3233 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3235 * h8300/h8300.c (h8300_current_function_monitor_function_p):
3236 New function. Added to check monitor functions.
3237 (h8300_option_override): Modified to generate error/warning
3238 messages for invalid combinations of different command line
3240 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
3241 save EXR on stack for monitor function in case of H8S target
3242 when "-mno-exr" is passed.
3243 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
3245 * doc/invoke.texi: Document H8S options.
3247 2012-04-03 Tristan Gingold <gingold@adacore.com>
3249 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
3250 of gcc_AC_FUNC_MMAP_BLACKLIST.
3251 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
3252 * Makefile.in (aclocal_deps): Add mmap.m4.
3253 * configure: Regenerate.
3254 * aclocal.m4: Regenerate.
3256 2012-04-03 Richard Guenther <rguenther@suse.de>
3258 PR tree-optimization/52808
3259 * tracer.c (tail_duplicate): Return whether we have duplicated
3261 (tracer): If we have duplicated any block, cleanup the CFG.
3262 * cfghooks.c (duplicate_block): If we duplicated a loop
3263 header but not its loop, destroy the loop because it now has
3265 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
3266 the cfg manipulation routines we are not creating a multiple
3269 2012-04-03 Tristan Gingold <gingold@adacore.com>
3271 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
3273 (vms_c_common_override_options): Allow parameterless variadic
3276 2012-04-03 Jakub Jelinek <jakub@redhat.com>
3278 PR tree-optimization/52835
3279 * tree-data-ref.c (build_rdg): Return NULL if
3280 compute_data_dependences_for_loop failed.
3282 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
3284 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
3285 for REAL_CST as well.
3286 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
3287 In the bitfield case, if the value is a REAL_CST, convert it first to
3290 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
3292 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
3293 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
3294 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
3296 * config/i386/biarchx32.h: New.
3298 2012-04-02 Anatoly Sokolov <aesok@post.ru>
3300 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
3301 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3302 (arm_preferred_reload_class): New function.
3304 2012-04-02 Richard Guenther <rguenther@suse.de>
3306 PR tree-optimization/52756
3307 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
3308 (thread_through_loop_header): After threading through the loop latch
3309 remove the split part from the loop and clear further threading
3310 opportunities that would create a multiple entry loop.
3312 2012-04-02 Richard Guenther <rguenther@suse.de>
3314 PR rtl-optimization/52800
3315 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
3316 CLEANUP_CFG_CHANGED.
3318 2012-04-02 Richard Guenther <rguenther@suse.de>
3321 * loop-init.c (gate_handle_loop2): Destroy loops here if
3322 we don't enter RTL loop optimizers.
3324 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
3327 2012-03-29 Richard Guenther <rguenther@suse.de>
3329 * rtl.h (extended_count): Remove.
3330 * combine.c (extended_count): Remove.
3332 2012-04-02 Dodji Seketeli <dodji@redhat.com>
3335 * pt.c (more_specialized_fn): Don't apply decay conversion to
3336 types of function parameters.
3338 2012-04-02 Tristan Gingold <gingold@adacore.com>
3340 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
3341 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
3342 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
3343 (ggc_pch_this_base): Use uintptr_t instead of size_t.
3345 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
3348 * config/i386/i386.c (ix86_option_override_internal): Don't
3349 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
3351 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
3353 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
3354 (stmt_can_make_abnormal_goto): Use it.
3355 (is_ctrl_altering_stmt): Likewise.
3357 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
3358 Kaz Kojima <kkojima@gcc.gnu.org>
3360 * config/sh/sh.c (push_regs): Skip banked registers when
3361 resbank attribute is specified.
3362 (sh_expand_epilogue): Likewise.
3364 2012-03-30 Richard Henderson <rth@redhat.com>
3367 * combine-stack-adj.c (prev_active_insn_bb): New.
3368 (next_active_insn_bb): New.
3369 (force_move_args_size_note): New.
3370 (combine_stack_adjustments_for_block): Use it.
3372 2012-03-30 Richard Henderson <rth@redhat.com>
3374 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
3375 (ix86_expand_vector_init_duplicate): Initialize it.
3376 (expand_vec_perm_palignr): Likewise.
3377 (ix86_expand_vec_perm_const): Likewise.
3378 (ix86_vectorize_vec_perm_const_ok): Likewise.
3379 (expand_vec_perm_blend): Use it.
3380 (expand_vec_perm_vpermil): Likewise.
3381 (expand_vec_perm_pshufb): Likewise.
3382 (expand_vec_perm_1): Likewise.
3383 (expand_vec_perm_pshuflw_pshufhw): Likewise.
3384 (expand_vec_perm_interleave2): Likewise.
3385 (expand_vec_perm_vpermq_perm_1): Likewise.
3386 (expand_vec_perm_vperm2f128): Likewise.
3387 (expand_vec_perm_interleave3): Likewise.
3388 (expand_vec_perm_vperm2f128_vblend): Likewise.
3389 (expand_vec_perm_vpshufb2_vpermq): Likewise.
3390 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
3391 (expand_vec_perm_broadcast): Likewise.
3392 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
3394 2012-03-30 Richard Henderson <rth@redhat.com>
3396 * dwarf2out.c (gen_variable_die): Initialize off.
3398 2012-03-30 Tristan Gingold <gingold@adacore.com>
3400 * config/vms/vms-f.c: New file.
3401 * config/vms/t-vms (vms-f.o): New rule.
3402 * config.gcc (*-*-*vms*): Define fortran_target_objs.
3404 2012-03-30 Richard Guenther <rguenther@suse.de>
3406 PR tree-optimization/52754
3407 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
3408 propagate arbitrary addresses into really plain dereferences.
3410 2012-03-30 Richard Guenther <rguenther@suse.de>
3413 * except.c (emit_to_new_bb_before): Move loop updating ...
3414 (dw2_build_landing_pads): ... here. Use a proper block for
3415 querying the loop father.
3417 2012-03-30 Tristan Gingold <gingold@adacore.com>
3419 * config/ia64/ia64.c (ia64_section_type_flags): Remove
3420 common_object attribute handling.
3421 (SECTION_VMS_OVERLAY): Remove
3422 (ia64_vms_common_object_attribute): Replace abort with an assert.
3423 Do not set DECL_SECTION_NAME.
3424 (ia64_vms_output_aligned_decl_common): Handle common_object
3426 (ia64_vms_elf_asm_named_section): Remove.
3427 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
3429 2012-03-30 Richard Guenther <rguenther@suse.de>
3432 * double-int.c (rshift_double): Remove not needed cast.
3434 2012-03-30 Richard Guenther <rguenther@suse.de>
3436 * tree-affine.h (print_aff): Remove.
3437 * tree-affine.c (print_aff): Make static.
3438 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
3439 (get_references_in_stmt): Likewise.
3440 (print_direction_vector): Likewise.
3441 (print_dir_vectors): Likewise.
3442 (print_dist_vectors): Likewise.
3443 (dump_subscript): Likewise.
3444 (dump_ddrs): Likewise.
3445 (dump_dist_dir_vectors): Likewise.
3446 (dump_data_references): Likewise.
3447 (dump_data_dependence_relation): Likewise.
3448 (dump_data_dependence_direction): Likewise.
3449 (dump_rdg_vertex): Likewise.
3450 (dump_rdg_component): Likewise.
3451 (debug_ddrs): Declare.
3452 (struct data_ref_loc_d): Move ...
3453 * tree-data-ref.c (struct data_ref_loc_d): ... here.
3454 (get_references_in_stmt): Make static.
3455 (dump_data_references): Likewise.
3456 (dump_subscript): Likewise.
3457 (print_direction_vector): Likewise.
3458 (print_dir_vectors): Likewise.
3459 (print_dist_vectors): Likewise.
3460 (dump_data_dependence_relation): Likewise.
3461 (dump_dist_dir_vectors): Likewise.
3462 (dump_ddrs): Likewise.
3463 (dump_rdg_vertex): Likewise.
3464 (dump_rdg_component): Likewise.
3465 (debug_ddrs): New function.
3466 (access_matrix_get_index_for_parameter): Remove.
3468 2012-03-30 Tristan Gingold <gingold@adacore.com>
3470 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
3471 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
3472 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
3473 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
3474 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
3475 (vms_patch_builtins): Handle new flags
3476 * config/vms/vms-crtlmap.map: Completed using nm on
3477 c and math system libraries.
3478 * config/vms/make-crtlmap.awk: Handle any number of flags.
3480 2012-03-30 Martin Jambor <mjambor@suse.cz>
3482 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
3483 is a builtin_stack_save in a dominating BB.
3485 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
3487 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
3488 crossing 128bit lane boundary.
3490 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
3492 * ira-color.c (setup_left_conflict_sizes_p): Process all
3493 conflicting objects.
3495 2012-03-29 Jakub Jelinek <jakub@redhat.com>
3497 PR tree-optimization/52760
3498 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
3499 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
3501 2012-03-29 Richard Guenther <rguenther@suse.de>
3503 * cgraph.h (cgraph_materialize_all_clones): Remove.
3504 (reset_inline_failed): Likewise.
3505 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
3506 * cgraphbuild.c (reset_inline_failed): Remove.
3507 * rtl.h (cse_main): Remove.
3508 (extended_count): Likewise.
3509 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
3510 (cse_main): Make static.
3511 * combine.c (extended_count): Remove.
3512 (dump_combine_stats): Mark as DEBUG_FUNCTION.
3513 * basic-block.h (reorder_basic_blocks): Remove.
3514 * bb-reorder.c (reorder_basic_blocks): Make static.
3515 * Makefile.in (dse.o): Remove dse.h dependency.
3517 * dse.c (gate_dse): Remove.
3518 (clear_alias_mode_eq): Likewise.
3519 (clear_alias_mode_hash): Likewise.
3520 (dse_record_singleton_alias_set): Likewise.
3521 (dse_invalidate_singleton_alias_set): Likewise.
3523 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
3525 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
3526 crtbegin_so%O%s for -shared.
3527 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
3529 2012-03-29 Richard Guenther <rguenther@suse.de>
3531 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
3532 (add_to_value): Remove.
3533 (print_value_expressions): Likewise.
3534 * tree-ssa-pre.c (add_to_value): Make static.
3535 (print_value_expressions): Likewise.
3536 * gimple.h (gimple_adjust_this_by_delta): Remove.
3537 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
3539 2012-03-29 Richard Guenther <rguenther@suse.de>
3542 * double-int.h (rshift_double): Remove.
3543 * double-int.c (lshift_double): Use absu_hwi to make count positive.
3544 (rshift_double): Make static, take unsigned count argument,
3545 remove handling of negative count argument.
3546 (double_int_rshift): Dispatch to lshift_double.
3548 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
3550 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
3553 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
3554 (SPEC_X32): Likewise.
3555 (MULTILIB_DEFAULTS): Likewise.
3557 * config/i386/i386.c (isa_opts): Remove -m64.
3558 (ix86_target_string): Properly handle -m32/-m64/-mx32.
3559 (ix86_option_override_internal): Properly
3560 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
3561 handle -m32, -m64 and -mx32.
3563 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
3564 with OPTION_ABI_X32. Moved after TARGET_LP64.
3565 (TARGET_LP64): Changed to OPTION_ABI_64.
3567 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
3568 (mx32): Replace ISA_X32 with ABI_X32.
3570 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
3572 * tree.c (tree_size) <VECTOR_CST>: New case.
3574 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
3576 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
3577 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
3579 2012-03-28 Jakub Jelinek <jakub@redhat.com>
3582 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
3583 __builtin_va_start to __builtin_next_arg if the latter is
3584 builtin_decl_explicit_p rather than when it is not.
3587 * tree-vect-generic.c (vector_element): Perform multiplication
3588 for pos in bitsizetype type instead of idx type.
3590 2012-03-28 Richard Guenther <rguenther@suse.de>
3592 * loop-init.c (loop_optimizer_init): If loops are preserved
3593 perform incremental initialization of required loop features.
3594 (loop_optimizer_finalize): If loops are to be preserved only
3595 clean up optional loop features.
3596 (rtl_loop_done): Forcefully free loops here.
3597 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
3598 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
3600 (construct_init_block): Likewise.
3601 (construct_exit_block): Likewise.
3602 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
3603 the CFG after expanding.
3604 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
3605 If we needed to calculate them, free them afterwards.
3606 * tree-pass.h (PROP_loops): New define.
3607 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
3608 * basic-block.h (CLEANUP_CFG_CHANGED): New.
3609 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
3610 (cleanup_cfg): If we did something and have loops around, fix them up.
3611 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
3612 with CLEANUP_CFG_CHANGED.
3613 * cfghooks.c (merge_blocks): If we merge a loop header into
3614 its predecessor, update the loop structure.
3615 (duplicate_block): If we copy a loop latch, adjust loop state
3616 to note we may have multiple latches.
3617 (delete_basic_block): Mark loops for fixup if we remove a loop.
3618 * cfganal.c (forwarder_block_p): Protect loop latches, headers
3620 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
3621 (cfg_layout_can_merge_blocks_p): Likewise.
3622 * cprop.c (bypass_block): If we create a loop with multiple
3623 entries, mark it for removal.
3624 * except.c (emit_to_new_bb_before): Add the new basic-block
3626 * tree-eh.c (lower_resx): Likewise.
3627 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
3628 (expand_omp_taskreg): Likewise.
3629 * tree-inline.c (initialize_cfun): Likewise.
3630 * tree-mudflap.c (add_bb_to_loop): Prototype.
3631 (mf_build_check_statement_for): Properly add new basic-blocks
3633 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
3634 if we remove a loop.
3635 (thread_through_loop_header): Likewise.
3636 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
3637 new basic-blocks to existing loops.
3638 (expand_transaction): Likewise.
3639 * Makefile.in (except.o): Add $(CFGLOOP_H).
3641 (cgraph.o): Likewise.
3642 (cprop.o): Likewise.
3643 (cfgexpand.o): Likewise.
3644 (cfganal.o): Likewise.
3645 (trans-mem.o): Likewise.
3646 (tree-eh.o): Likewise.
3648 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
3651 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
3652 (avr_builtin_decl): New static function.
3653 (struct avr_builtin_description, avr_bdesc): Move up.
3654 Add GTY marker. Add field fndecl. Remove redundant field id.
3655 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
3656 (avr_expand_builtin): Code cleanup because .id is removed.
3658 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
3661 * config.gcc (tm_file): Remove avr/multilib.h.
3663 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
3665 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
3666 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
3667 * config/avr/t-avr: Remove generation of multilib.h.
3668 * config/avr/t-multilib: Regenerate.
3669 * config/avr/multilib.h: Remove.
3670 * config/avr/avr.opt (-msp8): New option.
3671 (avr_sp8): New variable.
3672 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
3673 * config/avr/avr.h (AVR_HAVE_SPH): New define.
3674 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
3675 (avr_device_to_sp8): New prototype.
3676 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
3677 (DRIVER_SELF_SPECS): New define.
3678 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
3679 __AVR_SP8__, __AVR_HAVE_SPH__.
3680 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
3681 AVR_HAVE_8BIT_SP to decide if SP_H is present.
3682 (avr_file_start): Ditto.
3684 2012-03-28 Jakub Jelinek <jakub@redhat.com>
3687 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
3688 instead of 8 in adjust_address.
3690 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
3693 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
3696 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
3699 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
3700 Rearrange conditional logic. Move displacement address calculations
3702 (sh_find_mov_disp_adjust): ... this new function.
3704 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
3706 * config/arm/arm.opt (mapcs): Remove MaskExists.
3707 * config/cris/linux.opt (mno-gotplt): Likewise.
3708 * config/i386/i386.opt (mhard-float): Likewise.
3710 (mno-sse4): Likewise.
3711 * config/m68k/m68k.opt (mhard-float): Likewise.
3712 * config/mep/mep.op (mcop32): Likewise.
3713 * config/pa/pa-hpux.opt (msio): Likewise.
3714 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
3715 * config/picochip/picochip.opt (mlittle): Likewise.
3716 * config/sh/sh.opt (mrenesas): Likewise.
3717 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
3718 * config/sparc/sparc.opt (mhard-float): Likewise.
3719 * config/v850/v850.opt (mv850es): Likewise.
3720 * config/vax/vax.opt (mg-float): Likewise.
3722 2012-03-27 Martin Jambor <mjambor@suse.cz>
3725 * tree-sra.c (sra_modify_assign): Do not call
3726 load_assign_lhs_subreplacements when working with an unscalarizable
3729 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
3732 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
3734 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
3735 * config/i386/i386.c: Include reload.h.
3736 (ix86_legitimize_reload_address): New function.
3738 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
3740 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
3741 hasn't been allocated. Define a target macro for Mask and
3742 InverseMask if it hasn't been defined. Remove MaskExists handling.
3744 * doc/options.texi: Remove MaskExists.
3746 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
3749 * config/sh/sh.c (find_barrier): Add equality check of last_got
3750 to avoid going above orig insn. Update comments.
3752 2012-03-27 Richard Guenther <rguenther@suse.de>
3755 * fold-const.c (try_move_mult_to_index): Handle &x.array more
3758 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
3760 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
3761 of a unit before computing the offset in units.
3762 * expr.c (get_bit_range): Return the null range if the enclosing record
3763 is part of a larger bit field.
3765 2012-03-27 Tristan Gingold <gingold@adacore.com>
3767 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
3768 * config/ia64/ia64.md: Remove mode in template.
3769 Sign extend operand in expand_simple_binop.
3770 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
3771 CASE_VECTOR_MODE instead of TARGET_ILP32.
3772 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
3774 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
3776 * varasm.c (assemble_external): #if 0 out the new assert from the
3777 previous commit, it breaks the Java and Go front ends.
3779 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
3781 * toplev.c (check_global_declaration_1): Do not call assemble_external.
3782 * expr.c (emit_block_move_libcall_fn): Likewise.
3783 (clear_storage_libcall_fn): Likewise.
3784 (expand_expr_addr_expr_1): Likewise.
3785 (expand_expr_real_1): Likewise.
3786 * calls.c (rtx_for_function_call): Likewise.
3788 * varasm.c (assemble_external): Assert this function is only called
3789 during or after expanding to RTL.
3791 2012-03-26 Martin Jambor <mjambor@suse.cz>
3793 PR tree-optimization/50052
3794 * tree-sra.c (tree_non_aligned_mem_p): Removed.
3795 (tree_non_aligned_mem_for_access_p): Likewise.
3796 (build_accesses_from_assign): Removed strict alignment requirements
3798 (access_precludes_ipa_sra_p): Likewise.
3800 2012-03-26 Richard Guenther <rguenther@suse.de>
3802 PR tree-optimization/52701
3803 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
3804 compute and set the evolution part of PHI nodes.
3806 2012-03-26 Richard Guenther <rguenther@suse.de>
3808 PR tree-optimization/52721
3809 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
3811 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
3813 PR tree-optimization/52686
3814 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
3817 2012-03-26 Tristan Gingold <gingold@adacore.com>
3819 * config/alpha/vms.h (LINK_SPEC): Simplify.
3820 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
3821 (NAME__MAIN, SYMBOL__MAIN): Remove.
3822 (VMS_DEBUG_MAIN_POINTER): Remove.
3823 * config/ia64/vms.h: Likewise.
3824 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
3825 code to vms.c. Call vms_start_function.
3826 * config/ia64/ia64.c (ia64_start_function): Likewise.
3827 * config/vms/vms-protos.h (vms_start_function): Declare.
3828 * config/vms/vms.c (vms_start_function): New function.
3829 * config/vms/vms.h (MATH_LIBRARY): Define.
3830 (VMS_DEBUG_MAIN_POINTER): Define.
3832 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
3834 PR rtl-optimization/52629
3835 * reload1.c (count_pseudo): Short-circuit common case.
3836 (count_spilled_pseudo): Return early for pseudos without hard regs.
3837 Assert that the pseudo has got a hard reg before manipulating it.
3839 2012-03-24 Jan Hubicka <jh@suse.cz>
3842 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
3843 (decide_is_variable_needed): Do not handle toplevel reorder here.
3844 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
3845 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
3848 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
3850 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
3851 and str_bitsize instead of more convoluted expressions.
3853 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
3856 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
3858 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
3861 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
3863 2012-03-23 Martin Jambor <mjambor@suse.cz>
3865 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
3867 2012-03-23 Richard Guenther <rguenther@suse.de>
3869 PR tree-optimization/52678
3870 * tree-vectorizer.h (struct _stmt_vec_info): Add
3871 loop_phi_evolution_part member.
3872 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
3873 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
3874 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3875 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3876 Use the cached evolution part and the PHI nodes value from
3877 the loop preheader edge instead of re-analyzing the evolution.
3879 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
3881 * config/mips/mips-tables.opt: Update.
3882 * config/mips/mips.md (processor): Add xlp.
3883 * config/mips/mips-cpus.def: Add xlp.
3884 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
3886 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
3887 * doc/invoke.texi: Mention XLP.
3889 2012-03-22 Jakub Jelinek <jakub@redhat.com>
3892 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
3893 on any new_local_var_chain vars declared during recursing on
3894 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
3896 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
3898 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
3899 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
3900 (ASM_OUTPUT_LOCAL): Ditto.
3901 (ASM_OUTPUT_COMMON): Remove.
3902 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
3903 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
3905 2012-03-22 Jan Hubicka <jh@suse.cz>
3908 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
3910 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
3911 * ipa-inline-transform.c (save_inline_function_body): Remove
3912 copied clone if needed.
3913 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
3915 2012-03-22 Richard Guenther <rguenther@suse.de>
3918 * fold-const.c (fold_ternary_loc): Fix typo.
3920 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
3923 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
3924 (unspecv): Add UNSPECV_MEMORY_BARRIER.
3925 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
3926 (delay_cycles_1, delay_cycles_2): Ditto.
3927 (delay_cycles_3, delay_cycles_4): Ditto.
3928 (nopv, *nopv): Ditto.
3929 (sleep, *sleep): Ditto.
3932 2012-03-22 Richard Guenther <rguenther@suse.de>
3934 PR tree-optimization/52548
3935 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
3936 because of clobbers.
3937 (prune_clobbered_mems): New function.
3938 (compute_antic_aux): Use it to prune ANTIC_OUT.
3939 (compute_partial_antic_aux): Use it to prune PA_IN.
3940 (compute_avail): Only insert expressions into EXP_GEN that are not
3941 invalidated when translated up to the beginning of the block.
3943 2012-03-22 Richard Guenther <rguenther@suse.de>
3945 PR tree-optimization/52638
3946 * tree-vect-stmts.c (vect_init_vector_1): New function, split
3948 (vect_init_vector): ... here. Handle scalar vector inits.
3949 (vect_get_vec_def_for_operand): Adjust.
3950 (vectorizable_load): Likewise.
3952 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
3954 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
3955 (alpha*-*-freebsd*): Ditto.
3956 (alpha*-*-netbsd*): Ditto.
3957 (alpha*-*-openbsd*): Ditto.
3958 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
3959 (DWARF2_DEBUGGING_INFO): Remove.
3960 (PREFERRED_DEBUGGING_TYPE): Remove.
3961 (ASM_FINAL_SPEC): Remove.
3962 (IDENT_ASM_OP): Remove.
3963 (ASM_OUTPUT_IDENT): Remove.
3964 (SKIP_ASM_OP): Remove.
3965 (ASM_OUTPUT_SKIP): Remove.
3966 (ALIGN_ASM_OP): Remove.
3967 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
3968 (ASM_OUTPUT_CASE_LABEL): Remove.
3969 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
3970 (COMMON_ASM_OP): Remove.
3971 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
3972 (ASCII_DATA_ASM_OP): Remove.
3973 (READONLY_DATA_SECTION_ASM_OP): Remove.
3974 (INIT_SECTION_ASM_OP): Remove.
3975 (FINI_SECTION_ASM_OP): Remove.
3976 (ASM_SECTION_START_OP): Remove.
3977 (ASM_OUTPUT_SECTION_START_FILE): Remove.
3978 (TARGET_ASM_NAMED_SECTION): Remove.
3979 (TARGET_ASM_SELECT_SECTION): Remove.
3980 (MAKE_DECL_ONE_ONLY): Remove.
3981 (TYPE_ASM_OP): Remove.
3982 (SIZE_ASM_OP): Remove.
3983 (ASM_WEAKEN_LABEL): Remove.
3984 (TYPE_OPERAND_FMT): Remove.
3985 (ASM_DECLARE_RESULT): Remove.
3986 (ASM_DECLARE_OBJECT_NAME): Remove.
3987 (ASM_FINISH_DECLARE_OBJECT): Remove.
3988 (ELF_ASCII_ESCAPES): Remove.
3989 (ELF_STRING_LIMIT): Remove.
3990 (STRING_ASM_OP): Remove.
3991 (ASM_OUTPUT_EXTERNAL): Remove.
3992 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
3993 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
3995 (ASM_DECLARE_FUNCTION_NAME): Ditto.
3996 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
3997 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
3998 (ASM_OUTPUT_SKIP): Ditto.
3999 (READONLY_DATA_SECTION_ASM_OP): Remove.
4000 (USER_LABEL_PREFIX): Remove.
4001 (ASM_OUTPUT_ASCII): Remove.
4002 (ASM_OUTPUT_CASE_LABEL): Remove.
4003 (NO_DOLLAR_IN_LABEL): Undefine.
4005 2012-03-22 Richard Guenther <rguenther@suse.de>
4007 PR tree-optimization/52459
4008 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
4009 PHI insertion for calls.
4011 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
4013 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
4014 find_sets_in_insn, canonicalize_insn): Split out from ...
4015 (cse_insn): ... here.
4016 (invalidate_from_clobbers): Take an insn instead of the pattern.
4018 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
4021 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
4022 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
4023 * config/sh/sh.md (sindf2, cosdf2): Remove.
4025 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
4028 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
4029 prologue for unwinder and profiler.
4031 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
4033 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
4034 Introduce emul_name to select the right linker emulation for
4035 powerpc64-*-freebsd*.
4036 * configure: Regenerate.
4037 * config.gcc: Add bits to support powerpc64-*-freebsd*.
4038 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
4039 * config/rs6000/freebsd64.h: New file.
4040 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
4042 (rs6000_savres_strategy): Likewise.
4043 (rs6000_savres_routine_name): Likewise.
4044 (rs6000_elf_file_end): Likewise.
4045 * config/rs6000/t-freebsd64: New file.
4046 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
4047 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
4049 * config/rs6000/freebsd64.h: Remove duplicated entries from last
4051 * config/rs6000/t-freebsd64: Likewise.
4053 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
4055 PR rtl-optimization/52543
4057 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
4058 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
4059 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
4060 (avr_load_libgcc_p): Restrict to __flash loads.
4061 (avr_out_lpm): Only handle 1-byte loads from __flash.
4062 (avr_load_lpm): New function.
4063 (avr_find_unused_d_reg): Remove.
4064 (avr_out_lpm_no_lpmx): Remove.
4065 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
4066 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
4067 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
4068 (load_<mode>, load_<mode>_clobber): New insns.
4069 (mov<mode>): For multi-byte move from non-generic
4070 16-bit address spaces: Expand to load_<mode> resp.
4071 load_<mode>_clobber.
4072 (load<mode>_libgcc): Remove expander.
4073 (split-lpmx): Remove split.
4075 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
4077 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
4078 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
4079 All callers changed.
4080 (Fixed_core_reg): New feature.
4081 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
4083 * neon-testgen.ml: Handle Fixed_core_reg.
4085 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
4087 * config/arm/arm.c (thumb2_reorg): Add complete support
4088 for 16-bit instructions.
4089 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
4091 2012-03-21 Richard Guenther <rguenther@suse.de>
4093 PR tree-optimizer/52636
4094 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
4095 to the appropriate type.
4097 2012-03-21 Richard Guenther <rguenther@suse.de>
4099 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
4101 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
4102 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
4103 * passes.c (init_optimization_passes): Remove pass_init_function,
4104 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
4105 * tree-pass.h (pass_init_function): Remove.
4106 (pass_jump): Remove.
4107 (pass_initial_value_sets): Remove.
4108 (pass_unshare_all_rtl): Remove.
4109 * integrate.c (pass_initial_value_sets): Remove.
4110 * emit-rtl.c (pass_unshare_all_rtl): Remove.
4111 * tree.h (init_function_for_compilation): Remove.
4112 * function.c (init_function_for_compilation): Remove.
4113 (pass_init_function): Remove.
4114 * cfgcleanup.c (rest_of_handle_jump): Remove.
4115 (pass_jump): Remove.
4117 2012-03-20 Jason Merrill <jason@redhat.com>
4119 * tree-streamer-in.c (streamer_alloc_tree): Call
4120 ggc_alloc_zone_cleared_tree_node instead of
4121 ggc_alloc_zone_cleared_tree_node_stat.
4123 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
4125 * doc/extend.texi (Template Instantiation): Remove anachronisms.
4127 2012-03-20 Jakub Jelinek <jakub@redhat.com>
4130 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
4131 (ix86_expand_vec_perm_const_1): Call it.
4133 * config/i386/i386.c (vselect_insn): New variable.
4134 (init_vselect_insn): New function.
4135 (expand_vselect, expand_vselect_insn): Add testing_p argument.
4136 Call init_vselect_insn if vselect_insn is NULL. Adjust
4137 PATTERN (vselect_insn), instead of creating a new insn each time,
4138 only emit a copy of it if not testing and recog has been successful.
4139 (expand_vec_perm_pshufb, expand_vec_perm_1,
4140 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
4144 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
4145 ("enabled" attribute): Handle avx2 and noavx2 isas.
4146 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
4148 (vec_dup<mode>): Add avx2 =x,x alternative.
4149 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
4150 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
4151 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
4152 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
4154 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
4155 if possible, handle also V8SFmode.
4157 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
4159 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
4160 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
4161 reg_or_zero_operand predicate.
4162 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
4164 2012-03-20 Jakub Jelinek <jakub@redhat.com>
4166 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
4167 If operand isn't UNSPEC, return 0.
4169 2012-03-20 Richard Guenther <rguenther@suse.de>
4171 * tree-pass.h (pass_rtl_eh): Remove.
4172 * except.c (gate_handle_eh): Likewise.
4173 (rest_of_handle_eh): Likewise.
4174 (pass_rtl_eh): Likewise.
4175 (finish_eh_generation): Export.
4176 * except.h (finish_eh_generation): Declare.
4177 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
4178 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
4179 after expanding stack alignment. Instead of compacting blocks
4182 2012-03-20 Richard Guenther <rguenther@suse.de>
4184 * stor-layout.c (finish_bitfield_representative): Fallback
4185 to conservative maximum size if the padding up to the next
4186 field cannot be computed as a constant.
4187 (finish_bitfield_layout): If we cannot compute the distance
4188 between the start of the bitfield representative and the
4189 bitfield member start a new representative.
4190 * expr.c (get_bit_range): The distance between the start of
4191 the bitfield representative and the bitfield member is zero
4192 if the field offsets are not constants.
4194 2012-03-20 Tristan Gingold <gingold@adacore.com>
4196 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
4197 convert in lowercase.
4198 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
4199 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
4200 * stor-layout.c (sizetype_tab): Adjust.
4201 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
4202 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
4203 instead of type_kind_last.
4204 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
4205 instead of size_int_kind.
4206 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
4207 * doc/tm.texi: Regenerate.
4208 * defaults.h (SIZETYPE): Provide a default value.
4209 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
4212 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
4214 * config/sh/sh.md: Use braced string notation where applicable.
4216 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
4218 * config/i386/i386.md (allocate_stack): Simplify.
4220 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
4222 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
4223 copy_to_mode_reg (Pmode, ...).
4224 (expand_builtin_frame_address): Ditto.
4225 * expr.c (emit_block_move_via_libcall): Ditto.
4226 (set_storage_via_libcall): Ditto.
4228 * config/i386/i386.c (ix86_expand_movmem): Ditto.
4229 (ix86_expand_setmem): Ditto.
4230 (ix86_trampoline_init): DItto.
4231 * config/i386/i386.md (cmpstrnsi): Ditto.
4233 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
4235 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
4236 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
4237 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
4238 (SH Options): Likewise.
4240 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
4242 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
4243 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
4244 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
4245 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
4246 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
4249 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
4251 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
4252 * config/i386/i386.c (ix86_decompose_address): Use
4253 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
4254 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
4255 thread pointer to a register.
4258 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
4260 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
4261 if Pmode != word_mode.
4262 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
4263 Pmode == SImode for TARGET_X32.
4265 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
4266 (tls_initial_exec_x32): Likewise.
4268 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
4271 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
4272 DISP_ADDR_OFFSET): New macros.
4273 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
4274 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
4275 (sh_legitimize_address): Add QImode displacement handling.
4276 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
4278 (sh_secondary_reload): Add QImode displacement handling.
4279 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
4280 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
4281 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
4282 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
4283 to register operands only.
4284 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
4285 (extendqihi2): Change insn to expander.
4286 (*extendqihi2_compact_reg): New insn.
4287 (movqi_i, movqi): Replace with ...
4288 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
4289 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
4290 Add new peepholes for QImode displacement addressing.
4292 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4295 * doc/invoke.texi: Document -Wuseless-cast.
4297 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
4299 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
4300 * tree.h (handled_component_p): Reorder cases.
4301 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
4302 not initialize unsignedp.
4303 (loc_list_from_tree): Likewise.
4304 (fortran_common): Likewise.
4305 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4307 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
4309 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
4310 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
4311 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
4312 (ix86_split_long_move): Ditto.
4313 (legitimize_tls_address): Use ix86_gen_sub3.
4314 (construct_plt_address): Assert that Pmode == DImode.
4316 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
4318 * config/i386/i386.md: Remove empty predicates and/or constraints.
4319 * config/i386/sync.md: Ditto.
4320 * config/i386/sse.md: Ditto.
4321 * config/i386/mmx.md: Ditto.
4322 * config/i386/pentium.md: Ditto.
4323 * config/i386/athlon.md: Ditto.
4325 2012-03-16 Richard Guenther <rguenther@suse.de>
4327 PR tree-optimization/52603
4328 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
4332 2012-03-14 Richard Guenther <rguenther@suse.de>
4334 PR tree-optimization/52571
4335 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4336 flag_section_anchors check ...
4337 (vect_can_force_dr_alignment_p): ... here.
4339 2012-03-16 Martin Jambor <mjambor@suse.cz>
4341 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
4342 memory through MEM_REFs by calling extract_bit_field.
4344 2012-03-16 Richard Guenther <rguenther@suse.de>
4346 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
4347 and REFERENCE_TYPE interpretations.
4348 (can_native_interpret_type_p): New function.
4349 (fold_ternary_loc): Use native encode/interpret to fold
4350 BIT_FIELD_REFs of constants.
4352 2012-03-16 Richard Guenther <rguenther@suse.de>
4355 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
4356 of vector constants and constructors.
4358 2012-03-16 Richard Guenther <rguenther@suse.de>
4360 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
4361 VIEW_CONVERT_EXPR to convert constants.
4362 (vect_is_simple_use): Treat all constants as vec_constant_def.
4364 2012-03-16 Richard Guenther <rguenther@suse.de>
4365 Kai Tietz <ktietz@redhat.com>
4368 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
4369 side-effects completely in the pre-queue and use a temporary
4372 2012-03-16 Richard Guenther <rguenther@suse.de>
4374 * stor-layout.c (finish_bitfield_representative): Fall back
4375 to the conservative maximum size if we cannot compute the
4376 size of the tail padding.
4378 2012-03-16 Tristan Gingold <gingold@adacore.com>
4380 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
4381 __CRTL_VER and __VMS_VER.
4382 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
4383 and vms_c_get_vms_ver.
4384 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
4386 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
4387 (VMS_DEFAULT_VMS_VER): Define.
4388 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
4389 (VMS_DEFAULT_VMS_VER): Define.
4391 2012-03-16 Richard Guenther <rguenther@suse.de>
4393 * tree-vect-loop.c (get_initial_def_for_induction): Use
4394 build_constructor directly.
4395 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
4396 build_vector_from_val.
4397 * tree.c (build_vector_from_val): Avoid creating a constructor
4398 first when we want a constant vector.
4400 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4402 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
4404 2012-03-16 Richard Guenther <rguenther@suse.de>
4406 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
4407 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
4408 (struct tree_vector): Remove elements member, add variable size
4410 (build_vector_stat): Declare.
4411 (build_vector): Define in terms of build_vector_stat.
4412 * tree.c (build_vector): Rename to ...
4413 (build_vector_stat): ... this. Take array of trees as parameter.
4414 (build_vector_from_ctor): Adjust.
4415 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
4416 initializer_zerop): Adjust.
4417 * cfgexpand.c (expand_debug_expr): Likewise.
4418 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
4419 const_vector_from_tree): Likewise.
4420 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
4421 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
4422 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
4423 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
4424 (lto_input_ts_vector_tree_pointers): Adjust.
4425 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
4426 (write_ts_vector_tree_pointers): Adjust.
4427 * varasm.c (const_hash_1, compare_constant, copy_constant,
4428 output_constant): Adjust.
4429 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
4430 * print-tree.c (print_node): Adjust.
4431 * tree-pretty-print.c (dump_generic_node): Adjust.
4432 * tree-vect-generic.c (uniform_vector_p, vector_element,
4433 lower_vec_perm): Adjust.
4434 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
4435 * tree-vect-slp.c (vect_get_constant_vectors,
4436 vect_transform_slp_perm_load): Adjust.
4437 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
4438 * expmed.c (make_tree): Adjust.
4439 * config/i386/i386.c (ix86_expand_builtin): Adjust.
4440 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
4442 (sparc_fold_builtin): Adjust.
4444 2012-03-16 Tristan Gingold <gingold@adacore.com>
4446 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
4447 * config/vms/vms-stdint.h: New file.
4449 2012-03-16 Tristan Gingold <gingold@adacore.com>
4451 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
4452 (ia64-hp-*vms*): Replaced by ...
4453 (*-*-*vms*): ... This new entry.
4455 2012-03-15 Jakub Jelinek <jakub@redhat.com>
4458 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
4459 (ix86_expand_vec_perm_const_1): Use it.
4462 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
4463 (avx2_permv4df): Remove.
4464 (avx2_permv4di): Macroize into...
4465 (avx2_perm<mode>): ... this using VI8F_256 iterator.
4466 (avx2_permv4di_1): Macroize into...
4467 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
4469 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4471 * combine.c (apply_distributive_law): Do not distribute SUBREG.
4473 2012-03-15 Ira Rosen <irar@il.ibm.com>
4474 Ulrich Weigand <ulrich.weigand@linaro.org>
4476 * tree-vect-patterns.c (widened_name_p): Rename to ...
4477 (type_conversion_p): ... this. Add new argument to determine
4478 if it's a promotion or demotion operation. Check for
4479 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
4480 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
4482 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
4483 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
4485 (vect_recog_mixed_size_cond_pattern): Likewise and allow
4486 non-constant then and else clauses.
4488 2012-03-15 Ira Rosen <irar@il.ibm.com>
4489 Ulrich Weigand <ulrich.weigand@linaro.org>
4491 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
4492 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
4494 * tree-vect-patterns.c (widened_name_p): Pass basic block
4495 info to vect_is_simple_use.
4496 (vect_recog_dot_prod_pattern): Fail for basic blocks.
4497 (vect_recog_widen_sum_pattern): Likewise.
4498 (vect_handle_widen_op_by_const): Support basic blocks.
4499 (vect_operation_fits_smaller_type,
4500 vect_recog_over_widening_pattern): Likewise.
4501 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
4502 Update call to vect_is_simple_use.
4503 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
4505 (check_bool_pattern): Add an argument, update call to
4506 vect_is_simple_use and the recursive calls.
4507 (vect_recog_bool_pattern): Update relevant function calls.
4509 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
4510 (vect_pattern_recog_1): Check for reduction only in loops.
4511 (vect_pattern_recog): Add new argument. Support basic blocks.
4512 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
4513 info to vect_is_simple_use_1.
4514 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
4515 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
4517 2012-03-15 Jakub Jelinek <jakub@redhat.com>
4518 Andrew Pinski <apinski@cavium.com>
4521 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
4522 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
4523 calls instead of __builtin_ir{int,ound}*.
4525 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4527 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
4530 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4532 * config.gcc (target_type_format_char): New. Document it. Set it for
4534 * configure.ac (gnu_unique_option): Use target_type_format_char
4535 in test. Comment rationale.
4536 * configure: Regenerate .
4538 2012-03-15 Jakub Jelinek <jakub@redhat.com>
4540 PR tree-optimization/52267
4541 * tree-vrp.c (masked_increment): New function.
4542 (register_edge_assert_for_2): Derive ASSERT_EXPRs
4543 from (X & CST1) cmp CST2 tests.
4545 2012-03-15 Richard Guenther <rguenther@suse.de>
4548 * tree-data-ref.c (subscript_dependence_tester_1): Check
4549 all dimensions for non-conflicting access functions.
4551 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4554 * doc/invoke.texi [C++ Language Options]: Document
4555 -ftemplate-backtrace-limit.
4557 2012-03-15 Tristan Gingold <gingold@adacore.com>
4559 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
4562 2012-03-15 Tristan Gingold <gingold@adacore.com>
4564 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
4565 use DW_OP_call_frame_cfa.
4567 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
4570 * config/i386/i386-opts.h (pmode): New.
4572 * config/i386/i386.c (ix86_option_override_internal): Properly
4573 check and set ix86_pmode.
4575 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
4577 * config/i386/i386.opt (maddress-mode=): New.
4579 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
4581 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4583 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
4584 (dwarf2out_do_cfi_asm): Likewise.
4585 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
4587 (add_data_member_location_attribute): Likewise.
4588 (gen_array_type_die): Likewise.
4589 (gen_subprogram_die): Likewise.
4590 (gen_producer_string): Likewise.
4591 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
4592 Remove MIPS_DEBUGGING_INFO handling.
4593 (sdb_debug_hooks): Likewise.
4594 (sdbout_begin_block): Likewise.
4595 (sdbout_end_block): Likewise.
4596 (sdbout_begin_prologue): Likewise.
4597 (sdbout_start_source_file): Likewise.
4598 (sdbout_end_source_file): Likewise.
4599 (sdbout_init): Likewise.
4600 * system.h (MIPS_DEBUGGING_INFO): Poison.
4602 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4604 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
4605 (alpha_file_start) [MS_STAMP]: Remove.
4607 * config/alpha/elf.h (TARGET_GAS): Remove.
4608 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
4609 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
4610 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
4611 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
4612 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
4613 (alpha*-*-freebsd*): Likewise.
4614 (alpha*-*-netbsd*): Likewise.
4615 (alpha*-*-openbsd*): Likewise.
4616 (alpha*-*-*): Remove target_cpu_default2.
4617 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
4619 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
4620 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
4621 * config/alpha/alpha.c (print_operand): Always assume
4622 TARGET_AS_SLASH_BEFORE_SUFFIX.
4623 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
4624 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
4625 ("*builtin_setjmp_receiver_er_1"): Remove.
4626 * config/alpha/alpha.opt (malpha-as): Remove.
4628 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
4630 Remove DEC Unix reference.
4632 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
4633 (EXTENDED_COFF): Remove.
4634 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
4635 (EXTENDED_COFF): Don't undef.
4636 * config/alpha/alpha.c (alpha_file_start): Always assume
4638 Don't set targetm.asm_file_start_file_directive.
4639 [!OBJECT_FORMAT_ELF]: Remove.
4640 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
4642 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
4643 (DBX_DEBUGGING_INFO): Remove.
4644 (MIPS_DEBUGGING_INFO): Remove.
4645 (PREFERRED_DEBUGGING_TYPE): Remove.
4646 (DBX_OUTPUT_SOURCE_LINE): Remove.
4647 (SDB_OUTPUT_SOURCE_LINE): Remove.
4648 (DBX_CONTIN_LENGTH): Remove.
4649 (NO_DBX_FUNCTION_END): Remove.
4650 (ASM_STABS_OP): Remove.
4651 (ASM_STABN_OP): Remove.
4652 (ASM_STABD_OP): Remove.
4653 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
4654 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
4655 (PUT_SDB_DEF): Remove.
4656 (PUT_SDB_PLAIN_DEF): Remove.
4657 (PUT_SDB_TYPE): Remove.
4658 (sdb_label_count): Remove.
4659 (PUT_SDB_BLOCK_START): Remove.
4660 (PUT_SDB_BLOCK_END): Remove.
4661 (PUT_SDB_FUNCTION_START): Remove.
4662 (PUT_SDB_FUNCTION_END): Remove.
4663 (PUT_SDB_EPILOGUE_END): Remove.
4664 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
4665 (MIPS_DEBUGGING_INFO): Don't undef.
4666 (DBX_DEBUGGING_INFO): Don't undef.
4667 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
4668 (MIPS_DEBUGGING_INFO): Don't undef.
4669 (DBX_DEBUGGING_INFO): Don't undef.
4670 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
4671 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
4673 (alpha_start_function): Likewise.
4674 (sdb_label_count): Remove.
4675 (alpha_output_filename): Remove DBX_DEBUG handling.
4676 (alpha_file_start): Likewise.
4678 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4680 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
4681 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
4682 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
4684 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
4685 (ld_tls_support): Remove Solaris 8 references.
4686 (lwp_dir, lwp_spec): Remove support for alternate thread library.
4687 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
4688 * configure: Regenerate.
4689 * config.in: Regenerate.
4691 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
4692 * config/i386/sol2.h: Remove Solaris 8 references.
4694 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
4695 (i?86-*-solaris2.9): ... this.
4696 Remove Solaris 8 references.
4697 (Specific, *-*-solaris2*): Document Solaris 8 removal.
4698 Remove Solaris 8 references.
4700 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4702 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
4703 (mips-sgi-irix6.5*): Remove.
4704 * config.host (mips-sgi-irix*): Remove.
4705 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
4706 (set_have_as_tls): Remove *-*-irix6*.
4707 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
4708 * configure: Regenerate.
4710 * config/mips/iris6.h: Remove.
4711 * config/mips/iris6.opt: Remove.
4712 * config/mips/t-irix6: Remove.
4714 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
4715 (TARGET_IRIX6): Remove.
4716 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
4717 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
4718 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
4720 (mips_file_start): Likewise.
4721 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
4723 * config/mips/driver-native.c [__sgi__]: Remove.
4724 (host_detect_local_cpu) [__sgi__]: Remove.
4726 * config/mips/gnu-user.h: Remove iris5.h reference.
4728 * config/mips/mips-modes.def: Remove IRIX 6 reference.
4729 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
4730 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
4733 * gcc.c (main): Move asm_debug initialization ...
4734 (asm_debug): ... here.
4736 * ginclude/stddef.h (__STDDEF_H__): Don't define.
4738 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
4739 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
4740 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
4741 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
4742 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
4743 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
4745 * doc/tm.texi: Regenerate.
4747 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
4749 (MIPS Options, -march): Remove IRIX reference.
4750 * doc/install.texi (Binaries, SGI IRIX): Remove.
4751 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
4753 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
4755 2012-03-14 Martin Jambor <mjambor@suse.cz>
4757 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
4758 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
4759 (expand_expr_real_1): Do not handle misalignment if modifier is
4762 2012-03-14 Richard Guenther <rguenther@suse.de>
4765 * tree-vect-generic.c (type_for_widest_vector_mode): Take
4766 element type instead of mode, use build_vector_type_for_mode
4767 instead of the langhook, build a vector of proper signedness.
4768 (expand_vector_operations_1): Adjust.
4770 2012-03-14 Richard Guenther <rguenther@suse.de>
4773 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
4774 a cgraph node for a FUNCTION_DECL that comes from a constructor.
4775 (gimple_get_virt_method_for_binfo): Likewise.
4777 2012-03-14 Richard Guenther <rguenther@suse.de>
4779 PR tree-optimization/52571
4780 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4781 flag_section_anchors check ...
4782 (vect_can_force_dr_alignment_p): ... here. Do not re-align
4783 DECL_COMMON variables.
4785 2012-03-14 Richard Guenther <rguenther@suse.de>
4787 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
4788 * stor-layout.c (start_bitfield_representative): New function.
4789 (finish_bitfield_representative): Likewise.
4790 (finish_bitfield_layout): Likewise.
4791 (finish_record_layout): Call finish_bitfield_layout.
4792 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
4793 for QUAL_UNION_TYPE fields.
4794 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
4795 Stream DECL_BIT_FIELD_REPRESENTATIVE.
4796 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
4801 * expr.c (get_bit_range): Unconditionally extract bitrange
4802 from DECL_BIT_FIELD_REPRESENTATIVE.
4803 (expand_assignment): Adjust call to get_bit_range.
4805 2012-03-14 Richard Guenther <rguenther@suse.de>
4808 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
4809 the outermost conversion is a sign-change only.
4810 (fold_binary_loc): Disregard widening and sign-changing
4811 conversions when we determine if two variables are equal
4813 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
4814 (T1)x if the outermost conversion is a sign-change only.
4816 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
4819 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
4821 * config/i386/predicates.md (constant_call_address_operand): Declare
4822 as special predicate. Update all uses.
4824 2012-03-13 Jakub Jelinek <jakub@redhat.com>
4827 * c-parser.c (c_parser_postfix_expression)
4828 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
4830 * config/i386/smmintrin.h: Avoid /* within a comment.
4831 * config/i386/nmmintrin.h: Likewise.
4833 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
4835 * config/i386/i386.md (xbegin): Remove constraint from expander.
4837 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
4839 * config/i386/predicates.md (constant_call_address_operand): Declare
4840 as special predicate. Update all uses.
4841 * config/i386/i386.md: Remove mode from constant_call_address_operand
4843 * config/i386/i386.c (ix86_output_call_insn): Call
4844 constant_call_address_operand with VOIDmode.
4846 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
4848 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
4849 AND zero extended address correctly.
4851 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
4853 * config/i386/predicates.md (tls_symbolic_operand): Declare as
4855 (tls_modbase_operand): Ditto.
4856 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
4857 tls_modbase_operand predicates.
4859 2012-03-13 Martin Jambor <mjambor@suse.cz>
4861 * expr.c (expand_assignment): Handle misaligned scalar writes to
4862 memory through top-level MEM_REFs by calling store_bit_field.
4864 2012-03-13 Richard Guenther <rguenther@suse.de>
4867 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
4868 if Y is a constant multiple of 1 << CST.
4870 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
4873 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
4874 offset (size) to a value the insns can deal with.
4875 (expand_epilogue): Ditto.
4877 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4879 * config/arm/neon.ml (ops): Fixup expected instructions for
4880 unsigned vector compares.
4882 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
4884 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
4885 addresses only when %reg is not in word mode.
4887 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4889 * config/microblaze/microblaze.md: Fix typo.
4890 * tree-if-conv.c: Likewise.
4891 * tree-vect-patterns.c: Likewise.
4893 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4895 * config.gcc (extra_passes): Remove.
4896 * configure.ac (extra_passes): Don't substitute.
4897 * configure: Regenerate.
4898 * Makefile.in (EXTRA_PASSES): Remove.
4899 (GCC_PASSES): Remove $(EXTRA_PASSES).
4900 (MOSTLYCLEANFILES): Likewise.
4902 (install-common): Likewise.
4904 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
4906 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
4907 * config/i386/i386.c (ix86_decompose_address): Use
4908 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
4909 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
4910 thread pointer to a register.
4912 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
4914 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
4915 on tls_symbolic_operand.
4916 (tls_global_dynamic_64_<mode>): Likewise.
4918 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
4921 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
4922 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
4924 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
4927 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
4928 type from reg_class_t to enum reg_class.
4929 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
4931 2012-03-12 Andrew Pinski <apinski@cavium.com>
4933 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
4934 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
4935 (value_replacement): Likewise.
4936 (empty_block_p): Check also if the PHIs for the block are empty.
4938 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
4941 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
4942 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
4943 r184615 from 2012-02-28.
4945 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
4947 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
4948 (ix86_gen_tls_local_dynamic_base_64): Likewise.
4949 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
4950 and ix86_gen_tls_local_dynamic_base_64.
4951 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
4952 ix86_gen_tls_local_dynamic_base_64.
4954 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
4955 (*tls_global_dynamic_64_<mode>): This.
4956 (tls_global_dynamic_64): Renamed to ...
4957 (tls_global_dynamic_64_<mode>): This.
4958 (*tls_local_dynamic_base_64): Renamed to ...
4959 (*tls_local_dynamic_base_64_<mode>): This.
4960 (tls_local_dynamic_base_64): Renamed to ...
4961 (tls_local_dynamic_base_64_<mode>): This.
4963 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
4965 * config/i386/i386.c (ix86_option_override_internal): Properly
4966 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
4967 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
4968 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
4969 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
4971 * config/i386/sse.md (sse3_monitor64): Renamed to ...
4972 (sse3_monitor64_<mode>): This.
4974 2012-03-12 Tristan Gingold <gingold@adacore.com>
4976 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
4977 (ia64_function_arg_advance): Ditto.
4979 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4981 * config.gcc (mips*-*-openbsd*): Remove.
4982 * config/mips/openbsd.h: Remove.
4983 * config/mips/sdb.h: Remove.
4985 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
4986 * config/mips/mips.c (sdb_label_count): Remove.
4987 (mips_debugger_offset): Remove #if 0 code.
4988 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
4989 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
4991 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4993 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
4995 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
4996 Update binutils references.
4997 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
4998 Update binutils reference.
4999 Update Sun as/GNU ld caveat.
5000 Document binutils largefile requirement for LTO plugin.
5001 Remove reference to alternate libpthread.
5003 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5005 * config.gcc (alpha*-dec-osf5.1*): Remove.
5006 * config.host (alpha*-dec-osf*): Remove.
5007 * configure.ac (*-*-osf*): Remove.
5008 (alpha*-dec-osf*): Remove.
5009 * configure: Regenerate.
5011 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
5012 config/alpha/va_list.h, config/alpha/x-osf: Remove.
5014 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
5015 * config/alpha/alpha.c (struct machine_function): Update comment.
5016 (alpha_start_function): Remove Tru64 UNIX as handling for
5018 * config/alpha/alpha.md ("exception_receiver"): Remove
5019 TARGET_LD_BUGGY_LDGP.
5020 ("*exception_receiver_2"): Likewise.
5021 * except.c (finish_eh_generation): Remove Tru64 reference.
5022 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
5023 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
5024 * target.def (handle_pragma_extern_prefix): Remove.
5026 * Makefile.in (mips-tfile.o-warn): Remove.
5027 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
5028 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
5029 * mips-tdump.c, mips-tfile.c: Remove.
5031 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
5033 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
5034 (Specific, alpha*-dec-osf5.1): Note removal.
5035 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
5037 * doc/tm.texi: Regenerate.
5038 * doc/trouble.texi (Cross-Compiler Problems): Remove.
5040 2012-03-12 Richard Guenther <rguenther@suse.de>
5042 * config/arm/arm.c (neon_dereference_pointer): Do not call
5043 covert during RTL expansion.
5045 2012-03-12 Tristan Gingold <gingold@adacore.com>
5047 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
5048 Options. Mention -mpointer-size.
5050 2012-03-12 Richard Guenther <rguenther@suse.de>
5052 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
5053 build_nonstandard_integer_type.
5055 2012-03-12 Richard Guenther <rguenther@suse.de>
5057 * tree.c (signed_or_unsigned_type_for): Use
5058 build_nonstandard_integer_type.
5059 (signed_type_for): Adjust documentation.
5060 (unsigned_type_for): Likewise.
5061 * tree-pretty-print.c (dump_generic_node): Use standard names
5062 for non-standard integer types if available.
5064 2012-03-12 Tristan Gingold <gingold@adacore.com>
5066 * config/vms/vms.opt: Add vms-opts.h header.
5067 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
5069 (-mvms-return-codes): Document.
5070 (-mpointer-size): New option.
5071 (vms_pointer_size): Add enumeration.
5072 * config/vms/vms-opts.h: New file.
5073 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
5074 __INITIAL_POINTER_SIZE.
5075 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
5076 (C_COMMON_OVERRIDE_OPTIONS): Define.
5077 (DWARF2_ADDR_SIZE): Define.
5078 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
5079 * config/vms/vms-protos.h (vms_c_common_override_options):
5081 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
5082 if -mno-pointer-size.
5083 (vms_c_common_override_options): New function.
5084 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
5085 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
5086 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
5087 and flag_vms_pointer_size.
5088 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
5089 * config.gcc (*-*-*vms*): Define xm_file.
5090 (alpha*-dec-*vms*): Do not define xm_file.
5091 (alpha64-dec-*vms*): Remove.
5092 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
5095 2012-03-12 Jakub Jelinek <jakub@redhat.com>
5097 PR tree-optimization/51721
5098 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
5099 if (int) unsvar cmp CST.
5101 2012-03-12 Richard Guenther <rguenther@suse.de>
5103 * tree-sra.c (create_access_replacement): Only rename the replacement
5104 if we can rewrite it into SSA form. Properly mark register typed
5105 replacements that we cannot rewrite with TREE_ADDRESSABLE.
5106 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
5107 for aggregate or BLKmode results.
5109 2012-03-12 Jakub Jelinek <jakub@redhat.com>
5111 PR tree-optimization/52533
5112 * tree-vrp.c (register_edge_assert_for_2): Use double_int
5113 type for mask, only handle shifts by non-zero in-range
5114 shift count, for LE_EXPR and GT_EXPR if new_val is
5115 maximum, don't add the assertion.
5117 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
5119 * doc/invoke.texi: Document -mrtm option.
5120 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
5121 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
5122 (ix86_handle_option): Handle OPT_mrtm.
5123 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
5125 (x86_64-*-*): Ditto.
5126 * i386-builtin-types.def (INT_FTYPE_VOID): New.
5127 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5129 (ix86_target_string): Define -mrtm option.
5131 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
5133 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
5134 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
5136 (bdesc_special_args): Ditto.
5137 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
5138 (ix86_expand_special_args_builtin): Handle new built-in type.
5139 (ix86_expand_builtin): Handle XABORT instruction.
5140 * config/i386/i386.h (TARGET_RTM): New.
5141 * config/i386/i386.md (UNSPECV_XBEGIN): New.
5142 (UNSPECV_XEND): Ditto.
5143 (UNSPECV_XABORT): Ditto.
5144 (UNSPECV_XTEST): Ditto.
5151 * config/i386/i386.opt (mrtm): New.
5152 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
5153 * config/i386/rtmintrin.h: New header.
5154 * config/i386/xtestintrin.h: Ditto.
5156 2012-03-12 Tristan Gingold <gingold@adacore.com>
5158 * ginclude/stddef.h: Adjust previous patch.
5159 Use __VMS__ instead of VMS.
5161 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
5163 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
5164 Also convert sequences with CC setting arithmetic instruction.
5166 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
5168 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
5169 from C Language Options to Preprocessor Options.
5170 (C Dialect Options): Move -no-integrated-cpp documentation
5172 (Preprocessor Options): ...to here. Rewrite the description
5173 so it makes more sense, and remove discussion of merging front ends.
5175 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
5177 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
5179 (ix86_expand_setmem): Likewise.
5181 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
5183 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
5186 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
5188 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
5189 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
5191 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
5193 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
5195 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
5197 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
5200 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
5201 Uros Bizjak <ubizjak@gmail.com>
5203 * config/i386/predicates.md (call_insn_operand): Allow
5204 constant_call_address_operand in Pmode only.
5205 (sibcall_insn_operand): Ditto.
5206 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
5207 (*call_vzeroupper): Ditto.
5209 (*sibcall_vzeroupper): Ditto.
5210 (*call_value): Ditto.
5211 (*call_value_vzeroupper): Ditto.
5212 (*sibcall_value): Ditto.
5213 (*sibcall_value_vzeroupper): Ditto.
5214 (*indirect_jump): Ditto.
5215 (*tablejump_1): Ditto.
5216 (indirect_jump): Convert memory address to word mode for TARGET_X32.
5218 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
5221 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
5224 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
5225 Use movrt_negc instead of negc pattern for non-SH2A.
5227 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
5229 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
5231 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
5232 if Pmode != word_mode.
5233 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
5234 Pmode == SImode for TARGET_X32.
5236 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
5237 (tls_initial_exec_x32): Likewise.
5239 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
5241 PR rtl-optimization/52528
5242 * combine.c (can_combine_p): Add setting of subst_low_luid
5243 before call to expand_field_assignment().
5245 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
5247 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
5248 and related program names.
5250 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
5252 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
5254 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
5257 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
5258 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
5260 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
5261 (*movdi_internal_rex64): Use %E operand modifier for lea.
5262 (*movsi_internal): Ditto.
5264 (*lea<mode>_2): Ditto.
5265 (*lea_{3,4,5,6}_zext): Ditto.
5266 (*tls_global_dynamic_32_gnu): Ditto.
5267 (*tls_global_dynamic_64): Ditto.
5268 (*tls_dynamic_gnu2_lea_32): Ditto.
5269 (*tls_dynamic_gnu2_lea_64): Ditto.
5270 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
5272 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5274 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
5275 redefine to be NULL if the current bit-size is different from the
5276 configured bit-size.
5278 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
5279 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
5280 set the default tuning. Add asserts to make sure the cpu and tune
5281 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
5282 test whether the index is set, instead of > 0.
5283 (rs6000_file_start): Do not reset the default cpu if the current
5284 bit-size is different from the configured bit-size.
5286 2012-03-09 Tristan Gingold <gingold@adacore.com>
5288 * config/vms/vms-crtlmap.map: Add comments.
5289 Add entries needed to build Ada RTS.
5291 2012-03-09 Tristan Gingold <gingold@adacore.com>
5293 * ginclude/stddef.h: Do not define __size_t on VMS.
5295 2012-03-09 Tristan Gingold <gingold@adacore.com>
5297 * c-tree.h (c_default_pointer_mode): New variable.
5298 * c-decl.c (c_default_pointer_mode): New variable.
5299 (c_build_pointer_type): New function.
5300 (grokdeclarator): Call c_build_pointer_type instead
5301 of build_pointer_type.
5303 * config/vms/vms-c.c: Include c-tree.h
5304 (saved_pointer_mode): New variable.
5305 (handle_pragma_pointer_size): New function.
5306 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
5307 (vms_c_register_pragma): Register __pointer_size and
5308 __required_pointer_size pragmas.
5310 2012-03-09 Tristan Gingold <gingold@adacore.com>
5312 * config/vms/vms-c.c (vms_construct_include_filename): New function.
5313 (vms_c_register_includes): Reference it.
5315 2012-03-09 Andrew Pinski <apinski@cavium.com>
5318 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
5320 (tree_ssa_phiopt_worker): Go through all the PHIs for
5321 value_replacement instead of just the singleton one.
5322 (value_replacement): Change return type to int. Return 0 instead of
5324 Allow the middle basic block to contain more than just the defining
5326 Handle non empty middle basic blocks.
5327 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
5329 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
5331 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
5332 array reference and component reference.
5333 (analyze_scalar_evolution_for_address_of): New.
5335 2012-03-08 Jie Zhang <jzhang918@gmail.com>
5338 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
5339 (hwloop_pattern_reg): Fix set but not used warning.
5340 (bfin_reorg_loops): Remove unused parameter.
5341 (bfin_reorg): Update use of bfin_reorg_loops.
5343 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
5345 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
5346 with integer parameters in registers.
5347 (gen_push): Push register in word_mode instead of Pmode.
5348 (ix86_emit_save_regs): Likewise.
5349 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
5350 (gen_pop): Pop register in word_mode instead of Pmode.
5351 (ix86_emit_restore_regs_using_pop): Likewise.
5352 (ix86_expand_prologue): Replace Pmode with word_mode for push
5353 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
5354 restore RAX and R10 in word_mode.
5355 (ix86_emit_restore_regs_using_mov): Restore integer registers
5357 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
5359 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
5360 (ix86_split_long_move): Likewise.
5362 * config/i386/i386.md (W): New.
5363 (*push<mode>2_prologue): Replace :P with :W.
5364 (*pop<mode>1): Likewise.
5365 (*pop<mode>1_epilogue): Likewise.
5366 (push/pop peephole2): Use word_mode scratch registers.
5368 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
5370 * config/i386/predicates.md (indirect_branch_operand): Simplify.
5372 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
5374 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
5375 for constants in [-63,63].
5377 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
5381 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
5383 * config/i386/i386.c (ix86_print_operand_address): Only handle
5384 zero-extended DImode addresses.
5386 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5388 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
5389 * configure: Regenerate.
5391 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
5394 * config/avr/avr.c (avr_mem_clobber): New static function.
5395 (avr_expand_delay_cycles): Add memory clobber operand to
5396 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
5397 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
5398 (enable_interrupt, disable_interrupt): New expander.
5399 (nopv, sleep, wdr): New expanders.
5400 (delay_cycles_1): Add memory clobber.
5401 (delay_cycles_2): Add memory clobber.
5402 (delay_cycles_3): Add memory clobber.
5403 (delay_cycles_4): Add memory clobber.
5404 (cli_sei): New insn from former "enable_interrupt",
5405 "disable_interrupt" with memory clobber.
5406 (*wdt): New insn from former "wdt" with memory clobber.
5407 (*nopv): Similar, but for "nopv".
5408 (*sleep): Similar, but for "sleep".
5410 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
5411 Kaz Kojima <kkojima@gcc.gnu.org>
5414 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
5415 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
5416 (SUBTARGET_OVERRIDE_OPTIONS): Define.
5418 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
5420 * config/i386/predicates.md (x86_64_zext_general_operand): New.
5421 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
5422 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
5424 2012-03-07 Walter Lee <walt@tilera.com>
5426 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
5427 REG_CFA_* notes for the stack pointer.
5428 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
5429 EH_RETURN_STACKADJ_RTX.
5430 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
5431 generate REG_CFA_* notes for the stack pointer.
5432 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
5433 by EH_RETURN_STACKADJ_RTX.
5435 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
5437 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
5438 when __AVR_3_BYTE_PC__ is defined.
5440 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
5442 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
5443 (ix86_print_operand): Handle '^'.
5444 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
5445 using P mode iterator. Add %^ to asm template to conditionally emit
5447 (*rep_movdi_rex64): Ditto.
5448 (*strsetdi_rex_1): Ditto.
5449 (*rep_stosdi_rex64): Ditto.
5450 (*strmov{si,hi,qi}_1): Add %^ to asm template to
5451 conditionally emit addr32 prefix.
5452 (*rep_mov{si,qi}): Ditto.
5453 (*strset{si,hi,qi}): Ditto.
5454 (*rep_stos{si,qi}): Ditto.
5455 (*cmpstrnqi_nz_1): Ditto.
5456 (*cmpstrnqi_1): Ditto.
5457 (*strlenqi_1): Ditto.
5459 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
5461 * config/i386/i386.c (function_value_64): Return pointers in
5462 word_mode instead of Pmode.
5463 (ix86_promote_function_mode): Likewise.
5465 2012-03-07 Richard Guenther <rguenther@suse.de>
5467 * coverage.c (get_gcov_type): Use type_for_mode.
5468 (get_gcov_unsigned_t): Likewise.
5469 * expr.c (store_constructor): Use type_for_mode.
5470 (try_casesi): Likewise.
5471 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
5472 (add_standard_iv_candidates): Use standard type trees.
5473 * dojump.c (do_jump): Remove dead code.
5475 2012-03-07 Richard Guenther <rguenther@suse.de>
5477 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
5479 2012-03-07 Richard Guenther <rguenther@suse.de>
5481 * convert.c (strip_float_extensions): Move ...
5482 * tree.c (strip_float_extensions): ... here.
5484 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
5487 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
5489 2012-03-07 Richard Guenther <rguenther@suse.de>
5491 * omp-low.c (extract_omp_for_data): Use signed_type_for.
5492 (expand_omp_for_generic): Likewise.
5493 (expand_omp_for_static_nochunk): Likewise.
5494 (expand_omp_for_static_chunk): Likewise.
5495 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
5496 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
5497 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
5498 Use unsigned_type_for.
5499 (vect_create_cond_for_align_checks): Use signed_type_for.
5501 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
5503 PR rtl-optimization/52203
5504 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
5505 all callers to pass NULL except ...
5506 (reset_sched_cycles_in_current_ebb): ... here, save the value
5507 in new variable 'empty'. Increase issue_rate only for
5510 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
5513 * Makefile.in: Let install-gcc-ar depend on installdirs,
5514 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
5515 Don't double canonicalize if cross-compiling.
5517 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
5520 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
5521 to: RAMPZ, RAMPY, RAMPX, RAMPD.
5522 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
5524 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
5527 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
5529 * config/avr/avr.md (xload_8): Adjust insn length.
5531 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
5534 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
5535 if RAMPZ affects reading from RAM.
5537 2012-03-07 Richard Guenther <rguenther@suse.de>
5541 * doc/invoke.texi (Precompiled Headers): Remove sentence that
5542 suggests you can include PCHs from inside another header.
5544 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
5547 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
5549 2012-03-07 Kai Tietz <ktietz@redhat.com>
5551 * doc/invoke.texi (fwritable-relocated-rdata): Document
5552 new Cygwin/MinGW target option.
5553 * config/i386/winnt.c (i386_pe_unique_section): Ignore
5554 reloc if flag -fwritable-relocated-rdata is not set.
5555 (i386_pe_section_type_flags): Likewise.
5556 * config/i386/cygming.opt (fwritable-relocated-rdata):
5557 Add new flag variable flag_writable_rel_rdata.
5559 2012-03-07 Richard Guenther <rguenther@suse.de>
5561 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
5562 precision against gimple constraints.
5564 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
5567 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
5569 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
5570 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
5572 (init_emit_regs): Move associated initialization to...
5573 (init_emit_once): ...here.
5575 2012-03-06 Richard Henderson <rth@redhat.com>
5577 * config/m68k/m68k.h (ISA_HAS_TAS): New.
5578 * config/m68k/sync.md (atomic_test_and_set): Use it.
5579 (atomic_test_and_set_1): Likewise.
5581 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5584 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
5585 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
5586 (vector_ltgt<mode>): Likewise.
5587 (vector_ordered<mode>): Likewise.
5588 (vector_unordered<mode>): Likewise.
5589 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
5591 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
5593 * trans-mem.c: New typedef for tm_region_p.
5594 Define vector types for tm_region_p.
5595 (tm_region_init): Replace region_worklist to a vector called
5598 2012-03-06 Richard Guenther <rguenther@suse.de>
5600 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
5601 MEM_REF with constant pointer operand.
5603 2012-03-06 Richard Guenther <rguenther@suse.de>
5606 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
5608 2012-03-06 Tristan Gingold <gingold@adacore.com>
5610 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
5611 (external_model_kind): Improve documentation.
5612 (vms_pragma_extern_model): Handle relaxed_redef.
5613 (vms_c_register_pragma): Allow expansion for nomember_alignment.
5615 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
5617 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
5618 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
5619 Some more notes on EIND usage and reorder EIND subsection.
5621 2012-03-06 Tristan Gingold <gingold@adacore.com>
5623 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
5624 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
5626 2012-03-06 Tristan Gingold <gingold@adacore.com>
5628 * config/vms/t-vmsnative (version): Define.
5629 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
5631 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
5633 PR rtl-optimization/52250
5634 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
5635 to put note list into. Unconditionally call move_bb_info.
5636 (move_bb_info): Do not assert the blocks being in the same region,
5637 just drop the note list if they are not.
5639 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
5642 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
5643 and use unified expansion logic.
5644 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
5645 closer to the existing movt insn.
5646 (negc): Rename insn to *negc. Add new expander.
5647 (movnegt): Use xor pattern for T bit negation. Reserve helper
5648 constant for negc pattern.
5649 (*movnegt): New insn and splitter.
5651 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
5653 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
5656 2012-03-05 Richard Henderson <rth@redhat.com>
5658 * genemit.c (main): Include "target.h" in insn-emit.c.
5659 * Makefile.in (insn-emit.o): Depend on TARGET_H.
5660 * config/sh/sync.md (atomic_test_and_set): Reference
5661 targetm.atomic_test_and_set_trueval instead of
5662 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
5664 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
5666 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
5669 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
5671 * langhooks.c (add_builtin_type): New function.
5672 * langhooks.h (add_builtin_type): Export it.
5673 * config/mep/mep.c (mep_init_builtins): Use it.
5674 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
5676 2012-03-05 Jakub Jelinek <jakub@redhat.com>
5679 * tree.h (BLOCK_SAME_RANGE): Define.
5680 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
5681 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
5682 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
5683 isn't equal to supercontext fragment's fragment chain.
5684 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
5686 (blocks_nreverse_all): Likewise.
5687 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
5688 BLOCK_SUPERCONTEXT to supercontext fragment instead of
5689 supercontext fragment's fragment origin.
5690 * dwarf2out.c (add_high_low_attributes): If stmt has the same
5691 range as its parent (or parents thereof etc.), use the parent's
5692 DW_AT_ranges value instead of creating a new .debug_ranges range.
5694 2012-03-05 Richard Henderson <rth@redhat.com>
5697 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
5698 * omp-low.c (expand_omp_atomic): Assume anything aligned to
5699 BIGGEST_ALIGNMENT is aligned.
5701 2012-03-05 Richard Henderson <rth@redhat.com>
5703 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
5704 * config/sh/sh.c: ... here.
5706 2012-03-05 Richard Henderson <rth@redhat.com>
5709 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
5710 instead of calling negqi2 directly.
5712 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
5715 * trans-mem.c (tm_region_init): Use last_basic_block.
5717 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
5719 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
5720 * config/sh/sync.md (atomic_test_and_set): New expander.
5721 (tasb, atomic_test_and_set_soft): New insns.
5722 * config/sh/sh.opt (menable-tas): New option.
5723 * doc/invoke.texi (SH Options): Document it.
5725 2012-03-05 Richard Guenther <rguenther@suse.de>
5727 * cfgloop.c (verify_loop_structure): Verify dominators before
5729 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
5730 dominators from here.
5731 * graphite-scop-detection.c (create_sese_edges): Likewise.
5732 * loop-doloop.c (doloop_optimize_loops): Likewise.
5733 * loop-init.c (loop_optimizer_init): Likewise.
5734 * loop-unroll.c (unroll_and_peel_loops): Likewise.
5735 * loop-unswitch.c (unswitch_loops): Likewise.
5736 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
5737 * tree-parloops.c (parallelize_loops): Likewise. Verify
5738 only when checking is enabled.
5739 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
5741 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
5743 * genautomata.c (parse_automata_opt): New static function.
5744 (initiate_automaton_gen): Remove all option handling code. Remove
5745 argc argument. All callers changed.
5746 (main): Call init_rtx_reader_args_cb with the new function as argument.
5748 2012-03-05 Richard Guenther <rguenther@suse.de>
5750 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
5751 * tree-if-conv.c (combine_blocks): Free post-dominator info
5753 * tree-parloops.c (create_parallel_loop): Free and re-compute
5754 dominator info after breaking it.
5756 2012-03-05 Richard Guenther <rguenther@suse.de>
5759 * optabs.h (trapv_unoptab_p): New function.
5760 (trapv_binoptab_p): Likewise.
5761 * optabs.c (expand_binop): Use emit_libcall_block_1 with
5762 a proper equiv_may_trap argument.
5763 (expand_unop): Likewise.
5764 (emit_libcall_block_1): Take extra argument whether the
5765 instruction may trap. Renamed from ...
5766 (emit_libcall_block): ... this. New wrapper.
5768 2012-03-05 Jakub Jelinek <jakub@redhat.com>
5770 PR tree-optimization/51721
5771 * tree-vrp.c (register_edge_assert_for_2): If comparing
5772 lhs of right shift by constant with an integer constant,
5773 add ASSERT_EXPRs for the rhs1 of the right shift.
5775 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
5777 2012-03-05 Richard Guenther <rguenther@suse.de>
5779 * tree.c (integer_zerop): Handle VECTOR_CSTs.
5780 (integer_onep): Likewise.
5781 (integer_all_onesp): Likewise.
5783 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
5785 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
5787 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
5789 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
5790 instead of TARGET_64BIT.
5792 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
5794 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
5797 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
5799 * config/i386/i386.c (ix86_print_operand_address): Only handle
5800 zero-extended DImode addresses.
5802 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
5804 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
5805 taken and cputaken as bool.
5807 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
5809 * config/i386/constraints.md (Ya): New internal constraint.
5810 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
5811 (*zero_extendsidi2_rex64): Add x,x alternative.
5812 (*zero_extendsidi2): Ditto. Add o,0 alternative.
5813 Remove flags reg clobber. Adjust corresponding splits.
5814 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
5815 zero_extendqisi2 expanders using SWI12 mode iterator.
5816 (zero_extend<mode>si2_and): Macroize insn from
5817 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
5819 (*zero_extend<mode>si2): Macroize insn from
5820 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
5821 (*zero_extend*2_movzbl_and): Remove insn patterns.
5822 (zero_extendqihi2_and): Merge corresponding splitter.
5823 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
5824 (*zero_extend*2_movzbl_and): Remove insn patterns.
5825 (*anddi_1): Split TYPE_IMOVX instructions.
5826 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
5828 (and->zext splitter): Add splitter pattern.
5829 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
5831 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
5833 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
5835 (Debugging Options): Likewise.
5836 (Optimize Options): Likewise.
5837 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
5838 with other architectures. Use official processor names with correct
5839 spelling/capitalization. Fix formatting and grammar issues.
5840 (i386 and x86-64 Windows Options): Similar cleanup here.
5842 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
5844 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
5846 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
5848 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
5849 DBX_REGISTER_NUMBER.
5851 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
5853 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
5854 operand is CONST_INT. Take COSTS_N_INSNS into account.
5855 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
5858 2012-03-02 Richard Henderson <rth@redhat.com>
5860 * optabs.c (expand_atomic_test_and_set): Honor
5861 atomic_test_and_set_trueval even when atomic_test_and_set
5862 optab is not in use.
5864 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
5868 * config/sh/sh.c (sh_register_move_cost): Increase cost between
5869 GENERAL_REGS and FP_REGS for SImode.
5871 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
5874 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
5875 (absdi2): New expander.
5876 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
5878 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
5880 * config/sh/sync.md (atomic_exchange<mode>): New expander.
5881 (atomic_exchange<mode>_soft): New insn.
5883 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
5885 * config/sh/sync.md: Update copyright notice dates.
5886 (atomic_compare_and_swap<mode>): Use SImode for return value instead
5888 (atomic_compare_and_swap<mode>_soft): Likewise.
5890 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
5893 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
5894 * config/sh/sh.c: Update copyright notice dates.
5895 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
5896 alignment for TARGET_HARD_SH4.
5897 (sh_option_override): Reduce default function alignment. Set
5898 loop alignment to 4 bytes when not optimizing for size.
5900 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
5903 * doc/invoke.texi (floop-flatten): Remove.
5904 * toplev.c (process_options): Remove references to flag_loop_flatten.
5905 * tree-ssa-loop.c (gate_graphite_transform): Same.
5906 * common.opt (floop-flatten): Obsolete.
5907 * graphite-poly.c (apply_poly_transforms): Remove reference to
5909 * Makefile.in (graphite-flattening.o): Remove.
5910 * graphite-flattening.c: Remove.
5912 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
5914 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
5915 having mode compatible with the mode of previous compare. Substitute
5916 compare mode of previous compare with the mode, compatible
5917 with eliminated and previous compare.
5919 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
5921 * config/rs6000/dfp.md (floatdidd2): New define_insn.
5923 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
5925 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
5926 compatible with CCGOCmode and CCGCmode.
5928 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
5930 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
5932 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5934 * config/arm/arm.c (arm_sat_operator_match): New function.
5935 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
5936 * config/arm/arm.md ("insn" attribute): Add "sat" value.
5937 ("SAT", "SATrev"): New code iterators.
5938 ("SATlo", "SAThi"): New code iterator attributes.
5939 ("*satsi_<SAT:code>"): New pattern.
5940 ("*satsi_<SAT:code>_shift"): Likewise.
5941 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
5942 and "shift" attributes.
5943 ("arm_usatsihi"): Add "insn" attribute.
5944 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
5945 by powers of two. Do not allow shift by 32.
5947 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
5950 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
5951 to pass the argument in the register of "natural" mode.
5953 2012-03-02 Richard Guenther <rguenther@suse.de>
5955 PR tree-optimization/52406
5956 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
5957 (struct indices): Add unconstrained_base member.
5958 (struct dr_alias): Remove unused vops member.
5959 (DR_UNCONSTRAINED_BASE): New define.
5960 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
5961 add indices to allow their disambiguation. Make DR_BASE_OBJECT
5962 be an artificial access that covers the whole indexed object,
5963 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
5964 plain decl base-objects to their MEM_REF variant.
5965 (dr_may_alias_p): When the base-object of either data reference
5966 has unknown size use only points-to information.
5967 (compute_affine_dependence): Make dumps easier to read and
5969 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
5970 DR_REF when looking for packed references.
5971 (vect_supportable_dr_alignment): Likewise.
5973 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
5975 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
5976 Improve conditions for peepholes of loads followed by commutative
5978 * config/arm/ldmstm.md: Regenerated.
5980 2012-03-02 Richard Guenther <rguenther@suse.de>
5982 * BASE-VER: Set to 4.8.0.
5984 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
5986 * config.gcc (obsolete): Add all ARM targets using the FPA.
5987 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
5988 * doc/install.texi: Avoid references to obsolete ARM ports.
5990 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
5992 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
5994 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
5995 Joern Rennecke <joern.rennecke@embecosm.com>
5997 * doc/extend.texi: Expand and update information on interrupt
5998 attribute for Epiphany.
6000 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
6002 * config/sh/sh-protos.h: Update copyright notice dates.
6003 * config/sh/sh.h: Likewise.
6004 * config/sh/sh.md: Likewise.
6005 * config/sh/constraints.md: Likewise.
6006 * config/sh/predicates.md: Likewise.
6008 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
6010 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
6011 * config/sh/sh.c (tertiary_reload_operand): Likewise.
6013 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
6015 * config/sh/constraints.md: Fix comment typo.
6017 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6020 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
6021 unsigned HOST_WIDE_INT.
6022 (zvdep_imm64): Likewise.
6023 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
6024 (vdepi_and): Likewise.
6025 Likewise for unamed 64-bit patterns.
6026 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
6028 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
6031 PR rtl-optimization/52417
6032 * cselib.c (cselib_any_perm_equivs): New variable.
6033 (cselib_reset_table): Check that it's not set when not
6034 preserving constants.
6035 (cselib_add_permanent_equiv): Set it.
6036 (cselib_have_permanent_equivalences): New.
6037 (cselib_init, cselib_finish): Reset it.
6038 * cselib.h (cselib_have_permanent_equivalences): Declare.
6039 * alias.c (get_addr): Restore earlier behavior when there
6040 aren't permanent equivalences.
6042 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
6044 * config/mn10300/mn10300-modes.def: Fix copyright notice.
6045 * config/v850/v850-modes.def: Fix copyright notice.
6047 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
6049 * doc/extend.texi (AVR Built-in Functions): Document
6050 __builtin_avr_flash_segment.
6052 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
6053 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
6054 (*split.flash_segment): New insn-and-split.
6055 * config/avr/avr.c (avr_init_builtins): Add local variables:
6056 const_memx_void_node, const_memx_ptr_type_node,
6057 char_ftype_const_memx_ptr.
6059 2012-03-01 Jakub Jelinek <jakub@redhat.com>
6061 PR tree-optimization/52445
6062 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
6063 add ssa_name_ver, offset and size fields and change store field
6065 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
6066 (add_or_mark_expr): Likewise. Only consider previous stores
6067 with the same size and offset.
6068 (nt_init_block): Only look at gimple_assign_single_p stmts,
6069 doesn't look at rhs2.
6071 2012-03-01 Richard Guenther <rguenther@suse.de>
6074 * tree-cfg.c (verify_gimple_assign_unary): Allow any
6075 conversions from integral types to pointer types.
6077 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
6079 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
6080 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
6081 unintentionally removed in r184616.
6083 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6085 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
6088 2012-02-29 Jakub Jelinek <jakub@redhat.com>
6089 Uros Bizjak <ubizjak@gmail.com>
6092 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
6093 alternatives, add "e" constraint to the new last alternative
6094 and ! to last 3 alternatives.
6096 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
6098 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
6099 DW_AT_artificial attributes at the end of the processing.
6100 (gen_array_type_die): Likewise.
6101 (gen_enumeration_type_die): Likewise.
6102 (gen_struct_or_union_type_die): Likewise.
6103 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
6106 2012-02-29 Jakub Jelinek <jakub@redhat.com>
6109 * expr.c (expand_assignment): If doing misaligned store that doesn't
6110 cover all mode bits, perform a RMW cycle.
6112 PR tree-optimization/52429
6113 * tree-parloops.c (separate_decls_in_region_debug): Return early
6114 if var is LABEL_DECL.
6116 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6118 PR tree-optimization/52424
6119 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
6120 calling dom_thread_across_edge.
6122 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
6124 * config/avr/avr.c: Move definition of TARGET macros to end of file.
6126 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
6128 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
6129 * config/avr/avr.c (avr_output_bld): Remove unused function.
6130 (avr_out_sbxx_branch): Use "%T" to print bit position.
6132 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
6134 * config/avr/avr.md: Untabify.
6136 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
6138 * config/avr/avr.md (eqne): New code iterator.
6139 (*dec-and-branchsi): Use it in text peephole's condition.
6140 (*dec-and-branchhi): Ditto.
6141 (*dec-and-branchqi): Ditto.
6143 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
6146 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
6147 the device does not have the skip-bug.
6149 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
6151 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
6152 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
6153 -mpretend-cmove): New.
6155 2012-02-29 Jakub Jelinek <jakub@redhat.com>
6158 * df.h (struct df_d): Adjust comment that hard_regs_live_count
6159 doesn't count DEBUG_INSN refs.
6160 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
6161 for DEBUG_INSN refs.
6163 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6167 2012-02-20 Richard Guenther <rguenther@suse.de>
6168 PR tree-optimization/52298
6169 * tree-vect-stmts.c (vectorizable_load): Properly use
6170 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
6172 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
6175 * gimple.h (gimple_in_transaction): New.
6176 (gimple_set_in_transaction): New.
6177 (struct gimple_statement_base): Add in_transaction field.
6178 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
6180 (tree_ssa_lim_initialize): Compute transaction bits.
6181 * tree.h (compute_transaction_bits): Protoize.
6182 * trans-mem.c (tm_region_init): Use the heap to store BB
6184 (compute_transaction_bits): New.
6186 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6188 * gcc.c (display_help): Document --help=common and sort entries
6191 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6193 * doc/install.texi: Document check-$LANG specific shortcuts
6195 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6198 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
6200 * config/arm/arm_neon.h: Regenerate.
6201 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
6202 (neon_vcgeu): New insn.
6203 (neon_vcgtu): Likewise.
6204 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
6205 (ops): Unsigned comparison intrinsics call a different builtin.
6207 2012-02-28 Richard Guenther <rguenther@suse.de>
6210 * config/i386/i386.c (ix86_expand_vector_set): Fix element
6211 ordering for the VEC_CONCAT for two element vectors for
6212 V2SFmode, V2SImode and V2DImode.
6214 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
6217 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
6218 detecting big-endian triplets.
6220 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
6222 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
6223 mode if there is no type information available.
6225 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
6227 PR tree-optimization/53207
6228 * doc/invoke.texi: Document as experimental and relying on graphite.
6230 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
6232 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
6233 of initializer to changes from r184614.
6235 2012-02-28 Richard Guenther <rguenther@suse.de>
6237 PR tree-optimization/52395
6238 * tree-sra.c (build_ref_for_offset): Also look at the base
6239 TYPE_ALIGN when figuring out the alignment of the replacement.
6241 2012-02-28 Richard Guenther <rguenther@suse.de>
6243 PR tree-optimization/52402
6244 * ipa-prop.c (ipa_modify_call_arguments): Properly use
6245 mis-aligned types when creating the accesses at the call site.
6247 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
6249 * config/avr/builtins.def: New file.
6250 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
6251 * config/avr/avr.c (enum avr_builtin_id): Use it.
6252 (avr_init_builtins): Use it. And use avr_bdesc.
6253 (bdesc_1arg): Remove.
6254 (bdesc_2arg): Remove.
6255 (bdesc_3arg): Remove.
6256 (struct avr_builtin_description): Add field n_args.
6257 (avr_bdesc): New static variable using builtins.def.
6258 (avr_expand_builtin): Use it.
6259 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
6260 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
6261 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
6263 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
6266 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
6267 match only one single hard register with respective hard reg rtx.
6268 (movmemx_<mode>): Ditto.
6269 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
6270 insn anatomy of movmem[x]_<mode>.
6271 (avr_out_movmem): Same for printing assembler and operand usage.
6273 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
6277 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
6278 address spaces located outside of device flash.
6280 * config/avr/avr.h (base_arch_s): Remove field n_segments.
6281 (mcu_type_s): Add field n_flash.
6282 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
6283 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
6284 (AVR_MCU): Add N_FLASH argument.
6285 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
6286 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
6287 macro __FLASH<n> if that address space makes sense for the device.
6288 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
6289 outside of target flash.
6290 (avr_asm_named_section): Ditto.
6291 (avr_asm_select_section): Ditto.
6292 (avr_addr_space_convert): Ditto.
6293 (avr_emit_movmemhi): Ditto.
6294 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
6295 address space is outside of device flash.
6296 (avr_insert_attributes): Ditto.
6297 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
6298 avr_current_arch->n_segments.
6300 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
6303 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
6304 (*movabs<mode>_2): Likewise.
6306 2012-02-27 Jakub Jelinek <jakub@redhat.com>
6309 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
6310 s_register_operand in the test instead of REG_P. Don't call
6311 gen_reg_rtx if it won't be used.
6313 PR tree-optimization/52376
6314 * ipa-split.c (split_function): Ignore CLOBBER stmts.
6316 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
6318 * ifcvt.c (noce_get_condition): Check condition variable is not
6319 small_register_classes_for_mode_p before accepting.
6321 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
6323 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
6325 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6328 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6329 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
6331 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
6333 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
6335 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
6337 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
6339 * config/sh/predicates.md: Remove blank lines.
6340 * config/sh/sh.c: Fix typos in comments.
6341 * config/sh/constraints.md: Likewise.
6342 * config/sh/sh.md: Remove blank lines.
6343 Fix typos in comments. Use ;; as comment characters.
6345 2012-02-26 Walter Lee <walt@tilera.com>
6347 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
6348 (replace_mov_pcrel_step2): Ditto.
6350 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
6353 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
6354 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
6355 and locs that reference values newer than the non-canonical value
6356 at hand. Return the canonical value as a worst case.
6357 (memrefs_conflict_p): Walk canonical value's locs.
6360 * cselib.c (preserve_only_constants): Rename to...
6361 (preserve_constants_and_equivs): ... this. Split out...
6362 (invariant_or_equiv_p): ... this. Preserve plus expressions
6363 of other preserved expressions too.
6364 (cselib_reset_table): Adjust.
6365 * var-tracking.c (reverse_op): Use canonical value to build
6368 2012-02-23 Kai Tietz <ktietz@redhat.com>
6370 * config/i386/i386.c (ix86_delegitimize_address): Handle
6371 UNSPEC_PCREL plus displacement.
6373 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
6376 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
6377 to test for unusedness in st X addressing.
6379 2012-02-24 Richard Guenther <rguenther@suse.de>
6382 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
6383 (is_gimple_reg_type): Move inline ...
6384 * gimple.h (is_gimple_reg_type): ... here.
6386 2012-02-24 Richard Guenther <rguenther@suse.de>
6389 * passes.c (execute_function_todo): When verifying SSA form
6390 verify gimple form first.
6391 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
6393 2012-02-24 Richard Guenther <rguenther@suse.de>
6396 * fold-const.c (fold_addr_of_array_ref_difference): New function.
6397 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
6399 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6401 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
6403 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6405 * tree-phinodes.c (make_phi_node): Mark static.
6406 * tree-flow.h (make_phi_node): Remove extern decl.
6407 * doc/gimple.texi (make_phi_node): Remove documentation.
6409 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6411 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
6412 * tree-ssa-sccvn.c (print_scc): Ditto.
6414 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6416 * doc/passes.texi (Full redundancy elimination): Fix typo.
6418 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6420 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
6422 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
6425 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
6427 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
6430 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
6432 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
6434 * config/avr/avr.md (code_stdname): Add ior, xor.
6435 (xior): New code iterator.
6436 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
6437 (*<code_stdname><mode>qi.byte1-3): Ditto.
6439 2012-02-23 Jakub Jelinek <jakub@redhat.com>
6441 PR tree-optimization/52019
6442 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
6445 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6447 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
6448 HAVE_INITFINI_ARRAY to work around namespace pollution in
6449 certain versions of newlib system headers.
6450 * config.in: Regenerate.
6451 * configure: Regenerate.
6452 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
6453 instead of HAVE_INITFINI_ARRAY.
6455 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
6458 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
6459 is not offsettable memory reference.
6461 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
6464 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
6465 setting avr_need_clear_bss_p for __gnu_lto* symbols.
6467 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
6469 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
6470 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
6472 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6474 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
6475 library on Solaris 8 even without TLS support.
6476 * configure: Regenerate.
6478 2012-02-22 Richard Guenther <rguenther@suse.de>
6481 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
6482 for GIMPLE_DEBUG stmts.
6484 2012-02-22 Martin Jambor <mjambor@suse.cz>
6487 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
6488 according to the base object.
6490 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
6492 PR rtl-optimization/50063
6493 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
6494 and 2 (8-bit SP) in operand 2.
6495 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
6496 setup to use movhi_sp_r instead of vanilla move to write SP.
6497 Adjust REG_CFA notes to superseed unspec.
6498 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
6500 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
6501 known to be off) only with TARGET_NO_INTERRUPTS. Never use
6502 irq_state 1 (IRQ known to be on) here.
6504 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
6506 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
6508 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
6509 assign_hard_reg): Likewise.
6511 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
6513 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
6515 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
6518 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
6519 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
6521 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
6523 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
6524 prototype from here to...
6525 * config/avr/avr.h: ...here.
6527 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
6530 * thumb2.md (thumb2_shiftsi3_short): Split register and
6531 immediate shifts. For register shifts tie operands 0 and 1.
6532 (peephole2 for above): Check that register-controlled shifts
6533 have suitably tied operands.
6535 2012-02-21 Quentin Neill <quentin.neill@amd.com>
6538 * config/i386/bdver1.md (bdver1_call, bdver1_push,
6539 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
6540 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
6541 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
6542 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
6543 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
6544 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
6545 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
6546 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
6547 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
6548 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
6549 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
6550 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
6551 bdver1_ssevector_avx256_unaligned_load,
6552 bdver1_ssevector_sse128_unaligned_load,
6553 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
6554 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
6555 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
6556 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
6557 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
6558 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
6559 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
6560 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
6561 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
6562 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
6563 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
6564 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
6565 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
6566 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
6567 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
6568 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
6569 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
6570 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
6571 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
6572 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
6573 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
6574 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
6575 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
6576 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
6577 bdver1_ssediv_double_load, bdver1_ssediv_double,
6578 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
6579 Add "bdver2" attribute.
6581 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6583 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
6584 default if possible and not specified otherwise.
6586 2012-02-21 Richard Guenther <rguenther@suse.de>
6589 * gimplify.c (create_tmp_from_val): Use the main variant type
6590 for the type of the temporary we create.
6592 2012-02-21 Richard Guenther <rguenther@suse.de>
6594 PR tree-optimization/52324
6595 * gimplify.c (gimplify_expr): When re-gimplifying expressions
6596 do not gimplify a MEM_REF address operand if it is already
6599 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6601 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
6602 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
6604 2012-02-21 Richard Guenther <rguenther@suse.de>
6606 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
6607 nested_in_vect_loop.
6609 2012-02-21 Jakub Jelinek <jakub@redhat.com>
6611 PR tree-optimization/52318
6612 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
6613 vdef also to non-pure/const call stmts in the sequence.
6615 2012-02-21 Tristan Gingold <gingold@adacore.com>
6617 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
6619 2012-02-20 David S. Miller <davem@davemloft.net>
6621 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
6622 don't use the "rd %pc" instruction on v9 for PIC register loads.
6624 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
6627 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
6628 in a transaction safe function.
6630 2012-02-20 Kai Tietz <ktietz@redhat.com>
6633 * stor-layout.c (place_field): Handle desired_align for
6636 2012-02-20 Richard Guenther <rguenther@suse.de>
6638 PR tree-optimization/52298
6639 * tree-vect-stmts.c (vectorizable_store): Properly use
6640 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
6642 (vectorizable_load): Likewise.
6643 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
6644 Access DR_STEP after ensuring it is not NULL.
6646 2012-02-20 Jakub Jelinek <jakub@redhat.com>
6648 PR tree-optimization/52286
6649 * fold-const.c (fold_binary_loc): For (X & C1) | C2
6650 optimization use double_int_to_tree instead of build_int_cst_wide,
6651 rewrite to use double_int vars.
6653 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6656 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
6658 Remove -e 0 from $gcc_cv_ld invocation.
6659 Only use __GLIBC_PREREQ if defined.
6660 Enable on Solaris since Solaris 8 patch.
6661 (gcc_SUN_LD_VERSION): New macro.
6662 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
6663 gcc_SUN_LD_VERSION for version number format.
6664 * configure: Regenerate.
6665 * varasm.c (get_elf_initfini_array_priority_section): Set
6666 SECTION_NOTYPE for non-default priority.
6667 Use get_section instead of get_unnamed_section to emit
6668 .init_array/.fini_array with default priority.
6670 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
6672 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
6673 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
6674 (mips_start_unique_function, mips_output_mips16_rdhwr)
6675 (mips_code_end): New functions.
6676 (TARGET_ASM_CODE_END): Define.
6678 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
6680 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
6681 to stubs with non-sibling calls.
6683 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
6685 * doc/invoke.texi (-fira-* options): Copy-edit.
6686 (ira-* parameters): Copy-edit.
6688 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
6690 * doc/invoke.texi: Minor copy-edits to bring into conformance with
6691 GCC coding conventions.
6693 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
6695 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
6696 when used as adjectives.
6698 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
6700 * doc/invoke.texi: Clean up "that"/"which" confusion.
6702 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
6704 * system.h: Poison SMALL_REGISTER_CLASSES
6705 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
6706 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
6708 2012-02-16 Jakub Jelinek <jakub@redhat.com>
6710 PR tree-optimization/52285
6711 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
6712 when deciding if a call is a tail call or tail recursion.
6714 2012-02-16 Kai Tietz <ktietz@redhat.com>
6716 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
6717 interger-constant displacement for UNSPEC_PCREL.
6719 2012-02-16 Jakub Jelinek <jakub@redhat.com>
6721 PR rtl-optimization/52208
6722 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
6723 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
6725 PR tree-optimization/52255
6726 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
6727 loop->header has virtual PHI, but exit_e->dest doesn't, add
6728 virtual PHI to exit_e->dest and adjust all uses after the loop.
6731 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
6732 children with clone_tree_hash, not after it.
6734 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
6736 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
6737 extended identifiers.
6739 2012-02-16 Jakub Jelinek <jakub@redhat.com>
6742 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
6743 a same_body_alias, also test whether e->callee isn't a former
6744 or current clone of the decl this is a same body alias of.
6746 PR translation/52264
6747 * cgraphunit.c (verify_cgraph_node): Fix a typo.
6749 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
6751 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
6753 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
6756 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
6757 force_reg instead of copy_to_reg for better optimization. Force
6758 non-register or memory operands into a register.
6760 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
6762 * extend.texi: Reserve upper bits of memory model for future use.
6764 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
6765 Anatoly Sokolov <aesok@post.ru>
6766 Eric Weddington <eric.weddington@atmel.com>
6769 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
6770 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
6771 Rewrite initializers for .macro.
6772 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
6773 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
6774 atxmega32d4, atxmega32x1.
6775 avrxmega4: atxmega64a3, atxmega64d3.
6776 avrxmega5: atxmega64a1, atxmega64a1u.
6777 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
6778 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
6779 avrxmega7: atxmega128a1, atxmega128a1u.
6780 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
6781 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
6782 (struct base_arch_s): Rename reserved to xmega_p.
6783 Rename reserved2 to have_rampd.
6784 (AVR_XMEGA): New define.
6785 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
6786 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
6787 * config/avr/predicates.md (io_address_operand): Take into
6789 (low_io_address_operand): Ditto.
6790 (high_io_address_operand): Ditto.
6791 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
6792 (enabled, movhi_sp_r): Use them.
6793 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
6794 cpp_define_formatted to built-in define __AVR_ARCH__.
6795 (__AVR_XMEGA__): New built-in define.
6796 (__AVR_HAVE_RAMPD__): New built-in define.
6797 (__AVR_HAVE_RAMPX__): New built-in define.
6798 (__AVR_HAVE_RAMPY__): New built-in define.
6799 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
6801 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
6802 (avr_option_override): Initialize them.
6803 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
6804 (avr_init_expanders): Initialize them. No more block several calls.
6805 (emit_push_sfr): New static function.
6806 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
6808 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
6809 (avr_print_operand): Print addreeses as symbols for
6810 RAMPX, RAMPY, RAMPD, CCP.
6811 (output_movhi): Handle AVR_XMEGA when writing to SP.
6812 (avr_out_movhi_mr_r_xmega): New static function.
6813 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
6814 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
6815 __RAMPD__, __CCP__ as needed.
6817 * config/avr/multilib.h: Regenerate.
6818 * config/avr/t-multilib: Regenerate.
6819 * config/avr/avr-tables.opt: Regenerate.
6821 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
6823 PR tree-optimization/50561
6824 * graphite-flattening.c (lst_project_loop): Do not
6825 remove old scattering dimensions after flattening.
6826 (lst_do_flatten): Likewise.
6828 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
6830 * doc/extend.texi (AVR Built-in Functions): Remove doc for
6831 __builtin_avr_map8, __builtin_avr_map16.
6832 Document __builtin_avr_insert_bits.
6834 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
6835 (insert_bits): New insn.
6836 (adjust_len.map_bits): Rename to insert_bits.
6837 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
6838 * avr-protos.h (avr_out_map_bits): Remove.
6839 (avr_out_insert_bits, avr_has_nibble_0xf): New.
6840 * config/avr/constraints.md (Cxf,C0f): New.
6841 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
6842 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
6843 New built-in define __BUILTIN_AVR_INSERT_BITS.
6844 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
6845 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
6846 (avr_move_bits): Rewrite.
6847 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
6849 (avr_map_op_t): New typedef.
6850 (avr_map_op): New static variable.
6851 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
6852 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
6853 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
6854 (bdesc_3arg, avr_expand_triop_builtin): New.
6855 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
6856 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
6857 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
6858 (avr_map_equal_p, avr_map_sig_p): Remove.
6859 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
6860 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
6861 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
6862 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
6863 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
6864 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
6866 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
6868 * config/c6x/c6x.md (reserve_cycles): New attribute.
6869 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
6870 don't reserve functional units after the branch occurs.
6872 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
6875 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
6876 functions into non-tm_pure functions.
6878 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
6881 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
6882 (iterative_hash_canonical_type): Likewise.
6883 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
6886 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
6888 * haifa-sched.c (prune_ready_list): Ensure that if there is a
6889 sched-group insn, it either remains alone or the entire list is pruned.
6891 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
6893 * doc/install.texi (Prerequisites): Fix grammar.
6894 (Configuration): Likewise.
6896 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
6898 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
6899 MPC as part of GCC before describing configuring with --with-gmp etc.
6900 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
6901 sources are present.
6903 2012-02-14 Jakub Jelinek <jakub@redhat.com>
6906 * dwarf2out.c (clone_tree_hash): New function.
6907 (copy_decls_walk): Use it instead of clone_tree.
6909 2012-02-14 Richard Guenther <rguenther@suse.de>
6911 PR tree-optimization/52244
6912 PR tree-optimization/51528
6913 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
6914 replacements for integral types.
6916 2012-02-14 Walter Lee <walt@tilera.com>
6918 * config.gcc: Handle tilegx and tilepro.
6919 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
6921 Add HAVE_AS_TLS check for tilegx and tilepro.
6922 * configure: Regenerate.
6923 * doc/contrib.texi: Add Mat Hostetter and self.
6924 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
6925 Document instruction intrinsics and network accessing intrinsics.
6926 (TILEPro Built-in Functions): New node. Document instruction
6927 intrinsics and network accessing intrinsics.
6928 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
6929 (Specific, tilepro-*-linux*): Likewise.
6930 * doc/invoke.texi (TILE-Gx Options): New section.
6931 (TILEPro Options): New section.
6932 * doc/md.texi (TILE-Gx): New section.
6933 (TILEPro): New section.
6934 * common/config/tilegx/tilegx-common.c: New file.
6935 * common/config/tilepro/tilepro-common.c: New file.
6936 * config/tilegx/constraints.md: New file.
6937 * config/tilegx/linux.h: New file.
6938 * config/tilegx/mul-tables.c: New file.
6939 * config/tilegx/predicates.md: New file.
6940 * config/tilegx/sync.md: New file.
6941 * config/tilegx/t-tilegx: New file.
6942 * config/tilegx/tilegx-builtins.h: New file.
6943 * config/tilegx/tilegx-c.c: New file.
6944 * config/tilegx/tilegx-generic.md: New file.
6945 * config/tilegx/tilegx-modes.def: New file.
6946 * config/tilegx/tilegx-multiply.h: New file.
6947 * config/tilegx/tilegx-protos.h: New file.
6948 * config/tilegx/tilegx.c: New file.
6949 * config/tilegx/tilegx.h: New file.
6950 * config/tilegx/tilegx.md: New file.
6951 * config/tilegx/tilegx.opt: New file.
6952 * config/tilepro/constraints.md: New file.
6953 * config/tilepro/gen-mul-tables.cc: New file.
6954 * config/tilepro/linux.h: New file.
6955 * config/tilepro/mul-tables.c: New file.
6956 * config/tilepro/predicates.md: New file.
6957 * config/tilepro/t-tilepro: New file.
6958 * config/tilepro/tilepro-builtins.h: New file.
6959 * config/tilepro/tilepro-c.c: New file.
6960 * config/tilepro/tilepro-generic.md: New file.
6961 * config/tilepro/tilepro-modes.def: New file.
6962 * config/tilepro/tilepro-multiply.h: New file.
6963 * config/tilepro/tilepro-protos.h: New file.
6964 * config/tilepro/tilepro.c: New file.
6965 * config/tilepro/tilepro.h: New file.
6966 * config/tilepro/tilepro.md: New file.
6967 * config/tilepro/tilepro.opt: New file.
6969 2012-02-14 Jakub Jelinek <jakub@redhat.com>
6971 PR tree-optimization/52210
6972 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
6973 vect_model_simple_cost with two entry vect_def_type array instead
6974 of an address of dt.
6976 2012-02-14 Richard Guenther <rguenther@suse.de>
6979 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
6980 Do not stream DECL_QUALIFIER.
6981 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
6982 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
6983 (find_decls_types_r): Do not walk DECL_QUALIFIER.
6985 2012-02-14 Jakub Jelinek <jakub@redhat.com>
6988 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
6991 2012-02-13 Jakub Jelinek <jakub@redhat.com>
6994 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
6995 * cselib.c (cselib_subst_to_values_from_insn): New function.
6996 * sched-deps.c (add_insn_mem_dependence,
6997 sched_analyze_1, sched_analyze_2): Use it.
6999 2012-02-13 Jan Hubicka <jh@suse.cz>
7002 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
7004 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
7006 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
7007 (GTM_SELF_SPECS): Define if not already defined.
7008 (driver_self_specs): Add GTM_SELF_SPECS.
7009 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
7010 (GTM_SELF_SPECS): Define.
7011 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
7012 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
7014 2012-02-13 Jakub Jelinek <jakub@redhat.com>
7016 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
7019 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
7022 * omp-low.c (expand_omp_for): If a static schedule without chunk size
7023 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
7025 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
7028 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
7030 2012-02-13 Richard Guenther <rguenther@suse.de>
7032 PR translation/52211
7033 * passes.c (enable_disable_pass): Fix typo.
7035 2012-02-13 Jakub Jelinek <jakub@redhat.com>
7038 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
7039 XOR for reduce_bit_field if type is unsigned.
7041 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
7043 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
7044 disallow changes from SFmode to mode with different size in FP regs.
7046 2012-02-12 Robert Millan <rmh@gnu.org>
7047 Gerald Pfeifer <gerald@pfeifer.com>
7049 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
7052 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
7054 PR rtl-optimization/52175
7055 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
7056 to frame-related instructions.
7058 2012-02-10 Jason Merrill <jason@redhat.com>
7061 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
7062 (demangle_new_symbols): Fill it.
7063 (scan_linker_output): Walk it.
7064 (start_tweaking): Split out from scan_linker_output.
7065 (maybe_tweak): Update sym->chosen.
7066 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
7068 2012-02-11 Jakub Jelinek <jakub@redhat.com>
7071 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
7073 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
7075 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
7076 having the same mode as previous compare.
7078 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
7080 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
7081 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
7082 (nonlocal_goto_internal): Likewise.
7083 (nonlocal_goto): Emit a use and an indirect jump directly.
7085 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
7088 * doc/extend.texi : Update comments for __atomic_compare_exchange and
7089 __atomic_{is,always}_lock_free.
7091 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
7094 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
7095 negative constant address for TARGET_X32.
7097 2012-02-10 Richard Henderson <rth@redhat.com>
7099 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
7100 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
7101 for GIMPLE_TRANSACTION. Tidy if's into a switch.
7103 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7104 Ira Rosen <irar@il.ibm.com>
7106 PR tree-optimization/50031
7107 * targhooks.c (default_builtin_vectorization_cost): Handle
7109 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
7110 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
7111 all types of reduction and pattern statements.
7112 (vect_estimate_min_profitable_iters): Likewise.
7113 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
7114 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
7115 for explicit realigns.
7116 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
7117 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
7119 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
7120 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
7121 vec_perm for VSX and handle vec_promote_demote.
7123 2012-02-10 Jakub Jelinek <jakub@redhat.com>
7126 * builtins.c (fold_builtin_atomic_always_lock_free,
7127 expand_builtin_atomic_always_lock_free,
7128 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
7129 Return and/or test boolean_true_node/boolean_false_node instead of
7130 integer_one_node/integer_zero_node.
7132 2012-02-10 Jan Hubicka <jh@suse.cz>
7135 * predict.c (predict_paths_for_bb): Prevent looping.
7136 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
7138 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
7140 * config/arm/arm.c (output_move_double): In one case properly
7141 count number of instructions that will be emitted.
7143 2012-02-10 Richard Guenther <rguenther@suse.de>
7145 PR translation/52193
7146 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
7148 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
7151 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
7153 2012-02-09 Jakub Jelinek <jakub@redhat.com>
7156 * var-tracking.c (emit_note_insn_var_location): If
7157 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
7158 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
7159 non-NOTE_DURING_CALL_P insn.
7161 2012-02-09 Bin Cheng <bin.cheng@arm.com>
7164 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
7166 2012-02-08 Magnus Granberg <zorry@gentoo.org>
7169 * gcc.c (switch_matches) Support switches with separated form,
7172 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
7174 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
7176 (RAMPZ_ADDR): Ditto.
7177 * config/avr/avr.c (avr_addr_t): New typedef.
7178 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
7179 (avr_init_expanders): Initialize it.
7180 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
7182 (expand_epilogue): Ditto.
7183 (avr_print_operand): Ditto.
7184 (avr_file_start): Ditto.
7185 (avr_emit_movmemhi): Ditto.
7187 2012-02-08 Richard Guenther <rguenther@suse.de>
7189 PR tree-optimization/46886
7190 * tree-flow.h (do_while_loop_p): Declare.
7191 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
7192 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
7194 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
7196 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
7197 always succeed for integers larger than a native word.
7199 2012-02-08 Richard Guenther <rguenther@suse.de>
7201 PR rtl-optimization/52170
7202 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
7203 properly handle integer vector modes.
7205 2012-02-08 Jakub Jelinek <jakub@redhat.com>
7207 PR gcov-profile/52150
7208 * coverage.c: Include target.h.
7209 (build_var): Call targetm.strip_name_encoding on the assembler name.
7210 Change one _ into . or $ if the target allows it.
7211 * Makefile.in (coverage.o): Depend on $(TARGET_H).
7213 PR rtl-optimization/52139
7214 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
7215 is a BARRIER after emit_insn_after_noloc, move BB_END
7216 to the last non-BARRIER insn before it.
7218 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
7221 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
7222 (mips_gimplify_va_arg_expr): Call it instead of
7223 std_gimplify_va_arg_expr.
7225 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
7227 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
7228 message for -mno-pointers-to-nested-function.
7230 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
7233 * expr.c (get_inner_reference): If there is an offset, add a negative
7234 bit position to it (if any).
7236 2012-02-07 Jakub Jelinek <jakub@redhat.com>
7238 PR rtl-optimization/52060
7239 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
7240 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
7241 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
7242 and/or i0src_copy2 when needed.
7244 2012-02-07 Jakub Jelinek <jakub@redhat.com>
7246 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
7247 or LTOPLUGINSONAME if have_c.
7249 * config/freebsd-spec.h: Add comment about what macros can be defined
7251 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
7252 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
7255 2012-02-07 Richard Guenther <rguenther@suse.de>
7257 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
7258 newline in -alias dumps.
7260 2012-02-07 Kai Tietz <ktietz@redhat.com>
7261 Dave Korn <dave.korn.cygwin@gmail.com>
7264 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
7265 Take care that typinfo gets dllexport-attribute.
7267 2012-02-07 Jakub Jelinek <jakub@redhat.com>
7270 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
7271 if modifier < EXPAND_SUM call force_operand on the result.
7273 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
7275 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
7276 adding __forwarder_dst__ prefix if a forwarder_section attribute is
7278 (epiphany_function_type): Replace types for specific interrupts with
7279 EPIPHANY_FUNCTION_INTERRUPT.
7280 (EPIPHANY_INTERRUPT_P): Update.
7281 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
7282 New static function.
7283 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
7284 <disinterrupt>: Affects type identity.
7285 (epiphany_handle_interrupt_attribute): Handle variable number of
7287 (epiphany_compute_function_type): Update for new
7288 epiphany_function_type definition.
7289 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
7290 handlers with a longcall forwarder.
7291 (epiphany_start_function): Handle multiple interrupt arguments and/or
7292 forwarder_section attribute.
7294 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
7297 2012-02-07 Alan Modra <amodra@gmail.com>
7300 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
7303 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7305 PR tree-optimization/50969
7306 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
7307 use vec_perm rather than vector_stmt.
7308 (vect_model_load_cost): Likewise.
7309 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
7310 vec_perm to be the same as other vector statements.
7311 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
7312 cost of vec_perm for TARGET_VSX.
7314 2012-02-06 Richard Guenther <rguenther@suse.de>
7316 PR tree-optimization/52115
7317 * tree-sra.c (access_has_replacements_p): New function.
7318 (sra_modify_assign): Use it to decide whether a use is uninitialized.
7320 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
7323 * trans-mem.c (expand_call_tm): Add an assertion.
7324 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
7327 2012-02-06 Richard Guenther <rguenther@suse.de>
7329 PR tree-optimization/50955
7330 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
7331 raise cost of expressions that replace an address with an
7332 expression based on a different pointer.
7334 2012-02-06 Jakub Jelinek <jakub@redhat.com>
7337 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
7338 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
7340 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7343 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
7344 -Weffc++ and specify guidelines come from second edition.
7346 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
7348 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
7349 (sibcall_value_multiple_internal, call_split, call_internal_direct)
7350 (call_direct_split, call_value_split, call_value_internal_direct)
7351 (call_value_direct_split, call_value_multiple_split): Use jal and
7352 jal_macro attributes.
7354 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
7356 * reload1.c (reload_regs_reach_end_p): Replace with...
7357 (reload_reg_rtx_reaches_end_p): ...this function.
7358 (new_spill_reg_store): Update commentary.
7359 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
7360 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
7361 before setting new_spill_reg_store.
7362 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
7363 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
7364 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
7365 for non-spill reload registers.
7367 2012-02-05 Ira Rosen <irar@il.ibm.com>
7369 PR tree-optimization/52091
7370 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
7371 (vect_is_simple_use_1): Likewise.
7372 * tree-vect-loop.c (vectorizable_reduction): Update calls
7373 to vect_is_simple_use_1 and vect_is_simple_use.
7374 (vectorizable_live_operation): Likewise.
7375 * tree-vect-patterns.c (widened_name_p,
7376 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
7377 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
7378 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
7379 vectorizable_shift,vectorizable_operation, vectorizable_store,
7380 vectorizable_load): Likewise.
7381 (vect_is_simple_cond): Add an argument, pass it to
7382 vect_is_simple_use_1.
7383 (vectorizable_condition): Update calls to vect_is_simple_cond,
7385 (vect_is_simple_use): Add an argument, the statement in which
7386 OPERAND is used. Check that if OPERAND's def stmt is a double
7387 reduction phi node, the use is a phi node too.
7388 (vect_is_simple_use_1): Add an argument, pass it to
7390 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
7391 to vect_is_simple_use.
7393 2012-02-04 Jakub Jelinek <jakub@redhat.com>
7395 PR rtl-optimization/52095
7396 * modulo-sched.c (dump_insn_locator): New function.
7397 (loop_canon_p, sms_schedule): Use it.
7399 PR rtl-optimization/52113
7400 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
7401 even for decomposable shift/zext insns.
7403 2012-02-03 Jakub Jelinek <jakub@redhat.com>
7404 Zdenek Dvorak <ook@ucw.cz>
7406 PR rtl-optimization/52092
7407 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
7408 on get_iv_value result.
7410 2012-02-02 Andrew Pinski <apinski@cavium.com>
7414 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
7416 2012-02-02 Jakub Jelinek <jakub@redhat.com>
7419 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
7421 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
7423 PR rtl-optimization/49800
7424 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
7425 (sched_finish): Call regstat_free_n_sets_and_refs.
7427 2012-02-02 Jia Liu <proljc@gmail.com>
7429 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
7432 2012-02-02 Jan Hubicka <jh@suse.cz>
7433 Tom de Vries <tom@codesourcery.com>
7436 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
7437 * varpool.c (varpool_analyze_pending_decls): Likewise.
7439 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
7440 Jayant R Sonar <jayant.sonar@kpitcummins.com>
7442 * config.gcc: Add cr16-* support.
7444 * doc/extend.texi: Document cr16 extensions.
7445 * doc/install.texi: Document cr16 install.
7446 * doc/invoke.texi: Document cr16 options.
7447 * doc/md.texi: Document cr16 constraints.
7449 * common/config/cr16/cr16-common.c: New file.
7450 * config/cr16/cr16.c: New file.
7451 * config/cr16/cr16.h: New file.
7452 * config/cr16/cr16.md: New file.
7453 * config/cr16/cr16.opt: New file.
7454 * config/cr16/cr16-protos.h: New file.
7455 * config/cr16/predicates.md: New file.
7456 * config/cr16/constraints.md: New file.
7457 * config/cr16/t-cr16: New file.
7459 2012-02-02 Jakub Jelinek <jakub@redhat.com>
7462 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
7463 that operands[2] is either immediate, or q_regs_operand.
7465 PR tree-optimization/52073
7466 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
7467 a pattern stmt for pattern uses, ignore uses outside of the loop.
7469 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
7471 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
7472 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
7473 (OUT_AS1, OUT_AS2): Remove.
7475 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
7477 PR rtl-optimization/51374
7478 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
7479 to cross other volatile_refs_p insns.
7481 2012-02-01 Richard Guenther <rguenther@suse.de>
7483 * doc/invoke.texi (fno-inline): Clarify documentation.
7484 (finline-small-functions): Likewise.
7485 (finline-functions): Likewise.
7486 * common.opt (finline): Adjust comment and documentation.
7487 (finline-small-functions): Clarify documentation.
7488 (finline-functions): Likewise.
7489 (finline-functions-called-once): Likewise.
7491 2012-02-01 Tristan Gingold <gingold@adacore.com>
7493 * c-typeck.c (composite_type): Keep mode for pointers.
7495 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
7497 * function.h (regno_reg_rtx): Adjust comment.
7498 * reginfo.c (init_reg_modes_target): Only use the previous mode
7499 if it fits within one register. Remove MIPS comment.
7501 2012-01-31 Jakub Jelinek <jakub@redhat.com>
7504 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
7506 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7508 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
7509 to srak instruction.
7511 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7513 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
7515 2012-01-31 Jakub Jelinek <jakub@redhat.com>
7520 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
7522 2012-01-31 Richard Guenther <rguenther@suse.de>
7524 PR tree-optimization/51528
7525 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
7528 2012-01-31 Jakub Jelinek <jakub@redhat.com>
7533 * ree.c (add_removable_extension): Change def_map argument
7534 to unsigned *, store in def_map 1 + offset into *insn_list vector
7535 instead of pointers into the vector.
7536 (find_removable_extensions): Adjust caller.
7538 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
7540 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
7541 Transform all "* quoted-c-code" to { c-code }.
7542 Remove redundant test for "optimize" in combine patterns.
7543 Move (include "avr-dimode.md") to end of file.
7545 2012-01-30 Bin Cheng <bin.cheng@arm.com>
7548 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
7549 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
7551 2012-01-30 Richard Guenther <rguenther@suse.de>
7553 PR tree-optimization/52028
7554 * tree-loop-distribution.c (ldist_gen): Properly update
7557 2012-01-30 Jakub Jelinek <jakub@redhat.com>
7560 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
7561 set_cur_line_info_table if not emitting debug info.
7563 PR tree-optimization/52046
7564 * tree-vect-patterns.c (check_bool_pattern): Give up if
7565 a comparison could throw.
7568 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
7570 2012-01-30 Richard Guenther <rguenther@suse.de>
7572 PR tree-optimization/52045
7573 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
7574 SSA form if cfgcleanup did anything.
7576 2012-01-30 Richard Guenther <rguenther@suse.de>
7578 PR tree-optimization/52045
7579 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
7580 before computing final todo.
7582 2012-01-30 Richard Guenther <rguenther@suse.de>
7584 PR tree-optimization/51528
7585 * tree-sra.c (sra_modify_assign): Re-factor in preparation
7588 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
7590 * df-problems.c (df_kill_notes): Check that the use refers
7591 to the note under examination.
7593 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
7596 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
7597 parameter and use short-lived pseudos.
7598 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
7599 (sparc_expand_vector_init): Const-ify local variables and adjust
7600 calls to above functions.
7602 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
7604 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
7606 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
7608 * doc/invoke.texi: Make usage of "compile time" and
7609 "run time"/"runtime" consistent throughout the file.
7611 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
7613 * config/alpha/alpha.c (alpha_option_override): Default to
7614 full IEEE compliance mode for Go language.
7616 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
7618 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
7619 (LINK_SSP_SPEC): Define.
7621 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7624 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
7627 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
7629 * doc/invoke.texi: Correct hyphenation of "floating point",
7630 "double precision", and related terminology throughout the file.
7632 2012-01-28 Jakub Jelinek <jakub@redhat.com>
7635 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
7636 arm_general_register_operand predicate for operand 2 instead of
7639 2012-01-27 Ian Lance Taylor <iant@google.com>
7642 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
7643 * builtins.c (expand_builtin_init_trampoline): Add onstack
7644 parameter. Change caller.
7645 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
7646 * tree.c (build_common_builtin_nodes): Declare
7647 __builtin_init_heap_trampoline.
7649 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
7651 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
7652 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
7653 * config/avr/avr.c: Ditto.
7654 (avr_regnames): Remove because unused.
7655 * config/avr/avr.md (*cpse.ne): New peephole.
7656 (*cpse.eq): New peephole from former cpse peepholes.
7658 2012-01-27 Michael Eager <eager@eagercon.com>
7660 * config/microblaze.c (microblaze_emit_compare): Correct
7661 test after pcmp instruction.
7663 2012-01-27 Richard Guenther <rguenther@suse.de>
7665 PR tree-optimization/52020
7666 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
7668 2012-01-27 Richard Guenther <rguenther@suse.de>
7670 * ipa-pure-const.c (check_stmt): Clobbers do not make a
7671 function non-const/pure.
7673 2012-01-27 Richard Guenther <rguenther@suse.de>
7675 PR tree-optimization/50444
7676 * tree-sra.c (build_ref_for_offset): Properly adjust the
7677 MEM_REF type for unaligned accesses.
7679 2012-01-27 Richard Guenther <rguenther@suse.de>
7681 PR tree-optimization/50444
7682 * expr.c (mem_ref_refers_to_non_mem_p): New function.
7683 (expand_assignment): Use it. Properly handle misaligned
7684 bases when expanding stores to component references.
7685 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
7688 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
7691 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
7692 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
7693 * tree-data-ref.c (find_data_references_in_loop): Make static.
7694 (compute_all_dependences): Change return type to bool. Bail out
7695 for too many datarefs in a loop. Move the hunk resetting the data
7696 dependences vector from ...
7697 (compute_data_dependences_for_loop): ... here. Account for
7698 compute_all_dependences returning false.
7699 (compute_data_dependences_for_bb): Likewise.
7700 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
7701 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
7703 2012-01-27 Richard Guenther <rguenther@suse.de>
7706 * expr.c (store_field): Use the alias-set of the scratch memory
7709 2012-01-27 Tom de Vries <tom@codesourcery.com>
7711 PR tree-optimization/51990
7712 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7714 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
7716 2012-01-27 Jakub Jelinek <jakub@redhat.com>
7719 * var-tracking.c (reverse_op): Don't add any reverse operation
7720 if V already has any constant locations.
7722 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
7724 * doc/invoke.texi: Correct usage of "command line" (noun)
7725 vs "command-line" (adjective) throughout.
7727 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
7729 * doc/invoke.texi (Language Independent Options): Move
7730 -Wcoverage-mismatch blurb from here....
7731 (Warning Options): ...to here.
7733 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
7735 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7736 Set rs6000_always_hint to false for 476.
7738 2012-01-27 Matthias Klose <doko@ubuntu.com>
7740 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
7742 * incpath.c (add_standard_paths): Likewise.
7744 2012-01-27 Richard Henderson <rth@redhat.com>
7746 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
7747 * config/m68k/sync.md (atomic_test_and_set): Rename from
7748 sync_test_and_setqi and adjust the operands.
7749 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
7750 and unconditionally enable.
7752 2012-01-27 Richard Henderson <rth@redhat.com>
7754 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
7755 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
7756 (ldstub): Rename from ldstubqi.
7757 (ldstub<I24MODE>): Remove.
7759 2012-01-27 Richard Henderson <rth@redhat.com>
7761 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
7762 * c-cppbuiltin.c (cpp_atomic_builtins): Define
7763 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
7764 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
7765 * doc/tm.texi: Rebuild.
7767 2012-01-27 Richard Henderson <rth@redhat.com>
7769 * optabs.c (gen_atomic_test_and_set): Remove default.
7770 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
7772 2012-01-26 Jakub Jelinek <jakub@redhat.com>
7774 PR rtl-optimization/51978
7775 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
7776 (combine_reaching_defs): Likewise.
7777 (struct re_info): Remove.
7778 (add_removable_extension): Remove x and data arguments,
7779 add insn, insn_list and def_map. Use the arguments directly
7780 instead of using struct re_info.
7781 (find_removable_extensions): Don't call add_removable_extension
7782 through note_stores, instead just call it with single_set
7784 (find_and_remove_re): Pass curr_cand->expr instead of
7785 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
7787 2012-01-26 Michael Matz <matz@suse.de>
7789 PR tree-optimization/46590
7790 * cfgexpand.c: Revert last change (r183305).
7791 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
7793 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
7794 checking for emptiness.
7796 2012-01-26 Jakub Jelinek <jakub@redhat.com>
7799 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
7800 non-addressable non-BLKmode base correctly.
7802 2012-01-26 Michael Matz <matz@suse.de>
7804 PR tree-optimization/48794
7805 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
7806 regions referenced from RESX/EH_DISPATCH.
7808 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7810 * config/s390/s390.h: Make BRANCH_COST an option.
7811 * config/s390/s390.opt: New option -mbranch-cost.
7813 2012-01-26 Richard Henderson <rth@redhat.com>
7815 Revert 2012-01-24 change:
7816 * trans-mem.c (requires_barrier): Do not instrument thread local
7817 variables and emit save/restore for them.
7819 2012-01-25 Jakub Jelinek <jakub@redhat.com>
7822 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
7825 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
7827 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
7830 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
7833 Rename __pgm to __flash.
7834 Rename __pgm1 to __flash1.
7835 Rename __pgm2 to __flash2.
7836 Rename __pgm3 to __flash3.
7837 Rename __pgm4 to __flash4.
7838 Rename __pgm5 to __flash5.
7839 Rename __pgmx to __memx.
7840 * doc/extend.texi (AVR Named Address Spaces)
7841 Rename address space names as indicated above.
7842 * config/avr/avr.c (avr_addrspace): Ditto.
7844 * config/avr/avr-protos.h
7845 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
7846 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
7847 * config/avr/predicates.md: Ditto.
7848 * config/avr/avr.c Ditto, and
7849 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
7850 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
7852 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
7853 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
7854 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
7855 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
7856 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
7857 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
7858 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
7859 * config/avr/avr.c: Ditto.
7860 * config/avr/avr.md: Ditto.
7862 2012-01-25 Jason Merrill <jason@redhat.com>
7865 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
7867 2012-01-25 Jakub Jelinek <jakub@redhat.com>
7869 PR tree-optimization/51987
7870 * tree-data-ref.c (get_references_in_stmt): Handle references in
7871 non-volatile GIMPLE_ASM.
7873 2012-01-25 Richard Guenther <rguenther@suse.de>
7875 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
7876 bases are dereferenced.
7878 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
7880 PR rtl-optimization/48374
7881 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
7883 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
7885 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
7886 compute_data_dependences_for_loop returns false.
7887 * tree-parloops.c (loop_parallel_p): Likewise.
7889 2012-01-25 Richard Guenther <rguenther@suse.de>
7891 * tree.h (get_pointer_alignment_1): Declare.
7892 * builtins.c (get_pointer_alignment_1): New function.
7893 (get_pointer_alignment): Use it.
7895 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7897 PR rtl-optimization/48308
7898 * combine.c (enum undo_kind): Add UNDO_LINKS.
7899 (struct undo): Add member l to other_contents and where.
7900 (do_SUBST_LINK): New.
7902 (try_combine): Handle LOG_LINKS for the dummy i1 case.
7903 (undo_all): Handle UNDO_LINKS.
7905 2012-01-25 Richard Henderson <rth@redhat.com>
7907 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
7910 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
7912 * optabs.c (gen_atomic_test_and_set): Use each argument.
7914 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
7916 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
7917 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
7918 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
7919 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
7920 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
7921 TARGET_PAIRED_SINGLE_FLOAT.
7923 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
7925 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
7926 (in_struct, return_val): Remove MEM documentation.
7927 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
7928 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
7929 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
7931 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7932 * cfgexpand.c (add_alias_set_conflicts): Likewise.
7933 * expr.c (store_field): Likewise.
7934 * function.c (assign_stack_temp_for_type): Likewise.
7935 * ifcvt.c (noce_try_cmove_arith): Likewise.
7936 * reload1.c (reload): Likewise.
7937 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
7938 (alpha_set_memflags): Likewise.
7939 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
7941 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
7943 * rtl.h (true_dependence, canon_true_dependence): Remove varies
7945 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
7946 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
7947 (true_dependence_1, true_dependence, canon_true_dependence): Remove
7949 * cselib.c (cselib_rtx_varies_p): Delete.
7950 (cselib_invalidate_mem): Update call to canon_true_dependence.
7951 * dse.c (record_store, check_mem_read_rtx): Likewise.
7952 (scan_reads_nospill): Likewise.
7953 * cse.c (check_dependence): Likewise.
7954 (cse_rtx_varies_p): Delete.
7955 * expr.c (safe_from_p): Update call to true_dependence.
7956 * ira.c (validate_equiv_mem_from_store): Likewise.
7957 (memref_referenced_p): Likewise.
7958 * postreload-gcse.c (find_mem_conflicts): Likewise.
7959 * sched-deps.c (sched_analyze_2): Likewise.
7960 * store-motion.c (load_kills_store): Likewise.
7961 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
7962 * gcse.c (mems_conflict_for_gcse_p): Likewise.
7963 (compute_transp): Update call to canon_true_dependence.
7965 2012-01-25 Richard Henderson <rth@redhat.com>
7967 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
7968 (maybe_emit_atomic_test_and_set): New.
7969 (expand_sync_lock_test_and_set): Use it.
7970 (expand_atomic_test_and_set): Likewise.
7971 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
7972 the implementation; clarify implementation defined details.
7973 * doc/md.texi (atomic_test_and_set): Document.
7975 2012-01-25 Richard Henderson <rth@redhat.com>
7977 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
7979 2012-01-25 Richard Henderson <rth@redhat.com>
7982 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
7983 to effect no-op split.
7985 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
7988 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
7989 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
7990 (BT_FN_VOID_PTR_INT_SIZE): New.
7991 (BT_FN_UINT_UINT_VAR): Remove.
7992 (BT_FN_UINT32_UINT32_VAR): New.
7993 (BT_FN_DOUBLE_VPTR): Remove.
7994 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
7996 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
7997 (_ITM_changeTransactionMode): Same.
7998 (_ITM_memmoveRtWt): Change return type to void.
7999 (_ITM_memcpyRtWt): Same.
8000 (_ITM_memsetW): Same.
8001 (_ITM_RaRD): Change types to double.
8006 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
8008 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
8009 Patrick Marlier <patrick.marlier@gmail.com>
8011 * trans-mem.c (requires_barrier): Do not instrument thread local
8012 variables and emit save/restore for them.
8014 2012-01-24 Jason Merrill <jason@redhat.com>
8017 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
8018 output static aliases.
8020 2012-01-24 Jakub Jelinek <jakub@redhat.com>
8023 * common.opt (-pie, -shared, pie, shared): Change from Common to
8025 * gcc.c (display_help): Display help for -pie and -shared.
8027 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
8030 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
8031 Remove note on size/offset limitation.
8032 (AVR Variable Attributes): Add example how to read data located
8033 with progmem. Refer to named address spaces.
8034 * doc/invoke.texi (AVR Options): Fix typo.
8036 2012-01-24 Richard Guenther <rguenther@suse.de>
8038 Forward-port to trunk
8039 2010-09-21 Jakub Jelinek <jakub@redhat.com>
8042 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
8043 op0 isn't sufficiently aligned and there is movmisalignM
8044 insn for mode, use it to load op0 into a temporary register.
8046 2012-01-24 Jakub Jelinek <jakub@redhat.com>
8049 * target.def (const_not_ok_for_debug_p): New hook.
8050 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
8052 * doc/tm.texi: Regenerated.
8053 * dwarf2out.c (const_ok_for_output_1): If
8054 targetm.const_not_ok_for_debug_p returns true, fail.
8055 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
8057 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
8059 2012-01-23 Kai Tietz <ktietz@redhat.com>
8062 * config/i386/predicates.md (symbolic_operand): Allow
8063 UNSPEC_PCREL as PIC expression for lea.
8064 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
8065 * config/i386/i386.c (ix86_delegitimize_address): Handle
8066 UNSPEC_PCREL for none-MEM, too.
8068 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
8070 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
8071 (ipa_tm_create_version_alias): Same.
8073 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
8076 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
8077 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
8079 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
8080 Patrick Marlier <patrick.marlier@gmail.com>
8081 Iain Sandoe <developer@sandoe-acoustics.co.uk>
8084 * lto-wrapper.c (run_gcc): Pass the LTO section name to
8085 simple_object_start_read.
8087 2012-01-23 Richard Guenther <rguenther@suse.de>
8090 PR tree-optimization/51895
8091 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
8092 parameter decomposition into BLKmode components.
8094 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
8096 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
8097 fake variables for restrict-qualified pointers whose pointed-to type
8098 contains a placeholder.
8100 2012-01-23 Richard Guenther <rguenther@suse.de>
8102 PR tree-optimization/51949
8103 * ipa-split.c (execute_split_functions): Do not split malloc functions.
8105 2012-01-23 Jakub Jelinek <jakub@redhat.com>
8107 PR rtl-optimization/51933
8108 * ree.c (transform_ifelse): Return true right away if dstreg is
8109 already wider or equal to cand->mode.
8110 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
8111 (make_defs_and_copies_lists): Remove defs_list and copies_list
8112 arguments, add state argument, just truncate state->work_list
8113 instead of always allocating and freeing the vector. Assert that
8114 get_defs succeeds instead of returning 2. Changed return type to bool.
8115 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
8116 have ext_src_mode, see if it has been modified already with the
8117 right kind of extension and has been extended before from the
8118 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
8119 just return true. Remember the original mode in state->modified array.
8120 (combine_reaching_defs): Add state argument. Don't allocate and
8121 free here def_list, copied_list and vec vectors, instead just
8122 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
8123 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
8124 Add state variable, clear vectors in it, initialize state.modified
8125 if needed. Free all the vectors at the end and state.modified too.
8126 Don't skip a candidate if the extension expression has been modified.
8128 2012-01-22 Douglas B Rupp <rupp@gnat.com>
8131 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
8132 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
8133 (extra_options) interix.opt -> i386/interix.opt"
8134 (extra_objs):Add winnt-stubs.o
8135 * configure.ac: Add interix to target_os .comm on PE check.
8136 * configure: Regenerate.
8137 * config/interix3.h: Delete and move bits to..
8138 * config/interix.h: Delete and move bits to..
8139 * config/i386/i386-interix3.h: Delete and move bits to..
8140 * config/i386/i386-interix.h: ..here.
8141 (TARGET_CPU_DEFAULT): Remove redefinition.
8142 (TARGET_ASM_CONSTRUCTOR): Undefine.
8143 (SUBTARGET_SWITCHES): Define for ms-bitfields.
8144 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
8145 (PTRDIFF_TYPE): Define.
8146 (LONG_DOUBLE_TYPE_SIZE): Define.
8147 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
8148 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8149 (TARGET_SECTION_TYPE_FLAGS): Define.
8150 (ASM_DECLARE_FUNCTION_NAME): Define.
8151 (ASM_OUTPUT_EXTERNAL): Define.
8152 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
8153 (ASM_OUTPUT_ALIGNED_BSS): Define.
8154 (PCC_BITFIELD_TYPE_MATTERS): Define.
8155 (USE_CONST_SECTION): Define.
8156 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
8157 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
8158 (SUPPORTS_ONE_ONLY): Remove.
8159 (I386_PE_STRIP_ENCODING): Define.
8160 * config/interix.opt: Delete and move bits to..
8161 * config/i386/interix.opt: ..here. New.
8162 (mpe-aligned-commons): Add.
8163 * config/i386/t-interix: Add copyright header.
8164 (winnt-stubs.o): Add rule.
8166 2012-01-22 Jason Merrill <jason@redhat.com>
8169 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
8170 for extra name aliases.
8172 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
8174 PR rtl-optimization/51924
8175 * ree.c (combine_set_extension): Improve debugging message.
8176 (combine_reaching_defs): Likewise.
8177 (get_defs): Rename confusingly named variable.
8178 (find_and_remove_re): Skip a candidate if the extension expression has
8181 2012-01-21 Robert Millan <rmh@gnu.org>
8182 Gerald Pfeifer <gerald@pfeifer.com>
8184 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
8185 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
8187 2012-01-20 Jakub Jelinek <jakub@redhat.com>
8189 PR tree-optimization/51914
8190 * tree-vect-stmts.c (vectorizable_conversion): For
8191 cvt_type && modifier == WIDEN, put temporary with cvt_type
8192 at the beginning of vec_dsts and set vec_dest to temporary
8195 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
8197 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
8199 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
8201 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
8202 * config/rs6000/rs6000.c: Likewise.
8204 2012-01-20 Jakub Jelinek <jakub@redhat.com>
8207 * config/arm/arm.c (arm_count_output_move_double_insns): Call
8208 output_move_double on a copy of operands array.
8210 2012-01-20 Cary Coutant <ccoutant@google.com>
8211 Dodji Seketeli <dodji@redhat.com>
8214 * dwarf2out.c (copy_declaration_context): Return ref to parent
8215 of declaration DIE, if necessary.
8216 (remove_child_or_replace_with_skeleton): Add new parameter; update
8217 caller. Place skeleton DIE under parent DIE of original declaration.
8218 Move call to copy_declaration_context to here ...
8219 (break_out_comdat_types): ... from here.
8221 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8223 PR rtl-optimization/51856
8224 * reload.c (find_reloads_subreg_address): Set the address_reloaded
8227 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8230 * config/arm/arm.c (arm_print_operand): Correct output of alignment
8231 hints for neon loads and stores.
8233 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
8237 * doc/extend.texi (Named Address Spaces): Split into subsections.
8238 (AVR Named Address Spaces): New subsection.
8239 (M32C Named Address Spaces): New subsection.
8240 (RL78 Named Address Spaces): New subsection.
8241 (SPU Named Address Spaces): New subsection.
8242 (Variable Attributes): New anchor "AVR Variable Attributes".
8243 (AVR Variable Attributes): Rewrite and avoid wording
8244 "address space" in this context.
8245 * doc/invoke.texi (AVR Options): Rewrite and add documentation
8246 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
8247 (AVR Built-in Macros): New subsubsection therein.
8248 * doc/md.texi (AVR constraints): Remove "C04", "R".
8250 2012-01-20 Richard Guenther <rguenther@suse.de>
8252 PR tree-optimization/51903
8253 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
8254 when removing stmts.
8256 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8259 * config/arm/arm.c (arm_load_pic_register): Use
8260 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
8261 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
8262 (arm_pic_static_addr): Likewise.
8263 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
8264 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
8265 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
8266 (pic_load_addr_unified): New.
8268 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
8271 * function.c (instantiate_virtual_regs_in_insn): Use
8272 delete_insn_and_edges when removing a wrong asm insn.
8274 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
8276 PR rtl-optimization/40761
8277 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
8278 Add new member loop_num.
8279 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
8280 (ira_build): Remove the parameter.
8282 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
8283 (ira.c): Do not build CFG loops for one region allocation. Remove
8284 argument from ira_build call.
8286 * ira-build.c (init_loop_tree_node): New function.
8287 (create_loop_tree_nodes): Use it. Separate the case when CFG
8288 loops are not built.
8289 (more_one_region_p): Check current_loops.
8290 (finish_loop_tree_nodes): Separate the case when CFG loops are not
8292 (add_loop_to_tree): Process loop equal to NULL too.
8293 (form_loop_tree): Separate the case when CFG loops are not built.
8294 Use explicitly number for the root.
8295 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
8297 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
8298 instead of loop->num.
8299 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
8300 (mark_all_loops_for_removal): Ditto.
8301 (remove_unnecessary_regions): Separate the case when CFG loops
8303 (ira_build): Remove the parameter. Use explicit number of regions
8304 when CFG loops are not built.
8306 * ira-color.c (print_loop_title): Separate the case for the root node.
8307 Use loop_num instead of loop->num.
8308 (move_spill_restore): Use loop_num instead of loop->num.
8310 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
8311 (change_loop): Ditto.
8312 (change_loop): Use loop_num instead of loop->num.
8314 * ira-lives.c (process_bb_node_lives): Ditto.
8316 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
8318 * ira-conflicts.c (print_allocno_conflicts): Ditto.
8320 2012-01-19 Jakub Jelinek <jakub@redhat.com>
8323 * tree-mudflap.c (mf_artificial): New function.
8324 (execute_mudflap_function_ops, execute_mudflap_function_decls,
8325 mx_register_decls, mudflap_enqueue_decl): Use it.
8328 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
8329 numbers in the insn pattern.
8331 2012-01-19 Michael Matz <matz@suse.de>
8333 PR tree-optimization/46590
8334 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
8335 use it in remembering which conflicts we already created.
8336 (add_scope_conflicts): Adjust call to above, (de)allocate helper
8339 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
8342 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
8343 (merge_and_complain): Same.
8345 2012-01-19 Jakub Jelinek <jakub@redhat.com>
8348 * config/initfini-array.h: Guard content of the header
8349 with #ifdef HAVE_INITFINI_ARRAY.
8350 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
8351 Add initfini-array.h to tm_file here.
8352 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
8353 * config.gcc: Don't add initfini-array.h to tm_file here.
8354 * configure: Regenerated.
8356 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
8358 PR rtl-optimization/51505
8359 * df-problems.c (df_kill_notes): New parameter live. Update comment.
8360 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
8361 (df_note_bb_compute): Update the call to df_kill_notes.
8363 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
8365 * trans-mem.c (requires_barrier): Remove call to is_global_var.
8367 2012-01-18 Richard Guenther <rguenther@suse.de>
8369 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
8370 of conversions to void *.
8372 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8373 Richard Sandiford <rdsandiford@googlemail.com>
8377 * optabs.h (simplify_expand_binop): Declare.
8378 * optabs.c (simplify_expand_binop): Make global.
8379 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
8380 endian targets if the source cannot be exactly covered by word
8383 2012-01-17 Jakub Jelinek <jakub@redhat.com>
8386 * hard-reg-set.h (struct hard_reg_set_container): New type.
8387 * target.h (struct hard_reg_set_container): Forward declare.
8388 * target.def (set_up_by_prologue): New target hook.
8389 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
8390 * doc/tm.texi: Regenerated.
8391 * function.c (thread_prologue_and_epilogue_insns): Change
8392 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
8393 Call targetm.set_up_by_prologue on it.
8394 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
8395 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
8397 2012-01-17 Nick Clifton <nickc@redhat.com>
8399 * config/rx/rx.c (rx_can_use_simple_return): New function.
8400 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
8401 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
8403 2012-01-17 Richard Guenther <rguenther@suse.de>
8406 * expr.c (expand_assignment): Take address-space information
8407 from the address operand of MEM_REF and TARGET_MEM_REF.
8408 (expand_expr_real_1): Likewise.
8410 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8412 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
8413 reload dump is requested.
8415 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
8418 * trans-mem.c (requires_barrier): Call may_be_aliased.
8420 2012-01-17 Jakub Jelinek <jakub@redhat.com>
8422 PR tree-optimization/51877
8423 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
8424 call arguments and fndecls compare equal, instead return false if they
8425 don't. Return true only if lhs1 and lhs2 are either both NULL, or
8426 both SSA_NAMEs that are valueized the same, or they satisfy
8429 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8431 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
8433 * configure: Regenerate.
8435 2012-01-16 Jan Hubicka <jh@suse.cz>
8439 * convert.c (convert_to_integer): Use fold_convert for
8440 converting an INTEGER_CST to integer type.
8442 2012-01-16 Jason Merrill <jason@redhat.com>
8445 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
8447 2012-01-16 Jakub Jelinek <jakub@redhat.com>
8450 * config/s390/s390.c (s390_chunkify_start): Don't skip
8451 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
8452 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
8453 If insn is followed by NOTE_INSN_VAR_LOCATION or
8454 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
8455 Don't use location of note insns.
8457 PR tree-optimization/51865
8458 * tree-inline.c (tree_function_versioning): Call remap_decl
8459 on DECL_RESULT whenever it has VOID_TYPE_P type.
8461 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
8463 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
8464 for calls to locally-binding MIPS16 functions if only the return
8465 type uses float regs.
8467 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
8468 Richard Sandiford <rdsandiford@googlemail.com>
8470 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
8471 (SYMBOL_32_HIGH): Likewise.
8472 (mips_output_tls_reloc_directive): Declare.
8473 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
8474 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
8475 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
8476 (mips_lo_relocs, mips_hi_relocs): Make extern.
8477 (mips16_stub_function): Move up file.
8478 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
8479 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
8480 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
8481 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
8482 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
8483 (mips_get_tp): Add MIPS16 support.
8484 (mips_legitimize_tls_address): Remove MIPS16 sorry().
8485 Generalize DTPREL and TPREL handling.
8486 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
8487 Add MIPS16 TLS support.
8488 (mips_output_tls_reloc_directive): New function.
8489 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
8490 * config/mips/predicates.md (symbolic_operand_with_high)
8491 (tls_reloc_operand): New predicates.
8492 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
8493 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
8494 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
8495 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
8496 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
8497 (*tls_get_tp_mips16_call_<mode>): Likewise.
8499 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
8501 PR rtl-optimization/51821
8502 * recog.c (peep2_find_free_register): Determine clobbered registers
8505 2012-01-14 Denis Chertykov <chertykov@gmail.com>
8508 * config/avr/avr-protos.h: Revert change of 2012-01-09.
8509 * config/avr/avr.c: Likewise.
8510 * config/avr/avr.h: Likewise.
8512 2012-01-13 Ian Lance Taylor <iant@google.com>
8515 * tree.h (TYPE_QUALS): Add cast to int.
8516 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
8518 2012-01-13 Ian Lance Taylor <iant@google.com>
8520 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
8521 comparing param_index to VEC_length result.
8523 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
8525 * c-decl.c: Do not include tree-mudflap.h
8526 * tree-optimize.c: Likewise.
8527 * Makefile.in: Update dependencies.
8529 2012-01-13 Richard Guenther <rguenther@suse.de>
8532 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
8533 variable-sized result always use RSO.
8535 2012-01-12 DJ Delorie <dj@redhat.com>
8537 * cfgexpand.c (convert_debug_memory_address): Allow any valid
8538 pointer type, not just the default pointer type.
8540 2012-01-09 Richard Henderson <rth@redhat.com>
8541 Denis Chertykov <chertykov@gmail.com>
8544 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
8545 * config/avr/avr.c (avr_can_eliminate): Simplify.
8546 (avr_initial_elimination_offset): Likewise.
8547 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
8548 (expand_epilogue): Likewise.
8549 (avr_legitimize_address): Gut.
8550 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
8551 (avr_hard_regno_nregs): New.
8552 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
8553 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
8554 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
8555 add soft frame pointer.
8556 (CALL_USED_REGISTERS): Likewise.
8557 (REG_CLASS_CONTENTS): Likewise.
8558 (REGISTER_NAMES): Likewise.
8559 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
8560 (HARD_FRAME_POINTER_REGNUM): New.
8561 (FRAME_POINTER_REGNUM): Use soft frame pointer.
8562 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
8563 remove the HARD_FRAME_POINTER self-elimination.
8565 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
8568 * config/avr/avr.c (avr_encode_section_info): Test for absence of
8569 DECL_EXTERNAL when checking for initializers of progmem variables.
8571 2012-01-12 Ira Rosen <irar@il.ibm.com>
8573 PR tree-optimization/51799
8574 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
8575 that the last operation is a type demotion.
8577 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
8579 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
8580 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
8582 2012-01-11 Jakub Jelinek <jakub@redhat.com>
8585 * combine.c (distribute_notes): If i3 is a noreturn call,
8586 allow old_size to be equal to args_size and make sure the
8587 noreturn call gets REG_ARGS_SIZE note.
8588 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
8589 on noreturn calls even when the delta is 0.
8591 2012-01-11 Nathan Sidwell <nathan@acm.org>
8593 * gcov.c (STRING_SIZE): Remove.
8594 (generate_results): Erase annotations for source files with no
8595 coverage information.
8597 (output_lines): Use it.
8599 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
8601 * gimple.h (gimplify_body): Remove first argument.
8602 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
8603 pointer set here, instead just pass DATA to walk_tree.
8604 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
8605 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
8606 (unvisit_body): Likewise, but with unmark_visited.
8607 (gimplify_body): Remove BODY_P argument and adjust.
8608 (gimplify_function_tree): Adjust call to gimplify_body.
8609 * omp-low.c (finalize_task_copyfn): Likewise.
8611 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
8613 * tree.h (build_function_decl_skip_args): Add boolean parameter.
8614 (build_function_type_skip_args): Delete.
8615 * tree.c (build_function_type_skip_args): Make static and add
8616 SKIP_RETURN parameter. Fix thinko in the handling of variants.
8617 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
8618 pass it to build_function_type_skip_args.
8619 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
8620 (tree_function_versioning): Likewise.
8621 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
8622 build_function_decl_skip_args.
8623 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
8624 and pass it to build_function_decl_skip_args/tree_function_versioning.
8625 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
8626 * ipa-inline-transform.c (save_inline_function_body): Likewise.
8627 * trans-mem.c (ipa_tm_create_version): Likewise.
8628 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
8629 * tree-inline.c (declare_return_variable): Remove always-true test.
8630 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
8631 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
8632 * ipa-split.c (split_function): Skip the return value for the split
8633 part if it doesn't return.
8635 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8637 PR tree-optimization/49642
8638 * ipa-split.c (forbidden_dominators): New variable.
8639 (check_forbidden_calls): New function.
8640 (dominated_by_forbidden): Likewise.
8641 (consider_split): Check for forbidden dominators.
8642 (execute_split_functions): Initialize and free forbidden
8643 dominators info; call check_forbidden_calls.
8645 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8647 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
8649 2012-01-11 Nick Clifton <nickc@redhat.com>
8651 * config/rx/rx.md (return): Define pattern.
8653 2012-01-11 Richard Guenther <rguenther@suse.de>
8655 * doc/extend.texi (malloc attribute): Adjust according to
8658 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
8659 Patrick Marlier <patrick.marlier@gmail.com>
8662 * trans-mem.c (get_cg_data): Traverse aliases if requested.
8663 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
8664 (ipa_tm_note_irrevocable): Same.
8665 (ipa_tm_scan_irr_block): Same.
8666 (ipa_tm_decrement_clone_counts): Same.
8667 (ipa_tm_scan_irr_function): Same.
8668 (ipa_tm_create_version_alias): Same.
8669 (ipa_tm_create_version): Same.
8670 (ipa_tm_transform_calls_redirect): Same.
8671 (ipa_tm_transform_calls): Same.
8672 (ipa_tm_transform_transaction): Same.
8673 (ipa_tm_execute): Same.
8675 2012-01-10 Richard Guenther <rguenther@suse.de>
8678 * opts.c (common_handle_option): Handle -Werror.
8680 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
8682 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
8685 2012-01-10 Jason Merrill <jason@redhat.com>
8687 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
8690 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8692 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
8693 supports R_386_TLS_GD_PLT reloc.
8694 (gcc_cv_as_ix86_tlsldmplt): Check if linker
8695 supports R_386_TLS_LDM_PLT reloc.
8696 * configure: Regenerate.
8697 * config.in: Regenerate.
8699 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
8702 Extend __pgmx semantics to linearize memory.
8703 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
8704 determine if code comes inline or from libgcc.
8705 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
8706 (movmem_qi, movmem_qi): Set constraint #2 to "n".
8707 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
8708 (movmemx_qi, movmemx_hi): New insns.
8709 (xload_<mode>_libgcc): Rewrite to new insn condition.
8710 (xload_<mode>): Remove insns.
8711 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
8712 cases that don't satisfy avr_xload_libgcc_p().
8713 (avr_addr_space_convert): Allow converting in any direction.
8714 (avr_addr_space_subset_p): Return always true.
8715 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
8716 (avr_emit_movmemhi): Ditto.
8717 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
8718 (avr_out_movmem): Ditto.
8719 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
8720 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
8721 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
8722 (avr_encode_section_info): Encode 'progmem' in symbol flags.
8723 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
8725 2012-01-10 Richard Guenther <rguenther@suse.de>
8727 PR tree-optimization/50913
8728 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
8729 Require data-refs to be representable by Graphite with respect
8732 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
8734 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
8735 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
8737 2012-01-10 Tom de Vries <tom@codesourcery.com>
8739 PR rtl-optimization/51271
8740 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
8741 handling annulled branch.
8743 2012-01-10 Richard Henderson <rth@redhat.com>
8745 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
8746 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
8747 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
8748 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
8749 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
8750 arm_expand_vec_perm_const): New.
8751 * config/arm/arm-protos.h: Update.
8752 * config/arm/neon.md (UNSPEC_VCONCAT): New.
8753 (*neon_vswp<VDQX>): New.
8754 (neon_vcombine<VDX>): Use neon_split_vcombine.
8755 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
8756 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
8757 (vec_perm<VE>): New.
8759 2012-01-10 Richard Henderson <rth@redhat.com>
8761 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
8762 use it if reload_completed.
8763 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
8764 arm_output_asm_insn, arm_process_output_memory_barrier,
8765 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
8766 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
8767 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
8768 arm_process_output_sync_insn, arm_output_sync_insn,
8769 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
8770 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
8771 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
8772 (emit_unlikely_jump): New.
8773 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
8774 (arm_split_atomic_op): New.
8775 * config/arm/arm-protos.h: Update.
8776 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
8777 (struct arm_sync_generator): Remove.
8778 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
8779 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
8780 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
8781 (VUNSPEC_LL, VUNSPEC_SC): New.
8782 (sync_result, sync_memory, sync_required_value, sync_new_value,
8783 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
8784 (attr length): Don't use arm_sync_loop_insns.
8785 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
8786 (movsfcc, movdfcc): Likewise.
8787 * config/arm/constraints.md (Ua): New.
8788 * config/arm/prediates.md (mem_noofs_operand): New.
8789 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
8790 (sync_clobber, sync_t2_reqd): Remove.
8791 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
8792 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
8793 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
8794 (arm_sync_compare_and_swap<SIDI>): Remove.
8795 (arm_sync_compare_and_swap<NARROW>): Remove.
8796 (arm_sync_lock_test_and_set<SIDI>): Remove.
8797 (arm_sync_lock_test_and_set<NARROW>): Remove.
8798 (arm_sync_new_<syncop><SIDI>): Remove.
8799 (arm_sync_new_<syncop><NARROW>): Remove.
8800 (arm_sync_new_nand<SIDI>): Remove.
8801 (arm_sync_new_nand<NARROW>): Remove.
8802 (arm_sync_old_<syncop><SIDI>): Remove.
8803 (arm_sync_old_<syncop><NARROW>): Remove.
8804 (arm_sync_old_nand<SIDI>): Remove.
8805 (arm_sync_old_nand<NARROW>): Remove.
8806 (*memory_barrier): Merge arm_output_memory_barrier.
8807 (atomic_compare_and_swap<QHSD>): New.
8808 (atomic_compare_and_swap<NARROW>_1): New.
8809 (atomic_compare_and_swap<SIDI>_1): New.
8810 (atomic_exchange<QHSD>): New.
8811 (cas_cmp_operand, cas_cmp_str): New.
8812 (atomic_op_operand, atomic_op_str): New.
8813 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
8814 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
8815 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
8816 (arm_load_exclusive<NARROW>): New.
8817 (arm_load_exclusivesi, arm_load_exclusivedi): New.
8818 (arm_store_exclusive<QHSD>): New.
8820 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
8822 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
8823 reload patterns if -mvsx-scalar-memory.
8825 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
8826 generated, even -mno-vsx-scalar-double was used.
8827 (vsx_xscvdpsp_scalar): Likewise.
8828 (vsx_xscvspdp_scalar2): Likewise.
8830 2012-01-09 Tom de Vries <tom@codesourcery.com>
8831 Andrew Pinski <apinski@cavium.com>
8834 * reorg.c (fill_slots_from_thread): Don't speculate
8835 frame-related insns.
8837 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
8839 * sched-int.h (bb_note): Move to...
8840 * basic-block.h: ...here.
8841 * haifa-sched.c (bb_note): Move to...
8842 * cfgrtl.c: ...here.
8843 * function.c (next_block_for_reg): New function.
8844 (move_insn_for_shrink_wrap): Likewise.
8845 (prepare_shrink_wrap): Rewrite to use the above.
8847 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
8849 * gimple.c (is_gimple_non_addressable): Remove.
8850 * gimple.h: Remove is_gimple_non_addressable.
8851 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
8852 is_gimple_non_addressable.
8853 * trans-mem.c (expand_assign_tm): Same.
8855 2012-01-09 Richard Guenther <rguenther@suse.de>
8857 PR tree-optimization/51775
8858 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
8859 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
8861 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8863 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
8865 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
8867 2012-01-09 Richard Guenther <rguenther@suse.de>
8869 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
8871 2012-01-08 Jan Hubicka <jh@suse.cz>
8873 PR tree-optimize/51680
8874 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
8875 on when known_vals needs to be computed; cleanup.
8877 2012-01-08 Jan Hubicka <jh@suse.cz>
8879 PR tree-optimize/51694
8880 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
8882 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
8884 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
8885 for -std=c++98 and -std=c++11 too.
8887 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
8889 * cfgloop.c (cancel_loop): Add free() of bbs array.
8891 2012-01-07 Jan Hubicka <jh@suse.cz>
8893 PR tree-optimization/51600
8894 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
8895 that benefits small functions.
8897 2012-01-07 Jan Hubicka <jh@suse.cz>
8899 * ipa-inline.c (want_inline_small_function_p): Fix formating.
8901 2012-01-07 Jan Hubicka <jh@suse.cz>
8903 PR tree-optimization/51680
8904 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
8905 whose inlining reduce unit size.
8907 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
8910 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
8911 Add canonical node to containing_mem chain after the non-canonical
8912 one, even if there weren't any locs to propagate.
8913 (remove_useless_values): Keep only canonical values.
8914 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
8915 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
8916 canonicalize mem_chain elements that are not discarded.
8918 2012-01-06 Jakub Jelinek <jakub@redhat.com>
8921 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
8922 before emitting functions.
8924 PR gcov-profile/50127
8925 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
8926 clear_aux_for_blocks.
8928 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
8931 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
8933 2012-01-06 Arnaud Charlet <charlet@adacore.com>
8935 * c-decl.c (ext_block): Moved up.
8936 (collect_all_refs, for_each_global_decl): Take ext_block into account.
8938 2012-01-06 Han Shen <shenhan@google.com>
8940 Translate built-in include paths for sysroot.
8941 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
8942 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
8944 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
8945 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
8947 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
8948 control whether sysroot should be prepended to gxx include dir.
8950 * configure: Regenerate.
8952 2012-01-06 Torvald Riegel <triegel@redhat.com>
8954 PR rtl-optimization/51771
8955 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
8956 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
8958 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
8960 PR tree-optimization/51315
8961 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
8962 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
8964 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
8967 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
8968 for shrp pattern. Correctly handle and fixup shift variable.
8969 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
8971 2012-01-05 Jakub Jelinek <jakub@redhat.com>
8974 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
8975 note when !ACCUMULATE_OUTGOING_ARGS.
8977 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
8979 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
8981 (extract_range_from_unary_expr_1): Avoid useless computations.
8983 2012-01-05 Jakub Jelinek <jakub@redhat.com>
8985 PR rtl-optimization/51767
8986 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
8987 of jump_block and add an extra edge for degenerated asm gotos.
8990 * stmt.c (check_unique_operand_names): Don't ICE during error
8991 reporting if i is from labels chain.
8994 * profile.c (branch_prob): Split bbs that have exit edge
8995 and need a fake entry edge too.
8997 2012-01-05 Jan Hubicka <jh@suse.cz>
9000 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
9003 2012-01-05 Richard Guenther <rguenther@suse.de>
9006 * tree-streamer-out.c (write_ts_optimization): New function.
9007 (streamer_write_tree_body): Call it.
9008 * tree-streamer-in.c (lto_input_ts_optimization): New function.
9009 (streamer_read_tree_body): Call it.
9010 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
9012 2012-01-05 Jakub Jelinek <jakub@redhat.com>
9015 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
9016 * gimplify.c (gimplify_cleanup_point_expr): Save and set
9017 in_cleanup_point_expr before gimplify_stmt call and restore it
9019 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
9020 in_cleanup_point_expr is false.
9022 2012-01-05 Richard Guenther <rguenther@suse.de>
9025 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
9027 * toplev.c (process_options): Reject combining mudflap and LTO.
9028 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
9030 2012-01-05 Richard Guenther <rguenther@suse.de>
9032 PR tree-optimization/51760
9033 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
9035 (bit_value_unop): Handle UNDEFINED operands.
9036 (bit_value_binop): Likewise.
9038 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
9040 * config/avr/avr.c (avr_replace_prefix): Remove.
9041 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
9042 (avr_asm_function_rodata_section): Ditto.
9043 (avr_asm_select_section): Ditto.
9045 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9047 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
9050 2012-01-05 Jakub Jelinek <jakub@redhat.com>
9053 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
9054 calls that have any non-fake successor edges.
9057 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
9059 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
9061 PR tree-optimization/51624
9062 * tree-sra.c (build_ref_for_model): When replicating a chain of
9063 COMPONENT_REFs, stop as soon as the offset would become negative.
9065 2012-01-04 Jakub Jelinek <jakub@redhat.com>
9068 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
9069 in .debug_loc on the floor.
9071 2012-01-04 Andrew Pinski <apinski@cavium.com>
9073 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
9075 2012-01-04 Andrew Pinski <apinski@cavium.com>
9076 Adam Nemet <anemet@caviumnetworks.com>
9078 * config/mips/mips.md (size): Add SI and DI.
9079 (SIZE): New mode attribute.
9080 (U): New code attribute.
9081 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
9082 (mips_lbux_<mode>): Delete.
9083 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
9084 (mips_lhx): Use gen_mips_lhx_extsi.
9085 (mips_lhx_<mode>): Delete.
9087 (mips_l<size>x): New expand.
9088 (mips_lwx_<mode>): Delete.
9089 (mips_l<GPR:size>x_<P:mode>): New pattern.
9090 (*mips_lw<u>x_<P:mode>_ext): Likewise.
9091 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
9092 * config/mips/mips.c (mips_lx_address_p): New function.
9093 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
9094 (dsp64): New availability predicate.
9095 (mips_builtins): Add an entry for __builtin_mips_ldx.
9096 * config/mips/mips.h (ISA_HAS_LBX): New define.
9097 (ISA_HAS_LBUX): Likewise.
9098 (ISA_HAS_LHX): Likewise.
9099 (ISA_HAS_LHUX): Likewise.
9100 (ISA_HAS_LWX): Likewise.
9101 (ISA_HAS_LWUX): Likewise.
9102 (ISA_HAS_LDX): Likewise.
9103 * doc/extend.texi (__builtin_mips_ldx): Document.
9105 2012-01-04 Tristan Gingold <gingold@adacore.com>
9107 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
9108 when long pointers are used.
9109 * config.build (*-*-*vms*): Handle all OpenVMS targets.
9110 (alpha64-dec-*vms*, alpha*-dec-*vms*)
9111 (ia64-hp-*vms*): Remove.
9112 * config/vms/xm-vms64.h: Delete.
9114 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
9117 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
9119 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
9121 * opts.c (finish_options): Remove duplicate sorry.
9123 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
9126 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
9129 2012-01-04 Richard Guenther <rguenther@suse.de>
9132 * tree.c (size_low_cst): New function.
9133 * tree.h (size_low_cst): Declare.
9134 * fold-const.c (fold_comparison): Use it to extract the low
9135 part of the POINTER_PLUS_EXPR offset.
9137 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
9139 Fix clearing ZERO_REG
9140 * config/avr/avr.md (cc): Add alternative "ldi".
9141 (movqi_insn): Use it in cc attribute.
9142 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
9143 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
9144 (output_reload_insisf): Use ZERO_REG to pre-clear register.
9146 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9148 * configure: Regenerate.
9150 2012-01-04 Richard Guenther <rguenther@suse.de>
9152 PR tree-optimization/49651
9153 * tree-ssa-structalias.c (type_can_have_subvars): New function.
9154 (var_can_have_subvars): Use it.
9155 (get_constraint_for_1): Only consider subfields if there can be any.
9157 2012-01-03 Jakub Jelinek <jakub@redhat.com>
9160 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
9161 to its new canonical_cselib_val and the cselib_val was in
9162 first_containing_mem chain, but the canonical_cselib_val was not,
9163 add the latter into the chain.
9164 (cselib_invalidate_mem): Compare canonical_cselib_val of
9165 addr_list chain elt with v.
9168 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
9169 dwarf2out_undef): Allocate e.info using ggc_strdup instead
9171 (output_macinfo_op): Don't ggc_strdup fd->filename.
9172 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
9173 then ggc_strdup it. Don't free inc->info or cur->info.
9174 (output_macinfo): Don't free ref->info or file->info.
9176 2012-01-03 Ira Rosen <irar@il.ibm.com>
9178 PR tree-optimization/51269
9179 * tree-vect-loop-manip.c (set_prologue_iterations): Make
9180 first_niters a pointer.
9181 (slpeel_tree_peel_loop_to_edge): Likewise.
9182 (vect_do_peeling_for_loop_bound): Update call to
9183 slpeel_tree_peel_loop_to_edge.
9184 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
9185 here. Remove it from the parameters list.
9186 (vect_do_peeling_for_alignment): Update calls and compute
9189 2012-01-03 Richard Guenther <rguenther@suse.de>
9191 PR tree-optimization/51070
9192 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
9193 Properly handle calls.
9195 2012-01-03 Richard Guenther <rguenther@suse.de>
9197 PR tree-optimization/51692
9198 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
9199 the LHS of allocation stmts.
9201 2012-01-03 Olivier Hainque <hainque@adacore.com>
9203 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
9205 2012-01-03 Olivier Hainque <hainque@adacore.com>
9207 * collect2.c (main): In AIX specific computations for vector
9208 insertions, use CONST_CAST2 to cast from char ** to const char **.
9210 2012-01-03 Richard Guenther <rguenther@suse.de>
9213 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
9214 the context of a limbo DIE when it does not already exist.
9216 2012-01-03 Jakub Jelinek <jakub@redhat.com>
9218 PR tree-optimization/51719
9219 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
9220 but direct call is, clear direct call's lhs and don't add fallthrough
9221 edge from dcall_bb to join_bb and PHIs.
9223 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9225 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
9226 the instructions emitted by the pattern.
9227 ("*TDC_insn_<mode>"): Add comment.
9229 2012-01-03 Richard Guenther <rguenther@suse.de>
9232 * fold-const.c (fold_comparison): Properly canonicalize
9233 tree offset and HOST_WIDE_INT bit position.
9235 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
9237 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
9238 operands for extzv pattern.
9240 2012-01-02 Jakub Jelinek <jakub@redhat.com>
9243 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
9246 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
9248 * doc/invoke.texi (-flto and related options): Copy-edit.
9250 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9252 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
9254 2012-01-02 Jakub Jelinek <jakub@redhat.com>
9256 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
9259 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9261 * expr.h (move_by_pieces_ninsns): Declare.
9262 * expr.c (move_by_pieces_ninsns): Make external.
9263 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
9264 (mips_store_by_pieces_p): Likewise.
9265 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
9266 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
9267 * config/mips/mips.c (mips_move_by_pieces_p): New function.
9268 (mips_store_by_pieces_p): Likewise.
9270 2012-01-02 Jakub Jelinek <jakub@redhat.com>
9272 * passes.c (register_one_dump_file): Free full_name.
9274 * reload1.c (reload): Don't allocate reg_max_ref_width here.
9275 (calculate_elim_costs_all_insns): Free offsets_at and
9276 offsets_known_at at the end and clear the pointers.
9278 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
9280 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
9281 this option introduced in r180739.
9283 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
9286 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
9287 (tmake_file target=avr): Add avr/t-multilib.
9289 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
9290 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
9291 * config/avr/genmultilib.awk: New file.
9292 * config/avr/t-multilib: New auto-generated file.
9293 * config/avr/multilib.h: New auto-generated file.
9294 * config/avr/t-avr (AVR_MCUS): New variable.
9295 (genopt.sh): Use it.
9296 (s-mlib): Depend on t-multilib.
9297 (t-multilib, multilib.h): New dependencies.
9298 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
9299 (MULTILIB_OPTIONS): Remove.
9300 (MULTILIB_MATCHES): Remove.
9301 (MULTILIB_DIRNAMES): Remove.
9302 (MULTILIB_EXCEPTIONS): Remove:
9303 * config/avr/genopt.sh: Don't use hard coded file name;
9304 pass AVR_MCUS from t-avr instead.
9306 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
9308 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
9310 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
9312 Implement light-weight DImode support.
9313 * config/avr/avr-dimode.md: New file.
9314 * config/avr/avr.md: Include it.
9315 (adjust_len): Add plus64, compare64.
9316 (HIDI): Remove code iterator.
9317 (code_stdname): New code attribute.
9318 (rotx, rotsmode): Remove DI.
9319 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
9321 * config/avr/avr-protos.h (avr_have_dimode): New.
9322 (avr_out_plus64, avr_out_compare64): New.
9323 * config/avr/avr.c (avr_out_compare): Handle DImode.
9324 (avr_have_dimode): New variable definition and initialization.
9325 (avr_out_compare64, avr_out_plus64): New functions.
9326 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
9327 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
9328 (avr_compare_pattern): Skip DImode comparisons.
9330 2012-01-02 Revital Eres <revital.eres@linaro.org>
9332 * ddg.c (def_has_ccmode_p): New function.
9333 (add_cross_iteration_register_deps,
9334 create_ddg_dep_from_intra_loop_link): Call it.
9336 2012-01-02 Richard Guenther <rguenther@suse.de>
9339 * invoke.texi (fassociative-math): Remove spurious paranthesis.
9341 2012-01-01 Jakub Jelinek <jakub@redhat.com>
9343 * gcc.c (process_command): Update copyright notice dates.
9344 * gcov.c (print_version): Likewise.
9345 * gcov-dump.c (print_version): Likewise.
9346 * mips-tfile.c (main): Likewise.
9347 * mips-tdump.c (main): Likewise.
9349 2012-01-01 Ira Rosen <irar@il.ibm.com>
9351 PR tree-optimization/51704
9352 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
9353 a use is inside the basic block or loop before accessing its vect info.
9355 2012-01-01 Jan Hubicka <jhjh@suse.cz>
9357 PR rtl-optimization/51069
9358 * cfgloopmanip.c (remove_path): Removing path making irreducible
9359 region unconditional makes BB part of the region.
9361 2012-01-01 Jakub Jelinek <jakub@redhat.com>
9363 PR tree-optimization/51683
9364 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
9365 calls with side-effects.
9366 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9368 Copyright (C) 2012 Free Software Foundation, Inc.
9370 Copying and distribution of this file, with or without modification,
9371 are permitted in any medium without royalty provided the copyright
9372 notice and this notice are preserved.