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