1 2012-05-03 Jan Hubicka <jh@suse.cz>
4 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
6 2012-05-03 Jan Hubicka <jh@suse.cz>
9 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
11 2012-05-03 Jason Merrill <jason@redhat.com>
13 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
14 use_debug_types to discriminate the die_id union.
15 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
16 (build_abbrev_table, output_die): Likewise.
17 (prune_unused_types_walk_attribs): Likewise.
18 (generate_type_signature, copy_declaration_context): Set it.
19 (remove_child_or_replace_with_skeleton): Set it.
20 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
21 check use_debug_types.
22 (dwarf2out_finish): Do break_out_includes after .debug_types.
24 2012-05-03 Jason Merrill <jason@redhat.com>
26 * dwarf2out.c (modified_type_die): Use scope_die_for.
27 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
28 (uses_local_type_r, uses_local_type): New.
29 (scope_die_for): Keep a type that uses a local type in local scope.
30 Use get_context_die for namespace and type scope.
32 2012-05-03 Jason Merrill <jason@redhat.com>
34 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
36 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
37 (dwarf2out_finish): Likewise.
39 2012-05-03 Martin Jambor <mjambor@suse.cz>
41 * builtins.c (get_object_alignment_1): Return whether we can determine
42 the alignment or conservatively assume byte alignment. Return the
43 alignment by reference. Use get_pointer_alignment_1 for dereference
45 (get_pointer_alignment_1): Return whether we can determine the
46 alignment or conservatively assume byte alignment. Return the
47 alignment by reference. Use get_ptr_info_alignment to get SSA name
49 (get_object_alignment): Update call to get_object_alignment_1.
50 (get_object_or_type_alignment): Likewise, fall back to type alignment
51 only when it returned false.
52 (get_pointer_alignment): Update call to get_pointer_alignment_1.
53 * fold-const.c (get_pointer_modulus_and_residue): Update call to
54 get_object_alignment_1.
55 * ipa-prop.c (ipa_modify_call_arguments): Update call to
56 get_pointer_alignment_1.
57 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
58 of MEM_REF or TARGET_MEM_REF only when it returns false.
59 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
60 get_object_alignment_1.
61 (ccp_finalize): Use set_ptr_info_alignment.
62 * tree.h (get_object_alignment_1): Update declaration.
63 (get_pointer_alignment_1): Likewise.
64 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
65 (dump_gimple_stmt): Likewise.
66 * tree-flow.h (ptr_info_def): Updated comments of fields align and
68 (get_ptr_info_alignment): Declared.
69 (mark_ptr_info_alignment_unknown): Likewise.
70 (set_ptr_info_alignment): Likewise.
71 (adjust_ptr_info_misalignment): Likewise.
72 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
73 and set alignment of SSA names.
74 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
75 mark_ptr_info_alignment_unknown.
76 * tree-ssanames.c (get_ptr_info_alignment): New function.
77 (mark_ptr_info_alignment_unknown): Likewise.
78 (set_ptr_info_alignment): Likewise.
79 (adjust_ptr_info_misalignment): Likewise.
80 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
81 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
83 (bump_vector_ptr): Likewise.
84 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
85 (vectorizable_store): Likewise.
86 (vectorizable_load): Likewise.
88 2012-05-03 Michael Matz <matz@suse.de>
90 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
91 in front of basic_block_def.
92 (struct basic_block_def): Make il.gimple the full struct, not a
94 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
96 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple
98 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
99 NULL il.gimple, which can't happen anymore.
100 * gimple.h (bb_seq): il.gimple can't be NULL.
102 (set_bb_seq): Adjust.
103 (gsi_start_bb, gsi_last_bb): Tidy.
104 * lto-streamer-in.c (make_new_block): Don't zero members that
105 are zeroed already, don't allocate a gimple_bb_info.
106 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
107 (remove_bb): Clear all il.gimple members.
108 (gimple_verify_flow_info): Adjust for flat il.gimple.
109 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
111 * coretypes.h (const_gimple_seq): Remove typedef.
112 * gimple.h (gimple_seq_first): Take gimple_seq.
113 (gimple_seq_first_stmt): Ditto.
114 (gimple_seq_last): Ditto.
115 (gimple_seq_last_stmt): Ditto.
116 (gimple_seq_empty_p): Ditto.
118 2012-05-03 Richard Guenther <rguenther@suse.de>
120 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
122 (prune_clobbered_mems): Do it here. Do not uselessly sort
124 (compute_avail): Do not add possibly trapping operations to
125 EXP_GEN if they might not be executed in the block.
127 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
129 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
131 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
133 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
134 information as early as possible. Update dominance info instead of
137 2012-05-03 Richard Guenther <rguenther@suse.de>
139 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
140 (union_contains_value): Remove.
141 (vro_valid_in_sets): Likewise.
142 (op_valid_in_sets): New function.
143 (valid_in_sets): Use op_valid_in_sets.
144 (insert_into_preds_of_block): Move dumping ...
145 (do_regular_insertion): ... here.
146 (do_partial_partial_insertion): ... and here. Dump that
147 we've found a partial partial redundancy.
148 (insert): Dump the current insert iteration.
150 2012-05-03 Jakub Jelinek <jakub@redhat.com>
153 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
154 append program name to it and pass that as first argument
155 to make_relative_prefix. Always pass standard_libexec_prefix
156 as last argument to make_relative_prefix. If
157 make_relative_prefix returns NULL, fall back to
158 standard_libexec_prefix.
161 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
165 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
166 mode, return that mode.
169 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
170 define __ATOMIC_HLE_* macros here.
171 (ix86_target_macros): But here, using cpp_define_formatted.
173 2012-05-03 Richard Guenther <rguenther@suse.de>
175 PR tree-optimization/53144
176 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
178 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
179 with SSA name values.
180 (vn_reference_lookup_3): Adjust callers.
182 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
184 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
185 has_fma4 for AMD processors with both fma3 and fma4 support.
187 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
190 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
193 2012-05-03 Michael Matz <matz@suse.de>
196 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
197 (dse_enter_block): Properly iterate the whole sequence even
198 if the last statement was removed.
200 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
202 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
203 unset flag_jump_tables.
204 * stmt.c (expand_case): Remove special flag_pic case conditional
205 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
207 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
209 * common/config/s390/s390-common.c (s390_option_optimization_table):
210 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
211 default when optimizing.
213 2012-05-02 Martin Jambor <mjambor@suse.cz>
216 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
217 of a variable when the contect is a function.
219 2012-05-02 Michael Matz <matz@suse.de>
221 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
222 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
223 (const_gimple_seq_node): Remove.
224 (gimple_seq_node): Typedef as gimple.
225 (struct gimple_statement_base): Add next and prev members,
226 adjust all WORD markers in using structs.
227 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
228 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
229 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
231 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
233 (gimple_init_singleton): New function.
234 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
235 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
237 (gsi_stmt_ptr): Remove.
238 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
240 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
241 again, adjust for above changes.
242 (update_call_edge_frequencies): Adjust for above changes.
243 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
244 (gsi_insert_seq_nodes_after): Ditto.
245 (gsi_split_seq_after): Ditto.
246 (gsi_set_stmt): Ditto.
247 (gsi_split_seq_before): Ditto.
249 (gsi_insert_seq_before_without_update): Don't free sequence.
250 (gsi_insert_seq_after_without_update): Ditto.
251 (gsi_replace): Assert some more invariants.
252 (gsi_insert_before_without_update, gsi_insert_after_without_update):
254 (gsi_for_stmt): Don't search for stmt.
255 (gsi_insert_on_edge_immediate): Tidy.
257 * gimple.c (gimple_alloc_k): Remove "sequences".
258 (gimple_seq_cache): Remove.
259 (gimple_alloc_stat): Make stmt a singleton sequence.
260 (gimple_seq_alloc, gimple_seq_free): Remove.
261 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
262 (gimple_copy): Ditto.
263 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
264 create iterator from correct sequence.
265 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
267 2012-05-02 Michael Matz <matz@suse.de>
269 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
271 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
272 sequence, lazily allocate it.
273 (bb_seq_addr): New function.
274 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
275 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
276 (gsi_none): New function.
277 (gsi_start_bb): Adjust.
278 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
279 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
280 (gsi_last_bb): Adjust.
282 * tree-flow-inline.h (phi_nodes_ptr): New function.
284 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
285 datastructure and interface change.
286 (gsi_insert_seq_before_without_update): Ditto.
287 (gsi_insert_seq_nodes_after): Ditto.
288 (gsi_insert_seq_after_without_update): Ditto.
289 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
290 (gsi_split_seq_before): Ditto.
291 (gsi_start_phis): Adjust.
292 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
293 (vect_transform_loop): Ditto.
294 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
295 gimple_seq_copy): Don't use gimple_seq_alloc.
296 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
297 (gimplify_seq_add_seq): Ditto.
298 * lto-streamer-in.c (make_new_block): Ditto.
299 * tree-cfg.c (create_bb): Ditto.
300 * tree-sra.c (initialize_parameter_reductions): Ditto.
302 2012-05-02 Michael Matz <matz@suse.de>
304 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
305 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
306 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
307 set_bb_seq): Move down to after gimple_statement_d definition.
309 2012-05-02 Michael Matz <matz@suse.de>
311 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
312 gsi_replace_with_seq, instead of inserting itself.
313 * gimple-iterator.c (gsi_replace_with_seq): New function.
314 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
315 iterator instead of statement, advance it.
316 (ssa_forward_propagate_and_combine): Adjust call to above.
318 2012-05-02 Michael Matz <matz@suse.de>
320 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
322 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
323 * tree-nested.c (walk_gimple_omp_for): Ditto.
324 * trans-mem.c (lower_transaction): Ditto.
325 * tree-eh.c (do_return_redirection): Ditto.
326 (do_goto_redirection): Ditto.
327 (lower_try_finally_switch): Ditto.
328 * gimplify.c (gimplify_stmt): Ditto.
329 (gimplify_scan_omp_clauses): Ditto.
330 (gimplify_omp_for): Ditto.
331 (gimplify_function_tree): Ditto.
332 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
333 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
334 (mf_build_check_statement_for): Ditto.
335 (mx_register_decls): Ditto.
336 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
337 and don't use itertors to append.
338 (insert_stmts): Ditto.
339 (insert_out_of_ssa_copy): Ditto.
340 (insert_out_of_ssa_copy_on_edge): Ditto.
342 2012-05-02 Michael Matz <matz@suse.de>
344 * gimple.h (gimple_bind_body_ptr): New function.
345 (gimple_bind_body): Use it.
346 (gimple_catch_handler): Use gimple_catch_handler_ptr.
347 (gimple_eh_filter_failure_ptr): New function.
348 (gimple_eh_filter_failure): Use it.
349 (gimple_eh_else_n_body_ptr): New function.
350 (gimple_eh_else_n_body): Use it.
351 (gimple_eh_else_e_body_ptr): New function.
352 (gimple_eh_else_e_body): Use it.
353 (gimple_try_eval_ptr): New function.
354 (gimple_try_eval): Use it.
355 (gimple_try_cleanup_ptr): New function.
356 (gimple_try_cleanup): Use it.
357 (gimple_wce_cleanup_ptr): New function.
358 (gimple_wce_cleanup): Use it.
359 (gimple_omp_body_ptr): New function.
360 (gimple_omp_body): Use it.
361 (gimple_omp_for_pre_body_ptr): New function.
362 (gimple_omp_for_pre_body): Use it.
363 (gimple_transaction_body_ptr): New function.
364 (gimple_transaction_body): Use it.
365 (gsi_split_seq_before): Adjust to return nothing and take pointer
367 (gsi_set_stmt): Declare.
368 (gsi_replace_with_seq): Declare.
369 (walk_gimple_seq_mod): Declare.
370 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
372 * gimple-iterator.c (gsi_set_stmt): New function.
373 (gsi_split_seq_before): Return new sequence via pointer argument.
374 (gsi_replace): Use gsi_set_stmt.
376 * tree-ssa-loop-im.c (move_computations_stmt): First remove
378 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
379 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
381 (reserve_phi_args_for_new_edge): Change call to above,
384 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
385 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
386 iterators. Adjust call to lower_omp.
387 (lower_lastprivate_clauses): Adjust call to lower_omp.
388 (lower_reduction_clauses): Ditto.
389 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
390 (lower_omp_sections): Don't explicitely count sequence length,
391 nullify lowered bodies earlier, ensure stmts are part of only
392 one sequence, adjust call to lower_omp.
393 (lower_omp_single): Ensure stmts are part of only one sequence,
394 adjust call to lower_omp.
395 (lower_omp_master): Ditto.
396 (lower_omp_ordered): Ditto.
397 (lower_omp_critical): Ditto.
398 (lower_omp_for): Ditto.
399 (lower_omp_taskreg): Ditto, tidy.
400 (lower_omp_1): Adjust calls to lower_omp.
401 (execute_lower_omp): Ditto.
402 (lower_omp): Adjust to take pointer to sequence.
403 (diagnose_sb_2): Use walk_gimple_seq_mod.
404 (diagnose_omp_structured_block_errors): Ditto and set possibly
405 changed function body.
406 * gimple-low.c (lower_function_body): Set function body after
408 (lower_sequence): Adjust to take pointer to sequence.
409 (lower_omp_directive): Ensure stmt isn't put twice into the
410 sequence, adjust call to lower_sequence.
411 (lower_stmt): Adjust calls to lower_sequence.
412 (lower_gimple_bind): Ditto.
413 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
414 * tree-nested.c (walk_body): Take pointer to sequence, use
416 (walk_function): Adjust call to walk_body, set possibly changed body.
417 (walk_gimple_omp_for): Adjust calls to walk_body.
418 (convert_nonlocal_omp_clauses): Ditto.
419 (convert_nonlocal_reference_stmt): Ditto.
420 (convert_local_omp_clauses): Ditto.
421 (convert_local_reference_stmt): Ditto.
422 (convert_tramp_reference_stmt): Ditto.
423 (convert_gimple_call): Ditto.
424 (convert_nl_goto_reference): Use local iterator copy.
425 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
426 but taking pointer to sequence, ensure gsi_start is called with
428 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
429 asserting that the sequence head didn't change.
430 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
432 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
433 (execute_lower_tm): Ditto, and set possibly changed body.
434 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
435 call gsi_start with that lvalue.
436 (replace_goto_queue_stmt_list): Ditto.
437 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
438 (replace_goto_queue): Ditto.
439 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
440 (lower_try_finally_onedest): Ditto.
441 (lower_try_finally_copy): Ditto.
442 (lower_try_finally_switch): Ditto.
443 (lower_try_finally): Ditto.
444 (lower_eh_filter): Ditto.
445 (lower_eh_must_not_throw): Ditto.
446 (lower_cleanup): Ditto.
447 (lower_eh_constructs_2): Ditto.
448 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
449 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
450 set possibly changed body.
451 (optimize_double_finally): Call gsi_start with lvalue.
453 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
454 (gimple_split_block): Ditto.
455 (gimple_merge_blocks): Use gsi_start_phis.
456 (move_stmt_r): Use walk_gimple_seq_mod.
457 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
458 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
459 (rebuild_cgraph_edges): Ditto.
460 (cgraph_rebuild_references): Ditto.
461 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
462 * tree-inline.c (copy_phis_for_bb): Ditto.
463 * tree-ssa-dce.c: Ditto.
465 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
467 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
468 Andi Kleen <ak@linux.intel.com>
470 * coretypes.h (MEMMODEL_MASK): New.
471 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
472 and return new variable.
473 (expand_builtin_atomic_exchange): Mask memmodel values.
474 (expand_builtin_atomic_compare_exchange): Ditto.
475 (expand_builtin_atomic_load): Ditto.
476 (expand_builtin_atomic_store): Ditto.
477 (expand_builtin_atomic_clear): Ditto.
478 * doc/extend.texi: Mention port-dependent memory model flags.
479 * config/i386/cpuid.h (bit_HLE): New.
480 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
482 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
483 * config/i386/i386-c.c (ix86_target_macros_internal): Set
485 (ix86_target_string)<-mhle>: New.
486 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
487 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
488 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
489 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
490 enabled for generic, generic64 and core-avx2.
491 (ix86_print_operand): Generate HLE lock prefixes.
492 (ix86_memmodel_check): New.
493 (TARGET_MEMMODEL_CHECK): Ditto.
494 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
495 (IX86_HLE_ACQUIRE): Ditto.
496 (IX86_HLE_RELEASE): Ditto.
497 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
498 * config/i386/i386.opt (mhle): Ditto.
499 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
500 success model to instruction emitter.
501 (atomic_fetch_add<mode>): Ditto.
502 (atomic_exchange<mode>): Ditto.
503 (atomic_add<mode>): Ditto.
504 (atomic_sub<mode>): Ditto.
505 (atomic_<code><mode>): Ditto.
506 (*atomic_compare_and_swap_doubledi_pic): Ditto.
507 (atomic_compare_and_swap_single<mode>): Define and use argument
509 (atomic_compare_and_swap_double<mode>): Ditto.
510 * configure.ac: Check if assembler support HLE prefixes.
511 * configure: Regenerate.
514 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
517 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
519 (gimplify_switch_expr): ... here.
520 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
521 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
522 to clean up case labels with values outside the index type range.
523 (simplify_gimple_switch): Call it if something changed.
524 Remove strange and unnecessary assert.
526 2012-05-02 Richard Guenther <rguenther@suse.de>
528 * fold-const.c (div_if_zero_remainder): sizetypes no longer
530 (int_const_binop_1): New worker for int_const_binop with
531 overflowable parameter. Pass it through
532 to force_fit_type_double.
533 (int_const_binop): Wrap around int_const_binop_1 with overflowable
535 (size_binop_loc): Call int_const_binop_1 with overflowable equal
536 to minus one, forcing overflow detection for even unsigned types.
537 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
538 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
539 * stor-layout.c (initialize_sizetypes): sizetypes no longer
541 (layout_type): For zero-sized arrays ignore overflow on the
543 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
544 (bit_value_binop_1): Likewise.
545 * tree.c (double_int_to_tree): Likewise.
546 (double_int_fits_to_tree_p): Likewise.
547 (force_fit_type_double): Likewise.
548 (host_integerp): Likewise.
549 (int_fits_type_p): Likewise.
550 * varasm.c (output_constructor_regular_field): Sign-extend the
551 field-offset to cater for negative offsets produced by the Ada
553 * omp-low.c (extract_omp_for_data): Convert the loop step to
554 signed for pointer adjustments.
556 2012-05-02 Richard Guenther <rguenther@suse.de>
558 * tree.c (valid_constant_size_p): New function.
559 * tree.h (valid_constant_size_p): Declare.
560 * cfgexpand.c (expand_one_var): Adjust check for too large
561 variables by using valid_constant_size_p.
562 * varasm.c (assemble_variable): Likewise.
564 * c-decl.c (grokdeclarator): Properly check for sizes that
565 cover more than half of the address-space.
567 2012-05-02 Jakub Jelinek <jakub@redhat.com>
569 PR tree-optimization/53163
570 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
571 return value from compute_all_dependences.
573 PR rtl-optimization/53160
574 * ree.c (combine_reaching_defs): Handle the case where cand->insn
575 has been modified by ree pass already.
577 2012-05-01 Ian Lance Taylor <iant@google.com>
580 * c-decl.c (build_compound_literal): Make the decl readonly if it
581 an array of a readonly type.
582 * gimplify.c (gimplify_compound_literal_expr): Add fallback
583 parameter. Change all callers. If the decl is not addressable
584 and is not an l-value, make it readonly.
586 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
588 * ira.c (allocated_reg_info_size): New static variable.
589 (expand_reg_info): Manage it. Call
590 setup_preferred_alternate_classes_for_new_pseudos.
591 (ira): Don't do it here. Remove local allocated_reg_info_size,
592 set the global before calling find_moveable_pseudos.
593 (find_moveable_pseudos): Call expand_reg_info rather than
596 2012-05-01 Richard Henderson <rth@redhat.com>
598 * common.opt (fsync-libcalls): New.
599 * doc/invoke.texi: Document it.
600 * optabs.c (init_sync_libfuncs): Honor it.
602 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
603 Richard Sandiford <r.sandiford@uk.ibm.com>
605 PR rtl-optimization/52543
606 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
608 * lower-subreg.h: New file.
609 * target-globals.h (this_target_lower_subreg): Declare.
610 (target_globals): Add lower_subreg;
611 (restore_target_globals): Restore this_target_lower_subreg.
612 * target-globals.c: Include it.
613 (default_target_globals): Add default_target_lower_subreg.
614 (save_target_globals): Initialize target_lower_subreg.
615 * rtl.h (init_lower_subreg): Added declaration.
616 * toplev.c (backend_init_target): Call initializer for lower-subreg
618 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
619 (default_target_lower_subreg): New variable.
620 (this_target_lower_subreg): Likewise.
621 (twice_word_mode, choices): New macros.
622 (shift_cost, compute_splitting_shift, compute_costs)
623 (init_lower_subreg): New functions.
624 (resolve_simple_move): Add speed_p argument. Check choices.
625 (find_pseudo_copy): Don't check the mode size here.
626 (resolve_simple_move): Assert the mode size.
627 (find_decomposable_shift_zext): Add speed_p argument and return
628 a bool. Check choices.
629 (resolve_shift_zext): Add comment.
630 (dump_shift_choices, dump_choices): New functions.
631 (decompose_multiword_subregs): Dump list of profitable
632 transformations. Add code to skip non profitable transformations.
633 Update calls to simple_move and find_decomposable_shift_zext.
635 2012-05-01 Ian Bolton <ian.bolton@arm.com>
636 Sameera Deshpande <sameera.deshpande@arm.com>
637 Greta Yorsh <greta.yorsh@arm.com>
639 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
640 (thumb1_unexpanded_epilogue): ...this.
641 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
642 (thumb1_unexpanded_epilogue): ...this.
643 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
644 (thumb1_unexpanded_epilogue): ...this.
646 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
648 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
649 comparing enumeration values. Update comments.
651 2012-05-01 Alan Modra <amodra@gmail.com>
654 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
655 load_cr_save, add_crlr_cfa_restore): New functions.
656 (rs6000_restore_saved_cr): Rename to..
657 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
658 (rs6000_emit_epilogue): Use new functions. Adjust condition
659 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
660 regs when using out-of-line restore only when shrink wrapping.
662 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
665 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
666 calls to cgraph_node_name in xstrdup.
667 (ipa_make_edge_direct_to_target): Ditto.
668 * cgraph.c (dump_cgraph_node): Ditto.
669 * tree-sra.c (convert_callers_for_node): Ditto.
670 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
671 * ipa-cp.c (perhaps_add_new_callers): Ditto.
672 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
673 (cgraph_materialize_all_clones): Ditto.
674 * ipa-inline.c (report_inline_failed_reason): Ditto.
675 (want_early_inline_function_p): Ditto.
676 (edge_badness): Ditto.
677 (update_edge_key): Ditto.
678 (flatten_function): Ditto.
680 (inline_always_inline_functions): Ditto.
681 (early_inline_small_functions): Ditto.
683 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
686 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
689 012-04-30 Jan Hubicka <jh@suse.cz>
691 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
692 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
693 (cgraph_add_to_same_comdat_group): Remove.
694 (cgraph_add_asm_node): Move to cgraphunit.c.
695 (cgraph_make_decl_local): Move to symtab.c
696 (cgraph_make_node_local_1): Update.
697 (cgraph_can_remove_if_no_direct_calls_and): Update.
698 (used_from_object_file_p): Update.
699 (resolution_used_from_other_file_p): Move to symtab.c
700 (cgraph_used_from_object_file_p): move to symtab.c
701 (verify_cgraph_node): Verify same comdat groups.
702 * cgraph.h (cgraph_asm_node): Rename to ...
703 (asm_node): ... this one.
704 (cgraph_asm_nodes): Rename to ...
705 (asm_nodes): ... this one.
706 (symtab_add_to_same_comdat_group): New function.
707 (symtab_dissolve_same_comdat_group_list): New function.
708 (symtab_used_from_object_file_p): Declare.
709 (symtab_make_decl_local): Declare.
710 (cgraph_add_to_same_comdat_group): Remove.
711 (cgraph_add_asm_node): Remove.
712 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
714 (cgraph_finalize_compilation_unit): Rename to ...
715 (finalize_compilation_unit): ... this one.
716 (cgraph_optimize): Rename to ....
717 (compile): ... this one.
718 (add_asm_node): Declare.
719 (fixup_same_cpp_alias_visibility): Declare.
720 (cgraph_make_decl_local): Remove.
721 (varpool_assemble_pending_decls): Rename to ...
722 (varpool_output_variables): ... this one.
723 (varpool_remove_unreferenced_decls): Remove.
724 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
725 (preserve_function_body_p): Make static.
726 * toplev.c (compile_file): Update comments; update.
727 * cgraphunit.c: Update comments.
728 (cgraph_expand_all_functions): Rename to ...
729 (expand_all_functions): ... this one; update.
730 (cgraph_mark_functions_to_output): Rename to ...
731 (mark_functions_to_output): ... this one; cleanup.
732 (cgraph_output_pending_asms): Remove prototype.
733 (asm_nodes, asm_last_node): New static vars.
734 (cgraph_process_new_functions): Update.
735 (cgraph_reset_node): Cleanup; add comment.
736 (cgraph_add_new_function): Update.
737 (cgraph_output_pending_asms): Rename to ...
738 (output_asm_statements): ... this one.
739 (add_asm_node): New function.
740 (fixup_same_cpp_alias_visibility): New function based on code
741 in cgraph_analyze_function.
742 (cgraph_analyze_function): Use it.
743 (cgraph_order_sort): Update.
744 (cgraph_output_in_order): Update.
745 (cgraph_function_versioning): Update.
746 (cgraph_optimize): Rename to ...
747 (compile): ... this one; initialize streamer hooks here.
748 (cgraph_finalize_compilation_unit): Rename to ...
749 (finalize_compilation_unit): ... this one; do not initialize streamer
751 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
752 * dwarf2out.c: Update ocmment.
753 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
754 * method.c (use_thunk): Likewise.
755 * semantics.c (maybe_add_lambda_conv_op): Likewise.
756 * decl2.c (maybe_emit_vtables): Likewise.
757 (cp_write_global_declarations): Use finalize_compilation_unit.
758 * parser.c (cp_parser_asm_definition): Use add_asm_node.
759 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
760 * c-decl.c (c_write_global_declarations): Use
761 finalize_compilation_unit.
762 * langhooks.c (write_global_declarations): Update.
763 * ipa.c (cgraph_externally_visible_p): Update.
764 (dissolve_same_comdat_group_list): Remove.
765 (function_and_variable_visibility): Update.
766 * symtab.c: Inlcude lto-streamer.h and rtl.h
767 (ld_plugin_symbol_resolution_names): New.
768 (symtab_add_to_same_comdat_group): New.
769 (symtab_dissolve_same_comdat_group_list): New.
770 (resolution_used_from_other_file_p): Move here from cgraph.c
771 (symtab_used_from_object_file_p): New.
772 (symtab_make_decl_local): New.
773 * passes.c (register_pass): Update comments.
774 * c-parser.c (c_parser_asm_definition): Update.
775 * varpool.c (varpool_analyze_node): Use
776 fixup_same_cpp_alias_visibility.
777 (varpool_remove_unreferenced_decls): Make static.
778 (varpool_assemble_pending_decls): Rename to ...
779 (varpool_output_variables): ... this one; call
780 varpool_remove_unreferenced_decls.
781 (varpool_used_from_object_file_p): Remove.
783 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
786 * c-typeck.c (build_array_ref): Call
787 convert_vector_to_pointer_for_subscript.
788 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
790 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
792 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
793 to compile-time "mode == <MODE>mode" checks.
794 (and splitter): Ditto.
796 2012-04-30 Richard Henderson <rth@redhat.com>
798 * config/arm/arm.md (UNSPEC_LL): New.
799 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
800 (arm_load_exclusivedi): Use %H0.
802 2012-04-30 Jason Merrill <jason@redhat.com>
804 * dwarf2out.c (comdat_symbol_id): Add const.
805 (union die_symbol_or_type_node): Add const to die_symbol.
806 (output_die_symbol, output_die, output_comp_unit): Adjust.
808 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
810 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
811 * config/arm/neon.md (negdi2_neon): New insn.
812 Also add splitters for core and NEON registers.
814 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
816 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
817 (arm_print_operand): Add 'x' format.
818 * config/arm/constraints.md (Dn): Allow const_int.
819 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
820 Use 'x' format to print constants.
821 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
822 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
824 (movdi_vfp_cortexa8): Likewise.
826 2012-04-30 Ian Bolton <ian.bolton@arm.com>
827 Sameera Deshpande <sameera.deshpande@arm.com>
828 Greta Yorsh <greta.yorsh@arm.com>
830 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
831 * config/arm/arm.c (ldm_stm_operation_p): New function.
832 * config/arm/predicates.md (load_multiple_operation): Update predicate.
833 (store_multiple_operation): Likewise.
835 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
836 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
837 * config/arm/predicates.md (load_multiple_operation): Add arguments.
838 (store_multiple_operation): Likewise.
840 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
842 * config/i386/i386.md (and<mode>3): Expand masking operations with
843 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
844 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
846 2012-04-30 Dodji Seketeli <dodji@redhat.com>
849 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
850 argument for the various warning_at calls.
851 * docs/invoke.texi: Update the documentation.
853 2012-04-30 Dodji Seketeli <dodji@redhat.com>
855 Switch -ftrack-macro-expansion=2 on by default.
856 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
859 Fix va_start related location
860 * builtins.c (fold_builtin_next_arg): Unwinds to the first
861 location in real source code.
863 Make conversion warnings work on NULL with -ftrack-macro-expansion
864 * input.h (expansion_point_location_if_in_system_header): Declare
866 * input.c (expansion_point_location_if_in_system_header): Define it.
868 Fix -Wuninitialized for -ftrack-macro-expansion
869 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
870 declaration. Use linemap_location_before_p for source locations.
872 Strip "<built-in>" loc from displayed expansion context
873 * input.c (expand_location_1): When expanding to spelling location
874 in a context of a macro expansion, skip reserved system header
875 locations. Update comments. * tree-diagnostic.c
876 (maybe_unwind_expanded_macro_loc): Likewise.
878 Make expand_location resolve to locus in main source file
879 * input.c (expand_location_1): New. Takes a parameter to choose
880 whether to resolve the location to spelling or expansion point.
881 Was factorized from ...
882 (expand_location): ... here.
883 (expand_location_to_spelling_point): New. Implemented in terms of
885 * diagnostic.c (diagnostic_build_prefix): Use the new
886 expand_location_to_spelling_point instead of expand_location.
888 Fix PCH crash on GTYed pointer-to-scalar field of a struct
889 * gengtype.c (write_types_process_field): Force second argument of
890 the call to the PCH object hierarchy walker to be 'x'.
892 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
894 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
895 predicate to discriminate types.
897 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
899 * doc/invoke.texi (Wmissing-format-attribute): Document as an
900 alias of Wsuggest-attribute=format.
901 * c-typeck.c (convert_for_assignment): Replace
902 Wmissing-format-attribute with Wsuggest-attribute=format.
903 (digest_init): Likewise.
905 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
907 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
908 * common.opt (Wmissing-noreturn): Alias of
909 -Wsuggest-attribute=noreturn.
911 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
914 * config/cris/cris.md (andqu): New peephole2.
915 (andu): Tweak head comment.
917 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
918 Steven Bosscher <steven@gcc.gnu.org>
919 Maxim Kuvyrkov <maxim@codesourcery.com>
921 PR tree-optimization/38785
922 * common.opt (ftree-partial-pre): New option.
923 * doc/invoke.texi: Document it.
924 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
925 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
927 (execute_pre): Use flag_tree_partial_pre.
929 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
932 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
935 2012-04-27 Ollie Wild <aaw@google.com>
937 * doc/invoke.texi (Wliteral-suffix): Document new option.
939 2012-04-27 Tom Tromey <tromey@redhat.com>
941 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
942 (dwarf_tag_name): Use get_DW_TAG_name.
943 (dwarf_attr_name): Use get_DW_AT_name.
944 (dwarf_form_name): Use get_DW_FORM_name.
945 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
947 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
949 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
950 arguments are -1 and 0, by negating the result of the conditional.
952 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
955 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
957 2012-04-27 Richard Guenther <rguenther@suse.de>
959 * tree-flow.h (is_hidden_global_store): Remove.
960 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
961 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
962 (stmt_may_clobber_global_p): Likewise.
963 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
964 (stmt_may_clobber_global_p): Likewise.
965 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
966 stmt_may_clobber_global_p.
967 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
969 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
971 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
974 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
975 reorganize some fields and update comments. Rename bit_test_uniq
976 and bit_test_count to uniq resp. count. Remove bit_test_bb.
977 (collect_switch_conv_info): New function, collects info about a
978 GIMPLE_SWITCH into a struct switch_conv_info.
979 (check_range): Simplify to use pre-recorded info. Fix think-o in
980 range-branch ratio check.
981 (check_process_case): Remove function.
982 (check_all_empty_except_final): New function, verifies that all
983 non-final basic blocks are empty.
984 (process_switch): Simplify to use pre-recorded info. Call
985 collect_switch_conv_info to do that. Assert that degenerate switch
986 statements have been cleaned up.
988 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
991 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
993 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
996 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
998 2012-04-27 Tom de Vries <tom@codesourcery.com>
1000 PR tree-optimization/51879
1001 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
1002 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
1004 (defs_to_varying): ... here. Don't set use_processed.
1005 (visit_reference_op_call): Handle gimple_vdef.
1006 Handle case that lhs is NULL_TREE.
1007 (visit_use): Use mark_use_processed. Handle calls with side-effect
1008 using visit_reference_op_call.
1010 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
1012 * sched-deps.c (fixup_sched_groups): Rename to...
1013 (chain_to_prev_insn): ...this.
1014 (chain_to_prev_insn_p): New function.
1015 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
1017 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
1019 * sched-int.h (_haifa_insn_data): Move priority_status.
1021 (INSN_MODEL_INDEX): New macro.
1022 * haifa-sched.c (insn_delay): New function.
1023 (sched_regno_pressure_class): Update commentary.
1024 (mark_regno_birth_or_death): Pass the liveness bitmap and
1025 pressure array as arguments, instead of using curr_reg_live and
1026 curr_reg_pressure. Only update the pressure if the bit in the
1027 liveness set has changed.
1028 (initiate_reg_pressure_info): Always trust the live-in set for
1029 SCHED_PRESSURE_MODEL.
1030 (initiate_bb_reg_pressure_info): Update call to
1031 mark_regno_birth_or_death.
1032 (dep_list_size): Take the list as argument.
1033 (calculate_reg_deaths): New function, extracted from...
1034 (setup_insn_reg_pressure_info): ...here.
1035 (MODEL_BAR): New macro.
1036 (model_pressure_data, model_insn_info, model_pressure_limit)
1037 (model_pressure_group): New structures.
1038 (model_schedule, model_worklist, model_insns, model_num_insns)
1039 (model_curr_point, model_before_pressure, model_next_priority):
1041 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
1042 (MODEL_INSN_INFO, MODEL_INSN): New macros.
1043 (model_index, model_update_limit_points_in_group): New functions.
1044 (model_update_limit_points, model_last_use_except): Likewise.
1045 (model_start_update_pressure, model_update_pressure): Likewise.
1046 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
1047 (model_excess_cost, model_dump_pressure_points): Likewise.
1048 (model_set_excess_costs): Likewise.
1049 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
1050 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
1051 schedule as an alternative tie-breaker. Update the call to
1053 (ready_sort): Call model_set_excess_costs.
1054 (update_register_pressure): Update call to mark_regno_birth_or_death.
1055 Rely on that function to check liveness rather than doing it here.
1056 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
1057 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
1058 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
1059 (model_record_pressure, model_record_pressures): New functions.
1060 (model_record_final_pressures, model_add_successors_to_worklist)
1061 (model_promote_predecessors, model_choose_insn): Likewise.
1062 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
1063 (model_start_schedule, model_finalize_pressure_group): Likewise.
1064 (model_end_schedule): Likewise.
1065 (schedule_insn): Say when we're scheduling the next instruction
1066 in the model schedule.
1067 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
1068 (queue_to_ready): Do not add instructions that are
1069 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
1070 Always allow the next instruction in the model schedule to be added.
1071 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
1072 and delay for SCHED_PRESSURE_MODEL too.
1073 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
1074 SCHED_PRIORITY_MODEL, but also take the DFA into account.
1075 (schedule_block): Call model_start_schedule and model_end_schedule.
1076 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
1077 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
1078 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
1080 (sched_finish): Update accordingly.
1081 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
1082 to SCHED_PRESSURE_MODEL.
1083 (add_jump_dependencies): Update call to dep_list_size.
1084 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
1085 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
1086 to SCHED_PRESSURE_MODEL.
1087 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
1088 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
1089 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
1090 handling to SCHED_PRESSURE_MODEL.
1092 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
1094 * common.opt (fsched-pressure-algorithm=): New option.
1095 * flag-types.h (sched_pressure_algorithm): New enum.
1096 * sched-int.h (sched_pressure_p): Replace with...
1097 (sched_pressure): ...this new variable.
1098 * haifa-sched.c (sched_pressure_p): Replace with...
1099 (sched_pressure): ...this new variable.
1100 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
1101 (update_reg_and_insn_max_reg_pressure, schedule_insn)
1102 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
1103 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
1104 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
1105 (sched_analyze_insn): Likewise.
1106 * sched-rgn.c (schedule_region): Likewise.
1107 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
1109 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
1111 * PR middle-end/52997
1112 * ira.c (find_moveable_pseudos): Call resize_reg_info.
1115 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
1116 * expr.c (convert_move): Honor unsignedp when extending partial int
1118 * genmodes.c (complete_mode): Don't clear component field of partial
1120 (emit_mode_inner): Don't emit it however.
1121 (calc_wider_mode): Partial int modes widen to their component.
1123 2012-04-26 David S. Miller <davem@davemloft.net>
1125 * config/sparc/niagara4.md: New file.
1126 * config/sparc/sparc.md: Include it.
1127 * config/sparc/sparc.c (niagara4_costs): New processor costs.
1128 (sparc_option_override): Use it.
1129 (sparc_use_sched_lookahead): Return 2 for niagara4.
1130 (sparc_issue_rate): Likewise.
1132 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
1133 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
1134 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
1135 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
1136 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
1137 alignaddrldi_vis): Set type to gsr.
1138 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
1139 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
1140 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
1141 v<vis3_shift_patname><mode>3, fmean16_vis,
1142 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
1143 fucmp<code>8<P:mode>_vis): Set type to fga.
1144 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
1145 * config/sparc/niagara.md: Likewise.
1146 * config/sparc/niagara2.md: Likewise.
1147 * config/sparc/ultra3.md: Likewise, and fix type matching for
1148 us3_ialuX reservation.
1150 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1152 * reload.c (find_reloads): Change the loop nesting when trying an
1153 alternative with swapped operands.
1155 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1157 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
1158 comment. Delete unused parameter first_exp_point_map.
1159 (virt_loc_aware_diagnostic_finalizer): Update call.
1161 2012-04-26 Michael Hope <michael.hope@linaro.org>
1162 Richard Earnshaw <rearnsha@arm.com>
1164 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
1165 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
1166 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
1167 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
1169 2012-04-25 Sriraman Tallam <tmsriram@google.com>
1171 * doc/extend.texi: Document avx2 support.
1172 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
1174 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
1177 * config/cris/cris.md ("*andhi_lowpart_v32")
1178 ("*andqi_lowpart_v32"): Change first input-only operand from
1179 a (match_operand ...) to (match_dup 0). Drop alternatives with
1180 const_int-matching constraints for redundancy.
1181 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
1182 three-operand alternative.
1184 2012-04-25 Jakub Jelinek <jakub@redhat.com>
1187 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
1188 instead expand it as zero extension.
1190 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
1193 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
1195 2012-04-25 Jakub Jelinek <jakub@redhat.com>
1197 * common.opt (flag_debug_types_section): Default to 0.
1198 (dwarf_version): Default to 4.
1199 (dwarf_record_gcc_switches): Default to 1.
1200 (dwarf_strict): Default to 0.
1201 * toplev.c (process_options): Don't handle dwarf_strict
1202 or dwarf_version here.
1203 * config/vxworks.c (vxworks_override_options): Don't
1204 test whether dwarf_strict or dwarf_version are negative,
1205 instead test !global_options_set.x_dwarf_*.
1206 * config/darwin.c (darwin_override_options): Default to
1208 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
1209 and -fno-debug-types-section are now the default.
1211 2012-04-25 Jan Hubicka <jh@suse.cz>
1213 * cgraphunit.c: Update toplevel comment.
1214 (tree_rest_of_compilation): Merge into cgraph_expand_function.
1215 (cgraph_analyze_function): Make static.
1216 (cgraph_decide_is_function_needed): Make static.
1217 (cgraph_add_new_function): Use expand_function instead of
1218 rest_of_compilation.
1219 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
1220 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
1222 (cgraph_inline_p): Remove.
1223 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
1224 (init_cgraph): Add comment.
1225 * cgraphbuild.c (record_reference, mark_address, mark_load,
1226 mark_store): Do not call analyze_expr hook.
1227 * cgraph.c: Update toplevel comment.
1228 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
1229 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
1230 Move fere from cgraphunit.c
1231 (cgraph_mark_force_output_node): Move to cgraph.h
1232 * cgraph.h: Reorder so the comments match the function placement.
1233 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
1234 (cgraph_mark_force_output_node): Move here from cgraph.c
1235 * tree.c (free_lang_data): Do not clear analyze_expr hook.
1236 * ipa-inline-transform.c (preserve_function_body_p): New function.
1237 (inline_transform): Update.
1238 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
1239 * langhooks.h (lang_hooks_for_callgraph): Remove.
1240 (lang_hooks): Remove callgraph.
1241 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
1242 * varpool.c: Remove out of date comment.
1243 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
1244 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
1246 2012-04-25 Jan Hubicka <jh@suse.cz>
1249 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
1250 forward declaration.
1251 (cgraph_finalize_function): Finalize them here.
1252 * symtab.c (dump_symtab): Dump ctors and dtors.
1254 2012-04-25 Jakub Jelinek <jakub@redhat.com>
1257 * stor-layout.c (get_best_mode): Don't return mode with bitsize
1258 larger than maxbits. Don't compute maxbits modulo align.
1259 Also check that unit bytes long store at bitpos / unit * unit
1260 doesn't affect bits beyond bitregion_end.
1261 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
1262 would not fit into bitregion_start ... bitregion_end + 1 bit region.
1263 (store_split_bit_field): Decrease unit close to end of bitregion_end
1264 if access is restricted in order to avoid mutual recursion.
1266 PR tree-optimization/53058
1267 * double-int.h (double_int_max_value, double_int_min_value): New
1269 * double-int.c (double_int_max_value, double_int_min_value): New
1271 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
1272 or GT_EXPR with double_int_max_value instead of double_int_mask.
1274 2012-04-25 Richard Guenther <rguenther@suse.de>
1276 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
1277 * tree-vect-loop.c (vect_transform_loop): Adjust.
1278 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
1279 the maximum number of iterations for the epilogue loop.
1280 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
1282 2012-04-25 Jakub Jelinek <jakub@redhat.com>
1285 * c-typeck.c (set_nonincremental_init,
1286 set_nonincremental_init_from_string): Pass true instead of false
1287 as IMPLICIT to add_pending_init.
1289 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
1291 * c-typeck.c (pop_init_level): Improve diagnostics.
1293 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
1295 * compare-elim.c (try_eliminate_compare): Also handle operands with
1296 implicit extensions.
1298 2012-04-25 Alan Modra <amodra@gmail.com>
1300 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
1301 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
1302 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
1303 (no_global_regs_above): Delete.
1304 (no_global_regs): New function.
1305 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
1306 value for load multiple test.
1307 (savres_routine_syms): Increase size.
1308 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
1309 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
1310 rather than a number of boolean flags. Update all callers.
1311 (rs6000_savres_routine_name): Generate vector save/restore names.
1312 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
1313 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
1314 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
1315 and using_store_multiple. Expand uses. Don't always use r11 as
1316 frame reg when needed for out-of-line saves. Set up initial offset
1317 for out-of-line vector saves when buying stack frame. Handle pointer
1318 reg setup for out-of-line fp save. Emit call to out-of-line vector
1319 save function. Choose r11 or r12 for vrsave reg when available for
1321 (rs6000_output_function_prologue): Don't emit .extern for ELF.
1322 (rs6000_emit_epilogue): Choose a better frame reg when restoring
1323 from back-chain to suit out-of-line vector restore functions. Emit
1324 call to out-of-line vector restore function. Adjust register used
1325 for cr restore. Tweak pointer register setup for gpr restore.
1326 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
1328 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
1329 (V_SAVE_INLINE): Define.
1330 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
1332 2012-04-25 Alan Modra <amodra@gmail.com>
1334 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
1335 out-of-line save/restore for large frames. Don't disable
1336 out-of-line saves on ABI_AIX when using static chain reg.
1337 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
1338 clobber static chain reg, and tweak for out-of-line gpr saves
1341 2012-04-25 Alan Modra <amodra@gmail.com>
1343 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
1344 (rs6000_emit_prologue): Use the above to catch register overlap.
1346 2012-04-25 Alan Modra <amodra@gmail.com>
1348 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
1349 decl. Move logic selecting update reg to callers. Update all callers.
1350 (rs6000_emit_allocate_stack): Add copy_off param.
1351 (emit_frame_save): Don't handle reg+reg addressing.
1352 (ptr_regno_for_savres): New function, extracted from..
1353 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
1354 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
1355 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
1356 frame offset adjustment for out-of-line save with copy from sp.
1357 Simplify condition controlling whether cr is saved early or
1358 late. Use ptr_regno_for_savres to verify correct reg is set
1359 up for out-of-line saves. Pass the actual pointer reg used to
1360 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
1361 function. Rearrange spe vars so code is similar to that
1362 elsewhere in this function. Don't update frame_off when spe
1363 save code will restore r11. Use emit_frame_save for spe and
1364 gpr saves. Consolidate darwin out-of-line gpr setup with that
1365 for other abis. Don't assume frame_offset is zero and frame
1366 reg is sp when setting up altivec reg saves, and calculate
1367 exact offset requirement.
1368 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
1369 spe restore code. Consolidate darwin out-of-line gpr setup
1370 with that for other abis.
1372 2012-04-25 Alan Modra <amodra@gmail.com>
1374 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
1375 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
1377 (emit_frame_save): Delete frame_ptr param. Rename total_size to
1379 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
1380 and emit_frame_save calls. Cope with possibly missing note.
1382 2012-04-24 Sriraman Tallam <tmsriram@google.com>
1384 * config/i386/i386.c (build_processor_model_struct): New function.
1385 (make_var_decl): New function.
1386 (fold_builtin_cpu): New function.
1387 (ix86_fold_builtin): New function.
1388 (make_cpu_type_builtin): New function.
1389 (ix86_init_platform_type_builtins): New function.
1390 (ix86_expand_builtin): Expand new builtins by folding them.
1391 (ix86_init_builtins): Make new builtins to detect CPU type.
1392 (TARGET_FOLD_BUILTIN): New macro.
1393 (IX86_BUILTIN_CPU_INIT): New enum value.
1394 (IX86_BUILTIN_CPU_IS): New enum value.
1395 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
1396 * config/i386/i386-builtin-types.def: New function type.
1397 * testsuite/gcc.target/builtin_target.c: New testcase.
1398 * doc/extend.texi: Document builtins.
1400 2012-04-24 Olivier Hainque <hainque@adacore.com>
1402 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
1403 * toplev.c (process_options): Default to dwarf_version 2.
1404 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
1405 and dwarf_version 2.
1407 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
1409 * tree-pretty-print.h (default_tree_printer): Do not declare.
1410 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
1412 (default_tree_diagnostic_starter): Make static.
1413 (default_tree_printer): Move to here. Make static.
1414 (tree_diagnostics_defaults): New.
1415 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
1416 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
1417 * toplev.c: Do not include tree-pass.h.
1418 (default_tree_printer): Move from here.
1419 (general_init): Use tree_diagnostics_defaults.
1421 2012-04-24 Chao-ying Fu <fu@mips.com>
1423 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
1424 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
1425 * config/mips/gnu-user.h
1426 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
1427 (GNU_USER_TARGET_LINK_SPEC): New define.
1428 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
1429 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
1430 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
1431 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
1432 GNU_USER_TARGET_ENDFILE_SPEC.
1433 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
1434 (GNU_USER_TARGET_LINK_SPEC): New define.
1435 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
1436 * config/mips/linux-common.h: New file.
1438 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1441 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
1442 (altivec_build_resolved_builtin): Call fully_fold_convert.
1444 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
1447 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
1449 2012-04-24 Richard Guenther <rguenther@suse.de>
1451 PR tree-optimization/53085
1452 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
1455 2012-04-24 Richard Guenther <rguenther@suse.de>
1457 * tree-if-conv.c (main_tree_if_conversion): Move bb under
1460 2012-04-24 Jim Meyering <meyering@redhat.com>
1462 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
1463 absence of an define_enum call.
1465 2012-04-24 Richard Guenther <rguenther@suse.de>
1467 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
1468 the epilogue loop is not re-used as unvectorized version
1469 record the its maximum number of iterations.
1471 2012-04-24 Andrew Pinski <apinski@cavium.com>
1473 * tree-ssa-forwprop.c (simplify_bitwise_binary):
1474 Don't directly use def1/def2.
1476 2012-04-24 Richard Guenther <rguenther@suse.de>
1478 PR tree-optimization/53098
1479 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
1482 2012-04-24 Andrew Pinski <apinski@cavium.com>
1485 * tree-ssa-forwprop.c (defcodefor_name): New function.
1486 (simplify_bitwise_binary): Use defcodefor_name instead of manually
1487 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
1488 Simplify "(~X | Y) & X" to "X & Y" and
1489 "(~X & Y) | X" to "X | Y".
1491 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1493 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
1494 validate_change to add clobbers if IN_GROUP is nonzero.
1495 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
1496 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
1498 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
1500 * config/s390/s390.c (insn_invalid_p): Likewise.
1502 2012-04-24 Jakub Jelinek <jakub@redhat.com>
1505 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
1506 (output_addressed_constants): Likewise.
1509 * varasm.c (get_section): Don't ICE for section conflicts with
1510 built-in section kinds.
1512 2012-04-23 DJ Delorie <dj@redhat.com>
1514 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
1515 (LIBSTDCXX): Change to CPP2.
1517 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
1520 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
1523 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
1525 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
1526 (*addsi_2_zext): Ditto.
1527 (*add<mode>_3): Ditto.
1528 (*addsi_3_zext): Ditto.
1529 (*add<mode>_5): Ditto.
1531 2012-04-23 Andrew Pinski <apinski@cavium.com>
1533 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
1534 (C & B) to (A OP0) & B.
1536 2012-04-23 Martin Jambor <mjambor@suse.cz>
1538 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
1539 temporaries created for a bitfield (reverting revision 122014).
1541 2012-04-23 Richard Guenther <rguenther@suse.de>
1543 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
1544 the condition using is_gimple_condexpr and avoid the not necessary
1546 (set_prologue_iterations): Likewise.
1547 (vect_loop_versioning): Likewise.
1549 2012-04-23 Richard Guenther <rguenther@suse.de>
1551 PR tree-optimization/53070
1552 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
1553 (main_tree_if_conversion): Verify we succeeded in that.
1555 2012-04-23 Jan Hubicka <jh@suse.cz>
1557 * lto-symtab.c (lto_cgraph_replace_node): Do not call
1558 mark_reahcable_node.
1559 * cgraph.c (cgraph_remove_node): Do not clear reachable.
1560 (cgraph_mark_reachable_node): Remove.
1561 (cgraph_mark_force_output_node): Do not set reachable.
1562 (dump_cgraph_node): Do not dump reachable.
1563 (cgraph_create_virtual_clone): Do not set reachable.
1564 * cgraph.h (cgraph_node): Remove reachable flag.
1565 (varpool_node): Remove reachable flag.
1566 (cgraph_mark_if_needed): Remove.
1567 (cgraph_mark_reachable_node): Remove.
1568 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
1569 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
1571 (cgraph_add_new_function): Likewise.
1572 (cgraph_mark_if_needed): Remove.
1573 (cgraph_analyze_function): Do not set target as reachable.
1574 (process_function_and_variable_attributes): Do not care about
1576 (cgraph_analyze_functions): Do not set reachable flags.
1577 (cgraph_mark_functions_to_output): Do not check reachability.
1578 (cgraph_copy_node_for_versioning): Do not set reachable flag.
1579 (dbxout_expand_expr): Update.
1580 * c-decl.c (merge_decls): Do not track changed externs.
1581 * ipa.c: Include pointer-set.h
1582 (enqueue_cgraph_node): Use reachable pointer set.
1583 (process_references): Likewise.
1584 (cgraph_remove_unreachable_nodes): Likewise.
1585 (whole_program_function_and_variable_visibility): Do not recompute
1587 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
1589 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
1591 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
1593 2012-04-23 Richard Guenther <rguenther@suse.de>
1596 * c-typeck.c (build_binary_op): Fix typo.
1598 2012-04-23 Jakub Jelinek <jakub@redhat.com>
1600 PR tree-optimizations/52891
1601 * tree-vect-patterns.c (adjust_bool_pattern): Use
1602 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
1603 but with non-standard precision.
1605 2012-04-22 Jan Hubicka <jh@suse.cz>
1607 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
1610 2012-04-22 Jan Hubicka <jh@suse.cz>
1612 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
1613 * cgraphbuild.c (record_reference, record_type_list, mark_address,
1614 mark_load, mark_store): Do not mark varpool nodes as needed.
1615 * cgraph.c (cgraph_new_nodes): Remove.
1616 (cgraph_create_function_alias): Do not mark nodes as reachable.
1617 (cgraph_add_thunk): Likewise.
1618 (cgraph_mark_reachable_node): Do not manage the queue.
1619 * cgraph.h (cgraph_node): Remove next_needed.
1620 (varpool_nodes_queue): Remove next_needed and prev_needed.
1621 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
1622 (cgraph_new_nodes): Declare.
1623 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
1624 (varpool_analyze_pending_decls): Remove.
1625 (varpool_analyze_node): New.
1626 (varpool_mark_needed_node): Remove.
1627 (varpool_first_variable, varpool_next_variable): New inlines.
1628 (varpool_first_static_initializer, varpool_next_static_initializer):
1630 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
1631 (varpool_first_defined_variable): New inline.
1632 (varpool_next_defined_variable): New inline
1633 (FOR_EACH_VARIABLE): Reimplement.
1634 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
1635 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
1637 * cgraphunit.c (cgraph_new_nodes): Declare here.
1638 (enqueue_node): New function.
1639 (cgraph_process_new_functions): update for new
1640 node set; when constructing cgraph enqueue node for processing.
1641 (cgraph_add_new_function): Use new node set.
1642 (process_function_and_variable_attributes): Do not set varpool needed
1644 (referred_to_p): New function.
1645 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
1646 when varpool is in construction.
1647 (cgraph_analyze_functions): Rewrite.
1648 (cgraph_expand_all_functions): Update.
1649 (cgraph_output_in_order): Do not analyze pending decls; do not set
1651 (cgraph_optimize): Do not analyze pending decls.
1652 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
1653 in other partition; do not mark node as needed.
1654 * dwarf2out.c (reference_to_unused): Use analyzed flag.
1655 (premark_types_used_by_global_vars_helper): Likewise.
1656 * ipa.c (process_references): Do not call varpool_mark_needed_node.
1657 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
1659 (function_and_variable_visibility): Do not mark node as needed.
1660 (whole_program_function_and_variable_visibility): Likewise.
1661 * Makefile.in (gt-varpool.h): No longer needed.
1662 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
1663 (ipa_write_summaries): Do not use needed flag.
1664 * varpool.c: Do not include gt-varpool.h
1665 (x_varpool_nodes_queue, x_varpool_last_needed_node,
1666 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
1667 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
1669 (varpool_remove_node): Do not update the lists.
1670 (dump_varpool_node): Do not dump needed flag.
1671 (varpool_enqueue_needed_node): Remove.
1672 (varpool_mark_needed_node): Remove.
1673 (varpool_reset_queue): Remove.
1674 (varpool_finalize_decl): Move to cgraphunit.c
1675 (varpool_analyze_node): New functions based on former
1676 varpool_analyze_pending_decls.
1677 (varpool_analyze_pending_decls): Remove.
1678 (varpool_assemble_decl): Do not update the lists.
1679 (enqueue_node): New function.
1680 (varpool_remove_unreferenced_decls): Rewrite.
1681 (varpool_empty_needed_queue): Remove.
1682 (add_new_static_var): Do not mark node as needed.
1683 (varpool_create_variable_alias): Handle expansion state
1685 * except.c (output_ttype): Do not mark node as needed.
1686 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
1687 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
1689 * tree-switch-conversion.c (build_one_array): Likewise.
1691 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1694 * doc/invoke.texi (pedantic): Rename to Wpedantic.
1695 * common.opt (Wpedantic): New.
1696 (pedantic): Alias Wpedantic.
1697 * diagnostic.c (warning_at): Likewise.
1698 * c-decl.c (diagnose_mismatched_decls): Likewise.
1699 (build_array_declarator): Likewise.
1700 (mark_forward_parm_decls):
1701 (check_bitfield_type_and_width): Likewise.
1702 (grokdeclarator): Likewise.
1703 (grokfield): Likewise.
1704 (finish_struct): Likewise.
1705 (build_enumerator): Likewise.
1706 (store_parm_decls_oldstyle): Likewise.
1707 (declspecs_add_qual): Likewise.
1708 (declspecs_add_type): Likewise.
1709 (finish_declspecs): Likewise.
1710 * c-typeck.c (composite_type): Likewise.
1711 (comp_target_types): Likewise.
1712 (build_array_ref): Likewise.
1713 (pointer_diff): Likewise.
1714 (build_unary_op): Likewise.
1715 (build_conditional_expr): Likewise.
1716 (build_c_cast): Likewise.
1717 (convert_for_assignment): Likewise.
1718 (maybe_warn_string_init): Likewise.
1719 (digest_init): Likewise.
1720 (pop_init_level): Likewise.
1721 (set_init_index): Likewise.
1722 (c_finish_goto_label): Likewise.
1723 (c_finish_return): Likewise.
1724 (do_case): Likewise.
1725 (build_binary_op): Likewise.
1726 * c-parser.c (static): Likewise.
1727 (c_parser_external_declaration): Likewise.
1728 (c_parser_declaration_or_fndef): Likewise.
1729 (c_parser_static_assert_declaration_no_se): Likewise.
1730 (c_parser_enum_specifier): Likewise.
1731 (c_parser_struct_or_union_specifier): Likewise.
1732 (c_parser_struct_declaration): Likewise.
1733 (c_parser_alignas_specifier): Likewise.
1734 (c_parser_braced_init): Likewise.
1735 (c_parser_initelt): Likewise.
1736 (c_parser_compound_statement_nostart): Likewise.
1737 (c_parser_conditional_expression): Likewise.
1738 (c_parser_alignof_expression): Likewise.
1739 (c_parser_postfix_expression): Likewise.
1740 (c_parser_postfix_expression_after_paren_): Likewise.
1741 (c_parser_objc_class_instance_variables): Likewise.
1742 (c_parser_objc_method_definition): Likewise.
1743 (c_parser_objc_methodprotolist): Likewise.
1745 2012-04-22 Ian Lance Taylor <iant@google.com>
1747 * godump.c (go_output_typedef): Dump size of structs.
1749 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
1751 Correcting transform_to_exit_first_loop + fix to PR46886
1752 * tree-parloops.c (transform_to_exit_first_loop): Remove
1753 setting of number of iterations according to the loop pattern.
1754 Duplicate from entry to exit->src instead of loop->latch.
1755 (pallelize_loops): Remove the condition preventing do-while loops.
1756 * tree-cfg.c (bool bb_in_region_p): New.
1757 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
1758 Adjust redirection of the duplicated iteration.
1760 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
1763 * rtl.def (ADDRESS): Use "i" rather than "w".
1764 * rtl.h (find_base_term): Delete.
1765 (may_be_sp_based_p): Declare.
1766 * rtl.c (rtx_code_size): Remove ADDRESS special case.
1767 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
1768 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
1770 (find_base_term): Make static.
1771 (may_be_sp_based_p): New function.
1772 * dse.c (record_store): Use it.
1773 * store-motion.c (store_killed_in_insn): Likewise.
1775 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
1777 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
1779 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1782 * c-typeck.c (inform_declaration): New.
1783 (build_function_call_vec): Do not pretty-print
1784 expressions when caret is enabled.
1785 (convert_arguments): Use inform_declaration.
1787 2012-04-20 Jim Meyering <meyering@redhat.com>
1789 * genmodes.c (make_complex_modes): Don't truncate a mode name of
1790 length 7 or more when prepending a "C". Suggested by Richard Guenther.
1792 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1794 PR rtl-optimization/44214
1795 * fold-const.c (exact_inverse): New function.
1796 (fold_binary_loc): Fold vector and complex division by constant into
1797 multiply by recripocal with flag_reciprocal_math; fold vector division
1798 by constant into multiply by reciprocal with exact inverse.
1800 2012-04-20 Jan Hubicka <jh@suse.cz>
1802 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
1804 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
1805 (cgraph_remove_node): Update.
1806 (cgraph_mark_needed_node): Remove.
1807 (cgraph_mark_force_output_node): New.
1808 (dump_cgraph_node): Do not dump needed flag.
1809 (cgraph_node_cannot_be_local_p_1): Update.
1810 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
1811 * cgraph.h (symtab_node_base): Add force_output flag.
1812 (cgraph_node): Remove needed flag.
1813 (varpool_node): Remove force_output flag.
1814 (cgraph_mark_needed_node): Remove.
1815 (cgraph_mark_force_output_node): New.
1816 (cgraph_only_called_directly_or_aliased_p,
1817 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
1818 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
1819 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
1820 (cgraph_add_new_function): Update.
1821 (cgraph_mark_if_needed): Update.
1822 (verify_cgraph_node): Update.
1823 (cgraph_analyze_function): Alias target is reachable.
1824 (process_function_and_variable_attributes): Update: externally_visible
1825 flag makes function reachable.
1826 (cgraph_analyze_functions): Update dumping.
1827 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1828 input_overwrite_node, input_varpool_node): Update streaming.
1829 * lto-streamer-out.c (produce_symtab): Use force_output.
1830 * ipa.c (process_references): Weakrefs must be processed.
1831 (cgraph_remove_unreachable_nodes): Likewise; update for new
1833 (varpool_externally_visible_p): Weakrefs are externally visible
1834 even if they are not.
1835 (function_and_variable_visibility): Update; when processing alias
1836 pair force the targets to be output.
1837 (whole_program_function_and_variable_visility): Use
1838 mark_reachable_node.
1839 * trans-mem.c (ipa_tm_mark_needed_node): Remove
1840 (ipa_tm_mark_force_output_node): New function.
1841 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1842 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
1844 * varasm.c (mark_decl_referenced): Update.
1845 (find_decl_and_mark_needed): Remove.
1846 (find_decl): New function.
1847 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
1848 alias targets as needed.
1849 (dump_tm_clone_pairs): Update.
1850 * tree-inline.c (copy_bb): Update check.
1851 * symtab.c (dump_symtab_base): Dump force_output.
1852 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
1853 * passes.c (execute_todo): Fix dumping.
1854 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
1855 (varpool_analyze_pending_decls): Alias target is reachable.
1856 (varpool_create_variable_alias): Finalize weakrefs.
1858 2012-04-20 Jakub Jelinek <jakub@redhat.com>
1861 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
1862 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
1863 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
1864 macros instead of constants.
1865 * dse.c (record_store): Check for SP ADDRESS by comparing
1866 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
1867 XEXP to be stack_pointer_rtx.
1869 2012-04-20 Richard Guenther <rguenther@suse.de>
1871 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
1872 update_call_from_tree when propagating into a call.
1874 2012-04-20 Alan Modra <amodra@gmail.com>
1876 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
1877 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
1878 sp_offset to frame_off. Move world save code earlier.
1880 2012-04-20 Richard Guenther <rguenther@suse.de>
1882 PR tree-optimization/53050
1883 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
1884 Do only one transform on COND_EXPRs at the same time.
1886 2012-04-19 Jan Hubicka <jh@suse.cz>
1888 * symtab.c (dump_symtab_base): Revert accidental checkin.
1890 2012-04-20 Alan Modra <amodra@gmail.com>
1893 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
1894 static chain, set REST_INLINE_FPRS too.
1896 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
1898 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
1901 2012-04-20 Richard Guenther <rguenther@suse.de>
1903 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
1904 loops that can never run more often than the vectorization factor.
1906 2012-04-19 Jan Hubicka <jh@suse.cz>
1908 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
1910 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
1912 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
1914 2012-04-19 Jim Meyering <meyering@redhat.com>
1916 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
1917 We verified above that the string(including trailing NUL) fits in buf,
1920 2012-04-19 Richard Guenther <rguenther@suse.de>
1922 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
1923 for dumping DECL_SECTION_NAME.
1925 2012-04-19 Michael Matz <matz@suse.de>
1928 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
1929 (struct tree_vector): Adjust GTY length.
1930 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
1932 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
1934 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
1935 caller emitted the length calulation already.
1936 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
1937 before handling any of the fields for structs.
1939 2012-04-19 Richard Guenther <rguenther@suse.de>
1941 PR tree-optimization/53031
1942 * tree-vrp.c (adjust_range_with_scev): Revert back to
1943 using max_loop_iterations.
1945 2012-04-19 Michael Matz <matz@suse.de>
1947 * diagnostic.c (emit_diagnostic): Move va_end call after user
1949 (warning, warning_at, pedwarn, permerror): Ditto.
1951 2012-04-19 Richard Guenther <rguenther@suse.de>
1953 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
1956 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
1959 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
1960 the case *(X+const).
1962 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1964 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
1966 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1969 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
1970 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
1972 2012-04-19 Richard Guenther <rguenther@suse.de>
1974 PR rtl-optimization/44688
1975 * loop-iv.c (determine_max_iter): Only return max_iter.
1976 (iv_number_of_iterations): Also use the recorded loop bound
1977 on the maximum number of iterations.
1978 * loop-unroll.c (decide_unroll_runtime_iterations): Use
1979 max_iter to avoid unrolling loops that do not roll.
1980 (decide_unroll_stupid): Likewise.
1982 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
1984 * targhooks.c (default_case_values_threshold): Fix code style nit.
1986 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
1987 case range and type folding from here...
1988 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
1989 type, as documented in tree.def.
1991 2012-04-18 Jan Hubicka <jh@suse.cz>
1993 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
1995 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
1996 cgraph hash and same comdat groups.
1997 (cgraph_optimize): Verify symbol table.
1998 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
1999 (dissolve_same_comdat_group_list): Work on symtab nodes.
2000 (function_and_variable_visibility): Dissolve variable same comdat group
2002 * symtab.c: Include timevar.h
2003 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
2005 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
2007 * tree-switch-conversion.c (info): Remove global pass info.
2008 (check_range, check_process_case, check_final_bb, create_temp_arrays,
2009 free_temp_arrays, gather_default_values, build_constructors,
2010 array_value_type, build_one_array, build_arrays, gen_def_assigns,
2011 fix_phi_nodes, gen_inbound_check): Pass info around from ...
2012 (process_switch): ... here. Unify message format. Return a const
2013 char pointer to the failure reason message.
2014 (do_switchconv): Unify message format. Update process_switch usage.
2016 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
2017 * tree-cfg.c (edge_to_cases): Fix documentation.
2019 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
2021 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
2023 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2025 PR tree-optimization/52976
2026 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
2027 (possibly_move_powi): New function.
2028 (rewrite_expr_tree): Call possibly_move_powi.
2029 (rewrite_expr_tree_parallel): Likewise.
2030 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
2031 call add_to_ops_vec instead.
2033 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2035 PR tree-optimization/52976
2036 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
2037 (decrement_power): Likewise.
2038 (propagate_op_to_single_use): Likewise.
2039 (zero_one_operation): Handle __builtin_pow* calls in linearized
2040 expression trees; factor logic into propagate_op_to_single_use.
2041 (undistribute_ops_list): Allow operands with repeat counts > 1.
2043 2012-04-18 Richard Guenther <rguenther@suse.de>
2045 PR tree-optimization/44688
2046 * cfgloop.h (record_niter_bound): Declare.
2047 * tree-ssa-loop-niter.c (record_niter_bound): Export.
2048 Update the estimation with the upper bound here...
2049 (estimate_numbers_of_iterations_loop): ... instead of here.
2050 Do not forcefully reset a recorded upper bound.
2051 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
2052 Record the maximum number of loop iterations of the prologue loop.
2054 2012-04-18 Jan Hubicka <jh@suse.cz>
2056 * lto-symtab.c (lto_cgraph_replace_node): Update.
2057 * cgraphbuild.c (record_reference, record_type_list,
2058 record_eh_tables, mark_address, mark_load, mark_store): Update.
2059 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
2060 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
2062 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
2063 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
2064 * reload.c: Fix typo in comment.
2065 * rtlanal.c: Likewise.
2066 * tree-emultls.c (gen_emutls_addr): Update.
2067 * ipa-reference.c (analyze_function): Update.
2068 * cgraphunit.c (cgraph_analyze_function,
2069 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
2071 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
2072 (ipa_remove_reference): Likewise.
2073 (ipa_remove_all_refering): Rename to ...
2074 (ipa_remove_all_referring): ... this one; update.
2075 (ipa_dump_references): Update.
2076 (ipa_dump_referring): Update.
2077 (ipa_clone_references): Update.
2078 (ipa_clone_refering): Rename to ...
2079 (ipa_clone_referring): ... this one; update.
2080 (ipa_ref_cannot_lead_to_return): Update.
2081 (ipa_ref_has_aliases_p): Update.
2082 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
2084 (ipa_ref_type): Remove.
2085 (ipa_ref_ptr_u): Remove.
2086 (ipa_ref): Remove referencing, refered, refered_index, refering_type
2087 and refered_type; add referring, referred and referred_index.
2088 (ipa_ref_list): Rename refering to referring.
2089 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
2090 ipa_clone_references, ipa_clone_referring): Update prototypes.
2091 * lto-cgraph.c (referenced_from_other_partition_p): Update.
2092 (lto_output_ref): Update.
2093 (add_references): Update.
2094 (input_varpool_node): Update.
2095 (input_refs): Update.
2096 * ipa-ref-inline.h (ipa_ref_node): Update.
2097 (ipa_ref_varpool_node): Update.
2098 (ipa_ref_referring_node): Update.
2099 (ipa_ref_referring_varpool_node): Update.
2100 (ipa_ref_referring_ref_list): Update.
2101 (ipa_ref_referred_ref_list): Update.
2102 (ipa_ref_list_first_referring): Update.
2103 (ipa_empty_ref_list): Update.
2104 (ipa_ref_list_refering_iterate): Rename to ...
2105 (ipa_ref_list_referring_iterate): ... this one.
2106 * cse.c: Update comment.
2107 * ipa-utils.c (ipa_reverse_postorder): Update.
2108 * tree-ssa-alias.c: Update.
2109 * ipa-inline.c (reset_edge_caches): Update.
2110 (update_caller_keys): Update.
2111 * ipa-inline.h: Update comments.
2112 * jump.c: Update comment.
2113 * alias.c: Likewise.
2114 * ipa.c (process_references): Update.
2115 (cgraph_remove_unreachable_nodes): Likewise.
2116 (ipa_discover_readonly_nonaddressable_var): Likewise.
2117 (cgraph_address_taken_from_non_vtable_p): Likewise.
2118 * trans-mem.c (ipa_tm_execute): Update.
2119 * simplify-rtx.c: Fix comment.
2120 * rtl.c: Fix comment.
2121 * symtab.c (symtab_unregister_node): Update.
2122 * varpool.c (dump_varpool_node): Update.
2123 (varpool_analyze_pending_decls): Update.
2124 (assemble_aliases): Update.
2125 (varpool_for_node_and_aliases): Update.
2127 2012-04-18 Richard Guenther <rguenther@suse.de>
2129 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
2130 use_undefined_p parameter.
2131 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
2132 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
2134 (estimate_numbers_of_iterations): Likewise.
2135 (estimated_loop_iterations): Adjust.
2136 (max_loop_iterations): Likewise.
2137 (scev_probably_wraps_p): Likewise.
2138 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
2139 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
2140 not max_loop_iterations.
2141 (execute_vrp): Remove explicit number of iterations estimation.
2143 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
2145 * config/i386/linux-common.h: New.
2147 * config.gcc: Add i386/linux-common.h before
2148 all i386/linux.h and i386/linux64.h usages.
2150 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
2151 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
2152 * config/i386/gnu-user64.h: Likewise.
2154 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
2155 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
2156 (GNU_USER_TARGET_MATHFILE_SPEC): New.
2157 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
2159 2012-04-18 Jan Hubicka <jh@suse.cz>
2161 * cgraph.c (cgraph_node_name): Remove.
2162 (dump_cgraph_node): Use dump_symtab_base; reformat.
2163 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
2164 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
2166 (cgraph_node_name, varpool_node_name): Remove.
2167 (cgraph_node_asm_name, varpool_node_asm_name,
2168 cgraph_node_name, varpool_node_name): New.
2169 * tree-pass.h (TODO_dump_cgraph): Rename to ...
2170 (TODO_dump_symtab): ... this one.
2171 * ipa-cp (pass_ipa_cp): Update.
2172 * ia-reference.c (generate_summary, read_write_all_from_decl,
2173 propagate, ipa_reference_read_optimization_summary): Update.
2174 * cgraphunit.c (cgraph_analyze_functions): Update.
2175 (cgraph_optimize): Update.
2176 * ipa-ref.c (ipa_dump_references): Update.
2177 (ipa_dump_refering): Update.
2178 * ipa-inline.c (pass_ipa_inline): Update.
2179 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
2180 * ipa.c (pass_ipa_function_visibility,
2181 pass_ipa_whole_program_visibility): Update.
2182 * tree-sra.c (pass_early_ipa_sra): Update.
2183 * symtab.c: Include langhooks.h
2184 (symtab_node_asm_name): New.
2185 (symtab_node_name): New.
2186 (symtab_type_names): New static var.
2187 (dump_symtab_base): New.
2188 (dump_symtab_node, dump_symtab): New.
2189 (debug_symtab_node, debug_symtab): New.
2190 * tree-ssa-structalias.c: Dump symbol table.
2191 * pases.c (execute_todo): Handle TODO_dump_symtab instead
2192 of TODO_dump_cgraph.
2193 * varpoo.c (varpool_node_name): Remove.
2194 (dump_varpool_node): Use dump_symtab_base; reformat.
2196 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2198 * doc/invoke.texi (Language Independent Options): @item should be
2201 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2204 * rtl.c (rtx_code_size): Handle ADDRESS.
2206 2012-04-17 Tom de Vries <tom@codesourcery.com>
2208 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
2211 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
2214 * config/i386/sync.md (atomic_<code><mode>): Rename to
2215 atomic_<logic><mode>.
2217 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2219 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
2220 * alias.c (reg_base_value): Expand and update comment.
2221 (arg_base_value): New variable.
2222 (unique_id): Move up file.
2223 (unique_base_value, unique_base_value_p, known_base_value_p): New.
2224 (find_base_value): Use arg_base_value and known_base_value_p.
2225 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
2226 (find_base_term): Use known_base_value_p.
2227 (base_alias_check): Use unique_base_value_p.
2228 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
2229 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
2231 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
2233 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
2235 2012-04-17 Michael Matz <matz@suse.de>
2237 PR tree-optimization/18437
2238 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
2239 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
2240 (vect_check_strided_load): Declare.
2241 * tree-vect-data-refs.c (vect_check_strided_load): New function.
2242 (vect_analyze_data_refs): Use it to accept strided loads.
2243 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
2245 2012-04-17 Richard Guenther <rguenther@suse.de>
2248 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
2249 loops when redirecting an entry or latch edge.
2251 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
2253 * sel-sched.c (sel_global_init): Revert previous change.
2255 2012-04-17 Richard Guenther <rguenther@suse.de>
2257 * tree-flow.h (array_at_struct_end_p): Move declaration ...
2258 * tree.h (array_at_struct_end_p): ... here.
2259 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
2260 * expr.c (array_at_struct_end_p): ... here. Rewrite.
2262 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
2264 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
2265 COST_TABLE): Remove.
2266 (estimate_case_costs): Remove.
2267 (expand_case): Do not call estimate_case_costs
2268 to set use_cost_table.
2269 (balance_case_nodes): Do not use use_cost_table.
2271 2012-04-16 Jan Hubicka <jh@suse.cz>
2273 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
2274 (hash_node, eq_node): Remove.
2275 (cgraph_create_node): Do not handle hashtable.
2276 (cgraph_get_node): Remove.
2277 (cgraph_insert_node_to_hashtable): Remove.
2278 (hash_node_by_assembler_name): Remove.
2279 (eq_assembler_name): Remove.
2280 (cgraph_node_for_asm): Rewrite.
2281 (cgraph_find_replacement_node): Break out from ...
2282 (cgraph_remove_node): ... here; do not maintain hashtables.
2283 (change_decl_assembler_name): Remove.
2284 (cgraph_clone_node): Do not maintain hashtables.
2285 * cgraph.h (const_symtab_node): New typedef.
2286 (cgraph_insert_node_to_hashtable): Remove.
2287 (symtab_get_node, symtab_node_for_asm,
2288 symtab_insert_node_to_hashtable): Declare.
2289 (cgraph_find_replacement_node): Declare.
2290 (cgraph_get_node, varpool_get_node): Turn into inlines.
2291 (cgraph, varpool): Work sanely on NULL pointers.
2292 (FOR_EACH_SYMBOL): New walker.
2293 * ipa-inline-transform.c (save_inline_function_body): Use
2294 symtab_insert_node_to_hashtable.
2295 * symtab.c: Include ggc.h and diagnostics.h
2296 (symtab_hash, assembler_name_hash): New static vars;
2297 (hash_node, eq_node, hash_node_by_assembler_name,
2298 eq_assembler_name, insert_to_assembler_name_hash,
2299 unlink_from_assembler_name_hash): New.
2300 (symtab_register_node): Update hashtables.
2301 (symtab_insert_node_to_hashtable): New.
2302 (symtab_unregister_node): Update hashtables.
2303 (symtab_get_node): New.
2304 (symtab_node_for_asm): New.
2305 (change_decl_assembler_name): New.
2306 * Makefile.in (symtab.o): Needs GTY.
2307 * varpool.c (varpool_hash): Remove.
2308 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
2309 (varpool_node): Rewrite using varpool_get_node.
2310 (varpool_remove_node): DO not maintain hashtables.
2311 (varpool_node_for_asm): Rewrite.
2313 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
2315 * doc/invoke.texi: Copy-edit to put verbs in the present tense
2316 when describing the current behavior of GCC.
2318 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
2320 * genemit.c (gen_exp): Remove ADDRESS handling.
2321 * genoutput.c (scan_operands): Likewise.
2322 * genpeep.c (match_rtx): Likewise.
2323 * genrecog.c (add_to_sequence): Likewise.
2325 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
2327 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
2329 2012-04-16 Martin Jambor <mjambor@suse.cz>
2331 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
2334 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
2337 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
2338 hints for 'A' operand types.
2340 2012-04-16 Jan Hubicka <jh@suse.cz>
2342 * cgraph.h (symtab_node_base): Add next and previous pointers.
2343 (cgraph_node): Remove next and preivous pointers.
2344 (varpool_node): Likewise; remove next/previous GTY marker;
2345 it is not type safe.
2346 (symtab_node_def): Update GTY marker
2347 (x_cgraph_nodes, cgraph_nodes): Remove.
2348 (symtab_nodes): New function.
2349 (cgraph_order): Rename to ...
2350 (symtab_order): ... this one.
2351 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
2353 (x_varpool_nodes, varpool_nodes): Remove.
2354 (FOR_EACH_STATIC_VARIABLE): Update.
2355 (symtab_function_p, symtab_variable_p): New function.
2356 (FOR_EACH_VARIABLE): Update.
2357 (varpool_first_variable, varpool_next_variable): New functions.
2358 (FOR_EACH_VARIABLE): Update.
2359 (cgraph_first_defined_function): Update.
2360 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
2361 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
2362 (cgraph_first_function, cgraph_next_function): New.
2363 (FOR_EACH_FUNCTION): Update.
2364 (cgraph_first_function_with_gimple_body,
2365 cgraph_next_function_with_gimple_body): Update.
2366 * symtab.c: New file.
2367 * cgraph.c: Update copyright dates.
2368 (x_cgraph_nodes, cgraph_order): Remove.
2369 (NEXT_FREE_NODE): Update.
2370 (SET_NEXT_FREE_NODE): New.
2371 (cgraph_create_node_1): Remove common code.
2372 (cgraph_create_node): Remove common code; call symtab_register_node.
2373 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
2374 (cgraph_add_asm_node): Update.
2375 (cgraph_clone_node): Register new node.
2376 * cgraphunit.c (process_function_and_variable_attributes): Update.
2377 (cgraph_analyze_functions): Update.
2378 (cgraph_analyze_functions): Update.
2379 (cgraph_output_in_order): Update.
2380 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
2382 * ipa-inline.c (recursive_inlining): Update.
2383 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
2384 * ipa.c (cgraph_remove_unreachable_nodes): Update.
2385 * Makefile.in: Add symtab.o
2386 * varpool.c (x_varpool_nodes): Remove
2387 (varpool_node): Remove common code; call symtab_register_node.
2388 (varpool_remove_node): Remove common code; call symtab_unregister_node.
2390 2012-04-16 Richard Guenther <rguenther@suse.de>
2393 * tree.h (VECTOR_CST_NELTS): Adjust.
2394 (struct tree_vector): Add explicit length field.
2395 (make_vector_stat): Declare.
2396 (make_vector): Define.
2397 * tree.c (make_vector_stat): New function.
2398 (build_vector_stat): Use it.
2399 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
2401 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2403 PR tree-optimization/52976
2404 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
2405 (undistribute_ops_list): Ops with repeat counts aren't eligible for
2407 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
2409 2012-04-16 Jan Hubicka <jh@suse.cz>
2411 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
2413 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
2414 walkers to walk cgraph and varpool.
2415 * cgraph.c (cgraph_node_for_asm): Likewise.
2416 (dump_cgraph): Likewise.
2417 * value-prof.c (init_node_map): Likewise.
2418 * tree.c (free_lang_data_in_cgraph): Likewise.
2419 * tree-emutls.c: (ipa_lower_emutls): Likewise.
2420 * ipa-reference.c (generate_summary, propagate): Likewise.
2421 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
2422 cgraph_mark_functions_to_output, cgraph_output_in_order,
2423 output_weakrefs, cgraph_materialize_all_clones,
2424 cgraph_optimize): Likewise.
2425 * lto-cgraph.c (merge_profile_summaries): Likewise.
2426 (input_cgraph): Likewise.
2427 * ipa-pure-const.c (generate_summary): Likewise.
2428 (propagate): Likwise.
2429 * ipa-utils.c (ipa_reduced_postorder): Likewise.
2430 (ipa_free_postorder_info): Likewise.
2431 (ipa_reverse_postorder): Likewise.
2432 * ipa-inline.c (ipa_inline): Likewise.
2433 * matrix-reorg.c (find_matrices_decl): Likewise.
2434 (matrix_reorg): Likewise.
2435 * tree-vectorizer.c (increase_alignment): Likewise.
2436 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
2437 (function_and_variable_visibility): Likewise.
2438 (whole_program_function_and_variable_visibility): Likewise.
2439 (ipa_cdtor_merge): Likewise.
2440 * trans-mem.c (ipa_tm_execute): Likewise.
2441 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
2442 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
2443 (ipa_print_all_params): Likewise.
2444 (ipa_update_after_lto_read): Likewise.
2445 * tree-profie.c (tree_profiling): Likewise.
2446 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
2447 * passes.c (dump_passes): Likewise.
2448 (do_per_function): Likewise.
2449 (ipa_write_summaries): Likewise.
2450 * varpool.c (dump_varpool): Likewise.
2451 (varpool_node_for_asm): Likewise.
2452 (varpool_assemble_pending_decls): Likewise.
2454 2012-04-16 Richard Guenther <rguenther@suse.de>
2456 PR tree-optimization/52975
2457 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
2458 condition but always mark it with TRUTH_NOT_EXPR.
2460 2012-04-16 Richard Guenther <rguenther@suse.de>
2462 PR tree-optimization/52975
2463 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
2464 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
2465 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
2466 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
2468 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
2470 * config/i386/sse.md (ssse3_plusminus): New code iterator.
2471 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
2472 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
2473 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
2474 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
2475 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
2476 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
2478 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
2479 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
2480 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
2481 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
2482 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
2483 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
2485 (xop_plus): New code iterator.
2486 (macs): New code attribute.
2488 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
2489 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
2491 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
2492 xop_plus code iterator.
2493 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
2494 xop_plus code iterator.
2495 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
2496 xop_plus code iterator.
2497 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
2498 xop_plus code iterator.
2500 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
2501 any_extend code iterator.
2502 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
2503 any_extend code iterator.
2504 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
2505 any_extend code iterator.
2506 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
2507 any_extend code iterator.
2508 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
2509 any_extend code iterator.
2510 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
2511 any_extend code iterator.
2513 2012-04-14 Tom de Vries <tom@codesourcery.com>
2515 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
2516 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
2517 DELETED_LABEL note, and move it to ...
2518 * cfgrtl.c (delete_insn): ... here. Change return type to void.
2519 (delete_insn_and_edges): Likewise.
2520 (delete_insn_chain): Handle new return type of delete_insn. Delete
2521 chain backwards rather than forwards.
2522 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
2524 * cfglayout.c (fixup_reorder_chain): Delete unused label.
2526 2012-04-14 Jan Hubicka <jh@suse.cz>
2528 * cgraph.h: Update copyrights;
2529 (symtab_node): Turn to union typedef.
2530 (symtab_node_base): New structure.
2531 (symtab_type): Add SYMTAB_SYMBOL tag.
2532 (cgraph_node): Annotate some pinters with nested_ptr.
2533 (varpool_node): Likewise.
2534 (cgraph_local_info): Remove lto_file_data
2535 and externally_visible.
2536 (cgraph_node): Remove decl; same_comdat_group list;
2537 aux; ref_list; order; address_taken; reachable_from_other_parittion,
2538 in_other_partition; resolution.
2539 (varpool_node): Remove decl; same_comdat_group;
2540 ref_list; lto_file_data; aux; order; resolution; externally_visible;
2541 used_from_other_partition; in_other_partition.
2542 (symtab_node_def): New union.
2543 (cgraph, varpool): Update.
2544 (varpool_first_static_initializer, varpool_next_static_initializer,
2545 cgraph_only_called_directly_or_aliased_p,
2546 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
2547 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
2548 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
2550 * cgraph.c: Likewise.
2551 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
2552 * cgraphbuild.c: Likewise.
2553 * lto-symtab.c: Likewise.
2554 * c-gimplify.c: Likewise.
2555 * value-prof.c: Likewise.
2557 * ipa-cp.c: Likewise.
2558 * tree-emutls.c: Likewise.
2559 * ipa-inline-transform.c: Likwise.
2560 * ipa-reference.c: Likewise.
2561 * cgraphunit.c: Likewise.
2562 * ipa-ref.c: Likewise.
2563 * lto-cgraph.c: Likewise.
2564 * ipa-ref-inline.h: Likewise.
2565 * ipa-pure-const.c: Likewise.
2566 * lto-streamer-out.c: Likewise.
2567 * ipa-utils.c: Likewise.
2568 * ipa-inline.c: Likewise.
2569 * matrix-reorg.c: Likewise.
2570 * tree-eh.c: Likewise.
2571 * tree-vectorizer.c: Likewise.
2572 * ipa-split.c: Likewise.
2574 * trans-mem.c: Likewise.
2575 * ipa-inline-analysis.c: Likewise.
2576 * gimplify.c: Likewise.
2577 * cfgexpand.c: Likewise.
2578 * tree-sra.c: Likewise.
2579 * ipa-prop.c: Likewise.
2580 * varasm.c: Likewise.
2581 * tree-nested.c: Likewise.
2582 * tree-inline.c: Likewise.
2583 * tree-profile.c: Likewise.
2584 * tree-ssa-structalias.c: Likewise.
2585 * passes.c: Likewise.
2586 * varpool.c: Likewise.
2588 2012-04-14 Tom de Vries <tom@codesourcery.com>
2590 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
2591 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
2592 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
2594 (gsi_advance_fw_nondebug_nonlocal): New function.
2595 (local_def): Removed function.
2596 (same_succ_hash): Use stmt_local_def.
2597 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
2598 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
2600 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
2602 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
2603 and __ILP32__ for x32.
2605 2012-04-13 Martin Jambor <mjambor@suse.cz>
2608 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
2609 fold_ctor_reference returns a zero constant.
2611 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
2613 * config.gcc: Add i386/gnu-user-common.h before all
2614 i386/gnu-user.h and i386/gnu-user64.h usages.
2616 * config/i386/gnu-user-common.h: New.
2618 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
2619 (CC1_SPEC): Likewise.
2620 (ENDFILE_SPEC): Likewise.
2621 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
2622 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
2623 (TARGET_OS_CPP_BUILTINS): Likewise.
2624 (LIBGCC2_HAS_TF_MODE): Likewise.
2625 (LIBGCC2_TF_CEXT): Likewise.
2626 (TF_SIZE): Likewise.
2627 (TARGET_ASM_FILE_END): Likewise.
2628 (STACK_CHECK_MOVING_SP): Likewise.
2629 (STACK_CHECK_STATIC_BUILTIN): Likewise.
2630 * config/i386/gnu-user64.h: Likewise.
2632 2012-04-13 Martin Jambor <mjambor@suse.cz>
2634 * expr.c (expand_expr_real_1): Pass type, not the expression, to
2635 set_mem_attributes for a memory temporary. Do not call the function
2636 for the memory temporary created for a bitfield.
2638 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
2641 * df.h (enum debug_temp_where): New.
2642 (dead_debug_init, dead_debug_finish) Declare.
2643 (dead_debug_add, dead_debug_insert_temp): Declare.
2644 (struct dead_debug_use, struct dead_debug): Moved from...
2645 * df-problems.c: ... here.
2646 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
2648 (df_create_unused_note): Likewise.
2649 (df_set_dead_notes_for_mw): Move comment where it belongs.
2650 (dead_debug_init): Export.
2651 (dead_debug_reset_uses): New, factored out of...
2652 (dead_debug_finish): ...this. Export.
2653 (dead_debug_reset): Remove.
2654 (dead_debug_add): Export.
2655 (dead_debug_insert_before): Rename to...
2656 (dead_debug_insert_temp): ... this. Add where argument. Export.
2657 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
2658 Return insertion count.
2659 (df_note_bb_compute): Adjust.
2660 * dce.c (word_dce_process_block): Adjust dead debug uses.
2661 (dce_process_block): Likewise.
2663 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
2665 * df-problems.c (df_note_bb_compute): Do not take note of
2666 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
2668 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
2671 * var-tracking.c (expand_depth): New type.
2672 (onepart_aux, expand_loc_callback_data): Change depth type to it.
2673 (loc_exp_dep_alloc): Adjust initializer.
2674 (update_depth): Use new type. Add entryvals.
2675 (vt_expand_var_loc_chain): Take note of expansions with
2676 ENTRY_VALUEs, but don't accept them right away. Run an optional
2677 second pass accepting the minimum ENTRY_VALUE count found in the
2679 (vt_expand_loc_callback, INIT_ELCD): Adjust.
2681 2012-04-13 Tom de Vries <tom@codesourcery.com>
2683 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
2684 parameters vuse and vuse_escaped.
2685 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
2686 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
2689 2012-04-13 Richard Guenther <rguenther@suse.de>
2691 PR tree-optimization/52969
2692 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
2693 the condition for the COND_EXPR and handle predicate negation
2694 by swapping the COND_EXPR arms.
2696 2012-04-13 Nick Clifton <nickc@redhat.com>
2698 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
2699 TODO_dump_func flag.
2701 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
2703 PR rtl-optimization/52203
2704 PR rtl-optimization/52715
2706 Revert the 2012-03-07 fix for PR 52203.
2707 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
2708 the insn does not modify DFA right before issuing, adjust
2709 issue_rate accordingly.
2711 2012-04-13 Richard Guenther <rguenther@suse.de>
2714 * c-typeck.c (pointer_diff): Remove bogus assert.
2716 2012-04-13 Richard Guenther <rguenther@suse.de>
2719 * convert.c (convert_to_pointer): Remove special-casing of zero.
2721 2012-04-13 Joey Ye <joey.ye@arm.com>
2723 * config/arm/constraints.md (Pe): New constraint.
2724 * config/arm/arm.md: New split for imm 256-510.
2726 2012-04-13 Terry Guo <terry.guo@arm.com>
2728 * config/arm/arm-cores.def: Added core cortex-m0plus.
2729 * config/arm/arm-tune.md: Regenerated.
2730 * config/arm/arm-tables.opt: Regenerated.
2731 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
2733 2012-04-13 Alan Modra <amodra@gmail.com>
2736 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
2737 tie regs on destination of sets. Delete forward declaration.
2738 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
2739 (rs6000_emit_prologue): Likewise.
2740 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
2742 (is_mem_ref): Use tie_operand to recognise stack ties.
2743 * config/rs6000/predicates.md (tie_operand): New.
2744 * config/rs6000/rs6000.md (restore_stack_block): Generate new
2746 (restore_stack_nonlocal): Likewise.
2747 (stack_tie): Update.
2748 (frame_tie): Delete.
2750 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2752 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
2753 HOST_WIDE_INT_PRINT_DEC in format strings.
2755 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
2758 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
2759 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
2760 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
2761 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
2762 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
2763 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
2764 avx2_permvarv8si using VI4F_256 mode iterator.
2765 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
2766 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
2767 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
2768 gen_avx2_permvarv8sf.
2769 (expand_vec_perm_pshufb): Ditto.
2771 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2774 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
2775 the list of options to enable the FCFID instruction.
2776 (TARGET_EXTRA_BUILTINS): Adjust comment.
2778 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2780 PR tree-optimization/18589
2781 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
2782 (operand_entry): Add count field.
2783 (add_repeat_to_ops_vec): New function.
2784 (completely_remove_stmt): Likewise.
2785 (remove_def_if_absorbed_call): Likewise.
2786 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
2787 (acceptable_pow_call): New function.
2788 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
2789 entries with repeat counts when found.
2790 (repeat_factor_d): New struct and associated typedefs.
2791 (repeat_factor_vec): New static vector variable.
2792 (compare_repeat_factors): New function.
2793 (get_reassoc_pow_ssa_name): Likewise.
2794 (attempt_builtin_powi): Likewise.
2795 (reassociate_bb): Call attempt_builtin_powi.
2796 (fini_reassoc): Two new calls to statistics_counter_event.
2798 2012-04-12 Richard Guenther <rguenther@suse.de>
2800 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
2801 * cgraph.h (tree_rest_of_compilation): Remove.
2802 * cgraph.c (cgraph_add_new_function): Move ...
2803 * cgraphunit.c (cgraph_add_new_function): ... here.
2804 (tree_rest_of_compilation): Make static.
2805 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
2806 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
2807 gate_all_early_local_passes, execute_all_early_local_passes,
2808 pass_early_local_passes, gate_all_early_optimizations,
2809 pass_all_early_optimizations): Move ...
2810 * passes.c (gate_all_optimizations, pass_all_optimizations,
2811 gate_all_early_local_passes, execute_all_early_local_passes,
2812 pass_early_local_passes, gate_all_early_optimizations,
2813 pass_all_early_optimizations): ... here.
2814 * tree-optimize.c (execute_free_datastructures): Remove.
2815 * tree-flow.h (execute_free_datastructures): Remove.
2816 * tree-optimize.c (execute_init_datastructures,
2817 pass_init_datastructures): Move ...
2818 * tree-ssa.c (execute_init_datastructures,
2819 pass_init_datastructures): ... here.
2820 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
2821 execute_free_datastructures.
2823 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
2825 * dbgcnt.def (ira_move): New counter.
2826 * ira-int.h (ira_create_new_reg): Declare function.
2827 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
2828 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
2829 no longer static. All callers changed.
2830 * ira.c: Include "dbgcnt.h".
2831 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
2832 move_unallocated_pseudos): New static functions.
2833 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
2834 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
2835 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
2836 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
2837 to the pseudos generated in find_moveable_pseudos.
2838 * Makefile.in (ira.o): Add $(DBGCNT_H).
2840 2012-04-12 Richard Guenther <rguenther@suse.de>
2842 PR tree-optimization/52943
2843 * tree-chrec.h (chrec_is_positive): Remove.
2844 * tree-scalar-evolution.c (chrec_is_positive): Move ...
2845 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
2846 Return false for a constant zero instead of negative.
2847 (analyze_siv_subscript_cst_affine): Handle zero difference
2848 in the initial condition explicitely.
2850 2012-04-12 Richard Guenther <rguenther@suse.de>
2852 * tree-parloops.c (parallelize_loops): Also consult the upper
2853 bound for the number of iterations.
2854 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
2855 (loop_prefetch_arrays): Likewise.
2857 2012-04-12 Richard Guenther <rguenther@suse.de>
2859 * cfgloop.h (estimated_loop_iterations_int): Ditch
2860 'conservative' parameter.
2861 (max_stmt_executions_int): Likewise.
2862 (estimated_loop_iterations): Likewise.
2863 (max_stmt_executions): Likewise.
2864 (max_loop_iterations): Declare.
2865 (max_loop_iterations_int): Likewise.
2866 (estimated_stmt_executions): Likewise.
2867 (estimated_stmt_executions_int): Likewise.
2868 * tree-ssa-loop-niter.c (estimated_loop_iterations):
2870 (max_loop_iterations): ... this.
2871 (estimated_loop_iterations_int): Split parts to ...
2872 (max_loop_iterations_int): ... this.
2873 (max_stmt_executions_int): Split parts to ...
2874 (estimated_stmt_executions_int): ... this.
2875 (max_stmt_executions): Split parts to ...
2876 (estimated_stmt_executions): ... this.
2877 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
2878 * predict.c (predict_loops): Likewise.
2879 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
2880 (analyze_siv_subscript_cst_affine): Likewise.
2881 (compute_overlap_steps_for_affine_1_2): Likewise.
2882 (analyze_subscript_affine_affine): Likewise.
2883 (init_omega_for_ddr_1): Likewise.
2884 * tree-parloops.c (parallelize_loops): Likewise.
2885 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2886 (may_eliminate_iv): Likewise.
2887 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
2888 (loop_prefetch_arrays): Likewise.
2889 * tree-vrp.c (adjust_range_with_scev): Likewise.
2891 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
2893 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
2894 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
2896 (dump_table): Use bool type for need_align and have_df variables.
2897 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
2898 (regs_used): Remove register modifier.
2899 (barrier_align): Move variables slot, credit, jump_to_next
2900 into if block above for loop. Use bool type for jump_to_next.
2901 (sh_function_arg): Use NULL_RTX instead of 0.
2903 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
2905 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
2906 (bswapsi2): New expander.
2908 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
2910 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
2911 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
2913 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
2915 PR rtl-optimization/52876
2916 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
2917 Don't call mark_reg_pointer for incompatible pointer sign extension.
2919 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
2922 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
2924 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
2925 comparisons against TYPE_PRECISION.
2926 * tree-ssa-forwprop.c (combine_conversions): Likewise.
2928 2012-04-11 Xinliang David Li <davidxl@google.com>
2930 * tree-passes.h: Remove TODO_dump_func.
2931 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
2932 * trans-mem.c: Remove TODO_dump_func.
2933 * ira.c: Remove TODO_dump_func.
2935 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
2937 * config/i386/i386.c (ix86_option_override_internal): Check
2938 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
2939 after TARGET_64BIT is updated.
2941 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
2943 * config/sh/sh.h: Remove old secondary reload code.
2945 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
2947 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
2948 (ready_reorder): ... this function.
2950 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
2952 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
2955 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
2956 insns so that no other insn is queued for a time before them.
2958 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
2961 2012-04-11 Richard Guenther <rguenther@suse.de>
2964 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
2965 consider loop nesting.
2966 (evolution_function_is_univariate_p): Properly check the remainder
2969 2012-04-11 Richard Guenther <rguenther@suse.de>
2972 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
2974 2012-04-11 Nick Clifton <nickc@redhat.com>
2976 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
2977 information, if requested.
2979 * config/rx/rx.c (rx_expand_prologue): Likewise.
2981 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
2982 Michael Matz <matz@suse.de>
2985 * rtlanal.c (unsigned_reg_p): New function.
2986 Update copyright notice dates.
2987 * rtl.h (unsigned_reg_p): Prototype it.
2988 Update copyright notice dates.
2989 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
2991 * expr.c (expand_expr_real_1): Set register attributes.
2992 * stmt.c (expand_case): Likewise.
2994 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
2997 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
2998 consider_sh2a and allow_zero.
2999 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
3000 (disp_addr_displacement): New function.
3001 (sh_address_cost): Use disp_addr_displacement function instead
3002 of DISP_ADDR_OFFSET.
3003 (sh_legitimate_address_p): Adapt to changed
3004 sh_legitimate_index_p declaration.
3005 (sh_find_mov_disp_adjust): Remove HImode check.
3006 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
3007 disp_addr_displacement and max_mov_insn_displacement.
3008 (max_mov_insn_displacement): Remove HImode check.
3009 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
3010 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
3011 * config/sh/constraints.md (K05, K13): New constraints.
3012 (K12): Correct comment.
3013 (Sdd): Do not use DISP_ADDR_P macro.
3014 (Snd, Sbw): Use satisfies_constraint_Sdd.
3015 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
3016 (*extendhisi2_compact, movhi_i): Remove.
3017 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
3018 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
3019 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
3020 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
3021 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
3022 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
3023 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
3025 Add new peepholes for HImode displacement addressing.
3027 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
3029 * config/sh/sh.h (SIDI_OFF): Remove.
3030 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
3031 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
3034 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3037 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
3038 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
3039 * doc/md.texi (Standard Names): Add bswap.
3040 * builtin-types.def (BT_UINT16): New primitive type.
3041 (BT_FN_UINT16_UINT16): New function type.
3042 * builtins.def (BUILT_IN_BSWAP16): New.
3043 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
3044 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
3045 expand_builtin_bswap.
3046 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
3047 (fold_builtin_1): Likewise.
3048 (is_inexpensive_builtin): Likewise.
3049 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
3050 missing bits for bswap to libcall code.
3051 * tree.c (build_common_tree_nodes): Build uint16_type_node.
3052 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
3053 (uint16_type_node): New define.
3054 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
3055 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
3057 (rs6000_init_builtins): Likewise.
3058 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
3060 2012-04-11 Tristan Gingold <gingold@adacore.com>
3062 * doc/extend.texi (Type Attributes): Move paragraph.
3064 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3067 * diagnostic.h (show_caret): Declare.
3068 (caret_max_width): Declare.
3069 (diagnostic_show_locus): Declare.
3070 * diagnostic.c (diagnostic_initialize): Initialize to false.
3071 (diagnostic_show_locus): New.
3072 (diagnostic_report_diagnostic): Call it.
3073 (getenv_columns): New.
3075 (diagnostic_set_caret_max_width): New.
3076 * input.c (read_line): New.
3077 (location_get_source_line): New.
3078 * input.h (location_get_source_line): Declare.
3079 * toplev.c (general_init): Initialize show_caret from options.
3080 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
3081 * opts.c (common_handle_option): Likewise.
3082 * pretty-print.h (pp_get_prefix): New.
3083 (pp_base_get_prefix): New.
3084 * common.opt (fdiagnostics-show-caret): New option.
3085 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
3087 2012-04-11 Richard Guenther <rguenther@suse.de>
3089 PR rtl-optimization/52881
3090 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
3092 2012-04-11 Richard Guenther <rguenther@suse.de>
3094 PR tree-optimization/52912
3095 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
3096 manipulation code we are threading through a loop header
3097 to an exit destination.
3099 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3101 * tree.h (warn_if_unused_value): Move declaration from here.
3102 * stmt.c (warn_if_unused_value): Move definition from here.
3104 2010-04-10 Michael Matz <matz@suse.de>
3106 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
3108 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
3109 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
3110 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
3111 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
3112 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
3113 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
3114 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
3115 (vect_record_strided_load_vectors): Rename to
3116 vect_record_grouped_load_vectors.
3117 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
3118 Rename use of above macros.
3119 (vect_verify_datarefs_alignment): Ditto.
3120 (vector_alignment_reachable_p): Ditto.
3121 (vect_peeling_hash_get_lowest_cost): Ditto.
3122 (vect_enhance_data_refs_alignment): Ditto.
3123 (vect_analyze_group_access): Ditto and rename stride to groupsize.
3124 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
3125 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
3126 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
3127 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
3128 (vect_record_strided_load_vectors): Rename to
3129 vect_record_grouped_load_vectors.
3130 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
3131 (destroy_loop_vec_info): Ditto.
3132 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
3133 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
3134 (vect_analyze_slp): Ditto.
3135 (new_bb_vec_info): Ditto.
3136 (destroy_bb_vec_info): Ditto.
3137 (vect_schedule_slp_instance): Ditto and rename strided_store to
3139 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
3140 vect_cost_group_size.
3141 (vect_model_store_cost): Rename use of above macros and call
3142 to vect_cost_strided_group_size.
3143 (vect_model_load_cost): Ditto.
3144 (vectorizable_store): Ditto, rename strided_store to grouped_store
3145 and calls to renamed tree-vectorizer.h functions.
3146 (vectorizable_load): Ditto.
3147 (vect_transform_stmt): Rename use of above macros and strided_store
3150 2012-04-10 Jan Hubicka <jh@suse.cz>
3152 * cgraph.h: Remove misledaing comment on ipa-ref.h.
3153 (symtab_type): New enum.
3154 (symtab_node): New structure.
3155 (cgraph_node, varpool_node): Add symbol base type.
3156 (cgraph, varpool): New accestor functions.
3157 * cgraph.c (cgraph_create_node_1): Set symbol type.
3158 * varpool.c (varpool_node): Set symbol type.
3160 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
3161 Richard Sandiford <rdsandiford@googlemail.com>
3163 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
3165 2012-04-10 Richard Guenther <rguenther@suse.de>
3168 * gimple-low.c (gimple_check_call_args): Properly account for
3169 compatible aggregate types.
3171 2012-04-10 Richard Guenther <rguenther@suse.de>
3173 * toplev.h (tree_rest_of_compilation): Remove.
3174 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3175 * cgraph.h (tree_rest_of_compilation): Declare.
3176 * tree-optimize.c (tree_rest_of_compilation): Move ...
3177 * cgraphunit.c (tree_rest_of_compilation): ... here.
3178 * cgraph.c (cgraph_add_new_function): Adjust.
3179 * Makefile.in (tree-optimize.o): Adjust.
3180 (cgraphunit.o): Likewise.
3182 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
3184 PR tree-optimization/52870
3185 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
3186 presumed pattern statement is within the same loop or basic block.
3188 2012-04-10 Tristan Gingold <gingold@adacore.com>
3190 * gengtype.c (main): Make uintptr_t a known type.
3192 2012-04-10 Richard Guenther <rguenther@suse.de>
3194 * tree-pass.h (tree_lowering_passes): Remove.
3195 * tree-optimize.c (tree_lowering_passes): Remove.
3196 * cgraph.c (cgraph_add_new_function): Inline relevant parts
3197 of tree_lowering_passes, avoid redundant call of early local passes.
3198 * cgraphunit.c (cgraph_lower_function): Fold into ...
3199 (cgraph_analyze_function): ... its single caller. Inline
3200 relevant parts of tree_lowering_passes.
3202 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
3205 * config/pa/pa.opt: Remove SIO and GNU_LD.
3207 2012-04-09 Jan Hubicka <jh@suse.cz>
3212 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
3213 boundary, add its target too.
3214 * lto.c (add_references_to_partition): Add also aliased nodes.
3215 (add_cgraph_node_to_partition,
3216 add_varpool_node_to_partition): Work on nodes, not functions/variables;
3217 when adding alias, add also the aliased object.
3219 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
3222 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
3223 VOIDmode immediate operands.
3224 * config/i386/constraints.md (Wz): New constraint.
3225 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
3227 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
3230 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
3231 the DECL generated for the special GOT helper.
3233 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
3235 * config/sh/constraints.md: Update list of constraints in
3237 (Sr0): Remove unused memory constraint.
3239 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3241 * tree-pretty-print.h: Update comment.
3243 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
3245 * config/sh/sh.md: Use braced string notation where applicable.
3246 (*prefetch_i4, prefetch_m2a): Merge into ...
3247 (*prefetch): ... this new insn.
3249 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
3251 * config/sh/sh.h (high_life_started): Remove
3252 * config/sh/predicates.md (general_movdst_operand): Use
3253 'reload_in_progress' instead of 'high_life_started'.
3254 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
3255 divsi_inv_fp): Likewise.
3257 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
3259 * config/sh/sh-protos.h (prepare_move_operands): Return void
3261 * config/sh/sh.c (prepare_move_operands): Likewise.
3262 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
3264 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
3266 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
3267 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
3268 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
3269 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
3270 commutative_float_operator, noncommutative_float_operator,
3271 sh_handle_pragma): Remove.
3273 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
3275 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
3276 Use @option markup on command-line options. Use @samp markup on
3277 literal keywords to options. Use @code markup on code fragments.
3278 Use other markup in preference to quotation marks in the text.
3279 Add markup to some passages without any.
3281 2012-04-06 Mike Stump <mikestump@comcast.net>
3283 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
3285 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
3287 * config/sh/sh.c (hi_const): Remove.
3288 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
3291 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
3293 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
3295 * config/sh/sh.c (sh_expand_t_scc): Likewise.
3296 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
3297 calling sh_expand_t_scc.
3299 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
3301 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
3302 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
3303 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
3304 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
3305 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
3306 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
3307 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
3308 sh2a_is_function_vector_call): Use bool as return type.
3309 (sh_pass_in_reg_p): Remove.
3310 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
3311 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
3312 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
3313 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
3314 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
3315 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
3316 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
3317 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
3318 sh_loads_bankedreg_p): Use bool as return type.
3319 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
3320 'register' modifier.
3322 2012-04-06 Matt Turner <mattst88@gmail.com>
3324 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
3326 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
3328 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
3329 of the destination isn't also a FP_REGS register.
3331 2012-04-05 Teresa Johnson <tejohnson@google.com>
3332 H.J. Lu <hongjiu.lu@intel.com>
3334 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
3335 * config/i386/i386.md (move immediate to memory peephole2):
3336 Add cases for HImode move when LCP stall avoidance is needed.
3337 * config/i386/i386.c (initial_ix86_tune_features): Initialize
3338 X86_TUNE_LCP_STALL entry.
3340 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
3343 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
3344 CONST_INT operands, zero-extended with AND.
3346 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
3349 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
3350 first argument instead of mode size. Move displacement calculations
3352 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
3353 ... these new functions.
3354 (disp_adjust): Remove max_mov_disp field.
3355 (sh_legitimate_index_p): Use max_mov_insn_displacement and
3356 mov_insn_alignment_mask.
3357 (sh_address_cost): Use max_mov_insn_displacement.
3359 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
3361 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
3362 (arch_enabled): Handle new arch types.
3363 (one_cmpldi2): Add NEON support.
3365 2012-04-05 Richard Guenther <rguenther@suse.de>
3367 * gimple.c (walk_gimple_op): Compute val_only for the LHS
3368 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
3369 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
3370 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
3371 ... here and make static.
3372 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
3375 2012-04-05 Richard Guenther <rguenther@suse.de>
3377 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
3378 basic-block before removing it.
3380 2012-04-05 Richard Guenther <rguenther@suse.de>
3382 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
3383 version namespace as we release the freelist.
3385 2012-04-05 Richard Guenther <rguenther@suse.de>
3387 * tree-nrv.c (tree_nrv): Release VDEFs.
3388 * tree-sra.c (sra_modify_constructor_assign): Likewise.
3389 (sra_modify_assign): Likewise.
3390 * tree-vect-stmts.c (vect_remove_stores): Likewise.
3391 * tree-vect-loop.c (vect_transform_loop): Likewise.
3392 * tree-ssa-dom.c (optimize_stmt): Likewise.
3393 * tree-vect-slp.c (vect_schedule_slp): Likewise.
3394 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
3396 2012-04-05 Richard Guenther <rguenther@suse.de>
3398 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
3400 * gimple.h (gsi_remove): Adjust.
3401 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
3402 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
3403 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
3404 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
3405 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
3406 * tree-ssa-pre.c (eliminate): Likewise.
3408 2012-04-04 Mike Stump <mikestump@comcast.net>
3410 * doc/rtl.texi (const_double): Document as sign-extending.
3411 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
3412 * emit-rtl.c (immed_double_int_const): Refine to state the
3414 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
3415 CONST_DOUBLE integers.
3416 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
3417 negative values are converted. Fix conversions bigger than
3418 HOST_BITS_PER_WIDE_INT.
3419 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
3420 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
3421 * explow.c (plus_constant_mode): Add.
3422 (plus_constant): Implement with plus_constant_mode.
3423 * rtl.h (plus_constant_mode): Add.
3425 2012-04-04 Richard Guenther <rguenther@suse.de>
3427 PR tree-optimization/52808
3428 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
3429 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
3431 2012-04-04 Tristan Gingold <gingold@adacore.com>
3433 * expr.c (expand_expr_real_2): Handle larger sizetype in
3436 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
3438 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
3439 to m2a-single instead of m2e.
3441 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
3443 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
3444 Change type of BITOFFSET to signed. Make sure the lower bound of
3445 the computed range is non-negative by adjusting OFFSET and BITPOS.
3446 (expand_assignment): Adjust call to get_bit_range.
3448 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3450 * h8300/h8300.c (h8300_current_function_monitor_function_p):
3451 New function. Added to check monitor functions.
3452 (h8300_option_override): Modified to generate error/warning
3453 messages for invalid combinations of different command line
3455 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
3456 save EXR on stack for monitor function in case of H8S target
3457 when "-mno-exr" is passed.
3458 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
3460 * doc/invoke.texi: Document H8S options.
3462 2012-04-03 Tristan Gingold <gingold@adacore.com>
3464 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
3465 of gcc_AC_FUNC_MMAP_BLACKLIST.
3466 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
3467 * Makefile.in (aclocal_deps): Add mmap.m4.
3468 * configure: Regenerate.
3469 * aclocal.m4: Regenerate.
3471 2012-04-03 Richard Guenther <rguenther@suse.de>
3473 PR tree-optimization/52808
3474 * tracer.c (tail_duplicate): Return whether we have duplicated
3476 (tracer): If we have duplicated any block, cleanup the CFG.
3477 * cfghooks.c (duplicate_block): If we duplicated a loop
3478 header but not its loop, destroy the loop because it now has
3480 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
3481 the cfg manipulation routines we are not creating a multiple
3484 2012-04-03 Tristan Gingold <gingold@adacore.com>
3486 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
3488 (vms_c_common_override_options): Allow parameterless variadic
3491 2012-04-03 Jakub Jelinek <jakub@redhat.com>
3493 PR tree-optimization/52835
3494 * tree-data-ref.c (build_rdg): Return NULL if
3495 compute_data_dependences_for_loop failed.
3497 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
3499 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
3500 for REAL_CST as well.
3501 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
3502 In the bitfield case, if the value is a REAL_CST, convert it first to
3505 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
3507 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
3508 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
3509 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
3511 * config/i386/biarchx32.h: New.
3513 2012-04-02 Anatoly Sokolov <aesok@post.ru>
3515 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
3516 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3517 (arm_preferred_reload_class): New function.
3519 2012-04-02 Richard Guenther <rguenther@suse.de>
3521 PR tree-optimization/52756
3522 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
3523 (thread_through_loop_header): After threading through the loop latch
3524 remove the split part from the loop and clear further threading
3525 opportunities that would create a multiple entry loop.
3527 2012-04-02 Richard Guenther <rguenther@suse.de>
3529 PR rtl-optimization/52800
3530 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
3531 CLEANUP_CFG_CHANGED.
3533 2012-04-02 Richard Guenther <rguenther@suse.de>
3536 * loop-init.c (gate_handle_loop2): Destroy loops here if
3537 we don't enter RTL loop optimizers.
3539 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
3542 2012-03-29 Richard Guenther <rguenther@suse.de>
3544 * rtl.h (extended_count): Remove.
3545 * combine.c (extended_count): Remove.
3547 2012-04-02 Dodji Seketeli <dodji@redhat.com>
3550 * pt.c (more_specialized_fn): Don't apply decay conversion to
3551 types of function parameters.
3553 2012-04-02 Tristan Gingold <gingold@adacore.com>
3555 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
3556 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
3557 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
3558 (ggc_pch_this_base): Use uintptr_t instead of size_t.
3560 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
3563 * config/i386/i386.c (ix86_option_override_internal): Don't
3564 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
3566 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
3568 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
3569 (stmt_can_make_abnormal_goto): Use it.
3570 (is_ctrl_altering_stmt): Likewise.
3572 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
3573 Kaz Kojima <kkojima@gcc.gnu.org>
3575 * config/sh/sh.c (push_regs): Skip banked registers when
3576 resbank attribute is specified.
3577 (sh_expand_epilogue): Likewise.
3579 2012-03-30 Richard Henderson <rth@redhat.com>
3582 * combine-stack-adj.c (prev_active_insn_bb): New.
3583 (next_active_insn_bb): New.
3584 (force_move_args_size_note): New.
3585 (combine_stack_adjustments_for_block): Use it.
3587 2012-03-30 Richard Henderson <rth@redhat.com>
3589 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
3590 (ix86_expand_vector_init_duplicate): Initialize it.
3591 (expand_vec_perm_palignr): Likewise.
3592 (ix86_expand_vec_perm_const): Likewise.
3593 (ix86_vectorize_vec_perm_const_ok): Likewise.
3594 (expand_vec_perm_blend): Use it.
3595 (expand_vec_perm_vpermil): Likewise.
3596 (expand_vec_perm_pshufb): Likewise.
3597 (expand_vec_perm_1): Likewise.
3598 (expand_vec_perm_pshuflw_pshufhw): Likewise.
3599 (expand_vec_perm_interleave2): Likewise.
3600 (expand_vec_perm_vpermq_perm_1): Likewise.
3601 (expand_vec_perm_vperm2f128): Likewise.
3602 (expand_vec_perm_interleave3): Likewise.
3603 (expand_vec_perm_vperm2f128_vblend): Likewise.
3604 (expand_vec_perm_vpshufb2_vpermq): Likewise.
3605 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
3606 (expand_vec_perm_broadcast): Likewise.
3607 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
3609 2012-03-30 Richard Henderson <rth@redhat.com>
3611 * dwarf2out.c (gen_variable_die): Initialize off.
3613 2012-03-30 Tristan Gingold <gingold@adacore.com>
3615 * config/vms/vms-f.c: New file.
3616 * config/vms/t-vms (vms-f.o): New rule.
3617 * config.gcc (*-*-*vms*): Define fortran_target_objs.
3619 2012-03-30 Richard Guenther <rguenther@suse.de>
3621 PR tree-optimization/52754
3622 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
3623 propagate arbitrary addresses into really plain dereferences.
3625 2012-03-30 Richard Guenther <rguenther@suse.de>
3628 * except.c (emit_to_new_bb_before): Move loop updating ...
3629 (dw2_build_landing_pads): ... here. Use a proper block for
3630 querying the loop father.
3632 2012-03-30 Tristan Gingold <gingold@adacore.com>
3634 * config/ia64/ia64.c (ia64_section_type_flags): Remove
3635 common_object attribute handling.
3636 (SECTION_VMS_OVERLAY): Remove
3637 (ia64_vms_common_object_attribute): Replace abort with an assert.
3638 Do not set DECL_SECTION_NAME.
3639 (ia64_vms_output_aligned_decl_common): Handle common_object
3641 (ia64_vms_elf_asm_named_section): Remove.
3642 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
3644 2012-03-30 Richard Guenther <rguenther@suse.de>
3647 * double-int.c (rshift_double): Remove not needed cast.
3649 2012-03-30 Richard Guenther <rguenther@suse.de>
3651 * tree-affine.h (print_aff): Remove.
3652 * tree-affine.c (print_aff): Make static.
3653 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
3654 (get_references_in_stmt): Likewise.
3655 (print_direction_vector): Likewise.
3656 (print_dir_vectors): Likewise.
3657 (print_dist_vectors): Likewise.
3658 (dump_subscript): Likewise.
3659 (dump_ddrs): Likewise.
3660 (dump_dist_dir_vectors): Likewise.
3661 (dump_data_references): Likewise.
3662 (dump_data_dependence_relation): Likewise.
3663 (dump_data_dependence_direction): Likewise.
3664 (dump_rdg_vertex): Likewise.
3665 (dump_rdg_component): Likewise.
3666 (debug_ddrs): Declare.
3667 (struct data_ref_loc_d): Move ...
3668 * tree-data-ref.c (struct data_ref_loc_d): ... here.
3669 (get_references_in_stmt): Make static.
3670 (dump_data_references): Likewise.
3671 (dump_subscript): Likewise.
3672 (print_direction_vector): Likewise.
3673 (print_dir_vectors): Likewise.
3674 (print_dist_vectors): Likewise.
3675 (dump_data_dependence_relation): Likewise.
3676 (dump_dist_dir_vectors): Likewise.
3677 (dump_ddrs): Likewise.
3678 (dump_rdg_vertex): Likewise.
3679 (dump_rdg_component): Likewise.
3680 (debug_ddrs): New function.
3681 (access_matrix_get_index_for_parameter): Remove.
3683 2012-03-30 Tristan Gingold <gingold@adacore.com>
3685 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
3686 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
3687 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
3688 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
3689 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
3690 (vms_patch_builtins): Handle new flags
3691 * config/vms/vms-crtlmap.map: Completed using nm on
3692 c and math system libraries.
3693 * config/vms/make-crtlmap.awk: Handle any number of flags.
3695 2012-03-30 Martin Jambor <mjambor@suse.cz>
3697 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
3698 is a builtin_stack_save in a dominating BB.
3700 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
3702 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
3703 crossing 128bit lane boundary.
3705 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
3707 * ira-color.c (setup_left_conflict_sizes_p): Process all
3708 conflicting objects.
3710 2012-03-29 Jakub Jelinek <jakub@redhat.com>
3712 PR tree-optimization/52760
3713 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
3714 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
3716 2012-03-29 Richard Guenther <rguenther@suse.de>
3718 * cgraph.h (cgraph_materialize_all_clones): Remove.
3719 (reset_inline_failed): Likewise.
3720 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
3721 * cgraphbuild.c (reset_inline_failed): Remove.
3722 * rtl.h (cse_main): Remove.
3723 (extended_count): Likewise.
3724 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
3725 (cse_main): Make static.
3726 * combine.c (extended_count): Remove.
3727 (dump_combine_stats): Mark as DEBUG_FUNCTION.
3728 * basic-block.h (reorder_basic_blocks): Remove.
3729 * bb-reorder.c (reorder_basic_blocks): Make static.
3730 * Makefile.in (dse.o): Remove dse.h dependency.
3732 * dse.c (gate_dse): Remove.
3733 (clear_alias_mode_eq): Likewise.
3734 (clear_alias_mode_hash): Likewise.
3735 (dse_record_singleton_alias_set): Likewise.
3736 (dse_invalidate_singleton_alias_set): Likewise.
3738 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
3740 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
3741 crtbegin_so%O%s for -shared.
3742 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
3744 2012-03-29 Richard Guenther <rguenther@suse.de>
3746 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
3747 (add_to_value): Remove.
3748 (print_value_expressions): Likewise.
3749 * tree-ssa-pre.c (add_to_value): Make static.
3750 (print_value_expressions): Likewise.
3751 * gimple.h (gimple_adjust_this_by_delta): Remove.
3752 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
3754 2012-03-29 Richard Guenther <rguenther@suse.de>
3757 * double-int.h (rshift_double): Remove.
3758 * double-int.c (lshift_double): Use absu_hwi to make count positive.
3759 (rshift_double): Make static, take unsigned count argument,
3760 remove handling of negative count argument.
3761 (double_int_rshift): Dispatch to lshift_double.
3763 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
3765 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
3768 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
3769 (SPEC_X32): Likewise.
3770 (MULTILIB_DEFAULTS): Likewise.
3772 * config/i386/i386.c (isa_opts): Remove -m64.
3773 (ix86_target_string): Properly handle -m32/-m64/-mx32.
3774 (ix86_option_override_internal): Properly
3775 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
3776 handle -m32, -m64 and -mx32.
3778 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
3779 with OPTION_ABI_X32. Moved after TARGET_LP64.
3780 (TARGET_LP64): Changed to OPTION_ABI_64.
3782 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
3783 (mx32): Replace ISA_X32 with ABI_X32.
3785 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
3787 * tree.c (tree_size) <VECTOR_CST>: New case.
3789 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
3791 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
3792 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
3794 2012-03-28 Jakub Jelinek <jakub@redhat.com>
3797 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
3798 __builtin_va_start to __builtin_next_arg if the latter is
3799 builtin_decl_explicit_p rather than when it is not.
3802 * tree-vect-generic.c (vector_element): Perform multiplication
3803 for pos in bitsizetype type instead of idx type.
3805 2012-03-28 Richard Guenther <rguenther@suse.de>
3807 * loop-init.c (loop_optimizer_init): If loops are preserved
3808 perform incremental initialization of required loop features.
3809 (loop_optimizer_finalize): If loops are to be preserved only
3810 clean up optional loop features.
3811 (rtl_loop_done): Forcefully free loops here.
3812 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
3813 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
3815 (construct_init_block): Likewise.
3816 (construct_exit_block): Likewise.
3817 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
3818 the CFG after expanding.
3819 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
3820 If we needed to calculate them, free them afterwards.
3821 * tree-pass.h (PROP_loops): New define.
3822 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
3823 * basic-block.h (CLEANUP_CFG_CHANGED): New.
3824 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
3825 (cleanup_cfg): If we did something and have loops around, fix them up.
3826 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
3827 with CLEANUP_CFG_CHANGED.
3828 * cfghooks.c (merge_blocks): If we merge a loop header into
3829 its predecessor, update the loop structure.
3830 (duplicate_block): If we copy a loop latch, adjust loop state
3831 to note we may have multiple latches.
3832 (delete_basic_block): Mark loops for fixup if we remove a loop.
3833 * cfganal.c (forwarder_block_p): Protect loop latches, headers
3835 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
3836 (cfg_layout_can_merge_blocks_p): Likewise.
3837 * cprop.c (bypass_block): If we create a loop with multiple
3838 entries, mark it for removal.
3839 * except.c (emit_to_new_bb_before): Add the new basic-block
3841 * tree-eh.c (lower_resx): Likewise.
3842 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
3843 (expand_omp_taskreg): Likewise.
3844 * tree-inline.c (initialize_cfun): Likewise.
3845 * tree-mudflap.c (add_bb_to_loop): Prototype.
3846 (mf_build_check_statement_for): Properly add new basic-blocks
3848 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
3849 if we remove a loop.
3850 (thread_through_loop_header): Likewise.
3851 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
3852 new basic-blocks to existing loops.
3853 (expand_transaction): Likewise.
3854 * Makefile.in (except.o): Add $(CFGLOOP_H).
3856 (cgraph.o): Likewise.
3857 (cprop.o): Likewise.
3858 (cfgexpand.o): Likewise.
3859 (cfganal.o): Likewise.
3860 (trans-mem.o): Likewise.
3861 (tree-eh.o): Likewise.
3863 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
3866 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
3867 (avr_builtin_decl): New static function.
3868 (struct avr_builtin_description, avr_bdesc): Move up.
3869 Add GTY marker. Add field fndecl. Remove redundant field id.
3870 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
3871 (avr_expand_builtin): Code cleanup because .id is removed.
3873 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
3876 * config.gcc (tm_file): Remove avr/multilib.h.
3878 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
3880 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
3881 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
3882 * config/avr/t-avr: Remove generation of multilib.h.
3883 * config/avr/t-multilib: Regenerate.
3884 * config/avr/multilib.h: Remove.
3885 * config/avr/avr.opt (-msp8): New option.
3886 (avr_sp8): New variable.
3887 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
3888 * config/avr/avr.h (AVR_HAVE_SPH): New define.
3889 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
3890 (avr_device_to_sp8): New prototype.
3891 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
3892 (DRIVER_SELF_SPECS): New define.
3893 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
3894 __AVR_SP8__, __AVR_HAVE_SPH__.
3895 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
3896 AVR_HAVE_8BIT_SP to decide if SP_H is present.
3897 (avr_file_start): Ditto.
3899 2012-03-28 Jakub Jelinek <jakub@redhat.com>
3902 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
3903 instead of 8 in adjust_address.
3905 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
3908 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
3911 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
3914 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
3915 Rearrange conditional logic. Move displacement address calculations
3917 (sh_find_mov_disp_adjust): ... this new function.
3919 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
3921 * config/arm/arm.opt (mapcs): Remove MaskExists.
3922 * config/cris/linux.opt (mno-gotplt): Likewise.
3923 * config/i386/i386.opt (mhard-float): Likewise.
3925 (mno-sse4): Likewise.
3926 * config/m68k/m68k.opt (mhard-float): Likewise.
3927 * config/mep/mep.op (mcop32): Likewise.
3928 * config/pa/pa-hpux.opt (msio): Likewise.
3929 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
3930 * config/picochip/picochip.opt (mlittle): Likewise.
3931 * config/sh/sh.opt (mrenesas): Likewise.
3932 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
3933 * config/sparc/sparc.opt (mhard-float): Likewise.
3934 * config/v850/v850.opt (mv850es): Likewise.
3935 * config/vax/vax.opt (mg-float): Likewise.
3937 2012-03-27 Martin Jambor <mjambor@suse.cz>
3940 * tree-sra.c (sra_modify_assign): Do not call
3941 load_assign_lhs_subreplacements when working with an unscalarizable
3944 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
3947 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
3949 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
3950 * config/i386/i386.c: Include reload.h.
3951 (ix86_legitimize_reload_address): New function.
3953 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
3955 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
3956 hasn't been allocated. Define a target macro for Mask and
3957 InverseMask if it hasn't been defined. Remove MaskExists handling.
3959 * doc/options.texi: Remove MaskExists.
3961 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
3964 * config/sh/sh.c (find_barrier): Add equality check of last_got
3965 to avoid going above orig insn. Update comments.
3967 2012-03-27 Richard Guenther <rguenther@suse.de>
3970 * fold-const.c (try_move_mult_to_index): Handle &x.array more
3973 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
3975 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
3976 of a unit before computing the offset in units.
3977 * expr.c (get_bit_range): Return the null range if the enclosing record
3978 is part of a larger bit field.
3980 2012-03-27 Tristan Gingold <gingold@adacore.com>
3982 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
3983 * config/ia64/ia64.md: Remove mode in template.
3984 Sign extend operand in expand_simple_binop.
3985 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
3986 CASE_VECTOR_MODE instead of TARGET_ILP32.
3987 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
3989 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
3991 * varasm.c (assemble_external): #if 0 out the new assert from the
3992 previous commit, it breaks the Java and Go front ends.
3994 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
3996 * toplev.c (check_global_declaration_1): Do not call assemble_external.
3997 * expr.c (emit_block_move_libcall_fn): Likewise.
3998 (clear_storage_libcall_fn): Likewise.
3999 (expand_expr_addr_expr_1): Likewise.
4000 (expand_expr_real_1): Likewise.
4001 * calls.c (rtx_for_function_call): Likewise.
4003 * varasm.c (assemble_external): Assert this function is only called
4004 during or after expanding to RTL.
4006 2012-03-26 Martin Jambor <mjambor@suse.cz>
4008 PR tree-optimization/50052
4009 * tree-sra.c (tree_non_aligned_mem_p): Removed.
4010 (tree_non_aligned_mem_for_access_p): Likewise.
4011 (build_accesses_from_assign): Removed strict alignment requirements
4013 (access_precludes_ipa_sra_p): Likewise.
4015 2012-03-26 Richard Guenther <rguenther@suse.de>
4017 PR tree-optimization/52701
4018 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
4019 compute and set the evolution part of PHI nodes.
4021 2012-03-26 Richard Guenther <rguenther@suse.de>
4023 PR tree-optimization/52721
4024 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
4026 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
4028 PR tree-optimization/52686
4029 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
4032 2012-03-26 Tristan Gingold <gingold@adacore.com>
4034 * config/alpha/vms.h (LINK_SPEC): Simplify.
4035 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
4036 (NAME__MAIN, SYMBOL__MAIN): Remove.
4037 (VMS_DEBUG_MAIN_POINTER): Remove.
4038 * config/ia64/vms.h: Likewise.
4039 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
4040 code to vms.c. Call vms_start_function.
4041 * config/ia64/ia64.c (ia64_start_function): Likewise.
4042 * config/vms/vms-protos.h (vms_start_function): Declare.
4043 * config/vms/vms.c (vms_start_function): New function.
4044 * config/vms/vms.h (MATH_LIBRARY): Define.
4045 (VMS_DEBUG_MAIN_POINTER): Define.
4047 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
4049 PR rtl-optimization/52629
4050 * reload1.c (count_pseudo): Short-circuit common case.
4051 (count_spilled_pseudo): Return early for pseudos without hard regs.
4052 Assert that the pseudo has got a hard reg before manipulating it.
4054 2012-03-24 Jan Hubicka <jh@suse.cz>
4057 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
4058 (decide_is_variable_needed): Do not handle toplevel reorder here.
4059 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
4060 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
4063 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
4065 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
4066 and str_bitsize instead of more convoluted expressions.
4068 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
4071 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
4073 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
4076 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
4078 2012-03-23 Martin Jambor <mjambor@suse.cz>
4080 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
4082 2012-03-23 Richard Guenther <rguenther@suse.de>
4084 PR tree-optimization/52678
4085 * tree-vectorizer.h (struct _stmt_vec_info): Add
4086 loop_phi_evolution_part member.
4087 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
4088 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
4089 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
4090 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4091 Use the cached evolution part and the PHI nodes value from
4092 the loop preheader edge instead of re-analyzing the evolution.
4094 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
4096 * config/mips/mips-tables.opt: Update.
4097 * config/mips/mips.md (processor): Add xlp.
4098 * config/mips/mips-cpus.def: Add xlp.
4099 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
4101 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
4102 * doc/invoke.texi: Mention XLP.
4104 2012-03-22 Jakub Jelinek <jakub@redhat.com>
4107 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
4108 on any new_local_var_chain vars declared during recursing on
4109 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
4111 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
4113 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
4114 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
4115 (ASM_OUTPUT_LOCAL): Ditto.
4116 (ASM_OUTPUT_COMMON): Remove.
4117 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
4118 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
4120 2012-03-22 Jan Hubicka <jh@suse.cz>
4123 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
4125 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
4126 * ipa-inline-transform.c (save_inline_function_body): Remove
4127 copied clone if needed.
4128 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
4130 2012-03-22 Richard Guenther <rguenther@suse.de>
4133 * fold-const.c (fold_ternary_loc): Fix typo.
4135 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
4138 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
4139 (unspecv): Add UNSPECV_MEMORY_BARRIER.
4140 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
4141 (delay_cycles_1, delay_cycles_2): Ditto.
4142 (delay_cycles_3, delay_cycles_4): Ditto.
4143 (nopv, *nopv): Ditto.
4144 (sleep, *sleep): Ditto.
4147 2012-03-22 Richard Guenther <rguenther@suse.de>
4149 PR tree-optimization/52548
4150 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
4151 because of clobbers.
4152 (prune_clobbered_mems): New function.
4153 (compute_antic_aux): Use it to prune ANTIC_OUT.
4154 (compute_partial_antic_aux): Use it to prune PA_IN.
4155 (compute_avail): Only insert expressions into EXP_GEN that are not
4156 invalidated when translated up to the beginning of the block.
4158 2012-03-22 Richard Guenther <rguenther@suse.de>
4160 PR tree-optimization/52638
4161 * tree-vect-stmts.c (vect_init_vector_1): New function, split
4163 (vect_init_vector): ... here. Handle scalar vector inits.
4164 (vect_get_vec_def_for_operand): Adjust.
4165 (vectorizable_load): Likewise.
4167 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
4169 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
4170 (alpha*-*-freebsd*): Ditto.
4171 (alpha*-*-netbsd*): Ditto.
4172 (alpha*-*-openbsd*): Ditto.
4173 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
4174 (DWARF2_DEBUGGING_INFO): Remove.
4175 (PREFERRED_DEBUGGING_TYPE): Remove.
4176 (ASM_FINAL_SPEC): Remove.
4177 (IDENT_ASM_OP): Remove.
4178 (ASM_OUTPUT_IDENT): Remove.
4179 (SKIP_ASM_OP): Remove.
4180 (ASM_OUTPUT_SKIP): Remove.
4181 (ALIGN_ASM_OP): Remove.
4182 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
4183 (ASM_OUTPUT_CASE_LABEL): Remove.
4184 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
4185 (COMMON_ASM_OP): Remove.
4186 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
4187 (ASCII_DATA_ASM_OP): Remove.
4188 (READONLY_DATA_SECTION_ASM_OP): Remove.
4189 (INIT_SECTION_ASM_OP): Remove.
4190 (FINI_SECTION_ASM_OP): Remove.
4191 (ASM_SECTION_START_OP): Remove.
4192 (ASM_OUTPUT_SECTION_START_FILE): Remove.
4193 (TARGET_ASM_NAMED_SECTION): Remove.
4194 (TARGET_ASM_SELECT_SECTION): Remove.
4195 (MAKE_DECL_ONE_ONLY): Remove.
4196 (TYPE_ASM_OP): Remove.
4197 (SIZE_ASM_OP): Remove.
4198 (ASM_WEAKEN_LABEL): Remove.
4199 (TYPE_OPERAND_FMT): Remove.
4200 (ASM_DECLARE_RESULT): Remove.
4201 (ASM_DECLARE_OBJECT_NAME): Remove.
4202 (ASM_FINISH_DECLARE_OBJECT): Remove.
4203 (ELF_ASCII_ESCAPES): Remove.
4204 (ELF_STRING_LIMIT): Remove.
4205 (STRING_ASM_OP): Remove.
4206 (ASM_OUTPUT_EXTERNAL): Remove.
4207 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
4208 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
4210 (ASM_DECLARE_FUNCTION_NAME): Ditto.
4211 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
4212 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
4213 (ASM_OUTPUT_SKIP): Ditto.
4214 (READONLY_DATA_SECTION_ASM_OP): Remove.
4215 (USER_LABEL_PREFIX): Remove.
4216 (ASM_OUTPUT_ASCII): Remove.
4217 (ASM_OUTPUT_CASE_LABEL): Remove.
4218 (NO_DOLLAR_IN_LABEL): Undefine.
4220 2012-03-22 Richard Guenther <rguenther@suse.de>
4222 PR tree-optimization/52459
4223 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
4224 PHI insertion for calls.
4226 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
4228 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
4229 find_sets_in_insn, canonicalize_insn): Split out from ...
4230 (cse_insn): ... here.
4231 (invalidate_from_clobbers): Take an insn instead of the pattern.
4233 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
4236 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
4237 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
4238 * config/sh/sh.md (sindf2, cosdf2): Remove.
4240 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
4243 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
4244 prologue for unwinder and profiler.
4246 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
4248 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
4249 Introduce emul_name to select the right linker emulation for
4250 powerpc64-*-freebsd*.
4251 * configure: Regenerate.
4252 * config.gcc: Add bits to support powerpc64-*-freebsd*.
4253 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
4254 * config/rs6000/freebsd64.h: New file.
4255 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
4257 (rs6000_savres_strategy): Likewise.
4258 (rs6000_savres_routine_name): Likewise.
4259 (rs6000_elf_file_end): Likewise.
4260 * config/rs6000/t-freebsd64: New file.
4261 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
4262 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
4264 * config/rs6000/freebsd64.h: Remove duplicated entries from last
4266 * config/rs6000/t-freebsd64: Likewise.
4268 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
4270 PR rtl-optimization/52543
4272 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
4273 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
4274 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
4275 (avr_load_libgcc_p): Restrict to __flash loads.
4276 (avr_out_lpm): Only handle 1-byte loads from __flash.
4277 (avr_load_lpm): New function.
4278 (avr_find_unused_d_reg): Remove.
4279 (avr_out_lpm_no_lpmx): Remove.
4280 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
4281 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
4282 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
4283 (load_<mode>, load_<mode>_clobber): New insns.
4284 (mov<mode>): For multi-byte move from non-generic
4285 16-bit address spaces: Expand to load_<mode> resp.
4286 load_<mode>_clobber.
4287 (load<mode>_libgcc): Remove expander.
4288 (split-lpmx): Remove split.
4290 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
4292 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
4293 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
4294 All callers changed.
4295 (Fixed_core_reg): New feature.
4296 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
4298 * neon-testgen.ml: Handle Fixed_core_reg.
4300 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
4302 * config/arm/arm.c (thumb2_reorg): Add complete support
4303 for 16-bit instructions.
4304 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
4306 2012-03-21 Richard Guenther <rguenther@suse.de>
4308 PR tree-optimizer/52636
4309 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
4310 to the appropriate type.
4312 2012-03-21 Richard Guenther <rguenther@suse.de>
4314 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
4316 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
4317 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
4318 * passes.c (init_optimization_passes): Remove pass_init_function,
4319 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
4320 * tree-pass.h (pass_init_function): Remove.
4321 (pass_jump): Remove.
4322 (pass_initial_value_sets): Remove.
4323 (pass_unshare_all_rtl): Remove.
4324 * integrate.c (pass_initial_value_sets): Remove.
4325 * emit-rtl.c (pass_unshare_all_rtl): Remove.
4326 * tree.h (init_function_for_compilation): Remove.
4327 * function.c (init_function_for_compilation): Remove.
4328 (pass_init_function): Remove.
4329 * cfgcleanup.c (rest_of_handle_jump): Remove.
4330 (pass_jump): Remove.
4332 2012-03-20 Jason Merrill <jason@redhat.com>
4334 * tree-streamer-in.c (streamer_alloc_tree): Call
4335 ggc_alloc_zone_cleared_tree_node instead of
4336 ggc_alloc_zone_cleared_tree_node_stat.
4338 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
4340 * doc/extend.texi (Template Instantiation): Remove anachronisms.
4342 2012-03-20 Jakub Jelinek <jakub@redhat.com>
4345 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
4346 (ix86_expand_vec_perm_const_1): Call it.
4348 * config/i386/i386.c (vselect_insn): New variable.
4349 (init_vselect_insn): New function.
4350 (expand_vselect, expand_vselect_insn): Add testing_p argument.
4351 Call init_vselect_insn if vselect_insn is NULL. Adjust
4352 PATTERN (vselect_insn), instead of creating a new insn each time,
4353 only emit a copy of it if not testing and recog has been successful.
4354 (expand_vec_perm_pshufb, expand_vec_perm_1,
4355 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
4359 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
4360 ("enabled" attribute): Handle avx2 and noavx2 isas.
4361 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
4363 (vec_dup<mode>): Add avx2 =x,x alternative.
4364 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
4365 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
4366 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
4367 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
4369 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
4370 if possible, handle also V8SFmode.
4372 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
4374 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
4375 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
4376 reg_or_zero_operand predicate.
4377 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
4379 2012-03-20 Jakub Jelinek <jakub@redhat.com>
4381 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
4382 If operand isn't UNSPEC, return 0.
4384 2012-03-20 Richard Guenther <rguenther@suse.de>
4386 * tree-pass.h (pass_rtl_eh): Remove.
4387 * except.c (gate_handle_eh): Likewise.
4388 (rest_of_handle_eh): Likewise.
4389 (pass_rtl_eh): Likewise.
4390 (finish_eh_generation): Export.
4391 * except.h (finish_eh_generation): Declare.
4392 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
4393 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
4394 after expanding stack alignment. Instead of compacting blocks
4397 2012-03-20 Richard Guenther <rguenther@suse.de>
4399 * stor-layout.c (finish_bitfield_representative): Fallback
4400 to conservative maximum size if the padding up to the next
4401 field cannot be computed as a constant.
4402 (finish_bitfield_layout): If we cannot compute the distance
4403 between the start of the bitfield representative and the
4404 bitfield member start a new representative.
4405 * expr.c (get_bit_range): The distance between the start of
4406 the bitfield representative and the bitfield member is zero
4407 if the field offsets are not constants.
4409 2012-03-20 Tristan Gingold <gingold@adacore.com>
4411 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
4412 convert in lowercase.
4413 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
4414 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
4415 * stor-layout.c (sizetype_tab): Adjust.
4416 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
4417 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
4418 instead of type_kind_last.
4419 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
4420 instead of size_int_kind.
4421 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
4422 * doc/tm.texi: Regenerate.
4423 * defaults.h (SIZETYPE): Provide a default value.
4424 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
4427 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
4429 * config/sh/sh.md: Use braced string notation where applicable.
4431 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
4433 * config/i386/i386.md (allocate_stack): Simplify.
4435 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
4437 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
4438 copy_to_mode_reg (Pmode, ...).
4439 (expand_builtin_frame_address): Ditto.
4440 * expr.c (emit_block_move_via_libcall): Ditto.
4441 (set_storage_via_libcall): Ditto.
4443 * config/i386/i386.c (ix86_expand_movmem): Ditto.
4444 (ix86_expand_setmem): Ditto.
4445 (ix86_trampoline_init): DItto.
4446 * config/i386/i386.md (cmpstrnsi): Ditto.
4448 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
4450 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
4451 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
4452 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
4453 (SH Options): Likewise.
4455 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
4457 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
4458 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
4459 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
4460 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
4461 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
4464 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
4466 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
4467 * config/i386/i386.c (ix86_decompose_address): Use
4468 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
4469 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
4470 thread pointer to a register.
4473 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
4475 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
4476 if Pmode != word_mode.
4477 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
4478 Pmode == SImode for TARGET_X32.
4480 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
4481 (tls_initial_exec_x32): Likewise.
4483 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
4486 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
4487 DISP_ADDR_OFFSET): New macros.
4488 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
4489 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
4490 (sh_legitimize_address): Add QImode displacement handling.
4491 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
4493 (sh_secondary_reload): Add QImode displacement handling.
4494 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
4495 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
4496 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
4497 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
4498 to register operands only.
4499 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
4500 (extendqihi2): Change insn to expander.
4501 (*extendqihi2_compact_reg): New insn.
4502 (movqi_i, movqi): Replace with ...
4503 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
4504 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
4505 Add new peepholes for QImode displacement addressing.
4507 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4510 * doc/invoke.texi: Document -Wuseless-cast.
4512 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
4514 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
4515 * tree.h (handled_component_p): Reorder cases.
4516 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
4517 not initialize unsignedp.
4518 (loc_list_from_tree): Likewise.
4519 (fortran_common): Likewise.
4520 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4522 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
4524 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
4525 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
4526 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
4527 (ix86_split_long_move): Ditto.
4528 (legitimize_tls_address): Use ix86_gen_sub3.
4529 (construct_plt_address): Assert that Pmode == DImode.
4531 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
4533 * config/i386/i386.md: Remove empty predicates and/or constraints.
4534 * config/i386/sync.md: Ditto.
4535 * config/i386/sse.md: Ditto.
4536 * config/i386/mmx.md: Ditto.
4537 * config/i386/pentium.md: Ditto.
4538 * config/i386/athlon.md: Ditto.
4540 2012-03-16 Richard Guenther <rguenther@suse.de>
4542 PR tree-optimization/52603
4543 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
4547 2012-03-14 Richard Guenther <rguenther@suse.de>
4549 PR tree-optimization/52571
4550 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4551 flag_section_anchors check ...
4552 (vect_can_force_dr_alignment_p): ... here.
4554 2012-03-16 Martin Jambor <mjambor@suse.cz>
4556 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
4557 memory through MEM_REFs by calling extract_bit_field.
4559 2012-03-16 Richard Guenther <rguenther@suse.de>
4561 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
4562 and REFERENCE_TYPE interpretations.
4563 (can_native_interpret_type_p): New function.
4564 (fold_ternary_loc): Use native encode/interpret to fold
4565 BIT_FIELD_REFs of constants.
4567 2012-03-16 Richard Guenther <rguenther@suse.de>
4570 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
4571 of vector constants and constructors.
4573 2012-03-16 Richard Guenther <rguenther@suse.de>
4575 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
4576 VIEW_CONVERT_EXPR to convert constants.
4577 (vect_is_simple_use): Treat all constants as vec_constant_def.
4579 2012-03-16 Richard Guenther <rguenther@suse.de>
4580 Kai Tietz <ktietz@redhat.com>
4583 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
4584 side-effects completely in the pre-queue and use a temporary
4587 2012-03-16 Richard Guenther <rguenther@suse.de>
4589 * stor-layout.c (finish_bitfield_representative): Fall back
4590 to the conservative maximum size if we cannot compute the
4591 size of the tail padding.
4593 2012-03-16 Tristan Gingold <gingold@adacore.com>
4595 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
4596 __CRTL_VER and __VMS_VER.
4597 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
4598 and vms_c_get_vms_ver.
4599 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
4601 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
4602 (VMS_DEFAULT_VMS_VER): Define.
4603 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
4604 (VMS_DEFAULT_VMS_VER): Define.
4606 2012-03-16 Richard Guenther <rguenther@suse.de>
4608 * tree-vect-loop.c (get_initial_def_for_induction): Use
4609 build_constructor directly.
4610 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
4611 build_vector_from_val.
4612 * tree.c (build_vector_from_val): Avoid creating a constructor
4613 first when we want a constant vector.
4615 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4617 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
4619 2012-03-16 Richard Guenther <rguenther@suse.de>
4621 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
4622 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
4623 (struct tree_vector): Remove elements member, add variable size
4625 (build_vector_stat): Declare.
4626 (build_vector): Define in terms of build_vector_stat.
4627 * tree.c (build_vector): Rename to ...
4628 (build_vector_stat): ... this. Take array of trees as parameter.
4629 (build_vector_from_ctor): Adjust.
4630 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
4631 initializer_zerop): Adjust.
4632 * cfgexpand.c (expand_debug_expr): Likewise.
4633 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
4634 const_vector_from_tree): Likewise.
4635 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
4636 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
4637 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
4638 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
4639 (lto_input_ts_vector_tree_pointers): Adjust.
4640 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
4641 (write_ts_vector_tree_pointers): Adjust.
4642 * varasm.c (const_hash_1, compare_constant, copy_constant,
4643 output_constant): Adjust.
4644 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
4645 * print-tree.c (print_node): Adjust.
4646 * tree-pretty-print.c (dump_generic_node): Adjust.
4647 * tree-vect-generic.c (uniform_vector_p, vector_element,
4648 lower_vec_perm): Adjust.
4649 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
4650 * tree-vect-slp.c (vect_get_constant_vectors,
4651 vect_transform_slp_perm_load): Adjust.
4652 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
4653 * expmed.c (make_tree): Adjust.
4654 * config/i386/i386.c (ix86_expand_builtin): Adjust.
4655 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
4657 (sparc_fold_builtin): Adjust.
4659 2012-03-16 Tristan Gingold <gingold@adacore.com>
4661 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
4662 * config/vms/vms-stdint.h: New file.
4664 2012-03-16 Tristan Gingold <gingold@adacore.com>
4666 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
4667 (ia64-hp-*vms*): Replaced by ...
4668 (*-*-*vms*): ... This new entry.
4670 2012-03-15 Jakub Jelinek <jakub@redhat.com>
4673 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
4674 (ix86_expand_vec_perm_const_1): Use it.
4677 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
4678 (avx2_permv4df): Remove.
4679 (avx2_permv4di): Macroize into...
4680 (avx2_perm<mode>): ... this using VI8F_256 iterator.
4681 (avx2_permv4di_1): Macroize into...
4682 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
4684 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4686 * combine.c (apply_distributive_law): Do not distribute SUBREG.
4688 2012-03-15 Ira Rosen <irar@il.ibm.com>
4689 Ulrich Weigand <ulrich.weigand@linaro.org>
4691 * tree-vect-patterns.c (widened_name_p): Rename to ...
4692 (type_conversion_p): ... this. Add new argument to determine
4693 if it's a promotion or demotion operation. Check for
4694 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
4695 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
4697 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
4698 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
4700 (vect_recog_mixed_size_cond_pattern): Likewise and allow
4701 non-constant then and else clauses.
4703 2012-03-15 Ira Rosen <irar@il.ibm.com>
4704 Ulrich Weigand <ulrich.weigand@linaro.org>
4706 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
4707 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
4709 * tree-vect-patterns.c (widened_name_p): Pass basic block
4710 info to vect_is_simple_use.
4711 (vect_recog_dot_prod_pattern): Fail for basic blocks.
4712 (vect_recog_widen_sum_pattern): Likewise.
4713 (vect_handle_widen_op_by_const): Support basic blocks.
4714 (vect_operation_fits_smaller_type,
4715 vect_recog_over_widening_pattern): Likewise.
4716 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
4717 Update call to vect_is_simple_use.
4718 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
4720 (check_bool_pattern): Add an argument, update call to
4721 vect_is_simple_use and the recursive calls.
4722 (vect_recog_bool_pattern): Update relevant function calls.
4724 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
4725 (vect_pattern_recog_1): Check for reduction only in loops.
4726 (vect_pattern_recog): Add new argument. Support basic blocks.
4727 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
4728 info to vect_is_simple_use_1.
4729 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
4730 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
4732 2012-03-15 Jakub Jelinek <jakub@redhat.com>
4733 Andrew Pinski <apinski@cavium.com>
4736 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
4737 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
4738 calls instead of __builtin_ir{int,ound}*.
4740 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4742 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
4745 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4747 * config.gcc (target_type_format_char): New. Document it. Set it for
4749 * configure.ac (gnu_unique_option): Use target_type_format_char
4750 in test. Comment rationale.
4751 * configure: Regenerate .
4753 2012-03-15 Jakub Jelinek <jakub@redhat.com>
4755 PR tree-optimization/52267
4756 * tree-vrp.c (masked_increment): New function.
4757 (register_edge_assert_for_2): Derive ASSERT_EXPRs
4758 from (X & CST1) cmp CST2 tests.
4760 2012-03-15 Richard Guenther <rguenther@suse.de>
4763 * tree-data-ref.c (subscript_dependence_tester_1): Check
4764 all dimensions for non-conflicting access functions.
4766 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4769 * doc/invoke.texi [C++ Language Options]: Document
4770 -ftemplate-backtrace-limit.
4772 2012-03-15 Tristan Gingold <gingold@adacore.com>
4774 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
4777 2012-03-15 Tristan Gingold <gingold@adacore.com>
4779 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
4780 use DW_OP_call_frame_cfa.
4782 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
4785 * config/i386/i386-opts.h (pmode): New.
4787 * config/i386/i386.c (ix86_option_override_internal): Properly
4788 check and set ix86_pmode.
4790 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
4792 * config/i386/i386.opt (maddress-mode=): New.
4794 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
4796 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4798 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
4799 (dwarf2out_do_cfi_asm): Likewise.
4800 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
4802 (add_data_member_location_attribute): Likewise.
4803 (gen_array_type_die): Likewise.
4804 (gen_subprogram_die): Likewise.
4805 (gen_producer_string): Likewise.
4806 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
4807 Remove MIPS_DEBUGGING_INFO handling.
4808 (sdb_debug_hooks): Likewise.
4809 (sdbout_begin_block): Likewise.
4810 (sdbout_end_block): Likewise.
4811 (sdbout_begin_prologue): Likewise.
4812 (sdbout_start_source_file): Likewise.
4813 (sdbout_end_source_file): Likewise.
4814 (sdbout_init): Likewise.
4815 * system.h (MIPS_DEBUGGING_INFO): Poison.
4817 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4819 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
4820 (alpha_file_start) [MS_STAMP]: Remove.
4822 * config/alpha/elf.h (TARGET_GAS): Remove.
4823 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
4824 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
4825 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
4826 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
4827 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
4828 (alpha*-*-freebsd*): Likewise.
4829 (alpha*-*-netbsd*): Likewise.
4830 (alpha*-*-openbsd*): Likewise.
4831 (alpha*-*-*): Remove target_cpu_default2.
4832 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
4834 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
4835 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
4836 * config/alpha/alpha.c (print_operand): Always assume
4837 TARGET_AS_SLASH_BEFORE_SUFFIX.
4838 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
4839 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
4840 ("*builtin_setjmp_receiver_er_1"): Remove.
4841 * config/alpha/alpha.opt (malpha-as): Remove.
4843 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
4845 Remove DEC Unix reference.
4847 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
4848 (EXTENDED_COFF): Remove.
4849 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
4850 (EXTENDED_COFF): Don't undef.
4851 * config/alpha/alpha.c (alpha_file_start): Always assume
4853 Don't set targetm.asm_file_start_file_directive.
4854 [!OBJECT_FORMAT_ELF]: Remove.
4855 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
4857 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
4858 (DBX_DEBUGGING_INFO): Remove.
4859 (MIPS_DEBUGGING_INFO): Remove.
4860 (PREFERRED_DEBUGGING_TYPE): Remove.
4861 (DBX_OUTPUT_SOURCE_LINE): Remove.
4862 (SDB_OUTPUT_SOURCE_LINE): Remove.
4863 (DBX_CONTIN_LENGTH): Remove.
4864 (NO_DBX_FUNCTION_END): Remove.
4865 (ASM_STABS_OP): Remove.
4866 (ASM_STABN_OP): Remove.
4867 (ASM_STABD_OP): Remove.
4868 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
4869 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
4870 (PUT_SDB_DEF): Remove.
4871 (PUT_SDB_PLAIN_DEF): Remove.
4872 (PUT_SDB_TYPE): Remove.
4873 (sdb_label_count): Remove.
4874 (PUT_SDB_BLOCK_START): Remove.
4875 (PUT_SDB_BLOCK_END): Remove.
4876 (PUT_SDB_FUNCTION_START): Remove.
4877 (PUT_SDB_FUNCTION_END): Remove.
4878 (PUT_SDB_EPILOGUE_END): Remove.
4879 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
4880 (MIPS_DEBUGGING_INFO): Don't undef.
4881 (DBX_DEBUGGING_INFO): Don't undef.
4882 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
4883 (MIPS_DEBUGGING_INFO): Don't undef.
4884 (DBX_DEBUGGING_INFO): Don't undef.
4885 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
4886 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
4888 (alpha_start_function): Likewise.
4889 (sdb_label_count): Remove.
4890 (alpha_output_filename): Remove DBX_DEBUG handling.
4891 (alpha_file_start): Likewise.
4893 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4895 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
4896 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
4897 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
4899 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
4900 (ld_tls_support): Remove Solaris 8 references.
4901 (lwp_dir, lwp_spec): Remove support for alternate thread library.
4902 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
4903 * configure: Regenerate.
4904 * config.in: Regenerate.
4906 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
4907 * config/i386/sol2.h: Remove Solaris 8 references.
4909 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
4910 (i?86-*-solaris2.9): ... this.
4911 Remove Solaris 8 references.
4912 (Specific, *-*-solaris2*): Document Solaris 8 removal.
4913 Remove Solaris 8 references.
4915 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4917 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
4918 (mips-sgi-irix6.5*): Remove.
4919 * config.host (mips-sgi-irix*): Remove.
4920 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
4921 (set_have_as_tls): Remove *-*-irix6*.
4922 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
4923 * configure: Regenerate.
4925 * config/mips/iris6.h: Remove.
4926 * config/mips/iris6.opt: Remove.
4927 * config/mips/t-irix6: Remove.
4929 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
4930 (TARGET_IRIX6): Remove.
4931 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
4932 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
4933 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
4935 (mips_file_start): Likewise.
4936 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
4938 * config/mips/driver-native.c [__sgi__]: Remove.
4939 (host_detect_local_cpu) [__sgi__]: Remove.
4941 * config/mips/gnu-user.h: Remove iris5.h reference.
4943 * config/mips/mips-modes.def: Remove IRIX 6 reference.
4944 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
4945 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
4948 * gcc.c (main): Move asm_debug initialization ...
4949 (asm_debug): ... here.
4951 * ginclude/stddef.h (__STDDEF_H__): Don't define.
4953 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
4954 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
4955 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
4956 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
4957 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
4958 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
4960 * doc/tm.texi: Regenerate.
4962 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
4964 (MIPS Options, -march): Remove IRIX reference.
4965 * doc/install.texi (Binaries, SGI IRIX): Remove.
4966 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
4968 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
4970 2012-03-14 Martin Jambor <mjambor@suse.cz>
4972 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
4973 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
4974 (expand_expr_real_1): Do not handle misalignment if modifier is
4977 2012-03-14 Richard Guenther <rguenther@suse.de>
4980 * tree-vect-generic.c (type_for_widest_vector_mode): Take
4981 element type instead of mode, use build_vector_type_for_mode
4982 instead of the langhook, build a vector of proper signedness.
4983 (expand_vector_operations_1): Adjust.
4985 2012-03-14 Richard Guenther <rguenther@suse.de>
4988 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
4989 a cgraph node for a FUNCTION_DECL that comes from a constructor.
4990 (gimple_get_virt_method_for_binfo): Likewise.
4992 2012-03-14 Richard Guenther <rguenther@suse.de>
4994 PR tree-optimization/52571
4995 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4996 flag_section_anchors check ...
4997 (vect_can_force_dr_alignment_p): ... here. Do not re-align
4998 DECL_COMMON variables.
5000 2012-03-14 Richard Guenther <rguenther@suse.de>
5002 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
5003 * stor-layout.c (start_bitfield_representative): New function.
5004 (finish_bitfield_representative): Likewise.
5005 (finish_bitfield_layout): Likewise.
5006 (finish_record_layout): Call finish_bitfield_layout.
5007 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
5008 for QUAL_UNION_TYPE fields.
5009 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
5010 Stream DECL_BIT_FIELD_REPRESENTATIVE.
5011 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
5016 * expr.c (get_bit_range): Unconditionally extract bitrange
5017 from DECL_BIT_FIELD_REPRESENTATIVE.
5018 (expand_assignment): Adjust call to get_bit_range.
5020 2012-03-14 Richard Guenther <rguenther@suse.de>
5023 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
5024 the outermost conversion is a sign-change only.
5025 (fold_binary_loc): Disregard widening and sign-changing
5026 conversions when we determine if two variables are equal
5028 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
5029 (T1)x if the outermost conversion is a sign-change only.
5031 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
5034 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
5036 * config/i386/predicates.md (constant_call_address_operand): Declare
5037 as special predicate. Update all uses.
5039 2012-03-13 Jakub Jelinek <jakub@redhat.com>
5042 * c-parser.c (c_parser_postfix_expression)
5043 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
5045 * config/i386/smmintrin.h: Avoid /* within a comment.
5046 * config/i386/nmmintrin.h: Likewise.
5048 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5050 * config/i386/i386.md (xbegin): Remove constraint from expander.
5052 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5054 * config/i386/predicates.md (constant_call_address_operand): Declare
5055 as special predicate. Update all uses.
5056 * config/i386/i386.md: Remove mode from constant_call_address_operand
5058 * config/i386/i386.c (ix86_output_call_insn): Call
5059 constant_call_address_operand with VOIDmode.
5061 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5063 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
5064 AND zero extended address correctly.
5066 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5068 * config/i386/predicates.md (tls_symbolic_operand): Declare as
5070 (tls_modbase_operand): Ditto.
5071 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
5072 tls_modbase_operand predicates.
5074 2012-03-13 Martin Jambor <mjambor@suse.cz>
5076 * expr.c (expand_assignment): Handle misaligned scalar writes to
5077 memory through top-level MEM_REFs by calling store_bit_field.
5079 2012-03-13 Richard Guenther <rguenther@suse.de>
5082 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
5083 if Y is a constant multiple of 1 << CST.
5085 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
5088 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
5089 offset (size) to a value the insns can deal with.
5090 (expand_epilogue): Ditto.
5092 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5094 * config/arm/neon.ml (ops): Fixup expected instructions for
5095 unsigned vector compares.
5097 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5099 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
5100 addresses only when %reg is not in word mode.
5102 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5104 * config/microblaze/microblaze.md: Fix typo.
5105 * tree-if-conv.c: Likewise.
5106 * tree-vect-patterns.c: Likewise.
5108 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5110 * config.gcc (extra_passes): Remove.
5111 * configure.ac (extra_passes): Don't substitute.
5112 * configure: Regenerate.
5113 * Makefile.in (EXTRA_PASSES): Remove.
5114 (GCC_PASSES): Remove $(EXTRA_PASSES).
5115 (MOSTLYCLEANFILES): Likewise.
5117 (install-common): Likewise.
5119 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5121 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
5122 * config/i386/i386.c (ix86_decompose_address): Use
5123 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
5124 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
5125 thread pointer to a register.
5127 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
5129 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
5130 on tls_symbolic_operand.
5131 (tls_global_dynamic_64_<mode>): Likewise.
5133 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
5136 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
5137 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
5139 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
5142 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
5143 type from reg_class_t to enum reg_class.
5144 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
5146 2012-03-12 Andrew Pinski <apinski@cavium.com>
5148 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
5149 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
5150 (value_replacement): Likewise.
5151 (empty_block_p): Check also if the PHIs for the block are empty.
5153 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
5156 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
5157 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
5158 r184615 from 2012-02-28.
5160 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
5162 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
5163 (ix86_gen_tls_local_dynamic_base_64): Likewise.
5164 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
5165 and ix86_gen_tls_local_dynamic_base_64.
5166 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
5167 ix86_gen_tls_local_dynamic_base_64.
5169 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
5170 (*tls_global_dynamic_64_<mode>): This.
5171 (tls_global_dynamic_64): Renamed to ...
5172 (tls_global_dynamic_64_<mode>): This.
5173 (*tls_local_dynamic_base_64): Renamed to ...
5174 (*tls_local_dynamic_base_64_<mode>): This.
5175 (tls_local_dynamic_base_64): Renamed to ...
5176 (tls_local_dynamic_base_64_<mode>): This.
5178 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
5180 * config/i386/i386.c (ix86_option_override_internal): Properly
5181 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
5182 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
5183 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
5184 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
5186 * config/i386/sse.md (sse3_monitor64): Renamed to ...
5187 (sse3_monitor64_<mode>): This.
5189 2012-03-12 Tristan Gingold <gingold@adacore.com>
5191 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
5192 (ia64_function_arg_advance): Ditto.
5194 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5196 * config.gcc (mips*-*-openbsd*): Remove.
5197 * config/mips/openbsd.h: Remove.
5198 * config/mips/sdb.h: Remove.
5200 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
5201 * config/mips/mips.c (sdb_label_count): Remove.
5202 (mips_debugger_offset): Remove #if 0 code.
5203 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
5204 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
5206 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5208 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
5210 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
5211 Update binutils references.
5212 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
5213 Update binutils reference.
5214 Update Sun as/GNU ld caveat.
5215 Document binutils largefile requirement for LTO plugin.
5216 Remove reference to alternate libpthread.
5218 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5220 * config.gcc (alpha*-dec-osf5.1*): Remove.
5221 * config.host (alpha*-dec-osf*): Remove.
5222 * configure.ac (*-*-osf*): Remove.
5223 (alpha*-dec-osf*): Remove.
5224 * configure: Regenerate.
5226 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
5227 config/alpha/va_list.h, config/alpha/x-osf: Remove.
5229 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
5230 * config/alpha/alpha.c (struct machine_function): Update comment.
5231 (alpha_start_function): Remove Tru64 UNIX as handling for
5233 * config/alpha/alpha.md ("exception_receiver"): Remove
5234 TARGET_LD_BUGGY_LDGP.
5235 ("*exception_receiver_2"): Likewise.
5236 * except.c (finish_eh_generation): Remove Tru64 reference.
5237 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
5238 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
5239 * target.def (handle_pragma_extern_prefix): Remove.
5241 * Makefile.in (mips-tfile.o-warn): Remove.
5242 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
5243 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
5244 * mips-tdump.c, mips-tfile.c: Remove.
5246 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
5248 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
5249 (Specific, alpha*-dec-osf5.1): Note removal.
5250 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
5252 * doc/tm.texi: Regenerate.
5253 * doc/trouble.texi (Cross-Compiler Problems): Remove.
5255 2012-03-12 Richard Guenther <rguenther@suse.de>
5257 * config/arm/arm.c (neon_dereference_pointer): Do not call
5258 covert during RTL expansion.
5260 2012-03-12 Tristan Gingold <gingold@adacore.com>
5262 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
5263 Options. Mention -mpointer-size.
5265 2012-03-12 Richard Guenther <rguenther@suse.de>
5267 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
5268 build_nonstandard_integer_type.
5270 2012-03-12 Richard Guenther <rguenther@suse.de>
5272 * tree.c (signed_or_unsigned_type_for): Use
5273 build_nonstandard_integer_type.
5274 (signed_type_for): Adjust documentation.
5275 (unsigned_type_for): Likewise.
5276 * tree-pretty-print.c (dump_generic_node): Use standard names
5277 for non-standard integer types if available.
5279 2012-03-12 Tristan Gingold <gingold@adacore.com>
5281 * config/vms/vms.opt: Add vms-opts.h header.
5282 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
5284 (-mvms-return-codes): Document.
5285 (-mpointer-size): New option.
5286 (vms_pointer_size): Add enumeration.
5287 * config/vms/vms-opts.h: New file.
5288 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
5289 __INITIAL_POINTER_SIZE.
5290 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
5291 (C_COMMON_OVERRIDE_OPTIONS): Define.
5292 (DWARF2_ADDR_SIZE): Define.
5293 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
5294 * config/vms/vms-protos.h (vms_c_common_override_options):
5296 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
5297 if -mno-pointer-size.
5298 (vms_c_common_override_options): New function.
5299 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
5300 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
5301 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
5302 and flag_vms_pointer_size.
5303 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
5304 * config.gcc (*-*-*vms*): Define xm_file.
5305 (alpha*-dec-*vms*): Do not define xm_file.
5306 (alpha64-dec-*vms*): Remove.
5307 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
5310 2012-03-12 Jakub Jelinek <jakub@redhat.com>
5312 PR tree-optimization/51721
5313 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
5314 if (int) unsvar cmp CST.
5316 2012-03-12 Richard Guenther <rguenther@suse.de>
5318 * tree-sra.c (create_access_replacement): Only rename the replacement
5319 if we can rewrite it into SSA form. Properly mark register typed
5320 replacements that we cannot rewrite with TREE_ADDRESSABLE.
5321 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
5322 for aggregate or BLKmode results.
5324 2012-03-12 Jakub Jelinek <jakub@redhat.com>
5326 PR tree-optimization/52533
5327 * tree-vrp.c (register_edge_assert_for_2): Use double_int
5328 type for mask, only handle shifts by non-zero in-range
5329 shift count, for LE_EXPR and GT_EXPR if new_val is
5330 maximum, don't add the assertion.
5332 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
5334 * doc/invoke.texi: Document -mrtm option.
5335 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
5336 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
5337 (ix86_handle_option): Handle OPT_mrtm.
5338 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
5340 (x86_64-*-*): Ditto.
5341 * i386-builtin-types.def (INT_FTYPE_VOID): New.
5342 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5344 (ix86_target_string): Define -mrtm option.
5346 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
5348 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
5349 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
5351 (bdesc_special_args): Ditto.
5352 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
5353 (ix86_expand_special_args_builtin): Handle new built-in type.
5354 (ix86_expand_builtin): Handle XABORT instruction.
5355 * config/i386/i386.h (TARGET_RTM): New.
5356 * config/i386/i386.md (UNSPECV_XBEGIN): New.
5357 (UNSPECV_XEND): Ditto.
5358 (UNSPECV_XABORT): Ditto.
5359 (UNSPECV_XTEST): Ditto.
5366 * config/i386/i386.opt (mrtm): New.
5367 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
5368 * config/i386/rtmintrin.h: New header.
5369 * config/i386/xtestintrin.h: Ditto.
5371 2012-03-12 Tristan Gingold <gingold@adacore.com>
5373 * ginclude/stddef.h: Adjust previous patch.
5374 Use __VMS__ instead of VMS.
5376 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
5378 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
5379 Also convert sequences with CC setting arithmetic instruction.
5381 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
5383 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
5384 from C Language Options to Preprocessor Options.
5385 (C Dialect Options): Move -no-integrated-cpp documentation
5387 (Preprocessor Options): ...to here. Rewrite the description
5388 so it makes more sense, and remove discussion of merging front ends.
5390 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
5392 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
5394 (ix86_expand_setmem): Likewise.
5396 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
5398 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
5401 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
5403 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
5404 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
5406 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
5408 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
5410 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
5412 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
5415 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
5416 Uros Bizjak <ubizjak@gmail.com>
5418 * config/i386/predicates.md (call_insn_operand): Allow
5419 constant_call_address_operand in Pmode only.
5420 (sibcall_insn_operand): Ditto.
5421 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
5422 (*call_vzeroupper): Ditto.
5424 (*sibcall_vzeroupper): Ditto.
5425 (*call_value): Ditto.
5426 (*call_value_vzeroupper): Ditto.
5427 (*sibcall_value): Ditto.
5428 (*sibcall_value_vzeroupper): Ditto.
5429 (*indirect_jump): Ditto.
5430 (*tablejump_1): Ditto.
5431 (indirect_jump): Convert memory address to word mode for TARGET_X32.
5433 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
5436 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
5439 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
5440 Use movrt_negc instead of negc pattern for non-SH2A.
5442 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
5444 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
5446 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
5447 if Pmode != word_mode.
5448 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
5449 Pmode == SImode for TARGET_X32.
5451 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
5452 (tls_initial_exec_x32): Likewise.
5454 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
5456 PR rtl-optimization/52528
5457 * combine.c (can_combine_p): Add setting of subst_low_luid
5458 before call to expand_field_assignment().
5460 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
5462 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
5463 and related program names.
5465 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
5467 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
5469 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
5472 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
5473 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
5475 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
5476 (*movdi_internal_rex64): Use %E operand modifier for lea.
5477 (*movsi_internal): Ditto.
5479 (*lea<mode>_2): Ditto.
5480 (*lea_{3,4,5,6}_zext): Ditto.
5481 (*tls_global_dynamic_32_gnu): Ditto.
5482 (*tls_global_dynamic_64): Ditto.
5483 (*tls_dynamic_gnu2_lea_32): Ditto.
5484 (*tls_dynamic_gnu2_lea_64): Ditto.
5485 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
5487 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5489 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
5490 redefine to be NULL if the current bit-size is different from the
5491 configured bit-size.
5493 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
5494 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
5495 set the default tuning. Add asserts to make sure the cpu and tune
5496 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
5497 test whether the index is set, instead of > 0.
5498 (rs6000_file_start): Do not reset the default cpu if the current
5499 bit-size is different from the configured bit-size.
5501 2012-03-09 Tristan Gingold <gingold@adacore.com>
5503 * config/vms/vms-crtlmap.map: Add comments.
5504 Add entries needed to build Ada RTS.
5506 2012-03-09 Tristan Gingold <gingold@adacore.com>
5508 * ginclude/stddef.h: Do not define __size_t on VMS.
5510 2012-03-09 Tristan Gingold <gingold@adacore.com>
5512 * c-tree.h (c_default_pointer_mode): New variable.
5513 * c-decl.c (c_default_pointer_mode): New variable.
5514 (c_build_pointer_type): New function.
5515 (grokdeclarator): Call c_build_pointer_type instead
5516 of build_pointer_type.
5518 * config/vms/vms-c.c: Include c-tree.h
5519 (saved_pointer_mode): New variable.
5520 (handle_pragma_pointer_size): New function.
5521 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
5522 (vms_c_register_pragma): Register __pointer_size and
5523 __required_pointer_size pragmas.
5525 2012-03-09 Tristan Gingold <gingold@adacore.com>
5527 * config/vms/vms-c.c (vms_construct_include_filename): New function.
5528 (vms_c_register_includes): Reference it.
5530 2012-03-09 Andrew Pinski <apinski@cavium.com>
5533 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
5535 (tree_ssa_phiopt_worker): Go through all the PHIs for
5536 value_replacement instead of just the singleton one.
5537 (value_replacement): Change return type to int. Return 0 instead of
5539 Allow the middle basic block to contain more than just the defining
5541 Handle non empty middle basic blocks.
5542 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
5544 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
5546 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
5547 array reference and component reference.
5548 (analyze_scalar_evolution_for_address_of): New.
5550 2012-03-08 Jie Zhang <jzhang918@gmail.com>
5553 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
5554 (hwloop_pattern_reg): Fix set but not used warning.
5555 (bfin_reorg_loops): Remove unused parameter.
5556 (bfin_reorg): Update use of bfin_reorg_loops.
5558 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
5560 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
5561 with integer parameters in registers.
5562 (gen_push): Push register in word_mode instead of Pmode.
5563 (ix86_emit_save_regs): Likewise.
5564 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
5565 (gen_pop): Pop register in word_mode instead of Pmode.
5566 (ix86_emit_restore_regs_using_pop): Likewise.
5567 (ix86_expand_prologue): Replace Pmode with word_mode for push
5568 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
5569 restore RAX and R10 in word_mode.
5570 (ix86_emit_restore_regs_using_mov): Restore integer registers
5572 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
5574 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
5575 (ix86_split_long_move): Likewise.
5577 * config/i386/i386.md (W): New.
5578 (*push<mode>2_prologue): Replace :P with :W.
5579 (*pop<mode>1): Likewise.
5580 (*pop<mode>1_epilogue): Likewise.
5581 (push/pop peephole2): Use word_mode scratch registers.
5583 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
5585 * config/i386/predicates.md (indirect_branch_operand): Simplify.
5587 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
5589 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
5590 for constants in [-63,63].
5592 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
5596 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
5598 * config/i386/i386.c (ix86_print_operand_address): Only handle
5599 zero-extended DImode addresses.
5601 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5603 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
5604 * configure: Regenerate.
5606 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
5609 * config/avr/avr.c (avr_mem_clobber): New static function.
5610 (avr_expand_delay_cycles): Add memory clobber operand to
5611 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
5612 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
5613 (enable_interrupt, disable_interrupt): New expander.
5614 (nopv, sleep, wdr): New expanders.
5615 (delay_cycles_1): Add memory clobber.
5616 (delay_cycles_2): Add memory clobber.
5617 (delay_cycles_3): Add memory clobber.
5618 (delay_cycles_4): Add memory clobber.
5619 (cli_sei): New insn from former "enable_interrupt",
5620 "disable_interrupt" with memory clobber.
5621 (*wdt): New insn from former "wdt" with memory clobber.
5622 (*nopv): Similar, but for "nopv".
5623 (*sleep): Similar, but for "sleep".
5625 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
5626 Kaz Kojima <kkojima@gcc.gnu.org>
5629 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
5630 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
5631 (SUBTARGET_OVERRIDE_OPTIONS): Define.
5633 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
5635 * config/i386/predicates.md (x86_64_zext_general_operand): New.
5636 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
5637 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
5639 2012-03-07 Walter Lee <walt@tilera.com>
5641 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
5642 REG_CFA_* notes for the stack pointer.
5643 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
5644 EH_RETURN_STACKADJ_RTX.
5645 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
5646 generate REG_CFA_* notes for the stack pointer.
5647 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
5648 by EH_RETURN_STACKADJ_RTX.
5650 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
5652 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
5653 when __AVR_3_BYTE_PC__ is defined.
5655 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
5657 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
5658 (ix86_print_operand): Handle '^'.
5659 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
5660 using P mode iterator. Add %^ to asm template to conditionally emit
5662 (*rep_movdi_rex64): Ditto.
5663 (*strsetdi_rex_1): Ditto.
5664 (*rep_stosdi_rex64): Ditto.
5665 (*strmov{si,hi,qi}_1): Add %^ to asm template to
5666 conditionally emit addr32 prefix.
5667 (*rep_mov{si,qi}): Ditto.
5668 (*strset{si,hi,qi}): Ditto.
5669 (*rep_stos{si,qi}): Ditto.
5670 (*cmpstrnqi_nz_1): Ditto.
5671 (*cmpstrnqi_1): Ditto.
5672 (*strlenqi_1): Ditto.
5674 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
5676 * config/i386/i386.c (function_value_64): Return pointers in
5677 word_mode instead of Pmode.
5678 (ix86_promote_function_mode): Likewise.
5680 2012-03-07 Richard Guenther <rguenther@suse.de>
5682 * coverage.c (get_gcov_type): Use type_for_mode.
5683 (get_gcov_unsigned_t): Likewise.
5684 * expr.c (store_constructor): Use type_for_mode.
5685 (try_casesi): Likewise.
5686 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
5687 (add_standard_iv_candidates): Use standard type trees.
5688 * dojump.c (do_jump): Remove dead code.
5690 2012-03-07 Richard Guenther <rguenther@suse.de>
5692 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
5694 2012-03-07 Richard Guenther <rguenther@suse.de>
5696 * convert.c (strip_float_extensions): Move ...
5697 * tree.c (strip_float_extensions): ... here.
5699 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
5702 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
5704 2012-03-07 Richard Guenther <rguenther@suse.de>
5706 * omp-low.c (extract_omp_for_data): Use signed_type_for.
5707 (expand_omp_for_generic): Likewise.
5708 (expand_omp_for_static_nochunk): Likewise.
5709 (expand_omp_for_static_chunk): Likewise.
5710 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
5711 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
5712 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
5713 Use unsigned_type_for.
5714 (vect_create_cond_for_align_checks): Use signed_type_for.
5716 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
5718 PR rtl-optimization/52203
5719 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
5720 all callers to pass NULL except ...
5721 (reset_sched_cycles_in_current_ebb): ... here, save the value
5722 in new variable 'empty'. Increase issue_rate only for
5725 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
5728 * Makefile.in: Let install-gcc-ar depend on installdirs,
5729 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
5730 Don't double canonicalize if cross-compiling.
5732 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
5735 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
5736 to: RAMPZ, RAMPY, RAMPX, RAMPD.
5737 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
5739 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
5742 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
5744 * config/avr/avr.md (xload_8): Adjust insn length.
5746 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
5749 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
5750 if RAMPZ affects reading from RAM.
5752 2012-03-07 Richard Guenther <rguenther@suse.de>
5756 * doc/invoke.texi (Precompiled Headers): Remove sentence that
5757 suggests you can include PCHs from inside another header.
5759 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
5762 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
5764 2012-03-07 Kai Tietz <ktietz@redhat.com>
5766 * doc/invoke.texi (fwritable-relocated-rdata): Document
5767 new Cygwin/MinGW target option.
5768 * config/i386/winnt.c (i386_pe_unique_section): Ignore
5769 reloc if flag -fwritable-relocated-rdata is not set.
5770 (i386_pe_section_type_flags): Likewise.
5771 * config/i386/cygming.opt (fwritable-relocated-rdata):
5772 Add new flag variable flag_writable_rel_rdata.
5774 2012-03-07 Richard Guenther <rguenther@suse.de>
5776 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
5777 precision against gimple constraints.
5779 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
5782 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
5784 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
5785 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
5787 (init_emit_regs): Move associated initialization to...
5788 (init_emit_once): ...here.
5790 2012-03-06 Richard Henderson <rth@redhat.com>
5792 * config/m68k/m68k.h (ISA_HAS_TAS): New.
5793 * config/m68k/sync.md (atomic_test_and_set): Use it.
5794 (atomic_test_and_set_1): Likewise.
5796 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5799 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
5800 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
5801 (vector_ltgt<mode>): Likewise.
5802 (vector_ordered<mode>): Likewise.
5803 (vector_unordered<mode>): Likewise.
5804 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
5806 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
5808 * trans-mem.c: New typedef for tm_region_p.
5809 Define vector types for tm_region_p.
5810 (tm_region_init): Replace region_worklist to a vector called
5813 2012-03-06 Richard Guenther <rguenther@suse.de>
5815 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
5816 MEM_REF with constant pointer operand.
5818 2012-03-06 Richard Guenther <rguenther@suse.de>
5821 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
5823 2012-03-06 Tristan Gingold <gingold@adacore.com>
5825 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
5826 (external_model_kind): Improve documentation.
5827 (vms_pragma_extern_model): Handle relaxed_redef.
5828 (vms_c_register_pragma): Allow expansion for nomember_alignment.
5830 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
5832 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
5833 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
5834 Some more notes on EIND usage and reorder EIND subsection.
5836 2012-03-06 Tristan Gingold <gingold@adacore.com>
5838 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
5839 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
5841 2012-03-06 Tristan Gingold <gingold@adacore.com>
5843 * config/vms/t-vmsnative (version): Define.
5844 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
5846 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
5848 PR rtl-optimization/52250
5849 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
5850 to put note list into. Unconditionally call move_bb_info.
5851 (move_bb_info): Do not assert the blocks being in the same region,
5852 just drop the note list if they are not.
5854 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
5857 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
5858 and use unified expansion logic.
5859 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
5860 closer to the existing movt insn.
5861 (negc): Rename insn to *negc. Add new expander.
5862 (movnegt): Use xor pattern for T bit negation. Reserve helper
5863 constant for negc pattern.
5864 (*movnegt): New insn and splitter.
5866 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
5868 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
5871 2012-03-05 Richard Henderson <rth@redhat.com>
5873 * genemit.c (main): Include "target.h" in insn-emit.c.
5874 * Makefile.in (insn-emit.o): Depend on TARGET_H.
5875 * config/sh/sync.md (atomic_test_and_set): Reference
5876 targetm.atomic_test_and_set_trueval instead of
5877 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
5879 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
5881 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
5884 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
5886 * langhooks.c (add_builtin_type): New function.
5887 * langhooks.h (add_builtin_type): Export it.
5888 * config/mep/mep.c (mep_init_builtins): Use it.
5889 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
5891 2012-03-05 Jakub Jelinek <jakub@redhat.com>
5894 * tree.h (BLOCK_SAME_RANGE): Define.
5895 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
5896 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
5897 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
5898 isn't equal to supercontext fragment's fragment chain.
5899 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
5901 (blocks_nreverse_all): Likewise.
5902 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
5903 BLOCK_SUPERCONTEXT to supercontext fragment instead of
5904 supercontext fragment's fragment origin.
5905 * dwarf2out.c (add_high_low_attributes): If stmt has the same
5906 range as its parent (or parents thereof etc.), use the parent's
5907 DW_AT_ranges value instead of creating a new .debug_ranges range.
5909 2012-03-05 Richard Henderson <rth@redhat.com>
5912 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
5913 * omp-low.c (expand_omp_atomic): Assume anything aligned to
5914 BIGGEST_ALIGNMENT is aligned.
5916 2012-03-05 Richard Henderson <rth@redhat.com>
5918 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
5919 * config/sh/sh.c: ... here.
5921 2012-03-05 Richard Henderson <rth@redhat.com>
5924 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
5925 instead of calling negqi2 directly.
5927 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
5930 * trans-mem.c (tm_region_init): Use last_basic_block.
5932 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
5934 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
5935 * config/sh/sync.md (atomic_test_and_set): New expander.
5936 (tasb, atomic_test_and_set_soft): New insns.
5937 * config/sh/sh.opt (menable-tas): New option.
5938 * doc/invoke.texi (SH Options): Document it.
5940 2012-03-05 Richard Guenther <rguenther@suse.de>
5942 * cfgloop.c (verify_loop_structure): Verify dominators before
5944 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
5945 dominators from here.
5946 * graphite-scop-detection.c (create_sese_edges): Likewise.
5947 * loop-doloop.c (doloop_optimize_loops): Likewise.
5948 * loop-init.c (loop_optimizer_init): Likewise.
5949 * loop-unroll.c (unroll_and_peel_loops): Likewise.
5950 * loop-unswitch.c (unswitch_loops): Likewise.
5951 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
5952 * tree-parloops.c (parallelize_loops): Likewise. Verify
5953 only when checking is enabled.
5954 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
5956 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
5958 * genautomata.c (parse_automata_opt): New static function.
5959 (initiate_automaton_gen): Remove all option handling code. Remove
5960 argc argument. All callers changed.
5961 (main): Call init_rtx_reader_args_cb with the new function as argument.
5963 2012-03-05 Richard Guenther <rguenther@suse.de>
5965 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
5966 * tree-if-conv.c (combine_blocks): Free post-dominator info
5968 * tree-parloops.c (create_parallel_loop): Free and re-compute
5969 dominator info after breaking it.
5971 2012-03-05 Richard Guenther <rguenther@suse.de>
5974 * optabs.h (trapv_unoptab_p): New function.
5975 (trapv_binoptab_p): Likewise.
5976 * optabs.c (expand_binop): Use emit_libcall_block_1 with
5977 a proper equiv_may_trap argument.
5978 (expand_unop): Likewise.
5979 (emit_libcall_block_1): Take extra argument whether the
5980 instruction may trap. Renamed from ...
5981 (emit_libcall_block): ... this. New wrapper.
5983 2012-03-05 Jakub Jelinek <jakub@redhat.com>
5985 PR tree-optimization/51721
5986 * tree-vrp.c (register_edge_assert_for_2): If comparing
5987 lhs of right shift by constant with an integer constant,
5988 add ASSERT_EXPRs for the rhs1 of the right shift.
5990 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
5992 2012-03-05 Richard Guenther <rguenther@suse.de>
5994 * tree.c (integer_zerop): Handle VECTOR_CSTs.
5995 (integer_onep): Likewise.
5996 (integer_all_onesp): Likewise.
5998 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
6000 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
6002 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
6004 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
6005 instead of TARGET_64BIT.
6007 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
6009 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
6012 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
6014 * config/i386/i386.c (ix86_print_operand_address): Only handle
6015 zero-extended DImode addresses.
6017 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
6019 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
6020 taken and cputaken as bool.
6022 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
6024 * config/i386/constraints.md (Ya): New internal constraint.
6025 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
6026 (*zero_extendsidi2_rex64): Add x,x alternative.
6027 (*zero_extendsidi2): Ditto. Add o,0 alternative.
6028 Remove flags reg clobber. Adjust corresponding splits.
6029 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
6030 zero_extendqisi2 expanders using SWI12 mode iterator.
6031 (zero_extend<mode>si2_and): Macroize insn from
6032 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
6034 (*zero_extend<mode>si2): Macroize insn from
6035 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
6036 (*zero_extend*2_movzbl_and): Remove insn patterns.
6037 (zero_extendqihi2_and): Merge corresponding splitter.
6038 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
6039 (*zero_extend*2_movzbl_and): Remove insn patterns.
6040 (*anddi_1): Split TYPE_IMOVX instructions.
6041 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
6043 (and->zext splitter): Add splitter pattern.
6044 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
6046 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
6048 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
6050 (Debugging Options): Likewise.
6051 (Optimize Options): Likewise.
6052 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
6053 with other architectures. Use official processor names with correct
6054 spelling/capitalization. Fix formatting and grammar issues.
6055 (i386 and x86-64 Windows Options): Similar cleanup here.
6057 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
6059 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
6061 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
6063 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
6064 DBX_REGISTER_NUMBER.
6066 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
6068 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
6069 operand is CONST_INT. Take COSTS_N_INSNS into account.
6070 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
6073 2012-03-02 Richard Henderson <rth@redhat.com>
6075 * optabs.c (expand_atomic_test_and_set): Honor
6076 atomic_test_and_set_trueval even when atomic_test_and_set
6077 optab is not in use.
6079 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
6083 * config/sh/sh.c (sh_register_move_cost): Increase cost between
6084 GENERAL_REGS and FP_REGS for SImode.
6086 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
6089 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
6090 (absdi2): New expander.
6091 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
6093 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
6095 * config/sh/sync.md (atomic_exchange<mode>): New expander.
6096 (atomic_exchange<mode>_soft): New insn.
6098 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
6100 * config/sh/sync.md: Update copyright notice dates.
6101 (atomic_compare_and_swap<mode>): Use SImode for return value instead
6103 (atomic_compare_and_swap<mode>_soft): Likewise.
6105 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
6108 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
6109 * config/sh/sh.c: Update copyright notice dates.
6110 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
6111 alignment for TARGET_HARD_SH4.
6112 (sh_option_override): Reduce default function alignment. Set
6113 loop alignment to 4 bytes when not optimizing for size.
6115 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
6118 * doc/invoke.texi (floop-flatten): Remove.
6119 * toplev.c (process_options): Remove references to flag_loop_flatten.
6120 * tree-ssa-loop.c (gate_graphite_transform): Same.
6121 * common.opt (floop-flatten): Obsolete.
6122 * graphite-poly.c (apply_poly_transforms): Remove reference to
6124 * Makefile.in (graphite-flattening.o): Remove.
6125 * graphite-flattening.c: Remove.
6127 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
6129 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
6130 having mode compatible with the mode of previous compare. Substitute
6131 compare mode of previous compare with the mode, compatible
6132 with eliminated and previous compare.
6134 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
6136 * config/rs6000/dfp.md (floatdidd2): New define_insn.
6138 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
6140 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
6141 compatible with CCGOCmode and CCGCmode.
6143 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
6145 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
6147 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6149 * config/arm/arm.c (arm_sat_operator_match): New function.
6150 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
6151 * config/arm/arm.md ("insn" attribute): Add "sat" value.
6152 ("SAT", "SATrev"): New code iterators.
6153 ("SATlo", "SAThi"): New code iterator attributes.
6154 ("*satsi_<SAT:code>"): New pattern.
6155 ("*satsi_<SAT:code>_shift"): Likewise.
6156 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
6157 and "shift" attributes.
6158 ("arm_usatsihi"): Add "insn" attribute.
6159 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
6160 by powers of two. Do not allow shift by 32.
6162 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
6165 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
6166 to pass the argument in the register of "natural" mode.
6168 2012-03-02 Richard Guenther <rguenther@suse.de>
6170 PR tree-optimization/52406
6171 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
6172 (struct indices): Add unconstrained_base member.
6173 (struct dr_alias): Remove unused vops member.
6174 (DR_UNCONSTRAINED_BASE): New define.
6175 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
6176 add indices to allow their disambiguation. Make DR_BASE_OBJECT
6177 be an artificial access that covers the whole indexed object,
6178 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
6179 plain decl base-objects to their MEM_REF variant.
6180 (dr_may_alias_p): When the base-object of either data reference
6181 has unknown size use only points-to information.
6182 (compute_affine_dependence): Make dumps easier to read and
6184 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
6185 DR_REF when looking for packed references.
6186 (vect_supportable_dr_alignment): Likewise.
6188 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
6190 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
6191 Improve conditions for peepholes of loads followed by commutative
6193 * config/arm/ldmstm.md: Regenerated.
6195 2012-03-02 Richard Guenther <rguenther@suse.de>
6197 * BASE-VER: Set to 4.8.0.
6199 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
6201 * config.gcc (obsolete): Add all ARM targets using the FPA.
6202 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
6203 * doc/install.texi: Avoid references to obsolete ARM ports.
6205 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
6207 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
6209 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
6210 Joern Rennecke <joern.rennecke@embecosm.com>
6212 * doc/extend.texi: Expand and update information on interrupt
6213 attribute for Epiphany.
6215 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
6217 * config/sh/sh-protos.h: Update copyright notice dates.
6218 * config/sh/sh.h: Likewise.
6219 * config/sh/sh.md: Likewise.
6220 * config/sh/constraints.md: Likewise.
6221 * config/sh/predicates.md: Likewise.
6223 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
6225 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
6226 * config/sh/sh.c (tertiary_reload_operand): Likewise.
6228 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
6230 * config/sh/constraints.md: Fix comment typo.
6232 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6235 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
6236 unsigned HOST_WIDE_INT.
6237 (zvdep_imm64): Likewise.
6238 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
6239 (vdepi_and): Likewise.
6240 Likewise for unamed 64-bit patterns.
6241 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
6243 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
6246 PR rtl-optimization/52417
6247 * cselib.c (cselib_any_perm_equivs): New variable.
6248 (cselib_reset_table): Check that it's not set when not
6249 preserving constants.
6250 (cselib_add_permanent_equiv): Set it.
6251 (cselib_have_permanent_equivalences): New.
6252 (cselib_init, cselib_finish): Reset it.
6253 * cselib.h (cselib_have_permanent_equivalences): Declare.
6254 * alias.c (get_addr): Restore earlier behavior when there
6255 aren't permanent equivalences.
6257 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
6259 * config/mn10300/mn10300-modes.def: Fix copyright notice.
6260 * config/v850/v850-modes.def: Fix copyright notice.
6262 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
6264 * doc/extend.texi (AVR Built-in Functions): Document
6265 __builtin_avr_flash_segment.
6267 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
6268 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
6269 (*split.flash_segment): New insn-and-split.
6270 * config/avr/avr.c (avr_init_builtins): Add local variables:
6271 const_memx_void_node, const_memx_ptr_type_node,
6272 char_ftype_const_memx_ptr.
6274 2012-03-01 Jakub Jelinek <jakub@redhat.com>
6276 PR tree-optimization/52445
6277 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
6278 add ssa_name_ver, offset and size fields and change store field
6280 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
6281 (add_or_mark_expr): Likewise. Only consider previous stores
6282 with the same size and offset.
6283 (nt_init_block): Only look at gimple_assign_single_p stmts,
6284 doesn't look at rhs2.
6286 2012-03-01 Richard Guenther <rguenther@suse.de>
6289 * tree-cfg.c (verify_gimple_assign_unary): Allow any
6290 conversions from integral types to pointer types.
6292 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
6294 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
6295 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
6296 unintentionally removed in r184616.
6298 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6300 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
6303 2012-02-29 Jakub Jelinek <jakub@redhat.com>
6304 Uros Bizjak <ubizjak@gmail.com>
6307 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
6308 alternatives, add "e" constraint to the new last alternative
6309 and ! to last 3 alternatives.
6311 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
6313 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
6314 DW_AT_artificial attributes at the end of the processing.
6315 (gen_array_type_die): Likewise.
6316 (gen_enumeration_type_die): Likewise.
6317 (gen_struct_or_union_type_die): Likewise.
6318 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
6321 2012-02-29 Jakub Jelinek <jakub@redhat.com>
6324 * expr.c (expand_assignment): If doing misaligned store that doesn't
6325 cover all mode bits, perform a RMW cycle.
6327 PR tree-optimization/52429
6328 * tree-parloops.c (separate_decls_in_region_debug): Return early
6329 if var is LABEL_DECL.
6331 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6333 PR tree-optimization/52424
6334 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
6335 calling dom_thread_across_edge.
6337 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
6339 * config/avr/avr.c: Move definition of TARGET macros to end of file.
6341 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
6343 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
6344 * config/avr/avr.c (avr_output_bld): Remove unused function.
6345 (avr_out_sbxx_branch): Use "%T" to print bit position.
6347 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
6349 * config/avr/avr.md: Untabify.
6351 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
6353 * config/avr/avr.md (eqne): New code iterator.
6354 (*dec-and-branchsi): Use it in text peephole's condition.
6355 (*dec-and-branchhi): Ditto.
6356 (*dec-and-branchqi): Ditto.
6358 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
6361 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
6362 the device does not have the skip-bug.
6364 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
6366 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
6367 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
6368 -mpretend-cmove): New.
6370 2012-02-29 Jakub Jelinek <jakub@redhat.com>
6373 * df.h (struct df_d): Adjust comment that hard_regs_live_count
6374 doesn't count DEBUG_INSN refs.
6375 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
6376 for DEBUG_INSN refs.
6378 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6382 2012-02-20 Richard Guenther <rguenther@suse.de>
6383 PR tree-optimization/52298
6384 * tree-vect-stmts.c (vectorizable_load): Properly use
6385 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
6387 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
6390 * gimple.h (gimple_in_transaction): New.
6391 (gimple_set_in_transaction): New.
6392 (struct gimple_statement_base): Add in_transaction field.
6393 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
6395 (tree_ssa_lim_initialize): Compute transaction bits.
6396 * tree.h (compute_transaction_bits): Protoize.
6397 * trans-mem.c (tm_region_init): Use the heap to store BB
6399 (compute_transaction_bits): New.
6401 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6403 * gcc.c (display_help): Document --help=common and sort entries
6406 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6408 * doc/install.texi: Document check-$LANG specific shortcuts
6410 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6413 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
6415 * config/arm/arm_neon.h: Regenerate.
6416 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
6417 (neon_vcgeu): New insn.
6418 (neon_vcgtu): Likewise.
6419 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
6420 (ops): Unsigned comparison intrinsics call a different builtin.
6422 2012-02-28 Richard Guenther <rguenther@suse.de>
6425 * config/i386/i386.c (ix86_expand_vector_set): Fix element
6426 ordering for the VEC_CONCAT for two element vectors for
6427 V2SFmode, V2SImode and V2DImode.
6429 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
6432 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
6433 detecting big-endian triplets.
6435 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
6437 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
6438 mode if there is no type information available.
6440 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
6442 PR tree-optimization/53207
6443 * doc/invoke.texi: Document as experimental and relying on graphite.
6445 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
6447 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
6448 of initializer to changes from r184614.
6450 2012-02-28 Richard Guenther <rguenther@suse.de>
6452 PR tree-optimization/52395
6453 * tree-sra.c (build_ref_for_offset): Also look at the base
6454 TYPE_ALIGN when figuring out the alignment of the replacement.
6456 2012-02-28 Richard Guenther <rguenther@suse.de>
6458 PR tree-optimization/52402
6459 * ipa-prop.c (ipa_modify_call_arguments): Properly use
6460 mis-aligned types when creating the accesses at the call site.
6462 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
6464 * config/avr/builtins.def: New file.
6465 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
6466 * config/avr/avr.c (enum avr_builtin_id): Use it.
6467 (avr_init_builtins): Use it. And use avr_bdesc.
6468 (bdesc_1arg): Remove.
6469 (bdesc_2arg): Remove.
6470 (bdesc_3arg): Remove.
6471 (struct avr_builtin_description): Add field n_args.
6472 (avr_bdesc): New static variable using builtins.def.
6473 (avr_expand_builtin): Use it.
6474 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
6475 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
6476 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
6478 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
6481 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
6482 match only one single hard register with respective hard reg rtx.
6483 (movmemx_<mode>): Ditto.
6484 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
6485 insn anatomy of movmem[x]_<mode>.
6486 (avr_out_movmem): Same for printing assembler and operand usage.
6488 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
6492 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
6493 address spaces located outside of device flash.
6495 * config/avr/avr.h (base_arch_s): Remove field n_segments.
6496 (mcu_type_s): Add field n_flash.
6497 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
6498 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
6499 (AVR_MCU): Add N_FLASH argument.
6500 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
6501 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
6502 macro __FLASH<n> if that address space makes sense for the device.
6503 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
6504 outside of target flash.
6505 (avr_asm_named_section): Ditto.
6506 (avr_asm_select_section): Ditto.
6507 (avr_addr_space_convert): Ditto.
6508 (avr_emit_movmemhi): Ditto.
6509 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
6510 address space is outside of device flash.
6511 (avr_insert_attributes): Ditto.
6512 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
6513 avr_current_arch->n_segments.
6515 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
6518 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
6519 (*movabs<mode>_2): Likewise.
6521 2012-02-27 Jakub Jelinek <jakub@redhat.com>
6524 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
6525 s_register_operand in the test instead of REG_P. Don't call
6526 gen_reg_rtx if it won't be used.
6528 PR tree-optimization/52376
6529 * ipa-split.c (split_function): Ignore CLOBBER stmts.
6531 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
6533 * ifcvt.c (noce_get_condition): Check condition variable is not
6534 small_register_classes_for_mode_p before accepting.
6536 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
6538 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
6540 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6543 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6544 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
6546 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
6548 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
6550 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
6552 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
6554 * config/sh/predicates.md: Remove blank lines.
6555 * config/sh/sh.c: Fix typos in comments.
6556 * config/sh/constraints.md: Likewise.
6557 * config/sh/sh.md: Remove blank lines.
6558 Fix typos in comments. Use ;; as comment characters.
6560 2012-02-26 Walter Lee <walt@tilera.com>
6562 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
6563 (replace_mov_pcrel_step2): Ditto.
6565 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
6568 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
6569 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
6570 and locs that reference values newer than the non-canonical value
6571 at hand. Return the canonical value as a worst case.
6572 (memrefs_conflict_p): Walk canonical value's locs.
6575 * cselib.c (preserve_only_constants): Rename to...
6576 (preserve_constants_and_equivs): ... this. Split out...
6577 (invariant_or_equiv_p): ... this. Preserve plus expressions
6578 of other preserved expressions too.
6579 (cselib_reset_table): Adjust.
6580 * var-tracking.c (reverse_op): Use canonical value to build
6583 2012-02-23 Kai Tietz <ktietz@redhat.com>
6585 * config/i386/i386.c (ix86_delegitimize_address): Handle
6586 UNSPEC_PCREL plus displacement.
6588 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
6591 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
6592 to test for unusedness in st X addressing.
6594 2012-02-24 Richard Guenther <rguenther@suse.de>
6597 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
6598 (is_gimple_reg_type): Move inline ...
6599 * gimple.h (is_gimple_reg_type): ... here.
6601 2012-02-24 Richard Guenther <rguenther@suse.de>
6604 * passes.c (execute_function_todo): When verifying SSA form
6605 verify gimple form first.
6606 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
6608 2012-02-24 Richard Guenther <rguenther@suse.de>
6611 * fold-const.c (fold_addr_of_array_ref_difference): New function.
6612 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
6614 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6616 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
6618 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6620 * tree-phinodes.c (make_phi_node): Mark static.
6621 * tree-flow.h (make_phi_node): Remove extern decl.
6622 * doc/gimple.texi (make_phi_node): Remove documentation.
6624 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6626 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
6627 * tree-ssa-sccvn.c (print_scc): Ditto.
6629 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6631 * doc/passes.texi (Full redundancy elimination): Fix typo.
6633 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6635 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
6637 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
6640 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
6642 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
6645 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
6647 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
6649 * config/avr/avr.md (code_stdname): Add ior, xor.
6650 (xior): New code iterator.
6651 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
6652 (*<code_stdname><mode>qi.byte1-3): Ditto.
6654 2012-02-23 Jakub Jelinek <jakub@redhat.com>
6656 PR tree-optimization/52019
6657 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
6660 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6662 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
6663 HAVE_INITFINI_ARRAY to work around namespace pollution in
6664 certain versions of newlib system headers.
6665 * config.in: Regenerate.
6666 * configure: Regenerate.
6667 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
6668 instead of HAVE_INITFINI_ARRAY.
6670 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
6673 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
6674 is not offsettable memory reference.
6676 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
6679 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
6680 setting avr_need_clear_bss_p for __gnu_lto* symbols.
6682 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
6684 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
6685 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
6687 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6689 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
6690 library on Solaris 8 even without TLS support.
6691 * configure: Regenerate.
6693 2012-02-22 Richard Guenther <rguenther@suse.de>
6696 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
6697 for GIMPLE_DEBUG stmts.
6699 2012-02-22 Martin Jambor <mjambor@suse.cz>
6702 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
6703 according to the base object.
6705 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
6707 PR rtl-optimization/50063
6708 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
6709 and 2 (8-bit SP) in operand 2.
6710 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
6711 setup to use movhi_sp_r instead of vanilla move to write SP.
6712 Adjust REG_CFA notes to superseed unspec.
6713 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
6715 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
6716 known to be off) only with TARGET_NO_INTERRUPTS. Never use
6717 irq_state 1 (IRQ known to be on) here.
6719 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
6721 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
6723 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
6724 assign_hard_reg): Likewise.
6726 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
6728 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
6730 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
6733 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
6734 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
6736 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
6738 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
6739 prototype from here to...
6740 * config/avr/avr.h: ...here.
6742 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
6745 * thumb2.md (thumb2_shiftsi3_short): Split register and
6746 immediate shifts. For register shifts tie operands 0 and 1.
6747 (peephole2 for above): Check that register-controlled shifts
6748 have suitably tied operands.
6750 2012-02-21 Quentin Neill <quentin.neill@amd.com>
6753 * config/i386/bdver1.md (bdver1_call, bdver1_push,
6754 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
6755 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
6756 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
6757 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
6758 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
6759 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
6760 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
6761 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
6762 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
6763 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
6764 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
6765 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
6766 bdver1_ssevector_avx256_unaligned_load,
6767 bdver1_ssevector_sse128_unaligned_load,
6768 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
6769 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
6770 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
6771 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
6772 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
6773 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
6774 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
6775 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
6776 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
6777 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
6778 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
6779 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
6780 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
6781 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
6782 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
6783 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
6784 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
6785 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
6786 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
6787 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
6788 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
6789 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
6790 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
6791 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
6792 bdver1_ssediv_double_load, bdver1_ssediv_double,
6793 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
6794 Add "bdver2" attribute.
6796 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6798 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
6799 default if possible and not specified otherwise.
6801 2012-02-21 Richard Guenther <rguenther@suse.de>
6804 * gimplify.c (create_tmp_from_val): Use the main variant type
6805 for the type of the temporary we create.
6807 2012-02-21 Richard Guenther <rguenther@suse.de>
6809 PR tree-optimization/52324
6810 * gimplify.c (gimplify_expr): When re-gimplifying expressions
6811 do not gimplify a MEM_REF address operand if it is already
6814 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6816 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
6817 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
6819 2012-02-21 Richard Guenther <rguenther@suse.de>
6821 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
6822 nested_in_vect_loop.
6824 2012-02-21 Jakub Jelinek <jakub@redhat.com>
6826 PR tree-optimization/52318
6827 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
6828 vdef also to non-pure/const call stmts in the sequence.
6830 2012-02-21 Tristan Gingold <gingold@adacore.com>
6832 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
6834 2012-02-20 David S. Miller <davem@davemloft.net>
6836 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
6837 don't use the "rd %pc" instruction on v9 for PIC register loads.
6839 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
6842 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
6843 in a transaction safe function.
6845 2012-02-20 Kai Tietz <ktietz@redhat.com>
6848 * stor-layout.c (place_field): Handle desired_align for
6851 2012-02-20 Richard Guenther <rguenther@suse.de>
6853 PR tree-optimization/52298
6854 * tree-vect-stmts.c (vectorizable_store): Properly use
6855 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
6857 (vectorizable_load): Likewise.
6858 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
6859 Access DR_STEP after ensuring it is not NULL.
6861 2012-02-20 Jakub Jelinek <jakub@redhat.com>
6863 PR tree-optimization/52286
6864 * fold-const.c (fold_binary_loc): For (X & C1) | C2
6865 optimization use double_int_to_tree instead of build_int_cst_wide,
6866 rewrite to use double_int vars.
6868 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6871 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
6873 Remove -e 0 from $gcc_cv_ld invocation.
6874 Only use __GLIBC_PREREQ if defined.
6875 Enable on Solaris since Solaris 8 patch.
6876 (gcc_SUN_LD_VERSION): New macro.
6877 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
6878 gcc_SUN_LD_VERSION for version number format.
6879 * configure: Regenerate.
6880 * varasm.c (get_elf_initfini_array_priority_section): Set
6881 SECTION_NOTYPE for non-default priority.
6882 Use get_section instead of get_unnamed_section to emit
6883 .init_array/.fini_array with default priority.
6885 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
6887 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
6888 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
6889 (mips_start_unique_function, mips_output_mips16_rdhwr)
6890 (mips_code_end): New functions.
6891 (TARGET_ASM_CODE_END): Define.
6893 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
6895 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
6896 to stubs with non-sibling calls.
6898 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
6900 * doc/invoke.texi (-fira-* options): Copy-edit.
6901 (ira-* parameters): Copy-edit.
6903 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
6905 * doc/invoke.texi: Minor copy-edits to bring into conformance with
6906 GCC coding conventions.
6908 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
6910 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
6911 when used as adjectives.
6913 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
6915 * doc/invoke.texi: Clean up "that"/"which" confusion.
6917 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
6919 * system.h: Poison SMALL_REGISTER_CLASSES
6920 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
6921 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
6923 2012-02-16 Jakub Jelinek <jakub@redhat.com>
6925 PR tree-optimization/52285
6926 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
6927 when deciding if a call is a tail call or tail recursion.
6929 2012-02-16 Kai Tietz <ktietz@redhat.com>
6931 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
6932 interger-constant displacement for UNSPEC_PCREL.
6934 2012-02-16 Jakub Jelinek <jakub@redhat.com>
6936 PR rtl-optimization/52208
6937 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
6938 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
6940 PR tree-optimization/52255
6941 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
6942 loop->header has virtual PHI, but exit_e->dest doesn't, add
6943 virtual PHI to exit_e->dest and adjust all uses after the loop.
6946 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
6947 children with clone_tree_hash, not after it.
6949 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
6951 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
6952 extended identifiers.
6954 2012-02-16 Jakub Jelinek <jakub@redhat.com>
6957 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
6958 a same_body_alias, also test whether e->callee isn't a former
6959 or current clone of the decl this is a same body alias of.
6961 PR translation/52264
6962 * cgraphunit.c (verify_cgraph_node): Fix a typo.
6964 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
6966 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
6968 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
6971 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
6972 force_reg instead of copy_to_reg for better optimization. Force
6973 non-register or memory operands into a register.
6975 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
6977 * extend.texi: Reserve upper bits of memory model for future use.
6979 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
6980 Anatoly Sokolov <aesok@post.ru>
6981 Eric Weddington <eric.weddington@atmel.com>
6984 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
6985 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
6986 Rewrite initializers for .macro.
6987 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
6988 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
6989 atxmega32d4, atxmega32x1.
6990 avrxmega4: atxmega64a3, atxmega64d3.
6991 avrxmega5: atxmega64a1, atxmega64a1u.
6992 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
6993 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
6994 avrxmega7: atxmega128a1, atxmega128a1u.
6995 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
6996 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
6997 (struct base_arch_s): Rename reserved to xmega_p.
6998 Rename reserved2 to have_rampd.
6999 (AVR_XMEGA): New define.
7000 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
7001 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
7002 * config/avr/predicates.md (io_address_operand): Take into
7004 (low_io_address_operand): Ditto.
7005 (high_io_address_operand): Ditto.
7006 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
7007 (enabled, movhi_sp_r): Use them.
7008 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
7009 cpp_define_formatted to built-in define __AVR_ARCH__.
7010 (__AVR_XMEGA__): New built-in define.
7011 (__AVR_HAVE_RAMPD__): New built-in define.
7012 (__AVR_HAVE_RAMPX__): New built-in define.
7013 (__AVR_HAVE_RAMPY__): New built-in define.
7014 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
7016 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
7017 (avr_option_override): Initialize them.
7018 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
7019 (avr_init_expanders): Initialize them. No more block several calls.
7020 (emit_push_sfr): New static function.
7021 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
7023 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
7024 (avr_print_operand): Print addreeses as symbols for
7025 RAMPX, RAMPY, RAMPD, CCP.
7026 (output_movhi): Handle AVR_XMEGA when writing to SP.
7027 (avr_out_movhi_mr_r_xmega): New static function.
7028 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
7029 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
7030 __RAMPD__, __CCP__ as needed.
7032 * config/avr/multilib.h: Regenerate.
7033 * config/avr/t-multilib: Regenerate.
7034 * config/avr/avr-tables.opt: Regenerate.
7036 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
7038 PR tree-optimization/50561
7039 * graphite-flattening.c (lst_project_loop): Do not
7040 remove old scattering dimensions after flattening.
7041 (lst_do_flatten): Likewise.
7043 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
7045 * doc/extend.texi (AVR Built-in Functions): Remove doc for
7046 __builtin_avr_map8, __builtin_avr_map16.
7047 Document __builtin_avr_insert_bits.
7049 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
7050 (insert_bits): New insn.
7051 (adjust_len.map_bits): Rename to insert_bits.
7052 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
7053 * avr-protos.h (avr_out_map_bits): Remove.
7054 (avr_out_insert_bits, avr_has_nibble_0xf): New.
7055 * config/avr/constraints.md (Cxf,C0f): New.
7056 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
7057 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
7058 New built-in define __BUILTIN_AVR_INSERT_BITS.
7059 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
7060 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
7061 (avr_move_bits): Rewrite.
7062 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
7064 (avr_map_op_t): New typedef.
7065 (avr_map_op): New static variable.
7066 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
7067 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
7068 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
7069 (bdesc_3arg, avr_expand_triop_builtin): New.
7070 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
7071 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
7072 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
7073 (avr_map_equal_p, avr_map_sig_p): Remove.
7074 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
7075 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
7076 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
7077 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
7078 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
7079 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
7081 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
7083 * config/c6x/c6x.md (reserve_cycles): New attribute.
7084 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
7085 don't reserve functional units after the branch occurs.
7087 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
7090 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
7091 functions into non-tm_pure functions.
7093 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
7096 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
7097 (iterative_hash_canonical_type): Likewise.
7098 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
7101 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
7103 * haifa-sched.c (prune_ready_list): Ensure that if there is a
7104 sched-group insn, it either remains alone or the entire list is pruned.
7106 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
7108 * doc/install.texi (Prerequisites): Fix grammar.
7109 (Configuration): Likewise.
7111 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
7113 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
7114 MPC as part of GCC before describing configuring with --with-gmp etc.
7115 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
7116 sources are present.
7118 2012-02-14 Jakub Jelinek <jakub@redhat.com>
7121 * dwarf2out.c (clone_tree_hash): New function.
7122 (copy_decls_walk): Use it instead of clone_tree.
7124 2012-02-14 Richard Guenther <rguenther@suse.de>
7126 PR tree-optimization/52244
7127 PR tree-optimization/51528
7128 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
7129 replacements for integral types.
7131 2012-02-14 Walter Lee <walt@tilera.com>
7133 * config.gcc: Handle tilegx and tilepro.
7134 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
7136 Add HAVE_AS_TLS check for tilegx and tilepro.
7137 * configure: Regenerate.
7138 * doc/contrib.texi: Add Mat Hostetter and self.
7139 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
7140 Document instruction intrinsics and network accessing intrinsics.
7141 (TILEPro Built-in Functions): New node. Document instruction
7142 intrinsics and network accessing intrinsics.
7143 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
7144 (Specific, tilepro-*-linux*): Likewise.
7145 * doc/invoke.texi (TILE-Gx Options): New section.
7146 (TILEPro Options): New section.
7147 * doc/md.texi (TILE-Gx): New section.
7148 (TILEPro): New section.
7149 * common/config/tilegx/tilegx-common.c: New file.
7150 * common/config/tilepro/tilepro-common.c: New file.
7151 * config/tilegx/constraints.md: New file.
7152 * config/tilegx/linux.h: New file.
7153 * config/tilegx/mul-tables.c: New file.
7154 * config/tilegx/predicates.md: New file.
7155 * config/tilegx/sync.md: New file.
7156 * config/tilegx/t-tilegx: New file.
7157 * config/tilegx/tilegx-builtins.h: New file.
7158 * config/tilegx/tilegx-c.c: New file.
7159 * config/tilegx/tilegx-generic.md: New file.
7160 * config/tilegx/tilegx-modes.def: New file.
7161 * config/tilegx/tilegx-multiply.h: New file.
7162 * config/tilegx/tilegx-protos.h: New file.
7163 * config/tilegx/tilegx.c: New file.
7164 * config/tilegx/tilegx.h: New file.
7165 * config/tilegx/tilegx.md: New file.
7166 * config/tilegx/tilegx.opt: New file.
7167 * config/tilepro/constraints.md: New file.
7168 * config/tilepro/gen-mul-tables.cc: New file.
7169 * config/tilepro/linux.h: New file.
7170 * config/tilepro/mul-tables.c: New file.
7171 * config/tilepro/predicates.md: New file.
7172 * config/tilepro/t-tilepro: New file.
7173 * config/tilepro/tilepro-builtins.h: New file.
7174 * config/tilepro/tilepro-c.c: New file.
7175 * config/tilepro/tilepro-generic.md: New file.
7176 * config/tilepro/tilepro-modes.def: New file.
7177 * config/tilepro/tilepro-multiply.h: New file.
7178 * config/tilepro/tilepro-protos.h: New file.
7179 * config/tilepro/tilepro.c: New file.
7180 * config/tilepro/tilepro.h: New file.
7181 * config/tilepro/tilepro.md: New file.
7182 * config/tilepro/tilepro.opt: New file.
7184 2012-02-14 Jakub Jelinek <jakub@redhat.com>
7186 PR tree-optimization/52210
7187 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
7188 vect_model_simple_cost with two entry vect_def_type array instead
7189 of an address of dt.
7191 2012-02-14 Richard Guenther <rguenther@suse.de>
7194 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
7195 Do not stream DECL_QUALIFIER.
7196 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
7197 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
7198 (find_decls_types_r): Do not walk DECL_QUALIFIER.
7200 2012-02-14 Jakub Jelinek <jakub@redhat.com>
7203 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
7206 2012-02-13 Jakub Jelinek <jakub@redhat.com>
7209 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
7210 * cselib.c (cselib_subst_to_values_from_insn): New function.
7211 * sched-deps.c (add_insn_mem_dependence,
7212 sched_analyze_1, sched_analyze_2): Use it.
7214 2012-02-13 Jan Hubicka <jh@suse.cz>
7217 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
7219 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
7221 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
7222 (GTM_SELF_SPECS): Define if not already defined.
7223 (driver_self_specs): Add GTM_SELF_SPECS.
7224 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
7225 (GTM_SELF_SPECS): Define.
7226 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
7227 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
7229 2012-02-13 Jakub Jelinek <jakub@redhat.com>
7231 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
7234 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
7237 * omp-low.c (expand_omp_for): If a static schedule without chunk size
7238 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
7240 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
7243 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
7245 2012-02-13 Richard Guenther <rguenther@suse.de>
7247 PR translation/52211
7248 * passes.c (enable_disable_pass): Fix typo.
7250 2012-02-13 Jakub Jelinek <jakub@redhat.com>
7253 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
7254 XOR for reduce_bit_field if type is unsigned.
7256 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
7258 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
7259 disallow changes from SFmode to mode with different size in FP regs.
7261 2012-02-12 Robert Millan <rmh@gnu.org>
7262 Gerald Pfeifer <gerald@pfeifer.com>
7264 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
7267 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
7269 PR rtl-optimization/52175
7270 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
7271 to frame-related instructions.
7273 2012-02-10 Jason Merrill <jason@redhat.com>
7276 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
7277 (demangle_new_symbols): Fill it.
7278 (scan_linker_output): Walk it.
7279 (start_tweaking): Split out from scan_linker_output.
7280 (maybe_tweak): Update sym->chosen.
7281 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
7283 2012-02-11 Jakub Jelinek <jakub@redhat.com>
7286 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
7288 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
7290 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
7291 having the same mode as previous compare.
7293 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
7295 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
7296 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
7297 (nonlocal_goto_internal): Likewise.
7298 (nonlocal_goto): Emit a use and an indirect jump directly.
7300 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
7303 * doc/extend.texi : Update comments for __atomic_compare_exchange and
7304 __atomic_{is,always}_lock_free.
7306 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
7309 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
7310 negative constant address for TARGET_X32.
7312 2012-02-10 Richard Henderson <rth@redhat.com>
7314 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
7315 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
7316 for GIMPLE_TRANSACTION. Tidy if's into a switch.
7318 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7319 Ira Rosen <irar@il.ibm.com>
7321 PR tree-optimization/50031
7322 * targhooks.c (default_builtin_vectorization_cost): Handle
7324 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
7325 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
7326 all types of reduction and pattern statements.
7327 (vect_estimate_min_profitable_iters): Likewise.
7328 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
7329 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
7330 for explicit realigns.
7331 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
7332 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
7334 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
7335 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
7336 vec_perm for VSX and handle vec_promote_demote.
7338 2012-02-10 Jakub Jelinek <jakub@redhat.com>
7341 * builtins.c (fold_builtin_atomic_always_lock_free,
7342 expand_builtin_atomic_always_lock_free,
7343 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
7344 Return and/or test boolean_true_node/boolean_false_node instead of
7345 integer_one_node/integer_zero_node.
7347 2012-02-10 Jan Hubicka <jh@suse.cz>
7350 * predict.c (predict_paths_for_bb): Prevent looping.
7351 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
7353 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
7355 * config/arm/arm.c (output_move_double): In one case properly
7356 count number of instructions that will be emitted.
7358 2012-02-10 Richard Guenther <rguenther@suse.de>
7360 PR translation/52193
7361 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
7363 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
7366 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
7368 2012-02-09 Jakub Jelinek <jakub@redhat.com>
7371 * var-tracking.c (emit_note_insn_var_location): If
7372 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
7373 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
7374 non-NOTE_DURING_CALL_P insn.
7376 2012-02-09 Bin Cheng <bin.cheng@arm.com>
7379 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
7381 2012-02-08 Magnus Granberg <zorry@gentoo.org>
7384 * gcc.c (switch_matches) Support switches with separated form,
7387 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
7389 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
7391 (RAMPZ_ADDR): Ditto.
7392 * config/avr/avr.c (avr_addr_t): New typedef.
7393 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
7394 (avr_init_expanders): Initialize it.
7395 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
7397 (expand_epilogue): Ditto.
7398 (avr_print_operand): Ditto.
7399 (avr_file_start): Ditto.
7400 (avr_emit_movmemhi): Ditto.
7402 2012-02-08 Richard Guenther <rguenther@suse.de>
7404 PR tree-optimization/46886
7405 * tree-flow.h (do_while_loop_p): Declare.
7406 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
7407 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
7409 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
7411 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
7412 always succeed for integers larger than a native word.
7414 2012-02-08 Richard Guenther <rguenther@suse.de>
7416 PR rtl-optimization/52170
7417 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
7418 properly handle integer vector modes.
7420 2012-02-08 Jakub Jelinek <jakub@redhat.com>
7422 PR gcov-profile/52150
7423 * coverage.c: Include target.h.
7424 (build_var): Call targetm.strip_name_encoding on the assembler name.
7425 Change one _ into . or $ if the target allows it.
7426 * Makefile.in (coverage.o): Depend on $(TARGET_H).
7428 PR rtl-optimization/52139
7429 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
7430 is a BARRIER after emit_insn_after_noloc, move BB_END
7431 to the last non-BARRIER insn before it.
7433 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
7436 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
7437 (mips_gimplify_va_arg_expr): Call it instead of
7438 std_gimplify_va_arg_expr.
7440 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
7442 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
7443 message for -mno-pointers-to-nested-function.
7445 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
7448 * expr.c (get_inner_reference): If there is an offset, add a negative
7449 bit position to it (if any).
7451 2012-02-07 Jakub Jelinek <jakub@redhat.com>
7453 PR rtl-optimization/52060
7454 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
7455 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
7456 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
7457 and/or i0src_copy2 when needed.
7459 2012-02-07 Jakub Jelinek <jakub@redhat.com>
7461 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
7462 or LTOPLUGINSONAME if have_c.
7464 * config/freebsd-spec.h: Add comment about what macros can be defined
7466 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
7467 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
7470 2012-02-07 Richard Guenther <rguenther@suse.de>
7472 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
7473 newline in -alias dumps.
7475 2012-02-07 Kai Tietz <ktietz@redhat.com>
7476 Dave Korn <dave.korn.cygwin@gmail.com>
7479 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
7480 Take care that typinfo gets dllexport-attribute.
7482 2012-02-07 Jakub Jelinek <jakub@redhat.com>
7485 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
7486 if modifier < EXPAND_SUM call force_operand on the result.
7488 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
7490 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
7491 adding __forwarder_dst__ prefix if a forwarder_section attribute is
7493 (epiphany_function_type): Replace types for specific interrupts with
7494 EPIPHANY_FUNCTION_INTERRUPT.
7495 (EPIPHANY_INTERRUPT_P): Update.
7496 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
7497 New static function.
7498 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
7499 <disinterrupt>: Affects type identity.
7500 (epiphany_handle_interrupt_attribute): Handle variable number of
7502 (epiphany_compute_function_type): Update for new
7503 epiphany_function_type definition.
7504 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
7505 handlers with a longcall forwarder.
7506 (epiphany_start_function): Handle multiple interrupt arguments and/or
7507 forwarder_section attribute.
7509 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
7512 2012-02-07 Alan Modra <amodra@gmail.com>
7515 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
7518 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7520 PR tree-optimization/50969
7521 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
7522 use vec_perm rather than vector_stmt.
7523 (vect_model_load_cost): Likewise.
7524 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
7525 vec_perm to be the same as other vector statements.
7526 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
7527 cost of vec_perm for TARGET_VSX.
7529 2012-02-06 Richard Guenther <rguenther@suse.de>
7531 PR tree-optimization/52115
7532 * tree-sra.c (access_has_replacements_p): New function.
7533 (sra_modify_assign): Use it to decide whether a use is uninitialized.
7535 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
7538 * trans-mem.c (expand_call_tm): Add an assertion.
7539 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
7542 2012-02-06 Richard Guenther <rguenther@suse.de>
7544 PR tree-optimization/50955
7545 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
7546 raise cost of expressions that replace an address with an
7547 expression based on a different pointer.
7549 2012-02-06 Jakub Jelinek <jakub@redhat.com>
7552 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
7553 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
7555 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7558 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
7559 -Weffc++ and specify guidelines come from second edition.
7561 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
7563 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
7564 (sibcall_value_multiple_internal, call_split, call_internal_direct)
7565 (call_direct_split, call_value_split, call_value_internal_direct)
7566 (call_value_direct_split, call_value_multiple_split): Use jal and
7567 jal_macro attributes.
7569 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
7571 * reload1.c (reload_regs_reach_end_p): Replace with...
7572 (reload_reg_rtx_reaches_end_p): ...this function.
7573 (new_spill_reg_store): Update commentary.
7574 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
7575 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
7576 before setting new_spill_reg_store.
7577 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
7578 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
7579 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
7580 for non-spill reload registers.
7582 2012-02-05 Ira Rosen <irar@il.ibm.com>
7584 PR tree-optimization/52091
7585 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
7586 (vect_is_simple_use_1): Likewise.
7587 * tree-vect-loop.c (vectorizable_reduction): Update calls
7588 to vect_is_simple_use_1 and vect_is_simple_use.
7589 (vectorizable_live_operation): Likewise.
7590 * tree-vect-patterns.c (widened_name_p,
7591 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
7592 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
7593 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
7594 vectorizable_shift,vectorizable_operation, vectorizable_store,
7595 vectorizable_load): Likewise.
7596 (vect_is_simple_cond): Add an argument, pass it to
7597 vect_is_simple_use_1.
7598 (vectorizable_condition): Update calls to vect_is_simple_cond,
7600 (vect_is_simple_use): Add an argument, the statement in which
7601 OPERAND is used. Check that if OPERAND's def stmt is a double
7602 reduction phi node, the use is a phi node too.
7603 (vect_is_simple_use_1): Add an argument, pass it to
7605 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
7606 to vect_is_simple_use.
7608 2012-02-04 Jakub Jelinek <jakub@redhat.com>
7610 PR rtl-optimization/52095
7611 * modulo-sched.c (dump_insn_locator): New function.
7612 (loop_canon_p, sms_schedule): Use it.
7614 PR rtl-optimization/52113
7615 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
7616 even for decomposable shift/zext insns.
7618 2012-02-03 Jakub Jelinek <jakub@redhat.com>
7619 Zdenek Dvorak <ook@ucw.cz>
7621 PR rtl-optimization/52092
7622 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
7623 on get_iv_value result.
7625 2012-02-02 Andrew Pinski <apinski@cavium.com>
7629 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
7631 2012-02-02 Jakub Jelinek <jakub@redhat.com>
7634 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
7636 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
7638 PR rtl-optimization/49800
7639 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
7640 (sched_finish): Call regstat_free_n_sets_and_refs.
7642 2012-02-02 Jia Liu <proljc@gmail.com>
7644 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
7647 2012-02-02 Jan Hubicka <jh@suse.cz>
7648 Tom de Vries <tom@codesourcery.com>
7651 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
7652 * varpool.c (varpool_analyze_pending_decls): Likewise.
7654 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
7655 Jayant R Sonar <jayant.sonar@kpitcummins.com>
7657 * config.gcc: Add cr16-* support.
7659 * doc/extend.texi: Document cr16 extensions.
7660 * doc/install.texi: Document cr16 install.
7661 * doc/invoke.texi: Document cr16 options.
7662 * doc/md.texi: Document cr16 constraints.
7664 * common/config/cr16/cr16-common.c: New file.
7665 * config/cr16/cr16.c: New file.
7666 * config/cr16/cr16.h: New file.
7667 * config/cr16/cr16.md: New file.
7668 * config/cr16/cr16.opt: New file.
7669 * config/cr16/cr16-protos.h: New file.
7670 * config/cr16/predicates.md: New file.
7671 * config/cr16/constraints.md: New file.
7672 * config/cr16/t-cr16: New file.
7674 2012-02-02 Jakub Jelinek <jakub@redhat.com>
7677 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
7678 that operands[2] is either immediate, or q_regs_operand.
7680 PR tree-optimization/52073
7681 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
7682 a pattern stmt for pattern uses, ignore uses outside of the loop.
7684 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
7686 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
7687 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
7688 (OUT_AS1, OUT_AS2): Remove.
7690 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
7692 PR rtl-optimization/51374
7693 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
7694 to cross other volatile_refs_p insns.
7696 2012-02-01 Richard Guenther <rguenther@suse.de>
7698 * doc/invoke.texi (fno-inline): Clarify documentation.
7699 (finline-small-functions): Likewise.
7700 (finline-functions): Likewise.
7701 * common.opt (finline): Adjust comment and documentation.
7702 (finline-small-functions): Clarify documentation.
7703 (finline-functions): Likewise.
7704 (finline-functions-called-once): Likewise.
7706 2012-02-01 Tristan Gingold <gingold@adacore.com>
7708 * c-typeck.c (composite_type): Keep mode for pointers.
7710 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
7712 * function.h (regno_reg_rtx): Adjust comment.
7713 * reginfo.c (init_reg_modes_target): Only use the previous mode
7714 if it fits within one register. Remove MIPS comment.
7716 2012-01-31 Jakub Jelinek <jakub@redhat.com>
7719 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
7721 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7723 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
7724 to srak instruction.
7726 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7728 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
7730 2012-01-31 Jakub Jelinek <jakub@redhat.com>
7735 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
7737 2012-01-31 Richard Guenther <rguenther@suse.de>
7739 PR tree-optimization/51528
7740 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
7743 2012-01-31 Jakub Jelinek <jakub@redhat.com>
7748 * ree.c (add_removable_extension): Change def_map argument
7749 to unsigned *, store in def_map 1 + offset into *insn_list vector
7750 instead of pointers into the vector.
7751 (find_removable_extensions): Adjust caller.
7753 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
7755 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
7756 Transform all "* quoted-c-code" to { c-code }.
7757 Remove redundant test for "optimize" in combine patterns.
7758 Move (include "avr-dimode.md") to end of file.
7760 2012-01-30 Bin Cheng <bin.cheng@arm.com>
7763 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
7764 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
7766 2012-01-30 Richard Guenther <rguenther@suse.de>
7768 PR tree-optimization/52028
7769 * tree-loop-distribution.c (ldist_gen): Properly update
7772 2012-01-30 Jakub Jelinek <jakub@redhat.com>
7775 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
7776 set_cur_line_info_table if not emitting debug info.
7778 PR tree-optimization/52046
7779 * tree-vect-patterns.c (check_bool_pattern): Give up if
7780 a comparison could throw.
7783 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
7785 2012-01-30 Richard Guenther <rguenther@suse.de>
7787 PR tree-optimization/52045
7788 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
7789 SSA form if cfgcleanup did anything.
7791 2012-01-30 Richard Guenther <rguenther@suse.de>
7793 PR tree-optimization/52045
7794 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
7795 before computing final todo.
7797 2012-01-30 Richard Guenther <rguenther@suse.de>
7799 PR tree-optimization/51528
7800 * tree-sra.c (sra_modify_assign): Re-factor in preparation
7803 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
7805 * df-problems.c (df_kill_notes): Check that the use refers
7806 to the note under examination.
7808 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
7811 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
7812 parameter and use short-lived pseudos.
7813 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
7814 (sparc_expand_vector_init): Const-ify local variables and adjust
7815 calls to above functions.
7817 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
7819 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
7821 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
7823 * doc/invoke.texi: Make usage of "compile time" and
7824 "run time"/"runtime" consistent throughout the file.
7826 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
7828 * config/alpha/alpha.c (alpha_option_override): Default to
7829 full IEEE compliance mode for Go language.
7831 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
7833 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
7834 (LINK_SSP_SPEC): Define.
7836 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7839 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
7842 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
7844 * doc/invoke.texi: Correct hyphenation of "floating point",
7845 "double precision", and related terminology throughout the file.
7847 2012-01-28 Jakub Jelinek <jakub@redhat.com>
7850 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
7851 arm_general_register_operand predicate for operand 2 instead of
7854 2012-01-27 Ian Lance Taylor <iant@google.com>
7857 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
7858 * builtins.c (expand_builtin_init_trampoline): Add onstack
7859 parameter. Change caller.
7860 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
7861 * tree.c (build_common_builtin_nodes): Declare
7862 __builtin_init_heap_trampoline.
7864 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
7866 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
7867 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
7868 * config/avr/avr.c: Ditto.
7869 (avr_regnames): Remove because unused.
7870 * config/avr/avr.md (*cpse.ne): New peephole.
7871 (*cpse.eq): New peephole from former cpse peepholes.
7873 2012-01-27 Michael Eager <eager@eagercon.com>
7875 * config/microblaze.c (microblaze_emit_compare): Correct
7876 test after pcmp instruction.
7878 2012-01-27 Richard Guenther <rguenther@suse.de>
7880 PR tree-optimization/52020
7881 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
7883 2012-01-27 Richard Guenther <rguenther@suse.de>
7885 * ipa-pure-const.c (check_stmt): Clobbers do not make a
7886 function non-const/pure.
7888 2012-01-27 Richard Guenther <rguenther@suse.de>
7890 PR tree-optimization/50444
7891 * tree-sra.c (build_ref_for_offset): Properly adjust the
7892 MEM_REF type for unaligned accesses.
7894 2012-01-27 Richard Guenther <rguenther@suse.de>
7896 PR tree-optimization/50444
7897 * expr.c (mem_ref_refers_to_non_mem_p): New function.
7898 (expand_assignment): Use it. Properly handle misaligned
7899 bases when expanding stores to component references.
7900 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
7903 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
7906 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
7907 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
7908 * tree-data-ref.c (find_data_references_in_loop): Make static.
7909 (compute_all_dependences): Change return type to bool. Bail out
7910 for too many datarefs in a loop. Move the hunk resetting the data
7911 dependences vector from ...
7912 (compute_data_dependences_for_loop): ... here. Account for
7913 compute_all_dependences returning false.
7914 (compute_data_dependences_for_bb): Likewise.
7915 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
7916 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
7918 2012-01-27 Richard Guenther <rguenther@suse.de>
7921 * expr.c (store_field): Use the alias-set of the scratch memory
7924 2012-01-27 Tom de Vries <tom@codesourcery.com>
7926 PR tree-optimization/51990
7927 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7929 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
7931 2012-01-27 Jakub Jelinek <jakub@redhat.com>
7934 * var-tracking.c (reverse_op): Don't add any reverse operation
7935 if V already has any constant locations.
7937 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
7939 * doc/invoke.texi: Correct usage of "command line" (noun)
7940 vs "command-line" (adjective) throughout.
7942 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
7944 * doc/invoke.texi (Language Independent Options): Move
7945 -Wcoverage-mismatch blurb from here....
7946 (Warning Options): ...to here.
7948 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
7950 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7951 Set rs6000_always_hint to false for 476.
7953 2012-01-27 Matthias Klose <doko@ubuntu.com>
7955 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
7957 * incpath.c (add_standard_paths): Likewise.
7959 2012-01-27 Richard Henderson <rth@redhat.com>
7961 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
7962 * config/m68k/sync.md (atomic_test_and_set): Rename from
7963 sync_test_and_setqi and adjust the operands.
7964 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
7965 and unconditionally enable.
7967 2012-01-27 Richard Henderson <rth@redhat.com>
7969 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
7970 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
7971 (ldstub): Rename from ldstubqi.
7972 (ldstub<I24MODE>): Remove.
7974 2012-01-27 Richard Henderson <rth@redhat.com>
7976 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
7977 * c-cppbuiltin.c (cpp_atomic_builtins): Define
7978 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
7979 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
7980 * doc/tm.texi: Rebuild.
7982 2012-01-27 Richard Henderson <rth@redhat.com>
7984 * optabs.c (gen_atomic_test_and_set): Remove default.
7985 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
7987 2012-01-26 Jakub Jelinek <jakub@redhat.com>
7989 PR rtl-optimization/51978
7990 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
7991 (combine_reaching_defs): Likewise.
7992 (struct re_info): Remove.
7993 (add_removable_extension): Remove x and data arguments,
7994 add insn, insn_list and def_map. Use the arguments directly
7995 instead of using struct re_info.
7996 (find_removable_extensions): Don't call add_removable_extension
7997 through note_stores, instead just call it with single_set
7999 (find_and_remove_re): Pass curr_cand->expr instead of
8000 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
8002 2012-01-26 Michael Matz <matz@suse.de>
8004 PR tree-optimization/46590
8005 * cfgexpand.c: Revert last change (r183305).
8006 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
8008 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
8009 checking for emptiness.
8011 2012-01-26 Jakub Jelinek <jakub@redhat.com>
8014 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
8015 non-addressable non-BLKmode base correctly.
8017 2012-01-26 Michael Matz <matz@suse.de>
8019 PR tree-optimization/48794
8020 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
8021 regions referenced from RESX/EH_DISPATCH.
8023 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8025 * config/s390/s390.h: Make BRANCH_COST an option.
8026 * config/s390/s390.opt: New option -mbranch-cost.
8028 2012-01-26 Richard Henderson <rth@redhat.com>
8030 Revert 2012-01-24 change:
8031 * trans-mem.c (requires_barrier): Do not instrument thread local
8032 variables and emit save/restore for them.
8034 2012-01-25 Jakub Jelinek <jakub@redhat.com>
8037 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
8040 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
8042 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
8045 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
8048 Rename __pgm to __flash.
8049 Rename __pgm1 to __flash1.
8050 Rename __pgm2 to __flash2.
8051 Rename __pgm3 to __flash3.
8052 Rename __pgm4 to __flash4.
8053 Rename __pgm5 to __flash5.
8054 Rename __pgmx to __memx.
8055 * doc/extend.texi (AVR Named Address Spaces)
8056 Rename address space names as indicated above.
8057 * config/avr/avr.c (avr_addrspace): Ditto.
8059 * config/avr/avr-protos.h
8060 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
8061 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
8062 * config/avr/predicates.md: Ditto.
8063 * config/avr/avr.c Ditto, and
8064 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
8065 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
8067 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
8068 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
8069 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
8070 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
8071 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
8072 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
8073 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
8074 * config/avr/avr.c: Ditto.
8075 * config/avr/avr.md: Ditto.
8077 2012-01-25 Jason Merrill <jason@redhat.com>
8080 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
8082 2012-01-25 Jakub Jelinek <jakub@redhat.com>
8084 PR tree-optimization/51987
8085 * tree-data-ref.c (get_references_in_stmt): Handle references in
8086 non-volatile GIMPLE_ASM.
8088 2012-01-25 Richard Guenther <rguenther@suse.de>
8090 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
8091 bases are dereferenced.
8093 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
8095 PR rtl-optimization/48374
8096 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
8098 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
8100 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
8101 compute_data_dependences_for_loop returns false.
8102 * tree-parloops.c (loop_parallel_p): Likewise.
8104 2012-01-25 Richard Guenther <rguenther@suse.de>
8106 * tree.h (get_pointer_alignment_1): Declare.
8107 * builtins.c (get_pointer_alignment_1): New function.
8108 (get_pointer_alignment): Use it.
8110 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8112 PR rtl-optimization/48308
8113 * combine.c (enum undo_kind): Add UNDO_LINKS.
8114 (struct undo): Add member l to other_contents and where.
8115 (do_SUBST_LINK): New.
8117 (try_combine): Handle LOG_LINKS for the dummy i1 case.
8118 (undo_all): Handle UNDO_LINKS.
8120 2012-01-25 Richard Henderson <rth@redhat.com>
8122 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
8125 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8127 * optabs.c (gen_atomic_test_and_set): Use each argument.
8129 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8131 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
8132 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
8133 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
8134 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
8135 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
8136 TARGET_PAIRED_SINGLE_FLOAT.
8138 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8140 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
8141 (in_struct, return_val): Remove MEM documentation.
8142 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
8143 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
8144 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
8146 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8147 * cfgexpand.c (add_alias_set_conflicts): Likewise.
8148 * expr.c (store_field): Likewise.
8149 * function.c (assign_stack_temp_for_type): Likewise.
8150 * ifcvt.c (noce_try_cmove_arith): Likewise.
8151 * reload1.c (reload): Likewise.
8152 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
8153 (alpha_set_memflags): Likewise.
8154 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
8156 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8158 * rtl.h (true_dependence, canon_true_dependence): Remove varies
8160 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
8161 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
8162 (true_dependence_1, true_dependence, canon_true_dependence): Remove
8164 * cselib.c (cselib_rtx_varies_p): Delete.
8165 (cselib_invalidate_mem): Update call to canon_true_dependence.
8166 * dse.c (record_store, check_mem_read_rtx): Likewise.
8167 (scan_reads_nospill): Likewise.
8168 * cse.c (check_dependence): Likewise.
8169 (cse_rtx_varies_p): Delete.
8170 * expr.c (safe_from_p): Update call to true_dependence.
8171 * ira.c (validate_equiv_mem_from_store): Likewise.
8172 (memref_referenced_p): Likewise.
8173 * postreload-gcse.c (find_mem_conflicts): Likewise.
8174 * sched-deps.c (sched_analyze_2): Likewise.
8175 * store-motion.c (load_kills_store): Likewise.
8176 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
8177 * gcse.c (mems_conflict_for_gcse_p): Likewise.
8178 (compute_transp): Update call to canon_true_dependence.
8180 2012-01-25 Richard Henderson <rth@redhat.com>
8182 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
8183 (maybe_emit_atomic_test_and_set): New.
8184 (expand_sync_lock_test_and_set): Use it.
8185 (expand_atomic_test_and_set): Likewise.
8186 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
8187 the implementation; clarify implementation defined details.
8188 * doc/md.texi (atomic_test_and_set): Document.
8190 2012-01-25 Richard Henderson <rth@redhat.com>
8192 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
8194 2012-01-25 Richard Henderson <rth@redhat.com>
8197 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
8198 to effect no-op split.
8200 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
8203 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
8204 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
8205 (BT_FN_VOID_PTR_INT_SIZE): New.
8206 (BT_FN_UINT_UINT_VAR): Remove.
8207 (BT_FN_UINT32_UINT32_VAR): New.
8208 (BT_FN_DOUBLE_VPTR): Remove.
8209 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
8211 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
8212 (_ITM_changeTransactionMode): Same.
8213 (_ITM_memmoveRtWt): Change return type to void.
8214 (_ITM_memcpyRtWt): Same.
8215 (_ITM_memsetW): Same.
8216 (_ITM_RaRD): Change types to double.
8221 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
8223 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
8224 Patrick Marlier <patrick.marlier@gmail.com>
8226 * trans-mem.c (requires_barrier): Do not instrument thread local
8227 variables and emit save/restore for them.
8229 2012-01-24 Jason Merrill <jason@redhat.com>
8232 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
8233 output static aliases.
8235 2012-01-24 Jakub Jelinek <jakub@redhat.com>
8238 * common.opt (-pie, -shared, pie, shared): Change from Common to
8240 * gcc.c (display_help): Display help for -pie and -shared.
8242 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
8245 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
8246 Remove note on size/offset limitation.
8247 (AVR Variable Attributes): Add example how to read data located
8248 with progmem. Refer to named address spaces.
8249 * doc/invoke.texi (AVR Options): Fix typo.
8251 2012-01-24 Richard Guenther <rguenther@suse.de>
8253 Forward-port to trunk
8254 2010-09-21 Jakub Jelinek <jakub@redhat.com>
8257 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
8258 op0 isn't sufficiently aligned and there is movmisalignM
8259 insn for mode, use it to load op0 into a temporary register.
8261 2012-01-24 Jakub Jelinek <jakub@redhat.com>
8264 * target.def (const_not_ok_for_debug_p): New hook.
8265 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
8267 * doc/tm.texi: Regenerated.
8268 * dwarf2out.c (const_ok_for_output_1): If
8269 targetm.const_not_ok_for_debug_p returns true, fail.
8270 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
8272 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
8274 2012-01-23 Kai Tietz <ktietz@redhat.com>
8277 * config/i386/predicates.md (symbolic_operand): Allow
8278 UNSPEC_PCREL as PIC expression for lea.
8279 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
8280 * config/i386/i386.c (ix86_delegitimize_address): Handle
8281 UNSPEC_PCREL for none-MEM, too.
8283 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
8285 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
8286 (ipa_tm_create_version_alias): Same.
8288 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
8291 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
8292 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
8294 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
8295 Patrick Marlier <patrick.marlier@gmail.com>
8296 Iain Sandoe <developer@sandoe-acoustics.co.uk>
8299 * lto-wrapper.c (run_gcc): Pass the LTO section name to
8300 simple_object_start_read.
8302 2012-01-23 Richard Guenther <rguenther@suse.de>
8305 PR tree-optimization/51895
8306 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
8307 parameter decomposition into BLKmode components.
8309 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
8311 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
8312 fake variables for restrict-qualified pointers whose pointed-to type
8313 contains a placeholder.
8315 2012-01-23 Richard Guenther <rguenther@suse.de>
8317 PR tree-optimization/51949
8318 * ipa-split.c (execute_split_functions): Do not split malloc functions.
8320 2012-01-23 Jakub Jelinek <jakub@redhat.com>
8322 PR rtl-optimization/51933
8323 * ree.c (transform_ifelse): Return true right away if dstreg is
8324 already wider or equal to cand->mode.
8325 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
8326 (make_defs_and_copies_lists): Remove defs_list and copies_list
8327 arguments, add state argument, just truncate state->work_list
8328 instead of always allocating and freeing the vector. Assert that
8329 get_defs succeeds instead of returning 2. Changed return type to bool.
8330 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
8331 have ext_src_mode, see if it has been modified already with the
8332 right kind of extension and has been extended before from the
8333 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
8334 just return true. Remember the original mode in state->modified array.
8335 (combine_reaching_defs): Add state argument. Don't allocate and
8336 free here def_list, copied_list and vec vectors, instead just
8337 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
8338 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
8339 Add state variable, clear vectors in it, initialize state.modified
8340 if needed. Free all the vectors at the end and state.modified too.
8341 Don't skip a candidate if the extension expression has been modified.
8343 2012-01-22 Douglas B Rupp <rupp@gnat.com>
8346 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
8347 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
8348 (extra_options) interix.opt -> i386/interix.opt"
8349 (extra_objs):Add winnt-stubs.o
8350 * configure.ac: Add interix to target_os .comm on PE check.
8351 * configure: Regenerate.
8352 * config/interix3.h: Delete and move bits to..
8353 * config/interix.h: Delete and move bits to..
8354 * config/i386/i386-interix3.h: Delete and move bits to..
8355 * config/i386/i386-interix.h: ..here.
8356 (TARGET_CPU_DEFAULT): Remove redefinition.
8357 (TARGET_ASM_CONSTRUCTOR): Undefine.
8358 (SUBTARGET_SWITCHES): Define for ms-bitfields.
8359 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
8360 (PTRDIFF_TYPE): Define.
8361 (LONG_DOUBLE_TYPE_SIZE): Define.
8362 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
8363 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8364 (TARGET_SECTION_TYPE_FLAGS): Define.
8365 (ASM_DECLARE_FUNCTION_NAME): Define.
8366 (ASM_OUTPUT_EXTERNAL): Define.
8367 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
8368 (ASM_OUTPUT_ALIGNED_BSS): Define.
8369 (PCC_BITFIELD_TYPE_MATTERS): Define.
8370 (USE_CONST_SECTION): Define.
8371 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
8372 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
8373 (SUPPORTS_ONE_ONLY): Remove.
8374 (I386_PE_STRIP_ENCODING): Define.
8375 * config/interix.opt: Delete and move bits to..
8376 * config/i386/interix.opt: ..here. New.
8377 (mpe-aligned-commons): Add.
8378 * config/i386/t-interix: Add copyright header.
8379 (winnt-stubs.o): Add rule.
8381 2012-01-22 Jason Merrill <jason@redhat.com>
8384 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
8385 for extra name aliases.
8387 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
8389 PR rtl-optimization/51924
8390 * ree.c (combine_set_extension): Improve debugging message.
8391 (combine_reaching_defs): Likewise.
8392 (get_defs): Rename confusingly named variable.
8393 (find_and_remove_re): Skip a candidate if the extension expression has
8396 2012-01-21 Robert Millan <rmh@gnu.org>
8397 Gerald Pfeifer <gerald@pfeifer.com>
8399 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
8400 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
8402 2012-01-20 Jakub Jelinek <jakub@redhat.com>
8404 PR tree-optimization/51914
8405 * tree-vect-stmts.c (vectorizable_conversion): For
8406 cvt_type && modifier == WIDEN, put temporary with cvt_type
8407 at the beginning of vec_dsts and set vec_dest to temporary
8410 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
8412 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
8414 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
8416 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
8417 * config/rs6000/rs6000.c: Likewise.
8419 2012-01-20 Jakub Jelinek <jakub@redhat.com>
8422 * config/arm/arm.c (arm_count_output_move_double_insns): Call
8423 output_move_double on a copy of operands array.
8425 2012-01-20 Cary Coutant <ccoutant@google.com>
8426 Dodji Seketeli <dodji@redhat.com>
8429 * dwarf2out.c (copy_declaration_context): Return ref to parent
8430 of declaration DIE, if necessary.
8431 (remove_child_or_replace_with_skeleton): Add new parameter; update
8432 caller. Place skeleton DIE under parent DIE of original declaration.
8433 Move call to copy_declaration_context to here ...
8434 (break_out_comdat_types): ... from here.
8436 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8438 PR rtl-optimization/51856
8439 * reload.c (find_reloads_subreg_address): Set the address_reloaded
8442 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8445 * config/arm/arm.c (arm_print_operand): Correct output of alignment
8446 hints for neon loads and stores.
8448 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
8452 * doc/extend.texi (Named Address Spaces): Split into subsections.
8453 (AVR Named Address Spaces): New subsection.
8454 (M32C Named Address Spaces): New subsection.
8455 (RL78 Named Address Spaces): New subsection.
8456 (SPU Named Address Spaces): New subsection.
8457 (Variable Attributes): New anchor "AVR Variable Attributes".
8458 (AVR Variable Attributes): Rewrite and avoid wording
8459 "address space" in this context.
8460 * doc/invoke.texi (AVR Options): Rewrite and add documentation
8461 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
8462 (AVR Built-in Macros): New subsubsection therein.
8463 * doc/md.texi (AVR constraints): Remove "C04", "R".
8465 2012-01-20 Richard Guenther <rguenther@suse.de>
8467 PR tree-optimization/51903
8468 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
8469 when removing stmts.
8471 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8474 * config/arm/arm.c (arm_load_pic_register): Use
8475 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
8476 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
8477 (arm_pic_static_addr): Likewise.
8478 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
8479 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
8480 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
8481 (pic_load_addr_unified): New.
8483 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
8486 * function.c (instantiate_virtual_regs_in_insn): Use
8487 delete_insn_and_edges when removing a wrong asm insn.
8489 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
8491 PR rtl-optimization/40761
8492 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
8493 Add new member loop_num.
8494 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
8495 (ira_build): Remove the parameter.
8497 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
8498 (ira.c): Do not build CFG loops for one region allocation. Remove
8499 argument from ira_build call.
8501 * ira-build.c (init_loop_tree_node): New function.
8502 (create_loop_tree_nodes): Use it. Separate the case when CFG
8503 loops are not built.
8504 (more_one_region_p): Check current_loops.
8505 (finish_loop_tree_nodes): Separate the case when CFG loops are not
8507 (add_loop_to_tree): Process loop equal to NULL too.
8508 (form_loop_tree): Separate the case when CFG loops are not built.
8509 Use explicitly number for the root.
8510 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
8512 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
8513 instead of loop->num.
8514 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
8515 (mark_all_loops_for_removal): Ditto.
8516 (remove_unnecessary_regions): Separate the case when CFG loops
8518 (ira_build): Remove the parameter. Use explicit number of regions
8519 when CFG loops are not built.
8521 * ira-color.c (print_loop_title): Separate the case for the root node.
8522 Use loop_num instead of loop->num.
8523 (move_spill_restore): Use loop_num instead of loop->num.
8525 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
8526 (change_loop): Ditto.
8527 (change_loop): Use loop_num instead of loop->num.
8529 * ira-lives.c (process_bb_node_lives): Ditto.
8531 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
8533 * ira-conflicts.c (print_allocno_conflicts): Ditto.
8535 2012-01-19 Jakub Jelinek <jakub@redhat.com>
8538 * tree-mudflap.c (mf_artificial): New function.
8539 (execute_mudflap_function_ops, execute_mudflap_function_decls,
8540 mx_register_decls, mudflap_enqueue_decl): Use it.
8543 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
8544 numbers in the insn pattern.
8546 2012-01-19 Michael Matz <matz@suse.de>
8548 PR tree-optimization/46590
8549 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
8550 use it in remembering which conflicts we already created.
8551 (add_scope_conflicts): Adjust call to above, (de)allocate helper
8554 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
8557 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
8558 (merge_and_complain): Same.
8560 2012-01-19 Jakub Jelinek <jakub@redhat.com>
8563 * config/initfini-array.h: Guard content of the header
8564 with #ifdef HAVE_INITFINI_ARRAY.
8565 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
8566 Add initfini-array.h to tm_file here.
8567 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
8568 * config.gcc: Don't add initfini-array.h to tm_file here.
8569 * configure: Regenerated.
8571 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
8573 PR rtl-optimization/51505
8574 * df-problems.c (df_kill_notes): New parameter live. Update comment.
8575 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
8576 (df_note_bb_compute): Update the call to df_kill_notes.
8578 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
8580 * trans-mem.c (requires_barrier): Remove call to is_global_var.
8582 2012-01-18 Richard Guenther <rguenther@suse.de>
8584 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
8585 of conversions to void *.
8587 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8588 Richard Sandiford <rdsandiford@googlemail.com>
8592 * optabs.h (simplify_expand_binop): Declare.
8593 * optabs.c (simplify_expand_binop): Make global.
8594 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
8595 endian targets if the source cannot be exactly covered by word
8598 2012-01-17 Jakub Jelinek <jakub@redhat.com>
8601 * hard-reg-set.h (struct hard_reg_set_container): New type.
8602 * target.h (struct hard_reg_set_container): Forward declare.
8603 * target.def (set_up_by_prologue): New target hook.
8604 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
8605 * doc/tm.texi: Regenerated.
8606 * function.c (thread_prologue_and_epilogue_insns): Change
8607 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
8608 Call targetm.set_up_by_prologue on it.
8609 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
8610 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
8612 2012-01-17 Nick Clifton <nickc@redhat.com>
8614 * config/rx/rx.c (rx_can_use_simple_return): New function.
8615 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
8616 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
8618 2012-01-17 Richard Guenther <rguenther@suse.de>
8621 * expr.c (expand_assignment): Take address-space information
8622 from the address operand of MEM_REF and TARGET_MEM_REF.
8623 (expand_expr_real_1): Likewise.
8625 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8627 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
8628 reload dump is requested.
8630 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
8633 * trans-mem.c (requires_barrier): Call may_be_aliased.
8635 2012-01-17 Jakub Jelinek <jakub@redhat.com>
8637 PR tree-optimization/51877
8638 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
8639 call arguments and fndecls compare equal, instead return false if they
8640 don't. Return true only if lhs1 and lhs2 are either both NULL, or
8641 both SSA_NAMEs that are valueized the same, or they satisfy
8644 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8646 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
8648 * configure: Regenerate.
8650 2012-01-16 Jan Hubicka <jh@suse.cz>
8654 * convert.c (convert_to_integer): Use fold_convert for
8655 converting an INTEGER_CST to integer type.
8657 2012-01-16 Jason Merrill <jason@redhat.com>
8660 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
8662 2012-01-16 Jakub Jelinek <jakub@redhat.com>
8665 * config/s390/s390.c (s390_chunkify_start): Don't skip
8666 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
8667 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
8668 If insn is followed by NOTE_INSN_VAR_LOCATION or
8669 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
8670 Don't use location of note insns.
8672 PR tree-optimization/51865
8673 * tree-inline.c (tree_function_versioning): Call remap_decl
8674 on DECL_RESULT whenever it has VOID_TYPE_P type.
8676 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
8678 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
8679 for calls to locally-binding MIPS16 functions if only the return
8680 type uses float regs.
8682 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
8683 Richard Sandiford <rdsandiford@googlemail.com>
8685 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
8686 (SYMBOL_32_HIGH): Likewise.
8687 (mips_output_tls_reloc_directive): Declare.
8688 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
8689 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
8690 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
8691 (mips_lo_relocs, mips_hi_relocs): Make extern.
8692 (mips16_stub_function): Move up file.
8693 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
8694 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
8695 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
8696 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
8697 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
8698 (mips_get_tp): Add MIPS16 support.
8699 (mips_legitimize_tls_address): Remove MIPS16 sorry().
8700 Generalize DTPREL and TPREL handling.
8701 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
8702 Add MIPS16 TLS support.
8703 (mips_output_tls_reloc_directive): New function.
8704 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
8705 * config/mips/predicates.md (symbolic_operand_with_high)
8706 (tls_reloc_operand): New predicates.
8707 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
8708 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
8709 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
8710 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
8711 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
8712 (*tls_get_tp_mips16_call_<mode>): Likewise.
8714 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
8716 PR rtl-optimization/51821
8717 * recog.c (peep2_find_free_register): Determine clobbered registers
8720 2012-01-14 Denis Chertykov <chertykov@gmail.com>
8723 * config/avr/avr-protos.h: Revert change of 2012-01-09.
8724 * config/avr/avr.c: Likewise.
8725 * config/avr/avr.h: Likewise.
8727 2012-01-13 Ian Lance Taylor <iant@google.com>
8730 * tree.h (TYPE_QUALS): Add cast to int.
8731 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
8733 2012-01-13 Ian Lance Taylor <iant@google.com>
8735 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
8736 comparing param_index to VEC_length result.
8738 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
8740 * c-decl.c: Do not include tree-mudflap.h
8741 * tree-optimize.c: Likewise.
8742 * Makefile.in: Update dependencies.
8744 2012-01-13 Richard Guenther <rguenther@suse.de>
8747 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
8748 variable-sized result always use RSO.
8750 2012-01-12 DJ Delorie <dj@redhat.com>
8752 * cfgexpand.c (convert_debug_memory_address): Allow any valid
8753 pointer type, not just the default pointer type.
8755 2012-01-09 Richard Henderson <rth@redhat.com>
8756 Denis Chertykov <chertykov@gmail.com>
8759 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
8760 * config/avr/avr.c (avr_can_eliminate): Simplify.
8761 (avr_initial_elimination_offset): Likewise.
8762 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
8763 (expand_epilogue): Likewise.
8764 (avr_legitimize_address): Gut.
8765 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
8766 (avr_hard_regno_nregs): New.
8767 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
8768 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
8769 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
8770 add soft frame pointer.
8771 (CALL_USED_REGISTERS): Likewise.
8772 (REG_CLASS_CONTENTS): Likewise.
8773 (REGISTER_NAMES): Likewise.
8774 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
8775 (HARD_FRAME_POINTER_REGNUM): New.
8776 (FRAME_POINTER_REGNUM): Use soft frame pointer.
8777 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
8778 remove the HARD_FRAME_POINTER self-elimination.
8780 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
8783 * config/avr/avr.c (avr_encode_section_info): Test for absence of
8784 DECL_EXTERNAL when checking for initializers of progmem variables.
8786 2012-01-12 Ira Rosen <irar@il.ibm.com>
8788 PR tree-optimization/51799
8789 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
8790 that the last operation is a type demotion.
8792 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
8794 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
8795 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
8797 2012-01-11 Jakub Jelinek <jakub@redhat.com>
8800 * combine.c (distribute_notes): If i3 is a noreturn call,
8801 allow old_size to be equal to args_size and make sure the
8802 noreturn call gets REG_ARGS_SIZE note.
8803 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
8804 on noreturn calls even when the delta is 0.
8806 2012-01-11 Nathan Sidwell <nathan@acm.org>
8808 * gcov.c (STRING_SIZE): Remove.
8809 (generate_results): Erase annotations for source files with no
8810 coverage information.
8812 (output_lines): Use it.
8814 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
8816 * gimple.h (gimplify_body): Remove first argument.
8817 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
8818 pointer set here, instead just pass DATA to walk_tree.
8819 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
8820 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
8821 (unvisit_body): Likewise, but with unmark_visited.
8822 (gimplify_body): Remove BODY_P argument and adjust.
8823 (gimplify_function_tree): Adjust call to gimplify_body.
8824 * omp-low.c (finalize_task_copyfn): Likewise.
8826 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
8828 * tree.h (build_function_decl_skip_args): Add boolean parameter.
8829 (build_function_type_skip_args): Delete.
8830 * tree.c (build_function_type_skip_args): Make static and add
8831 SKIP_RETURN parameter. Fix thinko in the handling of variants.
8832 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
8833 pass it to build_function_type_skip_args.
8834 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
8835 (tree_function_versioning): Likewise.
8836 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
8837 build_function_decl_skip_args.
8838 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
8839 and pass it to build_function_decl_skip_args/tree_function_versioning.
8840 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
8841 * ipa-inline-transform.c (save_inline_function_body): Likewise.
8842 * trans-mem.c (ipa_tm_create_version): Likewise.
8843 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
8844 * tree-inline.c (declare_return_variable): Remove always-true test.
8845 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
8846 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
8847 * ipa-split.c (split_function): Skip the return value for the split
8848 part if it doesn't return.
8850 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8852 PR tree-optimization/49642
8853 * ipa-split.c (forbidden_dominators): New variable.
8854 (check_forbidden_calls): New function.
8855 (dominated_by_forbidden): Likewise.
8856 (consider_split): Check for forbidden dominators.
8857 (execute_split_functions): Initialize and free forbidden
8858 dominators info; call check_forbidden_calls.
8860 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8862 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
8864 2012-01-11 Nick Clifton <nickc@redhat.com>
8866 * config/rx/rx.md (return): Define pattern.
8868 2012-01-11 Richard Guenther <rguenther@suse.de>
8870 * doc/extend.texi (malloc attribute): Adjust according to
8873 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
8874 Patrick Marlier <patrick.marlier@gmail.com>
8877 * trans-mem.c (get_cg_data): Traverse aliases if requested.
8878 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
8879 (ipa_tm_note_irrevocable): Same.
8880 (ipa_tm_scan_irr_block): Same.
8881 (ipa_tm_decrement_clone_counts): Same.
8882 (ipa_tm_scan_irr_function): Same.
8883 (ipa_tm_create_version_alias): Same.
8884 (ipa_tm_create_version): Same.
8885 (ipa_tm_transform_calls_redirect): Same.
8886 (ipa_tm_transform_calls): Same.
8887 (ipa_tm_transform_transaction): Same.
8888 (ipa_tm_execute): Same.
8890 2012-01-10 Richard Guenther <rguenther@suse.de>
8893 * opts.c (common_handle_option): Handle -Werror.
8895 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
8897 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
8900 2012-01-10 Jason Merrill <jason@redhat.com>
8902 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
8905 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8907 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
8908 supports R_386_TLS_GD_PLT reloc.
8909 (gcc_cv_as_ix86_tlsldmplt): Check if linker
8910 supports R_386_TLS_LDM_PLT reloc.
8911 * configure: Regenerate.
8912 * config.in: Regenerate.
8914 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
8917 Extend __pgmx semantics to linearize memory.
8918 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
8919 determine if code comes inline or from libgcc.
8920 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
8921 (movmem_qi, movmem_qi): Set constraint #2 to "n".
8922 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
8923 (movmemx_qi, movmemx_hi): New insns.
8924 (xload_<mode>_libgcc): Rewrite to new insn condition.
8925 (xload_<mode>): Remove insns.
8926 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
8927 cases that don't satisfy avr_xload_libgcc_p().
8928 (avr_addr_space_convert): Allow converting in any direction.
8929 (avr_addr_space_subset_p): Return always true.
8930 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
8931 (avr_emit_movmemhi): Ditto.
8932 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
8933 (avr_out_movmem): Ditto.
8934 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
8935 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
8936 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
8937 (avr_encode_section_info): Encode 'progmem' in symbol flags.
8938 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
8940 2012-01-10 Richard Guenther <rguenther@suse.de>
8942 PR tree-optimization/50913
8943 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
8944 Require data-refs to be representable by Graphite with respect
8947 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
8949 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
8950 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
8952 2012-01-10 Tom de Vries <tom@codesourcery.com>
8954 PR rtl-optimization/51271
8955 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
8956 handling annulled branch.
8958 2012-01-10 Richard Henderson <rth@redhat.com>
8960 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
8961 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
8962 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
8963 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
8964 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
8965 arm_expand_vec_perm_const): New.
8966 * config/arm/arm-protos.h: Update.
8967 * config/arm/neon.md (UNSPEC_VCONCAT): New.
8968 (*neon_vswp<VDQX>): New.
8969 (neon_vcombine<VDX>): Use neon_split_vcombine.
8970 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
8971 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
8972 (vec_perm<VE>): New.
8974 2012-01-10 Richard Henderson <rth@redhat.com>
8976 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
8977 use it if reload_completed.
8978 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
8979 arm_output_asm_insn, arm_process_output_memory_barrier,
8980 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
8981 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
8982 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
8983 arm_process_output_sync_insn, arm_output_sync_insn,
8984 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
8985 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
8986 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
8987 (emit_unlikely_jump): New.
8988 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
8989 (arm_split_atomic_op): New.
8990 * config/arm/arm-protos.h: Update.
8991 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
8992 (struct arm_sync_generator): Remove.
8993 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
8994 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
8995 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
8996 (VUNSPEC_LL, VUNSPEC_SC): New.
8997 (sync_result, sync_memory, sync_required_value, sync_new_value,
8998 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
8999 (attr length): Don't use arm_sync_loop_insns.
9000 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
9001 (movsfcc, movdfcc): Likewise.
9002 * config/arm/constraints.md (Ua): New.
9003 * config/arm/prediates.md (mem_noofs_operand): New.
9004 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
9005 (sync_clobber, sync_t2_reqd): Remove.
9006 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
9007 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
9008 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
9009 (arm_sync_compare_and_swap<SIDI>): Remove.
9010 (arm_sync_compare_and_swap<NARROW>): Remove.
9011 (arm_sync_lock_test_and_set<SIDI>): Remove.
9012 (arm_sync_lock_test_and_set<NARROW>): Remove.
9013 (arm_sync_new_<syncop><SIDI>): Remove.
9014 (arm_sync_new_<syncop><NARROW>): Remove.
9015 (arm_sync_new_nand<SIDI>): Remove.
9016 (arm_sync_new_nand<NARROW>): Remove.
9017 (arm_sync_old_<syncop><SIDI>): Remove.
9018 (arm_sync_old_<syncop><NARROW>): Remove.
9019 (arm_sync_old_nand<SIDI>): Remove.
9020 (arm_sync_old_nand<NARROW>): Remove.
9021 (*memory_barrier): Merge arm_output_memory_barrier.
9022 (atomic_compare_and_swap<QHSD>): New.
9023 (atomic_compare_and_swap<NARROW>_1): New.
9024 (atomic_compare_and_swap<SIDI>_1): New.
9025 (atomic_exchange<QHSD>): New.
9026 (cas_cmp_operand, cas_cmp_str): New.
9027 (atomic_op_operand, atomic_op_str): New.
9028 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
9029 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
9030 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
9031 (arm_load_exclusive<NARROW>): New.
9032 (arm_load_exclusivesi, arm_load_exclusivedi): New.
9033 (arm_store_exclusive<QHSD>): New.
9035 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9037 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
9038 reload patterns if -mvsx-scalar-memory.
9040 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
9041 generated, even -mno-vsx-scalar-double was used.
9042 (vsx_xscvdpsp_scalar): Likewise.
9043 (vsx_xscvspdp_scalar2): Likewise.
9045 2012-01-09 Tom de Vries <tom@codesourcery.com>
9046 Andrew Pinski <apinski@cavium.com>
9049 * reorg.c (fill_slots_from_thread): Don't speculate
9050 frame-related insns.
9052 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
9054 * sched-int.h (bb_note): Move to...
9055 * basic-block.h: ...here.
9056 * haifa-sched.c (bb_note): Move to...
9057 * cfgrtl.c: ...here.
9058 * function.c (next_block_for_reg): New function.
9059 (move_insn_for_shrink_wrap): Likewise.
9060 (prepare_shrink_wrap): Rewrite to use the above.
9062 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
9064 * gimple.c (is_gimple_non_addressable): Remove.
9065 * gimple.h: Remove is_gimple_non_addressable.
9066 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
9067 is_gimple_non_addressable.
9068 * trans-mem.c (expand_assign_tm): Same.
9070 2012-01-09 Richard Guenther <rguenther@suse.de>
9072 PR tree-optimization/51775
9073 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
9074 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
9076 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9078 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
9080 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
9082 2012-01-09 Richard Guenther <rguenther@suse.de>
9084 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
9086 2012-01-08 Jan Hubicka <jh@suse.cz>
9088 PR tree-optimize/51680
9089 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
9090 on when known_vals needs to be computed; cleanup.
9092 2012-01-08 Jan Hubicka <jh@suse.cz>
9094 PR tree-optimize/51694
9095 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
9097 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
9099 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
9100 for -std=c++98 and -std=c++11 too.
9102 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
9104 * cfgloop.c (cancel_loop): Add free() of bbs array.
9106 2012-01-07 Jan Hubicka <jh@suse.cz>
9108 PR tree-optimization/51600
9109 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
9110 that benefits small functions.
9112 2012-01-07 Jan Hubicka <jh@suse.cz>
9114 * ipa-inline.c (want_inline_small_function_p): Fix formating.
9116 2012-01-07 Jan Hubicka <jh@suse.cz>
9118 PR tree-optimization/51680
9119 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
9120 whose inlining reduce unit size.
9122 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
9125 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
9126 Add canonical node to containing_mem chain after the non-canonical
9127 one, even if there weren't any locs to propagate.
9128 (remove_useless_values): Keep only canonical values.
9129 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
9130 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
9131 canonicalize mem_chain elements that are not discarded.
9133 2012-01-06 Jakub Jelinek <jakub@redhat.com>
9136 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
9137 before emitting functions.
9139 PR gcov-profile/50127
9140 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
9141 clear_aux_for_blocks.
9143 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
9146 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
9148 2012-01-06 Arnaud Charlet <charlet@adacore.com>
9150 * c-decl.c (ext_block): Moved up.
9151 (collect_all_refs, for_each_global_decl): Take ext_block into account.
9153 2012-01-06 Han Shen <shenhan@google.com>
9155 Translate built-in include paths for sysroot.
9156 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
9157 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
9159 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
9160 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
9162 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
9163 control whether sysroot should be prepended to gxx include dir.
9165 * configure: Regenerate.
9167 2012-01-06 Torvald Riegel <triegel@redhat.com>
9169 PR rtl-optimization/51771
9170 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
9171 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
9173 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
9175 PR tree-optimization/51315
9176 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
9177 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
9179 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
9182 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
9183 for shrp pattern. Correctly handle and fixup shift variable.
9184 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
9186 2012-01-05 Jakub Jelinek <jakub@redhat.com>
9189 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
9190 note when !ACCUMULATE_OUTGOING_ARGS.
9192 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
9194 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
9196 (extract_range_from_unary_expr_1): Avoid useless computations.
9198 2012-01-05 Jakub Jelinek <jakub@redhat.com>
9200 PR rtl-optimization/51767
9201 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
9202 of jump_block and add an extra edge for degenerated asm gotos.
9205 * stmt.c (check_unique_operand_names): Don't ICE during error
9206 reporting if i is from labels chain.
9209 * profile.c (branch_prob): Split bbs that have exit edge
9210 and need a fake entry edge too.
9212 2012-01-05 Jan Hubicka <jh@suse.cz>
9215 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
9218 2012-01-05 Richard Guenther <rguenther@suse.de>
9221 * tree-streamer-out.c (write_ts_optimization): New function.
9222 (streamer_write_tree_body): Call it.
9223 * tree-streamer-in.c (lto_input_ts_optimization): New function.
9224 (streamer_read_tree_body): Call it.
9225 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
9227 2012-01-05 Jakub Jelinek <jakub@redhat.com>
9230 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
9231 * gimplify.c (gimplify_cleanup_point_expr): Save and set
9232 in_cleanup_point_expr before gimplify_stmt call and restore it
9234 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
9235 in_cleanup_point_expr is false.
9237 2012-01-05 Richard Guenther <rguenther@suse.de>
9240 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
9242 * toplev.c (process_options): Reject combining mudflap and LTO.
9243 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
9245 2012-01-05 Richard Guenther <rguenther@suse.de>
9247 PR tree-optimization/51760
9248 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
9250 (bit_value_unop): Handle UNDEFINED operands.
9251 (bit_value_binop): Likewise.
9253 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
9255 * config/avr/avr.c (avr_replace_prefix): Remove.
9256 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
9257 (avr_asm_function_rodata_section): Ditto.
9258 (avr_asm_select_section): Ditto.
9260 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9262 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
9265 2012-01-05 Jakub Jelinek <jakub@redhat.com>
9268 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
9269 calls that have any non-fake successor edges.
9272 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
9274 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
9276 PR tree-optimization/51624
9277 * tree-sra.c (build_ref_for_model): When replicating a chain of
9278 COMPONENT_REFs, stop as soon as the offset would become negative.
9280 2012-01-04 Jakub Jelinek <jakub@redhat.com>
9283 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
9284 in .debug_loc on the floor.
9286 2012-01-04 Andrew Pinski <apinski@cavium.com>
9288 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
9290 2012-01-04 Andrew Pinski <apinski@cavium.com>
9291 Adam Nemet <anemet@caviumnetworks.com>
9293 * config/mips/mips.md (size): Add SI and DI.
9294 (SIZE): New mode attribute.
9295 (U): New code attribute.
9296 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
9297 (mips_lbux_<mode>): Delete.
9298 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
9299 (mips_lhx): Use gen_mips_lhx_extsi.
9300 (mips_lhx_<mode>): Delete.
9302 (mips_l<size>x): New expand.
9303 (mips_lwx_<mode>): Delete.
9304 (mips_l<GPR:size>x_<P:mode>): New pattern.
9305 (*mips_lw<u>x_<P:mode>_ext): Likewise.
9306 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
9307 * config/mips/mips.c (mips_lx_address_p): New function.
9308 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
9309 (dsp64): New availability predicate.
9310 (mips_builtins): Add an entry for __builtin_mips_ldx.
9311 * config/mips/mips.h (ISA_HAS_LBX): New define.
9312 (ISA_HAS_LBUX): Likewise.
9313 (ISA_HAS_LHX): Likewise.
9314 (ISA_HAS_LHUX): Likewise.
9315 (ISA_HAS_LWX): Likewise.
9316 (ISA_HAS_LWUX): Likewise.
9317 (ISA_HAS_LDX): Likewise.
9318 * doc/extend.texi (__builtin_mips_ldx): Document.
9320 2012-01-04 Tristan Gingold <gingold@adacore.com>
9322 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
9323 when long pointers are used.
9324 * config.build (*-*-*vms*): Handle all OpenVMS targets.
9325 (alpha64-dec-*vms*, alpha*-dec-*vms*)
9326 (ia64-hp-*vms*): Remove.
9327 * config/vms/xm-vms64.h: Delete.
9329 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
9332 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
9334 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
9336 * opts.c (finish_options): Remove duplicate sorry.
9338 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
9341 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
9344 2012-01-04 Richard Guenther <rguenther@suse.de>
9347 * tree.c (size_low_cst): New function.
9348 * tree.h (size_low_cst): Declare.
9349 * fold-const.c (fold_comparison): Use it to extract the low
9350 part of the POINTER_PLUS_EXPR offset.
9352 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
9354 Fix clearing ZERO_REG
9355 * config/avr/avr.md (cc): Add alternative "ldi".
9356 (movqi_insn): Use it in cc attribute.
9357 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
9358 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
9359 (output_reload_insisf): Use ZERO_REG to pre-clear register.
9361 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9363 * configure: Regenerate.
9365 2012-01-04 Richard Guenther <rguenther@suse.de>
9367 PR tree-optimization/49651
9368 * tree-ssa-structalias.c (type_can_have_subvars): New function.
9369 (var_can_have_subvars): Use it.
9370 (get_constraint_for_1): Only consider subfields if there can be any.
9372 2012-01-03 Jakub Jelinek <jakub@redhat.com>
9375 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
9376 to its new canonical_cselib_val and the cselib_val was in
9377 first_containing_mem chain, but the canonical_cselib_val was not,
9378 add the latter into the chain.
9379 (cselib_invalidate_mem): Compare canonical_cselib_val of
9380 addr_list chain elt with v.
9383 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
9384 dwarf2out_undef): Allocate e.info using ggc_strdup instead
9386 (output_macinfo_op): Don't ggc_strdup fd->filename.
9387 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
9388 then ggc_strdup it. Don't free inc->info or cur->info.
9389 (output_macinfo): Don't free ref->info or file->info.
9391 2012-01-03 Ira Rosen <irar@il.ibm.com>
9393 PR tree-optimization/51269
9394 * tree-vect-loop-manip.c (set_prologue_iterations): Make
9395 first_niters a pointer.
9396 (slpeel_tree_peel_loop_to_edge): Likewise.
9397 (vect_do_peeling_for_loop_bound): Update call to
9398 slpeel_tree_peel_loop_to_edge.
9399 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
9400 here. Remove it from the parameters list.
9401 (vect_do_peeling_for_alignment): Update calls and compute
9404 2012-01-03 Richard Guenther <rguenther@suse.de>
9406 PR tree-optimization/51070
9407 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
9408 Properly handle calls.
9410 2012-01-03 Richard Guenther <rguenther@suse.de>
9412 PR tree-optimization/51692
9413 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
9414 the LHS of allocation stmts.
9416 2012-01-03 Olivier Hainque <hainque@adacore.com>
9418 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
9420 2012-01-03 Olivier Hainque <hainque@adacore.com>
9422 * collect2.c (main): In AIX specific computations for vector
9423 insertions, use CONST_CAST2 to cast from char ** to const char **.
9425 2012-01-03 Richard Guenther <rguenther@suse.de>
9428 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
9429 the context of a limbo DIE when it does not already exist.
9431 2012-01-03 Jakub Jelinek <jakub@redhat.com>
9433 PR tree-optimization/51719
9434 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
9435 but direct call is, clear direct call's lhs and don't add fallthrough
9436 edge from dcall_bb to join_bb and PHIs.
9438 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9440 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
9441 the instructions emitted by the pattern.
9442 ("*TDC_insn_<mode>"): Add comment.
9444 2012-01-03 Richard Guenther <rguenther@suse.de>
9447 * fold-const.c (fold_comparison): Properly canonicalize
9448 tree offset and HOST_WIDE_INT bit position.
9450 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
9452 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
9453 operands for extzv pattern.
9455 2012-01-02 Jakub Jelinek <jakub@redhat.com>
9458 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
9461 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
9463 * doc/invoke.texi (-flto and related options): Copy-edit.
9465 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9467 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
9469 2012-01-02 Jakub Jelinek <jakub@redhat.com>
9471 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
9474 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9476 * expr.h (move_by_pieces_ninsns): Declare.
9477 * expr.c (move_by_pieces_ninsns): Make external.
9478 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
9479 (mips_store_by_pieces_p): Likewise.
9480 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
9481 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
9482 * config/mips/mips.c (mips_move_by_pieces_p): New function.
9483 (mips_store_by_pieces_p): Likewise.
9485 2012-01-02 Jakub Jelinek <jakub@redhat.com>
9487 * passes.c (register_one_dump_file): Free full_name.
9489 * reload1.c (reload): Don't allocate reg_max_ref_width here.
9490 (calculate_elim_costs_all_insns): Free offsets_at and
9491 offsets_known_at at the end and clear the pointers.
9493 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
9495 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
9496 this option introduced in r180739.
9498 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
9501 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
9502 (tmake_file target=avr): Add avr/t-multilib.
9504 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
9505 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
9506 * config/avr/genmultilib.awk: New file.
9507 * config/avr/t-multilib: New auto-generated file.
9508 * config/avr/multilib.h: New auto-generated file.
9509 * config/avr/t-avr (AVR_MCUS): New variable.
9510 (genopt.sh): Use it.
9511 (s-mlib): Depend on t-multilib.
9512 (t-multilib, multilib.h): New dependencies.
9513 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
9514 (MULTILIB_OPTIONS): Remove.
9515 (MULTILIB_MATCHES): Remove.
9516 (MULTILIB_DIRNAMES): Remove.
9517 (MULTILIB_EXCEPTIONS): Remove:
9518 * config/avr/genopt.sh: Don't use hard coded file name;
9519 pass AVR_MCUS from t-avr instead.
9521 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
9523 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
9525 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
9527 Implement light-weight DImode support.
9528 * config/avr/avr-dimode.md: New file.
9529 * config/avr/avr.md: Include it.
9530 (adjust_len): Add plus64, compare64.
9531 (HIDI): Remove code iterator.
9532 (code_stdname): New code attribute.
9533 (rotx, rotsmode): Remove DI.
9534 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
9536 * config/avr/avr-protos.h (avr_have_dimode): New.
9537 (avr_out_plus64, avr_out_compare64): New.
9538 * config/avr/avr.c (avr_out_compare): Handle DImode.
9539 (avr_have_dimode): New variable definition and initialization.
9540 (avr_out_compare64, avr_out_plus64): New functions.
9541 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
9542 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
9543 (avr_compare_pattern): Skip DImode comparisons.
9545 2012-01-02 Revital Eres <revital.eres@linaro.org>
9547 * ddg.c (def_has_ccmode_p): New function.
9548 (add_cross_iteration_register_deps,
9549 create_ddg_dep_from_intra_loop_link): Call it.
9551 2012-01-02 Richard Guenther <rguenther@suse.de>
9554 * invoke.texi (fassociative-math): Remove spurious paranthesis.
9556 2012-01-01 Jakub Jelinek <jakub@redhat.com>
9558 * gcc.c (process_command): Update copyright notice dates.
9559 * gcov.c (print_version): Likewise.
9560 * gcov-dump.c (print_version): Likewise.
9561 * mips-tfile.c (main): Likewise.
9562 * mips-tdump.c (main): Likewise.
9564 2012-01-01 Ira Rosen <irar@il.ibm.com>
9566 PR tree-optimization/51704
9567 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
9568 a use is inside the basic block or loop before accessing its vect info.
9570 2012-01-01 Jan Hubicka <jhjh@suse.cz>
9572 PR rtl-optimization/51069
9573 * cfgloopmanip.c (remove_path): Removing path making irreducible
9574 region unconditional makes BB part of the region.
9576 2012-01-01 Jakub Jelinek <jakub@redhat.com>
9578 PR tree-optimization/51683
9579 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
9580 calls with side-effects.
9581 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9583 Copyright (C) 2012 Free Software Foundation, Inc.
9585 Copying and distribution of this file, with or without modification,
9586 are permitted in any medium without royalty provided the copyright
9587 notice and this notice are preserved.