* cp-tree.h (struct deferred_access_check): Add location.
[official-gcc.git] / gcc / ChangeLog
blobf9fd72364bbdfe512e0fc2ef24c34aadeced3928
1 2012-07-16  Oleg Endo  <olegendo@gcc.gnu.org>
3         * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
4         (CONST_OK_FOR_I10): Move macro to ...
5         * config/sh/sh.c: ... here.
6         (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
7         CONST_OK_FOR_I06.
9 2012-07-16  Oleg Endo  <olegendo@gcc.gnu.org>
11         * config/sh/sh.md: Delete mov related define_peephole patterns.
13 2012-07-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
15         PR c++/53919
16         * doc/install.texi (Installing GCC): Refer to instructions for
17         released versions. Fix hyphenation.
19 2012-07-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21         * config/spu/spu.c (targetm): Move to bottom of file.
22         (spu_attribute_table): Likewise.
23         (spu_option_override, spu_init_builtins, spu_builtin_decl,
24         spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
25         spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
26         adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
27         frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
28         insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
29         get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
30         spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
31         spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
32         spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
33         spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
34         spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
35         spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
36         spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
37         spu_encode_section_info, spu_legitimize_address,
38         spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
39         spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
40         spu_addr_space_pointer_mode, spu_addr_space_address_mode,
41         spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
42         spu_section_type_flags, spu_select_section, spu_unique_section,
43         spu_trampoline_init, spu_conditional_register_usage,
44         spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
45         spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
46         spu_setup_incoming_varargs): Remove prototypes.
47         (spu_legitimize_address): Add "static" to definition.
49 2012-07-16  Jakub Jelinek  <jakub@redhat.com>
51         * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
53 2012-07-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
55         * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
56         before calling gsi_stmt.
58 2012-07-16  Kirill Yukhin  <kirill.yukhin@intel.com>
60         Revert
61         2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
63         * config/i386/i386.md (stack_protect_set): Disable the pattern
64         for Android since Android libc (bionic) does not provide random
65         value for stack protection guard at gs:0x14. Guard value
66         will be provided from external symbol (default implementation).
67         (stack_protect_set_<mode>): Likewise.
68         (stack_protect_test): Likewise.
69         (stack_protect_test_<mode>): Likewise.
71 2012-07-16  H.J. Lu  <hongjiu.lu@intel.com>
73         PR middle-end/53959
74         PR bootstrap/53963
75         * gimple.c (gimple_types_compatible_p_1): Restore type attribute
76         comparison.
78 2012-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
80         * opts.c (default_option): Add -fvect-cost-model to default options
81         at -O3 and above.
83 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
85         * graphite-clast-to-gimple.c, graphite-dependences.c,
86         graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
87         for pass TODO flags.
88         * Makefile.in: Fix dependencies.
90 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
92         * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
93         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
95         * function.c (stack_protect_epilogue): Use expand_call to expand
96         targetm.stack_protect_fail.
97         * stmt.c (expand_expr_stmt): Remove now-unused function.
98         * tree.h (expand_expr_stmt): Remove prototype.
99         * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
100         hook must return a CALL_EXPR.
101         * doc/tm.texi: Regenerate.
103         * emit-rtl.c (emit_label_before): Do not allow the same label
104         to be emitted twice.
105         (emit_label_after): Likewise.
106         (emit_label): Likewise.
108         * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
109         TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
110         * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
111         TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
113 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
115         * system.h (dump_file): Do not define.
116         * tree-pass.h: Include dumpfile.h, which is a new file containing...
117         (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
118         dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
119         dump_flag_name, dump_file, dump_flags, dump_file_name,
120         get_dump_file_info, struct dump_file_info): all of this, moved to...
121         * dumpfile.h: Here, new file.
122         * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
123         (dump_stmt): Remove prototype for C++ specific function.
124         (dump_enumerated_decls): Move prototype from here...
125         * tree-flow.h (dump_enumerated_decls): ... to here.
126         (get_ref_base_and_extent) Move prototype from here ...
127         * tree.h (get_ref_base_and_extent) ... to here.
128         * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
129         gimple-pretty-print.h is enough.  Do not include tree-dump.h,
130         include timevar.h and dumpfile.h instead.
131         (struct numbered_tree_d, compare_decls_by_uid,
132         dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
133         * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
134         dump_enumerated_decls_push, dump_enumerated_decls):... to here.
135         Do not include timevar.h.
136         * tree.c: Do not include timevar.h.
137         * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
138         timevar.h.
139         (dump_cfg_stats): Use current_function_name.
140         (gimple_cfg2vcg): Likewise.
141         (dump_function_to_file): Likewise.
142         * df-scan.c: Do not include tree-pass.h and timevar.h.
143         Include dumpfile.h.
144         (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
145         use print_current_pass.
146         * df-problems.c: Include dumpfile.h.
147         Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
148         leads to errors in the code not selected.
149         (df_note_compute): Do not print_rtl_with_bb here.  Fix compilation
150         bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
151         * lcm.c: Include dumpfile.h.
152         Remove obsolete include of insn-attr.h.
153         * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
154         missing probability notes.
155         * stmt.c: Include dumpfile.h.
156         (emit_case_decision_tree): Re-enable printing expand details only
157         if TDF_DETAILS.
158         * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c, 
159         cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c, 
160         cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c, 
161         coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c, 
162         dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c, 
163         function.c, fwprop.c, gcse.c, gimple-fold.c, 
164         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, 
165         gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c, 
166         graphite-dependences.c, graphite-interchange.c, 
167         graphite-optimize-isl.c, graphite-poly.c, 
168         graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c, 
169         ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c, 
170         ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c, 
171         ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c, 
172         jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c, 
173         loop-unroll.c, loop-unswitch.c, lower-subreg.c, 
174         lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c, 
175         mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c, 
176         plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c, 
177         print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c, 
178         regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c, 
179         sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c, 
180         store-motion.c, tracer.c, trans-mem.c, tree-affine.c, 
181         tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c, 
182         tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
183         tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c, 
184         tree-mudflap.c, tree-nrv.c, tree-object-size.c, 
185         tree-optimize.c, tree-outof-ssa.c, tree-predcom.c, 
186         tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c, 
187         tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c, 
188         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c, 
189         tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c, 
190         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c, 
191         tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c, 
192         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, 
193         tree-ssa-loop-manip.c, tree-ssa-loop-niter.c, 
194         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c, 
195         tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c, 
196         tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c, 
197         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c, 
198         tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c, 
199         tree-ssa-threadedge.c, tree-ssa-threadupdate.c, 
200         tree-ssa-uncprop.c, tree-ssa-uninit.c, 
201         tree-switch-conversion.c, tree-tailcall.c, 
202         tree-vect-data-refs.c, tree-vect-loop.c, 
203         tree-vect-loop-manip.c, tree-vectorizer.c, 
204         tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c, 
205         tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
206         only if needed.  If tree-pass.h is included, do not include timevar.h
207         and dumpfile.h.  If tree-pass.h is not included but dump_file, or
208         dump_flags, or the TDF_* flags are used, include dumpfile.h.
209         If gimple-pretty-print.h is included, don't include tree-pretty-print.h.
210         Remove assorted unnecessary includes.
212         * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
213         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
214         config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
215         Include dumpfile.h.
216         * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
217         * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
218         spu/t-spu-elf: Fix dependencies.
220 2012-07-16  Dehao Chen  <dehao@google.com>
222         Revert
223         2012-07-10  Dehao Chen  <dehao@google.com>
225         * tree.h (phi_arg_d): New field.
226         * tree-flow-inline.h (gimple_phi_arg_block): New function.
227         (gimple_phi_arg_block_from_edge): New function.
228         (gimple_phi_arg_set_block): New function.
229         (gimple_phi_arg_has_block): New function.
230         (redirect_edge_var_map_block): New function.
231         * tree-flow.h (_edge_var_map): New field.
232         * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
233         * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
234         redirect_edge_var_map_add.
235         * tree-outof-ssa.c (_elim_graph): New field.
236         (insert_partition_copy_on_edge): New parameter.
237         (insert_value_copy_on_edge): New parameter.
238         (insert_rtx_to_part_on_edge): New parameter.
239         (insert_part_to_rtx_on_edge): New parameter.
240         (elim_graph_add_edge): New parameter.
241         (elim_graph_remove_succ_edge): New parameter.
242         (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
243         (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
244         (new_elim_graph): Add block debug info.
245         (clear_elim_graph): Likewise.
246         (delete_elim_graph): Likewise.
247         (elim_graph_add_node): Likewise.
248         (elim_graph_add_edge): Likewise.
249         (elim_graph_remove_succ_edge): Likewise.
250         (eliminate_build): Likewise.
251         (elim_forward): Likewise.
252         (elim_unvisited_predecessor): Likewise.
253         (elim_backward): Likewise.
254         (elim_create): Likewise.
255         (eliminate_phi): Likewise.
256         (insert_backedge_copies): Likewise.
257         * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
258         add_phi_arg.
259         (rewrite_add_phi_arguments): Likewise.
260         * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
261         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
262         * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
263         * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
264         * tree-ssa-loop-manip.c (create_iv): Likewise.
265         (add_exit_phis_edge): Likewise.
266         (split_loop_exit_edge): Likewise.
267         (copy_phi_node_args): Likewise.
268         (tree_transform_and_unroll_loop): Likewise.
269         * value-prof.c (gimple_ic): Likewise.
270         (gimple_stringop_fixed_value): Likewise.
271         * tree-tailcall.c (add_successor_phi_arg): Likewise.
272         (eliminate_tail_call): Likewise.
273         (create_tailcall_accumulator): Likewise.
274         (tree_optimize_tail_calls_1): Likewise.
275         * tree-phinodes.c (add_phi_arg): Likewise.
276         (make_phi_node): Likewise.
277         (resize_phi_node): Likewise.
278         (remove_phi_arg_num): Likewise.
279         * omp-low.c (expand_parallel_call): Likewise.
280         (expand_omp_for_static_chunk): Likewise.
281         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
282         Likewise.
283         (slpeel_update_phi_nodes_for_guard1): Likewise.
284         (slpeel_update_phi_nodes_for_guard2): Likewise.
285         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
286         (set_prologue_iterations): Likewise.
287         (slpeel_tree_peel_loop_to_edge): Likewise.
288         (vect_loop_versioning): Likewise.
289         * tree-parloops.c (create_phi_for_local_result): Likewise.
290         (transform_to_exit_first_loop): Likewise.
291         (create_parallel_loop): Likewise.
292         * ipa-split.c (split_function): Likewise.
293         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
294         (vect_create_epilog_for_reduction): Likewise.
295         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
296         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
297         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
298         (cond_if_else_store_replacement_1): Likewise.
299         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
300         (remove_forwarder_block_with_phi): Likewise.
301         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
302         * tree-predcom.c (initialize_root_vars): Likewise.
303         (initialize_root_vars_lm): Likewise.
304         * sese.c (sese_add_exit_phis_edge): Likewise.
305         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
306         * tree-ssa.c (flush_pending_stmts): Likewise.
307         (redirect_edge_var_map_add): Likewise.
308         (ssa_redirect_edge): Likewise.
309         * gimple-streamer-in.c (input_phi): Likewise.
310         * tree-vect-stmts.c (vectorizable_load): Likewise.
311         * tree-inline.c (copy_phis_for_bb): Likewise.
312         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
313         * tree-switch-conversion.c (fix_phi_nodes): Likewise.
314         * tree-cfg.c (reinstall_phi_args): Likewise.
315         (gimple_make_forwarder_block): Likewise.
316         (add_phi_args_after_copy_edge): Likewise.
317         (gimple_duplicate_sese_tail): Likewise.
319 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
321         * config/i386/i386.md (stack_protect_set): Disable the pattern
322         for Android since Android libc (bionic) does not provide random
323         value for stack protection guard at gs:0x14. Guard value
324         will be provided from external symbol (default implementation).
325         (stack_protect_set_<mode>): Likewise.
326         (stack_protect_test): Likewise.
327         (stack_protect_test_<mode>): Likewise.
329 2012-07-16  Hans-Peter Nilsson  <hp@axis.com>
331         * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
332         * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
333         CONSTANT_P and cris_legitimate_address_p.
334         * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
335         (cris_preferred_reload_class): Don't return GENERAL_REGS as
336         preferred to MOF_SRP_REGS.
338         * config/cris/cris.c (cris_init_libfuncs): Handle initialization
339         of library functions for basic atomic compare-and-swap.
340         * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
341         * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
342         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
343         ("cris_atomic_fetch_<atomic_op_name><mode>_1")
344         ("atomic_compare_and_swap<mode>")
345         ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
346         TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
347         * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
348         * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
349         (atomic_op_op_pred): Ditto.
350         (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
351         reflect the change to include %2 in expansion.  All callers changed.
352         (qm3): New mode_attr.
353         ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
354         as predicate for operand 2. 
355         ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME.  Use
356         "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
357         constraint for operand 2.
358         ("atomic_compare_and_swap<mode>"): Add FIXME.  Change predicate to
359         nonmemory_operand for operand 3.
360         ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
361         exclude memory.  Improve emitted sync code for v10 and v32.  Use
362         <qm3> instead of <m> for size designator for cmp.
363         ("atomic_compare_and_swap<mode>"): Change predicate to
364         nonmemory_operand for operand 3.  Add FIXME.
365         ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
366         constraints for operand 3 to exclude memory.
367         ("atomic_fetch_<atomic_op_name><mode>")
368         ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
369         calls on result of call to need_atomic_barrier_p.
371 2012-07-15  Richard Sandiford  <rdsandiford@googlemail.com>
373         * config/mips/mips.md (move_type): Replace mfhilo and mthilo
374         with mflo and mtlo.
375         (type): Split mfhilo into mfhi and mflo.  Split mthilo into mthi
376         and mtlo.  Adjust move_type->type mapping.
377         (may_clobber_hilo): Split mthilo into mthi and mtlo.
378         (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
379         (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
380         (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
381         instead of mthilo and mfhilo.
382         (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
383         (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
384         * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
385         (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
386         Use mflo instead of mfhilo.
387         * config/mips/10000.md (r10k_arith): Split mthilo.
388         (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
389         * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
390         (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
391         * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
392         mthilo and mfhilo.
393         * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
394         * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
395         Likewise.
396         * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
397         * config/mips/5400.md (ir_vr54_hilo): Likewise.
398         * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
399         * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
400         * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
401         * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
402         * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
403         * config/mips/generic.md (generic_hilo): Likewise.
404         * config/mips/loongson2ef.md (ls2_alu): Likewise.
405         * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
406         * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
407         (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
408         * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
409         * config/mips/xlr.md (xlr_hilo): Likewise.
411 2012-07-14  Andrew Stubbs  <ams@codesourcery.com>
412             Sandra Loosemore  <sandra@codesourcery.com>
414         * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
416 2012-07-14  Uros Bizjak  <ubizjak@gmail.com>
418         * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
419         for TARGET_SSE.
421 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
423         * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
425 2012-07-13  Bill Schmidt  <wschmidt@linux.ibm.com>
427         PR bootstrap/53955
428         * config/spu/spu.c (spu_init_cost): Mark static.
429         (spu_add_stmt_cost): Likewise.
430         (spu_finish_cost): Likewise.
431         (spu_destroy_cost_data): Likewise.
432         * config/i386/i386.c (ix86_init_cost): Mark static.
433         (ix86_add_stmt_cost): Likewise.
434         (ix86_finish_cost): Likewise.
435         (ix86_destroy_cost_data): Likewise.
436         * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
437         (rs6000_add_stmt_cost): Likewise.
438         (rs6000_finish_cost): Likewise.
439         (rs6000_destroy_cost_data): Likewise.
441 2012-07-13  Steven Bosscher  <steven@gcc.gnu.org>
443         * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
444         ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
445         ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
446         ATTRIBUTE_MALLOC.
447         * alloc-pool.h (pool_alloc): Likewise.
449         * final.c (final): Do not loop to find max_uid.
451 2012-07-13  Steven Bosscher  <steven@gcc.gnu.org>
453         * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
454         * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
456 2012-07-13  Richard Guenther  <rguenther@suse.de>
458         PR tree-optimization/53907
459         * tree-ssa-forwprop.c (associate_pointerplus): New function.
460         (ssa_forward_propagate_and_combine): Call it.
462 2012-07-13  Richard Guenther  <rguenther@suse.de>
464         PR tree-optimization/53922
465         * tree-vrp.c (value_inside_range): Change prototype to take
466         min/max instead of value-range.
467         (range_includes_zero_p): Likewise.  Return the result from
468         value_inside_range.
469         (extract_range_from_binary_expr_1): Adjust to handle dont-know
470         return value from range_includes_zero_p.
471         (extract_range_from_unary_expr_1): Likewise.
472         (compare_range_with_value): Likewise.
473         (vrp_meet_1): Likewise.
475 2012-07-13  Bill Schmidt  <wschmidt@linux.ibm.com>
477         * doc/tm.texi: Regenerate.
478         * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
479         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
480         (TARGET_VECTORIZE_FINISH_COST): Likewise.
481         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
482         * targhooks.c (default_init_cost): New function.
483         (default_add_stmt_cost): Likewise.
484         (default_finish_cost): Likewise.
485         (default_destroy_cost_data): Likewise.
486         * targhooks.h (default_init_cost): New decl.
487         (default_add_stmt_cost): Likewise.
488         (default_finish_cost): Likewise.
489         (default_destroy_cost_data): Likewise.
490         * target.def (init_cost): New DEFHOOK.
491         (add_stmt_cost): Likewise.
492         (finish_cost): Likewise.
493         (destroy_cost_data): Likewise.
494         * target.h (struct _stmt_vec_info): New extern decl.
495         (stmt_vectype): Likewise.
496         (stmt_in_inner_loop_p): Likewise.
497         * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
498         (stmt_vector_for_cost): New VEC/typedef.
499         (add_stmt_info_to_vec): New function.
500         (struct _slp_tree): Remove cost.inside_of_loop field.
501         (struct _slp_instance): Remove cost.inside_of_loop field; add
502         stmt_cost_vec field.
503         (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
504         (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
505         (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
506         (struct _vect_peel_extended_info): Add stmt_cost_vec field.
507         (struct _loop_vec_info): Add target_cost_data field.
508         (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
509         (struct _bb_vec_info): Add target_cost_data field.
510         (BB_VINFO_TARGET_COST_DATA): New accessor macro.
511         (struct _stmt_vec_info): Remove cost.inside_of_loop field.
512         (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
513         (stmt_vinfo_set_inside_of_loop_cost): Remove function.
514         (init_cost): New function.
515         (add_stmt_cost): Likewise.
516         (finish_cost): Likewise.
517         (destroy_cost_data): Likewise.
518         (vect_model_simple_cost): Change parameter list.
519         (vect_model_store_cost): Likewise.
520         (vect_model_load_cost): Likewise.
521         (record_stmt_cost): New extern decl.
522         (vect_get_load_cost): Change parameter list.
523         (vect_get_store_cost): Likewise.
524         * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
525         (destroy_loop_vec_info): Call destroy_cost_data.
526         (vect_estimate_min_profitable_iters): Remove old calculation of
527         inside costs; call finish_cost instead.
528         (vect_model_reduction_cost): Call add_stmt_cost instead of old
529         inside-costs calculation.
530         (vect_model_induction_cost): Likewise.
531         * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
532         return a stmt_vector_for_cost; modify calls to vect_get_load_cost
533         and vect_get_store_cost to obtain the value to return.
534         (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
535         vect_get_data_access_cost and store it in the minimum peeling
536         structure.
537         (vect_peeling_hash_choose_best_peeling): Change the parameter list
538         to add a (stmt_vector_for_cost *) output parameter, and set its value.
539         (vect_enhance_data_refs_alignment): Ignore the new return value from
540         calls to vect_get_data_access_cost; obtain stmt_cost_vec from
541         vect_peeling_hash_choose_best_peeling and pass its contents to the
542         target cost model.
543         * tree-vect-stmts.c (stmt_vectype): New function.
544         (stmt_in_inner_loop_p): Likewise.
545         (record_stmt_cost): Likewise.
546         (vect_model_simple_cost): Add stmt_cost_vec parameter; call
547         record_stmt_cost instead of old calculation; don't call
548         stmt_vinfo_set_inside_of_loop_cost.
549         (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
550         old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
551         (vect_model_store_cost): Add stmt_cost_vec parameter; call
552         record_stmt_cost instead of old calculation; add stmt_cost_vec
553         parameter to vect_get_store_cost call; don't call
554         stmt_vinfo_set_inside_of_loop_cost.
555         (vect_get_store_cost): Add stmt_cost_vec parameter; call
556         record_stmt_cost instead of old calculation.
557         (vect_model_load_cost): Add stmt_cost_vec parameter; call
558         record_stmt_cost instead of old calculation; add stmt_cost_vec
559         parameter to vect_get_load_cost call; don't call
560         stmt_vinfo_set_inside_of_loop_cost.
561         (vect_get_load_cost): Add stmt_cost_vec parameter; call
562         record_stmt_cost instead of old calculation.
563         (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
564         (vectorizable_conversion): Likewise.
565         (vectorizable_assignment): Likewise.
566         (vectorizable_shift): Likewise.
567         (vectorizable_operation): Likewise.
568         (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
569         (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
570         (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
571         * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
572         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
573         (TARGET_VECTORIZE_FINISH_COST): Likewise.
574         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
575         (spu_init_cost): New function.
576         (spu_add_stmt_cost): Likewise.
577         (spu_finish_cost): Likewise.
578         (spu_destroy_cost_data): Likewise.
579         * config/i386/i386.c (ix86_init_cost): New function.
580         (ix86_add_stmt_cost): Likewise.
581         (ix86_finish_cost): Likewise.
582         (ix86_destroy_cost_data): Likewise.
583         (TARGET_VECTORIZE_INIT_COST): New macro def.
584         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
585         (TARGET_VECTORIZE_FINISH_COST): Likewise.
586         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
587         * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
588         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
589         (TARGET_VECTORIZE_FINISH_COST): Likewise.
590         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
591         (rs6000_init_cost): New function.
592         (rs6000_add_stmt_cost): Likewise.
593         (rs6000_finish_cost): Likewise.
594         (rs6000_destroy_cost_data): Likewise.
595         * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
596         (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
597         (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
598         stmt_cost_vec parameter to vect_model_store_cost and
599         vect_model_simple_cost calls.
600         (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
601         parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
602         vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
603         calculating cost more than once for loads; remove inside_cost
604         parameter from recursive vect_build_slp_tree calls; call
605         record_stmt_cost instead of old calculation.
606         (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
607         the instance; free it on premature exit; remove inside_cost parameter
608         from vect_build_slp_tree call; add stmt_cost_vec parameter to
609         vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
610         (new_bb_vec_info): Call init_cost.
611         (destroy_bb_vec_info): Call destroy_cost_data.
612         (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
613         statement recorded with an SLP instance; call finish_cost instead of
614         the old calculation.
615         (vect_update_slp_costs_according_to_vf): Record statement costs from
616         SLP instances, multiplying by the appropriate number of copies; don't
617         update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
619 2012-07-13  Richard Guenther  <rguenther@suse.de>
621         PR middle-end/53937
622         * builtins.c (get_pointer_alignment_1): Handle constant
623         pointers.
625 2012-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
626             Steven Bosscher  <steven@gcc.gnu.org>
627             Bernd Schmidt  <bernds@codesourcery.com>
629         PR rtl-optimization/53908
630         * df-problems.c (can_move_insns_across): When doing
631         memory-reference book-keeping, handle call insns.
633 2012-07-13  Richard Guenther  <rguenther@suse.de>
635         * gimple.c (gimple_types_compatible_p_1): Remove redundant
636         type attribute comparisons.
637         (gimple_canonical_types_compatible_p): Likewise.
639 2012-07-12  Hans-Peter Nilsson  <hp@axis.com>
641         PR rtl-optimization/53176
642         * rtlanal.c (rtx_cost): Adjust default cost for X with a
643         UNITS_PER_WORD factor for all X according to the size of
644         its mode, not just for SUBREGs with untieable modes.
645         Handle SET.  Use factor * factor for MULT, DIV, UDIV,
646         MOD, UMOD.
648 2012-07-12  Uros Bizjak  <ubizjak@gmail.com>
650         * config/i386/i386.md (QImode and HImode cmove splitters): Merge
651         QImode and HImode splitters.  Use ix86_comparison_operator.
652         Explicitly match FLAGS_REG.
653         (DFmode cmove splitter): Explicitly match FLAGS_REG.
655 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
657         * expr.h (can_move_by_pieces): Move prototype from here ...
658         * tree.h (can_move_by_pieces): ... to here.
659         * optabs.h (set_widening_optab_handler): Use XCNEW.
660         * gimplify.c: Do not include expr.h.
662         * toplev.c: Do not include dwarf2out.h.
663         * config/ia64/ia64.c: Likewise.
664         * config/sparc/sparc.c: Likewise.
665         * config/sparc/t-sparc (sparc.o): Fix dependencies.
667         * Makefile.in (toplev.o): Fix dependencies
668         (c-family/c-gimplify.o): Likewise.
669         (c-family/c-common.o): Likewise.
671 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
673         * basic-block.h (struct edge_def): Use basic_block instead of
674         basic_block_def *.
675         * cfgloop.h (struct loop_exit, struct loop): Likewise.
676         * gengenrtl.c (type_from_format): Likewise.  Also for 'tree'
677         instead of union tree_node *.
678         * rtl.h (union rtunion_def, emit_insn_before_noloc,
679         emit_insn_after_noloc, add_insn_before, add_insn_after,
680         debug_bb_slim): Likewise.
681         * tree-inline.h (struct copy_body_data): Likewise.
682         * sched-rgn.c (dump_region_dot): Likewise.
683         * gimple.h (struct gimple_statement_base, gimple_set_bb,
684         gsi_move_to_bb_end): Likewise.
685         * sched-vis.c (debug_bb_slim): Likewise.
686         (debug_bb_n_slim): Likewise.
687         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
688         (mn10300_block_contains_call):
690 2012-07-11  Greta Yorsh  <Greta.Yorsh@arm.com>
692         PR target/53859
693         * config/arm/arm.c (arm_early_load_addr_dep): Handle new
694         epilogue patterns.
696 2012-07-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
698         * doc/extend.texi (Namespace Association): Alter cautionary text.
700 2012-07-10  Oleg Endo  <olegendo@gcc.gnu.org>
702         PR target/53911
703         * config/sh/sh.md: Remove displacement addresssing related splits.
705 2012-07-10  Xinliang David Li  <davidxl@google.com>
707         * doc/invoke.texi: New option documented.
708         * flag-types.h: New enum type.
709         * gimplify.c (gimplify_bind_expr): Control
710         clobber generation with new option.
711         (gimplify_target_expr): Ditto.
712         * common.opt: New option.
714 2012-07-10  Julian Brown  <julian@codesourcery.com>
716         * config/arm/arm.md (movsi): Don't split symbol refs here.
717         (define_split): New.
719 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
721         PR bootstrap/53913
722         * config/m68k/m68k.c (m68k_epilogue_uses): New.
723         * config/m68k/m68k.h (EPILOGUE_USES): Use it.
724         * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
726 2012-07-10  Richard Henderson  <rth@redhat.com>
728         * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
729         * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
730         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
731         * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
732         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
733         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
734         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
735         (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
736         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
737         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
738         (bdesc_args): Remove entries to match.
739         (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
740         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
741         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
742         * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
743         (rs6000_builtin_mul_widen_odd): Remove.
744         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
745         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
746         * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
747         (spu_builtin_mul_widen_odd): Remove.
748         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
749         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
750         * doc/tm.texi.in: Don't document the removed hooks.
752         * tree-vect-stmts.c (supportable_widening_operation): Expand
753         WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
755         * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
756         (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
757         * optabs.c (can_mult_highpart_p): New.
758         (expand_mult_highpart): New.
759         * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
760         * tree-vect-generic.c (expand_vector_operations_1): Don't expand
761         by pieces if can_mult_highpart_p.
762         (expand_vector_divmod): Use can_mult_highpart_p and always
763         generate MULT_HIGHPART_EXPR.
764         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
765         * tree-vect-stmts.c (vectorizable_operation): Likewise.
767         * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
768         (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
769         * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
770         (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
771         (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
772         (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
773         * config/spu/spu-builtins.def: Update pattern names to match.
775         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
776         from altivec_vmuleub.
777         (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
778         (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
779         (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
780         (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
781         (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
782         (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
783         (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
784         * config/rs6000/rs6000-builtin.def: Update pattern names to match.
786         * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
787         avx2_umulv4siv4di3.
788         (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
789         (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
790         (mulv4si3): Remove XOP test shadowed by SSE4 test.
791         * config/i386/i386.c (bdesc_args): Update pattern names.
792         (ix86_expand_sse2_mulvxdi3): Likewise.
793         (ix86_expand_mul_widen_evenodd): Likewise.  Remove XOP test
794         shadowed by SSE4 test.
796         * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
797         * cfgexpand.c (expand_debug_expr): Handle them.
798         * expr.c (expand_expr_real_2): Likewise.
799         * fold-const.c (fold_binary_loc): Likewise.
800         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
801         * optabs.c (optab_for_tree_code): Likewise.
802         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
803         * tree-inline.c (estimate_operator_cost): Likewise.
804         * tree-pretty-print.c (dump_generic_node): Likewise.
805         * tree.c (commutative_tree_code): Likewise.
806         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
807         Handle type change before looking up optab.
808         * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
809         (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
810         (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
811         (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
812         * genopinit.c (optabs): Initialize them.
813         * doc/md.texi: Document them.
815 2012-07-10  Dehao Chen  <dehao@google.com>
817         * tree.h (phi_arg_d): New field.
818         * tree-flow-inline.h (gimple_phi_arg_block): New function.
819         (gimple_phi_arg_block_from_edge): New function.
820         (gimple_phi_arg_set_block): New function.
821         (gimple_phi_arg_has_block): New function.
822         (redirect_edge_var_map_block): New function.
823         * tree-flow.h (_edge_var_map): New field.
824         * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
825         * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
826         redirect_edge_var_map_add.
827         * tree-outof-ssa.c (_elim_graph): New field.
828         (insert_partition_copy_on_edge): New parameter.
829         (insert_value_copy_on_edge): New parameter.
830         (insert_rtx_to_part_on_edge): New parameter.
831         (insert_part_to_rtx_on_edge): New parameter.
832         (elim_graph_add_edge): New parameter.
833         (elim_graph_remove_succ_edge): New parameter.
834         (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
835         (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
836         (new_elim_graph): Add block debug info.
837         (clear_elim_graph): Likewise.
838         (delete_elim_graph): Likewise.
839         (elim_graph_add_node): Likewise.
840         (elim_graph_add_edge): Likewise.
841         (elim_graph_remove_succ_edge): Likewise.
842         (eliminate_build): Likewise.
843         (elim_forward): Likewise.
844         (elim_unvisited_predecessor): Likewise.
845         (elim_backward): Likewise.
846         (elim_create): Likewise.
847         (eliminate_phi): Likewise.
848         (insert_backedge_copies): Likewise.
849         * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
850         add_phi_arg.
851         (rewrite_add_phi_arguments): Likewise.
852         * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
853         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
854         * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
855         * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
856         * tree-ssa-loop-manip.c (create_iv): Likewise.
857         (add_exit_phis_edge): Likewise.
858         (split_loop_exit_edge): Likewise.
859         (copy_phi_node_args): Likewise.
860         (tree_transform_and_unroll_loop): Likewise.
861         * value-prof.c (gimple_ic): Likewise.
862         (gimple_stringop_fixed_value): Likewise.
863         * tree-tailcall.c (add_successor_phi_arg): Likewise.
864         (eliminate_tail_call): Likewise.
865         (create_tailcall_accumulator): Likewise.
866         (tree_optimize_tail_calls_1): Likewise.
867         * tree-phinodes.c (add_phi_arg): Likewise.
868         (make_phi_node): Likewise.
869         (resize_phi_node): Likewise.
870         (remove_phi_arg_num): Likewise.
871         * omp-low.c (expand_parallel_call): Likewise.
872         (expand_omp_for_static_chunk): Likewise.
873         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
874         Likewise.
875         (slpeel_update_phi_nodes_for_guard1): Likewise.
876         (slpeel_update_phi_nodes_for_guard2): Likewise.
877         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
878         (set_prologue_iterations): Likewise.
879         (slpeel_tree_peel_loop_to_edge): Likewise.
880         (vect_loop_versioning): Likewise.
881         * tree-parloops.c (create_phi_for_local_result): Likewise.
882         (transform_to_exit_first_loop): Likewise.
883         (create_parallel_loop): Likewise.
884         * ipa-split.c (split_function): Likewise.
885         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
886         (vect_create_epilog_for_reduction): Likewise.
887         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
888         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
889         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
890         (cond_if_else_store_replacement_1): Likewise.
891         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
892         (remove_forwarder_block_with_phi): Likewise.
893         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
894         * tree-predcom.c (initialize_root_vars): Likewise.
895         (initialize_root_vars_lm): Likewise.
896         * sese.c (sese_add_exit_phis_edge): Likewise.
897         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
898         * tree-ssa.c (flush_pending_stmts): Likewise.
899         (redirect_edge_var_map_add): Likewise.
900         (ssa_redirect_edge): Likewise.
901         * gimple-streamer-in.c (input_phi): Likewise.
902         * tree-vect-stmts.c (vectorizable_load): Likewise.
903         * tree-inline.c (copy_phis_for_bb): Likewise.
904         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
905         * tree-switch-conversion.c (fix_phi_nodes): Likewise.
906         * tree-cfg.c (reinstall_phi_args): Likewise.
907         (gimple_make_forwarder_block): Likewise.
908         (add_phi_args_after_copy_edge): Likewise.
909         (gimple_duplicate_sese_tail): Likewise.
911 2012-07-09  Oleg Endo  <olegendo@gcc.gnu.org>
913         PR target/53886
914         * config/sh/sh.c (sequence_insn_p): New function.
915         (find_barrier, sh_insn_length_adjustment): Use it.
917 2012-07-09  Iain Sandoe  <iain@codesourcery.com>
919         PR target/53283
920         * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
921         if defined.
922         * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
923         SUBTARGET_FOLD_BUILTIN.
924         * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
925         SUBTARGET_FOLD_BUILTIN.
927 2012-07-09  Iain Sandoe  <iain@codesourcery.com>
929         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
930         runtime exceptions model setting from here ...
931         * config/darwin.c (darwin_override_options): ... to here.
933 2012-07-09  Steven Bosscher  <steven@gcc.gnu.org>
935         PR tree-optimization/53887
936         * tree-cfg.c (group_case_labels_stmt): Make non-static.
937         * tree-flow.h (group_case_labels_stmt): Add prototype.
938         * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
939         to pre-process every switch.
941 2012-07-09  Jason Merrill  <jason@redhat.com>
943         PR c++/53882
944         * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
945         (type_hash_eq): Likewise.
947 2012-07-09  Tom de Vries  <tom@codesourcery.com>
948             Richard Guenther  <rguenther@suse.de>
950         * tree-ssa-ccp.c (optimize_unreachable): New function.
951         (execute_fold_all_builtins): Use optimize_unreachable to optimize
952         BUILT_IN_UNREACHABLE.  Don't optimize after BUILT_IN_UNREACHABLE.
954 2012-07-09  Richard Guenther  <rguenther@suse.de>
956         PR bootstrap/53898
957         * graphite-optimize-isl.c: Make sure CU is not empty.
959 2012-07-09  Steven Bosscher  <steven@gcc.gnu.org>
961         * gensupport.c (init_rtx_reader_args_cb): Start counting code
962         generating patterns from 1 to free up 0 for CODE_FOR_nothing.
963         * gencodes.c (main): Give CODE_FOR_nothing the value 0.  Add
964         the LAST_INSN_CODE marker at the end.
965         * genoutput.c (nothing): New static struct data.
966         (idata): Initialize to &nothing.
967         (idata_end): Initialize to &nothing.next.
968         (init_insn_for_nothing): New function to create dummy 'nothing' insn.
969         (main): Use it.
970         * genpeep.c (insn_code_number): Remove global variable.
971         (gen_peephole): Take it as an argument instead.
972         (main): Take insn_code_number from read_md_rtx.
973         * optabs.h: Revert r161809:
974         (optab_handlers): Change type of insn_code back to insn_code.
975         (optab_handler, widening_optab_handler, set_optab_handler,
976         set_widening_optab_handler, convert_optab_handler,
977         set_convert_optab_handler, direct_optab_handler,
978         set_direct_optab_handler): Remove int casts.
979         Revert to treating the insn_code field as "insn_code".
981 2012-07-08  Oleg Endo  <olegendo@gcc.gnu.org>
983         * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
984         * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
985         * config/sh/sh-protos.h: Declare it.
987 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
989         * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
990         (dump_fixup_graph): Use current_function_name.
991         (adjust_cfg_counts): Likewise.
992         * ira-conflicts.c: Do not include tree.h.
993         (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
995 2012-07-08  Oleg Endo  <olegendo@gcc.gnu.org>
997         PR target/51244
998         * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
1000 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1002         * basic-block.h: Re-group most prototypes per file.
1003         (struct edge_list): Remove num_blocks field.
1004         (dump_bb_info): Adjust prototypes.
1005         (dump_reg_info): Move prototype to regs.h.
1006         * function.h: Do not include tree.h.
1007         Include vec.h, vecir.h, input.h and machmode.h to compensate.
1008         (function_name): New prototype.
1009         * gimple.h: Include tree.h to compensate for basic-block.h change.
1010         * langhooks.h: Note that tree.h is only necessary for enum tree_code.
1011         * regs.h (dump_reg_info): Prototype here.
1012         * regset.h: Adjust file reference in comment.
1013         (debug_regset): Remove prototype.
1014         * rtl.h: Include flags.h for flag_var_tracking_assignments.
1015         (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
1016         instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
1017         (dump_reg_info, dump_flow_info): Remove prototypes.
1018         * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
1019         to here, the only user.  Make static.
1020         (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
1021         * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
1022         flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
1023         tree-pass.h, cfgloop.h, and tree-flow.h.
1024         Include basic-block.h, the first header I'd expect to be included.
1025         (reg_obstack): Move to df-core.c.
1026         (free_edge): Remove bogus ATTRIBUTE_UNUSED.
1027         (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
1028         (redirect_edge_succ_nodup): Move to cfghooks.c.
1029         (dump_regset, debug_regset): Move to df-core.c.
1030         (dump_bb_info): Move to cfgrtl.c.
1031         (dump_reg_info): Move to regstat.c.
1032         (dump_flow_info): Move to cfgrtl.c.
1033         (debug_flow_info): Likewise.
1034         (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
1035         * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
1036         insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
1037         (flow_active_insn_p, forwarder_block_p, can_fallthru,
1038         could_fall_through): Move to cfgrtl.c.
1039         (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
1040         (create_edge_list): Do not set edge_list's removed num_blocks.
1041         (print_edge_list): Look at n_basic_blocks instead of num_blocks.
1042         (flow_nodes_print): Remove.
1043         (flow_edge_list_print): Remove.
1044         (inverted_post_order_compute): Use FOR_ALL_BB.
1045         *cfgrtl.c (dump_flow_info): Moved from cfg.c.
1046         Do not call dump_reg_info.
1047         (debug_flow_info): Moved from cfg.c
1048         (dump_bb_info): Moved from cfg.c.  Take 'verbose' argument
1049         to avoid looking at TDF_* flags from tree-pass.h.
1050         (flow_active_insn_p, forwarder_block_p, can_fallthru,
1051         could_fall_through): Moved from cfganal.c.
1052         (print_rtl_with_bb): Adjust dump_bb_info calls.
1053         * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
1054         (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
1055         (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
1056         * cselib.c: Include tree.h with a FIXME.
1057         * df-core.c (reg_obstack): Moved from cfg.c.
1058         (dump_regset): Likewise.
1059         (debug_regset): Likewise.  Make a DEBUG_FUNCTION.
1060         * final.c (compute_alignments): Call dump_reg_info before
1061         dump_flow_info.
1062         * function.c (function_name): New function.
1063         (current_function_name): Use it.
1064         * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
1065         dump_flow_info.
1066         * ira-conflicts.c: Include tree.h with a note.
1067         * regstat.c (dump_reg_info): Moved here from cfg.c.
1068         * loop-init.c: Include regs.h instead of hard-reg-set.h.
1069         (rtl_loop_init): Call dump_reg_info before dump_flow_info.
1070         (rtl_loop_done): Likewise.
1071         * mcf.c: Include tree.h before langhooks.h.
1072         * predict.c (maybe_hot_count_p): Assert we have cfun.
1073         (probably_never_executed_bb_p): Likewise.
1074         * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
1075         instead of dump_flow_info.
1076         * sched-deps.c: Include tree.h with a FIXME.
1077         (call_may_noreturn_p): Add FIXME note why this function has to
1078         look at function decls instead of function decl flags.
1079         * sched-vis.c: Include tree.h with a FIXME.
1080         (print_rtl_slim): Adjust dump_bb_info uses.
1081         * statistics.c (statistics_fini_pass_2): Use current_function_name
1082         to avoid including tree.h.
1083         (statistics_counter_event): Use function_name for the same reason.
1084         (statistics_histogram_event): Likewise.
1085         * tracer.c (tracer): Remove bogus gcc_assert.  Use brief_dump_cfg
1086         instead of dump_flow_info.
1087         * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
1088         before dump_flow_info.
1089         * doc/cfg.texi: Update CFG documentation.
1090         * Makefile.in (RTL_H): Depend on FLAGS_H.
1091         (GIMPLE_H): Depend on TREE_H.
1092         (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
1093         but no longer on TREE_H.
1094         (C_COMMON_H): Depend on TREE_H.
1095         (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
1096         sched-deps.o, sched-vis.o): Fixup dependencies.
1098 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1100         * alias.h: Do not include coretypes.h in header files.
1101         * cppbuiltin.h: Likewise.
1102         * double-int.h: Likewise.
1103         * gimple-fold.h: Likewise.
1104         * flags.h: Likewise.
1105         * tree-ssa-alias.h: Likewise.
1106         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
1107         OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
1108         * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
1109         (TREE_H): Likewise.
1110         (ALIAS_H): Do not depend on coretypes.h.
1111         (FLAGS_H): Likewise.
1112         (realmpfr.o): Depend on coretypes.h.
1114 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1116         * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
1117         gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
1119 2012-07-07  Richard Earnshaw  <rearnsha@arm.com>
1121         * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
1122         (TARGET_FPA): Delete definition.
1123         (TARGET_MAVERICK): Likewise.
1124         (TARGET_FPA_EMU2): Likewise.
1125         (arm_fp_model): Remove FPA and Maverick models.
1126         (arm_arch_cirrus): Delete declaration.
1127         (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
1128         (FIXED_REGISTERS): Remove FPA and Maverick support.  Reorganize.
1129         (CALL_USED_REGISTERS): Likewise.
1130         (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
1131         (FIRST_VFP_REGNUM): Renumbered.
1132         (D7_VFP_REGNUM): Chain definition.
1133         (LAST_LO_VFP_REGNUM): Likewise.
1134         (FIRST_HI_VFP_REGNUM): Likewise.
1135         (LAST_HI_VFP_REGNUM): Likewise.
1136         (FIRST_IWMMXT_GR_REGNUM): Likewise.
1137         (LAST_IWMMXT_GR_REGNUM): Likewise.
1138         (FIRST_IWMMXT_REGNUM): Likewise.
1139         (LAST_IWMMXT_REGNUM): Likewise.
1140         (FRAME_POINTER_REGNUM): Renumbered.
1141         (ARG_POINTER_REGNUM): Renumbered.
1142         (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
1143         (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
1144         (HARD_REGNO_REGNUM): Remove FPA support.
1145         (REG_ALLOC_ORDER): Remove FPA and Maverick registers.  Reorganize.
1146         (reg_class): Likewise.
1147         (REG_CLASS_NAMES): Likewise.
1148         (REG_CLASS_CONTENTS): Likewise.
1149         (CANNOT_CHANGE_MODE_CLASS): Never true.  Update comment.
1150         (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
1151         (CLASS_MAX_NREGS): Remove FPA and Maverick support.
1152         * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
1153         Reorganize.  Use AAPCS preferred names.
1154         (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick.  Update
1155         comments.
1156         (OVERLAPPING_REGISTER_NAMES): Update register numbering.
1157         * arm.c (FL_CIRRUS): Delete definition.
1158         (arm_arch_cirrus): Delete variable.
1159         (arm_float_words_big_endian): Delete function.
1160         (cirrus_memory_offset): Delete function.
1161         (output_mov_long_double_fpa_from_arm): Delete function.
1162         (output_mov_long_double_arm_from_fpa): Delete function.
1163         (output_mov_double_fpa_from_arm): Delete function.
1164         (output_mov_double_arm_from_fpa): Delete function.
1165         (emit_sfm): Delete function.
1166         (maybe_get_arm_condition_code): Update comment.
1167         (arm_file_start): Always use softvfp for softfloat systems.
1168         (thumb_core_reg_alloc_order): Adjust for updated register allocation.
1169         (arm_option_override): Remove FPA and Maverick support.  Always
1170         default to vfp as the fallback FPU format.
1171         (use_return_insn): Remove FPA support.
1172         (arm_get_frame_offsets): Likewise.
1173         (arm_save_coproc_regs): Likewise.
1174         (arm_canonicalize_comparison): Remove Maverick support.
1175         (arm_select_cc_mode): Likewise.
1176         (arm_gen_compare_reg): Likewise.
1177         (arm_print_operand): Likewise.
1178         (arm_libcall_value_1): Remove FPA and Maverick support.
1179         (arm_function_value_regno_p): Likewise.
1180         (arm_apply_result_size): Likewise.
1181         (arm_legitimate_index_p): Likewise.
1182         (thumb2_legitimate_index_p): Likewise.
1183         (legitimize_reload_address): Likewise.
1184         (arm_register_move_cost): Likewise.
1185         (arm_hard_regno_mode_ok): Likewise.
1186         (arm_regno_class): Likewise.
1187         (arm_dbx_register_number): Likewise.
1188         (arm_emit_unwind_sequence): Likewise.
1189         (arm_conditional_register_usage): Likewise.
1190         * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
1191         (cirrus_memory_offset): Likewise.
1192         (output_move_long_double_fpa_from_arm): Likewise.
1193         (output_move_long_double_arm_from_fpa): Likewise.
1194         (output_move_double_fpa_from_arm): Likewise.
1195         (output_move_double_arm_from_fpa): Likewise.
1196         (arm_float_words_big_endian): Likewise.
1197         * arm.md (CC_REGNUM): Renumbered.
1198         (VFPCC_REGNUM): Moved here.  Renumbered.
1199         (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
1200         (attr fpu): Remove FPA and Maverick support.
1201         * vfp.md (VFPCC_REGNUM): Delete.  Moved to arm.md.
1202         * arm-cores.def (ep9312): Remove Maverick support.
1203         * arm-arches.def (ep9312): Delete architecture.
1204         * arm-tables.opt: Regenerated.
1206         * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
1208 2012-07-07  Steven Bosscher  <steven@gcc.gnu.org>
1210         PR tree-optimization/53881
1211         * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
1212         comparing labels to establish uniqueness of a switch case target,
1213         use the CFG instead.
1215 2012-07-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
1217         * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
1218         due to negative shift amount.
1220 2012-07-07  Hans-Peter Nilsson  <hp@axis.com>
1222         Fix configure test for "stack protector support in target C library".
1223         * configure.ac (test_prefix, test_exec_prefix): Move setting from
1224         inside sysroot handling to before and outside it.
1225         * configure: Regenerate.
1227 2012-07-06  Kai Tietz  <ktietz@redhat.com>
1229         PR bootstrap/52947
1230         * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
1231         as "/mingw/include".
1233 2012-07-06  Alexandre Oliva  <aoliva@redhat.com>
1235         PR debug/53820
1236         * var-tracking.c (vt_add_function_parameter): Convert
1237         internal_arg_pointer into arg_pointer-based address even
1238         without DRAP.
1240 2012-07-06  Alexandre Oilva  <aoliva@redhat.com>
1242         PR rtl-optimization/53827
1243         PR debug/53671
1244         PR debug/49888
1245         * alias.c (memrefs_conflict_p): Adjust offset and size by the
1246         same amount for alignment ANDs.
1248 2012-07-06  Tom de Vries  <tom@codesourcery.com>
1250         PR tree-optimization/51879
1251         * tree-ssa-sccvn.c (copy_reference_ops_from_call)
1252         (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
1253         (visit_use): Also call visit_reference_op_call for calls with a vdef.
1255 2012-07-06  Tom de Vries  <tom@codesourcery.com>
1257         PR tree-optimization/52009
1258         * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
1259         value numbers of gimple_vdef.
1260         * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
1261         prototype.
1262         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
1263         (vn_reference_insert): Add and handle vdef parameter.
1264         (visit_reference_op_load): Add argument to vn_reference_insert call.
1265         (visit_reference_op_store): Find value number of vdef of store.  Insert
1266         value number of vdef of store.
1268 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
1270         * config/i386/i386.md (simple lea to add peephole): Also transform
1271         RTXes where second PLUS operand matches output.
1273 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
1275         * config/i386/i386.c (construct_plt_address): Make static.
1276         * config/i386/i386-protos.h (construct_plt_address): Remove.
1278 2012-07-06  Nick Clifton  <nickc@redhat.com>
1280         * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
1281         default_encode_section_info.
1283 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
1285         PR target/53853
1286         * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
1287         emit PIC sequence for fnaddr symbol reference in advance.
1289 2012-07-06  Eric Botcazou  <ebotcazou@adacore.com>
1291         Revert
1292         2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
1294         * dwarf2out.c (function_possibly_abstracted_p): New static function.
1295         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
1296         cgraph_function_possibly_inlined_p.
1297         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
1298         (process_scope_var): Do not emit concrete instances of abstracted
1299         nested functions from here.
1300         (gen_decl_die): Emit the abstract instance if the function is possibly
1301         abstracted and not only possibly inlined.
1302         (dwarf2out_finish): Find the first non-abstract parent instance and
1303         attach concrete instances on the limbo list to it.
1305 2012-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1306             Julian Brown  <julian@codesourcery.com>
1308         PR target/48941
1309         PR target/51980
1310         * config/arm/neon-gen.ml (return_by_ptr): Delete.
1311         (print_function): Handle empty strings.
1312         (return): Delete use of return_by_ptr.
1313         (mask_shape_for_shuffle): New function.
1314         (mask_elems): Likewise.
1315         (shuffle_fn): Likewise.
1316         (params): Simplify and remove use of return_by_ptr.
1317         (get_shuffle): New function.
1318         (print_variant): Update.
1319         * config/arm/neon.ml (rev_elems): New function.
1320         (permute_range): Likewise.
1321         (zip_range): Likewise.
1322         (uzip_range): Likewise.
1323         (trn_range): Likewise.
1324         (zip_elems): Likewise.
1325         (uzip_elems): Likewise.
1326         (trn_elems): Likewise.
1327         (features): New enumeration Use_shuffle. Delete ReturnPtr.
1328         (pf_su_8_16): New.
1329         (suf_32): New.
1330         (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
1331         * config/arm/arm_neon.h: Regenerate.
1333 2012-07-05  Richard Guenther  <rguenther@suse.de>
1335         * tree-pretty-print.c (dump_generic_node): Properly test
1336         the result of exact_log2.
1338 2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1340         * config/s390/s390-protos.h (s390_expand_movmem)
1341         (s390_expand_cmpmem): Add return value.
1342         * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
1343         Return FALSE to use the library function in some cases.
1344         * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
1345         helper functions.
1347 2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1349         * config.gcc: Enable ifunc attribute by default on s390 and s390x.
1351 2012-07-05  Steven Bosscher  <steven@gcc.gnu.org>
1353         * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
1354         * stmt.c (dump_case_nodes): New.
1355         (expand_case): Split out code generation parts into new functions.
1356         (expand_switch_as_decision_tree_p): Split out from expand_case.
1357         (emit_case_decision_tree): Likewise.
1358         (emit_case_dispatch_table): Likewise.
1360 2012-07-05  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1362         * config/arm/iterators.md (SDF): New mode iterator.
1363         (V_if_elem): Add support for SF and DF modes.
1364         (V_reg): Likewise.
1365         (F_constraint): New mode iterator attribute.
1366         (F_fma_type): Likewise.
1367         config/arm/vfp.md (fma<SDF:mode>4): New pattern.
1368         (*fmsub<SDF:mode>4): Likewise.
1369         (*fmnsub<SDF:mode>4): Likewise.
1370         (*fmnadd<SDF:mode>4): Likewise.
1372 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
1374         * expmed.c (expand_mult): Initialize coeff and is_neg.
1376 2012-07-04  Oleg Endo  <olegendo@gcc.gnu.org>
1378         * config/sh/predicates.md (zero_extend_operand): New predicate.
1379         * config/sh/sh.md (zero_extendhisi2): Simplify by using new
1380         zero_extend_operand predicate.
1381         (zero_extendqisi2): Likewise.
1383 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
1385         PR middle-end/53321
1386         * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
1387         to not call cgraph_propagate_frequency if something was changed.
1389 2012-07-04  Richard Guenther  <rguenther@suse.de>
1391         PR middle-end/53433
1392         * gimple-fold.c (get_base_constructor): Do not return an
1393         error_mark_node DECL_INITIAL.
1395 2012-07-04  Richard Guenther  <rguenther@suse.de>
1397         PR tree-optimization/53844
1398         * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
1399         the loop virtual PHI.
1401 2012-07-04  Richard Guenther  <rguenther@suse.de>
1403         PR tree-optimization/53849
1404         * tree-cfg.c (move_stmt_op): Only call add_referenced_var
1405         for duplicated locals.  Use add_referenced_var_1 to avoid
1406         pushing/popping cfun.
1408 2012-07-04  Kai Tietz  <ktietz@redhat.com>
1410         * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
1411         * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
1412         prototype.
1413         * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
1414         as i386_pe_reloc_rw_mask.
1416 2012-07-04  Richard Guenther  <rguenther@suse.de>
1418         * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
1419         as in free_lang_data_in_type.
1421 2012-07-04  Tobias Grosser <tobias@grosser.es>
1422             Michael Matz  <matz@suse.de>
1424         * Makefile.in (OBJS): Add graphite-optimize-isl.o.
1425         (graphite-optimize-isl.o): Add dependencies.
1426         * common.opt (floop-nest-optimize): New flag.
1427         * doc/invoke.texi (floop-nest-optimize): Document.
1428         * graphite-dependences.c (compute_deps): Export.
1429         * graphite-poly.h (compute_deps): Declare.
1430         * graphite-optimize-isl.c: New file.
1431         * graphite-poly.c (apply_poly_transforms): Run the loop
1432         nest optimizer.
1433         * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
1434         if -floop-nest-optimize is enabled.
1436 2012-07-03  Oleg Endo  <olegendo@gcc.gnu.org>
1438         * config/sh/predicates.md (logical_and_operand): New predicate.
1439         * config/sh/constraints.md (Jmb, Jmw): New constraints.
1440         * config/sh/sh.md (andsi3): Move expander above insns.  Add handling
1441         of 0xFFFF constant.  Use logical_and_operand predicate and
1442         satisfies_constraint_Jmb, satisfies_constraint_Jmw.
1443         (*andsi3_compact): Make it an insn_and_split.  Use
1444         logical_and_operand predicate.  Add Jmb,Jmw alternatives.
1446 2012-07-03  Jason Merrill  <jason@redhat.com>
1448         PR c++/53826
1449         * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
1451 2012-07-03  Nick Clifton  <nickc@redhat.com>
1453         * config/mep/mep.c (mep_reorg_regmove): Use
1454         next_nonnote_non_debug_insn to advance to the next insn.  Do not
1455         expect delete_insn to return an rtx.
1457 2012-07-03  Richard Guenther  <rguenther@suse.de>
1459         * doc/install.texi (CLooG): Clarify how CLooG needs to be
1460         configured and that it needs to be built against ISL 0.10.
1462 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1464         * config/i386/i386.c (ix86_option_override_internal): Fix wrong
1465         code model string in the error message.
1467 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1469         PR target/53811
1470         * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
1471         sibcall_insn_operand.  Move it to a temporary register if not.
1473 2012-07-03  Andreas Schwab  <schwab@linux-m68k.org>
1475         PR target/28896
1476         * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
1477         if !TARGET_68020.
1479 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1481         * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
1483 2012-07-03  Roland McGrath  <mcgrathr@google.com>
1485         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
1486         assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
1487         * configure: Regenerated.
1488         * config/i386/i386.md (simple_return_internal_long): Use %;
1489         (ctz<mode>2): Likewise.
1490         (*pause): Likewise.
1492 2012-07-02  Oleg Endo  <olegendo@gcc.gnu.org>
1494         PR target/51244
1495         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
1496         predicates.
1497         * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
1498         * config/sh/sh.c (get_t_reg_rtx): New function.  Use it when invoking
1499         gen_branch_true and gen_branch_false.
1500         * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
1501         gen_branch_false.
1502         (branch_true, branch_false): Use t_reg_operand predicate.
1503         (*branch_true, *branch_false): Delete.
1504         (movt): Use t_reg_operand predicate.
1505         (*negnegt): Use negt_reg_operand predicate and fold little and big
1506         endian variants.
1507         (*movtt): Use t_reg_operand and fold little and big endian variants.
1508         (*movt_qi): Delete.
1510 2012-07-02  Steven Bosscher  <steven@gcc.gnu.org>
1512         * stmt.c (emit_case_bit_tests): Remove.
1513         (expand_case): Remove expand_switch_using_bit_tests_p code.
1514         * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
1515         (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
1516         (lshift_cheap_p): Likewise.
1517         (expand_switch_using_bit_tests_p): Likewise.
1518         (struct case_bit_test): Likewise.
1519         (case_bit_test_cmp): Likewise.
1520         (emit_case_bit_tests): New implementation for GIMPLE.
1521         (gen_inbound_check): Do not release post-dominator info here.
1522         (process_switch): Reorder code.  Expand as bit tests if it
1523         looks like a win.
1524         (do_switchconv): Release post-dominator info here if something changed.
1525         (struct gimple_opt_pass): Verify more.
1526         * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
1528 2012-07-02  Martin Jambor  <mjambor@suse.cz>
1530         PR middle-end/38474
1531         * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
1532         dynamic type change check.
1534 2012-07-02  Richard Guenther  <rguenther@suse.de>
1535             Michael Matz  <matz@suse.de>
1536             Tobias Grosser <tobias@grosser.es>
1537             Sebastian Pop <sebpop@gmail.com>
1539         * Makefile.in: Remove PPL flags in favor of ISL ones.
1540         (BACKENDLIBS): Remove PPL libs.
1541         (INCLUDES): Remove PPL includes in favor of ISL ones.
1542         (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
1543         graphite-cloog-compat.h dependencies.
1544         (graphite-dependences.o): Likewise.
1545         (graphite-poly.o): Likewise.
1546         * configure.ac: Declare ISL vars instead of PPL ones.
1547         * configure: Regenerated.
1548         * doc/install.texi: Replace PPL requirement documentation with ISL one.
1549         * graphite-blocking.c: Remove PPL code, add ISL equivalent.
1550         * graphite-clast-to-gimple.c: Likewise.
1551         * graphite-dependences.c: Likewise.
1552         * graphite-interchange.c: Likewise.
1553         * graphite-poly.h: Likewise.
1554         * graphite-poly.c: Likewise.
1555         * graphite-sese-to-poly.c: Likewise.
1556         * graphite.c: Likewise.
1557         * graphite-scop-detection.c: Re-arrange includes.
1558         * graphite-cloog-util.c: Remove.
1559         * graphite-cloog-util.h: Likewise.
1560         * graphite-ppl.h: Likewise.
1561         * graphite-ppl.c: Likewise.
1562         * graphite-dependences.h: Likewise.
1564 2012-07-02  Richard Guenther  <rguenther@suse.de>
1566         Merge from graphite branch
1567         2011-07-21  Tobias Grosser  <tobias@grosser.es>
1569         * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
1570         Remove graphite-cloog-util.h.
1571         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
1572         build_iv_mapping, translate_clast_user, translate_clast,
1573         free_scattering, initialize_cloog_names, build_cloog_prog,
1574         create_params_index): Do not use old compatibility functions.
1575         (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
1576         * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
1577         compatibility functions.
1578         (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
1579         cloog.
1580         * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
1581         * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
1582         cloog_finalize().
1583         * graphite-cloog-compat.h: Remove.
1585         2011-08-09  Tobias Grosser <tobias@grosser.es>
1587         * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
1588         of the string, no just a reference.
1589         (clast_name_index): Add a new field, that specifies if we need to free
1590         the name.
1591         (free_clast_name_index): If necessary, free the name string.
1592         (clast_name_index_elt_info): Calculate the hash based on the string
1593         content, not the memory location it is stored in.
1594         (clast_name_to_level): Specify that we do not need to free the name.
1595         (clast_name_to_index): Dito.
1596         (clast_name_to_lb_ub): Dito.
1597         (eq_clast_name_indexes): Compare the strings, not their base pointers.
1598         (free_scattering): Removed.
1599         (initialize_cloog_names): Renamed to add_names_to_union_domain().
1600         (add_names_to_union_domain): Changed to work on a union_domain,
1601         instead of a CloogNames structure.
1602         (build_cloog_prog): Removed.
1603         (build_cloog_union_domain): New.
1604         (generate_cloog_input): New.
1605         (scop_to_clast): Use CloogInput instead of CloogProgram.
1606         (print_generated_program): Adapt to new scop_to_clast() and do not
1607         print the CloogProgram any more.
1608         (create_params_index): Removed, functionality integrated in
1609         add_names_to_union_domain().
1610         (gloog): Adapt to new scop_to_clast().
1611         * graphite-clast-to-gimple.h (scop_to_clast): Remove.
1613         2012-01-11  Tobias Grosser <tobias@grosser.es>
1615         * graphite-clast-to-gimple.c (clast_name_to_index,
1616         clast_name_to_lb_ub, clast_name_to_gcc): Change types.
1617         (clast_to_gcc_expression): Add clast_expr_name as a new
1618         case. Do not assume a clast_expr_term points always to a
1619         clast_expr_name.
1620         (type_for_clast_term): Do not assume a clast_expr_term points always to
1621         a clast_expr_name.
1622         (type_for_clast_name): New.
1623         (type_for_clast_expr): Add clast_expr_name as a new case.
1625         2011-08-03  Sebastian Pop <sebpop@gmail.com>
1627         * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
1628         new_Cloog_Scattering_from_ppl_Polyhedron,
1629         new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
1631 2012-07-02  Jakub Jelinek  <jakub@redhat.com>
1633         PR tree-optimization/53645
1634         * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
1635         instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
1637 2012-07-01  Wei Guozhi  <carrot@google.com>
1639         PR target/53447
1640         * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
1641         * config/arm/arm.c (const_ok_for_dimode_op): New function.
1642         * config/arm/constraints.md (Dd): New constraint.
1643         * config/arm/predicates.md (arm_adddi_operand): New predicate.
1644         * config/arm/arm.md (adddi3): Extend it to handle constants.
1645         (arm_adddi3): Likewise.
1646         (addsi3_carryin_<optab>): Extend it to handle sbc case.
1647         (addsi3_carryin_alt2_<optab>): Likewise.
1648         * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
1650 2012-06-30  Nathan Sidwell  <nathan@acm.org>
1652         * coverage.c (bbg_file_stamp): New.
1653         (read_counts_file): Merge incoming stamp with bbg_file_stamp.
1654         (build_info): Write bbg_file_stamp.
1655         (coverage_init): Initialize bbg_file_stamp.  Read counts file
1656         before writing graph header.
1657         (coverage_finish): Don't unlink the data file if we can generate a
1658         unique file stamp.
1659         * tree.h (crc32_unsigned): Declare.
1660         * tree.c (crc32_unsigned_bits): New, broken out of ...
1661         (crc32_byte): ... here.  Use it.
1662         (crc32_unsigned): New.
1664 2012-06-29  Cary Coutant  <ccoutant@google.com>
1666         * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
1667         (gen_subprogram_die): Don't add pubname if want_pubnames is false.
1668         (gen_variable_die): Likewise.
1669         (gen_namespace_die): Likewise.
1671 2012-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1673         * tree-eh.c (lower_try_finally_switch): Really put the location of the
1674         last statement of the finally block onto the switch.
1676 2012-06-29  H.J. Lu  <hongjiu.lu@intel.com>
1678         PR target/53539
1679         * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
1680         TARGET_LP64.
1682 2012-06-29  Sterling Augustine  <saugustine@google.com>
1684         * dwarf2out.c (add_pubname): Add comment.
1685         (add_pubtype): Fix indentation.
1686         (gen_enumeration_type_die): Likewise.
1688 2012-06-29  Jakub Jelinek  <jakub@redhat.com>
1690         * tree-vect-generic.c (expand_vector_divmod): For even/odd
1691         widening multiply, put even always as first argument to VEC_PERM_EXPR.
1693 2012-06-29  Richard Henderson  <rth@redhat.com>
1695         * tree-vect-generic.c: Include target.h.
1696         (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
1697         * Makefile.in (tree-vect-generic.o): Update.
1699 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1701         * configure.ac: Remove special gtfiles case for C.
1702         * configure: Regenerate.
1703         * Makefile.in: Remove C front-end hooks and build hooks that
1704         will be picked up from c/Make-lang.in now.
1705         Add tree-mudflap to C_COMMON_OBJS.
1706         * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
1707         * config/vms/vms.c: Look for c-tree.h in c/.
1708         * doc/gty.texi: Remove reference to c-config-lang.in.
1709         * doc/sourcebuild.texi: Document the c/ subdirectory.
1711 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1713         * system.h (CASE_USE_BIT_TESTS): Poison.
1714         * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
1715         (expand_switch_using_bit_tests_p): ...here.
1716         * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
1717         * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
1719 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1721         * system.h (IFCVT_EXTRA_FIELDS): Poison.
1722         (IFCVT_INIT_EXTRA_FIELDS): Poison.
1723         * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
1724         * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
1725         IFCVT_INIT_EXTRA_FIELDS.
1726         * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
1727         * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
1728         IFCVT_MACHDEP_INIT.
1729         * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
1730         frv_ifcvt_machdep_init.
1731         * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
1732         Remove documentation.
1733         (IFCVT_MACHDEP_INIT): Document.
1734         * doc/tm.texi: Regenerate.
1736 2012-06-29  Nick Clifton  <nickc@redhat.com>
1738         * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
1740 2012-06-29  Jakub Jelinek  <jakub@redhat.com>
1742         * tree-vect-stmts.c (vectorizable_operation): Check both
1743         VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
1744         Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
1746 2012-06-28  Richard Henderson  <rth@redhat.com>
1748         * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
1750 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
1752         PR tree-optimization/51581
1753         * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
1754         (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
1755         also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
1756         VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
1757         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
1758         MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
1760         PR tree-optimization/53645
1761         * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
1762         instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
1763         if possible.
1765 2012-06-28  Georg-Johann Lay  <avr@gjlay.de>
1767         PR 53595
1768         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
1769         * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
1770         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
1771         avr_hard_regno_call_part_clobbered.
1773 2012-06-28  Richard Guenther  <rguenther@suse.de>
1775         PR middle-end/53790
1776         * expr.c (expand_expr_real_1): Verify if the type is complete
1777         before inspecting its size.
1779 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
1781         * doc/include/gpl.texi: Remove.
1782         * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
1784 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
1786         PR tree-optimization/53645
1787         * tree-vect-generic.c (add_rshift): New function.
1788         (expand_vector_divmod): New function.
1789         (expand_vector_operation): Use it for vector integer
1790         TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
1791         * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
1792         unused lguup variable with dummy_int.
1794 2012-06-28  OLivier Hainque  <hainque@adacore.com>
1796         * expr.c (convert_move): Latch mem integer inputs into a
1797         register before expanding a multi-instructions sequence.
1799 2012-06-28  Alexandre Oliva  <aoliva@redhat.com>
1800             Uros Bizjak  <ubizjak@gmail.com>
1801             Jakub Jelinek  <jakub@redhat.com>
1803         PR debug/53706
1804         PR debug/47624
1805         * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
1806         (vt_finalize): ... here instead, if needed.
1808 2012-06-28  Alexandre Oliva  <aoliva@redhat.com>
1810         PR debug/53740
1811         PR debug/52983
1812         PR debug/48866
1813         * dce.c (word_dce_process_block): Check whether inserting debug
1814         temps are needed even for needed insns.
1815         (dce_process_block): Likewise.
1816         * df-problems.c (dead_debug_add): Add comment about multi-regs.
1817         (dead_debug_insert_temp): Likewise.  Don't subreg when we're
1818         setting fewer regs than a multi-reg requires.
1820 2012-06-27  Richard Henderson  <rth@redhat.com>
1822         * config/alpha/alpha.c (alpha_dimode_u): New.
1823         (alpha_init_builtins): Initialize it, and use it.
1824         (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
1825         (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
1826         (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
1827         (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
1828         (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
1829         (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
1830         (alpha_fold_builtin_ctpop): Likewise.
1831         (alpha_fold_builtin_umulh): Remove.
1832         (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
1833         typo in MAX_ARGS check.
1835 2012-06-27  Richard Henderson  <rth@redhat.com>
1837         * tree.def (MULT_HIGHPART_EXPR): New.
1838         * cfgexpand.c (expand_debug_expr): Ignore it.
1839         * expr.c (expand_expr_real_2): Handle it.
1840         * fold-const.c (int_const_binop_1): Likewise.
1841         * optabs.c (optab_for_tree_code): Likewise.
1842         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
1843         * tree-inline.c (estimate_operator_cost): Likewise.
1844         * tree-pretty-print.c (dump_generic_node): Likewise.
1845         (op_code_prio, op_symbol_code): Likewise.
1846         * tree.c (commutative_tree_code): Likewise.  Also handle
1847         WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
1849 2012-06-27  Richard Henderson  <rth@redhat.com>
1851         PR target/53749
1852         * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
1853         in 2012-06-23 change.  Adjust two other DImode tests as well.
1855 2012-06-27  Nick Clifton  <nickc@redhat.com>
1857         * config/rx/rx.md (comparesi3_extend): Remove = modifier from
1858         input operand.
1860 2012-06-27  Richard Guenther  <rguenther@suse.de>
1862         PR middle-end/53676
1863         * tree-chrec.c (chrec_convert_1): Represent truncation to
1864         a type with undefined overflow as truncation to an unsigned
1865         type converted to the type with undefined overflow.
1866         * tree-scalar-evolution.c (interpret_rhs_expr): For computing
1867         the scalar evolution of a truncated widened operation avoid
1868         looking at the non-existing evolution of the widened operation
1869         result.
1871 2012-06-27  Richard Guenther  <rguenther@suse.de>
1873         PR tree-optimization/53774
1874         * tree-ssa-reassoc.c (get_rank): All default defs have
1875         precomputed rank.
1876         (init_reassoc): Precompute rank for all SSA default defs.
1878 2012-06-27  Nick Clifton  <nickc@redhat.com>
1880         * config/rx/rx.md (simple_return): Use the simple_return rtx.
1882 2012-06-26  Richard Henderson  <rth@redhat.com>
1884         * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
1885         and don't fall thru from standard_80387_constant_p to the memory
1886         fallback.
1888 2012-06-26  Richard Henderson  <rth@redhat.com>
1890         * config/i386/i386.c (bdesc_args): Update.  Change
1891         IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
1892         (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
1893         (ix86_builtin_mul_widen_even): Use it.
1894         (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
1895         (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
1896         * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
1897         for all SSE2.
1898         (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
1899         (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise.  Relax from V124_AVX2.
1900         (vec_widen_smult_even_v4si): New.
1902 2012-06-26  Richard Henderson  <rth@redhat.com>
1904         * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
1905         to expander; move guts to ...
1906         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here.  Add
1907         highparts before shifting up.
1908         * config/i386/i386-protos.h: Update.
1910 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1912         * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
1913         * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
1914         * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
1916 2012-06-26  Alexandre Oliva  <aoliva@redhat.com>
1918         * var-tracking.c (vt_add_function_parameter): Use a preserved
1919         VALUE for the MEM address of an incoming parameter.
1921 2012-06-26  Sterling Augustine <saugustine@google.com>
1923         * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
1924         (prune_unused_types): Likewise.
1926 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1928         * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
1929         UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
1930         * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
1931         UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
1932         VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
1933         VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
1934         * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
1935         UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
1936         * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
1937         documentation.
1938         * doc/tm.texi: Regenerate.
1939         * doc/cpp.texi: Make example for #error generic.
1940         * config/frv/frv.h: Fix example text to match tm.texi.
1942 2012-06-26  Bill Schmidt  <wschmidt@linux.ibm.com>
1944         * tree-pass.h (pass_strength_reduction): New decl.
1945         * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
1946         (finalize_costs): Likewise.
1947         * timevar.def (TV_TREE_SLSR): New timevar.
1948         * gimple-ssa-strength-reduction.c: New.
1949         * tree-flow.h (initialize_costs): New decl.
1950         (finalize_costs): Likewise.
1951         * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
1952         * passes.c (init_optimization_passes): Add pass_strength_reduction.
1954 2012-06-26  Matt Turner  <mattst88@gmail.com>
1956         * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
1957         (__builtin_arm_tinsrh): Likewise.
1958         (__builtin_arm_tinsrw): Likewise.
1959         (__builtin_arm_wsadb): Add missing v2si parameter.
1960         (__builtin_arm_wsadh): Likewise.
1961         (__builtin_arm_getwcx): Delete.
1962         (__builtin_arm_setwcx): Delete.
1963         (__builtin_arm_getwcgr0): Add.
1964         (__builtin_arm_getwcgr1): Add.
1965         (__builtin_arm_getwcgr2): Add.
1966         (__builtin_arm_getwcgr3): Add.
1967         (__builtin_arm_setwcgr0): Add.
1968         (__builtin_arm_setwcgr1): Add.
1969         (__builtin_arm_setwcgr2): Add.
1970         (__builtin_arm_setwcgr3): Add.
1972 2012-06-26  Richard Guenther  <rguenther@suse.de>
1974         Revert
1975         2012-06-21  Richard Guenther  <rguenther@suse.de>
1977         * tree-inline.c (estimate_num_insns): Estimate call cost for
1978         tailcalls properly.
1980 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1982         PR other/33190
1983         * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
1984         * doc/tm.texi: Regenerate.
1986 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1988         PR other/33190
1989         * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
1990         * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
1991         * doc/tm.texi.in: Remove documentation for unused target macros
1992         ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
1993         DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
1994         REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
1995         TARGET_NARROW_VOLATILE_BITFIELDS.
1996         Document that MD_HANDLE_UNWABI is a macro in libgcc.
1997         * doc/tm.texi: Regenerate.
1998         * system.h: Poison target macros
1999         ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
2000         DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
2001         REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
2002         TARGET_NARROW_VOLATILE_BITFIELDS
2004 2012-06-26  Jan Hubicka  <jh@suse.cz>
2006         PR lto/53572
2007         * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
2008         used symbols.
2010 2012-06-26  Dehao Chen  <dehao@google.com>
2012         * tree-inline.c: (expand_call_inline): Ensure that lexical block's
2013         source location is consistant with the call stmt.
2015 2012-06-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
2017         PR tree-optimization/53729
2018         PR tree-optimization/53636
2019         * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
2020         vect_verify_datarefs_alignment until after statements have
2021         been marked as relevant/irrelevant.
2022         * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
2023         Skip irrelevant statements.
2024         (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
2025         instead of STMT_VINFO_RELEVANT.
2026         (vect_get_data_access_cost): Do not check for supportable
2027         alignment before calling vect_get_load_cost/vect_get_store_cost.
2028         * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
2029         handling unsupported alignment.
2030         (vect_get_load_cost): Likewise.
2032 2012-06-25  Steven Bosscher  <steven@gcc.gnu.org>
2034         * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
2035         Do not define JMP_BUF_SIZE.
2037 2012-06-26  Jakub Jelinek  <jakub@redhat.com>
2039         PR tree-optimization/53748
2040         * tree-ssa-phiopt.c (conditional_replacement): Only optimize
2041         if arg0/arg1 have integral or pointer types.
2043 2012-06-25  Richard Henderson  <rth@redhat.com>
2045         * config/i386/sse.md (sse2_sse4_1): Remove code attr.
2046         (<s>dot_prodv4si, <s>dot_prodv8si): Remove
2047         (sdot_prodv4si): New; handle only XOP.
2049 2012-06-25  Richard Henderson  <rth@redhat.com>
2051         * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
2052         (V2UDI_FUNC_V4USI_V4USI): New.
2053         (V4UDI_FUNC_V8USI_V8USI): New.
2054         * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
2055         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
2056         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
2057         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
2058         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
2059         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
2060         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
2061         (bdesc_args): Add them.
2062         (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
2063         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
2064         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
2065         (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
2066         * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
2068 2012-06-25  Richard Henderson  <rth@redhat.com>
2070         * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
2072 2012-06-25  Richard Henderson  <rth@redhat.com>
2074         * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
2075         to V16QImode.
2076         (ix86_expand_vec_interleave): New.
2077         (ix86_expand_mul_widen_evenodd): New.
2078         (ix86_expand_mul_widen_hilo): New.
2079         (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
2080         * config/i386/i386.md (u_bool) New code attr.
2081         * config/i386/predicates.md
2082         (nonimmediate_or_const_vector_operand): Remove.
2083         * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
2084         both AVX and SSE4_1.
2085         (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
2086         (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
2087         (vec_widen<s>mult_hi_v8si): Remove.
2088         (vec_widen<s>mult_lo_v8si): Remove.
2089         (vec_widen_smult_hi_v4si): Remove.
2090         (vec_widen_smult_lo_v4si): Remove.
2091         (vec_widen_umult_hi_v4si): Remove.
2092         (vec_widen_umult_lo_v4si): Remove.
2093         (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
2094         (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
2095         * config/i386/i386-protos.h: Update.
2097 2012-06-25  Christophe Lyon  <christophe.lyon@st.com>
2099         * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
2100         (neon_vld1_dup): Restrict to VQ operands.
2101         (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
2103 2012-06-25  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2104             James Greenhalgh  <james.greenhalgh@arm.com>
2106         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
2107         (TARGET_FMA): New macro.
2108         (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
2109         (TARGET_ARM_ARCH): Likewise.
2110         (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
2111         (TARGET_V6M, TARGET_V7M): Likewise.
2112         (TARGET_ARM_ARCH_PROFILE): Likewise.
2113         (TARGET_ARM_FEATURE_LDREX): Likewise.
2114         (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
2115         (ARM_MIN_ENUM_SIZE): Likewise.
2116         * config/arm/arm.c (arm_file_start): Refactor appropriately.
2117         (base_architecture): New enumeration.
2118         (arm_base_arch): New global variable.
2119         (processors): Add field base_arch.
2120         (ARM_ARCH, ARM_CORE): Adjust accordingly.
2121         (arm_option_override): Add initialization of arm_base_arch.
2122         * doc/cpp.texi (system-specific predefined macros.): Change.
2124 2012-06-25  Jakub Jelinek  <jakub@redhat.com>
2126         PR target/53759
2127         * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
2128         of x x x in the vmovlps load alternative.
2130 2012-06-25  Richard Sandiford  <rdsandiford@googlemail.com>
2132         PR debug/53740
2133         * df.h (dead_debug_add): Remove third argument.
2134         * df-problems.c (dead_debug_add): Likewise.  Use the REGNO of the
2135         REG that we want to replace instead.
2136         (dead_debug_insert_temp): Use the REGNO of the reg that we want
2137         to replace instead of DF_REF_REGNO.  Require there to always be
2138         at least one such use.  Check for cases where the same location
2139         has more than df_ref associated with it.
2140         (df_note_bb_compute): Remove third dead_debug_add argument.
2141         * dce.c (word_dce_process_block): Likewise.
2143 2012-06-25  Steven Bosscher  <steven@gcc.gnu.org>
2145         * config/v850/v850.c: Remove redundant extern declarations for
2146         last_assemble_variable_decl and size_directive_output.
2148         * doc/tm.texi.in: Document JMP_BUF_SIZE.
2149         * doc/tm.texi: Regenerate.
2150         * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
2151         * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
2152         * config/stormy16/stormy16.h: Likewise.
2154         * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
2156         * doc/sourcebuild.texi: Add missing subdirectories.
2158 2012-06-25  Tristan Gingold  <gingold@adacore.com>
2160         * config/i386/i386.h: Fix typo.
2162 2012-06-25  Tristan Gingold  <gingold@adacore.com>
2164         * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
2165         (seh_cfa_adjust_cfa): ... that function.
2166         (seh_emit_stackalloc): Do not emit out of range values.
2167         * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
2168         UNSPEC_DEF_CFA constants.
2169         * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
2170         * config/i386/i386.c (ix86_frame_pointer_required): Required
2171         for very large frames on SEH target.
2172         (ix86_compute_frame_layout): Save area is before frame pointer
2173         on SEH target.  Handle very large frames.
2174         (ix86_expand_prologue): Likewise.
2176 2012-06-24  Steven Bosscher  <steven@gcc.gnu.org>
2178         * output.h: (current_function_is_leaf,
2179         current_function_sp_is_unchanging,
2180         current_function_uses_only_leaf_regs): Remove.
2181         * function.c (current_function_is_leaf,
2182         current_function_sp_is_unchanging,
2183         current_function_uses_only_leaf_regs): Remove.
2184         (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
2185         instead of current_function_uses_only_leaf_regs.
2186         * function.h (struct rtl_data): New fields sp_is_unchanging,
2187         is_leaf, uses_only_leaf_regs.
2188         * resource.c (init_resource_info): Replace current_function_is_leaf,
2189         current_function_sp_is_unchanging, and
2190         current_function_uses_only_leaf_regs with new crtl fields.
2191         * sdbout.c (sdbout_symbol): Likewise.
2192         * df-core.c (rest_of_handle_df_initialize): Likewise.
2193         * ira.c (ira): Likewise.
2194         * final.c (final_start_function): Likewise.
2195         * reorg.c (fill_simple_delay_slots): Likewise.
2196         * regrename.c (check_new_reg_p): Likewise.
2197         * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
2198         (notice_stack_pointer_modification): Likewise.
2199         * dbxout.c (dbxout_symbol): Likewise.
2200         (dbxout_parms): Likewise.
2201         * sel-sched.c (init_regs_for_mode): Likewise.
2202         * dwarf2out.c (dbx_reg_number): Likewise.
2203         (multiple_reg_loc_descriptor): Likewise.
2204         * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
2205         (gen_pop): Likewise.
2206         (ix86_select_alt_pic_regnum): Likewise.
2207         (ix86_compute_frame_layout): Likewise.
2208         (ix86_finalize_stack_realign_flags): Likewise.
2209         (ix86_expand_epilogue): Likewise.
2210         * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
2211         * config/h8300/h8300.c (byte_reg): Likewise.
2212         * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
2213         (c6x_save_reg): Likewise.
2214         (c6x_compute_frame_layout): Likewise.
2215         * config/pa/pa.c (pa_compute_frame_size): Likewise.
2216         (pa_output_function_prologue): Likewise.
2217         * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
2218         * config/sparc/sparc.md (attr "leaf_function"): Likewise.
2219         * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
2220         (sparc_expand_prologue): Likewise.
2221         (sparc_flat_expand_prologue): Likewise.
2222         (sparc_asm_function_prologue): Likewise.
2223         (sparc_output_mi_thunk): Likewise.
2224         (sparc_frame_pointer_required): Likewise.
2225         * config/epiphany/epiphany.c (epiphany_compute_function_type):
2226         Likewise.
2227         (epiphany_compute_frame_size): Likewise.
2228         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
2229         * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
2230         (cris_frame_pointer_required): Likewise.
2231         * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
2232         (tilepro_current_function_is_leaf): Likewise.
2233         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
2234         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
2235         * config/ia64/ia64.c (find_gr_spill): Likewise.
2236         (ia64_compute_frame_size): Likewise.
2237         (ia64_can_eliminate): Likewise.
2238         (ia64_initial_elimination_offset): Likewise.
2239         * config/m68k/m68k.c (m68k_save_reg): Likewise.
2240         (m68k_expand_epilogue): Likewise.
2241         * config/rx/rx.c (rx_get_stack_layout): Likewise.
2242         * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
2243         * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
2244         Likewise.
2245         (picochip_output_frame_debug): Likewise.
2246         * config/sh/sh.c (sh_media_register_for_return): Likewise.
2247         (sh_allocate_initial_value): Likewise.
2248         (sh_output_mi_thunk): Likewise.
2249         * config/microblaze/microblaze.c (microblaze_must_save_register):
2250         Likewise.
2251         (compute_frame_size): Likewise.
2252         (microblaze_initial_elimination_offset): Likewise.
2253         (microblaze_expand_prologue): Likewise.
2254         (microblaze_expand_epilogue): Likewise.
2255         * config/frv/frv.c (frv_expand_epilogue): Likewise.
2256         (frv_frame_pointer_required): Likewise.
2257         * config/spu/spu.c (get_pic_reg): Likewise.
2258         (direct_return): Likewise.
2259         (spu_expand_prologue): Likewise.
2260         (spu_expand_epilogue): Likewise.
2261         (spu_initial_elimination_offset): Likewise.
2262         * config/mips/mips.c (mips_global_pointer): Likewise.
2263         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2264         (mips_compute_frame_info): Likewise.
2265         * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
2266         (mep_reload_pointer): Likewise.
2267         * config/rl78/rl78.c (need_to_save): Likewise.
2268         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
2269         * config/score/score.c (score_compute_frame_size): Likewise.
2270         (score_function_prologue): Likewise.
2271         * config/bfin/bfin.c (must_save_p): Likewise.
2272         (expand_prologue_reg_save): Likewise.
2273         (expand_epilogue_reg_restore): Likewise.
2274         (bfin_frame_pointer_required): Likewise.
2275         (n_regs_saved_by_prologue): Likewise.
2276         (add_to_reg): Likewise.
2277         (expand_interrupt_handler_prologue): Likewise.
2278         (expand_interrupt_handler_epilogue): Likewise.
2279         (bfin_expand_prologue): Likewise.
2280         * config/avr/avr.c (avr_regs_to_save): Likewise.
2281         (avr_prologue_setup_frame): Likewise.
2282         (expand_epilogue): Likewise.
2283         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
2284         (s390_register_info): Likewise.
2285         (s390_frame_info): Likewise.
2286         (s390_init_frame_layout): Likewise.
2287         (s390_emit_prologue): Likewise.
2290 2012-06-24  Steven Bosscher  <steven@gcc.gnu.org>
2292         * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
2293         * vmsdbgout: Do not undefine it if defined.
2294         Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
2295         * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
2296         * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
2298 2012-06-24  Richard Sandiford  <rdsandiford@googlemail.com>
2300         * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
2302 2012-06-23  Richard Henderson  <rth@redhat.com>
2304         PR target/53749
2305         * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
2306         V*QImode shifts and multiply.
2307         (ix86_expand_vecop_qihi): Support shifts.
2308         * config/i386/i386.md (any_shift): New code iterator.
2309         * config/i386/sse.md (ashlv16qi3): Merge ...
2310         (<any_shiftrt>v16qi3): ... into ...
2311         (<any_shift><VI1_AVX2>3): ... here.  Use ix86_expand_vecop_qihi
2312         to support SSE and AVX.
2314         * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
2315         parameter into src and dest.
2316         * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
2317         (vec_unpacks_hi_<V124_AVX2>): Likewise.
2318         (vec_unpacku_lo_<V124_AVX2>): Likewise.
2319         (vec_unpacks_lo_<V124_AVX2>): Likewise.
2320         * config/i386/i386-protos.h: Update.
2322         * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
2323         pure expander; move expansion code ...
2324         * config/i386/i386.c (ix86_expand_vecop_qihi): ... here.  New function.
2325         * config/i386/i386-protos.h: Update.
2327 2012-06-22  Edmar Wienskoski  <edmar@freescale.com>
2329         * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
2330         (popcntb<mode>2): Add attribute type popcnt.
2331         (popcntd<mode>2): Ditto.
2332         * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
2333         * config/rs6000/power5.md (define_insn_reservation): Ditto.
2334         * config/rs6000/power7.md (define_insn_reservation): Ditto.
2335         * config/rs6000/476.md (define_insn_reservation): Ditto.
2336         * config/rs6000/power6.md (define_insn_reservation): New
2337         reservation for popcnt instructions.
2339 2012-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2341         * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
2343 2012-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2345         PR target/53383
2346         * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
2348         * config/i386/i386.c (ix86_option_override_internal): Allow
2349         -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
2351         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
2352         if SSE is disabled.
2354 2012-06-22  Bill Schmidt  <wschmidt@linux.ibm.com>
2356         * double-int.c (double_int_multiple_of): New function.
2357         * double-int.h (double_int_multiple_of): New decl.
2358         * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
2359         (mbc_entry_hash): New forward decl.
2360         (mbc_entry_eq): Likewise.
2361         (zero_cost): Change to no_cost.
2362         (mult_costs): New static var.
2363         (cost_tables_exist): Likewise.
2364         (initialize_costs): New function.
2365         (finalize_costs): Likewise.
2366         (tree_ssa_iv_optimize_init): Call initialize_costs.
2367         (add_cost): Change to add_regs_cost; distinguish costs by speed.
2368         (multiply_regs_cost): New function.
2369         (add_const_cost): Likewise.
2370         (extend_or_trunc_reg_cost): Likewise.
2371         (negate_reg_cost): Likewise.
2372         (multiply_by_cost): Change to multiply_by_const_cost; distinguish
2373         costs by speed.
2374         (get_address_cost): Change add_cost to add_regs_cost; change
2375         multiply_by_cost to multiply_by_const_cost.
2376         (force_expr_to_var_cost): Change zero_cost to no_cost; change
2377         add_cost to add_regs_cost; change multiply_by_cost to
2378         multiply_by_const_cost.
2379         (split_cost): Change zero_cost to no_cost.
2380         (ptr_difference_cost): Likewise.
2381         (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
2382         to multiply_by_const_cost.
2383         (get_computation_cost_at): Change add_cost to add_regs_cost; change
2384         multiply_by_cost to multiply_by_const_cost.
2385         (determine_use_iv_cost_generic): Change zero_cost to no_cost.
2386         (determine_iv_cost): Change add_cost to add_regs_cost.
2387         (iv_ca_new): Change zero_cost to no_cost.
2388         (tree_ssa_iv_optimize_finalize): Call finalize_costs.
2389         * tree-ssa-address.c (most_expensive_mult_to_index): Change
2390         multiply_by_cost to multiply_by_const_cost.
2391         * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
2392         (add_regs_cost): New decl.
2393         (multiply_regs_cost): Likewise.
2394         (add_const_cost): Likewise.
2395         (extend_or_trunc_reg_cost): Likewise.
2396         (negate_reg_cost): Likewise.
2398 2012-06-22  Richard Guenther  <rguenther@suse.de>
2400         Merge from graphite branch
2401         2011-08-10  Sebastian Pop <sebpop@gmail.com>
2403         * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
2405         2012-01-13  Tobias Grosser  <tobias@grosser.es>
2407         * tree-flow.h (parallelized_function_p): Declare.
2408         * tree-parloops.c (parallelized_function_p): Export.
2409         * graphite.c (graphite_transform_loops): Do not run graphite on
2410         already parallel functions.
2412 2012-06-22  Alan Modra  <amodra@gmail.com>
2414         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
2415         return mem.  Convert to indirect addressing if not indirect or
2416         indexed.  Adjust all callers.
2418 2012-06-22  Richard Guenther  <rguenther@suse.de>
2420         * gcov-iov.c: Include bconfig.h and system.h.
2422 2012-06-22  Andreas Schwab  <schwab@linux-m68k.org>
2424         * doc/include/texinfo.tex: Update to version 2012-06-05.14.
2426 2012-06-22  Richard Guenther  <rguenther@suse.de>
2428         PR gcov-profile/53744
2429         * gcov-iov.c (main): Treat "" and "prerelease" the same.
2431 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2433         PR debug/53704
2434         * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
2435         for GNU Fortran if in strict DWARF2 mode.
2437 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2439         * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
2440         DECL_IGNORED_P non-reg vars even if they are used.
2442 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2444         PR debug/53671
2445         PR debug/49888
2446         * var-tracking.c (vt_get_canonicalize_base): New.
2447         (vt_canonicalize_addr, vt_stack_offset_p): New.
2448         (vt_canon_true_dep): New.
2449         (drop_overlapping_mem_locs): Use vt_canon_true_dep.
2450         (clobber_overlaping_mems): Use vt_canonicalize_addr.
2452 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2454         PR debug/53671
2455         PR debug/49888
2456         * var-tracking.c (vt_initialize): Record initial offset between
2457         arg pointer and stack pointer.
2459 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2461         PR debug/53671
2462         PR debug/49888
2463         * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
2464         CFA base.
2466 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2468         PR debug/53671
2469         PR debug/49888
2470         * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
2472 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2474         * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
2476 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2478         PR debug/53682
2479         * cselib.c (promote_debug_loc): Don't crash on NULL argument.
2481 2012-06-21  Meador Inge  <meadori@codesourcery.com>
2483         PR c/53702
2484         * c-decl.c (c_push_function_context): Restore the behavior to reuse
2485         the language function allocated for -Wunused-local-typedefs.
2486         (c_pop_function_context): If necessary, clear the language function
2487         created in c_push_function_context.  Always clear out the
2488         x_cur_stmt_list field of the restored language function.
2490 2012-06-21  Sterling Augustine  <saugustine@google.com>
2491             Cary Coutant  <ccoutant@google.com>
2493         * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
2494         add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
2495         (comdat_type_struct): New field 'skeleton_die'.
2496         (breakout_comdat_types): Update it.
2497         (add_pubname): Rework logic.  Call is_class_die, is_cu_die and
2498         is_namespace_die.  Fix minor style violation.  Call want_pubnames.
2499         (add_pubname_string): Call want_pubnames.
2500         (add_pubtype): Rework logic for calculating type name.  Call
2501         is_namespace_die.  Call want_pubnames.
2502         (output_pubnames): Move conditional logic deciding when to produce the
2503         section from dwarf2out_finish.  Use new skeleton_die field.
2504         (base_type_die): Call add_pubtype.
2505         (gen_enumeration_type_die): Unconditionally call add_pubtype.
2506         (gen_subprogram_die): Adjust calls to add_pubname.
2507         (gen_namespace_die): Call add_pubname_string.
2508         (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
2509         produce pubnames and pubtypes sections to output_pubnames.
2510         * common.opt (-gpubnames): New option.
2511         * doc/invoke.texi: Document it.
2513 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
2515         * config/m32c/m32c-pragma.c: Remove unnecessary includes.
2517 2012-06-21  Michael Matz  <matz@suse.de>
2519         PR middle-end/53688
2520         * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
2521         with correct size.
2523 2012-06-21  Richard Guenther  <rguenther@suse.de>
2525         * tree-inline.c (estimate_num_insns): Estimate call cost for
2526         tailcalls properly.
2528 2012-06-20  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
2530         * tree.h (DECL_SOURCE_COLUMN): New accessor.
2532 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2534         * config/i386/i386.md (SINCOS): New int iterator.
2535         (sincos): New int attribute.
2536         (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
2537         SINCOS int iterator.
2538         (*<sincos>_extend<mode>xf2_i387): Macroize insn from
2539         *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
2541 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2543         * config/i386/i386.md (RDFSGSBASE): New int iterator.
2544         (WRFSGSBASE): Ditto.
2545         (fsgs): New int attribute.
2546         (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
2547         RDFSGSBASE int iterator.
2548         (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
2549         WRFSGSBASE int iterator.
2551 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2553         * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
2554         from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
2555         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
2556         from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
2557         int iterator.
2559 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
2561         * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
2563 2012-06-20  Richard Guenther  <rguenther@suse.de>
2565         PR tree-optimization/30318
2566         * tree-vrp.c (range_int_cst_p): Do not reject overflowed
2567         constants here.
2568         (range_int_cst_singleton_p): But explicitely here.
2569         (zero_nonzero_bits_from_vr): And here.
2570         (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
2571         to cover all cases we can perform arbitrary precision
2572         arithmetic with double-ints.
2573         (intersect_ranges): Handle adjacent anti-ranges.
2575 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2577         * config/i386/i386.md (rounding_insn): New int attribute.
2578         (<rounding_insn>xf2): Macroize insn from
2579         {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
2580         (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
2582 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2584         * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
2585         (ieee_maxmin): New int attribute.
2586         (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
2587         *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
2589 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
2591         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
2592         * config/arm/arm.c: Do not include c-pragma.h.
2593         (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
2594         (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
2595         to arm_emit_eabi_attribute.
2596         * arm-c.c: Do not include output.h.
2597         (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
2598         call to arm_emit_eabi_attribute.
2599         * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
2601 2012-06-20  Richard Guenther  <rguenther@suse.de>
2603         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
2604         Allow adjusting alignment of user-aligned decls again.
2606 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
2608         * config/rl78/rl78-c.c: Remove unnecessary includes.
2610 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
2612         * config/cris/cris.c: Include cgraph.h.
2613         (cris_option_override): Do not set non-existing flag_no_gcc_ident.
2615 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
2617         * emit-rtl.c (need_atomic_barrier_p): New function.
2618         * emit-rtl.h (need_atomic_barrier_p): Declare it.
2619         * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
2620         * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
2621         * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
2622         * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
2623         (mips_process_sync_loop): Use generic version instead.
2625 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
2627         * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
2628         it is used.
2630 2012-06-19  Tom de Vries  <vries@codesourcery.com>
2631             Maxim Kuvyrkov  <maxim@codesourcery.com>
2633         * config/mips/constraints.md (ZR): New constraint.
2634         * config/mips/predicates.md (mem_noofs_operand): New predicate.
2635         * config/mips/mips.c (mips_print_operand): Handle new print modifier.
2636         * config/mips/mips.h (TARGET_XLP): Define.
2637         (TARGET_SYNC_AFTER_SC): Update.
2638         (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
2639         * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
2640         XLP-specific swap and ldadd patterns.
2641         (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
2643 2012-06-19  Tom de Vries  <vries@codesourcery.com>
2644             Maxim Kuvyrkov  <maxim@codesourcery.com>
2646         * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
2647         (mips_emit_post_atomic_barrier_p): New static functions.
2648         (mips_process_sync_loop): Use them.  Emit sync memory barriers in
2649         accordance with memory model semantics.  Add return of CMP result for
2650         compare_and_swap.
2651         * config/mips/mips.md: Update comment.
2652         (sync_cmp): New attribute.
2653         (sync_memmodel): New attribute replacing sync_release_barrier.
2654         * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
2655         (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
2656         (sync_lock_test_and_set, test_and_set_12): Update.
2657         (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
2658         (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
2660 2012-06-19  Joseph Myers  <joseph@codesourcery.com>
2662         * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
2663         mov_si<mode>_e500_subreg0.
2664         (*mov_si<mode>_e500_subreg0_elf_low)
2665         (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
2667 2012-06-19  Richard Henderson  <rth@redhat.com>
2669         * config/alpha/alpha.c: Include params.h.
2670         (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
2671         PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
2673 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2675         * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
2676         TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
2677         (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
2678         Remove.
2679         * doc/tm.texi: Regenerate.
2680         * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
2681         .objc_class_name_*.
2682         * config/darwin-c.c: Include target.h.
2683         (darwin_objc_declare_unresolved_class_reference): New function.
2684         (darwin_objc_declare_class_definition): New function.
2685         (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
2686         (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
2688 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2690         * target.def (output_ident): New hook.
2691         * targhooks.h (default_asm_output_ident_directive): Add prototype.
2692         * varasm.c (assemble_asm): Only prefix a tab if the string does not
2693         already start with one.
2694         (default_asm_output_ident_directive): New function to emit
2695         .ident as a top-level asm node while parsing, or directly to
2696         asm_out_file after parsing.
2697         * toplev.c (compile_file): Print a GCC .ident with
2698         targetm.asm_out.output_ident.
2699         * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
2700         (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
2701         * doc/tm.texi: Update.
2703         * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
2704         (TARGET_ASM_OUTPUT_IDENT): Define.
2705         * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
2706         * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
2707         * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
2708         * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
2709         (TARGET_ASM_OUTPUT_IDENT): Define.
2710         * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
2711         (TARGET_ASM_OUTPUT_IDENT): Define.
2713         * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
2714         * config/cris/cris.c (cris_asm_output_ident): New function.
2715         * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
2717         * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
2718         Add prototype.
2719         * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
2720         (microblaze_asm_output_ident): Rewrite to work similar to
2721         default_asm_output_ident_directive for front-end .idents.
2722         * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
2723         (TARGET_ASM_OUTPUT_IDENT): Define.
2725         * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
2726         * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
2728         * config/rx/rx.c: Include cgraph.h for add_asm_node.
2729         (rx_asm_output_ident): New function, similar to
2730         default_asm_output_ident_directive, but handle AS100 syntax also, so
2731         that #ident also works for rx in AS100 syntax.
2732         (TARGET_ASM_OUTPUT_IDENT): Define.
2733         * config/rx/rx.h (IDENT_ASM_OP): Remove.
2735         * Makefile.in: Fix dependencies for c-family/c-lex.o.
2737 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
2739         * config/i386/i386.md (FIST_ROUNDING): New int iterator.
2740         (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
2741         (ROUNDING): Ditto.
2742         (*fist<mode>2_<rounding>_1): Macroize insn from
2743         *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
2744         (fistdi2_<rounding>): Macroize insn from
2745         fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
2746         (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
2747         corresponding splitters from fistdi2_{floor,ceil} and corresponding
2748         splitters using FIST_ROUNDING int iterator.
2749         (fist<mode>2_<rounding>): Macroize insn from
2750         fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
2751         (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
2752         corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
2753         splitters using FIST_ROUNDING int iterator.
2754         (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
2755         using FIST_ROUNDING int iterator.
2757 2012-06-19  Richard Henderson  <rth@redhat.com>
2759         * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
2760         * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
2761         * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
2762         * config/i386/sse.md (sse2_mulv4si3): Delete.
2763         (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
2764         nonimmediate_or_const_vector_operand.
2766 2012-06-19  Richard Henderson  <rth@redhat.com>
2768         * expmed.c (struct init_expmed_rtl): Split ...
2769         (init_expmed_one_mode): ... out of ...
2770         (init_expmed): ... here.  Initialize integer vector modes also.
2771         (synth_mult): Handle integer vector modes.
2772         (choose_mult_variant): Likewise.
2773         (expand_mult_const): Likewise.
2774         (expand_mult): Likewise.
2775         * machmode.h (GET_MODE_UNIT_BITSIZE): New.
2777 2012-06-19  Richard Henderson  <rth@redhat.com>
2779         * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
2780         integral vector modes.
2782 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
2784         * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
2785         (rounding): New int attribute.
2786         (ROUNDING): Ditto.
2787         (frndintxf2_<rounding>): Macroize insn from
2788         frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
2789         (frndintxf2_<rounding>_i387): Macroize insn from
2790         frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
2792 2012-06-19  Richard Guenther  <rguenther@suse.de>
2794         * tree-vrp.c (union_ranges): New function.
2795         (vrp_meet_1): Use union_ranges.
2796         (vrp_meet): Dump what we union and call vrp_meet_1.
2798 2012-06-19  Richard Earnshaw  <rearnsha@arm.com>
2800         * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
2801         (attr type): Remove fmul, ffmul, farith, ffarith, float_em
2802         f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
2803         (attr write_conflict, attr core_cycles): Update.
2804         * arm-generic.md (r_mem_f_wbuf): Delete reservation.
2806 2012-06-19  Richard Guenther  <rguenther@suse.de>
2808         * tree-vrp.c (intersect_ranges): Handle more cases.
2809         (vrp_intersect_ranges): Dump what we intersect and call ...
2810         (vrp_intersect_ranges_1): ... this.
2812 2012-06-19  Richard Guenther  <rguenther@suse.de>
2814         PR tree-optimization/53708
2815         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
2816         user-supplied alignment and alignment of decls with the used
2817         attribute.
2819 2012-06-18  Lawrence Crowl  <crowl@google.com>
2821         * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
2822         (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
2823         (TV_PHASE_STREAM_IN): New.
2824         (TV_PHASE_STREAM_OUT): New.
2825         * timevar.c (validate_phases): New.
2826         (timevar_print): Call validate_phases.
2827         * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
2828         to TV_PHASE_OPT_GEN.
2829         * langhooks.c (write_global_declarations): Rename use of
2830         TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN.  Use TV_PHASE_DBGINFO instead of
2831         TV_PHASE_CHECK_DBGINFO.
2832         * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
2833         TV_PHASE_LATE_ASM.  Move start of TV_PHASE_LATE_ASM to after call to
2834         lang_hooks.decls.final_write_globals.
2836 2012-06-18  David Edelshn  <dje.gcc@gmail.com>
2838         * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
2840 2012-06-18  Uros Bizjak  <ubizjak@gmail.com>
2842         PR target/53712
2843         * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
2844         (*sse4_2_pcmpistr_unaligned): New.
2846 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
2847             Sameera Deshpande  <sameera.deshpande@arm.com>
2848             Greta Yorsh  <greta.yorsh@arm.com>
2850         * config/arm/arm-protos.h (arm_output_epilogue): Remove.
2851         * config/arm/arm.c (print_multi_reg): Remove.
2852         (vfp_output_fldmd): Likewise.
2853         (arm_output_epilogue): Likewise.
2854         * config/arm/arm.md (epilogue_insns): Update condition and code.
2856 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
2857             Sameera Deshpande  <sameera.deshpande@arm.com>
2858             Greta Yorsh  <greta.yorsh@arm.com>
2860         * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
2861         * config/arm/arm.c (thumb2_expand_return): New function.
2862         * config/arm/arm.md (return): Update condition and code.
2864 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
2865             Sameera Deshpande  <sameera.deshpande@arm.com>
2866             Greta Yorsh  <greta.yorsh@arm.com>
2868         * config/arm/arm-protos.h (output_return_instruction): New parameter
2869         and int to bool change of parameter types.
2870         * config/arm/arm.c (output_return_instruction): Likewise.
2871         * config/arm/arm.md (arm_simple_return): New pattern.
2872         (arm_return, cond_return, cond_return_inverted): Add new arguments.
2873         * config/arm/thumb2.md (thumb2_return): Update condition and code.
2875 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
2876             Sameera Deshpande  <sameera.deshpande@arm.com>
2877             Greta Yorsh  <greta.yorsh@arm.com>
2879         * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
2880         * config/arm/arm.c (arm_expand_epilogue): New function.
2881         * config/arm/arm.md (epilogue): Update condition and code.
2882         (sibcall_epilogue): Likewise.
2884 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
2885             Sameera Deshpande  <sameera.deshpande@arm.com>
2886             Greta Yorsh  <greta.yorsh@arm.com>
2888         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
2889         * config/arm/arm.md (arm_addsi3) Add an alternative.
2891 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
2892             Sameera Deshpande  <sameera.deshpande@arm.com>
2893             Greta Yorsh  <greta.yorsh@arm.com>
2895         * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
2896         * config/arm/predicates.md (pop_multiple_fp) New special predicate.
2897         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
2899 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
2900             Sameera Deshpande  <sameera.deshpande@arm.com>
2901             Greta Yorsh  <greta.yorsh@arm.com>
2903         * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
2904         (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
2905         (pop_multiple_with_return, ldr_with_return) Likewise.
2906         * config/arm/predicates.md (pop_multiple_return) New special predicate.
2907         * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
2908         * config/arm/arm.c (arm_output_multireg_pop) New function.
2909         (arm_emit_multi_reg_pop): New function.
2911 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
2913         * config/arm/arm.c (ldm_stm_operation_p): Require SP
2914         as base register for loads if SP is in the register list.
2916 2012-06-18  Richard Guenther  <rguenther@suse.de>
2918         PR tree-optimization/53693
2919         * tree-vect-patterns.c (vect_operation_fits_smaller_type):
2920         Reject operands with more than one use.
2922 2012-06-18  Bill Schmidt  <wschmidt@linux.ibm.com>
2924         PR tree-optimization/53703
2925         * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
2926         correctly set bb_for_def[12].
2928 2012-06-18  Steven Bosscher  <steven@gcc.gnu.org>
2930         * config/vax/vax.h (VMS_TARGET): Remove.
2932 2012-06-18  Richard Guenther  <rguenther@suse.de>
2934         * tree-vrp.c (extract_range_from_assert): Split out range
2935         intersecting code.
2936         (intersect_ranges): New function.
2937         (vrp_intersect_ranges): Likewise.
2939 2012-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2941         * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
2942         r187965.
2944 2012-06-18  Tejas Belagod  <tejas.belagod@arm.com>
2946         * doc/md.texi: Document int iterators.
2947         * read-rtl.c (ints): New iterator group.
2948         (find_int): Int iterator group callback.
2949         (apply_int_iterator): Likewise.
2950         (apply_iterators): Traverse int iterator table and add all the used
2951         iterators to list.
2952         (initialize_iterators): Initialize data structures and callbacks for
2953         int iterators.
2954         (read_rtx): Parse and read mappings for int iterators.
2955         (read_rtx_code): Record int iterator usage.
2957 2012-06-18  Richard Sandiford  <rdsandiford@googlemail.com>
2959         PR middle-end/53698
2960         * expr.c (expand_expr_addr_expr_1): Convert to tmode before
2961         performing an addition.
2963 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
2965         * output.h (split_double): Move prototype to rtl.h.
2966         (constructor_static_from_elts_p): Move prototype to tree.c.
2967         * rtl.h (split_double): Moved here from output.h.
2968         * tree.h (constructor_static_from_elts_p): Moved here from output.h.
2969         * final.c (split_double): Move from here ...
2970         * rtlanal.c (split_double): ... to here.
2971         * expr.c: Do not include output.h.
2973 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
2975         * cfglayout.h: Remove.
2976         * cfglayout.c: Remove.
2977         * function.h (struct function): Remove x_last_location field.
2978         * function.c: Do not include cfglayout.h.
2979         (expand_function_start): Do not call no-op force_next_line_note.
2980         (expand_function_end): Likewise.
2981         * cfgrtl.c: Do not include cfglayout.h.  Include gt-cfgrtl.h.
2982         (unlink_insn_chain): Moved here from cfglayout.c.
2983         (skip_insns_after_block, label_for_bb, record_effective_endpoints,
2984         into_cfg_layout_mode, outof_cfg_layout_mode,
2985         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
2986         relink_block_chain, fixup_reorder_chain, verify_insn_chain,
2987         fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
2988         cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
2989         cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
2990         cfg_layout_finalize): Likewise.
2991         (rtl_can_remove_branch_p): Likewise.
2992         * rtl.h (insn_scope): Move prototype from cfglayout.h here.
2993         (duplicate_insn_chain): Likewise.
2994         (force_next_line_note): Remove prototype.
2995         * emit-rtl.c: Do not include tree-flow.h, egad.  Include vecprim.h.
2996         (last_location): Remove #define to emit.x_last_location.
2997         (force_next_line_note): Remove no-op function.
2998         (init_emit): Don't set x_last_location.
2999         (block_locators_locs, block_locators_blocks, locations_locators_locs,
3000         locations_locators_vals, prologue_locator, epilogue_locator,
3001         curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3002         Move POD to here from cfglayout.c.
3003         (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
3004         set_curr_insn_source_location, get_curr_insn_source_location,
3005         set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
3006         locator_scope, insn_scope, locator_location, locator_line, insn_line,
3007         locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
3008         * cfghooks.h: Remove double-include protection.
3009         (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
3010         * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
3011         * final.c: Do not include cfglayout.h.
3012         (choose_inner_scope, change_scope): Move to here from cfglayout.c.
3013         (reemit_insn_block_notes): Likewise.  Make static.
3014         * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
3015         operation_could_trap_p, tree_could_throw_p): Move from here...
3016         * tree.h: ... to here.
3017         * gengtype.c (open_base_files): Remove cfglayout.h from the list.
3018         * profile.c: Do not include cfghooks.h.
3019         * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
3020         * modulo-sched.c: Likewise.
3021         * loop-unswitch.c: Do not include cfglayout.h.
3022         * sched-ebb.c: Likewise.
3023         * tracer.c: Likewise.
3024         * ddg.c: Likewise.
3025         * tree-vect-loop-manip.c: Likewise.
3026         * loop-init.c: Likewise.
3027         * dwarf2out.c: Likewise.
3028         * hw-doloop.c: Likewise.
3029         * loop-unroll.c: Likewise.
3030         * cfgcleanup.c: Likewise.
3031         * bb-reorder.c: Likewise.
3032         * sched-rgn.c: Likewise.
3033         * tree-cfg.c: Likewise.
3034         * config/alpha/alpha.c: Likewise.
3035         * config/spu/spu.c: Likewise.
3036         * config/sparc/sparc.c: Likewise.
3037         * config/sh/sh.c: Likewise.
3038         * config/c6x/c6x.c: Likewise.
3039         * config/ia64/ia64.c: Likewise.
3040         * config/rs6000/rs6000.c: Likewise.
3041         * config/score/score.c: Likewise.
3042         * config/mips/mips.c: Likewise.
3043         * config/bfin/bfin.c: Likewise.
3044         * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
3045         * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
3046         * config/spu/t-spu-elf (spu.o: $): Likewise.
3047         * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
3049 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3051         * cfgloop.h: Do not include rtl.h.
3052         (enum iv_extend_code): New.
3053         (struct rtx_iv): Use iv_extend_code instead of rtx_code.
3054         * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
3055         * loop-iv.c (iv_extend_to_rtx_code): New function to translate
3056         an IV_EXTEND_CODE to an RTX_CODE.
3057         (dump_iv_info): Update for rtx_iv field type change.
3058         (iv_constant): Likewise.
3059         (iv_subreg): Likewise.
3060         (iv_extend): Likewise.
3061         (iv_neg): Likewise.
3062         (iv_add): Likewise.
3063         (iv_mult): Likewise.
3064         (iv_shift): Likewise.
3065         (get_biv_step_1): Likewise.
3066         (get_biv_step): Likewise.
3067         (iv_analyze_biv): Likewise.
3068         (get_iv_value): Likewise.
3069         (shorten_into_mode): Likewise.
3070         (canonicalize_iv_subregs): Likewise.
3071         * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
3072         of MAY_HAVE_DEBUG_INSNS.
3073         * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
3074         * tree-ssa-loop-prefetch.c: Likewise.
3076 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3078         * expmed.c (ceil_log2): Move from here...
3079         * hwint.c: ... to here for older GCCs...
3080         * hwint.h: ... and here for newer GCCs.
3081         * rtl.h (ceil_log2): Remove prototype.
3083         * tree-phinodes.c: Do not include rtl.h.
3084         * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
3086 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3088         * config/cris/cris.h (TARGET_ELF): Remove.
3089         (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
3090         (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
3091         (LOCAL_LABEL_PREFIX): Likewise.
3092         * config/cris/cris.c (cris_target_asm_named_section): Remove.
3093         (cris_option_override): Simpify using TARGET_ELF==1.
3094         (cris_file_start): Likewise.
3095         * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
3097 2012-06-17  Uros Bizjak  <ubizjak@gmail.com>
3099         * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
3101 2012-06-16  Eric Botcazou  <ebotcazou@adacore.com>
3103         PR middle-end/53590
3104         * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
3106 2012-06-15  Easwaran Raman  <eraman@google.com>
3108         * passes.c (init_optimization_passes): Remove pass_call_cdce
3109         from its current position and insert after pass_dce.
3111 2012-06-15  Walter Lee  <walt@tilera.com>
3113         * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
3115 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
3117         * arm.c (note_invalid_constants): Don't return a result.
3118         (arm_memory_load_p): Delete function.
3119         (arm_const_double_rtx): Delete iterator variable i;
3120         (fp_immediate_constant): Likewise.
3121         (fp_const_from_val): Likewise.
3123         * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
3125 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
3127         PR c++/51033
3128         * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
3129         * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
3131 2012-06-15  Georg-Johann Lay  <avr@gjlay.de>
3133         * config/avr/avr.c (avr_default_expand_builtin): New function.
3134         (avr_expand_builtin): Use it.
3135         (avr_expand_unop_builtin): Remove.
3136         (avr_expand_binop_builtin): Remove.
3137         (avr_expand_triop_builtin): Remove.
3139 2012-06-15  Michael Matz  <matz@suse.de>
3141         PR middle-end/38474
3142         * cfgexpand.c (add_alias_set_conflicts): Remove.
3143         (expand_used_vars): Don't call it.
3144         (aggregate_contains_union_type): Remove.
3145         * function.c (n_temp_slots_in_use): New static data.
3146         (make_slot_available, assign_stack_temp_for_type): Update it.
3147         (init_temp_slots): Zero it.
3148         (remove_unused_temp_slot_addresses): Use it for quicker removal.
3149         (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
3151 2012-06-15  Michael Matz  <matz@suse.de>
3153         * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
3154         argument, don't emit assign statement if value is directly usable.
3155         (gimplify_expr): Adjust.
3157 2012-06-15  Michael Matz  <matz@suse.de>
3159         * gimplify.c (gimplify_modify_expr): Fold generated statements.
3160         * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
3162 2012-06-15  Richard Guenther  <rguenther@suse.de>
3164         * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
3165         predicates to set VR_UNDEFINED and VR_VARYING.  Drop a case
3166         we assert for in set_value_range to VR_VARYING.
3168 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
3170         * arm.md (addsf3, adddf3): Use s_register_operand.
3171         (subsf3, subdf3): Likewise.
3172         (mulsf3, muldf3): Likewise.
3173         (difsf3, divdf3): Likewise.
3174         (movsfcc, movdfcc): Likewise.
3175         * predicates.md (f_register_operand): Delete.
3176         (arm_float_rhs_operand): Delete.
3177         (arm_float_add_operand): Delete.
3178         (arm_float_compare_operand): Use s_register_operand when
3179         there's no VFP.
3180         (cirrus_register_operand): Delete.
3181         (cirrus_fp_register): Delete.
3182         (cirrus_shift_const): Delete.
3183         (cmpdi_operand): Remove Maverick support.
3184         * constraints.md (f, v, H): Delete constraints.
3185         (G): Update documentation.
3186         * arm.c (fp_consts_inited): Convert to bool.
3187         (strings_fp): Delete.
3188         (values_fp): Delete.
3189         (value_fp0): New variable.
3190         (init_fp_table): Simplify logic.
3191         (arm_const_double_rtx): Likewise.
3192         (fp_immediate_constant): Likewise.
3193         (fp_const_from_val): Likewise.
3194         (neg_const_double_rtx_ok_for_fpa): Delete.
3195         * doc/md.texi (ARM constraints): Update documentation.
3197 2012-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
3199         PR tree-optimization/53636
3200         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
3201         stride when doing basic-block vectorization.
3203 2012-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3205         * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
3206         into VEC_PERM_EXPR.
3208 2012-06-15  Jakub Jelinek  <jakub@redhat.com>
3210         * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
3211         allocate and free bbs array for the SLP case.
3213         PR tree-optimization/51581
3214         * expr.h (choose_multiplier): New prototype.
3215         * expmed.c (choose_multiplier): No longer static.
3216         Change multiplier_ptr from rtx * to UHWI *.
3217         (expand_divmod): Adjust callers.
3218         * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
3219         (vect_recog_divmod_pattern): ... this.  Pass bb_vinfo as last
3220         argument to new_stmt_vec_info.  Attempt to optimize also divisions
3221         by non-pow2 constants if integer vector division isn't supported.
3222         * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
3223         don't look at pattern stmts and sequences.
3225 2012-06-15  Eric Botcazou  <ebotcazou@adacore.com>
3227         PR middle-end/53590
3228         * common.opt (-fdelete-dead-exceptions): New switch.
3229         * doc/invoke.texi (Code Gen Options): Document it.
3230         * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
3231         insn_could_throw_p predicate.  Do not skip an insn that could throw
3232         if dead exceptions can be deleted.
3233         (insn_live_p): Likewise, do not return true in that case.
3234         * dce.c (can_alter_cfg): New flag.
3235         (deletable_insn_p): Do not return false for an insn that can throw if
3236         the CFG can be altered and dead exceptions can be deleted.
3237         (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
3238         * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
3239         predicate. Do not preserve an insn that could throw if dead exceptions
3240         can be deleted.
3241         * function.h (struct function): Add can_delete_dead_exceptions flag.
3242         * function.c (allocate_struct_function): Set it.
3243         * lto-streamer-in.c (input_struct_function_base): Stream it.
3244         * lto-streamer-out.c (input_struct_function_base): Likewise.
3245         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
3246         statement that could throw as necessary if dead exceptions can be
3247         deleted.
3249 2012-06-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
3251         * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
3253 2012-06-14  Oleg Endo  <olegendo@gcc.gnu.org>
3255         PR target/53568
3256         * config/sh/sh.md: Add peephole for swapbsi2.
3257         (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
3259 2012-06-14  Uros Bizjak  <ubizjak@gmail.com>
3261         * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
3262         (*zero_extendsidi2_rex64): Ditto.  Remove isa attribute.
3264 2012-06-14  Jakub Jelinek  <jakub@redhat.com>
3266         PR target/53639
3267         * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
3269 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
3271         * arm.c (arm_cirrus_insn_p): Delete.
3272         (cirrus_reorg): Delete.
3273         (arm_reorg): Don't call cirrus_reorg.
3274         (arm_final_prescan_insn_p): Don't check for cirrus insns.
3275         * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
3276         (adddi3, subdi3): Remove Maverick support.
3277         (arm_adddi3): Likewise.
3278         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
3279         (addsf3, adddf3): Likewise.
3280         (subsf3, subdf3): Likewise.
3281         (mulsf3, muldf3): Likewise.
3282         (ashldi3, ashrdi3, lshrdi3): Likewise.
3283         (floatsisf2, floatsidf2): Likewise.
3284         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
3285         (arm_movdi, thumb1_movdi_insn): Likewise.
3286         (arm_cmpdi_insn): Likewise.
3287         (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
3288         (cirrus.md): Don't include.
3289         * cirrus.md: Delete file.
3290         * t-arm (MD_INCLUDES): Remove cirrus.md.
3292 2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
3294         * dwarf2out.c (function_possibly_abstracted_p): New static function.
3295         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
3296         cgraph_function_possibly_inlined_p.
3297         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
3298         (process_scope_var): Do not emit concrete instances of abstracted
3299         nested functions from here.
3300         (gen_decl_die): Emit the abstract instance if the function is possibly
3301         abstracted and not only possibly inlined.
3302         (dwarf2out_finish): Find the first non-abstract parent instance and
3303         attach concrete instances on the limbo list to it.
3305 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
3307         * arm.md (divsf3, divdf3): Remove FPA support.
3308         (negsf2, negdf2): Likewise.
3309         (sqrtsf2, sqrtdf2): Likewise.
3310         (movdfcc): Likewise.
3311         (modsf3, moddf3, movxf): Delete.
3312         (push_fp_multi): Delete.
3313         (fpa.md): Don't include it.
3314         * fpa.md: Delete file.
3315         * t-arm (MD_INCLUDES): Remove fpa.md.
3317 2012-06-14  Bill Schmidt  <wschmidt@linux.ibm.com>
3319         * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
3320         (cost_for_stmt): Remove decl.
3321         (vect_get_single_scalar_iteration_cost): Correct typo in name.
3322         * tree-vect-loop.c (vect_get_cost): Remove.
3323         (vect_get_single_scalar_iteration_cost): Correct typo in name; use
3324         vect_get_stmt_cost rather than vect_get_cost.
3325         (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
3326         vect_get_cost.
3327         (vect_estimate_min_profitable_iters): Correct typo in call to
3328         vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
3329         than vect_get_cost.
3330         (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
3331         vect_get_cost.
3332         (vect_model_induction_cost): Likewise.
3333         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
3334         typo in call to vect_get_single_scalar_iteration_cost.
3335         * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
3336         (cost_for_stmt): Remove unnecessary function.
3337         * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
3339 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
3341         * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
3342         * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
3343         * arm-tables.opt: Regenerated.
3344         * doc/invoke.texi: Remove references to deleted options.
3346 2012-06-14  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
3348         * config/h8300/genmova.sh: Modified to add offset bits of
3349         mova/Sz assembly instruction for memory access.
3350         * config/h8300/h8300.c: Likewise.
3351         * config/h8300/mova.md: Likewise.
3353 2012-06-12  Christian Bruel  <christian.bruel@st.com>
3355         PR target/53621
3356         * config/sh/sh.c (sh_option_override): Don't force
3357          flag_omit_frame_pointer and maccumulate_outgoing_args.
3358         * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
3360 2012-06-14  Richard Guenther  <rguenther@suse.de>
3362         * tree-vrp.c (VR_INITIALIZER): New define.
3363         (ranges_from_anti_range): New function.
3364         (extract_range_from_binary_expr_1): Decompose operations on
3365         VR_ANTI_RANGEs to operations on VR_RANGE.
3366         (extract_range_from_unary_expr_1): Likewise.
3367         (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
3368         extract_range_from_unary_expr_1, extract_range_from_unary_expr,
3369         extract_range_from_cond_expr, adjust_range_with_scev,
3370         vrp_visit_assignment_or_call, vrp_visit_phi_node,
3371         simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
3373 2012-06-13  Richard Henderson  <rth@redhat.com>
3375         * hwint.h (HOST_WIDEST_INT_C): New.
3376         (HOST_WIDE_INT_C): New.
3377         (HOST_WIDE_INT_1): Use it.
3378         * config/alpha/alpha.c (alpha_trampoline_init): Use it.
3380 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
3382         PR debug/49888
3383         * var-tracking.c: Include alias.h.
3384         (overlapping_mems): New struct.
3385         (drop_overlapping_mem_locs): New.
3386         (clobber_overlapping_mems): New.
3387         (var_mem_delete_and_set, var_mem_delete): Call it.
3388         (val_bind): Likewise, but only if modified.
3389         (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
3390         * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
3392 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
3394         PR debug/47624
3395         * var-tracking.c (loc_exp_dep_pool): New.
3396         (vt_emit_notes): Create and release the pool.
3397         (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
3398         (emit_notes_in_bb): Likewise.
3399         (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
3400         (notify_dependents_of_changed_value): Likewise.
3401         (notify_dependents_of_resolved_value): Check that NOT_ONEPART
3402         variables don't have a VAR_LOC_DEP_LST.
3403         (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
3404         VALUEs or MEMs of VALUEs.
3406 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
3408         PR debug/52983
3409         PR debug/48866
3410         * dce.c (word_dce_process_block): Insert debug temps only if the
3411         insn is not marked.
3412         (dce_process_block): Likewise, and if debug.used is not empty,
3413         and only after iterating over all DEFs that might mark the insn.
3415 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
3417         * common.opt (ftree-coalesce-inlined-vars): New.
3418         (ftree-coalesce-vars): New.
3419         * doc/invoke.texi: Document them.
3420         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
3421         Implement them.
3423 2012-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
3425         * read-rtl.c (mapping): Remove index field.  Add current_value field.
3426         Define heap vectors.
3427         (iterator_group): Fix long line.  Remove num_builtins field and
3428         uses_iterator fields.  Make apply_iterator take a void * parameter.
3429         (iterator_use, atttribute_use): New structures.
3430         (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
3431         (current_iterators, iterator_uses, attribute_uses): New variables.
3432         (uses_mode_iterator_p, uses_code_iterator_p): Delete.
3433         (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
3434         (map_attr_string, apply_iterator_to_string): Remove iterator
3435         and value parameters.  Look through all current iterator values
3436         for a matching attribute.
3437         (mode_attr_index, apply_mode_maps): Delete.
3438         (apply_iterator_to_rtx): Replace with...
3439         (copy_rtx_for_iterators): ...this new function.
3440         (uses_iterator_p, apply_iterator_traverse): Delete.
3441         (apply_attribute_uses, add_current_iterators, apply_iterators): New
3442         functions.
3443         (add_mapping): Remove index field.  Set current_value field.
3444         (initialize_iterators): Don't set num_builtins and uses_iterator_p
3445         fields.
3446         (find_iterator): Delete.
3447         (record_iterator_use, record_attribute_use): New functions.
3448         (record_potential_iterator_use): New function.
3449         (check_code_iterator): Remove handling of bellwether codes.
3450         (read_rtx): Remove mode maps.  Truncate iterator and attribute uses.
3451         (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
3452         parameter.  Use the first code iterator value instead of the
3453         bellwether_codes array.  Use record_potential_iterator_use for modes.
3455 2012-06-13  Oleg Endo  <olegendo@gcc.gnu.org>
3457         PR target/53568
3458         * config/sh/sh.md (bswapsi2): New expander.
3459         (swapbsi2): New insn.
3461 2012-06-13  H.J. Lu  <hongjiu.lu@intel.com>
3463         PR target/53647
3464         * config/i386/i386.c (ix86_tune_cost): New variable.
3465         (ix86_option_override_internal): Set ix86_tune_cost.  Use
3466         ix86_tune_cost for simultaneous_prefetches, prefetch_block,
3467         l1_cache_size and l2_cache_size.
3469 2012-06-13  Richard Guenther  <rguenther@suse.de>
3471         * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
3472         Handle meeting two VR_RANGE to an VR_ANTI_RANGE.  Implement
3473         all possible meetings of VR_RANGE with VR_ANTI_RANGE and
3474         VR_ANTI_RANGE with VR_ANTI_RANGE.
3476 2012-06-13  Richard Earnshaw  <rearnsha@arm.com>
3478         * config.gcc (unsupported): Move obsoleted FPA-based configurations
3479         here from ...
3480         (obsolete): ... here.
3481         (arm*-*-freebsd*): Remove.
3482         (arm*-*-linux*): Only accept EABI variants.  Simplify logic.
3483         (arm*-*-uclinux*): Likewise.
3484         (arm*-*-ecos-elf): Remove.
3485         (arm*-*-rtems*): Remove.
3486         (arm*-*-elf): Remove.
3487         (arm*-wince-pe*): Remove.
3488         (arm, --with-fpu): Remove support for fpa and Maverick variants.
3489         * arm/ecos-elf.h: Delete.
3490         * arm/t-strongarm-elf: Delete.
3491         * arm/rtems-elf.h: Delete.
3492         * arm/wince-pe.h: Delete.
3493         * arm/pe.c: Delete.
3494         * arm/pe.h: Delete.
3495         * arm/t-wince-pe: Delete.
3497 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
3499         PR tree-optimization/53647
3500         * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
3501         targets with no defined cache line size.
3503 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
3505         * targhooks.c (default_builtin_vectorized_conversion): Handle
3506         vec_construct, using vectype to base cost on subparts.
3507         * target.h (enum vect_cost_for_stmt): Add vec_construct.
3508         * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
3509         instead of scalar_to-vec.
3510         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
3511         vec_construct in same way as default for now.
3512         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
3513         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3514         Handle vec_construct, including special case for 32-bit loads.
3516 2012-06-13  Xinyu Qi <xyqi@marvell.com>
3518         * config/arm/arm.c (FL_IWMMXT2): New define.
3519         (arm_arch_iwmmxt2): New variable.
3520         (arm_option_override): Enable use of iWMMXt with VFP.
3521         Disable use of iWMMXt with NEON. Disable use of iWMMXt under
3522         Thumb mode. Set arm_arch_iwmmxt2.
3523         (arm_expand_binop_builtin): Accept VOIDmode op.
3524         (enum arm_builtins): Revise built-in fcode.
3525         (IWMMXT2_BUILTIN): New define.
3526         (IWMMXT2_BUILTIN2): Likewise.
3527         (iwmmx2_mbuiltin): Likewise.
3528         (builtin_description bdesc_2arg): Revise built in declaration.
3529         (builtin_description bdesc_1arg): Likewise.
3530         (arm_init_iwmmxt_builtins): Revise built in initialization.
3531         (arm_expand_builtin): Revise built in expansion.
3532         (arm_output_iwmmxt_shift_immediate): New function.
3533         (arm_output_iwmmxt_tinsr): Likewise.
3534         * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
3535         (arm_output_iwmmxt_tinsr): Likewise.
3536         * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
3537         (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
3538         (rorv4hi3, rorv2si3, rordi3): Likewise.
3539         (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
3540         (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
3541         (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
3542         (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
3543         (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
3544         (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
3545         (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
3546         (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
3547         (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
3548         (ror<mode>3, ror<mode>3_di): Likewise.
3549         (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
3550         (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
3551         (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
3552         (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
3553         (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
3554         (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
3555         (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
3556         (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
3557         (All instruction patterns): Add wtype attribute.
3558         (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
3559         (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
3560         (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
3561         (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
3562         (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
3563         (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
3564         (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
3565         (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
3566         (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
3567         (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
3568         (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
3569         (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
3570         (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
3571         (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
3572         (iwmmxt2.md): Include.
3573         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
3574         (TARGET_IWMMXT2): New define.
3575         (TARGET_REALLY_IWMMXT2): Likewise.
3576         (arm_arch_iwmmxt2): Declare.
3577         * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
3578         Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
3579         Use C name-mangling for intrinsics.
3580         (__v8qi): Redefine.
3581         (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
3582         (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
3583         (_m_from_int): Likewise.
3584         (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
3585         (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
3586         (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
3587         (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
3588         (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
3589         (_mm_tbcst_pi32): Likewise.
3590         (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
3591         (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
3592         (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
3593         (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
3594         (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
3595         (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
3596         (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
3597         (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
3598         (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
3599         (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
3600         (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
3601         (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
3602         (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
3603         (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
3604         (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
3605         (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
3606         (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
3607         (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
3608         (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
3609         (_m_to_int): New define.
3610         * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
3611         * config/arm/arm-arches.def (iwmmxt2): Likewise.
3612         * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
3613         iwmmxt2.md.
3614         * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
3615         (arch): Add "iwmmxt2".
3616         (arch_enabled): Handle "iwmmxt2".
3617         (wtype): New attribute.
3618         (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
3619         (UNSPEC_WALIGNI): New unspec.
3620         * config/arm/predicates.md (imm_or_reg_operand): New predicate.
3621         * config/arm/iterators.md (VMMX2): New mode_iterator.
3622         * config/arm/marvell-f-iwmmxt.md: New file.
3623         * config/arm/iwmmxt2.md: New file.
3625 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
3627         PR c/53532
3628         PR c/51034
3629         PR c/53196
3630         * c-decl.c (build_compound_literal): Call c_incomplete_type_error
3631         if type isn't complete.
3633 2012-06-12  Uros Bizjak  <ubizjak@gmail.com>
3635         * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
3637 2012-06-12  Richard Henderson  <rth@redhat.com>
3639         * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
3640         iterator instead of INT.
3642 2012-06-12  Bill Schmidt  <wschmidt@linux.ibm.com>
3644         * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
3645         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
3646         declaration.
3647         (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
3648         (tree_ssa_phiopt): Call gate_hoist_loads.
3649         (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
3650         (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
3651         hoist_adjacent_loads.
3652         (local_mem_dependence): New function.
3653         (hoist_adjacent_loads): Likewise.
3654         (gate_hoist_loads): Likewise.
3655         * common.opt (fhoist-adjacent-loads): New switch.
3656         * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
3658 2012-06-12  Michael Matz  <matz@suse.de>
3660         * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
3661         (nonoverlapping_memrefs_p): Don't call it here ...
3662         (true_dependence_1): ... but here.
3664 2012-06-12  Richard Guenther  <rguenther@suse.de>
3666         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
3667         * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
3668         and MEM_SIZE only refines it.  Reflect that and be less conservative
3669         if either of the latter is not known.
3671 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
3673         PR rtl-optimization/53589
3674         * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
3675         discovery even when e->dest != target.  If any LABEL_REF points
3676         to e->dest label, redirect it to target's label.
3678 2012-06-12  Chung-Lin Tang  <cltang@codesourcery.com>
3680         * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
3681         condition for generating REG_FRAME_RELATED_EXPR note.
3682         (pop): Add code for generating REG_CFA_RESTORE,
3683         REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
3684         (sh_expand_epilogue): Use frame_insn() for FP to SP move.
3685         Set 'frame_p' of calls to output_stack_adjust() to 'true'.
3687 2012-06-11  Richard Henderson  <rth@redhat.com>
3689         * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
3690         * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
3692         * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
3694 2012-06-12  Hans-Peter Nilsson  <hp@axis.com>
3696         * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
3697         Mention that this hook needs to be defined for native TLS.
3698         * doc/tm.texi: Regenerate.
3700 2012-06-11  Mike Stump  <mikestump@comcast.net>
3702         * emit-rtl.c (init_emit_once): Iterate through the
3703         MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
3704         MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
3705         all the MIN_MODE_PARTIAL_INT modes anymore.
3707 2012-06-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
3709         * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
3711 2012-06-11  Roland McGrath  <mcgrathr@google.com>
3713         * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
3714         SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
3715         not a VAR_DECL.  Also don't limit it to UNSPECs with exactly one
3716         operand.
3718 2012-06-11  Oleg Endo  <olegendo@gcc.gnu.org>
3720         PR target/53511
3721         * config/sh/sh.md (fmasf4): New expander.
3722         (*macsf3): Rename to fmasf4_i.  Adapt to fma pattern.
3723         (mac_media): Rename to fmasf4_media.  Adapt to fma pattern.
3724         * config/sh/sh.opt (mfused-madd): Remove.
3725         * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
3726         (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
3727         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
3728         as extra options.
3729         * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
3730         descriptions.
3732 2012-06-11  Richard Henderson  <rth@redhat.com>
3734         * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
3736 2012-06-11  Richard Guenther  <rguenther@suse.de>
3738         PR middle-end/53470
3739         * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
3740         replace it with the first non-BLOCK context.
3742 2012-06-11  Richard Guenther  <rguenther@suse.de>
3744         * alias.c (aliases_everything_p): Remove.
3745         (DIFFERENT_ALIAS_SETS_P): Likewise.
3746         (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
3747         Do not use aliases_everything_p or special-case ANDs.  Do not
3748         special-case BLKmode moves.
3749         (may_alias_p): Likewise.  Handle BLKmode similar like everywhere
3750         - for SCATCH only.
3752 2012-06-09  Hans-Peter Nilsson  <hp@axis.com>
3754         Fix CRIS build errors with --enable-build-with-cxx.
3755         * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
3756         variable "and" to "andop".
3757         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
3758         temporary variable for memory model, passing C++-type-correct
3759         parameter type to expand_mem_thread_fence.
3760         ("atomic_compare_and_swap<mode>"): Ditto.
3762 2012-06-09  Richard Henderson  <rth@redhat.com>
3764         PR c++/53602
3765         * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
3766         (pass_jump): Rename from pass_jump2.
3767         (execute_jump2, pass_jump2): New.
3768         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
3769         perform cfg cleanup here.  Move the test of PUSH_ROUNDING
3770         and ACCUMULATE_OUTGOING_ARGS test...
3771         (gate_handle_stack_adjustments): ... here.
3772         * passes.c (init_optimization_passes): Update for pass_jump2 rename.
3773         Place new pass_jump2 after pass_stack_adjustments.
3774         * tree-pass.h (pass_jump): Declare.
3776 2012-06-09  Kenneth Zadeck <zadeck@naturalbridge.com>
3778         * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
3779         count trucation.
3781 2012-06-08  Richard Henderson  <rth@redhat.com>
3783         PR c++/53602
3784         * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
3785         note to a clobber insn when no other insn is available.
3787 2012-06-08  Georg-Johann Lay  <avr@gjlay.de>
3789         * config/avr/avr.c (avr_case_values_threshold): Return 7.
3791 2012-06-07  Andreas Schwab  <schwab@linux-m68k.org>
3793         * genhooks.c (main): Set progname.
3794         (emit_documentation): Remove variable found_start, always bail out
3795         when a place is missing.
3796         * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
3798 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
3800         PR middle-end/53580
3801         * omp-low.c (scan_omp): Change first argument to gimple_seq *,
3802         call walk_gimple_seq_mod instead of walk_gimple_seq.
3803         (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
3804         scan_omp_for, scan_omp_sections, scan_omp_single,
3805         execute_lower_omp): Adjust callers.
3806         (scan_omp_1_stmt): Likewise.  If check_omp_nesting_restrictions
3807         returns false, replace stmt with GIMPLE_NOP.
3808         (check_omp_nesting_restrictions): Instead of issuing warnings,
3809         issue errors and return false if any errors were reported.
3811 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
3813         * doc/invoke.texi (fconserve-space): Remove documentation.
3815 2012-06-06  Edmar Wienskoski  <edmar@freescale.com>
3817         * config/rs6000/rs6000-tables.opt: Regenerated.
3819 2012-06-06  Richard Guenther  <rguenther@suse.de>
3821         PR tree-optimization/53081
3822         * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
3823         (adjacent_dr_p): ... this and make it work for reads, too.
3824         * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
3825         (struct partition_s): Change main_stmt to main_dr, add
3826         secondary_dr member.
3827         (build_size_arg_loc): Change to date data-reference and not
3828         gimplify here.
3829         (build_addr_arg_loc): New function split out from ...
3830         (generate_memset_builtin): ... here.  Use it and simplify.
3831         (generate_memcpy_builtin): New function.
3832         (generate_code_for_partition): Adjust.
3833         (classify_partition): Streamline pattern detection.  Detect memcpy.
3834         (ldist_gen): Adjust.
3835         (tree_loop_distribution): Adjust seed statements for memcpy
3836         recognition.
3838 2012-06-06  Matt Turner  <mattst88@gmail.com>
3840         * config/arm/mmintrin.h (_mm_empty): New.
3841         (_m_empty): New.
3843 2012-06-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
3845         * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
3846         * common.opt (fsched-pressure-algorithm=): Remove.
3847         * flag-types.h (sched_pressure_algorithm): Move to...
3848         * sched-int.h (sched_pressure_algorithm): ...here.
3849         * params.def (sched-pressure-algorithm): New param.
3850         * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
3851         * common/config/s390/s390-common.c (s390_option_optimization_table):
3852         Remove OPT_fsched_pressure_algorithm_ entry.
3853         * config/s390/s390.c (s390_option_override): Set a default value for
3854         PARAM_SCHED_PRESSURE_ALGORITHM.
3856 2012-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
3858         PR target/53487
3859         * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
3860         doing an unsigned compare, make sure the second argument is not a
3861         negative constant.
3862         (rs6000_emit_cmove): Don't allow floating point comparisons when
3863         generating ISEL moves.
3865 2012-06-05  Edmar Wienskoski  <edmar@freescale.com>
3867         * config/rs6000/e5500.md: New file.
3868         * config/rs6000/e6500.md: New file.
3869         * config/rs6000/rs6000.c (processor_costs): Add new costs for
3870         e5500 and e6500.
3871         (rs6000_option_override_internal): Altivec and Spe options not
3872         allowed with e5500. Spe options not allowed with e6500. Increase
3873         move inline limit for e5500 and e6500. Disable string instructions
3874         for e5500 and e6500. Enable branch targets alignment for e5500 and
3875         e6500. Initialize rs6000_cost for e5500 and e6500.
3876         (rs6000_adjust_cost): Add extra scheduling cycles between compare
3877         and brnach for e5500 and e6500.
3878         (rs6000_issue_rate): Set issue rate for e5500 and e6500.
3879         * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
3880         e6500.
3881         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
3882         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
3883         ppce6500.
3884         Include e5500.md and e6500.md.
3885         * config/rs6000/rs6000-opt.h (processor_type): Add
3886         PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
3887         * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
3888         (powerpc*-*-*): Add new cores e5500, e6500.
3889         * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
3891 2012-06-05  Richard Guenther  <rguenther@suse.de>
3893         * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
3895 2012-06-05  H.J. Lu  <hongjiu.lu@intel.com>
3897         PR target/53575
3898         * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
3899         is used for x86_64-*-*.
3901 2012-06-05  Richard Guenther  <rguenther@suse.de>
3903         PR tree-optimization/30442
3904         * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
3905         vectorization stop analysis at the first stmt we cannot compute
3906         a data-reference for instead of giving up completely.
3908 2012-06-05  Richard Guenther  <rguenther@suse.de>
3910         * tree-loop-distribution.c (struct partition_s): Add has_writes member.
3911         (partition_alloc): Initialize it.
3912         (partition_has_writes): New function.
3913         (rdg_flag_uses): Adjust.
3914         (rdg_flag_vertex): Likewise.
3915         (rdg_flag_vertex_and_dependent): Likewise.
3916         (rdg_flag_loop_exits): Likewise.
3917         (build_rdg_partition_for_component): Likewise.
3918         (rdg_build_partitions): Likewise.
3920 2012-06-05  Richard Guenther  <rguenther@suse.de>
3922         PR tree-optimization/53081
3923         * tree-loop-distribution.c (generate_memset_builtin): Handle all
3924         kinds of byte-sized stores.
3925         (classify_partition): Likewise.
3926         (tree_loop_distribution): Adjust seed statements used for
3927         !flag_tree_loop_distribution.
3929 2012-06-05  Alan Modra  <amodra@gmail.com>
3931         * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
3932         (rs6000_emit_prologue): Ensure register used for inline saves
3933         of vector regs is not the static chain register.  Revise comment.
3935 2012-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
3937         * doc/md.texi (Standard Pattern Names For Generation): Document
3938         sincos pattern.
3940 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3942         PR bootstrap/53555
3943         * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
3945 2012-06-04  Jason Merrill  <jason@redhat.com>
3947         * dwarf2out.c (is_unit_die): New.
3948         (copy_declaration_context, copy_ancestor_tree): Use it.
3949         (copy_decls_walk): Likewise.
3951 2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>
3953         PR c++/53524
3954         * doc/invoke.texi (Wenum-compare): Update documentation.
3956 2012-06-04  Dodji Seketeli  <dodji@redhat.com>
3958         PR preprocessor/53463
3959         * parser.c (cp_parser_assignment_expression): Use the location
3960         for the '=' as the default location for the expression.
3962 2012-06-04  Edmar Wienskoski  <edmar@freescale.com>
3964         PR target/53559
3965         * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
3966         operands.
3967         (altivec_stvlxl): Ditto.
3968         (altivec_stvrx): Ditto.
3969         (altivec_stvrxl): Ditto.
3971 2012-06-04  Vladimir Makarov  <vmakarov@redhat.com>
3973         * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
3974         (ira_uniform_class_p): New macro.
3976         * ira.c (setup_uniform_class_p): New function.
3977         (setup_allocno_and_important_classes): Call the function.
3978         (print_unform_and_important_classes): New function.
3979         (print_classes): Rename to print_translated_classes.
3980         (ira_debug_allocno_classes): Add call of
3981         print_unform_and_important_classes.
3983         * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
3984         classes instead of pressure classes.
3986 2012-06-04  Aldy Hernandez  <aldyh@redhat.com>
3988         PR middle-end/47530
3989         * trans-mem.c (expand_block_edges): Do not skip the first
3990         statement when resetting the BB.
3992 2012-06-04  Richard Guenther  <rguenther@suse.de>
3994         * tree-data-ref.c (stores_from_loop): Remove.
3995         (stmt_with_adjacent_zero_store_dr_p): Likewise.
3996         (stores_zero_from_loop): Likewise.
3997         * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
3998         stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
3999         (adjacent_store_dr_p): New function.
4000         * tree-loop-distribution.c (generate_memset_builtin): Pass
4001         the RDG, use the already available data-reference.
4002         (generate_code_for_partition): Pass down RDG.
4003         (classify_partition): Inline parts of the former
4004         stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
4005         (ldist_gen): Remember if there was any detected builtin and
4006         do less work if not and flag_tree_loop_distribution is not set.
4007         (tree_loop_distribution): Inline and fuse stores_from_loop
4008         and stores_zero_from_loop here.
4010 2012-06-04  Richard Guenther  <rguenther@suse.de>
4012         PR middle-end/53471
4013         * dwarf2out.c (dwarf2out_finish): If generating LTO do not
4014         create new assembler names.
4016 2012-06-04  Richard Guenther  <rguenther@suse.de>
4018         * tree-data-ref.c (struct rdg_vertex_info): Remove.
4019         (rdg_vertex_for_stmt): Simplify using gimple_uid.
4020         (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
4021         hashtable.  Record stmt data-references.
4022         (hash_stmt_vertex_info): Remove.
4023         (eq_stmt_vertex_info): Likewise.
4024         (hash_stmt_vertex_del): Likewise.
4025         (build_empty_rdg): Simplify.
4026         (build_rdg): Adjust.
4027         (free_rdg): Likewise.
4028         (ref_base_address): Remove.
4029         (have_similar_memory_accesses): Likewise.
4030         * tree-data-ref.h (create_rdg_vertices): Remove.
4031         (struct rdg_vertex): Add datarefs member.
4032         (RDGV_DATAREFS): New define.
4033         (RDG_DATAREFS): Likewise.
4034         (have_similar_memory_accesses): Remove.
4035         (rdg_has_similar_memory_accesses): Likewise.
4036         * tree-loop-distribution.c (ref_base_address): Re-implement here.
4037         (similar_memory_accesses): Re-implement using existing data-references.
4038         (tree_loop_distribution): Initialize stmt uids for the stmt to
4039         RDG index mapping.
4040         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
4041         access stmt vinfo for stmts in loop.
4043 2012-06-04  Andreas Schwab  <schwab@linux-m68k.org>
4045         PR target/53461
4046         * config/m68k/m68k.md ("tablejump"): Fix check for
4047         CASE_VECTOR_PC_RELATIVE.
4049 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
4051         * output.h (merge_weak, assemble_alias,
4052         initializer_constant_valid_p,
4053         initializer_constant_valid_for_bitfield_p): Move protos from here...
4054         * tree.h: ... to here.
4055         * cgraphclones.c: Do not include output.h.
4056         * gimplify.c: Likewise.
4057         * reload.c: Likewise.
4058         * recog.c: Likewise.
4059         * tree-ssa-loop-ivopts.c: Likewise.
4060         * tree-switch-conversion.c: Likewise.
4061         * c-parser.c: Likewise.
4062         * c-typeck.c: Likewise.
4063         * Makefile.in: Fix dependencies.
4065 2012-06-04  Georg-Johann Lay  <avr@gjlay.de>
4067         PR target/46261
4068         * config/avr/avr-stdint.h: New file.
4069         * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
4070         newlib-stdint.h
4072 2012-06-04  Jakub Jelinek  <jakub@redhat.com>
4074         PR tree-optimization/53550
4075         * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
4076         is POINTER_TYPE_P, use sizetype as step type instead of type.
4078 2012-06-04  Richard Guenther  <rguenther@suse.de>
4080         * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
4081         (ref_base_address_1): Likewise.
4082         (remove_similar_memory_refs): Likewise.
4083         * tree-data-ref.h (remove_similar_memory_refs): Remove.
4084         * tree-loop-distribution.c (classify_partition): Do not classify
4085         as builtin if -ftree-loop-distribute-patterns is not enabled.
4086         (fuse_partitions_with_similar_memory_accesses): Inline ...
4087         (ldist_gen): ... here.  Fuse all non-builtin partitions if
4088         -ftree-loop-distribution is not enabled.  Properly return
4089         the number of created partitions.  Do not update SSA form here but ...
4090         (tree_loop_distribution): ... once here for the whole function.
4091         Only walk innermost loops, constrain loops we consider here
4092         further.  Do not call remove_similar_memory_refs.
4093         (distribute_loop): Do not check number of loop nodes here.
4095 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
4097         * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
4099 2012-06-03  Martin Jambor  <mjambor@suse.cz>
4101         * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
4102         (ipa_get_jf_known_type_base_type): Likewise.
4103         (ipa_get_jf_known_type_component_type): Likewise.
4104         (ipa_get_jf_constant): Likewise.
4105         (ipa_get_jf_pass_through_formal_id): Likewise.
4106         (ipa_get_jf_pass_through_operation): Likewise.
4107         (ipa_get_jf_ancestor_offset): Likewise.
4108         (ipa_get_jf_ancestor_type): Likewise.
4109         (ipa_get_jf_ancestor_formal_id): Likewise.
4110         (ipa_get_jf_member_ptr_pfn): Likewise.
4111         * ipa-prop.c (ipa_set_jf_known_type): New function.
4112         (ipa_set_jf_constant): Likewise.
4113         (ipa_set_jf_simple_pass_through): Likewise.
4114         (ipa_set_jf_arith_pass_through): Likewise.
4115         (ipa_set_ancestor_jf): Likewise.
4116         (fill_member_ptr_cst_jump_function): Moved up and renamed to
4117         ipa_set_jf_member_ptr_cst.
4118         (detect_type_change_1): Use the new jump function creation functions.
4119         (compute_complex_assign_jump_func): Likewise.
4120         (compute_complex_ancestor_jump_func): Likewise.
4121         (compute_known_type_jump_func): Likewise.
4122         (compute_scalar_jump_functions): Likewise.
4123         (compute_pass_through_member_ptrs): Likewise.
4124         (determine_cst_member_ptr): Likewise.
4125         (combine_known_type_and_ancestor_jfs): Likewise.
4126         (try_make_edge_direct_simple_call): Likewise.
4127         (try_make_edge_direct_virtual_call): Likewise.
4128         (update_indirect_edges_after_inlining): Likewise.
4129         * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
4130         access functions.  Incorporat NOP_EXPR and BINFO handling from its
4131         callers.
4132         (ipa_get_jf_ancestor_result): Likewise.  Incorporate handling BINFOs
4133         which was in its callers.
4134         (ipa_value_from_jfunc): Use jump function access functions.  Some
4135         functionality moved to functions above.
4136         (propagate_vals_accross_ancestor): Likewise.
4137         (propagate_vals_accross_pass_through): Use jump function access
4138         functions.
4139         (propagate_accross_jump_function): Likewise.
4140         * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
4141         access functions.
4142         (inline_merge_summary): Likewise.
4144 2012-06-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4146         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
4147         * config/pa/pa.c (pa_attr_length_millicode_call): Use
4148         MAX_PCREL17F_OFFSET instead of fixed offset.
4149         (pa_attr_length_call): Likewise.
4150         (pa_attr_length_indirect_call): Likewise.
4152 2012-06-03  Oleg Endo  <olegendo@gcc.gnu.org>
4154         PR target/53512
4155         * config/sh/sh.opt (mfsca, mfsrra): New options.
4156         * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
4157         condition.
4158         (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
4159         (sinssf2, cossf2): Fold expanders to ...
4160         (sincossf3): ... this new expander.  Use TARGET_FPU_ANY and
4161         TARGET_FSCA condition.
4162         * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
4163         TARGET_FSCA.
4164         * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
4165         -mno-fsca, -mfsrra, -mno-fsrra.
4167 2012-06-03  Matt Turner  <mattst88@gmail.com>
4169         * config/mips/4600.md (r4700_imul_si): New.
4170         (r4700_imul_di): New.
4171         (r4700_fmul_single): New.
4172         (r4700_fmul_double): New.
4173         * config/mips/mips-cpus.def: Add r4700.
4174         * config/mips/mips.c: Likewise.
4175         * config/mips/mips.md: Likewise.
4176         * config/mips/mips-tables.opt: Regenerate.
4178 2012-06-02  Steven Bosscher  <steven@gcc.gnu.org>
4180         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
4181         new function sparc_initial_elimination_offset.
4182         * config/sparc/sparc.c (sparc_initial_elimination_offset): New
4183         function.
4184         * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
4185         Prototype it.
4187 2012-06-02  Kenneth Zadeck <zadeck@naturalbridge.com>
4189         * expmed.c (expand_mult, choose_multiplier): Change
4190         "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
4191         * expr.c (convert_modes): Likewise.
4192         * explow.c (plus_constant): Likewise.
4193         * fixed-value.c (fixed_saturate1, fixed_saturate2)
4194         (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
4195         (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
4196         (do_fixed_divide, do_fixed_divide, do_fixed_divide)
4197         (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
4198         (do_fixed_shift, fixed_convert, fixed_convert)
4199         (fixed_convert_from_int, fixed_convert_from_int)
4200         (fixed_convert_from_real): Likewise.
4201         * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
4202         (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
4203         * varasm.c (output_constructor_bitfield): Likewise.
4204         * tree-vrp.c (register_edge_assert_for_2): Likewise.
4205         * double-int.c (rshift_double, lshift_double): Likewise.
4206         * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
4207         Likewise.
4208         * simplify-rtx.c (mode_signbit_p)
4209         (simplify_const_unary_operation, simplify_binary_operation_1)
4210         (simplify_immed_subreg): Likewise.
4211         * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
4212         * tree-vect-generic.c (build_replicated_const): Likewise.
4213         * dbxout.c (stabstr_O): Likewise.
4214         * emit-rtl.c (immed_double_int_const, immed_double_const)
4215         (gen_lowpart_common, init_emit_once): Likewise.
4216         * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
4217         (widest_int_cst_value, upper_bound_in_type): Likewise.
4218         * stor-layout.c (initialize_sizetypes, fixup_signed_type)
4219         (fixup_unsigned_type): Likewise.
4220         * real.c (real_to_integer2, real_from_integer): Likewise.
4221         * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
4222         (clz_loc_descriptor, mem_loc_descriptor): Likewise.
4224 2012-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4226         PR middle-end/53501
4227         * fold-const.c (fold_binary_loc): Refine previous change.
4229 2012-06-01  Olivier Hainque  <hainque@adacore.com>
4231         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
4232         the "do {" part of the do-while(0) loop.
4234 2012-06-01  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
4236         * config/i386/i386.c (x86_sched_reorder): New function.
4237         Added new function x86_sched_reorder.
4239 2012-06-01  Richard Guenther  <rguenther@suse.de>
4241         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
4242         Handle PHIs.
4243         (classify_partition): Likewise.
4245 2012-06-01  Richard Guenther  <rguenther@suse.de>
4247         * tree-loop-distribution.c (enum partition_kind): New enum.
4248         (struct partition_s): Add kind and main_stmt members.
4249         (partition_alloc): Initialize kind to PKIND_NORMAL.
4250         (partition_builtin_p): New function.
4251         (copy_loop_before): Remove failure path and assert instead.
4252         (generate_loops_for_partition): Likewise.
4253         (generate_memset_zero): Fold into ...
4254         (generate_memset_builtin): ... this.
4255         (classify_partition): New function with code from
4256         can_generate_builtin and generate_builtin.
4257         (generate_builtin): Remove.
4258         (can_generate_builtin): Likewise.
4259         (fuse_partitions_with_similar_memory_accesses): Call
4260         partition_builtin_p instead of can_generate_builtin.
4261         (rdg_build_partitions): Do not call
4262         fuse_partitions_with_similar_memory_accesses here...
4263         (ldist_gen): ... but here after classifying all partitions.
4264         Remove failure path of generate_code_for_partition.
4265         (generate_code_for_partition): Generate code according
4266         to partition classification.
4268 2012-06-01  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4269             Jonathan Wakely  <jwakely.gcc@gmail.com>
4271         PR c++/50134
4272         * doc/invoke.texi (Warning Options): Explain purpose and differences
4273         between -Wmissing-prototypes and -Wmissing-declarations.
4275 2012-06-01  Christian Bruel  <christian.bruel@st.com>
4277         * gcc.c (save_switch): Add user_p parameter.
4278         (read_specs): Likewise.
4279         (set_specs): Likewise.
4280         (validate_switches): Likewise.
4281         (validate_switches_from_spec): Likewise.
4282         (validate_all_switches): Pass on user_p parameter.
4283         (struct spec_list): Add user_p field.
4284         (struct switchstr): Add known field.
4285         (save_switch): Add known parameter.
4286         (INIT_STATIC_SPEC): Initialize user_p;
4287         (driver_unknown_option_callbac): call save_switch if
4288         OPT_SPECIAL_unknown.
4289         (driver_handle_option): Propagate OPT_specs.
4290         (do_spec_1): Set validated only if known.
4291         (check_live_switch): Likewise.
4292         (validate_switches): Set validated if known or user_spec.
4294 2012-06-01  Hans-Peter Nilsson  <hp@axis.com>
4296         Add CRIS atomic patterns for 1, 2, and 4 bytes.
4297         * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
4298         * config/cris/cris-protos.h: Declare it.
4299         * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
4300         (TARGET_DEFAULT): Add alignment by 32.
4301         [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
4302         case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
4303         TARGET_CPU_DEFAULT == 32.
4304         (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
4305         * config/cris/cris.md: Include sync.md.  Avoid allocating specific
4306         numbers by replacing the define_constants for all UNSPECs with the
4307         equivalent define_c_enum construct.
4308         * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
4309         * config/cris/sync.md: New file.
4311 2012-05-31  Matt Turner  <mattst88@gmail.com>
4313         * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
4314         (r4600_imul_di): New.
4315         (r4600_idiv_si): Rename from r4600_idiv.
4316         (r4600_idiv_di): New.
4318 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
4320         * output.h (__gcc_host_wide_int__): Move to hwint.h.
4321         (decl_default_tls_model): Move to tree.h
4322         (dump_file): Move to system.h.
4323         (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
4324         dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
4325         dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
4326         dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
4327         dbxout_stab_value_zero, dbxout_stab_value_label_diff,
4328         dbxout_stab_value_internal_label,
4329         dbxout_stab_value_internal_label_diff): Move from here ...
4330         * dbxout.h: ... to here.
4331         * system.h (dump_file): Moved here from output.h.
4332         * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
4333         * tree.h (decl_default_tls_model): Moved here from output.h.
4334         * varasm.c (default_stabs_asm_out_destructor,
4335         default_stabs_asm_out_constructor): Move from here ...
4336         * dbxout.c: ... to here.
4338         * gcov-dump.c (dump_file): Rename to dump_gcov_file.  Update callers.
4340         * collect2.h (dump_file): Rename to dump_ld_file.
4341         * collect2.c: Likewise.
4342         * tlink.c: Likewise.
4344         * alias.c: Do not include output.h.
4345         * auto-inc-dec.c: Likewise.
4346         * bt-load.c: Likewise.
4347         * caller-save.c: Likewise.
4348         * cfg.c: Likewise.
4349         * cfgbuild.c: Likewise.
4350         * cfgcleanup.c: Likewise.
4351         * cfglayout.c: Likewise.
4352         * cfgloop.c: Likewise.
4353         * cfgloopanal.c: Likewise.
4354         * cfgloopmanip.c: Likewise.
4355         * cfgrtl.c: Likewise.
4356         * cgraph.c: Likewise.
4357         * cgraphclones.c: Likewise.
4358         * combine-stack-adj.c: Likewise.
4359         * combine.c: Likewise.
4360         * cprop.c: Likewise.
4361         * cse.c: Likewise.
4362         * cselib.c: Likewise.
4363         * dbgcnt.c: Likewise.
4364         * df-problems.c: Likewise.
4365         * df-scan.c: Likewise.
4366         * dojump.c: Likewise.
4367         * fwprop.c: Likewise.
4368         * gcse.c: Likewise.
4369         * graph.c: Likewise.
4370         * haifa-sched.c: Likewise.
4371         * hw-doloop.c: Likewise.
4372         * ipa-inline-transform.c: Likewise.
4373         * ipa-pure-const.c: Likewise.
4374         * ipa-reference.c: Likewise.
4375         * ipa-utils.c: Likewise.
4376         * ira-build.c: Likewise.
4377         * ira-emit.c: Likewise.
4378         * lcm.c: Likewise.
4379         * loop-doloop.c: Likewise.
4380         * loop-invariant.c: Likewise.
4381         * loop-iv.c: Likewise.
4382         * loop-unroll.c: Likewise.
4383         * loop-unswitch.c: Likewise.
4384         * lto-cgraph.c: Likewise.
4385         * lto-section-in.c: Likewise.
4386         * lto-streamer-in.c: Likewise.
4387         * mcf.c: Likewise.
4388         * mode-switching.c: Likewise.
4389         * postreload-gcse.c: Likewise.
4390         * postreload.c: Likewise.
4391         * predict.c: Likewise.
4392         * profile.c: Likewise.
4393         * ree.c: Likewise.
4394         * reg-stack.c: Likewise.
4395         * regcprop.c: Likewise.
4396         * regmove.c: Likewise.
4397         * regstat.c: Likewise.
4398         * reload1.c: Likewise.
4399         * sched-ebb.c: Likewise.
4400         * sel-sched-dump.c: Likewise.
4401         * simplify-rtx.c: Likewise.
4402         * stor-layout.c: Likewise.
4403         * store-motion.c: Likewise.
4404         * tracer.c: Likewise.
4405         * tree-affine.c: Likewise.
4406         * tree-cfg.c: Likewise.
4407         * tree-cfgcleanup.c: Likewise.
4408         * tree-dfa.c: Likewise.
4409         * tree-into-ssa.c: Likewise.
4410         * tree-nomudflap.c: Likewise.
4411         * tree-optimize.c: Likewise.
4412         * tree-pretty-print.c: Likewise.
4413         * tree-profile.c: Likewise.
4414         * tree-ssa-address.c: Likewise.
4415         * tree-ssa-ccp.c: Likewise.
4416         * tree-ssa-copy.c: Likewise.
4417         * tree-ssa-dom.c: Likewise.
4418         * tree-ssa-loop-ch.c: Likewise.
4419         * tree-ssa-loop-im.c: Likewise.
4420         * tree-ssa-loop-manip.c: Likewise.
4421         * tree-ssa-loop-niter.c: Likewise.
4422         * tree-ssa-loop-prefetch.c: Likewise.
4423         * tree-ssa-loop-unswitch.c: Likewise.
4424         * tree-ssa-loop.c: Likewise.
4425         * tree-ssa-propagate.c: Likewise.
4426         * tree-ssa-structalias.c: Likewise.
4427         * tree-ssa-tail-merge.c: Likewise.
4428         * tree-ssa-threadedge.c: Likewise.
4429         * tree-ssa-threadupdate.c: Likewise.
4430         * tree-ssa-uncprop.c: Likewise.
4431         * tree-ssa-uninit.c: Likewise.
4432         * tree-ssa.c: Likewise.
4433         * value-prof.c: Likewise.
4434         * var-tracking.c: Likewise.
4435         * web.c: Likewise.
4437         * config/m32r/m32r.c: Include dbxout.h.
4438         * config/pa/pa.c: Likewise.
4439         * config/rs6000/rs6000.c: Likewise.
4441         * Makefile.in: Fix dependencies.
4442         * config/rs6000/t-rs5000: Likewise.
4444 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
4446         * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
4447         * gimple.h (block_in_transaction): Check for flag_tm.
4449 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
4451         PR tree-optimization/52558
4452         * cfg.c (alloc_aux_for_edge): Fix comment.
4453         (alloc_aux_for_edge): Remove static.
4454         * basic-block.h (alloc_aux_for_edge): Protoize.
4455         * tree-ssa-loop-im.c (execute_sm_if_changed): New.
4456         (execute_sm_if_changed_flag): New.
4457         (execute_sm_if_changed_flag_set): New.
4458         (execute_sm): Do not generate data races unless requested.
4459         (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
4460         (tree_ssa_lim_finalize): Call free_aux_for_edges.
4461         * gimple.h (block_in_transaction): New.
4462         (gimple_in_transaction): Use block_in_transaction.
4464 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
4466         PR target/51345
4467         * config/avr/avr.opt (-msp8): Document it.
4468         * doc/invoke.texi (AVR Options): Ditto.  And document related
4469         built-in macros.
4471 2012-05-31  Diego Novillo  <dnovillo@google.com>
4473         * configure.ac (CXX_FOR_BUILD): Define and substitute.
4474         (BUILD_CXXFLAGS): Define and substitute.
4475         * Makefile.in (BUILD_CXXFLAGS): Define.
4476         (CXX_FOR_BUILD): Define.
4477         (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
4478         (LINKER_FOR_BUILD): Likewise.
4479         (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
4480         (BUILD_LINKERFLAGS): Likewise.
4481         * configure: Regenerate.
4483 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
4485         * Makefile.in: Fix many dependencies.
4486         * tree-profile.c: Don't include regs.h.
4487         * tree-vectorizer.c: Don't include cfglayout.h.
4488         * tree-vect-stmts.c: Likewise.
4489         * tree-vect-slp.c: Likewise.
4490         * tree-vect-loop.c: Likewise.
4491         * reg-stack.c: Likewise.
4492         * tree-ssa-loop-manip.c: Likewise.
4493         * toplev.c: Likewise.
4494         * varasm.c: Don't include cfglayout.h, basic-block.h,
4495         and tree-iterator.h.
4496         * tree-cfgcleanup.c: Don't include cfglayout.h.
4497         * passes.c: Don't include cfglayout.h, dwarf2asm.h,
4498         dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
4499         * cgraphclones.c: Don't include plugin.h.
4501 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
4503         * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
4504         (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
4505         * doc/avr-mmcu.texi (svn:eol-style): Set to native.
4507 2012-05-31  Richard Guenther  <rguenther@suse.de>
4509         * tree-loop-distribution.c (struct partition_s): New struct,
4510         typedef and vector type.
4511         (partition_alloc, partition_free): New functions.
4512         (generate_loops_for_partition, generate_builtin,
4513         generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
4514         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
4515         build_rdg_partition_for_component, can_generate_builtin,
4516         similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
4517         rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
4518         number_of_rw_in_partition, partition_contains_all_rw,
4519         ldist_gen): Use partition_t instead of bitmap.
4521 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
4523         * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
4524         * doc/avr-mmcu.texi: Regenerate.
4526 2012-05-31  Richard Guenther  <rguenther@suse.de>
4528         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
4529         Use FOR_EACH_SSA_DEF_OPERAND.
4530         (generate_builtin): Adjust.
4531         (stmt_generated_in_another_partition): Remove.
4532         (add_scalar_computations_to_partition): Likewise.
4533         (rdg_build_partitions): Do not call
4534         add_scalar_computations_to_partition.
4536 2012-05-31  Eric Botcazou  <ebotcazou@adacore.com>
4538         * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
4539         double ints throughout.
4540         * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
4541         Check that the position of the field is representable as an integer.
4543 2012-05-31  Richard Guenther  <rguenther@suse.de>
4545         * tree-data-ref.c (dr_analyze_innermost): Properly convert
4546         the MEM_REF offset to sizetype.
4548 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
4550         * doc/invoke.texi (AVR Options): Fix typos.
4552 2012-05-31  Hans-Peter Nilsson  <hp@axis.com>
4554         * config/cris/cris.h (CC1_SPEC): Pass through all -march=
4555         and -mcpu= options.
4556         (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
4557         non-v32 into --march=v0_v10.
4559 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4561         * ira-int.h (target_ira_int): Rename x_move_cost to
4562         x_ira_register_move_cost, x_may_move_in_cost to
4563         x_ira_may_move_in_cost and x_may_move_out_cost to
4564         x_ira_may_move_out_cost.  Delete the old fields with
4565         those names and also x_ira_max_register_move_cost,
4566         x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
4567         (move_cost, may_move_in_cost, may_move_out_cost)
4568         (ira_max_register_move_cost, ira_max_may_move_in_cost)
4569         (ira_max_may_move_out_cost): Delete.
4570         * ira.c (init_move_cost): Rename to...
4571         (ira_init_register_move_cost): ...this, deleting the old
4572         function with that name.  Apply above variable renamings.
4573         Retain asserts for null fields.
4574         (ira_init_once): Don't initialize register move costs here.
4575         (free_register_move_costs): Apply above variable renamings.
4576         Remove code for deleted fields.
4578 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4580         * ira.c (init_move_cost): Adjust choice of subclasses to match
4581         the current ira_init_register_move_cost choice.  Use
4582         ira_class_subset_p instead of reg_class_subset_p.
4583         (ira_init_register_move_cost): Assert that move_cost,
4584         may_move_in_cost and may_move_out_cost already hold the desired
4585         values for their ira_* equivalents.  For the latter two,
4586         ignore classes that can't store a register of the given mode.
4588 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4590         * ira.c (setup_allocno_and_important_classes): Use
4591         ira_class_hard_regs_num to check whether a class has any
4592         allocatable registers.
4593         (ira_init_register_move_cost): Likewise.
4595 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4597         * ira.c (init_move_cost): Adjust local variable names to match
4598         file conventions.  Use ira_assert instead of gcc_assert.
4600 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4602         * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
4603         Move these definitions and associated target_globals fields to...
4604         * ira-int.h: ...here.
4605         * rtl.h (init_move_cost): Delete.
4606         * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
4607         * ira.c: ...here, making the latter static.
4609 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4611         * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
4612         and ira_register_move_cost instead of init_move_cost and move_cost.
4614 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4616         * ira.h (target_ira): Delete x_ira_available_class_regs.
4617         (ira_available_class_regs): Delete.
4618         * ira.c (setup_available_class_regs): Delete.
4619         (setup_alloc_classes): Don't call it.
4620         (setup_pressure_classes): Use ira_class_hard_regs_num instead of
4621         ira_available_class_regs.
4622         * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
4623         (model_spill_cost): Likewise.
4624         * ira-build.c (low_pressure_loop_node_p): Likewise.
4625         * ira-color.c (color_pass): Likewise.
4626         * ira-emit.c (change_loop): Likewise.
4627         * ira-lives.c (inc_register_pressure, dec_register_pressure)
4628         (single_reg_class, ira_implicitly_set_insn_hard_regs)
4629         (process_bb_node_lives): Likewise.
4630         * loop-invariant.c (gain_for_invariant): Likewise.
4632 2012-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4634         PR target/52999
4635         * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
4636         (pa_section_type_flags): New.
4637         (pa_legitimate_constant_p): Revert previous change.
4639 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
4641         * ira.c (allocate_initial_values): Make static.
4643 2012-05-30  Uros Bizjak  <ubizjak@gmail.com>
4645         * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
4646         Generate tls_initial_exec_64_sun only when !TARGET_X32.
4648 2012-05-30  Richard Guenther  <rguenther@suse.de>
4650         PR middle-end/53501
4651         * fold-const.c (fold_binary_loc): Make sure to call
4652         fold_plusminus_mult_expr with the original sign of operands.
4654 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
4656         * Makefile.in: Fix many dependencies.
4657         (DWARF2_H): Depend on dwarf2.def.
4658         (RTL_ERROR_H): Depend on rtl-error.h.
4659         (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New.  Replace
4660         all gimple-pretty-print.h and tree-pretty-print.h references.
4662 2012-05-30  Marc Glisse  <marc.glisse@inria.fr>
4664         * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
4665         concatenations.
4667 2012-05-30  Richard Guenther  <rguenther@suse.de>
4669         PR middle-end/53522
4670         * tree-emutls.c (gen_emutls_addr): Do not add globals to
4671         referenced-vars.
4673 2012-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4675         * explow.c (probe_stack_range): Restore simple control flow and stop
4676         again when the probe cannot be generated if HAVE_check_stack.
4678 2012-05-30  Jakub Jelinek  <jakub@redhat.com>
4680         PR rtl-optimization/53519
4681         * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
4682         instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
4684 2012-05-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4686         * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
4688 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
4690         PR debug/53453
4691         * doc/tm.texi: Update.
4692         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
4693         * target.def (force_at_comp_dir): New hook.
4694         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
4695         * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
4697 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
4699         * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
4700         Darwin >= 10.
4701         (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
4702         (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
4704 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
4706         PR target/51340
4707         * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
4708         flag_unsafe_math_optimizations is set.
4709         * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
4710         Update description of -mfused-madd.
4712 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
4714         PR target/52941
4715         * config/sh/predicates.md (atomic_arith_operand,
4716         atomic_logical_operand): New predicates.
4717         * config/sh/sh.c (sh_option_override): Check atomic options.
4718         * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
4719         UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
4720         (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
4721         UNSUPPORTED_HARD_ATOMIC_CPU.
4722         * config/sh/sync.md: Update description comments.
4723         (I12): New mode iterator.
4724         (fetchop_predicate, fetchop_constraint): New code attributes.
4725         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
4726         atomic_exchangesi_hard, atomic_exchange<mode>_hard,
4727         atomic_fetch_<fetchop_name>si_hard,
4728         atomic_fetch_<fetchop_name><mode>_hard,
4729         atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
4730         atomic_<fetchop_name>_fetchsi_hard,
4731         atomic_<fetchop_name>_fetch<mode>_hard,
4732         atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
4733         atomic_test_and_set_hard): New insns.
4734         (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
4735         atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
4736         atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
4737         atomic_test_and_set_soft): Use same formatting for the first line of
4738         the asm block as in new insns above.
4739         (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
4740         atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
4741         atomic_test_and_set): Integrate new *_hard insns into expanders.
4742         * config/sh/sh.opt (mhard-atomic): New option.
4743         * doc/invoke.texi (SH Options): Document it.
4745 2012-05-29  Meador Inge  <meadori@codesourcery.com>
4747         * c-decl.c (c_push_function_context): Always create a new language
4748         function.
4749         (c_pop_function_context): Clear the language function created in
4750         c_push_function_context.
4752 2012-05-29  Matt Turner  <mattst88@gmail.com>
4754         * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
4755         (define_bypass "ev6_fcmov"): New.
4757 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
4759         * integrate.c: Remove.
4760         * integrate.h: Remove.
4761         * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
4762         * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
4763         * config/rs6000/t-rs6000: Likewise
4764         * config/spu/t-spu-elf: Likewise.
4765         * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
4766         get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
4767         from integrate.h to here.
4768         (initial_value_entry): New prototype.
4769         * reload.h (allocate_initial_values): Remove prototype.
4770         * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
4771         * cse.c (fixed_base_plus_p): Don't handle virtual registers for
4772         integrate.c.
4773         * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
4774         set_decl_abstract_flags, set_block_abstract_flags): Move from
4775         integrate.c to here, the only user.
4776         * expmed.c (extract_fixed_bit_field): Remove outdated comment
4777         about integrate.c.
4778         * function.c: Don't include integrate.h.
4779         (struct initial_value_pair, struct initial_value_struct,
4780         get_hard_reg_initial_val, has_hard_reg_initial_val,
4781         get_hard_reg_initial_reg, emit_initial_value_sets): Move from
4782         integrate.c to here.
4783         (initial_value_entry): New function.
4784         * genemit.c (main): Don't print integrate.h include line.
4785         * ira.c: Don't include integrate.h.
4786         (allocate_initial_values): Move from integrate.c to here.
4787         (ira): Update allocate_initial_values call.
4788         * tree-inline.c: Don't include integrate.h.
4789         (function_attribute_inlinable_p): Moved from integrate.c to here.
4790         * cfgexpand.c: Don't include integrate.h.
4791         * except.c: Likewise.
4792         * langhooks.c: Likewise.
4793         * passes.c: Likewise.
4794         * toplev.c: Likewise.
4795         * config/frv/frv.c: Likewise.
4796         * config/pa/pa.c: Likewise.
4797         * config/spu/spu.c: Likewise.
4798         * config/epiphany/epiphany.c: Likewise.
4799         * config/mep/mep.c: Likewise.
4800         * config/score/score.c: Likewise.
4801         * config/picochip/picochip.c: Likewise.
4802         * config/sh/sh.c: Likewise.
4803         * config/alpha/alpha.c: Likewise.
4804         * config/microblaze/microblaze.c: Likewise.
4805         * config/mips/mips.c: Likewise.
4806         * config/v850/v850.c: Likewise.
4807         * config/mmix/mmix.c: Likewise.
4808         * config/bfin/bfin.c: Likewise.
4809         * config/arm/arm.c: Likewise.
4810         * config/s390/s390.c: Likewise.
4811         * config/m32r/m32r.c: Likewise.
4812         * config/rs6000/rs6000.c: Likewise.
4813         * config/c6x/c6x.c: Include function.h instead of integrate.h.
4814         * config/tilegx/tilegx.c: Likewise.
4815         * config/tilepro/tilepro.c: Likewise.
4817 2012-05-29  Georg-Johann Lay  <avr@gjlay.de>
4819         * config/avr/t-avr (s-avr-mmcu-texi): Call
4820         gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
4822 2012-05-29  Michael Matz  <matz@suse.de>
4824         * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
4825         assign_temp): Remove 'keep' argument.
4826         (mark_temp_addr_taken): Remove prototype.
4827         * tree.h (expand_decl): Remove prototype.
4828         * function.c (struct temp_slot): Remove addr_taken and keep member.
4829         (assign_stack_temp_for_type) Don't initialize above, remove
4830         keep argument.
4831         (assign_stack_temp, assign_temp): Remove keep argument.
4832         (mark_temp_addr_taken): Remove.
4833         (preserve_temp_slots): Remove handling of addr_taken and keep members.
4834         (free_temp_slots): Ditto.
4835         * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
4836         dead code.
4837         * stmt.c (expand_asm_operands): Remove dead code.
4838         (expand_decl): Remove.
4839         * c-decl.c (finish_struct): Don't call expand_decl.
4840         * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
4841         and assign_stack_temp.
4842         * calls.c (save_fixed_argument_area, initialize_argument_information,
4843         expand_call, emit_library_call_value_1, store_one_arg): Ditto.
4844         * expmed.c (extract_bit_field_1): Ditto.
4845         * expr.c (emit_group_load_1, emit_group_store,
4846         copy_blkmode_from_reg, emit_push_insn, expand_assignment,
4847         store_field, expand_constructor, expand_cond_expr_using_cmove,
4848         expand_expr_real_2, expand_expr_real_1): Ditto.
4849         * stmt.c (expand_asm_operands, expand_return): Ditto.
4851         * function.c (pop_temp_slots): Call free_temp_slots.
4852         * calls.c (store_one_arg): Don't call preserve_temp_slots or
4853         free_temp_slots.
4854         * expr.c (expand_assignment): Don't call free_temp_slots.
4856         * config/arm/arm.c (neon_expand_vector_init): Ditto.
4857         * config/i386/i386.c (ix86_expand_vector_set): Ditto.
4858         (ix86_expand_vector_extract): Ditto.
4859         * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
4860         ia64_expand_movxf_movrf): Ditto.
4861         * config/mips/mips.c (mips_expand_vi_general): Ditto.
4862         * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
4863         extendsfdf2): Ditto.
4864         * config/rs6000/rs6000.c (rs6000_expand_vector_init,
4865         rs6000_expand_vector_set, rs6000_expand_vector_extract,
4866         rs6000_allocate_stack_temp): Ditto.
4867         * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
4868         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4869         sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
4870         sparc_expand_vector_init): Ditto.
4872 2012-05-29  Michael Matz  <matz@suse.de>
4874         * c-tree.h (c_expand_decl): Remove prototype.
4876         * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
4877         a kept temp.
4878         (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
4879         * gimple-fold.c (canonicalize_constructor_val): Canonicalize
4880         COMPOUND_LITERAL_EXPR.
4881         * function.c (expand_function_start): Don't call expand_decl,
4882         instead assert that we have RTL assigned.
4883         * tree-ssa-live.c (remove_unused_locals): Clear
4884         nonlocal_goto_save_area if its backing variable is removed.
4885         * stmt.c (expand_asm_operands): Remove handling of non-lvalues
4886         as mem inputs.
4887         (expand_decl): Assert that this does nothing.
4888         * calls.c (expand_call): Don't call mark_temp_addr_taken.
4890 2012-05-29  Richard Guenther  <rguenther@suse.de>
4892         PR tree-optimization/53516
4893         * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
4894         bitfield accesses.
4895         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4897 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
4899         * LANGUAGES: Fix typos.
4900         * Makefile.in: Fix typos.
4901         * alias.c: Fix typos.
4902         * auto-inc-dec.c: Fix typos.
4903         * bb-reorder.c: Fix typos.
4904         * cfgcleanup.c: Fix typos.
4905         * cgraph.c: Fix typos.
4906         * cgraph.h: Fix typos.
4907         * cgraphunit.c: Fix typos.
4908         * collect2-aix.h: Fix typos.
4909         * collect2.c: Fix typos.
4910         * compare-elim.c: Fix typos.
4911         * config/alpha/vms.h: Fix typos.
4912         * config/arm/README-interworking: Fix typos.
4913         * config/arm/arm.c: Fix typos.
4914         * config/arm/iterators.md: Fix typos.
4915         * config/arm/vxworks.h: Fix typos.
4916         * config/avr/avr.c: Fix typos.
4917         * config/avr/avr.h: Fix typos.
4918         * config/avr/avr.md: Fix typos.
4919         * config/avr/builtins.def: Fix typos.
4920         * config/c6x/c6x.c: Fix typos.
4921         * config/cr16/cr16.c: Fix typos.
4922         * config/cr16/cr16.md: Fix typos.
4923         * config/cris/cris.md: Fix typos.
4924         * config/darwin.c: Fix typos.
4925         * config/darwin.opt: Fix typos.
4926         * config/i386/i386-c.c: Fix typos.
4927         * config/i386/i386.c: Fix typos.
4928         * config/ia64/ia64.c: Fix typos.
4929         * config/m68k/cf.md: Fix typos.
4930         * config/mep/mep.c: Fix typos.
4931         * config/microblaze/microblaze.c: Fix typos.
4932         * config/microblaze/microblaze.h: Fix typos.
4933         * config/mn10300/mn10300.c: Fix typos.
4934         * config/mn10300/mn10300.md: Fix typos.
4935         * config/pa/pa.c: Fix typos.
4936         * config/picochip/picochip.h: Fix typos.
4937         * config/rs6000/a2.md: Fix typos.
4938         * config/rs6000/rs6000.c: Fix typos.
4939         * config/rs6000/vector.md: Fix typos.
4940         * config/rx/rx.md: Fix typos.
4941         * config/rx/rx.opt: Fix typos.
4942         * config/s390/2097.md: Fix typos.
4943         * config/s390/s390.c: Fix typos.
4944         * config/s390/s390.h: Fix typos.
4945         * config/sh/sh.c: Fix typos.
4946         * config/sh/sh.md: Fix typos.
4947         * config/sparc/sync.md: Fix typos.
4948         * config/spu/spu.c: Fix typos.
4949         * config/spu/spu.md: Fix typos.
4950         * config/vms/vms.c: Fix typos.
4951         * config/vxworks-dummy.h: Fix typos.
4952         * config/vxworks.h: Fix typos.
4953         * cselib.c: Fix typos.
4954         * df-scan.c: Fix typos.
4955         * df.h: Fix typos.
4956         * doc/extend.texi: Fix typos.
4957         * doc/install.texi: Fix typos.
4958         * doc/invoke.texi: Fix typos.
4959         * doc/md.texi: Fix typos.
4960         * doc/plugins.texi: Fix typos.
4961         * doc/rtl.texi: Fix typos.
4962         * dse.c: Fix typos.
4963         * dwarf2asm.c: Fix typos.
4964         * dwarf2out.c: Fix typos.
4965         * except.h: Fix typos.
4966         * expr.c: Fix typos.
4967         * fold-const.c: Fix typos.
4968         * gcc.c: Fix typos.
4969         * gcse.c: Fix typos.
4970         * genautomata.c: Fix typos.
4971         * gengtype-state.c: Fix typos.
4972         * gengtype.c: Fix typos.
4973         * genhooks.c: Fix typos.
4974         * gimple-fold.c: Fix typos.
4975         * gimple-pretty-print.c: Fix typos.
4976         * gimple.c: Fix typos.
4977         * gimple.h: Fix typos.
4978         * gimplify.c: Fix typos.
4979         * graphite-interchange.c: Fix typos.
4980         * graphite-sese-to-poly.c: Fix typos.
4981         * ifcvt.c: Fix typos.
4982         * input.c: Fix typos.
4983         * ipa-cp.c: Fix typos.
4984         * ipa-inline-analysis.c: Fix typos.
4985         * ipa-inline-transform.c: Fix typos.
4986         * ipa-inline.c: Fix typos.
4987         * ipa-pure-const.c: Fix typos.
4988         * ipa-ref.h: Fix typos.
4989         * ipa-reference.c: Fix typos.
4990         * ipa-utils.c: Fix typos.
4991         * ipa.c: Fix typos.
4992         * ira-emit.c: Fix typos.
4993         * ira-lives.c: Fix typos.
4994         * lto-streamer.c: Fix typos.
4995         * lto-streamer.h: Fix typos.
4996         * lto-wrapper.c: Fix typos.
4997         * mcf.c: Fix typos.
4998         * mode-switching.c: Fix typos.
4999         * modulo-sched.c: Fix typos.
5000         * plugin.c: Fix typos.
5001         * postreload.c: Fix typos.
5002         * sched-deps.c: Fix typos.
5003         * sel-sched-ir.c: Fix typos.
5004         * sel-sched-ir.h: Fix typos.
5005         * sel-sched.c: Fix typos.
5006         * sese.c: Fix typos.
5007         * stor-layout.c: Fix typos.
5008         * target-hooks-macros.h: Fix typos.
5009         * target.def: Fix typos.
5010         * trans-mem.c: Fix typos.
5011         * tree-eh.c: Fix typos.
5012         * tree-predcom.c: Fix typos.
5013         * tree-sra.c: Fix typos.
5014         * tree-ssa-address.c: Fix typos.
5015         * tree-ssa-loop-ivopts.c: Fix typos.
5016         * tree-ssa-loop-niter.c: Fix typos.
5017         * tree-ssa-math-opts.c: Fix typos.
5018         * tree-ssa-pre.c: Fix typos.
5019         * tree-ssa-propagate.c: Fix typos.
5020         * tree-ssa-reassoc.c: Fix typos.
5021         * tree-ssa-sccvn.c: Fix typos.
5022         * tree-ssa-ter.c: Fix typos.
5023         * tree-ssa-uninit.c: Fix typos.
5024         * tree-ssanames.c: Fix typos.
5025         * tree-vect-generic.c: Fix typos.
5026         * tree-vect-slp.c: Fix typos.
5027         * tree.c: Fix typos.
5028         * tree.h: Fix typos.
5029         * varasm.c: Fix typos.
5030         * varpool.c: Fix typos.
5032 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
5034         * doc/include/texinfo.tex: Update to version 2012-05-16.16.
5036 2012-05-29  Richard Guenther  <rguenther@suse.de>
5038         * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
5039         for globals.
5040         (add_referenced_var_1): Re-organize.  Assert we are not
5041         called for globals.
5042         (remove_referenced_var): Likewise.
5043         * varpool.c (add_new_static_var): Use create_tmp_var_raw.
5044         * tree-mudflap.c (execute_mudflap_function_ops): Do not
5045         call add_referenced_var on globals.
5046         * matrix-reorg.c (transform_access_sites): Likewise.
5048 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
5050         * alias.c (reg_known_value): Make this a VEC.
5051         (reg_known_equiv_p): Make this an sbitmap.
5052         (reg_known_value_size): Remove.
5053         (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
5054         set_reg_known_equiv_p): Update for reg_known_value and
5055         reg_known_value_size data structure change.
5056         (init_alias_analysis, end_alias_analysis): Likewise.
5058 2012-05-29  Jakub Jelinek  <jakub@redhat.com>
5060         PR middle-end/53510
5061         * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
5062         to avoid leaking memory.  No need to handle memory allocation
5063         failure.  Double string_len on each reallocation instead of adding 2.
5064         * gcov.c (read_line): Likewise.
5066 2012-05-29  Hans-Peter Nilsson  <hp@axis.com>
5068         * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
5069         New macros.
5070         * config/cris/cris.md ("trap"): Define, enabled for
5071         TARGET_TRAP_USING_BREAK8.
5072         * config/cris/cris.opt (mtrap-using-break8): New option.
5074 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
5076         PR c++/25137
5077         * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
5078         for C++.
5080 2012-05-28  Hans-Peter Nilsson  <hp@axis.com>
5082         * doc/md.texi (stack_protect_test): Remove negation of branch to label.
5083         (Standard Names): Fix typos in documentation of atomic patterns.
5085 2012-05-27  Nathan Sidwell  <nathan@acm.org>
5087         * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
5089 2012-05-26  Jason Merrill  <jason@redhat.com>
5091         PR c++/53220
5092         * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
5093         about array compound literals.
5095 2012-05-26  Eric Botcazou  <ebotcazou@adacore.com>
5097         * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
5098         if CLEANUP_NO_INSN_DEL.
5099         * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
5100         from cfg_layout_merge_blocks.
5101         (emit_nop_for_unique_locus_between): New function.
5102         (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
5103         (cfg_layout_merge_blocks): Likewise.
5105 2012-05-26  Dimitrios Apostolou  <jimis@gmx.net>
5106             Paolo Bonzini  <bonzini@gnu.org>
5108         * df-scan.c (df_def_record_1): Assert a parallel must contain an
5109         EXPR_LIST at this point.  Receive the LOC and move its extraction...
5110         (df_defs_record): ... here. Change if-else to a switch statement.
5111         (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
5112         (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
5113         and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
5114         DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
5115         regs_invalidated_by_call.
5116         (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
5117         df_get_call_refs().
5119 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5121         PR lto/52178
5122         * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
5123         * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
5125 2012-05-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
5127         * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
5128         software floating point emulation.  No longer build the multilibs
5129         with -mstrict-align.
5131 2012-05-25  Aldy Hernandez  <aldyh@redhat.com>
5133         PR middle-end/53008
5134         * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
5135         accessed indirectly.
5136         (ipa_tm_create_version): Same.
5138 2012-05-25  Uros Bizjak  <ubizjak@gmail.com>
5140         PR target/53474
5141         * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
5142         <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
5144 2012-05-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5146         PR target/53435
5147         * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
5148         (ix86_expand_vec_perm): Use int mode instead of float.
5149         (expand_vec_perm_pshufb): Remove handling of useseless type
5150         conversion.
5152 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5154         PR ada/52362
5155         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
5156         gnu_ld variables to yes.
5157         * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
5158         (HAVE_GNU_AS): Likewise.
5159         * config.in: Regenerate.
5160         * configure: Likewise.
5162 2012-05-25  Tristan Gingold  <gingold@adacore.com>
5164         * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
5165         (ix86_compute_frame_layout): Fix type of stack_alignment_needed
5166         and preferred_alignment.
5168 2012-05-25  Tristan Gingold  <gingold@adacore.com>
5170         * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
5172 2012-05-25  Thomas Schwinge  <thomas@codesourcery.com>
5174         * fold-const.c (optimize_bit_field_compare): Abort early in the strict
5175         volatile bitfields case.
5177 2012-05-24  Pat Haugen  <pthaugen@us.ibm.com>
5179         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
5180         rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
5181         (adjacent_mem_locations): Move some code to and call...
5182         (get_memref_parts): ...new function.
5183         (mem_locations_overlap): New function.
5184         (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
5185         (is_mem_ref): Rename to...
5186         (find_mem_ref): ...this. Return MEM rtx.
5187         (get_store_dest): Remove function.
5188         (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
5189         new parameter and adjust calls.
5190         (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
5191         mem refs overlap for true_store_to_load_dep_costly.
5192         (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
5193         passed to adjacent_mem_locations.
5194         (is_costly_group): Walk resolved dependency list.
5195         (force_new_group): Emit group ending nop for Power6/Power7.
5196         * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
5197         (group_ending_nop): New define_insn.
5199 2012-05-24  Dodji Seketeli  <dodji@redhat.com>
5201         Make unwound macro expansion trace less redundant
5202         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
5203         context of macro definition in the trace, when it's redundant.
5204         Update comments.
5206 2012-05-24  Richard Guenther  <rguenther@suse.de>
5208         PR middle-end/53460
5209         * tree-profile.c (tree_profiling): Cleanup the CFG if
5210         execute_fixup_cfg requests it.
5212 2012-05-24  Richard Guenther  <rguenther@suse.de>
5214         * tree-flow.h (create_var_ann): Remove.
5215         * tree-dfa.c (create_var_ann): Remove and inline into its
5216         single caller ...
5217         (add_referenced_var_1): ... here.
5218         * varpool.c (add_new_static_var): Do not call add_referenced_var
5219         for global vars.
5220         * gimple-fold.c (canonicalize_constructor_val): Likewise.
5221         * tree-switch-conversion.c (build_one_array): Likewise.
5222         * tree-profile.c (gimple_gen_ic_profiler): Likewise.
5223         * tree-flow-inline.h (gimple_referenced_vars): Guard against
5224         NULL fn argument.
5225         * tree-inline.c (remap_gimple_op_r): Likewise.  Check
5226         gimple_referenced_vars instead of gimple_in_ssa_p.
5227         (copy_tree_body_r): Likewise.
5228         (setup_one_parameter): Likewise.
5229         (declare_return_variable): Likewise.
5230         (tree_function_versioning): Likewise.
5232 2012-05-24  Jakub Jelinek  <jakub@redhat.com>
5234         PR tree-optimization/53465
5235         * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
5236         vr0 into *vr, then vrp_meet that.
5237         (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
5238         have any equivalences.
5239         (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
5240         first time.
5242 2012-05-24  Jim MacArthur  <jim.macarthur@arm.com>
5244         * recog.c (reg_fits_class_p): Check both regno and regno + offset are
5245         hard registers.
5246         * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
5247         check end_regno - 1 is a hard register.
5249 2012-05-24  Richard Guenther  <rguenther@suse.de>
5251         * varpool.c (add_new_static_var): Remove call to create_var_ann.
5252         * tree-ssa-operands.c (create_vop_var): Likewise.
5254 2012-05-24  Richard Guenther  <rguenther@suse.de>
5256         PR bootstrap/53466
5257         * tree-ssa-live.c (remove_unused_scope_block_p): Properly
5258         handle globals.
5259         (remove_unused_locals): Pass global_unused_vars to
5260         remove_unused_scope_block_p.  Restore code walking all
5261         referenced vars and pruning them.
5263 2012-05-23  Jan Hubicka  <jh@suse.cz>
5265         * tree.h (alias_diag_flags): Remove.
5266         (alias_pair): Remove emitted_diags.
5267         (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
5268         symbol_alias_set_t, symbol_alias_set_destroy,
5269         symbol_alias_set_contains, propagate_aliases_backward): Remove.
5270         * toplev.c (compile_file): Do not call finish_aliases_2
5271         * cgraphunit.c (cgraph_process_new_functions): Do not call
5272         finish_aliases_1.
5273         (handle_alias_pairs): Output diagnostics about aliases to externals.
5274         (assemble_thunks_and_aliases): Use do_assemble_alias.
5275         (output_weakrefs): Likewise.
5276         (finalize_compilation_unit): Do not call finish_aliases_1.
5277         * ipa.c (symtab_remove_unreachable_nodes): De not call
5278         remove_unreachable_alias_pairs.
5279         * varasm.c (do_assemble_alias): Export.
5280         (symbol_alias_set_create, symbol_alias_set_destroy,
5281         symbol_alias_set_contains, symbol_alias_set_insert,
5282         propagate_aliases_forward, propagate_aliases_backward,
5283         propagate_aliases_backward, trivially_visible_alias,
5284         trivially_defined_alias, remove_unreachable_alias_pairs,
5285         finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
5286         * output.h (do_assemble_alias): Declare.
5287         * varpool.c (varpool_remove_unreferenced_decls): Do not call
5288         finish_aliases_1.
5290 2012-05-23  Martin Jambor  <mjambor@suse.cz>
5292         * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
5294 2012-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5296         * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
5297         size handling.
5298         (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
5299         (iterative_hash_gimple_type): Adjust comment.
5300         (iterative_hash_canonical_type): Likewise.  Hash the bounds of the
5301         domain for an array type instead of the domain type itself.
5303 2012-05-23  Richard Guenther  <rguenther@suse.de>
5305         PR tree-optimization/53438
5306         * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
5308 2012-05-23  Georg-Johann Lay  <avr@gjlay.de>
5310         PR target/53448
5311         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
5312         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
5313         ASM_OUTPUT_ALIGN.
5315 2012-05-23  Richard Guenther  <rguenther@suse.de>
5317         * tree-dfa.c (add_referenced_var_1): Do not add global vars.
5318         * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
5319         via the global_unused_vars bitmap.
5320         (remove_unused_locals): Handle global vars in local-decls via
5321         a global_unused_vars bitmap instead of the used flag in the
5322         var annotation.  Simplify global variable handling and removal.
5324 2012-05-22  Jan Hubicka  <jh@suse.cz>
5326         PR middle-end/53426
5327         * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
5328         from other partitions.
5330 2012-05-22  Jan Hubicka  <jh@suse.cz>
5332         PR middle-end/53161
5333         * symtab.c (symtab_register_node): Fix ordering issue.
5335 2012-05-22  Steven Drake <sbd@NetBSD.org>
5337         * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
5339 2012-05-22  David Edelsohn  <dje.gcc@gmail.com>
5341         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
5342         Use strip_name_encoding target hook.
5344 2012-05-22  Richard Guenther  <rguenther@suse.de>
5346         * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
5347         (init_function_for_compilation): Remove.
5348         * tree-dfa.c (find_vars_r): Take struct function argument.
5349         (find_referenced_vars_in): Adjust.
5350         * tree-ssa-operands.c (clobber_stats): Remove.
5351         (create_vop_var): Take struct function argument.  Mark
5352         virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
5353         (init_ssa_operands): Take struct function argument.
5354         (fini_ssa_operands): Do not dump dead stats.
5355         * tree-ssa-operands.h (init_ssa_operands): Take struct function
5356         argument.
5357         * cgraphunit.c (init_lowered_empty_function): Adjust.
5358         * lto-streamer-in.c (input_cfg): Likewise.
5359         * tree-inline.c (initialize_cfun): Likewise.
5360         * tree-into-ssa.c (rewrite_into_ssa): Likewise.
5361         * omp-low.c (expand_omp_taskreg): Likewise.  Avoid switching cfun.
5362         * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
5363         virtual operands are not registers.
5365 2012-05-22  Richard Guenther  <rguenther@suse.de>
5367         * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
5369 2012-05-22  Richard Guenther  <rguenther@suse.de>
5371         PR middle-end/53437
5372         * tree-inline.c (setup_one_parameter): Create a dummy init
5373         statement for unused parameters when not optimizing.
5375 2012-05-22  Richard Guenther  <rguenther@suse.de>
5377         * tree-flow.h (add_referenced_var_1): Declare.
5378         (add_referenced_var): Define.
5379         * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
5380         (add_referenced_var): Rename to ...
5381         (add_referenced_var_1): ... this.  Take struct function argument.
5383 2012-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5385         PR target/53334
5386         * config/arm/arm-protos.h (arm_validize_comparison): Declare.
5387         * config/arm/arm.c (arm_validize_comparison): Define.
5388         * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
5389         arm_validize_comparison.
5390         ("cbranchdi4"): Likewise.
5391         ("cstoredi4"): Likewise.
5392         ("movsicc"): Likewise.
5393         ("movsfcc"): Likewise.
5394         ("movdfcc"): Likewise.
5396 2012-05-22  Dimitrios Apostolou  <jimis@gmx.net>
5398         * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
5399         the mw_reg_pool size.
5401 2012-05-22  Paolo Bonzini  <bonzini@gnu.org>
5403         PR tree-optimization/53336
5404         * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
5405         non-integer integral types to offset type and vice versa.
5407 2012-05-22  Alan Modra  <amodra@gmail.com>
5409         * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
5410         * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
5411         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
5412         V_SAVE_INLINE): Delete.
5413         * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
5414         (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
5415         For ELF targets, use out-of-line restores for -Os and any number
5416         of regs if the restore exits, and out-of-line gp save for two or
5417         more regs.  Use save_reg_p to test for holes in reg restore set.
5418         Replace "#if" with "if".
5420 2012-05-22  Alan Modra  <amodra@gmail.com>
5422         * config/rs6000/rs6000.c (save_reg_p): New function.
5423         (first_reg_to_save, first_fp_reg_to_save): Use it here.
5424         (first_altivec_reg_to_save, restore_saved_cr): Likewise.
5425         (emit_frame_save): Use gen_frame_store.
5426         (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
5427         (rs6000_emit_prologue): Use save_reg_p.  Use gen_frame_store for
5428         vrsave and toc.
5429         (rs6000_emit_epilogue): Use save_reg_p.  Use gen_frame_load for
5430         vrsave, toc, gp and fp restores.
5432 2012-05-22  Alan Modra  <amodra@gmail.com>
5434         * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
5435         Move those with ATTRIBUTE_UNUSED to immediately before definitions.
5436         Move function pointer variables after forward declarations.
5437         (rs6000_builtin_support_vector_misalignment): Make static.
5438         (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
5439         (rs6000_function_value, rs6000_can_eliminate): Likewise.
5441 2012-05-21  Bernd Schmidt  <bernds@codesourcery.com>
5443         PR rtl-optimization/53373
5444         * caller-save.c (save_call_clobbered_regs): Look into a possible
5445         PARALLEL manually rather than using single_set on a call insn.
5447 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
5449         PR tree-optimization/53436
5450         * omp-low.c (omp_build_component_ref): New function.
5451         (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
5453 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
5455         * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
5456         arguments to bool.
5457         (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
5458         Do not print '.' here.  Output operand lossage error for unhandled
5459         sizes.  Move.
5460         <case '*'>: Move.
5461         <case '&'>: Ditto.
5462         <case 'Y'>: Ditto.
5463         <case 'z'>: Hardcode "code" argument into error strings.
5464         <case 'Z'>: Ditto.
5465         <case 'D'>: Merge AVX and non-AVX codes.
5466         <case 'C', case 'c', case 'F', case 'f'>: Merge.  Fix error string.
5467         Update call to put_condition_code.
5469 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
5471         * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2.  Call
5472         CC_STATUS_INIT.
5473         (clzsi2): New expander.
5474         (*clzsi2_68k): New insn.
5475         * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
5477 2012-05-21  Aldy Hernandez  <aldyh@redhat.com>
5479         * gimple.h (gimple_set_in_transaction): Remove.
5480         (gimple_in_transaction): Look in BB instead.
5481         (gimple_statement_base): Remove in_transaction field.
5482         * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
5483         * trans-mem.c (compute_transaction_bits): Place transaction bit
5484         information into basic blocks.
5486 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
5488         * expr.c (get_def_for_expr_class): Define only if
5489         HAVE_conditional_move.
5490         (convert_tree_comp_to_rtx): Likewise.
5492 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
5494         PR target/53399
5495         * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
5496         for TARGET_BMI.
5497         (ffssi2_no_cmove): Ditto.
5498         (*ffs<mode>_1): Remove insn pattern.
5499         (*tzcnt<mode>_1): New insn pattern.
5500         (*bsf<mode>1): Ditto.
5502 2012-05-21  Richard Guenther  <rguenther@suse.de>
5504         * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
5505         more referenced vars.
5506         * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
5507         flag on variables that have a var-annotation.
5509 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5511         PR c/53418
5512         * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
5513         from folded operands before wrapping another around the
5514         conditional expression.
5516 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
5518         PR tree-optimization/53366
5519         * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
5520         tests if complex_numbers == 2, but there are non-complex number loads
5521         too.
5523         PR tree-optimization/53409
5524         * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
5525         vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
5527         PR tree-optimization/53410
5528         * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
5529         instead of build_int_cst (type, 0) where vector types might be
5530         involved. Instead of build_int_cst (type, 1) convert the original
5531         integer_onep argument to the desired type.
5533 2012-05-21  Michael Matz  <matz@suse.de>
5535         * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
5536         (simplify_test_exp): Handle one more case of distributive law,
5537         decrease cost threshold.
5538         (tests_attr_p, get_attr_order): New functions.
5539         (optimize_attrs): Use topological order, inline only cheap values.
5540         (write_attr_set): Reset our_known_true after some time.
5542 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5544         PR target/53425
5545         * config/i386/i386.c (type_natural_mode): Warn passing SSE
5546         vector argument without SSE enabled changes the ABI.
5548 2012-05-21  Richard Guenther  <rguenther@suse.de>
5550         PR tree-optimization/53408
5551         * tree-vect-loop.c (vectorizable_induction): Properly check
5552         the restriction that we cannot handle induction results from
5553         the inner loop outside of the outer loop.
5555 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5557         PR target/53416
5558         * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
5559         (UNSPECV_RDRAND): This.
5560         (rdrand<mode>_1): Updated.
5562 2012-05-21  Richard Guenther  <rguenther@suse.de>
5564         * tree-loop-distribution.c (can_generate_builtin): Reject
5565         volatile stmts.
5567 2012-05-21  Chung-Lin Tang  <cltang@codesourcery.com>
5569         * Makefile.in (options.c): Add options.h to included header
5570         files, before tm.h.
5572 2012-05-21  Razya Ladelsky  <razya@il.ibm.com>
5574         * tree-parloops.c : Add myself to contributors, update
5575         TODO list, add link to wiki.
5577 2012-05-21  Alan Modra  <amodra@gmail.com>
5579         * config/rs6000/predicates.md (input_operand): Don't match
5580         constant pool addresses.  Remove label_ref, high and plus from
5581         match_code list.  Remove redundant CONSTANT_P test.
5582         (splat_input_operand): Similarly update match_code list.
5583         (small_toc_ref): New predicate.
5584         * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
5585         * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
5586         (legitimate_constant_pool_address_p): Move TARGET_TOC test and
5587         register checks to..
5588         (toc_relative_expr_p): ..here.  Add "strict" param.  Match new rtl
5589         generated by create_TOC_reference.
5590         (rs6000_legitimize_address): Update cerate_TOC_reference call.
5591         (rs6000_delegitimize_address): Handle new rtl for toc refs.
5592         (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
5593         (use_toc_relative_ref): New function, split out from..
5594         (rs6000_emit_move): ..here.  Remove redundant tests.  Update
5595         create_TOC_reference calls.
5596         (rs6000_legitimize_reload_address): Formatting.  Handle splitting
5597         of medium/large model toc addresses.  Use use_toc_relative_ref.
5598         (print_operand): Formatting, style.  Adjust for toc changes.
5599         (print_operand_address): Likewise.
5600         (rs6000_output_addr_const_extra): Likewise.
5601         (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
5602         than a PLUS.  Use this formulation for both high and low part
5603         of -mcmodel=medium/large toc reference too.  Before reload,
5604         always use the small model formulation.
5605         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
5606         a PLUS in high part of addresses here.
5607         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
5608         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
5609         (largetoc_high, largetoc_low): Move earlier.  Cope when no
5610         base reg available.
5611         (largetoc_high_plus): New insn.
5612         (movsi_internal1, movsi_internal1_single, movsf_softfloat,
5613         movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
5614         (tocref): ..instead do so here, new insn and split.
5616 2012-05-20  H.J. Lu  <hongjiu.lu@intel.com>
5618         * config/i386/driver-i386.c (host_detect_local_cpu): Support
5619         RDRND, F16C and FSGSBASE.
5621 2012-05-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5623         PR rtl-optimzation/53373
5624         * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
5625         call pattern.  Update split patterns.
5626         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
5627         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
5629 2012-05-20  Razya Ladelsky  <razya@il.ibm.com>
5631         * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
5632         for outer loops.
5634 2012-05-18  Jan Hubicka  <jh@suse.cz>
5636         * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
5637         (cgraph_process_new_functions): Process also aliases.
5638         * lto-streamer-out.c (struct sets): Remove.
5639         (trivally_defined_alias): Remove.
5640         (output_alias_pair_p): Remove.
5641         (output_unreferenced_globals): Remove.
5642         (produce_symtab); Do not handle alias pairs.
5643         (produce_asm_for_decls): Likewise.
5644         * lto-streamer-in.c (input_alias_pairs): Remove.
5645         (lto_read_body): Do not input alias pairs.
5646         (lto_input_constructors_and_inits): Remove.
5648 2012-05-18  Jan Hubicka  <jh@suse.cz>
5650         * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
5651         aliases.
5653 2012-05-18  Jan Hubicka  <jh@suse.cz>
5655         * cgraphbuild.c (record_reference): Update.
5656         * lto-cgraph.c (lto_output_varpool_node): External vars
5657         are not in other partition even if they are not output
5658         in current partition.
5659         * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
5660         argument; fix.
5661         (canonicalize_constructor_val): Take FROM_DECL argument.
5662         (fold_ctor_reference, fold_string_cst_ctor_reference,
5663         fold_array_ctor_reference, fold_nonarray_ctor_reference,
5664         fold_ctor_reference): Likewise.
5665         (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
5666         * gimple.h (gimple_fold_builtin): Likewise.
5668 2012-05-18  Olivier Hainque  <hainque@adacore.com>
5670         * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
5671         $(libsubdir) as libexecsubdir.
5673 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5675         * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
5676         relied on signed overflow behavior.
5678 2012-05-18  Richard Guenther  <rguenther@suse.de>
5680         PR tree-optimization/53346
5681         * tree-loop-distribution.c (ldist_gen): Make sure to apply
5682         builtin transform even when only a single partition with
5683         all reads/writes exists.
5685 2012-05-18  Richard Guenther  <rguenther@suse.de>
5687         PR tree-optimization/53390
5688         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
5689         strided loads.
5691 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5693         * tree-ssa-reassoc.c (bip_map): Remove decl.
5694         (completely_remove_stmt): Remove function.
5695         (remove_def_if_absorbed_call): Remove function.
5696         (remove_visited_stmt_chain): Remove __builtin_powi handling.
5697         (possibly_move_powi): Remove function.
5698         (rewrite_expr_tree): Remove calls to possibly_move_powi.
5699         (rewrite_expr_tree_parallel): Likewise.
5700         (attempt_builtin_powi): Build multiplies explicitly rather than
5701         relying on the ops vector and rank system.
5702         (transform_stmt_to_copy): New function.
5703         (transform_stmt_to_multiply): Likewise.
5704         (reassociate_bb): Handle leftover operations after __builtin_powi
5705         optimization; build a final multiply if necessary.
5707 2012-05-18  Jan Hubicka  <jh@suse.cz>
5709         * cgraphunit.c (varpool_finalize_decl): Allow external decls.
5710         (mark_functions_to_output): Fix sanity check.
5711         * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
5713 2012-05-18  Richard Guenther  <rguenther@suse.de>
5715         * tree-flow.h (mark_symbols_for_renaming): Remove.
5716         * tree-dfa.c (mark_symbols_for_renaming): Likewise.
5717         * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
5718         (copy_debug_stmt): Likewise.
5719         (expand_call_inline): Likewise.
5720         (declare_return_variable): Mark the return variable for renaming
5721         if necessary.
5723 2012-05-18  Andrew Stubbs  <ams@codesourcery.com>
5725         * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
5726         prototype.
5727         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
5728         * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
5729         (ashrdi3,lshrdi3): Likewise.
5730         (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
5732 2012-05-18  Meador Inge  <meadori@codesourcery.com>
5734         PR rtl-optimization/53352
5735         * cse.c (equiv_constant): Ignore paradoxical subregs.
5737 2012-05-17  Steven Bosscher  <steven@gcc.gnu.org>
5739         PR rtl-optimization/53125
5740         * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
5741         argument.  Simplify calculation of REG_LIVE_LENGTH for regnos that
5742         die in the basic block.  Correctly top off REG_FREQ and
5743         REG_FREQ_CALLS_CROSSED.
5744         Remove do_not_gen.
5745         (regstat_compute_ri): Allocate and free local_live_last_luid.
5746         Remove do_not_gen.
5747         (regstat_bb_compute_calls_crossed): Correctly top off
5748         REG_FREQ_CALLS_CROSSED.
5750 2012-05-17  Jan Hubicka  <jh@suse.cz>
5752         * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
5753         constructor over decl without.
5754         * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
5755         * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
5756         * cgraphunit.c (process_function_and_variable_attributes): Finalize
5757         extrnal decls.
5758         (mark_functions_to_output): Also accept bodies for functions with
5759         clones.
5760         (output_in_order): Skip external vars.
5761         * lto-cgraph.c (lto_output_node): External functions are never in other
5762         partition.
5763         (lto_output_varpool_node): Likewise.
5764         * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
5765         forgotten initializers.
5766         * ipa.c (process_references): Handle external vars.
5767         (symtab_remove_unreachable_nodes): Update to handle external vars.
5768         (varpool_externally_visible_p): External vars are externally visible.
5769         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
5770         * varpool.c (varpool_remove_node): Remove constructor.
5771         (decide_is_variable_needed): Handle externals.
5772         (varpool_remove_unreferenced_decls): Likewise.
5774 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5776         * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
5777         (enable_warning_as_error): Do not special case Wuninitialized.
5778         * optc-gen.awk: Add sanity checks.
5780 2012-05-17  Jan Hubicka  <jh@suse.cz>
5782         * ipa-reference.c (is_proper_for_analysis): Do not check flags
5783         that might change as result of global optimization.
5784         (analyze_function): Do not check analyzed and externally_visible
5785         flags; be happy about address dereferences.
5786         (propagate): Prune all_module_statics so it really contains just
5787         statics; prune all the local summaries.
5788         (ipa_reference_write_optimization_summary): Simplify.
5790 2012-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
5792         * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
5793         * config/m68k/m68k-tables.opt: Regenerated.
5794         * doc/invoke.texi (M680x0 Options): Document.
5796 2012-05-16  Dave Boutcher  <daveboutcher@gmail.com>
5797             Patrick Marlier  <patrick.marlier@gmail.com>
5799         * trans-mem.c (ipa_tm_transform_clone): Transform functions with
5800         indirect calls.
5802 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5804         * configure: Regenerated.
5806 2012-05-16  Andrew Pinski  <apinski@cavium.com>
5808         * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
5809         GIMPLE_ASSIGN.
5811 2012-05-16  David S. Miller  <davem@davemloft.net>
5813         * jump.c (delete_related_insns): If we remove a CALL, make sure
5814         we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
5816 2012-05-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5818         PR tree-optimization/53217
5819         * tree-ssa-reassoc.c (bip_map): New static variable.
5820         (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
5821         (attempt_builtin_powi): Save feeding multiplies on a stack.
5822         (reassociate_bb): Create and destroy bip_map.
5824 2012-05-16  Olivier Hainque  <hainque@adacore.com>
5826         * Makefile.in (install-no-fixedincludes): New target, former toplevel
5827         gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
5828         Add comments and improve stamp preservation across the whole sequence.
5829         (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
5831 2012-05-16  Richard Guenther  <rguenther@suse.de>
5833         * tree-inline.c (insert_init_stmt): Do not call
5834         mark_symbols_for_renaming.
5835         (setup_one_parameter): Avoid initializing unused parameters.
5836         (declare_return_variable): Properly handle DECL_BY_REFERENCE
5837         return vars in SSA form.
5839 2012-05-16  Richard Guenther  <rguenther@suse.de>
5841         * tree-flow.h (get_virtual_var): Remove.
5842         * tree-dfa.c (get_virtual_var): Likewise.
5844 2012-05-16  Richard Guenther  <rguenther@suse.de>
5846         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
5847         Remove set-only bitmap of new names.
5848         (slpeel_tree_peel_loop_to_edge): Likewise.  Do not set
5849         CFG hooks.
5850         * tree-flow.h (ssa_names_to_replace): Remove.
5851         * tree-into-ssa.c (ssa_names_to_replace): Likewise.
5853 2012-05-16  Richard Guenther  <rguenther@suse.de>
5855         PR tree-optimization/53364
5856         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
5857         detect a view-conversion of the decl.
5859 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
5861         PR preprocessor/7263
5862         * c-tree.h (enum c_declspec_word): Declare new enum.
5863         (struct c_declspecs::locations): New member.
5864         (declspecs_add_qual, declspecs_add_scspec)
5865         (declspecs_add_addrspace, declspecs_add_alignas): Take a new
5866         location parameter.
5867         * c-decl.c (build_null_declspecs): Initialize the new struct
5868         c_declspecs::locations member.
5869         (declspecs_add_addrspace): Take a location parameter for the
5870         address space.  Store it onto declaration specifiers.
5871         (declspecs_add_qual): Likewise, take a location parameter for the
5872         qualifier.
5873         (declspecs_add_type): Likewise, take a location parameter for the
5874         type specifier.
5875         (declspecs_add_scspec): Likewise, take a location parameter for
5876         the storage class specifier.
5877         (declspecs_add_attrs): Likewise, take a location parameter for the
5878         first attribute.
5879         (declspecs_add_alignas): Likewise, take a location parameter for
5880         the alignas token.
5881         (finish_declspecs): For diagnostics, use the location of the
5882         relevant declspec, instead of the global input_location.
5883         * c-parser.c (c_parser_parameter_declaration): Pass the precise
5884         virtual location of the declspec to the declspecs-setters.
5885         (c_parser_declspecs): Likewise.  Avoid calling c_parser_peek_token
5886         repeatedly.
5888 2012-05-16  Igor Zamyatin  <igor.zamyatin@intel.com>
5890         * configure.ac: Stack protector enabling for Android targets.
5891         * configure: Regenerate.
5893 2012-05-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
5895         * ira.c (pseudo_move_insn): Delete.
5896         (find_moveable_pseudos): Don't set it.
5897         (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
5898         the definitions of the original pseudo.  Delete all of them.
5900 2012-05-16  Olivier Hainque  <hainque@adacore.com>
5902         * config/rs6000/rs6000-opts.h (enum processor_type): Add
5903         PROCESSOR_PPC8548.
5904         * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
5905         * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
5906         * config/rs6000/8540.md: indicate that the units/patterns apply to
5907         ppc8548 as well.
5909         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
5910         default_cpu into implicit_cpu, conveying what --with-cpu was passed at
5911         configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
5912         related flags,  check that what is queried is supported by the selected
5913         configuration. Rework the single/double_float and MASK_STRING resets to
5914         hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
5915         costs for PROCESSOR_PPC8548 as well.
5916         (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
5917         (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
5918         statement instead of a sequence of ifs.
5920         * config/rs6000/rs6000.h (TARGET_E500): Remove.
5921         (TARGET_NO_LWSYNC): Adjust accordingly.
5922         * config/rs6000/e500.h (TARGET_E500): Remove.
5923         (CHECK_E500_OPTIONS): Adjust accordingly.
5924         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
5925         (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
5926         * config/rs6000/linuxspe.h: Likewise.
5927         * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
5928         superfluous comments.
5929         * config/rs6000/e500-double.h: Remove.
5931         * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
5932         default to with_cpu=8548 if --enable-e500-double, and to 8540
5933         otherwise.
5934         (set misc flags section): For powerpc*|rs6000*, remove inclusion
5935         of e500-double.h for --enable-e500-double.
5937 2012-05-16  Olivier Hainque  <hainque@adacore.com>
5939         * Makefile.in (s-header-vars): Resort to -n instead of trailing
5940         -e d in sed invocation.
5942 2012-05-16  Hans-Peter Nilsson  <hp@axis.com>
5944         * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
5945         source-code.
5946         * doc/tm.texi: Regenerate.
5948 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
5950         * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
5952 2012-05-15  Jakub Jelinek  <jakub@redhat.com>
5954         PR target/53358
5955         * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
5956         that operands[2] is either immediate, or q_regs_operand.
5958 2012-05-15  Richard Guenther  <rguenther@suse.de>
5960         * cgraphunit.c (thunk_adjust): Use make_rename_temp.
5961         (assemble_thunk): Likewise.  Manually rename and register
5962         function arguments.
5964 2012-05-15  Richard Guenther  <rguenther@suse.de>
5966         PR tree-optimization/53355
5967         * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
5968         by constants.
5970 2012-05-15  Tristan Gingold  <gingold@adacore.com>
5972         * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
5974 2012-05-15  Richard Guenther  <rguenther@suse.de>
5976         * gimple.c (gimple_set_modified): Move ...
5977         * gimple.h (gimple_set_modified): ... here.
5979 2012-05-15  Tristan Gingold  <gingold@adacore.com>
5981         * ira-color.c (move_spill_restore): Add a guard.
5983 2012-05-15  Tristan Gingold  <gingold@adacore.com>
5985         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
5986         plus_constant.
5988 2012-05-15  Eric Botcazou  <ebotcazou@adacore.com>
5990         * gimplify.c (gimplify_init_constructor): Do a block move for very
5991         small objects as well.
5993 2012-05-15  Bernd Schmidt  <bernds@codesourcery.com>
5995         * ira.c (find_moveable_pseudos): Skip registers whose
5996         DF_REG_EQ_USE_COUNT is nonzero.
5998 2012-05-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
6000         * doc/md.texi (fma): Define to only be applicable for single rounding.
6002 2012-05-14  Uros Bizjak  <ubizjak@gmail.com>
6004         PR target/46098
6005         * config/i386/i386.c (ix86_expand_special_args_builtin): Always
6006         generate target register for "load" class builtins.
6008         Revert:
6009         2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
6011         PR target/46098
6012         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
6013         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
6014         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
6015         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
6016         (<sse>_movu<ssemodesuffix>): New expander.
6017         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
6018         (avx_movdqu<avxmodesuffix>): New expander.
6019         (*sse2_movdqu): Rename from sse2_movdqu.
6020         (sse2_movdqu): New expander.
6022 2012-05-14  Marc Glisse  <marc.glisse@inria.fr>
6024         PR target/52607
6025         * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
6026         (canonicalize_perm): ... new function.
6027         (expand_vec_perm_2vperm2f128_vshuf): New function.
6028         (ix86_expand_vec_perm_const_1): Call it.
6030 2012-05-14  Andrew Pinski  <apinski@cavium.com>
6031             H.J. Lu  <hongjiu.lu@intel.com>
6032             Jakub Jelinek  <jakub@redhat.com>
6034         PR target/53315
6035         * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
6036         (xbegin): Updated.
6038 2012-05-14  Jakub Jelinek  <jakub@redhat.com>
6040         * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
6041         lineno 1 the same as lineno 0 before first start file directive.
6042         (optimize_macinfo_range): Likewise.
6044         * dwarf2out.c (have_macinfo): Define.
6045         (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
6046         attribute, don't force empty compilation unit and don't emit any
6047         .debug_macinfo/.debug_macro section if macinfo_table is empty.
6049 2012-05-14  Georg-Johann Lay  <avr@gjlay.de>
6051         PR target/53344
6052         * config/avr/avr.c (avr_const_address_lo16): Remove.
6053         (avr_assemble_integer):  Print ".byte lo8(x)",
6054         ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
6055         .warning if 3-byte address is assembled.
6056         * doc/extend.texi (AVR Named Address Spaces): Document that
6057         binutils 2.23 is needed to assemble 3-byte addresses.
6059 2012-05-14  Richard Guenther  <rguenther@suse.de>
6061         * tree-vect-data-refs.c (vect_setup_realignment): Remove
6062         call to mark_symbols_for_renaming.
6063         (vect_permute_load_chain): Likewise.
6064         * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
6065         instead of calling mark_symbols_for_renaming.
6066         * tree-vect-stmts.c (read_vector_array): Remove call to
6067         mark_symbols_for_renaming.
6068         (write_vector_array): Likewise.
6069         (vectorizable_call): Likewise.
6070         (vectorizable_store): Likewise.
6071         (vectorizable_load): Likewise.
6072         * matrix-reorg.c (transform_allocation_sites): Likewise.
6073         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
6074         (create_expression_by_pieces): Likewise.
6076 2012-05-14  Richard Guenther  <rguenther@suse.de>
6078         * gimplify.c (gimple_regimplify_operands): Only mark the LHS
6079         of statements for renaming.
6080         (force_gimple_operand_1): Likewise, consistently for both
6081         calls to force_gimple_operand and force_gimple_operand_gsi.
6083 2012-05-14  Richard Guenther  <rguenther@suse.de>
6085         * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
6086         * omp-low.c (expand_omp_taskreg): Properly conditionalize call
6087         to update_ssa.
6088         (expand_omp_for): Likewise.
6089         (expand_omp_for_generic): Adjust conditional add to referenced vars.
6090         Use make_rename_temp for temporaries that should be rewritten into
6091         SSA form.
6092         (expand_omp_for_static_nochunk): Likewise.
6093         (expand_omp_atomic_pipeline): Likewise.
6095 2012-05-14  Richard Guenther  <rguenther@suse.de>
6097         PR tree-optimization/53331
6098         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
6099         strided loads.
6100         * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
6102 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6104         PR 53063
6105         * doc/options.texi: (LangEnabledBy): Document it.
6106         * optc-gen.awk: Handle LangEnabledBy.
6107         * opth-gen.awk: Generate declaration for lang-specific functions.
6108         * opt-read.awk: Record lang numbers.
6109         * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
6110         (lang_sanitized_name): New.
6112 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
6114         * attribs.c (decl_attributes): Avoid emitting a warning if
6115         ATTR_FLAG_BUILT_IN.
6116         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
6117         codes.  Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
6118         * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define.  Use it to
6119         define a string "1".
6120         (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
6121         * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
6122         BUILT_IN_STRCPY): Use it for these functions.
6123         * postreload.c (reload_combine): Deal with SETs inside
6124         CALL_INSN_FUNCTION_USAGE.
6125         * caller-save.c (setup_save_areas, save_call_clobbered_regs):
6126         Look for REG_RETURNED notes and use a cheap restore if possible.
6127         * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
6128         (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
6129         * ira-build.c (ira_create_allocno, create_cap_allocno,
6130         propagate_allocno_info, propagate_some_info_from_allocno,
6131         copy_info_to_removed_store_destination, ira_flattening): Handle it.
6132         * ira-lives.c (pseudo_regno_single_word_and_live_p,
6133         find_call_crossed_cheap_reg): New static functions.
6134         (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
6135         and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible.  Also make
6136         a REG_RETURNED note in that case.
6137         * ira.c (setup_reg_renumber): Change assert to allow cases where
6138         allocnos only cross calls for which they are cheap to restore.
6139         * ira-costs.c (ira_tune_allocno_costs): Compare
6140         ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
6141         than 0.
6142         * reg-notes.def (REG_RETURNED): New note.
6143         * cse.c (cse_insn): Likewise.
6144         * sched-deps.c (sched_analyze_insn): Likewise.
6145         * expr.c (init_block_move_fn): Set a "fn spec" attribute.
6146         * calls.c (decl_return_flags): New static function.
6147         (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
6148         functions that return one of their arguments.
6149         * regcprop.c (struct kill_set_value_data): New.
6150         (kill_set_value): Interpret data as a pointer to such a struct.
6151         Do nothing if the caller wants the register to be ignored.
6152         (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
6154 2012-05-14  Richard Guenther  <rguenther@suse.de>
6156         PR tree-optimization/53340
6157         * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
6159 2012-05-14  Richard Guenther  <rguenther@suse.de>
6161         * gimplify.c (gimplify_expr): Remove odd code.
6163 2012-05-14  Eric Botcazou  <ebotcazou@adacore.com>
6165         * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
6166         into a PLUS_EXPR byte offset.
6168         * tree-ssa-pre.c (can_value_number_call): Delete.
6169         (compute_avail): Skip all statements with side effects.
6170         <GIMPLE_CALL>: Skip calls to internal functions.
6172 2012-05-13  Steven Bosscher  <steven@gcc.gnu.org>
6174         * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
6176 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6178         * common.opt (Wtype-limits): Use EnabledBy.
6180 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
6182         * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
6183         (pushtf splitter): Ditto.
6184         (movtf): Ditto.
6185         (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
6186         (<code>tf2): Enable for TARGET_SSE.
6187         (*absnegtf2_sse): Ditto.
6188         (copysign<mode>3): Enable TFmode for TARGET_SSE.
6189         (copysign<mode>3_const): Ditto.
6190         (copysign<mode>3_var): Ditto.
6191         * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
6192         (*andnottf3): Ditto.  Use V4SFmode for !TARGET_SSE2.
6193         (*<code>tf3): Ditto.
6194         * config/i386/i386.c (struct builtin_description bdesc_args)
6195         <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
6196         <IX86_BUILTIN_COPYSIGNQ>: Ditto.
6197         (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
6198         Emit a normal call if SSE isn't available.
6200 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
6202         * config/i386/sse.md (<sse>_andnot<mode>3): Handle
6203         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6204         (<code><mode>3): Ditto.
6205         (*andnot<mode>3): Ditto.
6206         (*andnottf3): Ditto.
6207         (*<code><mode>3): Ditto.
6208         (<code>tf3): Ditto.
6210 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6212         * optc-gen.awk: Error instead of warning for conflicting help.
6214 2012-05-12  Jason Merrill  <jason@redhat.com>
6216         PR debug/53235
6217         * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
6218         comdat types.
6220 2012-05-12  Eric Botcazou  <ebotcazou@adacore.com>
6222         * function.c (requires_stack_frame_p): If the function can throw
6223         non-call exceptions, return true if the insn can throw internally.
6225 2012-05-12  Paolo Carlini  <paolo.carlini@oracle.com>
6227         * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
6229 2012-05-12  Uros Bizjak  <ubizjak@gmail.com>
6231         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
6232         ORDERED and UNORDERED conditions.
6234 2012-05-11  Richard Guenther  <rguenther@suse.de>
6236         * tree-flow.h (referenced_var_check_and_insert): Remove.
6237         (find_new_referenced_vars): Likewise.
6238         * tree-dfa.c (referenced_var_check_and_insert): Make static.
6239         (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
6240         * tree-inline.c (copy_bb): Use find_referenced_vars_in
6241         instead of find_new_referenced_vars.
6242         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
6244 2012-05-11  Richard Guenther  <rguenther@suse.de>
6246         * tree-pass.h (pass_rest_of_compilation,
6247         pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
6248         Remove.
6249         * passes.c (pass_all_optimizations, pass_postreload,
6250         pass_all_early_optimizations): Make static.
6251         (pass_rest_of_compilation): Likewise.  Make it an RTL_PASS.
6252         * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
6253         * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
6254         (delete_tree_ssa): Do not call fini_phinodes.
6255         * tree-flow.h (init_phinodes, fini_phinodes): Remove.
6257 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6259         PR 53063
6260         * doc/options.texi (EnabledBy): Document
6261         * opts.c: Include opts.h and options.h before tm.h.
6262         (finish_options): Do not handle some sub-options here...
6263         (common_handle_option): ... instead call common_handle_option_auto
6264         here.
6265         * optc-gen.awk: Handle EnabledBy.
6266         * opth-gen.awk: Declare common_handle_option_auto.
6267         * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
6268         (Wmaybe-uninitialized): Likewise.
6269         (Wunused-but-set-variable): Likewise.
6270         (Wunused-function): Likewise.
6271         (Wunused-label): Likewise.
6272         (Wunused-value): Likewise.
6273         (Wunused-variable): Likewise.
6274         * opt-read.awk: Create opt_numbers array.
6276 2012-05-11  Richard Guenther  <rguenther@suse.de>
6278         PR tree-optimization/53295
6279         * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
6280         strides.
6281         * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
6282         strides when analyzing data-references in a loop context.
6283         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
6284         non-constant strides for now.
6285         (vect_enhance_data_refs_alignment): Ignore data references
6286         that are strided loads.
6287         (vect_analyze_data_ref_access): Handle non-constant strides.
6288         (vect_check_strided_load): Verify the data-reference is a load.
6289         (vect_analyze_data_refs): Restructure to make strided load
6290         support not dependent on gather support.
6291         * tree-vect-stmts.c (vectorizable_load): Avoid useless work
6292         when doing strided or gather loads.
6293         * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
6294         integer_zerop to compare stride with zero.
6296 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6298         * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
6300 2012-05-11  Jan Hubicka  <jh@suse.cz>
6302         PR bootstrap/53300
6303         * varpool.c (varpool_assemble_decl): Also output constat pool entries
6304         that output_constant_pool missed.
6306 2012-05-11  Mingjie Xing  <mingjie.xing@gmail.com>
6308         * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
6309         MULTILIB_EXTRA_OPTS.
6311 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
6313         PR target/53291
6314         * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
6316 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
6318         * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
6319         optimization for TARGET_AVX.
6320         (*movti_internal_sse): Ditto.
6321         (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6322         (*movdi_internal): Ditto.
6323         (*movsi_internal): Ditto.
6324         (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
6325         (*movdf_internal_rex64): Ditto.
6326         (*movfd_internal): Ditto.
6327         (*movsf_internal): Ditto.
6328         * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
6330 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
6332         * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
6333         reference as size attribute.
6335 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
6336             Tristan Gingold  <gingold@adacore.com>
6338         * doc/md.texi (Standard Names): Document probe_stack_address.
6339         * explow.c (emit_stack_probe): Handle probe_stack_address.
6340         * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
6341         (UNSPECV_PROBE_STACK_RANGE): Likewise.
6342         (probe_stack_address): New insn.
6343         (probe_stack_range): Likewise.
6344         * config/ia64/ia64.c: Include common/common-target.h.
6345         (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
6346         checking is enabled.
6347         (ia64_emit_probe_stack_range): New function.
6348         (output_probe_stack_range): Likewise.
6349         (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
6350         builtin stack checking is enabled.
6351         (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
6352         and UNSPECV_PROBE_STACK_ADDRESS.
6353         (unknown_for_bundling_p): New predicate.
6354         (group_barrier_needed): Use important_for_bundling_p.
6355         (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
6356         (issue_nops_and_insn): Likewise.
6357         (bundling): Likewise.
6358         (final_emit_insn_group_barriers): Likewise.
6359         * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
6360         * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
6361         (STACK_CHECK_PROTECT): Likewise.
6362         * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6364 2012-05-10  Jan Hubicka  <jh@suse.cz>
6366         * ipa-inline.c (update_all_callee_keys): Remove.
6367         (inline_small_functions): Simplify priority updating.
6369 2012-05-10  Jan Hubicka  <jh@suse.cz>
6371         * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
6373 2012-05-10  Jan Hubicka  <jh@suse.cz>
6375         * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
6376         (symtab_remove_unreachable_nodes): ... this one.
6377         * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
6378         * cgraphunit.c (ipa_passes): Update.
6379         * cgraphclones.c (cgraph_materialize_all_clones): Update.
6380         * cgraph.c (cgraph_release_function_body): Only turn initial
6381         into error mark when initial was previously set.
6382         * ipa-inline.c (ipa_inline): Update.
6383         * ipa.c: Include ipa-inline.h
6384         (enqueue_cgraph_node, enqueue_varpool_node): Remove.
6385         (enqueue_node): New function.
6386         (process_references): Update.
6387         (symtab_remove_unreachable_nodes): Cleanup.
6388         * passes.c (execute_todo, execute_one_pass): Update.
6390 2012-05-10  Vladimir Makarov  <vmakarov@redhat.com>
6392         PR rtl-optimization/53125
6393         * ira.c (ira): Call find_moveable_pseudos and
6394         move_unallocated_pseudos if only ira_conflicts_p is true.
6396 2012-05-10  Uros Bizjak  <ubizjak@gmail.com>
6398         * config/i386/i386.md (*movoi_internal_avx): Handle
6399         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
6400         (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6401         (*movti_internal_sse): Ditto.
6402         (*movtf_internal): Ditto.
6403         * config/i386/sse.md (ssePSmode): New mode attribute.
6404         (*move<mode>_internal): Use ssePSmode.
6405         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
6406         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
6407         * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
6408         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
6410 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
6412         * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
6413         DECL_ORIGINAL_TYPE if it is present.
6415 2012-05-10  Nick Clifton  <nickc@redhat.com>
6417         PR target/53120
6418         * config/m32c/bitops.md (bset_qi): Change operand 2 from having
6419         a "0" constraint to being a (match_dup 0).
6421 2012-05-10  Richard Guenther  <rguenther@suse.de>
6423         * stor-layout.c (byte_from_pos): Amend comment.
6425 2012-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6427         * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
6428         Document requirement to call in constructors.
6430         * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
6432 2012-05-10  Richard Guenther  <rguenther@suse.de>
6434         * tree.h (TYPE_IS_SIZETYPE): Remove.
6435         * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
6436         (extract_muldiv_1): Likewise.
6437         * gimple.c (gtc_visit): Likewise.
6438         (gimple_types_compatible_p): Likewise.
6439         (iterative_hash_canonical_type): Likewise.
6440         (gimple_canonical_types_compatible_p): Likewise.
6441         * gimplify.c (gimplify_one_sizepos): Likewise.
6442         * print-tree.c (print_node): Likewise.
6443         * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
6445 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
6447         PR target/52908
6448         * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
6449         xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
6450         (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
6451         instead of xop_mulv2div2di3_low.
6452         (xop_p<macs>dql): Fix vec_select selector.
6453         (xop_p<macs>dqh): Ditto.
6454         (xop_mulv2div2di3_low): Remove insn_and_split pattern.
6455         (xop_mulv2div2di3_high): Ditto.
6457 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6459         PR c++/53289
6460         * diagnostic.h (diagnostic_context): Add last_location.
6461         * diagnostic.c (diagnostic_initialize): Initialize it.
6462         (diagnostic_show_locus): Use it.
6464 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6466         * doc/extend.texi (Function Attributes): Point xref to section
6467         about Pragmas.
6469 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
6471         * config/i386/i386.c (*movdf_internal_rex64): Remove
6472         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
6473         Calculate "mode" attribute according to
6474         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
6475         (*movdf_internal): Ditto.
6477 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
6479         PR target/44141
6480         * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
6481         128 bit vectors specially for TARGET_AVX.  Emit sse2_movupd and
6482         sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
6483         or when optimizing for size.
6484         * config/i386/sse.md (*mov<mode>_internal): Remove
6485         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
6486         Calculate "mode" attribute according to optimize_function_for_size_p
6487         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
6488         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
6489         depending on the mode of the instruction.  Calculate "mode" attribute
6490         according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
6491         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
6492         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
6494 2012-05-09  Georg-Johann Lay  <avr@gjlay.de>
6496         PR target/53256
6497         * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
6498         * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
6499         * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
6500         * config/avr/avr.c (avr_asm_declare_function_name): Remove.
6501         (expand_prologue): Move initialization of cfun->machine->is_naked,
6502         is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
6503         (avr_set_current_function): ...this new static function.
6504         (TARGET_SET_CURRENT_FUNCTION): New define.
6505         (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
6506         checking attributes of current_function_decl.
6507         (avr_regs_to_save): Ditto.
6508         (signal_function_p): Rename to avr_signal_function_p.
6509         (interrupt_function_p): Rename to avr_interrupt_function_p.
6511         * doc/extend.texi (Function Attributes): Better explanation of
6512         'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
6513         alphabetical order.
6515 2012-05-09  Michael Matz  <matz@suse.de>
6517         PR tree-optimization/53185
6518         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
6519         peeling when we see strided loads.
6521 2012-05-09  Matthias Klose  <doko@ubuntu.com>
6523         * gcc-ar.c (main): Don't check for execute bits for the plugin.
6525 2012-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6527         * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
6528         Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
6529         USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
6530         * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
6531         (USE_LOAD_POST_INCREMENT): Define.
6532         (USE_LOAD_PRE_INCREMENT): Define.
6533         (USE_LOAD_POST_DECREMENT): Define.
6534         (USE_LOAD_PRE_DECREMENT): Define.
6535         (USE_STORE_PRE_DECREMENT): Define.
6536         (USE_STORE_PRE_INCREMENT): Define.
6537         (USE_STORE_POST_DECREMENT): Define.
6538         (USE_STORE_POST_INCREMENT): Define.
6539         (arm_auto_incmodes): Add enumeration.
6540         * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
6541         * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
6543 2012-05-09  Jakub Jelinek  <jakub@redhat.com>
6545         PR tree-optimization/53226
6546         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
6547         prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
6548         before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
6549         doesn't need to be revisited, look for earliest stmt with
6550         !gimple_plf (stmt, GF_PLF_1) if something changed.
6552 2012-05-09  Terry Guo  <terry.guo@arm.com>
6554         * genmultilib: Update copyright dates.
6555         * doc/fragments.texi: Ditto.
6557 2012-05-09  Terry Guo  <terry.guo@arm.com>
6559         * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
6560         * genmultilib (MULTILIB_REQUIRED): New.
6561         * doc/fragments.texi: Document the MULTILIB_REQUIRED.
6563 2012-05-09  Richard Guenther  <rguenther@suse.de>
6565         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6566         (vect_do_peeling_for_loop_bound): Likewise.
6567         (vect_do_peeling_for_alignment): Likewise.
6568         * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
6569         (vect_do_peeling_for_loop_bound): Get check_profitability and
6570         threshold as parameters.
6571         (vect_do_peeling_for_alignment): Likewise.
6572         (vect_loop_versioning): Likewise.
6573         * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
6574         and threshold here.  Control where to put the check here.
6576 2012-05-09  Richard Sandiford  <rdsandiford@googlemail.com>
6578         PR middle-end/53249
6579         * dwarf2out.h (get_address_mode): Move declaration to...
6580         * rtl.h: ...here.
6581         * dwarf2out.c (get_address_mode): Move definition to...
6582         * rtlanal.c: ...here.
6583         * var-tracking.c (get_address_mode): Delete.
6584         * combine.c (find_split_point): Use get_address_mode instead of
6585         targetm.addr_space.address_mode.
6586         * cselib.c (cselib_record_sets): Likewise.
6587         * dse.c (canon_address, record_store): Likewise.
6588         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
6589         * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
6590         (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
6591         (expand_expr_real_1): Likewise.
6592         * ifcvt.c (noce_try_cmove_arith): Likewise.
6593         * optabs.c (maybe_legitimize_operand_same_code): Likewise.
6594         * reload.c (find_reloads): Likewise.
6595         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
6596         * sel-sched-dump.c (debug_mem_addr_value): Likewise.
6598 2012-05-09  Maciej W. Rozycki  <macro@codesourcery.com>
6600         * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
6601         information from the instruction produced.
6603 2012-05-09  Richard Guenther  <rguenther@suse.de>
6605         * stor-layout.c (bit_from_pos): Document.
6606         (byte_from_pos): Likewise.  Optimize.
6607         (pos_from_bit): Likewise.
6608         (normalize_offset): Use pos_from_bit instead of replicating it.
6610 2012-05-09  Alan Modra  <amodra@gmail.com>
6612         PR target/53271
6613         * config/rs6000/rs6000.c (gen_frame_set): New function.
6614         (gen_frame_load, gen_frame_store): New functions.
6615         (rs6000_savres_rtx): Use the above.
6616         (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
6617         Correct mode used for CR2 in save/restore_world patterns.
6618         Don't emit instructions for eh_return frame unwind reg info.
6620 2012-05-08  Jan Hubicka  <jh@suse.cz>
6622         * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
6623         with VALUE_EXPR.
6624         * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
6625         are removable.
6626         * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
6627         need to wrapup.
6628         (compile_file): Do not output variables.
6629         * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
6630         output it.
6631         * langhooks.c: Include timevar.h
6632         (write_global_declarations): Finalize compilation unit after wrapup;
6633         set timevars correctly.
6634         * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
6635         not to be added to varpool.
6636         * varpool.c (varpool_assemble_decl): Sanity check that we are called
6637         only on cases where it makes sense; skip constant pool and value expr
6638         vars.
6640 2012-05-08  David S. Miller  <davem@davemloft.net>
6642         * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
6643         * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
6644         * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
6646 2012-05-08  Richard Sandiford  <rdsandiford@googlemail.com>
6648         PR rtl-optimization/53278
6649         * lower-subreg.c (decompose_multiword_subregs): Remove left-over
6650         speed_p code from earlier patch.
6652 2012-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
6654         PR target/51244
6655         * config/sh/sh.md (*branch_true, *branch_false): New insns.
6657 2012-05-08  Teresa Johnson  <tejohnson@google.com>
6659         * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
6660         * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
6662 2012-05-08  Jan Hubicka  <jh@suse.cz>
6664         * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
6665         (cgraph_create_node_1): Rename to ...
6666         (cgraph_create_empty_node): ... this one; export.
6667         (cgraph_create_node): Update.
6668         (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
6669         (cgraph_create_edge_including_clones): Likewise.
6670         (cgraph_find_replacement_node): Likewise.
6671         (cgraph_clone_edge): Likewise.
6672         (cgraph_clone_node): Likewise.
6673         (clone_function_name): Likewise.
6674         (cgraph_create_virtual_clone): Likewise.
6675         (cgraph_remove_node_and_inline_clones): Likewise.
6676         (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
6677         * cgraph.h: Reorder declarations so they match file of origin.
6678         (cgraph_create_empty_node): Declare.
6679         * cgraphunit.c (update_call_expr): Move to cgraphclones.c
6680         (cgraph_copy_node_for_versioning): Likewise.
6681         (cgraph_function_versioning): Likewise.
6682         (cgraph_materialize_clone): Likewise.
6683         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
6684         (cgraph_materialize_all_clones): Likewise.
6685         * cgraphclones.c: New file.
6686         * Makefile.in: Update for cgraphclones.
6688 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
6690         PR target/53176
6691         * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
6692         (ix86_rtx_costs): Handle SET.
6694 2012-05-08  Michael Matz  <matz@suse.de>
6696         * basic-block.h (struct rtl_bb_info): Remove visited member and
6697         move head_ member to ...
6698         (struct basic_block_def.basic_block_il_dependent): ... the new
6699         member x, replacing but containing old member rtl.
6700         (enum bb_flags): New BB_VISITED flag.
6701         (BB_HEADER, BB_FOOTER): New macros.
6703         * jump.c (mark_all_labels): Adjust.
6704         * cfgcleanup.c (try_optimize_cfg): Adjust.
6705         * cfglayout.c (record_effective_endpoints): Adjust.
6706         (relink_block_chain): Ditto (and don't fiddle with visited).
6707         (fixup_reorder_chain): Adjust.
6708         (fixup_fallthru_exit_predecessor): Ditto.
6709         (cfg_layout_duplicate_bb): Ditto.
6710         * combine.c (update_cfg_for_uncondjump): Adjust.
6711         * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
6712         (bb_visited_trace): New accessor.
6713         (mark_bb_visited): Move in front.
6714         (rotate_loop): Use bb_visited_trace.
6715         (find_traces_1_round): Ditto.
6716         (emit_barrier_after): Ditto.
6717         (copy_bb): Ditto, and initialize visited on resize.
6718         (reorder_basic_blocks): Initize visited member.
6719         (duplicate_computed_gotos): Clear bb flags at start, use
6720         BB_VISITED flags.
6722         * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
6723         (rtl_verify_flow_info_1): Ditto.
6724         (cfg_layout_split_block): Ditto.
6725         (cfg_layout_delete_block): Ditto.
6726         (cfg_layout_merge_blocks): Ditto.
6727         (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
6729 2012-05-08  Hans-Peter Nilsson  <hp@axis.com>
6731         PR target/53272
6732         * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
6733         when a constant source operand matches an "I" constraint, the "no
6734         CC0 change" applies to a register-destination only, not a
6735         strict_low_part-destination.
6737 2012-05-08  Richard Guenther  <rguenther@suse.de>
6739         * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
6740         to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
6742 2012-05-08  Georg-Johann Lay  <avr@gjlay.de>
6744         * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
6746         * doc/avr-mmcu.texi: New auto-generated file.
6747         * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
6748         to document all valid -mmcu= arguments.
6750         * config/avr/avr.h (arch_info_s): New struct definition.
6751         * config/avr/avr-devices.c (avr_texinfo): New variable.
6752         * config/avr/gen-avr-mmcu-texi.c: New file.
6753         * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
6755 2012-05-08  Dehao Chen  <dehao@google.com>
6757         * predict.c (find_qualified_ssa_name): New.
6758         (find_ssa_name_in_expr): New.
6759         (find_ssa_name_in_assign_stmt): New.
6760         (is_comparison_with_loop_invariant_p): New.
6761         (is_bound_expr_similar): New.
6762         (predict_iv_comparison): New.
6763         (predict_loops): Add heuristic for loop-nested branches that compare an
6764         induction variable to a loop bound variable.
6765         * predict.def (PRED_LOOP_IV_COMPARE): New macro.
6767 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
6769         * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
6770         TARGET_BDVER2 defines where appropriate.
6772 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6774         * configure.ac (PLUGIN_LD): Rename into...
6775         (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
6776         * config.in: Regenerate.
6777         * configure: Likewise.
6778         * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
6780 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6782         * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
6783         computation using the precision of the index type.
6784         * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
6785         (fold_array_ctor_reference): Do index computations in the index type.
6787 2012-05-07  Georg-Johann Lay  <avr@gjlay.de>
6789         * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
6790         down to plus_constant.
6791         (expand_epilogue): Ditto.
6793 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6795         * postreload.c (reload_cse_regs): Make static.
6796         * reload.h (reload_cse_regs): Remove prototype.
6798 2012-05-07  Richard Henderson  <rth@redhat.com>
6800         * config/alpha/alpha.md (clear_cache): New pattern.
6802 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6804         PR middle-end/53245
6805         * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
6806         is folded to a type boundary value, verify that the resulting case
6807         label is still a care range.
6809 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
6811         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
6812         only for TARGET_GENERIC, when not optimizing for size.
6813         (*ffs<mode>_1): Ditto.
6815 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6817         * tree-cfg.c (verify_gimple_switch): Tighten checks.
6819 2012-05-07  Jakub Jelinek  <jakub@redhat.com>
6821         PR tree-optimization/53239
6822         * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
6823         of DECL_BY_REFERENCE RESULT_DECL to nonnull.
6825 2012-05-07  Richard Guenther  <rguenther@suse.de>
6827         PR tree-optimization/53195
6828         * tree-inline.c (setup_one_parameter): Properly add referenced
6829         vars from the parameters new known value.
6831 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6833         * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
6834         (sched_branch_type): Remove.
6835         (m68k_sched_md_init_global): Don't allocate it.
6836         (m68k_sched_md_finish_global): Don't free it.
6837         * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
6838         * config/m68k/m68k.md: Set the type of insns using
6839         m68k_sched_branch_type to bcc directly.
6841 2012-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6843         * config/sol2.c (solaris_override_options): New function.
6844         * config/sol2-protos.h (solaris_override_options): Declare.
6845         * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
6847 2012-05-07  Richard Guenther  <rguenther@suse.de>
6849         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
6850         whether we failed to compute data dependences.
6851         (loop_prefetch_arrays): Fail if we failed.
6853 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
6854             Paolo Bonzini  <bonzini@gnu.org>
6856         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
6857         Emit bsf when optimizing for size.
6858         (*ffs<mode>_1): Ditto.
6860 2012-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
6862         PR target/53250
6863         * config/sh/sh.c (sh_rtx_costs): Handle SET.
6865 2012-05-06  Uros Bizjak  <ubizjak@gmail.com>
6867         PR target/53227
6868         * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
6869         (bswapdi2): Split from bswap<mode>2.  Use nonnimediate_operand
6870         predicate for operand 1.  Force operand 1 to register for TARGET_BSWAP.
6871         (bswapsi2): Ditto.
6872         (*bswapdi2_doubleword): New insn pattern.
6873         (*bswap<mode>2): Rename from *bswap<mode>2_1.
6875 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
6877         * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
6878         (mips_set_reg_reg_cost): Likewise.
6879         (mips_rtx_costs): Handle SET.
6881 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
6883         * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
6884         (compute_costs): Likewise for the zero extension.  Use set_rtx_cost
6885         to compute the cost of moves.  Set the mode of the target register.
6887 2012-05-05  Richard Sandiford  <rdsandiford@googlemail.com>
6889         * rtl.h (plus_constant, plus_constant_mode): Merge into a single
6890         plus_constant function.
6891         * explow.c (plus_constant, plus_constant_mode): Likewise.  Assert
6892         that the mode is sensible.
6893         (use_anchored_address, round_push, allocate_dynamic_stack_space)
6894         (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
6895         plus_constant.
6897         * alias.c (canon_rtx): Likewise.
6898         (init_alias_analysis): Likewise.
6899         * builtins.c (expand_builtin_return_addr)
6900         (expand_builtin_setjmp_setup, expand_builtin_longjmp)
6901         (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
6902         (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
6903         (expand_builtin_stpcpy): Likewise.
6904         * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
6905         (compute_argument_addresses, internal_arg_pointer_based_exp)
6906         (expand_call, emit_library_call_value_1): Likewise.
6907         * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
6908         * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
6909         * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
6910         * cse.c (insert_const_anchor, find_reg_offset_for_const)
6911         (use_related_value, fold_rtx): Likewise.
6912         * cselib.c (cselib_subst_to_values): Likewise.
6913         * dse.c (record_store, check_mem_read_rtx): Likewise.
6914         * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
6915         * emit-rtl.c (adjust_address_1): Likewise.
6916         * except.c (sjlj_emit_function_enter)
6917         (expand_builtin_extract_return_addr)
6918         (expand_builtin_frob_return_addr): Likewise.
6919         * expmed.c (expand_divmod): Likewise.
6920         * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
6921         (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
6922         (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
6923         * function.c (assign_stack_local_1)
6924         (instantiate_virtual_regs_in_rtx): Likewise.
6925         * optabs.c (prepare_cmp_insn): Likewise.
6926         * recog.c (offsettable_address_addr_space_p): Likewise.
6927         * reload.c (find_reloads_address, form_sum)
6928         (find_reloads_subreg_address): Likewise.
6929         * reload1.c (init_reload, eliminate_regs_1)
6930         (eliminate_regs_in_insn): Likewise.
6931         * simplify-rtx.c (simplify_unary_operation_1)
6932         (simplify_binary_operation_1, simplify_plus_minus): Likewise.
6933         * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
6934         (vt_add_function_parameter): Likewise.
6936         * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
6937         * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
6938         * config/alpha/alpha.c (alpha_legitimize_address_1)
6939         (get_unaligned_address, alpha_expand_unaligned_load)
6940         (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
6941         (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
6942         (alpha_expand_builtin_establish_vms_condition_handler)
6943         (alpha_setup_incoming_varargs, emit_frame_store_1)
6944         (alpha_expand_prologue, alpha_expand_epilogue)
6945         (alpha_use_linkage): Likewise.
6946         * config/alpha/alpha.md: Likewise.
6948         * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
6949         (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
6950         (thumb_legitimize_address, arm_gen_load_multiple_1)
6951         (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
6952         (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
6953         (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
6954         (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
6955         (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
6956         (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
6957         (thumb_expand_movmemqi, arm_set_return_address)
6958         (thumb_set_return_address): Likewise.
6959         * config/arm/arm.md: Likewise.
6961         * config/avr/avr.c (avr_incoming_return_addr_rtx)
6962         (avr_prologue_setup_frame, expand_epilogue)
6963         (avr_const_address_lo16): Likewise.
6965         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
6966         * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
6967         (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
6968         (bfin_output_mi_thunk): Likewise.
6970         * config/c6x/c6x.c (c6x_initialize_trampoline)
6971         (c6x_output_mi_thunk): Likewise.
6973         * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
6974         * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
6976         * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
6977         (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
6978         (cris_emit_movem_store, cris_trampoline_init): Likewise.
6979         * config/cris/cris.md: Likewise.
6981         * config/darwin.c (machopic_indirect_data_reference)
6982         (machopic_legitimize_pic_address): Likewise.
6984         * config/epiphany/epiphany.c (epiphany_emit_save_restore)
6985         (epiphany_expand_prologue, epiphany_expand_epilogue)
6986         (epiphany_trampoline_init): Likewise.
6987         * config/epiphany/epiphany.md: Likewise.
6989         * config/fr30/fr30.c (fr30_move_double): Likewise.
6991         * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
6992         (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
6993         (frv_index_memory, unspec_got_name, frv_find_base_term)
6994         (frv_output_dwarf_dtprel): Likewise.
6996         * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
6997         (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
6999         * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
7000         * config/i386/i386.c (setup_incoming_varargs_64)
7001         (setup_incoming_varargs_ms_64, choose_baseaddr)
7002         (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
7003         (ix86_emit_probe_stack_range, ix86_expand_prologue)
7004         (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
7005         (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
7006         (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
7007         (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
7008         (x86_output_mi_thunk): Likewise.
7009         * config/i386/i386.md: Likewise.
7011         * config/ia64/ia64.c (ia64_expand_load_address)
7012         (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
7013         (do_spill, ia64_trampoline_init): Likewise.
7015         * config/iq2000/iq2000.c (iq2000_va_start)
7016         (iq2000_emit_frame_related_store, iq2000_expand_prologue)
7017         (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
7018         (iq2000_print_operand, iq2000_legitimize_address): Likewise.
7020         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7022         * config/m32c/m32c.c (m32c_return_addr_rtx)
7023         (m32c_expand_insv): Likewise.
7025         * config/m32r/m32r.c (m32r_setup_incoming_varargs)
7026         (m32r_legitimize_pic_address, m32r_print_operand)
7027         (m32r_print_operand_address): Likewise.
7029         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
7030         * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
7031         (EH_RETURN_HANDLER_RTX): Likewise.
7032         * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
7033         (m68k_expand_epilogue, legitimize_pic_address)
7034         (m68k_output_mi_thunk): Likewise.
7035         * config/m68k/m68k.md: Likewise.
7037         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7038         (mcore_expand_epilog): Likewise.
7039         * config/mcore/mcore.md: Likewise.
7041         * config/mep/mep.c (mep_allocate_initial_value)
7042         (mep_expand_prologue, mep_expand_epilogue): Likewise.
7044         * config/microblaze/microblaze.c (double_memory_operand)
7045         (microblaze_block_move_loop): Likewise.
7047         * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
7048         (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
7049         (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
7050         (mips_expand_prologue, mips_epilogue_set_cfa)
7051         (mips_expand_epilogue): Likewise.
7052         * config/mips/mips.md: Likewise.
7054         * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
7055         (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
7057         * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
7058         (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
7060         * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
7061         (EH_RETURN_HANDLER_RTX): Likewise.
7062         * config/moxie/moxie.c (moxie_static_chain): Likewise.
7064         * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
7065         (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
7066         (pa_return_addr_rtx, hppa_builtin_saveregs)
7067         (pa_trampoline_init): Likewise.
7068         * config/pa/pa.md: Likewise.
7070         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
7072         * config/picochip/picochip.c (picochip_static_chain): Likewise.
7074         * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
7075         * config/rs6000/rs6000.c (rs6000_legitimize_address)
7076         (setup_incoming_varargs, print_operand, rs6000_return_addr)
7077         (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
7078         (rs6000_emit_epilogue)
7079         (rs6000_machopic_legitimize_pic_address): Likewise.
7081         * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7083         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
7084         (DYNAMIC_CHAIN_ADDRESS): Likewise.
7085         * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
7086         (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
7087         (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
7088         (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
7089         (s390_emit_epilogue, s390_function_profiler): Likewise.
7090         * config/s390/s390.md: Likewise.
7092         * config/score/score.c (score_add_offset, score_prologue): Likewise.
7094         * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
7095         (sh_output_mi_thunk): Likewise.
7096         * config/sh/sh.md: Likewise.
7098         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
7099         (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
7100         * config/sparc/sparc.c (sparc_legitimize_pic_address)
7101         (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
7102         (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
7103         (emit_and_preserve): Likewise.
7104         * config/sparc/sparc.md: Likewise.
7106         * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7107         * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
7108         (spu_setup_incoming_varargs, ea_load_store_inline)
7109         (spu_expand_load): Likewise.
7111         * config/stormy16/stormy16.c (xstormy16_expand_prologue)
7112         (combine_bnp): Likewise.
7114         * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7115         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
7116         (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
7118         * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7119         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
7120         (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
7122         * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
7123         * config/v850/v850.md: Likewise.
7125         * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
7126         (EH_RETURN_HANDLER_RTX): Likewise.
7127         * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
7128         * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
7129         (print_operand_address, vax_trampoline_init): Likewise.
7131         * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
7132         (xtensa_function_value_regno_p): Likewise.
7134 2012-05-04  Andrew Pinski  <apinski@cavium.com>
7136         * expr.c (get_def_for_expr_class): New function.
7137         (convert_tree_comp_to_rtx): New function.
7138         (expand_cond_expr_using_cmove): New function.
7139         (expand_expr_real_2 <case COND_EXPR>): Call
7140         expand_cond_expr_using_cmove first and return if it succeeds.
7141         Remove the check for HAVE_conditional_move since we should have
7142         already converted it to a conditional move.
7143         * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
7144         modes of DImode for 32bits and TImode.
7146 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
7148         PR other/29442
7149         * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
7150         (print_md_ptr_loc, print_c_condition): Use them.
7151         * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
7152         * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
7153         attr_file, dfa_file, latency_file): New global variables.
7154         (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
7155         write_upcase, write_indent, write_length_unit_log, write_test_expr,
7156         write_attr_get, write_insn_cases, write_eligible_delay,
7157         write_const_num_delay_slots): Accept FILE pointer and toss it around.
7158         Update all callers.
7159         (write_header, open_outfile, handle_arg): New funcions.
7160         (make_automaton_attrs): Write prototypes as extern to the output
7161         files.
7162         (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
7163         names from the command line.  Open the output files and write out
7164         internal functions for DFA functions to dfa_file_name, insn latency
7165         functions to latency_file_name, and everything else to attr_file.
7166         * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
7167         (BACKEND): Build libbackend first.
7168         (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
7169         (.PRECIOUS): Likewise.
7170         (insn-dfatab.o): New rule.
7171         (insn-latencytab.o): New rule.
7172         (simple_rtl_generated_c): Do not include insn-attrtab.c.
7173         (s-attrtab): New rule.
7175 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
7177         * rtl.def (ATTR_FLAG): Remove probability indicating flags.
7178         * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
7179         ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
7180         * reorg.c (get_jump_flags): Do not set the removed flags.
7182         * doc/md.texi (attr_flag): Update for abovementioned changes.
7184 2012-05-04  Uros Bizjak  <ubizjak@gmail.com>
7186         PR target/53228
7187         * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
7188         (TARGET_CMOV): Rename from TARGET_CMOVE.
7189         (TARGET_CMOVE): New define.
7190         * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
7191         Do not set TARGET_CMOVE here.
7193 2012-05-04  Dodji Seketeli  <dodji@redhat.com>
7195         Enable -Wunused-local-typedefs when -Wall or -Wunused is on
7196         * opts.c (finish_options): Activate -Wunused-local-typedefs if
7197         -Wunused is activated.
7198         * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
7200 2012-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7202         * config/s390/s390.md (*movmem_short, *clrmem_short)
7203         (*cmpmem_short): Move the mode check from the insn condition to
7204         the match_scratch.
7206 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
7208         PR tree-optimization/52633
7209         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
7210         vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
7211         (vect_recog_over_widening_pattern): Remove handling of code that was
7212         already detected as over-widening pattern.  Remove special handling
7213         of "unsigned" cases.  Instead, support general case of conversion
7214         of the shift result to another type.
7216 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
7218         * tree-vect-patterns.c (vect_single_imm_use): New function.
7219         (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
7220         (vect_recog_over_widening_pattern): Likewise.
7221         (vect_recog_widen_shift_pattern): Likewise.
7223 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
7225         * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
7226         (vect_handle_widen_op_by_const): Use it instead of open-coding test.
7227         (vect_recog_widen_mult_pattern): Likewise.
7228         (vect_operation_fits_smaller_type): Likewise.
7229         (vect_recog_over_widening_pattern): Likewise.
7230         (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
7232 2012-05-04  Richard Guenther  <rguenther@suse.de>
7234         PR lto/50602
7235         * lto-wrapper.c (merge_and_complain): Complain about mismatches
7236         of -freg-struct-return and -fpcc-struct-return.
7237         (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
7238         from the input file options and ignore those from the link
7239         command line.
7241 2012-05-04  Richard Guenther  <rguenther@suse.de>
7243         PR tree-optimization/53168
7244         * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
7245         memory reads when the result is a constant we can pun.
7247 2012-05-04  Richard Guenther  <rguenther@suse.de>
7249         * common.opt (flto-report): Do not mark as Optimization.
7251 2012-05-04  Eric Botcazou  <ebotcazou@adacore.com>
7253         PR target/48496
7254         * recog.c (constrain_operands): If extra constraints are present, also
7255         accept pseudo-registers with equivalent memory locations during reload.
7257 2012-05-04  Olivier Hainque  <hainque@adacore.com>
7259         * collect2.c (may_unlink_output_file): New global.
7260         (maybe_unlink): Honor it.
7261         * collect2.h: Add extern for it.
7262         * tlink.c (do_tlink): Set it to true if the link succeeded.
7264 2012-05-04  Olivier Hainque  <hainque@adacore.com>
7266         * gcc.c (eval_spec_function): Finalize/restore the current string
7267         obstack state as part of the context push/pop operations.
7269 2012-05-04  Bin Cheng  <bin.cheng@arm.com>
7271         PR rtl-optimization/52804
7272         * reload1.c (reload_reg_reaches_end_p): Check whether successor
7273         reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
7274         of current one with type RELOAD_FOR_INPADDR_ADDRESS.
7275         Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
7276         RELOAD_FOR_OUTADDR_ADDRESS.
7278 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7280         PR c++/24985
7281         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
7282         for macro expansion.
7284 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7286         * flags.h (flag_permissive): Do not declare.
7287         * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
7288         option specially.
7289         * toplev.c (flag_permissive): Do not define.
7290         * c-tree.h (system_header_p): Delete unused.
7292 2012-05-03  David S. Miller  <davem@davemloft.net>
7294         PR target/52684
7295         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
7296         MEM directly into a libcall, mark it's MEM_EXPR as addressable.
7297         (sparc_emit_float_lib_cmp): Likewise.
7299 2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
7301         PR target/53199
7302         * config/rs6000/rs6000.md (bswapdi splitters): If
7303         -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
7304         default) is used, generate an alternate sequence that does not
7305         depend on using indexed addressing.
7307 2012-05-03  Jason Merrill  <jason@redhat.com>
7309         * gengtype.c (write_types): Fix warning message.
7310         (write_local): Likewise.
7312 2012-05-02  Jason Merrill  <jason@redhat.com>
7314         * dwarf2out.c (struct external_ref, build_local_stub): New.
7315         (hash_external_ref, external_ref_eq, lookup_external_ref): New.
7316         (optimize_external_refs, optimize_external_refs_1): New.
7317         (change_AT_die_ref): New.
7318         (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
7319         (build_abbrev_table): Take the external refs hashtable.
7320         (output_comp_unit): Get it from optimize_external_refs and pass it in.
7322 2012-05-03  Jan Hubicka  <jh@suse.cz>
7324         PR middle-end/53093
7325         * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
7327 2012-05-03  Jan Hubicka  <jh@suse.cz>
7329         PR middle-end/53106
7330         * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
7332 2012-05-03  Jason Merrill  <jason@redhat.com>
7334         * dwarf2out.c (die_struct): Add comdat_type_p flag.  Use it instead of
7335         use_debug_types to discriminate the die_id union.
7336         (print_die, assign_symbol_names, copy_decls_walk): Likewise.
7337         (build_abbrev_table, output_die): Likewise.
7338         (prune_unused_types_walk_attribs): Likewise.
7339         (generate_type_signature, copy_declaration_context): Set it.
7340         (remove_child_or_replace_with_skeleton): Set it.
7341         (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
7342         check use_debug_types.
7343         (dwarf2out_finish): Do break_out_includes after .debug_types.
7345 2012-05-03  Jason Merrill  <jason@redhat.com>
7347         * dwarf2out.c (modified_type_die): Use scope_die_for.
7348         (gen_type_die_with_usage, dwarf2out_finish): Likewise.
7349         (uses_local_type_r, uses_local_type): New.
7350         (scope_die_for): Keep a type that uses a local type in local scope.
7351         Use get_context_die for namespace and type scope.
7353 2012-05-03  Jason Merrill  <jason@redhat.com>
7355         * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
7356         pc thunk.
7357         * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
7358         (dwarf2out_finish): Likewise.
7360 2012-05-03  Martin Jambor  <mjambor@suse.cz>
7362         * builtins.c (get_object_alignment_1): Return whether we can determine
7363         the alignment or conservatively assume byte alignment.  Return the
7364         alignment by reference.  Use get_pointer_alignment_1 for dereference
7365         alignment.
7366         (get_pointer_alignment_1): Return whether we can determine the
7367         alignment or conservatively assume byte alignment.  Return the
7368         alignment by reference.  Use get_ptr_info_alignment to get SSA name
7369         alignment.
7370         (get_object_alignment): Update call to get_object_alignment_1.
7371         (get_object_or_type_alignment): Likewise, fall back to type alignment
7372         only when it returned false.
7373         (get_pointer_alignment): Update call to get_pointer_alignment_1.
7374         * fold-const.c (get_pointer_modulus_and_residue): Update call to
7375         get_object_alignment_1.
7376         * ipa-prop.c (ipa_modify_call_arguments): Update call to
7377         get_pointer_alignment_1.
7378         * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
7379         of MEM_REF or TARGET_MEM_REF only when it returns false.
7380         * tree-ssa-ccp.c (get_value_from_alignment): Update call to
7381         get_object_alignment_1.
7382         (ccp_finalize): Use set_ptr_info_alignment.
7383         * tree.h (get_object_alignment_1): Update declaration.
7384         (get_pointer_alignment_1): Likewise.
7385         * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
7386         (dump_gimple_stmt): Likewise.
7387         * tree-flow.h (ptr_info_def): Updated comments of fields align and
7388         misalign.
7389         (get_ptr_info_alignment): Declared.
7390         (mark_ptr_info_alignment_unknown): Likewise.
7391         (set_ptr_info_alignment): Likewise.
7392         (adjust_ptr_info_misalignment): Likewise.
7393         * tree-ssa-address.c (copy_ref_info): Use new access functions to get
7394         and set alignment of SSA names.
7395         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
7396         mark_ptr_info_alignment_unknown.
7397         * tree-ssanames.c (get_ptr_info_alignment): New function.
7398         (mark_ptr_info_alignment_unknown): Likewise.
7399         (set_ptr_info_alignment): Likewise.
7400         (adjust_ptr_info_misalignment): Likewise.
7401         (get_ptr_info): Call mark_ptr_info_alignment_unknown.
7402         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7403         Likewise.
7404         (bump_vector_ptr): Likewise.
7405         * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
7406         (vectorizable_store): Likewise.
7407         (vectorizable_load): Likewise.
7409 2012-05-03  Michael Matz  <matz@suse.de>
7411         * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
7412         in front of basic_block_def.
7413         (struct basic_block_def): Make il.gimple the full struct, not a
7414         pointer.
7415         (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
7417         * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
7418         * gimple-iterator.c (gimple_stmt_iterator): Don't special case
7419         NULL il.gimple, which can't happen anymore.
7420         * gimple.h (bb_seq): il.gimple can't be NULL.
7421         (bb_seq_add): Ditto.
7422         (set_bb_seq): Adjust.
7423         (gsi_start_bb, gsi_last_bb): Tidy.
7424         * lto-streamer-in.c (make_new_block): Don't zero members that
7425         are zeroed already, don't allocate a gimple_bb_info.
7426         * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
7427         (remove_bb): Clear all il.gimple members.
7428         (gimple_verify_flow_info): Adjust for flat il.gimple.
7429         * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
7431         * coretypes.h (const_gimple_seq): Remove typedef.
7432         * gimple.h (gimple_seq_first): Take gimple_seq.
7433         (gimple_seq_first_stmt): Ditto.
7434         (gimple_seq_last): Ditto.
7435         (gimple_seq_last_stmt): Ditto.
7436         (gimple_seq_empty_p): Ditto.
7438 2012-05-03  Richard Guenther  <rguenther@suse.de>
7440         * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
7441         operations.
7442         (prune_clobbered_mems): Do it here.  Do not uselessly sort expressions.
7443         (compute_avail): Do not add possibly trapping operations to
7444         EXP_GEN if they might not be executed in the block.
7446 2012-05-03  Uros Bizjak  <ubizjak@gmail.com>
7448         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
7450 2012-05-03  Steven Bosscher  <steven@gcc.gnu.org>
7452         * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
7453         information as early as possible.  Update dominance info instead of
7454         discarding it.
7456 2012-05-03  Richard Guenther  <rguenther@suse.de>
7458         * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
7459         (union_contains_value): Remove.
7460         (vro_valid_in_sets): Likewise.
7461         (op_valid_in_sets): New function.
7462         (valid_in_sets): Use op_valid_in_sets.
7463         (insert_into_preds_of_block): Move dumping ...
7464         (do_regular_insertion): ... here.
7465         (do_partial_partial_insertion): ... and here.  Dump that
7466         we've found a partial partial redundancy.
7467         (insert): Dump the current insert iteration.
7469 2012-05-03  Jakub Jelinek  <jakub@redhat.com>
7471         PR plugins/53126
7472         * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
7473         append program name to it and pass that as first argument
7474         to make_relative_prefix.  Always pass standard_libexec_prefix
7475         as last argument to make_relative_prefix.  If
7476         make_relative_prefix returns NULL, fall back to
7477         standard_libexec_prefix.
7479         PR debug/53174
7480         * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
7481         removed.
7483         PR target/53187
7484         * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
7485         mode, return that mode.
7487         PR target/53194
7488         * config/i386/i386-c.c (ix86_target_macros_internal): Don't
7489         define __ATOMIC_HLE_* macros here.
7490         (ix86_target_macros): But here, using cpp_define_formatted.
7492 2012-05-03  Richard Guenther  <rguenther@suse.de>
7494         PR tree-optimization/53144
7495         * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
7496         Rename to ...
7497         (vn_reference_lookup_or_insert_for_pieces): ... this.  Properly deal
7498         with SSA name values.
7499         (vn_reference_lookup_3): Adjust callers.
7501 2012-05-03  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
7503         * config/i386/driver-i386.c (host_detect_local_cpu): Reset
7504         has_fma4 for AMD processors with both fma3 and fma4 support.
7506 2012-05-03  Kirill Yukhin  <kirill.yukhin@intel.com>
7508         PR target/53201
7509         * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
7510         "-mno-hle".
7512 2012-05-03  Michael Matz  <matz@suse.de>
7514         PR bootstrap/53197
7515         * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
7516         (dse_enter_block): Properly iterate the whole sequence even
7517         if the last statement was removed.
7519 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
7521         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
7522         unset flag_jump_tables.
7523         * stmt.c (expand_case): Remove special flag_pic case conditional
7524         on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
7526 2012-05-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
7528         * common/config/s390/s390-common.c (s390_option_optimization_table):
7529         Enable -fsched-pressure using -fsched-pressure-algorithm=model by
7530         default when optimizing.
7532 2012-05-02  Martin Jambor  <mjambor@suse.cz>
7534         PR lto/52605
7535         * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
7536         of a variable when the contect is a function.
7538 2012-05-02  Michael Matz  <matz@suse.de>
7540         * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
7541         * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
7542         (const_gimple_seq_node): Remove.
7543         (gimple_seq_node): Typedef as gimple.
7544         (struct gimple_statement_base): Add next and prev members,
7545         adjust all WORD markers in using structs.
7546         (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
7547         (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
7548         gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
7549         gimple are the same.
7550         (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
7551         gimple_seq, adjust.
7552         (gimple_init_singleton): New function.
7553         (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
7554         (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
7555         (gsi_stmt): Adjust.
7556         (gsi_stmt_ptr): Remove.
7557         (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
7559         * gimple-iterator.c (update_bb_for_stmts): Take last parameter
7560         again, adjust for above changes.
7561         (update_call_edge_frequencies): Adjust for above changes.
7562         (gsi_insert_seq_nodes_before): Rewrite for new data structure.
7563         (gsi_insert_seq_nodes_after): Ditto.
7564         (gsi_split_seq_after): Ditto.
7565         (gsi_set_stmt): Ditto.
7566         (gsi_split_seq_before): Ditto.
7567         (gsi_remove): Ditto.
7568         (gsi_insert_seq_before_without_update): Don't free sequence.
7569         (gsi_insert_seq_after_without_update): Ditto.
7570         (gsi_replace): Assert some more invariants.
7571         (gsi_insert_before_without_update, gsi_insert_after_without_update):
7572         Tidy.
7573         (gsi_for_stmt): Don't search for stmt.
7574         (gsi_insert_on_edge_immediate): Tidy.
7576         * gimple.c (gimple_alloc_k): Remove "sequences".
7577         (gimple_seq_cache): Remove.
7578         (gimple_alloc_stat): Make stmt a singleton sequence.
7579         (gimple_seq_alloc, gimple_seq_free): Remove.
7580         (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
7581         (gimple_copy): Ditto.
7582         * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
7583         create iterator from correct sequence.
7584         * tree-phinodes.c (make_phi_node): Make stmt a singleton.
7586 2012-05-02  Michael Matz  <matz@suse.de>
7588         * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
7589         gimple_seq.
7590         (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
7591         sequence, lazily allocate it.
7592         (bb_seq_addr): New function.
7593         (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
7594         (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
7595         (gsi_none): New function.
7596         (gsi_start_bb): Adjust.
7597         (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
7598         (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
7599         (gsi_last_bb): Adjust.
7600         (gsi_seq): Adjust.
7601         * tree-flow-inline.h (phi_nodes_ptr): New function.
7603         * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
7604         datastructure and interface change.
7605         (gsi_insert_seq_before_without_update): Ditto.
7606         (gsi_insert_seq_nodes_after): Ditto.
7607         (gsi_insert_seq_after_without_update): Ditto.
7608         (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
7609         (gsi_split_seq_before): Ditto.
7610         (gsi_start_phis): Adjust.
7611         * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
7612         (vect_transform_loop): Ditto.
7613         * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
7614         gimple_seq_copy): Don't use gimple_seq_alloc.
7615         * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
7616         (gimplify_seq_add_seq): Ditto.
7617         * lto-streamer-in.c (make_new_block): Ditto.
7618         * tree-cfg.c (create_bb): Ditto.
7619         * tree-sra.c (initialize_parameter_reductions): Ditto.
7621 2012-05-02  Michael Matz  <matz@suse.de>
7623         * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
7624         gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
7625         gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
7626         set_bb_seq): Move down to after gimple_statement_d definition.
7628 2012-05-02  Michael Matz  <matz@suse.de>
7630         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
7631         gsi_replace_with_seq, instead of inserting itself.
7632         * gimple-iterator.c (gsi_replace_with_seq): New function.
7633         * tree-ssa-forwprop.c (forward_propagate_comparison): Take
7634         iterator instead of statement, advance it.
7635         (ssa_forward_propagate_and_combine): Adjust call to above.
7637 2012-05-02  Michael Matz  <matz@suse.de>
7639         * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
7640         gimple_seq_alloc.
7641         * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
7642         * tree-nested.c (walk_gimple_omp_for): Ditto.
7643         * trans-mem.c (lower_transaction): Ditto.
7644         * tree-eh.c (do_return_redirection): Ditto.
7645         (do_goto_redirection): Ditto.
7646         (lower_try_finally_switch): Ditto.
7647         * gimplify.c (gimplify_stmt): Ditto.
7648         (gimplify_scan_omp_clauses): Ditto.
7649         (gimplify_omp_for): Ditto.
7650         (gimplify_function_tree): Ditto.
7651         * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
7652         * tree-mudflap.c (mf_decl_cache_locals): Ditto.
7653         (mf_build_check_statement_for): Ditto.
7654         (mx_register_decls): Ditto.
7655         * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
7656         and don't use itertors to append.
7657         (insert_stmts): Ditto.
7658         (insert_out_of_ssa_copy): Ditto.
7659         (insert_out_of_ssa_copy_on_edge): Ditto.
7661 2012-05-02  Michael Matz  <matz@suse.de>
7663         * gimple.h (gimple_bind_body_ptr): New function.
7664         (gimple_bind_body): Use it.
7665         (gimple_catch_handler): Use gimple_catch_handler_ptr.
7666         (gimple_eh_filter_failure_ptr): New function.
7667         (gimple_eh_filter_failure): Use it.
7668         (gimple_eh_else_n_body_ptr): New function.
7669         (gimple_eh_else_n_body): Use it.
7670         (gimple_eh_else_e_body_ptr): New function.
7671         (gimple_eh_else_e_body): Use it.
7672         (gimple_try_eval_ptr): New function.
7673         (gimple_try_eval): Use it.
7674         (gimple_try_cleanup_ptr): New function.
7675         (gimple_try_cleanup): Use it.
7676         (gimple_wce_cleanup_ptr): New function.
7677         (gimple_wce_cleanup): Use it.
7678         (gimple_omp_body_ptr): New function.
7679         (gimple_omp_body): Use it.
7680         (gimple_omp_for_pre_body_ptr): New function.
7681         (gimple_omp_for_pre_body): Use it.
7682         (gimple_transaction_body_ptr): New function.
7683         (gimple_transaction_body): Use it.
7684         (gsi_split_seq_before): Adjust to return nothing and take pointer
7685         to sequence.
7686         (gsi_set_stmt): Declare.
7687         (gsi_replace_with_seq): Declare.
7688         (walk_gimple_seq_mod): Declare.
7689         * function.h (struct function <gimple_body>): Use typedef gimple_seq.
7691         * gimple-iterator.c (gsi_set_stmt): New function.
7692         (gsi_split_seq_before): Return new sequence via pointer argument.
7693         (gsi_replace): Use gsi_set_stmt.
7695         * tree-ssa-loop-im.c (move_computations_stmt): First remove
7696         then insert stmt.
7697         * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
7698         * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
7699         return new stmt.
7700         (reserve_phi_args_for_new_edge): Change call to above,
7701         use gsi_set_stmt.
7703         * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
7704         (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
7705         iterators.  Adjust call to lower_omp.
7706         (lower_lastprivate_clauses): Adjust call to lower_omp.
7707         (lower_reduction_clauses): Ditto.
7708         (expand_omp_taskreg): Nullify non-cfg body of child_fn.
7709         (lower_omp_sections): Don't explicitely count sequence length,
7710         nullify lowered bodies earlier, ensure stmts are part of only
7711         one sequence, adjust call to lower_omp.
7712         (lower_omp_single): Ensure stmts are part of only one sequence,
7713         adjust call to lower_omp.
7714         (lower_omp_master): Ditto.
7715         (lower_omp_ordered): Ditto.
7716         (lower_omp_critical): Ditto.
7717         (lower_omp_for): Ditto.
7718         (lower_omp_taskreg): Ditto, tidy.
7719         (lower_omp_1): Adjust calls to lower_omp.
7720         (execute_lower_omp): Ditto.
7721         (lower_omp): Adjust to take pointer to sequence.
7722         (diagnose_sb_2): Use walk_gimple_seq_mod.
7723         (diagnose_omp_structured_block_errors): Ditto and set possibly
7724         changed function body.
7725         * gimple-low.c (lower_function_body): Set function body after
7726         it stabilizes.
7727         (lower_sequence): Adjust to take pointer to sequence.
7728         (lower_omp_directive): Ensure stmt isn't put twice into the
7729         sequence, adjust call to lower_sequence.
7730         (lower_stmt): Adjust calls to lower_sequence.
7731         (lower_gimple_bind): Ditto.
7732         (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
7733         * tree-nested.c (walk_body): Take pointer to sequence, use
7734         walk_gimple_seq_mod.
7735         (walk_function): Adjust call to walk_body, set possibly changed body.
7736         (walk_gimple_omp_for): Adjust calls to walk_body.
7737         (convert_nonlocal_omp_clauses): Ditto.
7738         (convert_nonlocal_reference_stmt): Ditto.
7739         (convert_local_omp_clauses): Ditto.
7740         (convert_local_reference_stmt): Ditto.
7741         (convert_tramp_reference_stmt): Ditto.
7742         (convert_gimple_call): Ditto.
7743         (convert_nl_goto_reference): Use local iterator copy.
7744         * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
7745         but taking pointer to sequence, ensure gsi_start is called with
7746         callers lvalue.
7747         (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
7748         asserting that the sequence head didn't change.
7749         (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
7750         walk_gimple_seq_mod.
7751         * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
7752         (execute_lower_tm): Ditto, and set possibly changed body.
7753         * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
7754         call gsi_start with that lvalue.
7755         (replace_goto_queue_stmt_list): Ditto.
7756         (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
7757         (replace_goto_queue): Ditto.
7758         (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
7759         (lower_try_finally_onedest): Ditto.
7760         (lower_try_finally_copy): Ditto.
7761         (lower_try_finally_switch): Ditto.
7762         (lower_try_finally): Ditto.
7763         (lower_eh_filter): Ditto.
7764         (lower_eh_must_not_throw): Ditto.
7765         (lower_cleanup): Ditto.
7766         (lower_eh_constructs_2): Ditto.
7767         (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
7768         (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
7769         set possibly changed body.
7770         (optimize_double_finally): Call gsi_start with lvalue.
7772         * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
7773         (gimple_split_block): Ditto.
7774         (gimple_merge_blocks): Use gsi_start_phis.
7775         (move_stmt_r): Use walk_gimple_seq_mod.
7776         * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
7777         * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
7778         (rebuild_cgraph_edges): Ditto.
7779         (cgraph_rebuild_references): Ditto.
7780         * ipa-prop.c (ipa_analyze_params_uses): Ditto.
7781         * tree-inline.c (copy_phis_for_bb): Ditto.
7782         * tree-ssa-dce.c: Ditto.
7784         * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
7786 2012-05-02  Kirill Yukhin  <kirill.yukhin@intel.com>
7787             Andi Kleen <ak@linux.intel.com>
7789         * coretypes.h (MEMMODEL_MASK): New.
7790         * builtins.c (get_memmodel): Add val. Call target.memmodel_check
7791         and return new variable.
7792         (expand_builtin_atomic_exchange):  Mask memmodel values.
7793         (expand_builtin_atomic_compare_exchange): Ditto.
7794         (expand_builtin_atomic_load): Ditto.
7795         (expand_builtin_atomic_store): Ditto.
7796         (expand_builtin_atomic_clear): Ditto.
7797         * doc/extend.texi: Mention port-dependent memory model flags.
7798         * config/i386/cpuid.h (bit_HLE): New.
7799         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7800         HLE support.
7801         * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
7802         * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
7803         (ix86_target_string)<-mhle>: New.
7804         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
7805         * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
7806         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
7807         (ix86_option_override_internal) <PTA_HLE>: New switch, set it
7808         enabled for generic, generic64 and core-avx2.
7809         (ix86_print_operand): Generate HLE lock prefixes.
7810         (ix86_memmodel_check): New.
7811         (TARGET_MEMMODEL_CHECK): Ditto.
7812         * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
7813         (IX86_HLE_ACQUIRE): Ditto.
7814         (IX86_HLE_RELEASE): Ditto.
7815         * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
7816         * config/i386/i386.opt (mhle): Ditto.
7817         * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
7818         success model to instruction emitter.
7819         (atomic_fetch_add<mode>): Ditto.
7820         (atomic_exchange<mode>): Ditto.
7821         (atomic_add<mode>): Ditto.
7822         (atomic_sub<mode>): Ditto.
7823         (atomic_<code><mode>): Ditto.
7824         (*atomic_compare_and_swap_doubledi_pic): Ditto.
7825         (atomic_compare_and_swap_single<mode>): Define and use argument
7826         for success model.
7827         (atomic_compare_and_swap_double<mode>): Ditto.
7828         * configure.ac: Check if assembler support HLE prefixes.
7829         * configure: Regenerate.
7830         * config.in: Ditto.
7832 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
7834         PR middle-end/53153
7835         * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
7836         split out from ...
7837         (gimplify_switch_expr): ... here.
7838         * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
7839         * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
7840         to clean up case labels with values outside the index type range.
7841         (simplify_gimple_switch): Call it if something changed.
7842         Remove strange and unnecessary assert.
7844 2012-05-02  Richard Guenther  <rguenther@suse.de>
7846         * fold-const.c (div_if_zero_remainder): sizetypes no longer
7847         sign-extend.
7848         (int_const_binop_1): New worker for int_const_binop with
7849         overflowable parameter.  Pass it through to force_fit_type_double.
7850         (int_const_binop): Wrap around int_const_binop_1 with overflowable
7851         equal to one.
7852         (size_binop_loc): Call int_const_binop_1 with overflowable equal
7853         to minus one, forcing overflow detection for even unsigned types.
7854         (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
7855         (fold_binary_loc): Call try_move_mult_to_index with signed offset.
7856         * stor-layout.c (initialize_sizetypes): sizetypes no longer
7857         sign-extend.
7858         (layout_type): For zero-sized arrays ignore overflow on the
7859         size calculations.
7860         * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
7861         (bit_value_binop_1): Likewise.
7862         * tree.c (double_int_to_tree): Likewise.
7863         (double_int_fits_to_tree_p): Likewise.
7864         (force_fit_type_double): Likewise.
7865         (host_integerp): Likewise.
7866         (int_fits_type_p): Likewise.
7867         * varasm.c (output_constructor_regular_field): Sign-extend the
7868         field-offset to cater for negative offsets produced by the Ada
7869         frontend.
7870         * omp-low.c (extract_omp_for_data): Convert the loop step to
7871         signed for pointer adjustments.
7873 2012-05-02  Richard Guenther  <rguenther@suse.de>
7875         * tree.c (valid_constant_size_p): New function.
7876         * tree.h (valid_constant_size_p): Declare.
7877         * cfgexpand.c (expand_one_var): Adjust check for too large
7878         variables by using valid_constant_size_p.
7879         * varasm.c (assemble_variable): Likewise.
7881         * c-decl.c (grokdeclarator): Properly check for sizes that
7882         cover more than half of the address-space.
7884 2012-05-02  Jakub Jelinek  <jakub@redhat.com>
7886         PR tree-optimization/53163
7887         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
7888         return value from compute_all_dependences.
7890         PR rtl-optimization/53160
7891         * ree.c (combine_reaching_defs): Handle the case where cand->insn
7892         has been modified by ree pass already.
7894 2012-05-01  Ian Lance Taylor  <iant@google.com>
7896         PR c/37303
7897         * c-decl.c (build_compound_literal): Make the decl readonly if it
7898         an array of a readonly type.
7899         * gimplify.c (gimplify_compound_literal_expr): Add fallback
7900         parameter.  Change all callers.  If the decl is not addressable
7901         and is not an l-value, make it readonly.
7903 2012-05-01  Bernd Schmidt  <bernds@codesourcery.com>
7905         * ira.c (allocated_reg_info_size): New static variable.
7906         (expand_reg_info): Manage it. Call
7907         setup_preferred_alternate_classes_for_new_pseudos.
7908         (ira): Don't do it here.  Remove local allocated_reg_info_size,
7909         set the global before calling find_moveable_pseudos.
7910         (find_moveable_pseudos): Call expand_reg_info rather than
7911         resize_reg_info.
7913 2012-05-01  Richard Henderson  <rth@redhat.com>
7915         * common.opt (fsync-libcalls): New.
7916         * doc/invoke.texi: Document it.
7917         * optabs.c (init_sync_libfuncs): Honor it.
7919 2012-05-01  Kenneth Zadeck  <zadeck@naturalbridge.com>
7920             Richard Sandiford  <r.sandiford@uk.ibm.com>
7922         PR rtl-optimization/52543
7923         * Makefile.in (lower-subreg.o, target-globals.o): Depend on
7924         lower-subreg.h.
7925         * lower-subreg.h: New file.
7926         * target-globals.h (this_target_lower_subreg): Declare.
7927         (target_globals): Add lower_subreg;
7928         (restore_target_globals): Restore this_target_lower_subreg.
7929         * target-globals.c: Include it.
7930         (default_target_globals): Add default_target_lower_subreg.
7931         (save_target_globals): Initialize target_lower_subreg.
7932         * rtl.h (init_lower_subreg): Added declaration.
7933         * toplev.c (backend_init_target): Call initializer for lower-subreg
7934         pass.
7935         * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
7936         (default_target_lower_subreg): New variable.
7937         (this_target_lower_subreg): Likewise.
7938         (twice_word_mode, choices): New macros.
7939         (shift_cost, compute_splitting_shift, compute_costs)
7940         (init_lower_subreg): New functions.
7941         (resolve_simple_move): Add speed_p argument.  Check choices.
7942         (find_pseudo_copy): Don't check the mode size here.
7943         (resolve_simple_move): Assert the mode size.
7944         (find_decomposable_shift_zext): Add speed_p argument and return
7945         a bool.  Check choices.
7946         (resolve_shift_zext): Add comment.
7947         (dump_shift_choices, dump_choices): New functions.
7948         (decompose_multiword_subregs): Dump list of profitable
7949         transformations.  Add code to skip non profitable transformations.
7950         Update calls to simple_move and find_decomposable_shift_zext.
7952 2012-05-01  Ian Bolton  <ian.bolton@arm.com>
7953             Sameera Deshpande  <sameera.deshpande@arm.com>
7954             Greta Yorsh  <greta.yorsh@arm.com>
7956         * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
7957         (thumb1_unexpanded_epilogue): ...this.
7958         * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
7959         (thumb1_unexpanded_epilogue): ...this.
7960         * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
7961         (thumb1_unexpanded_epilogue): ...this.
7963 2012-05-01  Richard Earnshaw  <rearnsha@arm.com>
7965         * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
7966         comparing enumeration values.  Update comments.
7968 2012-05-01  Alan Modra  <amodra@gmail.com>
7970         PR target/53038
7971         * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
7972         load_cr_save, add_crlr_cfa_restore): New functions.
7973         (rs6000_restore_saved_cr): Rename to..
7974         (restore_saved_cr): ..this.  Add cfa_restore notes for cr.
7975         (rs6000_emit_epilogue): Use new functions.  Adjust condition
7976         for emitting lr and cr cfa_restore.  Emit cfa_restores for fp
7977         regs when using out-of-line restore only when shrink wrapping.
7979 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
7981         PR middle-end/53136
7982         * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
7983         calls to cgraph_node_name in xstrdup.
7984         (ipa_make_edge_direct_to_target): Ditto.
7985         * cgraph.c (dump_cgraph_node): Ditto.
7986         * tree-sra.c (convert_callers_for_node): Ditto.
7987         * lto-symtab.c (lto_cgraph_replace_node): Ditto.
7988         * ipa-cp.c (perhaps_add_new_callers): Ditto.
7989         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
7990         (cgraph_materialize_all_clones): Ditto.
7991         * ipa-inline.c (report_inline_failed_reason): Ditto.
7992         (want_early_inline_function_p): Ditto.
7993         (edge_badness): Ditto.
7994         (update_edge_key): Ditto.
7995         (flatten_function): Ditto.
7996         (ipa_inline): Ditto.
7997         (inline_always_inline_functions): Ditto.
7998         (early_inline_small_functions): Ditto.
8000 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
8002         PR target/53141
8003         * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
8004         constraints 0 and 1.
8006 012-04-30  Jan Hubicka  <jh@suse.cz>
8008         * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
8009         (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
8010         (cgraph_add_to_same_comdat_group): Remove.
8011         (cgraph_add_asm_node): Move to cgraphunit.c.
8012         (cgraph_make_decl_local): Move to symtab.c
8013         (cgraph_make_node_local_1): Update.
8014         (cgraph_can_remove_if_no_direct_calls_and): Update.
8015         (used_from_object_file_p): Update.
8016         (resolution_used_from_other_file_p): Move to symtab.c
8017         (cgraph_used_from_object_file_p): move to symtab.c
8018         (verify_cgraph_node): Verify same comdat groups.
8019         * cgraph.h (cgraph_asm_node): Rename to ...
8020         (asm_node): ... this one.
8021         (cgraph_asm_nodes): Rename to ...
8022         (asm_nodes): ... this one.
8023         (symtab_add_to_same_comdat_group): New function.
8024         (symtab_dissolve_same_comdat_group_list): New function.
8025         (symtab_used_from_object_file_p): Declare.
8026         (symtab_make_decl_local): Declare.
8027         (cgraph_add_to_same_comdat_group): Remove.
8028         (cgraph_add_asm_node): Remove.
8029         (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
8030         Remove.
8031         (cgraph_finalize_compilation_unit): Rename to ...
8032         (finalize_compilation_unit): ... this one.
8033         (cgraph_optimize): Rename to ....
8034         (compile): ... this one.
8035         (add_asm_node): Declare.
8036         (fixup_same_cpp_alias_visibility): Declare.
8037         (cgraph_make_decl_local): Remove.
8038         (varpool_assemble_pending_decls): Rename to ...
8039         (varpool_output_variables): ... this one.
8040         (varpool_remove_unreferenced_decls): Remove.
8041         * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
8042         (preserve_function_body_p): Make static.
8043         * toplev.c (compile_file): Update comments; update.
8044         * cgraphunit.c: Update comments.
8045         (cgraph_expand_all_functions): Rename to ...
8046         (expand_all_functions): ... this one; update.
8047         (cgraph_mark_functions_to_output): Rename to ...
8048         (mark_functions_to_output): ... this one; cleanup.
8049         (cgraph_output_pending_asms): Remove prototype.
8050         (asm_nodes, asm_last_node): New static vars.
8051         (cgraph_process_new_functions): Update.
8052         (cgraph_reset_node): Cleanup; add comment.
8053         (cgraph_add_new_function): Update.
8054         (cgraph_output_pending_asms): Rename to ...
8055         (output_asm_statements): ... this one.
8056         (add_asm_node): New function.
8057         (fixup_same_cpp_alias_visibility): New function based on code
8058         in cgraph_analyze_function.
8059         (cgraph_analyze_function): Use it.
8060         (cgraph_order_sort): Update.
8061         (cgraph_output_in_order): Update.
8062         (cgraph_function_versioning): Update.
8063         (cgraph_optimize): Rename to ...
8064         (compile): ... this one; initialize streamer hooks here.
8065         (cgraph_finalize_compilation_unit): Rename to ...
8066         (finalize_compilation_unit): ... this one; do not initialize streamer
8067         hook here.
8068         * lto-streamer-out.c (lto_output_toplevel_asms): Update.
8069         * dwarf2out.c: Update ocmment.
8070         * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
8071         * method.c (use_thunk): Likewise.
8072         * semantics.c (maybe_add_lambda_conv_op): Likewise.
8073         * decl2.c (maybe_emit_vtables): Likewise.
8074         (cp_write_global_declarations): Use finalize_compilation_unit.
8075         * parser.c (cp_parser_asm_definition): Use add_asm_node.
8076         * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
8077         * c-decl.c (c_write_global_declarations): Use
8078         finalize_compilation_unit.
8079         * langhooks.c (write_global_declarations): Update.
8080         * ipa.c (cgraph_externally_visible_p): Update.
8081         (dissolve_same_comdat_group_list): Remove.
8082         (function_and_variable_visibility): Update.
8083         * symtab.c: Inlcude lto-streamer.h and rtl.h
8084         (ld_plugin_symbol_resolution_names): New.
8085         (symtab_add_to_same_comdat_group): New.
8086         (symtab_dissolve_same_comdat_group_list): New.
8087         (resolution_used_from_other_file_p): Move here from cgraph.c
8088         (symtab_used_from_object_file_p): New.
8089         (symtab_make_decl_local): New.
8090         * passes.c (register_pass): Update comments.
8091         * c-parser.c (c_parser_asm_definition): Update.
8092         * varpool.c (varpool_analyze_node): Use
8093         fixup_same_cpp_alias_visibility.
8094         (varpool_remove_unreferenced_decls): Make static.
8095         (varpool_assemble_pending_decls): Rename to ...
8096         (varpool_output_variables): ... this one; call
8097         varpool_remove_unreferenced_decls.
8098         (varpool_used_from_object_file_p): Remove.
8100 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
8102         PR c++/51033
8103         * c-typeck.c (build_array_ref): Call
8104         convert_vector_to_pointer_for_subscript.
8105         * doc/extend.texi (Vector Extensions): Subscripting not just for C.
8107 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
8109         * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
8110         to compile-time "mode == <MODE>mode" checks.
8111         (and splitter): Ditto.
8113 2012-04-30  Richard Henderson  <rth@redhat.com>
8115         * config/arm/arm.md (UNSPEC_LL): New.
8116         * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
8117         (arm_load_exclusivedi): Use %H0.
8119 2012-04-30  Jason Merrill  <jason@redhat.com>
8121         * dwarf2out.c (comdat_symbol_id): Add const.
8122         (union die_symbol_or_type_node): Add const to die_symbol.
8123         (output_die_symbol, output_die, output_comp_unit): Adjust.
8125 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
8127         * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
8128         * config/arm/neon.md (negdi2_neon): New insn.
8129         Also add splitters for core and NEON registers.
8131 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
8133         * config/arm/arm.c (neon_valid_immediate): Allow const_int.
8134         (arm_print_operand): Add 'x' format.
8135         * config/arm/constraints.md (Dn): Allow const_int.
8136         * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
8137         Use 'x' format to print constants.
8138         * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
8139         * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
8140         is enabled.
8141         (movdi_vfp_cortexa8): Likewise.
8143 2012-04-30  Ian Bolton  <ian.bolton@arm.com>
8144             Sameera Deshpande  <sameera.deshpande@arm.com>
8145             Greta Yorsh  <greta.yorsh@arm.com>
8147         * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
8148         * config/arm/arm.c (ldm_stm_operation_p): New function.
8149         * config/arm/predicates.md (load_multiple_operation): Update predicate.
8150         (store_multiple_operation): Likewise.
8152         * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
8153         * config/arm/arm.c (ldm_stm_operation_p): New parameters.
8154         * config/arm/predicates.md (load_multiple_operation): Add arguments.
8155         (store_multiple_operation): Likewise.
8157 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
8159         * config/i386/i386.md (and<mode>3): Expand masking operations with
8160         0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
8161         (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
8163 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
8165         Add -Wvarargs option
8166         * builtins.c (fold_builtin_next_arg):  Use OPT_Wvarargs as an
8167         argument for the various warning_at calls.
8168         * docs/invoke.texi: Update the documentation.
8170 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
8172         Switch -ftrack-macro-expansion=2 on by default.
8173         * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
8174         by default.
8176         Fix va_start related location
8177         * builtins.c (fold_builtin_next_arg): Unwinds to the first
8178         location in real source code.
8180         Make conversion warnings work on NULL with -ftrack-macro-expansion
8181         * input.h (expansion_point_location_if_in_system_header): Declare
8182         new function.
8183         * input.c (expansion_point_location_if_in_system_header): Define it.
8185         Fix -Wuninitialized for -ftrack-macro-expansion
8186         * tree-ssa.c (warn_uninit): Use the spelling location of the variable
8187         declaration.  Use linemap_location_before_p for source locations.
8189         Strip "<built-in>" loc from displayed expansion context
8190         * input.c (expand_location_1): When expanding to spelling location
8191         in a context of a macro expansion, skip reserved system header
8192         locations.  Update comments.  * tree-diagnostic.c
8193         (maybe_unwind_expanded_macro_loc): Likewise.
8195         Make expand_location resolve to locus in main source file
8196         * input.c (expand_location_1): New.  Takes a parameter to choose
8197         whether to resolve the location to spelling or expansion point.
8198         Was factorized from ...
8199         (expand_location): ... here.
8200         (expand_location_to_spelling_point): New.  Implemented in terms of
8201         expand_location_1.
8202         * diagnostic.c (diagnostic_build_prefix): Use the new
8203         expand_location_to_spelling_point instead of expand_location.
8205         Fix PCH crash on GTYed pointer-to-scalar field of a struct
8206         * gengtype.c (write_types_process_field): Force second argument of
8207         the call to the PCH object hierarchy walker to be 'x'.
8209 2012-04-30  Eric Botcazou  <ebotcazou@adacore.com>
8211         * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
8212         predicate to discriminate types.
8214 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8216         * doc/invoke.texi (Wmissing-format-attribute): Document as an
8217         alias of Wsuggest-attribute=format.
8218         * c-typeck.c (convert_for_assignment): Replace
8219         Wmissing-format-attribute with Wsuggest-attribute=format.
8220         (digest_init): Likewise.
8222 2012-04-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8224         * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
8225         * common.opt (Wmissing-noreturn): Alias of
8226         -Wsuggest-attribute=noreturn.
8228 2012-04-29  Hans-Peter Nilsson  <hp@axis.com>
8230         PR target/53156
8231         * config/cris/cris.md (andqu): New peephole2.
8232         (andu): Tweak head comment.
8234 2012-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8235             Steven Bosscher  <steven@gcc.gnu.org>
8236             Maxim Kuvyrkov  <maxim@codesourcery.com>
8238         PR tree-optimization/38785
8239         * common.opt (ftree-partial-pre): New option.
8240         * doc/invoke.texi: Document it.
8241         * opts.c (default_options_table): Initialize flag_tree_partial_pre.
8242         * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
8243         benefit speed path.
8244         (execute_pre): Use flag_tree_partial_pre.
8246 2012-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8248         PR target/52999
8249         * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
8250         in constant pool.
8252 2012-04-27  Ollie Wild  <aaw@google.com>
8254         * doc/invoke.texi (Wliteral-suffix): Document new option.
8256 2012-04-27  Tom Tromey  <tromey@redhat.com>
8258         * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
8259         (dwarf_tag_name): Use get_DW_TAG_name.
8260         (dwarf_attr_name): Use get_DW_AT_name.
8261         (dwarf_form_name): Use get_DW_FORM_name.
8262         * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
8264 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
8266         * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
8267         arguments are -1 and 0, by negating the result of the conditional.
8269 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
8271         PR target/53138
8272         * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
8274 2012-04-27  Richard Guenther  <rguenther@suse.de>
8276         * tree-flow.h (is_hidden_global_store): Remove.
8277         * tree-ssa-sink.c (is_hidden_global_store): Likewise.
8278         * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
8279         (stmt_may_clobber_global_p): Likewise.
8280         * tree-ssa-alias.c (ref_may_alias_global_p): New function.
8281         (stmt_may_clobber_global_p): Likewise.
8282         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
8283         stmt_may_clobber_global_p.
8284         * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
8286 2012-04-27  Steven Bosscher  <steven@gcc.gnu.org>
8288         * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
8289         place.
8291         * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
8292         reorganize some fields and update comments.  Rename bit_test_uniq
8293         and bit_test_count to uniq resp. count.  Remove bit_test_bb.
8294         (collect_switch_conv_info): New function, collects info about a
8295         GIMPLE_SWITCH into a struct switch_conv_info.
8296         (check_range): Simplify to use pre-recorded info.  Fix think-o in
8297         range-branch ratio check.
8298         (check_process_case): Remove function.
8299         (check_all_empty_except_final): New function, verifies that all
8300         non-final basic blocks are empty.
8301         (process_switch): Simplify to use pre-recorded info.  Call
8302         collect_switch_conv_info to do that.  Assert that degenerate switch
8303         statements have been cleaned up.
8305 2012-04-27  Marc Glisse  <marc.glisse@inria.fr>
8307         PR middle-end/27139
8308         * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
8310 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8312         PR c/53130
8313         * c-typeck.c (pop_init_level): Use %qD instead of %qT.
8315 2012-04-27  Tom de Vries  <tom@codesourcery.com>
8317         PR tree-optimization/51879
8318         * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
8319         * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
8320         of ...
8321         (defs_to_varying): ... here.  Don't set use_processed.
8322         (visit_reference_op_call): Handle gimple_vdef.
8323         Handle case that lhs is NULL_TREE.
8324         (visit_use): Use mark_use_processed.  Handle calls with side-effect
8325         using visit_reference_op_call.
8327 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
8329         * sched-deps.c (fixup_sched_groups): Rename to...
8330         (chain_to_prev_insn): ...this.
8331         (chain_to_prev_insn_p): New function.
8332         (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
8334 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
8336         * sched-int.h (_haifa_insn_data): Move priority_status.
8337         Add model_index.
8338         (INSN_MODEL_INDEX): New macro.
8339         * haifa-sched.c (insn_delay): New function.
8340         (sched_regno_pressure_class): Update commentary.
8341         (mark_regno_birth_or_death): Pass the liveness bitmap and
8342         pressure array as arguments, instead of using curr_reg_live and
8343         curr_reg_pressure.  Only update the pressure if the bit in the
8344         liveness set has changed.
8345         (initiate_reg_pressure_info): Always trust the live-in set for
8346         SCHED_PRESSURE_MODEL.
8347         (initiate_bb_reg_pressure_info): Update call to
8348         mark_regno_birth_or_death.
8349         (dep_list_size): Take the list as argument.
8350         (calculate_reg_deaths): New function, extracted from...
8351         (setup_insn_reg_pressure_info): ...here.
8352         (MODEL_BAR): New macro.
8353         (model_pressure_data, model_insn_info, model_pressure_limit)
8354         (model_pressure_group): New structures.
8355         (model_schedule, model_worklist, model_insns, model_num_insns)
8356         (model_curr_point, model_before_pressure, model_next_priority):
8357         New variables.
8358         (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
8359         (MODEL_INSN_INFO, MODEL_INSN): New macros.
8360         (model_index, model_update_limit_points_in_group): New functions.
8361         (model_update_limit_points, model_last_use_except): Likewise.
8362         (model_start_update_pressure, model_update_pressure): Likewise.
8363         (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
8364         (model_excess_cost, model_dump_pressure_points): Likewise.
8365         (model_set_excess_costs): Likewise.
8366         (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
8367         SCHED_PRIORITY_MODEL.  Use insn_delay.  Use the order in the model
8368         schedule as an alternative tie-breaker.  Update the call to
8369         dep_list_size.
8370         (ready_sort): Call model_set_excess_costs.
8371         (update_register_pressure): Update call to mark_regno_birth_or_death.
8372         Rely on that function to check liveness rather than doing it here.
8373         (model_classify_pressure, model_order_p, model_add_to_worklist_at)
8374         (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
8375         (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
8376         (model_record_pressure, model_record_pressures): New functions.
8377         (model_record_final_pressures, model_add_successors_to_worklist)
8378         (model_promote_predecessors, model_choose_insn): Likewise.
8379         (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
8380         (model_start_schedule, model_finalize_pressure_group): Likewise.
8381         (model_end_schedule): Likewise.
8382         (schedule_insn): Say when we're scheduling the next instruction
8383         in the model schedule.
8384         (schedule_insn): Handle SCHED_PRESSURE_MODEL.
8385         (queue_to_ready): Do not add instructions that are
8386         MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
8387         Always allow the next instruction in the model schedule to be added.
8388         (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
8389         and delay for SCHED_PRESSURE_MODEL too.
8390         (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
8391         SCHED_PRIORITY_MODEL, but also take the DFA into account.
8392         (schedule_block): Call model_start_schedule and model_end_schedule.
8393         Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
8394         (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8395         to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
8396         region_ref_regs.
8397         (sched_finish): Update accordingly.
8398         (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8399         to SCHED_PRESSURE_MODEL.
8400         (add_jump_dependencies): Update call to dep_list_size.
8401         (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
8402         (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8403         to SCHED_PRESSURE_MODEL.
8404         * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
8405         allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
8406         (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
8407         handling to SCHED_PRESSURE_MODEL.
8409 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
8411         * common.opt (fsched-pressure-algorithm=): New option.
8412         * flag-types.h (sched_pressure_algorithm): New enum.
8413         * sched-int.h (sched_pressure_p): Replace with...
8414         (sched_pressure): ...this new variable.
8415         * haifa-sched.c (sched_pressure_p): Replace with...
8416         (sched_pressure): ...this new variable.
8417         (sched_regno_pressure_class, rank_for_schedule, ready_sort)
8418         (update_reg_and_insn_max_reg_pressure, schedule_insn)
8419         (debug_ready_list, prune_ready_list, schedule_block, sched_init)
8420         (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
8421         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8422         (sched_analyze_insn): Likewise.
8423         * sched-rgn.c (schedule_region): Likewise.
8424         * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
8426 2012-04-26  Bernd Schmidt  <bernds@codesourcery.com>
8428         * PR middle-end/52997
8429         * ira.c (find_moveable_pseudos): Call resize_reg_info.
8431         PR middle-end/52940
8432         * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
8433         * expr.c (convert_move): Honor unsignedp when extending partial int
8434         modes.
8435         * genmodes.c (complete_mode): Don't clear component field of partial
8436         int modes.
8437         (emit_mode_inner): Don't emit it however.
8438         (calc_wider_mode): Partial int modes widen to their component.
8440 2012-04-26  David S. Miller  <davem@davemloft.net>
8442         * config/sparc/niagara4.md: New file.
8443         * config/sparc/sparc.md: Include it.
8444         * config/sparc/sparc.c (niagara4_costs): New processor costs.
8445         (sparc_option_override): Use it.
8446         (sparc_use_sched_lookahead): Return 2 for niagara4.
8447         (sparc_issue_rate): Likewise.
8449         * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
8450         (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
8451         (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
8452         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
8453         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
8454         alignaddrldi_vis): Set type to gsr.
8455         (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
8456         (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
8457         cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
8458         v<vis3_shift_patname><mode>3, fmean16_vis,
8459         fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
8460         fucmp<code>8<P:mode>_vis): Set type to fga.
8461         * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
8462         * config/sparc/niagara.md: Likewise.
8463         * config/sparc/niagara2.md: Likewise.
8464         * config/sparc/ultra3.md: Likewise, and fix type matching for
8465         us3_ialuX reservation.
8467 2012-04-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8469         * reload.c (find_reloads): Change the loop nesting when trying an
8470         alternative with swapped operands.
8472 2012-04-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8474         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
8475         comment. Delete unused parameter first_exp_point_map.
8476         (virt_loc_aware_diagnostic_finalizer): Update call.
8478 2012-04-26  Michael Hope  <michael.hope@linaro.org>
8479             Richard Earnshaw  <rearnsha@arm.com>
8481         * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
8482         (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
8483         (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
8484         (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
8486 2012-04-25  Sriraman Tallam  <tmsriram@google.com>
8488         * doc/extend.texi: Document avx2 support.
8489         * config/i386/i386.c (fold_builtin_cpu): Add avx2.
8491 2012-04-26  Hans-Peter Nilsson  <hp@axis.com>
8493         PR target/53120
8494         * config/cris/cris.md ("*andhi_lowpart_v32")
8495         ("*andqi_lowpart_v32"): Change first input-only operand from
8496         a (match_operand ...) to (match_dup 0).  Drop alternatives with
8497         const_int-matching constraints for redundancy.
8498         ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
8499         three-operand alternative.
8501 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
8503         PR target/53110
8504         * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
8505         instead expand it as zero extension.
8507 2012-04-25  H.J. Lu  <hongjiu.lu@intel.com>
8509         PR debug/52857
8510         * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
8512 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
8514         * common.opt (flag_debug_types_section): Default to 0.
8515         (dwarf_version): Default to 4.
8516         (dwarf_record_gcc_switches): Default to 1.
8517         (dwarf_strict): Default to 0.
8518         * toplev.c (process_options): Don't handle dwarf_strict
8519         or dwarf_version here.
8520         * config/vxworks.c (vxworks_override_options): Don't
8521         test whether dwarf_strict or dwarf_version are negative,
8522         instead test !global_options_set.x_dwarf_*.
8523         * config/darwin.c (darwin_override_options): Default to
8524         dwarf_version 2.
8525         * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
8526         and -fno-debug-types-section are now the default.
8528 2012-04-25  Jan Hubicka  <jh@suse.cz>
8530         * cgraphunit.c: Update toplevel comment.
8531         (tree_rest_of_compilation): Merge into cgraph_expand_function.
8532         (cgraph_analyze_function): Make static.
8533         (cgraph_decide_is_function_needed): Make static.
8534         (cgraph_add_new_function): Use expand_function instead of
8535         rest_of_compilation.
8536         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
8537         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
8538         Move to cgraph.c
8539         (cgraph_inline_p): Remove.
8540         (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
8541         (init_cgraph): Add comment.
8542         * cgraphbuild.c (record_reference, mark_address, mark_load,
8543         mark_store): Do not call analyze_expr hook.
8544         * cgraph.c: Update toplevel comment.
8545         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
8546         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
8547         Move fere from cgraphunit.c
8548         (cgraph_mark_force_output_node): Move to cgraph.h
8549         * cgraph.h: Reorder so the comments match the function placement.
8550         (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
8551         (cgraph_mark_force_output_node): Move here from cgraph.c
8552         * tree.c (free_lang_data): Do not clear analyze_expr hook.
8553         * ipa-inline-transform.c (preserve_function_body_p): New function.
8554         (inline_transform): Update.
8555         * langhooks.c (lhd_callgraph_analyze_expr): Remove.
8556         * langhooks.h (lang_hooks_for_callgraph): Remove.
8557         (lang_hooks): Remove callgraph.
8558         * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
8559         * varpool.c: Remove out of date comment.
8560         * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
8561         (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
8563 2012-04-25  Jan Hubicka  <jh@suse.cz>
8565         PR middle-end/53089
8566         * cgraphunit.c (referred_to_p): Move ahead in file to avoid
8567         forward declaration.
8568         (cgraph_finalize_function): Finalize them here.
8569         * symtab.c (dump_symtab): Dump ctors and dtors.
8571 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
8573         PR middle-end/52979
8574         * stor-layout.c (get_best_mode): Don't return mode with bitsize
8575         larger than maxbits.  Don't compute maxbits modulo align.
8576         Also check that unit bytes long store at bitpos / unit * unit
8577         doesn't affect bits beyond bitregion_end.
8578         * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
8579         would not fit into bitregion_start ... bitregion_end + 1 bit region.
8580         (store_split_bit_field): Decrease unit close to end of bitregion_end
8581         if access is restricted in order to avoid mutual recursion.
8583         PR tree-optimization/53058
8584         * double-int.h (double_int_max_value, double_int_min_value): New
8585         prototypes.
8586         * double-int.c (double_int_max_value, double_int_min_value): New
8587         functions.
8588         * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
8589         or GT_EXPR with double_int_max_value instead of double_int_mask.
8591 2012-04-25  Richard Guenther  <rguenther@suse.de>
8593         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
8594         * tree-vect-loop.c (vect_transform_loop): Adjust.
8595         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
8596         the maximum number of iterations for the epilogue loop.
8597         (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
8599 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
8601         PR c/52880
8602         * c-typeck.c (set_nonincremental_init,
8603         set_nonincremental_init_from_string): Pass true instead of false
8604         as IMPLICIT to add_pending_init.
8606 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8608         * c-typeck.c (pop_init_level): Improve diagnostics.
8610 2012-04-25  Uros Bizjak  <ubizjak@gmail.com>
8612         * compare-elim.c (try_eliminate_compare): Also handle operands with
8613         implicit extensions.
8615 2012-04-25  Alan Modra  <amodra@gmail.com>
8617         * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
8618         V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
8619         SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
8620         (no_global_regs_above): Delete.
8621         (no_global_regs): New function.
8622         (rs6000_savres_strategy): Handle vector regs.  Use proper lr_save_p
8623         value for load multiple test.
8624         (savres_routine_syms): Increase size.
8625         (rs6000_savres_routine_name, rs6000_savres_routine_sym,
8626         ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
8627         rather than a number of boolean flags.  Update all callers.
8628         (rs6000_savres_routine_name): Generate vector save/restore names.
8629         (rs6000_savres_routine_sym): Handle vector regs.  Delete forward decl.
8630         (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
8631         (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
8632         and using_store_multiple.  Expand uses.  Don't always use r11 as
8633         frame reg when needed for out-of-line saves.  Set up initial offset
8634         for out-of-line vector saves when buying stack frame.  Handle pointer
8635         reg setup for out-of-line fp save.  Emit call to out-of-line vector
8636         save function.  Choose r11 or r12 for vrsave reg when available for
8637         better scheduling.
8638         (rs6000_output_function_prologue): Don't emit .extern for ELF.
8639         (rs6000_emit_epilogue): Choose a better frame reg when restoring
8640         from back-chain to suit out-of-line vector restore functions.  Emit
8641         call to out-of-line vector restore function.  Adjust register used
8642         for cr restore.  Tweak pointer register setup for gpr restore.
8643         * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
8644         FIXED_R13.
8645         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
8646         (V_SAVE_INLINE): Define.
8647         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
8649 2012-04-25  Alan Modra  <amodra@gmail.com>
8651         * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
8652         out-of-line save/restore for large frames.  Don't disable
8653         out-of-line saves on ABI_AIX when using static chain reg.
8654         (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
8655         clobber static chain reg, and tweak for out-of-line gpr saves
8656         that use r1.
8658 2012-04-25  Alan Modra  <amodra@gmail.com>
8660         * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
8661         (rs6000_emit_prologue): Use the above to catch register overlap.
8663 2012-04-25  Alan Modra  <amodra@gmail.com>
8665         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
8666         decl.  Move logic selecting update reg to callers.  Update all callers.
8667         (rs6000_emit_allocate_stack): Add copy_off param.
8668         (emit_frame_save): Don't handle reg+reg addressing.
8669         (ptr_regno_for_savres): New function, extracted from..
8670         (rs6000_emit_savres_rtx): ..here.  Add lr_offset param.
8671         (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
8672         Set frame_reg_rtx to r11 whenever r11 is needed, and merge
8673         frame offset adjustment for out-of-line save with copy from sp.
8674         Simplify condition controlling whether cr is saved early or
8675         late.  Use ptr_regno_for_savres to verify correct reg is set
8676         up for out-of-line saves.  Pass the actual pointer reg used to
8677         rs6000_emit_savres_rtx so rtl matches insns in out-of-line
8678         function.  Rearrange spe vars so code is similar to that
8679         elsewhere in this function.  Don't update frame_off when spe
8680         save code will restore r11.  Use emit_frame_save for spe and
8681         gpr saves.  Consolidate darwin out-of-line gpr setup with that
8682         for other abis.  Don't assume frame_offset is zero and frame
8683         reg is sp when setting up altivec reg saves, and calculate
8684         exact offset requirement.
8685         (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off.  Tidy
8686         spe restore code.  Consolidate darwin out-of-line gpr setup
8687         with that for other abis.
8689 2012-04-25  Alan Modra  <amodra@gmail.com>
8691         * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
8692         REG_FRAME_RELATED_EXPR note when the instruction exactly matches
8693         the replacement.
8694         (emit_frame_save): Delete frame_ptr param.  Rename total_size to
8695         frame_reg_to_sp.
8696         (rs6000_emit_prologue): Add sp_off.  Update rs6000_frame_related
8697         and emit_frame_save calls.  Cope with possibly missing note.
8699 2012-04-24  Sriraman Tallam  <tmsriram@google.com>
8701         * config/i386/i386.c (build_processor_model_struct): New function.
8702         (make_var_decl): New function.
8703         (fold_builtin_cpu): New function.
8704         (ix86_fold_builtin): New function.
8705         (make_cpu_type_builtin): New function.
8706         (ix86_init_platform_type_builtins): New function.
8707         (ix86_expand_builtin): Expand new builtins by folding them.
8708         (ix86_init_builtins): Make new builtins to detect CPU type.
8709         (TARGET_FOLD_BUILTIN): New macro.
8710         (IX86_BUILTIN_CPU_INIT): New enum value.
8711         (IX86_BUILTIN_CPU_IS): New enum value.
8712         (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
8713         * config/i386/i386-builtin-types.def: New function type.
8714         * testsuite/gcc.target/builtin_target.c: New testcase.
8715         * doc/extend.texi: Document builtins.
8717 2012-04-24  Olivier Hainque  <hainque@adacore.com>
8719         * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
8720         * toplev.c (process_options): Default to dwarf_version 2.
8721         * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
8722         and dwarf_version 2.
8724 2012-04-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8726         * tree-pretty-print.h (default_tree_printer): Do not declare.
8727         * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
8728         intl.h.
8729         (default_tree_diagnostic_starter): Make static.
8730         (default_tree_printer): Move to here. Make static.
8731         (tree_diagnostics_defaults): New.
8732         * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
8733         * tree.c (free_lang_data): Use tree_diagnostics_defaults.
8734         * toplev.c: Do not include tree-pass.h.
8735         (default_tree_printer): Move from here.
8736         (general_init): Use tree_diagnostics_defaults.
8738 2012-04-24  Chao-ying Fu  <fu@mips.com>
8740         * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
8741         (mips*-*-linux*): Append mips/linux-common.h to tm_file.
8742         * config/mips/gnu-user.h
8743         (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
8744         (GNU_USER_TARGET_LINK_SPEC): New define.
8745         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
8746         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
8747         (GNU_USER_TARGET_MATHFILE_SPEC): New define.
8748         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
8749         GNU_USER_TARGET_ENDFILE_SPEC.
8750         * config/mips/gnu-user64.h (LIB_SPEC): Remove.
8751         (GNU_USER_TARGET_LINK_SPEC): New define.
8752         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
8753         * config/mips/linux-common.h: New file.
8755 2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8757         PR target/47197
8758         * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
8759         (altivec_build_resolved_builtin): Call fully_fold_convert.
8761 2012-04-24  Georg-Johann Lay  <avr@gjlay.de>
8763         PR target/53065
8764         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
8766 2012-04-24  Richard Guenther  <rguenther@suse.de>
8768         PR tree-optimization/53085
8769         * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
8770         stores.
8772 2012-04-24  Richard Guenther  <rguenther@suse.de>
8774         * tree-if-conv.c (main_tree_if_conversion): Move bb under
8775         ENABLE_CHECKING.
8777 2012-04-24  Jim Meyering  <meyering@redhat.com>
8779         * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
8780         absence of an define_enum call.
8782 2012-04-24  Richard Guenther  <rguenther@suse.de>
8784         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
8785         the epilogue loop is not re-used as unvectorized version
8786         record the its maximum number of iterations.
8788 2012-04-24  Andrew Pinski  <apinski@cavium.com>
8790         * tree-ssa-forwprop.c (simplify_bitwise_binary):
8791         Don't directly use def1/def2.
8793 2012-04-24  Richard Guenther  <rguenther@suse.de>
8795         PR tree-optimization/53098
8796         * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
8797         comparison sign.
8799 2012-04-24  Andrew Pinski  <apinski@cavium.com>
8801         PR tree-opt/33512
8802         * tree-ssa-forwprop.c (defcodefor_name): New function.
8803         (simplify_bitwise_binary): Use defcodefor_name instead of manually
8804         Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
8805         Simplify "(~X | Y) & X" to "X & Y" and
8806         "(~X & Y) | X" to "X | Y".
8808 2012-04-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8810         * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
8811         validate_change to add clobbers if IN_GROUP is nonzero.
8812         (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
8813         * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
8814         prototype.
8815         * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
8816         set to false.
8817         * config/s390/s390.c (insn_invalid_p): Likewise.
8819 2012-04-24  Jakub Jelinek  <jakub@redhat.com>
8821         PR middle-end/53084
8822         * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
8823         (output_addressed_constants): Likewise.
8825         PR middle-end/52999
8826         * varasm.c (get_section): Don't ICE for section conflicts with
8827         built-in section kinds.
8829 2012-04-23  DJ Delorie  <dj@redhat.com>
8831         * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
8832         (LIBSTDCXX): Change to CPP2.
8834 2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>
8836         PR bootstrap/52878
8837         * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
8838         extra_masks.
8840 2012-04-23  Uros Bizjak  <ubizjak@gmail.com>
8842         * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
8843         (*addsi_2_zext): Ditto.
8844         (*add<mode>_3): Ditto.
8845         (*addsi_3_zext): Ditto.
8846         (*add<mode>_5): Ditto.
8848 2012-04-23  Andrew Pinski  <apinski@cavium.com>
8850         * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
8851         (C & B) to (A OP0) & B.
8853 2012-04-23  Martin Jambor  <mjambor@suse.cz>
8855         * expr.c (expand_expr_real_1): Remove setting parent's alias set for
8856         temporaries created for a bitfield (reverting revision 122014).
8858 2012-04-23  Richard Guenther  <rguenther@suse.de>
8860         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
8861         the condition using is_gimple_condexpr and avoid the not necessary
8862         boolification.
8863         (set_prologue_iterations): Likewise.
8864         (vect_loop_versioning): Likewise.
8866 2012-04-23  Richard Guenther  <rguenther@suse.de>
8868         PR tree-optimization/53070
8869         * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
8870         (main_tree_if_conversion): Verify we succeeded in that.
8872 2012-04-23  Jan Hubicka  <jh@suse.cz>
8874         * lto-symtab.c (lto_cgraph_replace_node): Do not call
8875         mark_reahcable_node.
8876         * cgraph.c (cgraph_remove_node): Do not clear reachable.
8877         (cgraph_mark_reachable_node): Remove.
8878         (cgraph_mark_force_output_node): Do not set reachable.
8879         (dump_cgraph_node): Do not dump reachable.
8880         (cgraph_create_virtual_clone): Do not set reachable.
8881         * cgraph.h (cgraph_node): Remove reachable flag.
8882         (varpool_node): Remove reachable flag.
8883         (cgraph_mark_if_needed): Remove.
8884         (cgraph_mark_reachable_node): Remove.
8885         * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
8886         * cgraphunit.c (cgraph_finalize_function): Do not mark node as
8887         reachable.
8888         (cgraph_add_new_function): Likewise.
8889         (cgraph_mark_if_needed): Remove.
8890         (cgraph_analyze_function): Do not set target as reachable.
8891         (process_function_and_variable_attributes): Do not care about
8892         dllexport.
8893         (cgraph_analyze_functions): Do not set reachable flags.
8894         (cgraph_mark_functions_to_output): Do not check reachability.
8895         (cgraph_copy_node_for_versioning): Do not set reachable flag.
8896         (dbxout_expand_expr): Update.
8897         * c-decl.c (merge_decls): Do not track changed externs.
8898         * ipa.c: Include pointer-set.h
8899         (enqueue_cgraph_node): Use reachable pointer set.
8900         (process_references): Likewise.
8901         (cgraph_remove_unreachable_nodes): Likewise.
8902         (whole_program_function_and_variable_visibility): Do not recompute
8903         reachable.
8904         * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
8906 2012-04-23  Georg-Johann Lay  <avr@gjlay.de>
8908         * doc/extend.texi (AVR Named Address Spaces): Fix typos.
8910 2012-04-23  Richard Guenther  <rguenther@suse.de>
8912         PR c/53060
8913         * c-typeck.c (build_binary_op): Fix typo.
8915 2012-04-23  Jakub Jelinek  <jakub@redhat.com>
8917         PR tree-optimizations/52891
8918         * tree-vect-patterns.c (adjust_bool_pattern): Use
8919         build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
8920         but with non-standard precision.
8922 2012-04-22  Jan Hubicka  <jh@suse.cz>
8924         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
8925         tree refs.
8927 2012-04-22  Jan Hubicka  <jh@suse.cz>
8929         * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
8930         * cgraphbuild.c (record_reference, record_type_list, mark_address,
8931         mark_load, mark_store): Do not mark varpool nodes as needed.
8932         * cgraph.c (cgraph_new_nodes): Remove.
8933         (cgraph_create_function_alias): Do not mark nodes as reachable.
8934         (cgraph_add_thunk): Likewise.
8935         (cgraph_mark_reachable_node): Do not manage the queue.
8936         * cgraph.h (cgraph_node): Remove next_needed.
8937         (varpool_nodes_queue): Remove next_needed and prev_needed.
8938         (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
8939         (cgraph_new_nodes): Declare.
8940         (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
8941         (varpool_analyze_pending_decls): Remove.
8942         (varpool_analyze_node): New.
8943         (varpool_mark_needed_node): Remove.
8944         (varpool_first_variable, varpool_next_variable): New inlines.
8945         (varpool_first_static_initializer, varpool_next_static_initializer):
8946         Update.
8947         (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
8948         (varpool_first_defined_variable): New inline.
8949         (varpool_next_defined_variable): New inline
8950         (FOR_EACH_VARIABLE): Reimplement.
8951         (FOR_EACH_DEFINED_VARIABLE): Reimplement.
8952         * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
8953         needed flag.
8954         * cgraphunit.c (cgraph_new_nodes): Declare here.
8955         (enqueue_node): New function.
8956         (cgraph_process_new_functions): update for new
8957         node set; when constructing cgraph enqueue node for processing.
8958         (cgraph_add_new_function): Use new node set.
8959         (process_function_and_variable_attributes): Do not set varpool needed
8960         flags.
8961         (referred_to_p): New function.
8962         (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
8963         when varpool is in construction.
8964         (cgraph_analyze_functions): Rewrite.
8965         (cgraph_expand_all_functions): Update.
8966         (cgraph_output_in_order): Do not analyze pending decls; do not set
8967         needed flags.
8968         (cgraph_optimize): Do not analyze pending decls.
8969         * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
8970         in other partition; do not mark node as needed.
8971         * dwarf2out.c (reference_to_unused): Use analyzed flag.
8972         (premark_types_used_by_global_vars_helper): Likewise.
8973         * ipa.c (process_references): Do not call varpool_mark_needed_node.
8974         (cgraph_remove_unreachable_nodes): Do not rely on varpool and
8975         cgrpah queues.
8976         (function_and_variable_visibility): Do not mark node as needed.
8977         (whole_program_function_and_variable_visibility): Likewise.
8978         * Makefile.in (gt-varpool.h): No longer needed.
8979         * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
8980         (ipa_write_summaries): Do not use needed flag.
8981         * varpool.c: Do not include gt-varpool.h
8982         (x_varpool_nodes_queue, x_varpool_last_needed_node,
8983         x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
8984         x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
8985         Remove.
8986         (varpool_remove_node): Do not update the lists.
8987         (dump_varpool_node): Do not dump needed flag.
8988         (varpool_enqueue_needed_node): Remove.
8989         (varpool_mark_needed_node): Remove.
8990         (varpool_reset_queue): Remove.
8991         (varpool_finalize_decl): Move to cgraphunit.c
8992         (varpool_analyze_node): New functions based on former
8993         varpool_analyze_pending_decls.
8994         (varpool_analyze_pending_decls): Remove.
8995         (varpool_assemble_decl): Do not update the lists.
8996         (enqueue_node): New function.
8997         (varpool_remove_unreferenced_decls): Rewrite.
8998         (varpool_empty_needed_queue): Remove.
8999         (add_new_static_var): Do not mark node as needed.
9000         (varpool_create_variable_alias): Handle expansion state
9001         creation.
9002         * except.c (output_ttype): Do not mark node as needed.
9003         * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
9004         * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
9005         Likewise.
9006         * tree-switch-conversion.c (build_one_array): Likewise.
9008 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9010         PR c/44774
9011         * doc/invoke.texi (pedantic): Rename to Wpedantic.
9012         * common.opt (Wpedantic): New.
9013         (pedantic): Alias Wpedantic.
9014         * diagnostic.c (warning_at): Likewise.
9015         * c-decl.c (diagnose_mismatched_decls): Likewise.
9016         (build_array_declarator): Likewise.
9017         (mark_forward_parm_decls):
9018         (check_bitfield_type_and_width): Likewise.
9019         (grokdeclarator): Likewise.
9020         (grokfield): Likewise.
9021         (finish_struct): Likewise.
9022         (build_enumerator): Likewise.
9023         (store_parm_decls_oldstyle): Likewise.
9024         (declspecs_add_qual): Likewise.
9025         (declspecs_add_type): Likewise.
9026         (finish_declspecs): Likewise.
9027         * c-typeck.c (composite_type): Likewise.
9028         (comp_target_types): Likewise.
9029         (build_array_ref): Likewise.
9030         (pointer_diff): Likewise.
9031         (build_unary_op): Likewise.
9032         (build_conditional_expr): Likewise.
9033         (build_c_cast): Likewise.
9034         (convert_for_assignment): Likewise.
9035         (maybe_warn_string_init): Likewise.
9036         (digest_init): Likewise.
9037         (pop_init_level): Likewise.
9038         (set_init_index): Likewise.
9039         (c_finish_goto_label): Likewise.
9040         (c_finish_return): Likewise.
9041         (do_case): Likewise.
9042         (build_binary_op): Likewise.
9043         * c-parser.c (static): Likewise.
9044         (c_parser_external_declaration): Likewise.
9045         (c_parser_declaration_or_fndef): Likewise.
9046         (c_parser_static_assert_declaration_no_se): Likewise.
9047         (c_parser_enum_specifier): Likewise.
9048         (c_parser_struct_or_union_specifier): Likewise.
9049         (c_parser_struct_declaration): Likewise.
9050         (c_parser_alignas_specifier): Likewise.
9051         (c_parser_braced_init): Likewise.
9052         (c_parser_initelt): Likewise.
9053         (c_parser_compound_statement_nostart): Likewise.
9054         (c_parser_conditional_expression): Likewise.
9055         (c_parser_alignof_expression): Likewise.
9056         (c_parser_postfix_expression): Likewise.
9057         (c_parser_postfix_expression_after_paren_): Likewise.
9058         (c_parser_objc_class_instance_variables): Likewise.
9059         (c_parser_objc_method_definition): Likewise.
9060         (c_parser_objc_methodprotolist): Likewise.
9062 2012-04-22  Ian Lance Taylor  <iant@google.com>
9064         * godump.c (go_output_typedef): Dump size of structs.
9066 2012-04-22  Razya Ladelsky  <razya@il.ibm.com>
9068         Correcting transform_to_exit_first_loop + fix to PR46886
9069         * tree-parloops.c (transform_to_exit_first_loop): Remove
9070         setting of number of iterations according to the loop pattern.
9071         Duplicate from entry to exit->src instead of loop->latch.
9072         (pallelize_loops): Remove the condition preventing do-while loops.
9073         * tree-cfg.c (bool bb_in_region_p): New.
9074         (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
9075         Adjust redirection of the duplicated iteration.
9077 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
9079         PR bootstrap/53021
9080         * rtl.def (ADDRESS): Use "i" rather than "w".
9081         * rtl.h (find_base_term): Delete.
9082         (may_be_sp_based_p): Declare.
9083         * rtl.c (rtx_code_size): Remove ADDRESS special case.
9084         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
9085         (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
9086         * alias.c: ...here.
9087         (find_base_term): Make static.
9088         (may_be_sp_based_p): New function.
9089         * dse.c (record_store): Use it.
9090         * store-motion.c (store_killed_in_insn): Likewise.
9092 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
9094         * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
9096 2012-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9098         PR 35441
9099         * c-typeck.c (inform_declaration): New.
9100         (build_function_call_vec):  Do not pretty-print
9101         expressions when caret is enabled.
9102         (convert_arguments): Use inform_declaration.
9104 2012-04-20  Jim Meyering  <meyering@redhat.com>
9106         * genmodes.c (make_complex_modes): Don't truncate a mode name of
9107         length 7 or more when prepending a "C".  Suggested by Richard Guenther.
9109 2012-04-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9111         PR rtl-optimization/44214
9112         * fold-const.c (exact_inverse): New function.
9113         (fold_binary_loc): Fold vector and complex division by constant into
9114         multiply by recripocal with flag_reciprocal_math; fold vector division
9115         by constant into multiply by reciprocal with exact inverse.
9117 2012-04-20  Jan Hubicka  <jh@suse.cz>
9119         * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
9120         force flags.
9121         * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
9122         (cgraph_remove_node): Update.
9123         (cgraph_mark_needed_node): Remove.
9124         (cgraph_mark_force_output_node): New.
9125         (dump_cgraph_node): Do not dump needed flag.
9126         (cgraph_node_cannot_be_local_p_1): Update.
9127         (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
9128         * cgraph.h (symtab_node_base): Add force_output flag.
9129         (cgraph_node): Remove needed flag.
9130         (varpool_node): Remove force_output flag.
9131         (cgraph_mark_needed_node): Remove.
9132         (cgraph_mark_force_output_node): New.
9133         (cgraph_only_called_directly_or_aliased_p,
9134         varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
9135         * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
9136         * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
9137         (cgraph_add_new_function): Update.
9138         (cgraph_mark_if_needed): Update.
9139         (verify_cgraph_node): Update.
9140         (cgraph_analyze_function): Alias target is reachable.
9141         (process_function_and_variable_attributes): Update: externally_visible
9142         flag makes function reachable.
9143         (cgraph_analyze_functions): Update dumping.
9144         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9145         input_overwrite_node, input_varpool_node): Update streaming.
9146         * lto-streamer-out.c (produce_symtab): Use force_output.
9147         * ipa.c (process_references): Weakrefs must be processed.
9148         (cgraph_remove_unreachable_nodes): Likewise; update for new
9149         force_output flag.
9150         (varpool_externally_visible_p): Weakrefs are externally visible
9151         even if they are not.
9152         (function_and_variable_visibility): Update; when processing alias
9153         pair force the targets to be output.
9154         (whole_program_function_and_variable_visility): Use
9155         mark_reachable_node.
9156         * trans-mem.c (ipa_tm_mark_needed_node): Remove
9157         (ipa_tm_mark_force_output_node): New function.
9158         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
9159         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
9160         aliases.
9161         * varasm.c (mark_decl_referenced): Update.
9162         (find_decl_and_mark_needed): Remove.
9163         (find_decl): New function.
9164         (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
9165         alias targets as needed.
9166         (dump_tm_clone_pairs): Update.
9167         * tree-inline.c (copy_bb): Update check.
9168         * symtab.c (dump_symtab_base): Dump force_output.
9169         * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
9170         * passes.c (execute_todo): Fix dumping.
9171         * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
9172         (varpool_analyze_pending_decls): Alias target is reachable.
9173         (varpool_create_variable_alias): Finalize weakrefs.
9175 2012-04-20  Jakub Jelinek  <jakub@redhat.com>
9177         PR bootstrap/53021
9178         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
9179         UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
9180         * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
9181         macros instead of constants.
9182         * dse.c (record_store): Check for SP ADDRESS by comparing
9183         XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
9184         XEXP to be stack_pointer_rtx.
9186 2012-04-20  Richard Guenther  <rguenther@suse.de>
9188         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
9189         update_call_from_tree when propagating into a call.
9191 2012-04-20  Alan Modra  <amodra@gmail.com>
9193         * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
9194         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.  Rename
9195         sp_offset to frame_off.  Move world save code earlier.
9197 2012-04-20  Richard Guenther  <rguenther@suse.de>
9199         PR tree-optimization/53050
9200         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
9201         Do only one transform on COND_EXPRs at the same time.
9203 2012-04-19  Jan Hubicka  <jh@suse.cz>
9205         * symtab.c (dump_symtab_base): Revert accidental checkin.
9207 2012-04-20  Alan Modra  <amodra@gmail.com>
9209         PR target/53040
9210         * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
9211         static chain, set REST_INLINE_FPRS too.
9213 2012-04-20  Thomas Schwinge  <thomas@codesourcery.com>
9215         * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
9216         nodes.
9218 2012-04-20  Richard Guenther  <rguenther@suse.de>
9220         * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
9221         loops that can never run more often than the vectorization factor.
9223 2012-04-19  Jan Hubicka  <jh@suse.cz>
9225         * symtab.c (dump_symtab_base): Fix dumping of asm lists.
9227 2012-04-19  David Edelsohn  <dje.gcc@gmail.com>
9229         * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
9231 2012-04-19  Jim Meyering  <meyering@redhat.com>
9233         * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
9234         We verified above that the string(including trailing NUL) fits in buf,
9235         so just use memcpy.
9237 2012-04-19  Richard Guenther  <rguenther@suse.de>
9239         * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
9240         for dumping DECL_SECTION_NAME.
9242 2012-04-19  Michael Matz  <matz@suse.de>
9244         PR middle-end/52977
9245         * tree.h (VECTOR_CST_NELTS): Use part number of types again.
9246         (struct tree_vector): Adjust GTY length.
9247         * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
9249         * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
9250         members.
9251         (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
9252         caller emitted the length calulation already.
9253         (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
9254         before handling any of the fields for structs.
9256 2012-04-19  Richard Guenther  <rguenther@suse.de>
9258         PR tree-optimization/53031
9259         * tree-vrp.c (adjust_range_with_scev): Revert back to
9260         using max_loop_iterations.
9262 2012-04-19  Michael Matz  <matz@suse.de>
9264         * diagnostic.c (emit_diagnostic): Move va_end call after user
9265         of the va_list.
9266         (warning, warning_at, pedwarn, permerror): Ditto.
9268 2012-04-19  Richard Guenther  <rguenther@suse.de>
9270         * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
9271         array access.
9273 2012-04-19  Georg-Johann Lay  <avr@gjlay.de>
9275         PR target/53033
9276         * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
9277         the case *(X+const).
9279 2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9281         * config/arm/sync.md (sync_optab): Change ior attribute to "or".
9283 2012-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9285         PR c/52283/37985
9286         * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
9287         * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
9289 2012-04-19  Richard Guenther  <rguenther@suse.de>
9291         PR rtl-optimization/44688
9292         * loop-iv.c (determine_max_iter): Only return max_iter.
9293         (iv_number_of_iterations): Also use the recorded loop bound
9294         on the maximum number of iterations.
9295         * loop-unroll.c (decide_unroll_runtime_iterations): Use
9296         max_iter to avoid unrolling loops that do not roll.
9297         (decide_unroll_stupid): Likewise.
9299 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
9301         * targhooks.c (default_case_values_threshold): Fix code style nit.
9303         * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
9304         case range and type folding from here...
9305         * gimplify.c (gimplify_switch_expr): ... to here.  Expect NULL_TREE
9306         type, as documented in tree.def.
9308 2012-04-18  Jan Hubicka  <jh@suse.cz>
9310         * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
9311         Declare.
9312         * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
9313         cgraph hash and same comdat groups.
9314         (cgraph_optimize): Verify symbol table.
9315         * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
9316         (dissolve_same_comdat_group_list): Work on symtab nodes.
9317         (function_and_variable_visibility): Dissolve variable same comdat group
9318         lists, too.
9319         * symtab.c: Include timevar.h
9320         (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
9322 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
9324         * tree-switch-conversion.c (info): Remove global pass info.
9325         (check_range, check_process_case, check_final_bb, create_temp_arrays,
9326         free_temp_arrays, gather_default_values, build_constructors,
9327         array_value_type, build_one_array, build_arrays, gen_def_assigns,
9328         fix_phi_nodes, gen_inbound_check): Pass info around from ...
9329         (process_switch): ... here.  Unify message format.  Return a const
9330         char pointer to the failure reason message.
9331         (do_switchconv): Unify message format.  Update process_switch usage.
9333         * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
9334         * tree-cfg.c (edge_to_cases): Fix documentation.
9336 2012-04-18  Uros Bizjak  <ubizjak@gmail.com>
9338         * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
9340 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9342         PR tree-optimization/52976
9343         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
9344         (possibly_move_powi): New function.
9345         (rewrite_expr_tree): Call possibly_move_powi.
9346         (rewrite_expr_tree_parallel): Likewise.
9347         (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
9348         call add_to_ops_vec instead.
9350 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9352         PR tree-optimization/52976
9353         * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
9354         (decrement_power): Likewise.
9355         (propagate_op_to_single_use): Likewise.
9356         (zero_one_operation): Handle __builtin_pow* calls in linearized
9357         expression trees; factor logic into propagate_op_to_single_use.
9358         (undistribute_ops_list): Allow operands with repeat counts > 1.
9360 2012-04-18  Richard Guenther  <rguenther@suse.de>
9362         PR tree-optimization/44688
9363         * cfgloop.h (record_niter_bound): Declare.
9364         * tree-ssa-loop-niter.c (record_niter_bound): Export.
9365         Update the estimation with the upper bound here...
9366         (estimate_numbers_of_iterations_loop): ... instead of here.
9367         Do not forcefully reset a recorded upper bound.
9368         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
9369         Record the maximum number of loop iterations of the prologue loop.
9371 2012-04-18  Jan Hubicka  <jh@suse.cz>
9373         * lto-symtab.c (lto_cgraph_replace_node): Update.
9374         * cgraphbuild.c (record_reference, record_type_list,
9375         record_eh_tables, mark_address, mark_load, mark_store): Update.
9376         * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
9377         cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
9378         Update.
9379         * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
9380         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
9381         * reload.c: Fix typo in comment.
9382         * rtlanal.c: Likewise.
9383         * tree-emultls.c (gen_emutls_addr): Update.
9384         * ipa-reference.c (analyze_function): Update.
9385         * cgraphunit.c (cgraph_analyze_function,
9386         cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
9387         Update.
9388         * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
9389         (ipa_remove_reference): Likewise.
9390         (ipa_remove_all_refering): Rename to ...
9391         (ipa_remove_all_referring): ... this one; update.
9392         (ipa_dump_references): Update.
9393         (ipa_dump_referring): Update.
9394         (ipa_clone_references): Update.
9395         (ipa_clone_refering): Rename to ...
9396         (ipa_clone_referring): ... this one; update.
9397         (ipa_ref_cannot_lead_to_return): Update.
9398         (ipa_ref_has_aliases_p): Update.
9399         * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
9400         forward typedefs.
9401         (ipa_ref_type): Remove.
9402         (ipa_ref_ptr_u): Remove.
9403         (ipa_ref): Remove referencing, refered, refered_index, refering_type
9404         and refered_type; add referring, referred and referred_index.
9405         (ipa_ref_list): Rename refering to referring.
9406         (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
9407         ipa_clone_references, ipa_clone_referring): Update prototypes.
9408         * lto-cgraph.c (referenced_from_other_partition_p): Update.
9409         (lto_output_ref): Update.
9410         (add_references): Update.
9411         (input_varpool_node): Update.
9412         (input_refs): Update.
9413         * ipa-ref-inline.h (ipa_ref_node): Update.
9414         (ipa_ref_varpool_node): Update.
9415         (ipa_ref_referring_node): Update.
9416         (ipa_ref_referring_varpool_node): Update.
9417         (ipa_ref_referring_ref_list): Update.
9418         (ipa_ref_referred_ref_list): Update.
9419         (ipa_ref_list_first_referring): Update.
9420         (ipa_empty_ref_list): Update.
9421         (ipa_ref_list_refering_iterate): Rename to ...
9422         (ipa_ref_list_referring_iterate): ... this one.
9423         * cse.c: Update comment.
9424         * ipa-utils.c (ipa_reverse_postorder): Update.
9425         * tree-ssa-alias.c: Update.
9426         * ipa-inline.c (reset_edge_caches): Update.
9427         (update_caller_keys): Update.
9428         * ipa-inline.h: Update comments.
9429         * jump.c: Update comment.
9430         * alias.c: Likewise.
9431         * ipa.c (process_references): Update.
9432         (cgraph_remove_unreachable_nodes): Likewise.
9433         (ipa_discover_readonly_nonaddressable_var): Likewise.
9434         (cgraph_address_taken_from_non_vtable_p): Likewise.
9435         * trans-mem.c (ipa_tm_execute): Update.
9436         * simplify-rtx.c: Fix comment.
9437         * rtl.c: Fix comment.
9438         * symtab.c (symtab_unregister_node): Update.
9439         * varpool.c (dump_varpool_node): Update.
9440         (varpool_analyze_pending_decls): Update.
9441         (assemble_aliases): Update.
9442         (varpool_for_node_and_aliases): Update.
9444 2012-04-18  Richard Guenther  <rguenther@suse.de>
9446         * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
9447         use_undefined_p parameter.
9448         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
9449         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
9450         Likewise.
9451         (estimate_numbers_of_iterations): Likewise.
9452         (estimated_loop_iterations): Adjust.
9453         (max_loop_iterations): Likewise.
9454         (scev_probably_wraps_p): Likewise.
9455         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
9456         * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
9457         not max_loop_iterations.
9458         (execute_vrp): Remove explicit number of iterations estimation.
9460 2012-04-18  Enkovich Ilya  <ilya.enkovich@intel.com>
9462         * config/i386/linux-common.h: New.
9464         * config.gcc: Add i386/linux-common.h before
9465         all i386/linux.h and i386/linux64.h usages.
9467         * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
9468         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
9469         * config/i386/gnu-user64.h: Likewise.
9471         * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
9472         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
9473         (GNU_USER_TARGET_MATHFILE_SPEC): New.
9474         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
9476 2012-04-18  Jan Hubicka  <jh@suse.cz>
9478         * cgraph.c (cgraph_node_name): Remove.
9479         (dump_cgraph_node): Use dump_symtab_base; reformat.
9480         * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
9481         debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
9482         Declare.
9483         (cgraph_node_name, varpool_node_name): Remove.
9484         (cgraph_node_asm_name, varpool_node_asm_name,
9485         cgraph_node_name, varpool_node_name): New.
9486         * tree-pass.h (TODO_dump_cgraph): Rename to ...
9487         (TODO_dump_symtab): ... this one.
9488         * ipa-cp (pass_ipa_cp): Update.
9489         * ia-reference.c (generate_summary, read_write_all_from_decl,
9490         propagate, ipa_reference_read_optimization_summary): Update.
9491         * cgraphunit.c (cgraph_analyze_functions): Update.
9492         (cgraph_optimize): Update.
9493         * ipa-ref.c (ipa_dump_references): Update.
9494         (ipa_dump_refering): Update.
9495         * ipa-inline.c (pass_ipa_inline): Update.
9496         * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
9497         * ipa.c (pass_ipa_function_visibility,
9498         pass_ipa_whole_program_visibility): Update.
9499         * tree-sra.c (pass_early_ipa_sra): Update.
9500         * symtab.c: Include langhooks.h
9501         (symtab_node_asm_name): New.
9502         (symtab_node_name): New.
9503         (symtab_type_names): New static var.
9504         (dump_symtab_base): New.
9505         (dump_symtab_node, dump_symtab): New.
9506         (debug_symtab_node,  debug_symtab): New.
9507         * tree-ssa-structalias.c: Dump symbol table.
9508         * pases.c (execute_todo): Handle TODO_dump_symtab instead
9509         of TODO_dump_cgraph.
9510         * varpoo.c (varpool_node_name): Remove.
9511         (dump_varpool_node): Use dump_symtab_base; reformat.
9513 2012-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9515         * doc/invoke.texi (Language Independent Options): @item should be
9516         before @opindex.
9518 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
9520         PR bootstrap/53021
9521         * rtl.c (rtx_code_size): Handle ADDRESS.
9523 2012-04-17  Tom de Vries  <tom@codesourcery.com>
9525         * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
9526         is not a STMT_LIST.
9528 2012-04-17  Uros Bizjak  <ubizjak@gmail.com>
9530         PR target/53020
9531         * config/i386/sync.md (atomic_<code><mode>): Rename to
9532         atomic_<logic><mode>.
9534 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
9536         * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
9537         * alias.c (reg_base_value): Expand and update comment.
9538         (arg_base_value): New variable.
9539         (unique_id): Move up file.
9540         (unique_base_value, unique_base_value_p, known_base_value_p): New.
9541         (find_base_value): Use arg_base_value and known_base_value_p.
9542         (record_set): Document REG_NOALIAS handling.  Use unique_base_value.
9543         (find_base_term): Use known_base_value_p.
9544         (base_alias_check): Use unique_base_value_p.
9545         (init_alias_target): Initialize arg_base_value.  Use unique_base_value.
9546         (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
9548 2012-04-17  Pat Haugen <pthaugen@us.ibm.com>
9550         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
9552 2012-04-17  Michael Matz  <matz@suse.de>
9554         PR tree-optimization/18437
9555         * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
9556         (STMT_VINFO_STRIDE_LOAD_P): New accessor.
9557         (vect_check_strided_load): Declare.
9558         * tree-vect-data-refs.c (vect_check_strided_load): New function.
9559         (vect_analyze_data_refs): Use it to accept strided loads.
9560         * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
9562 2012-04-17  Richard Guenther  <rguenther@suse.de>
9564         PR middle-end/53011
9565         * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
9566         loops when redirecting an entry or latch edge.
9568 2012-04-17  Bernd Schmidt  <bernds@codesourcery.com>
9570         * sel-sched.c (sel_global_init): Revert previous change.
9572 2012-04-17  Richard Guenther  <rguenther@suse.de>
9574         * tree-flow.h (array_at_struct_end_p): Move declaration ...
9575         * tree.h (array_at_struct_end_p): ... here.
9576         * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
9577         * expr.c (array_at_struct_end_p): ... here.  Rewrite.
9579 2012-04-17  Steven Bosscher  <steven@gcc.gnu.org>
9581         * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
9582         COST_TABLE): Remove.
9583         (estimate_case_costs): Remove.
9584         (expand_case): Do not call estimate_case_costs
9585         to set use_cost_table.
9586         (balance_case_nodes): Do not use use_cost_table.
9588 2012-04-16  Jan Hubicka  <jh@suse.cz>
9590         * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
9591         (hash_node, eq_node): Remove.
9592         (cgraph_create_node): Do not handle hashtable.
9593         (cgraph_get_node): Remove.
9594         (cgraph_insert_node_to_hashtable): Remove.
9595         (hash_node_by_assembler_name): Remove.
9596         (eq_assembler_name): Remove.
9597         (cgraph_node_for_asm): Rewrite.
9598         (cgraph_find_replacement_node): Break out from ...
9599         (cgraph_remove_node): ... here; do not maintain hashtables.
9600         (change_decl_assembler_name): Remove.
9601         (cgraph_clone_node): Do not maintain hashtables.
9602         * cgraph.h (const_symtab_node): New typedef.
9603         (cgraph_insert_node_to_hashtable): Remove.
9604         (symtab_get_node, symtab_node_for_asm,
9605         symtab_insert_node_to_hashtable): Declare.
9606         (cgraph_find_replacement_node): Declare.
9607         (cgraph_get_node, varpool_get_node): Turn into inlines.
9608         (cgraph, varpool): Work sanely on NULL pointers.
9609         (FOR_EACH_SYMBOL): New walker.
9610         * ipa-inline-transform.c (save_inline_function_body): Use
9611         symtab_insert_node_to_hashtable.
9612         * symtab.c: Include ggc.h and diagnostics.h
9613         (symtab_hash, assembler_name_hash): New static vars;
9614         (hash_node, eq_node, hash_node_by_assembler_name,
9615         eq_assembler_name, insert_to_assembler_name_hash,
9616         unlink_from_assembler_name_hash): New.
9617         (symtab_register_node): Update hashtables.
9618         (symtab_insert_node_to_hashtable): New.
9619         (symtab_unregister_node): Update hashtables.
9620         (symtab_get_node): New.
9621         (symtab_node_for_asm): New.
9622         (change_decl_assembler_name): New.
9623         * Makefile.in (symtab.o): Needs GTY.
9624         * varpool.c (varpool_hash): Remove.
9625         (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
9626         (varpool_node): Rewrite using varpool_get_node.
9627         (varpool_remove_node): DO not maintain hashtables.
9628         (varpool_node_for_asm): Rewrite.
9630 2012-04-16  Sandra Loosemore  <sandra@codesourcery.com>
9632         * doc/invoke.texi:  Copy-edit to put verbs in the present tense
9633         when describing the current behavior of GCC.
9635 2012-04-16  Richard Sandiford  <rdsandiford@googlemail.com>
9637         * genemit.c (gen_exp): Remove ADDRESS handling.
9638         * genoutput.c (scan_operands): Likewise.
9639         * genpeep.c (match_rtx): Likewise.
9640         * genrecog.c (add_to_sequence): Likewise.
9642 2012-04-16  David Edelsohn  <dje.gcc@gmail.com>
9644         * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
9646 2012-04-16  Martin Jambor  <mjambor@suse.cz>
9648         * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
9649         bit-fields.
9651 2012-04-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
9653         PR target/51819
9654         * config/arm/arm.c (arm_print_operand): Fix invalid alignment
9655         hints for 'A' operand types.
9657 2012-04-16  Jan Hubicka  <jh@suse.cz>
9659         * cgraph.h (symtab_node_base): Add next and previous pointers.
9660         (cgraph_node): Remove next and preivous pointers.
9661         (varpool_node): Likewise; remove next/previous GTY marker;
9662         it is not type safe.
9663         (symtab_node_def): Update GTY marker
9664         (x_cgraph_nodes, cgraph_nodes): Remove.
9665         (symtab_nodes): New function.
9666         (cgraph_order): Rename to ...
9667         (symtab_order): ... this one.
9668         (symtab_register_node, symtab_unregister_node, symtab_remove_node):
9669         Declare.
9670         (x_varpool_nodes, varpool_nodes): Remove.
9671         (FOR_EACH_STATIC_VARIABLE): Update.
9672         (symtab_function_p, symtab_variable_p): New function.
9673         (FOR_EACH_VARIABLE): Update.
9674         (varpool_first_variable, varpool_next_variable): New functions.
9675         (FOR_EACH_VARIABLE): Update.
9676         (cgraph_first_defined_function): Update.
9677         (cgraph_next_defined_function, cgraph_next_defined_function): Update.
9678         (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
9679         (cgraph_first_function, cgraph_next_function): New.
9680         (FOR_EACH_FUNCTION): Update.
9681         (cgraph_first_function_with_gimple_body,
9682         cgraph_next_function_with_gimple_body): Update.
9683         * symtab.c: New file.
9684         * cgraph.c: Update copyright dates.
9685         (x_cgraph_nodes, cgraph_order): Remove.
9686         (NEXT_FREE_NODE): Update.
9687         (SET_NEXT_FREE_NODE): New.
9688         (cgraph_create_node_1): Remove common code.
9689         (cgraph_create_node): Remove common code; call symtab_register_node.
9690         (cgraph_remove_node): Remove common code; call symtab_unregister-node.
9691         (cgraph_add_asm_node): Update.
9692         (cgraph_clone_node): Register new node.
9693         * cgraphunit.c (process_function_and_variable_attributes): Update.
9694         (cgraph_analyze_functions): Update.
9695         (cgraph_analyze_functions): Update.
9696         (cgraph_output_in_order): Update.
9697         * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
9698         Update.
9699         * ipa-inline.c (recursive_inlining): Update.
9700         * lto-streamer-in.c (lto_input_toplevel_asms): Update.
9701         * ipa.c (cgraph_remove_unreachable_nodes): Update.
9702         * Makefile.in: Add symtab.o
9703         * varpool.c (x_varpool_nodes): Remove
9704         (varpool_node): Remove common code; call symtab_register_node.
9705         (varpool_remove_node): Remove common code; call symtab_unregister_node.
9707 2012-04-16  Richard Guenther  <rguenther@suse.de>
9709         PR middle-end/52977
9710         * tree.h (VECTOR_CST_NELTS): Adjust.
9711         (struct tree_vector): Add explicit length field.
9712         (make_vector_stat): Declare.
9713         (make_vector): Define.
9714         * tree.c (make_vector_stat): New function.
9715         (build_vector_stat): Use it.
9716         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
9718 2012-04-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9720         PR tree-optimization/52976
9721         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
9722         (undistribute_ops_list): Ops with repeat counts aren't eligible for
9723         undistribution.
9724         (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
9726 2012-04-16  Jan Hubicka  <jh@suse.cz>
9728         * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
9729         New macros.
9730         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
9731         walkers to walk cgraph and varpool.
9732         * cgraph.c (cgraph_node_for_asm): Likewise.
9733         (dump_cgraph): Likewise.
9734         * value-prof.c (init_node_map): Likewise.
9735         * tree.c (free_lang_data_in_cgraph): Likewise.
9736         * tree-emutls.c: (ipa_lower_emutls): Likewise.
9737         * ipa-reference.c (generate_summary, propagate): Likewise.
9738         * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
9739         cgraph_mark_functions_to_output, cgraph_output_in_order,
9740         output_weakrefs, cgraph_materialize_all_clones,
9741         cgraph_optimize): Likewise.
9742         * lto-cgraph.c (merge_profile_summaries): Likewise.
9743         (input_cgraph): Likewise.
9744         * ipa-pure-const.c (generate_summary): Likewise.
9745         (propagate): Likwise.
9746         * ipa-utils.c (ipa_reduced_postorder): Likewise.
9747         (ipa_free_postorder_info): Likewise.
9748         (ipa_reverse_postorder): Likewise.
9749         * ipa-inline.c (ipa_inline): Likewise.
9750         * matrix-reorg.c (find_matrices_decl): Likewise.
9751         (matrix_reorg): Likewise.
9752         * tree-vectorizer.c (increase_alignment): Likewise.
9753         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
9754         (function_and_variable_visibility): Likewise.
9755         (whole_program_function_and_variable_visibility): Likewise.
9756         (ipa_cdtor_merge): Likewise.
9757         * trans-mem.c (ipa_tm_execute): Likewise.
9758         * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
9759         * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
9760         (ipa_print_all_params): Likewise.
9761         (ipa_update_after_lto_read): Likewise.
9762         * tree-profie.c (tree_profiling): Likewise.
9763         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
9764         * passes.c (dump_passes): Likewise.
9765         (do_per_function): Likewise.
9766         (ipa_write_summaries): Likewise.
9767         * varpool.c (dump_varpool): Likewise.
9768         (varpool_node_for_asm): Likewise.
9769         (varpool_assemble_pending_decls): Likewise.
9771 2012-04-16  Richard Guenther  <rguenther@suse.de>
9773         PR tree-optimization/52975
9774         * tree-if-conv.c (predicate_bbs): Do not simplify inverted
9775         condition but always mark it with TRUTH_NOT_EXPR.
9777 2012-04-16  Richard Guenther  <rguenther@suse.de>
9779         PR tree-optimization/52975
9780         * tree-ssa-forwprop.c (combine_cond_exprs): New function.
9781         (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
9782         and VEC_COND_EXPRs.  Also combine into VEC_COND_EXPRs condition.
9783         * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
9785 2012-04-14  Uros Bizjak  <ubizjak@gmail.com>
9787         * config/i386/sse.md (ssse3_plusminus): New code iterator.
9788         (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
9789         avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
9790         (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
9791         ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
9792         (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
9793         ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
9795         (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
9796         avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
9797         (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
9798         ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
9799         (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
9800         ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
9802         (xop_plus): New code iterator.
9803         (macs): New code attribute.
9804         (macds): Ditto.
9805         (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
9806         xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
9807         iterator.
9808         (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
9809         xop_plus code iterator.
9810         (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
9811         xop_plus code iterator.
9812         (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
9813         xop_plus code iterator.
9814         (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
9815         xop_plus code iterator.
9817         (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
9818         any_extend code iterator.
9819         (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
9820         any_extend code iterator.
9821         (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
9822         any_extend code iterator.
9823         (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
9824         any_extend code iterator.
9825         (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
9826         any_extend code iterator.
9827         (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
9828         any_extend code iterator.
9830 2012-04-14  Tom de Vries  <tom@codesourcery.com>
9832         * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
9833         call to delete_insn.  Remove code to reorder BASIC_BLOCK note and
9834         DELETED_LABEL note, and move it to ...
9835         * cfgrtl.c (delete_insn): ... here.  Change return type to void.
9836         (delete_insn_and_edges): Likewise.
9837         (delete_insn_chain): Handle new return type of delete_insn.  Delete
9838         chain backwards rather than forwards.
9839         * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
9840         void.
9841         * cfglayout.c (fixup_reorder_chain): Delete unused label.
9843 2012-04-14  Jan Hubicka  <jh@suse.cz>
9845         * cgraph.h: Update copyrights;
9846         (symtab_node): Turn to union typedef.
9847         (symtab_node_base): New structure.
9848         (symtab_type): Add SYMTAB_SYMBOL tag.
9849         (cgraph_node): Annotate some pinters with nested_ptr.
9850         (varpool_node): Likewise.
9851         (cgraph_local_info): Remove lto_file_data
9852         and externally_visible.
9853         (cgraph_node): Remove decl; same_comdat_group list;
9854         aux; ref_list; order; address_taken; reachable_from_other_parittion,
9855         in_other_partition; resolution.
9856         (varpool_node): Remove decl; same_comdat_group;
9857         ref_list; lto_file_data; aux; order; resolution; externally_visible;
9858         used_from_other_partition; in_other_partition.
9859         (symtab_node_def): New union.
9860         (cgraph, varpool): Update.
9861         (varpool_first_static_initializer, varpool_next_static_initializer,
9862         cgraph_only_called_directly_or_aliased_p,
9863         varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
9864         varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
9865         varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
9866         field references.
9867         * cgraph.c: Likewise.
9868         (cgraph_hash, assembler_name_hash): Turn into symtab_node.
9869         * cgraphbuild.c: Likewise.
9870         * lto-symtab.c: Likewise.
9871         * c-gimplify.c: Likewise.
9872         * value-prof.c: Likewise.
9873         * tree.c: Likewise.
9874         * ipa-cp.c: Likewise.
9875         * tree-emutls.c: Likewise.
9876         * ipa-inline-transform.c: Likwise.
9877         * ipa-reference.c: Likewise.
9878         * cgraphunit.c: Likewise.
9879         * ipa-ref.c: Likewise.
9880         * lto-cgraph.c: Likewise.
9881         * ipa-ref-inline.h: Likewise.
9882         * ipa-pure-const.c: Likewise.
9883         * lto-streamer-out.c: Likewise.
9884         * ipa-utils.c: Likewise.
9885         * ipa-inline.c: Likewise.
9886         * matrix-reorg.c: Likewise.
9887         * tree-eh.c: Likewise.
9888         * tree-vectorizer.c: Likewise.
9889         * ipa-split.c: Likewise.
9890         * ipa.c: Likewise.
9891         * trans-mem.c: Likewise.
9892         * ipa-inline-analysis.c: Likewise.
9893         * gimplify.c: Likewise.
9894         * cfgexpand.c: Likewise.
9895         * tree-sra.c: Likewise.
9896         * ipa-prop.c: Likewise.
9897         * varasm.c: Likewise.
9898         * tree-nested.c: Likewise.
9899         * tree-inline.c: Likewise.
9900         * tree-profile.c: Likewise.
9901         * tree-ssa-structalias.c: Likewise.
9902         * passes.c: Likewise.
9903         * varpool.c: Likewise.
9905 2012-04-14  Tom de Vries  <tom@codesourcery.com>
9907         * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
9908         same_succ_hash, with local_def inlined.  Use SINGLE_SSA_DEF_OPERAND.
9909         Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT.  Remove use
9910         of find_edge.
9911         (gsi_advance_fw_nondebug_nonlocal): New function.
9912         (local_def): Removed function.
9913         (same_succ_hash): Use stmt_local_def.
9914         (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
9915         (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
9917 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9919         * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
9920         and __ILP32__ for x32.
9922 2012-04-13  Martin Jambor  <mjambor@suse.cz>
9924         PR middle-end/52939
9925         * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
9926         fold_ctor_reference returns a zero constant.
9928 2012-04-13  Enkovich Ilya  <ilya.enkovich@intel.com>
9930         * config.gcc: Add i386/gnu-user-common.h before all
9931         i386/gnu-user.h and i386/gnu-user64.h usages.
9933         * config/i386/gnu-user-common.h: New.
9935         * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
9936         (CC1_SPEC): Likewise.
9937         (ENDFILE_SPEC): Likewise.
9938         (DEFAULT_PCC_STRUCT_RETURN): Likewise.
9939         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
9940         (TARGET_OS_CPP_BUILTINS): Likewise.
9941         (LIBGCC2_HAS_TF_MODE): Likewise.
9942         (LIBGCC2_TF_CEXT): Likewise.
9943         (TF_SIZE): Likewise.
9944         (TARGET_ASM_FILE_END): Likewise.
9945         (STACK_CHECK_MOVING_SP): Likewise.
9946         (STACK_CHECK_STATIC_BUILTIN): Likewise.
9947         * config/i386/gnu-user64.h: Likewise.
9949 2012-04-13  Martin Jambor  <mjambor@suse.cz>
9951         * expr.c (expand_expr_real_1): Pass type, not the expression, to
9952         set_mem_attributes for a memory temporary. Do not call the function
9953         for the memory temporary created for a bitfield.
9955 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
9957         PR debug/48866
9958         * df.h (enum debug_temp_where): New.
9959         (dead_debug_init, dead_debug_finish) Declare.
9960         (dead_debug_add, dead_debug_insert_temp): Declare.
9961         (struct dead_debug_use, struct dead_debug): Moved from...
9962         * df-problems.c: ... here.
9963         (df_set_unused_notes_for_mw): Bind debug uses of unused regno
9964         to a debug temp.
9965         (df_create_unused_note): Likewise.
9966         (df_set_dead_notes_for_mw): Move comment where it belongs.
9967         (dead_debug_init): Export.
9968         (dead_debug_reset_uses): New, factored out of...
9969         (dead_debug_finish): ...this.  Export.
9970         (dead_debug_reset): Remove.
9971         (dead_debug_add): Export.
9972         (dead_debug_insert_before): Rename to...
9973         (dead_debug_insert_temp): ... this.  Add where argument.  Export.
9974         Locate stored value for BEFORE_WITH_VALUE.  Avoid repeat inserts.
9975         Return insertion count.
9976         (df_note_bb_compute): Adjust.
9977         * dce.c (word_dce_process_block): Adjust dead debug uses.
9978         (dce_process_block): Likewise.
9980 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
9982         * df-problems.c (df_note_bb_compute): Do not take note of
9983         debug uses for whose REGs we won't emit DEAD or UNUSED notes.
9985 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
9987         PR debug/51570
9988         * var-tracking.c (expand_depth): New type.
9989         (onepart_aux, expand_loc_callback_data): Change depth type to it.
9990         (loc_exp_dep_alloc): Adjust initializer.
9991         (update_depth): Use new type.  Add entryvals.
9992         (vt_expand_var_loc_chain): Take note of expansions with
9993         ENTRY_VALUEs, but don't accept them right away.  Run an optional
9994         second pass accepting the minimum ENTRY_VALUE count found in the
9995         first pass.
9996         (vt_expand_loc_callback, INIT_ELCD): Adjust.
9998 2012-04-13  Tom de Vries  <tom@codesourcery.com>
10000         * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
10001         parameters vuse and vuse_escaped.
10002         (find_duplicate): Init vuse1, vuse2 and vuse_escaped.  Pass to
10003         gsi_advance_bw_nondebug_nonlocal.  Return if vuse_escaped and
10004         vuse1 != vuse2.
10006 2012-04-13  Richard Guenther  <rguenther@suse.de>
10008         PR tree-optimization/52969
10009         * tree-if-conv.c (predicate_mem_writes): Properly gimplify
10010         the condition for the COND_EXPR and handle predicate negation
10011         by swapping the COND_EXPR arms.
10013 2012-04-13  Nick Clifton  <nickc@redhat.com>
10015         * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
10016         TODO_dump_func flag.
10018 2012-04-13  Andrey Belevantsev  <abel@ispras.ru>
10020         PR rtl-optimization/52203
10021         PR rtl-optimization/52715
10023         Revert the 2012-03-07 fix for PR 52203.
10024         * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
10025         the insn does not modify DFA right before issuing, adjust
10026         issue_rate accordingly.
10028 2012-04-13  Richard Guenther  <rguenther@suse.de>
10030         PR c/52549
10031         * c-typeck.c (pointer_diff): Remove bogus assert.
10033 2012-04-13  Richard Guenther  <rguenther@suse.de>
10035         PR c/52862
10036         * convert.c (convert_to_pointer): Remove special-casing of zero.
10038 2012-04-13  Joey Ye  <joey.ye@arm.com>
10040         * config/arm/constraints.md (Pe): New constraint.
10041         * config/arm/arm.md: New split for imm 256-510.
10043 2012-04-13  Terry Guo  <terry.guo@arm.com>
10045         * config/arm/arm-cores.def: Added core cortex-m0plus.
10046         * config/arm/arm-tune.md: Regenerated.
10047         * config/arm/arm-tables.opt: Regenerated.
10048         * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
10050 2012-04-13  Alan Modra  <amodra@gmail.com>
10052         PR target/52828
10053         * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
10054         tie regs on destination of sets.  Delete forward declaration.
10055         (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
10056         (rs6000_emit_prologue): Likewise.
10057         (rs6000_emit_epilogue): Likewise.  Use in place of gen_frame_tie
10058         and gen_stack_tie.
10059         (is_mem_ref): Use tie_operand to recognise stack ties.
10060         * config/rs6000/predicates.md (tie_operand): New.
10061         * config/rs6000/rs6000.md (restore_stack_block): Generate new
10062         stack tie rtl.
10063         (restore_stack_nonlocal): Likewise.
10064         (stack_tie): Update.
10065         (frame_tie): Delete.
10067 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10069         * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
10070         HOST_WIDE_INT_PRINT_DEC in format strings.
10072 2012-04-12  Uros Bizjak  <ubizjak@gmail.com>
10074         PR target/52932
10075         * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
10076         argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
10077         * config/i386/sse.md (UNSPEC_VPERMVAR): New.
10078         (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
10079         (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
10080         (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
10081         avx2_permvarv8si using VI4F_256 mode iterator.
10082         * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
10083         Update builtin type to V8SF_FTYPE_V8SF_V8SI.
10084         (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
10085         gen_avx2_permvarv8sf.
10086         (expand_vec_perm_pshufb): Ditto.
10088 2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10090         PR target/52775
10091         * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
10092         the list of options to enable the FCFID instruction.
10093         (TARGET_EXTRA_BUILTINS): Adjust comment.
10095 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10097         PR tree-optimization/18589
10098         * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
10099         (operand_entry): Add count field.
10100         (add_repeat_to_ops_vec): New function.
10101         (completely_remove_stmt): Likewise.
10102         (remove_def_if_absorbed_call): Likewise.
10103         (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
10104         (acceptable_pow_call): New function.
10105         (linearize_expr_tree): Look for builtin pow/powi calls and add operand
10106         entries with repeat counts when found.
10107         (repeat_factor_d): New struct and associated typedefs.
10108         (repeat_factor_vec): New static vector variable.
10109         (compare_repeat_factors): New function.
10110         (get_reassoc_pow_ssa_name): Likewise.
10111         (attempt_builtin_powi): Likewise.
10112         (reassociate_bb): Call attempt_builtin_powi.
10113         (fini_reassoc): Two new calls to statistics_counter_event.
10115 2012-04-12  Richard Guenther  <rguenther@suse.de>
10117         * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
10118         * cgraph.h (tree_rest_of_compilation): Remove.
10119         * cgraph.c (cgraph_add_new_function): Move ...
10120         * cgraphunit.c (cgraph_add_new_function): ... here.
10121         (tree_rest_of_compilation): Make static.
10122         (cgraph_expand_function): Do not set cgraph_function_flags_ready.
10123         * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
10124         gate_all_early_local_passes, execute_all_early_local_passes,
10125         pass_early_local_passes, gate_all_early_optimizations,
10126         pass_all_early_optimizations): Move ...
10127         * passes.c (gate_all_optimizations, pass_all_optimizations,
10128         gate_all_early_local_passes, execute_all_early_local_passes,
10129         pass_early_local_passes, gate_all_early_optimizations,
10130         pass_all_early_optimizations): ... here.
10131         * tree-optimize.c (execute_free_datastructures): Remove.
10132         * tree-flow.h (execute_free_datastructures): Remove.
10133         * tree-optimize.c (execute_init_datastructures,
10134         pass_init_datastructures): Move ...
10135         * tree-ssa.c (execute_init_datastructures,
10136         pass_init_datastructures): ... here.
10137         * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
10138         execute_free_datastructures.
10140 2012-04-12  Bernd Schmidt  <bernds@codesourcery.com>
10142         * dbgcnt.def (ira_move): New counter.
10143         * ira-int.h (ira_create_new_reg): Declare function.
10144         (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
10145         * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
10146         no longer static.  All callers changed.
10147         * ira.c: Include "dbgcnt.h".
10148         (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
10149         move_unallocated_pseudos): New static functions.
10150         (first_moveable_pseudo, last_moveable_pseudo): New global variables.
10151         (pseudo_replaced_reg, pseudo_move_insn): New static variables.
10152         (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
10153         * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
10154         to the pseudos generated in find_moveable_pseudos.
10155         * Makefile.in (ira.o): Add $(DBGCNT_H).
10157 2012-04-12  Richard Guenther  <rguenther@suse.de>
10159         PR tree-optimization/52943
10160         * tree-chrec.h (chrec_is_positive): Remove.
10161         * tree-scalar-evolution.c (chrec_is_positive): Move ...
10162         * tree-data-ref.c (chrec_is_positive): ... here.  Make static.
10163         Return false for a constant zero instead of negative.
10164         (analyze_siv_subscript_cst_affine): Handle zero difference
10165         in the initial condition explicitely.
10167 2012-04-12  Richard Guenther  <rguenther@suse.de>
10169         * tree-parloops.c (parallelize_loops): Also consult the upper
10170         bound for the number of iterations.
10171         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10172         (loop_prefetch_arrays): Likewise.
10174 2012-04-12  Richard Guenther  <rguenther@suse.de>
10176         * cfgloop.h (estimated_loop_iterations_int): Ditch
10177         'conservative' parameter.
10178         (max_stmt_executions_int): Likewise.
10179         (estimated_loop_iterations): Likewise.
10180         (max_stmt_executions): Likewise.
10181         (max_loop_iterations): Declare.
10182         (max_loop_iterations_int): Likewise.
10183         (estimated_stmt_executions): Likewise.
10184         (estimated_stmt_executions_int): Likewise.
10185         * tree-ssa-loop-niter.c (estimated_loop_iterations):
10186         Split parts to ...
10187         (max_loop_iterations): ... this.
10188         (estimated_loop_iterations_int): Split parts to ...
10189         (max_loop_iterations_int): ... this.
10190         (max_stmt_executions_int): Split parts to ...
10191         (estimated_stmt_executions_int): ... this.
10192         (max_stmt_executions): Split parts to ...
10193         (estimated_stmt_executions): ... this.
10194         * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
10195         * predict.c (predict_loops): Likewise.
10196         * tree-data-ref.c (max_stmt_executions_tree): Likewise.
10197         (analyze_siv_subscript_cst_affine): Likewise.
10198         (compute_overlap_steps_for_affine_1_2): Likewise.
10199         (analyze_subscript_affine_affine): Likewise.
10200         (init_omega_for_ddr_1): Likewise.
10201         * tree-parloops.c (parallelize_loops): Likewise.
10202         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10203         (may_eliminate_iv): Likewise.
10204         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10205         (loop_prefetch_arrays): Likewise.
10206         * tree-vrp.c (adjust_range_with_scev): Likewise.
10208 2012-04-12  Oleg Endo  <olegendo@gcc.gnu.org>
10210         * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
10211         * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
10212         Fix line width.
10213         (dump_table): Use bool type for need_align and have_df variables.
10214         (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
10215         (regs_used): Remove register modifier.
10216         (barrier_align): Move variables slot, credit, jump_to_next
10217         into if block above for loop.  Use bool type for jump_to_next.
10218         (sh_function_arg): Use NULL_RTX instead of 0.
10220 2012-04-11  Andreas Schwab  <schwab@linux-m68k.org>
10222         * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
10223         (bswapsi2): New expander.
10225 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10227         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
10228         0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
10230 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10232         PR rtl-optimization/52876
10233         * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
10234         Don't call mark_reg_pointer for incompatible pointer sign extension.
10236         * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
10237         directly.
10239 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
10241         * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
10242         comparisons against TYPE_PRECISION.
10243         * tree-ssa-forwprop.c (combine_conversions): Likewise.
10245 2012-04-11  Xinliang David Li  <davidxl@google.com>
10247         * tree-passes.h: Remove TODO_dump_func.
10248         * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
10249         * trans-mem.c: Remove TODO_dump_func.
10250         * ira.c: Remove TODO_dump_func.
10252 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10254         * config/i386/i386.c (ix86_option_override_internal): Check
10255         SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
10256         after TARGET_64BIT is updated.
10258 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
10260         * config/sh/sh.h: Remove old secondary reload code.
10262 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
10264         * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
10265         (ready_reorder): ... this function.
10267 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
10269         * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
10270         sched_init calls.
10272         * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
10273         insns so that no other insn is queued for a time before them.
10275         * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
10276         unknown.
10278 2012-04-11  Richard Guenther  <rguenther@suse.de>
10280         PR middle-end/52621
10281         * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
10282         consider loop nesting.
10283         (evolution_function_is_univariate_p): Properly check the remainder
10284         for chrecs.
10286 2012-04-11  Richard Guenther  <rguenther@suse.de>
10288         PR middle-end/52918
10289         * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
10291 2012-04-11  Nick Clifton  <nickc@redhat.com>
10293         * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
10294         information, if requested.
10296         * config/rx/rx.c (rx_expand_prologue): Likewise.
10298 2012-04-11  Peter Bergner  <bergner@vnet.ibm.com>
10299             Michael Matz  <matz@suse.de>
10301         PR target/16458
10302         * rtlanal.c (unsigned_reg_p): New function.
10303         Update copyright notice dates.
10304         * rtl.h (unsigned_reg_p): Prototype it.
10305         Update copyright notice dates.
10306         * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
10307         Update comment.
10308         * expr.c (expand_expr_real_1): Set register attributes.
10309         * stmt.c (expand_case): Likewise.
10311 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
10313         PR target/50751
10314         * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
10315         consider_sh2a and allow_zero.
10316         * config/sh/sh.c (sh_legitimate_index_p): Likewise.
10317         (disp_addr_displacement): New function.
10318         (sh_address_cost): Use disp_addr_displacement function instead
10319         of DISP_ADDR_OFFSET.
10320         (sh_legitimate_address_p): Adapt to changed
10321         sh_legitimate_index_p declaration.
10322         (sh_find_mov_disp_adjust): Remove HImode check.
10323         (sh_secondary_reload): Add HImode case.  Use satisfies_constraint_Sdd,
10324         disp_addr_displacement and max_mov_insn_displacement.
10325         (max_mov_insn_displacement): Remove HImode check.
10326         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
10327         DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
10328         * config/sh/constraints.md (K05, K13): New constraints.
10329         (K12): Correct comment.
10330         (Sdd): Do not use DISP_ADDR_P macro.
10331         (Snd, Sbw): Use satisfies_constraint_Sdd.
10332         * config/sh/sh.md (extendhisi2): Remove constraints from expander.
10333         (*extendhisi2_compact, movhi_i): Remove.
10334         (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
10335         *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
10336         *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
10337         *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
10338         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
10339         *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
10340         *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
10341         CONST_OK_FOR_Kxx.
10342         Add new peepholes for HImode displacement addressing.
10344 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
10346         * config/sh/sh.h (SIDI_OFF): Remove.
10347         * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
10348         DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
10349         or operand_subword.
10351 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
10353         PR target/52624
10354         * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
10355         (PowerPC AltiVec/VSX Built-in Functions): Remove it.
10356         * doc/md.texi (Standard Names): Add bswap.
10357         * builtin-types.def (BT_UINT16): New primitive type.
10358         (BT_FN_UINT16_UINT16): New function type.
10359         * builtins.def (BUILT_IN_BSWAP16): New.
10360         * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
10361         (expand_builtin) <BUILT_IN_BSWAP16>: New case.  Pass TARGET_MODE to
10362         expand_builtin_bswap.
10363         (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
10364         (fold_builtin_1): Likewise.
10365         (is_inexpensive_builtin): Likewise.
10366         * optabs.c (expand_unop): Deal with bswap in HImode specially.  Add
10367         missing bits for bswap to libcall code.
10368         * tree.c (build_common_tree_nodes): Build uint16_type_node.
10369         * tree.h (enum tree_index): Add TI_UINT16_TYPE.
10370         (uint16_type_node): New define.
10371         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
10372         * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
10373         above builtin.
10374         (rs6000_init_builtins): Likewise.
10375         * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
10377 2012-04-11  Tristan Gingold  <gingold@adacore.com>
10379         * doc/extend.texi (Type Attributes): Move paragraph.
10381 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10383         PR 24985
10384         * diagnostic.h (show_caret): Declare.
10385         (caret_max_width): Declare.
10386         (diagnostic_show_locus): Declare.
10387         * diagnostic.c (diagnostic_initialize): Initialize to false.
10388         (diagnostic_show_locus): New.
10389         (diagnostic_report_diagnostic): Call it.
10390         (getenv_columns): New.
10391         (adjust_line): New.
10392         (diagnostic_set_caret_max_width): New.
10393         * input.c (read_line): New.
10394         (location_get_source_line): New.
10395         * input.h (location_get_source_line): Declare.
10396         * toplev.c (general_init): Initialize show_caret from options.
10397         * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
10398         * opts.c (common_handle_option): Likewise.
10399         * pretty-print.h (pp_get_prefix): New.
10400         (pp_base_get_prefix): New.
10401         * common.opt (fdiagnostics-show-caret): New option.
10402         * doc/invoke.texi (fdiagnostics-show-caret): Document it.
10404 2012-04-11  Richard Guenther  <rguenther@suse.de>
10406         PR rtl-optimization/52881
10407         * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
10409 2012-04-11  Richard Guenther  <rguenther@suse.de>
10411         PR tree-optimization/52912
10412         * tree-ssa-threadupdate.c (thread_block): Tell the cfg
10413         manipulation code we are threading through a loop header
10414         to an exit destination.
10416 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10418         * tree.h (warn_if_unused_value): Move declaration from here.
10419         * stmt.c (warn_if_unused_value): Move definition from here.
10421 2012-04-10  Michael Matz  <matz@suse.de>
10423         * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
10424         grouped_stores.
10425         (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
10426         (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
10427         (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
10428         (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
10429         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
10430         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
10431         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
10432         (vect_record_strided_load_vectors): Rename to
10433         vect_record_grouped_load_vectors.
10434         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
10435         Rename use of above macros.
10436         (vect_verify_datarefs_alignment): Ditto.
10437         (vector_alignment_reachable_p): Ditto.
10438         (vect_peeling_hash_get_lowest_cost): Ditto.
10439         (vect_enhance_data_refs_alignment): Ditto.
10440         (vect_analyze_group_access): Ditto and rename stride to groupsize.
10441         (vect_analyze_data_ref_access): Rename "strided" to "grouped".
10442         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
10443         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
10444         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
10445         (vect_record_strided_load_vectors): Rename to
10446         vect_record_grouped_load_vectors.
10447         * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
10448         (destroy_loop_vec_info): Ditto.
10449         (vect_transform_loop): Ditto and rename strided_store to grouped_store.
10450         * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
10451         (vect_analyze_slp): Ditto.
10452         (new_bb_vec_info): Ditto.
10453         (destroy_bb_vec_info): Ditto.
10454         (vect_schedule_slp_instance): Ditto and rename strided_store to
10455         grouped_store.
10456         * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
10457         vect_cost_group_size.
10458         (vect_model_store_cost): Rename use of above macros and call
10459         to vect_cost_strided_group_size.
10460         (vect_model_load_cost): Ditto.
10461         (vectorizable_store): Ditto, rename strided_store to grouped_store
10462         and calls to renamed tree-vectorizer.h functions.
10463         (vectorizable_load): Ditto.
10464         (vect_transform_stmt): Rename use of above macros and strided_store
10465         to grouped_store.
10467 2012-04-10  Jan Hubicka  <jh@suse.cz>
10469         * cgraph.h: Remove misledaing comment on ipa-ref.h.
10470         (symtab_type): New enum.
10471         (symtab_node): New structure.
10472         (cgraph_node, varpool_node): Add symbol base type.
10473         (cgraph, varpool): New accestor functions.
10474         * cgraph.c (cgraph_create_node_1): Set symbol type.
10475         * varpool.c (varpool_node): Set symbol type.
10477 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
10478             Richard Sandiford  <rdsandiford@googlemail.com>
10480         * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
10482 2012-04-10  Richard Guenther  <rguenther@suse.de>
10484         PR middle-end/52888
10485         * gimple-low.c (gimple_check_call_args): Properly account for
10486         compatible aggregate types.
10488 2012-04-10  Richard Guenther  <rguenther@suse.de>
10490         * toplev.h (tree_rest_of_compilation): Remove.
10491         * tree-optimize.c (tree_rest_of_compilation): Likewise.
10492         * cgraph.h (tree_rest_of_compilation): Declare.
10493         * tree-optimize.c (tree_rest_of_compilation): Move ...
10494         * cgraphunit.c (tree_rest_of_compilation): ... here.
10495         * cgraph.c (cgraph_add_new_function): Adjust.
10496         * Makefile.in (tree-optimize.o): Adjust.
10497         (cgraphunit.o): Likewise.
10499 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
10501         PR tree-optimization/52870
10502         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
10503         presumed pattern statement is within the same loop or basic block.
10505 2012-04-10  Tristan Gingold  <gingold@adacore.com>
10507         * gengtype.c (main): Make uintptr_t a known type.
10509 2012-04-10  Richard Guenther  <rguenther@suse.de>
10511         * tree-pass.h (tree_lowering_passes): Remove.
10512         * tree-optimize.c (tree_lowering_passes): Remove.
10513         * cgraph.c (cgraph_add_new_function): Inline relevant parts
10514         of tree_lowering_passes, avoid redundant call of early local passes.
10515         * cgraphunit.c (cgraph_lower_function): Fold into ...
10516         (cgraph_analyze_function): ... its single caller.  Inline
10517         relevant parts of tree_lowering_passes.
10519 2012-04-09  H.J. Lu  <hongjiu.lu@intel.com>
10521         PR other/52777
10522         * config/pa/pa.opt: Remove SIO and GNU_LD.
10524 2012-04-09  Jan Hubicka  <jh@suse.cz>
10526         PR lto/52722
10527         PR lto/51765
10528         PR lto/52634
10529         * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
10530         boundary, add its target too.
10531         * lto.c (add_references_to_partition): Add also aliased nodes.
10532         (add_cgraph_node_to_partition,
10533         add_varpool_node_to_partition): Work on nodes, not functions/variables;
10534         when adding alias, add also the aliased object.
10536 2012-04-09  Uros Bizjak  <ubizjak@gmail.com>
10538         PR target/52883
10539         * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
10540         VOIDmode immediate operands.
10541         * config/i386/constraints.md (Wz): New constraint.
10542         * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
10544 2012-04-09  Eric Botcazou  <ebotcazou@adacore.com>
10546         PR target/52717
10547         * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
10548         the DECL generated for the special GOT helper.
10550 2012-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
10552         * config/sh/constraints.md: Update list of constraints in
10553         comment block.
10554         (Sr0): Remove unused memory constraint.
10556 2012-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10558         * tree-pretty-print.h: Update comment.
10560 2012-04-08  Oleg Endo  <olegendo@gcc.gnu.org>
10562         * config/sh/sh.md: Use braced string notation where applicable.
10563         (*prefetch_i4, prefetch_m2a): Merge into ...
10564         (*prefetch): ... this new insn.
10566 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
10568         * config/sh/sh.h (high_life_started): Remove
10569         * config/sh/predicates.md (general_movdst_operand): Use
10570         'reload_in_progress' instead of 'high_life_started'.
10571         * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
10572         divsi_inv_fp): Likewise.
10574 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
10576         * config/sh/sh-protos.h (prepare_move_operands): Return void
10577         instead of int.
10578         * config/sh/sh.c (prepare_move_operands): Likewise.
10579         * config/sh/sh.md: Remove return value checks of prepare_move_operands.
10581 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
10583         * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
10584         general_movsrc_operand, general_movdst_operand, arith_reg_operand,
10585         fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
10586         logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
10587         commutative_float_operator, noncommutative_float_operator,
10588         sh_handle_pragma): Remove.
10590 2012-04-06  Sandra Loosemore  <sandra@codesourcery.com>
10592         * doc/invoke.texi:  Clean up Texinfo markup throughout the file.
10593         Use @option markup on command-line options.  Use @samp markup on
10594         literal keywords to options.  Use @code markup on code fragments.
10595         Use other markup in preference to quotation marks in the text.
10596         Add markup to some passages without any.
10598 2012-04-06  Mike Stump  <mikestump@comcast.net>
10600         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
10602 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
10604         * config/sh/sh.c (hi_const): Remove.
10605         (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
10606         of hi_const.
10608 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
10610         * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
10611         to bool.
10612         * config/sh/sh.c (sh_expand_t_scc): Likewise.
10613         * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
10614         calling sh_expand_t_scc.
10616 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
10618         * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
10619         nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
10620         sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
10621         reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
10622         sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
10623         sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
10624         check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
10625         sh2a_is_function_vector_call): Use bool as return type.
10626         (sh_pass_in_reg_p): Remove.
10627         * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
10628         flow_dependent_p, sh2a_function_vector_p, expand_block_move,
10629         expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
10630         sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
10631         sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
10632         sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
10633         fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
10634         sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
10635         sh_loads_bankedreg_p): Use bool as return type.
10636         (nonpic_symbol_mentioned_p): Use bool as return type.  Remove
10637         'register' modifier.
10639 2012-04-06  Matt Turner  <mattst88@gmail.com>
10641         * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
10643 2012-04-06  Eric Botcazou  <ebotcazou@adacore.com>
10645         * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
10646         of the destination isn't also a FP_REGS register.
10648 2012-04-05  Teresa Johnson  <tejohnson@google.com>
10649             H.J. Lu  <hongjiu.lu@intel.com>
10651         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
10652         * config/i386/i386.md (move immediate to memory peephole2):
10653         Add cases for HImode move when LCP stall avoidance is needed.
10654         * config/i386/i386.c (initial_ix86_tune_features): Initialize
10655         X86_TUNE_LCP_STALL entry.
10657 2012-04-05  Uros Bizjak  <ubizjak@gmail.com>
10659         PR target/52882
10660         * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
10661         CONST_INT operands, zero-extended with AND.
10663 2012-04-05  Oleg Endo  <olegendo@gcc.gnu.org>
10665         PR target/50751
10666         * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
10667         first argument instead of mode size.  Move displacement calculations
10668         to ...
10669         (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
10670         ... these new functions.
10671         (disp_adjust): Remove max_mov_disp field.
10672         (sh_legitimate_index_p): Use max_mov_insn_displacement and
10673         mov_insn_alignment_mask.
10674         (sh_address_cost): Use max_mov_insn_displacement.
10676 2012-04-05  Andrew Stubbs  <ams@codesourcery.com>
10678         * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
10679         (arch_enabled): Handle new arch types.
10680         (one_cmpldi2): Add NEON support.
10682 2012-04-05  Richard Guenther  <rguenther@suse.de>
10684         * gimple.c (walk_gimple_op): Compute val_only for the LHS
10685         of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
10686         (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
10687         * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
10688         ... here and make static.
10689         * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
10690         Remove.
10692 2012-04-05  Richard Guenther  <rguenther@suse.de>
10694         * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
10695         basic-block before removing it.
10697 2012-04-05  Richard Guenther  <rguenther@suse.de>
10699         * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
10700         version namespace as we release the freelist.
10702 2012-04-05  Richard Guenther  <rguenther@suse.de>
10704         * tree-nrv.c (tree_nrv): Release VDEFs.
10705         * tree-sra.c (sra_modify_constructor_assign): Likewise.
10706         (sra_modify_assign): Likewise.
10707         * tree-vect-stmts.c (vect_remove_stores): Likewise.
10708         * tree-vect-loop.c (vect_transform_loop): Likewise.
10709         * tree-ssa-dom.c (optimize_stmt): Likewise.
10710         * tree-vect-slp.c (vect_schedule_slp): Likewise.
10711         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
10713 2012-04-05  Richard Guenther  <rguenther@suse.de>
10715         * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
10716         cleanup.
10717         * gimple.h (gsi_remove): Adjust.
10718         * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
10719         * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
10720         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
10721         * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
10722         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
10723         * tree-ssa-pre.c (eliminate): Likewise.
10725 2012-04-04  Mike Stump  <mikestump@comcast.net>
10727         * doc/rtl.texi (const_double): Document as sign-extending.
10728         * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
10729         * emit-rtl.c (immed_double_int_const): Refine to state the
10730         value is signed.
10731         * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
10732         CONST_DOUBLE integers.
10733         (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
10734         negative values are converted.  Fix conversions bigger than
10735         HOST_BITS_PER_WIDE_INT.
10736         (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
10737         (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
10738         * explow.c (plus_constant_mode): Add.
10739         (plus_constant): Implement with plus_constant_mode.
10740         * rtl.h (plus_constant_mode): Add.
10742 2012-04-04  Richard Guenther  <rguenther@suse.de>
10744         PR tree-optimization/52808
10745         * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
10746         * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
10748 2012-04-04  Tristan Gingold  <gingold@adacore.com>
10750         * expr.c (expand_expr_real_2): Handle larger sizetype in
10751         POINTER_PLUS_EXPR.
10753 2012-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10755         * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
10756         to m2a-single instead of m2e.
10758 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
10760         * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
10761         Change type of BITOFFSET to signed.  Make sure the lower bound of
10762         the computed range is non-negative by adjusting OFFSET and BITPOS.
10763         (expand_assignment): Adjust call to get_bit_range.
10765 2012-04-03  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
10767         * h8300/h8300.c (h8300_current_function_monitor_function_p):
10768         New function. Added to check monitor functions.
10769         (h8300_option_override): Modified to generate error/warning
10770         messages for invalid combinations of different command line
10771         options.
10772         * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
10773         save EXR on stack for monitor function in case of H8S target
10774         when "-mno-exr" is passed.
10775         * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
10776         Add prototype.
10777         * doc/invoke.texi: Document H8S options.
10779 2012-04-03  Tristan Gingold  <gingold@adacore.com>
10781         * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
10782         of gcc_AC_FUNC_MMAP_BLACKLIST.
10783         * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
10784         * Makefile.in (aclocal_deps): Add mmap.m4.
10785         * configure: Regenerate.
10786         * aclocal.m4: Regenerate.
10788 2012-04-03  Richard Guenther  <rguenther@suse.de>
10790         PR tree-optimization/52808
10791         * tracer.c (tail_duplicate): Return whether we have duplicated
10792         any block.
10793         (tracer): If we have duplicated any block, cleanup the CFG.
10794         * cfghooks.c (duplicate_block): If we duplicated a loop
10795         header but not its loop, destroy the loop because it now has
10796         multiple entries.
10797         * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
10798         the cfg manipulation routines we are not creating a multiple
10799         entry loop.
10801 2012-04-03  Tristan Gingold  <gingold@adacore.com>
10803         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
10804         'byte' alignment.
10805         (vms_c_common_override_options): Allow parameterless variadic
10806         functions.
10808 2012-04-03  Jakub Jelinek  <jakub@redhat.com>
10810         PR tree-optimization/52835
10811         * tree-data-ref.c (build_rdg): Return NULL if
10812         compute_data_dependences_for_loop failed.
10814 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
10816         * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
10817         for REAL_CST as well.
10818         (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
10819         In the bitfield case, if the value is a REAL_CST, convert it first to
10820         an INTEGER_CST.
10822 2012-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10824         * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
10825         for --with-abi={x32|mx32} or --with-multilib-list=mx32.
10826         (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
10828         * config/i386/biarchx32.h: New.
10830 2012-04-02  Anatoly Sokolov  <aesok@post.ru>
10832         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
10833         * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10834         (arm_preferred_reload_class): New function.
10836 2012-04-02  Richard Guenther  <rguenther@suse.de>
10838         PR tree-optimization/52756
10839         * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
10840         (thread_through_loop_header): After threading through the loop latch
10841         remove the split part from the loop and clear further threading
10842         opportunities that would create a multiple entry loop.
10844 2012-04-02  Richard Guenther  <rguenther@suse.de>
10846         PR rtl-optimization/52800
10847         * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
10848         CLEANUP_CFG_CHANGED.
10850 2012-04-02  Richard Guenther  <rguenther@suse.de>
10852         PR middle-end/52803
10853         * loop-init.c (gate_handle_loop2): Destroy loops here if
10854         we don't enter RTL loop optimizers.
10856 2012-04-02  Uros Bizjak  <ubizjak@gmail.com>
10858         Partially revert:
10859         2012-03-29  Richard Guenther  <rguenther@suse.de>
10861         * rtl.h (extended_count): Remove.
10862         * combine.c (extended_count): Remove.
10864 2012-04-02  Dodji Seketeli  <dodji@redhat.com>
10866         PR c++/40942
10867         * pt.c (more_specialized_fn):  Don't apply decay conversion to
10868         types of function parameters.
10870 2012-04-02  Tristan Gingold  <gingold@adacore.com>
10872         * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
10873         (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
10874         (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
10875         (ggc_pch_this_base): Use uintptr_t instead of size_t.
10877 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
10879         PR bootstrap/52784
10880         * config/i386/i386.c (ix86_option_override_internal): Don't
10881         check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
10883 2012-03-31  Eric Botcazou  <ebotcazou@adacore.com>
10885         * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
10886         (stmt_can_make_abnormal_goto): Use it.
10887         (is_ctrl_altering_stmt): Likewise.
10889 2012-03-30  Naveen H.S  <naveen.S@kpitcummins.com>
10890             Kaz Kojima  <kkojima@gcc.gnu.org>
10892         * config/sh/sh.c (push_regs): Skip banked registers when
10893         resbank attribute is specified.
10894         (sh_expand_epilogue): Likewise.
10896 2012-03-30  Richard Henderson  <rth@redhat.com>
10898         PR debug/52727
10899         * combine-stack-adj.c (prev_active_insn_bb): New.
10900         (next_active_insn_bb): New.
10901         (force_move_args_size_note): New.
10902         (combine_stack_adjustments_for_block): Use it.
10904 2012-03-30  Richard Henderson  <rth@redhat.com>
10906         * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
10907         (ix86_expand_vector_init_duplicate): Initialize it.
10908         (expand_vec_perm_palignr): Likewise.
10909         (ix86_expand_vec_perm_const): Likewise.
10910         (ix86_vectorize_vec_perm_const_ok): Likewise.
10911         (expand_vec_perm_blend): Use it.
10912         (expand_vec_perm_vpermil): Likewise.
10913         (expand_vec_perm_pshufb): Likewise.
10914         (expand_vec_perm_1): Likewise.
10915         (expand_vec_perm_pshuflw_pshufhw): Likewise.
10916         (expand_vec_perm_interleave2): Likewise.
10917         (expand_vec_perm_vpermq_perm_1): Likewise.
10918         (expand_vec_perm_vperm2f128): Likewise.
10919         (expand_vec_perm_interleave3): Likewise.
10920         (expand_vec_perm_vperm2f128_vblend): Likewise.
10921         (expand_vec_perm_vpshufb2_vpermq): Likewise.
10922         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
10923         (expand_vec_perm_broadcast): Likewise.
10924         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
10926 2012-03-30  Richard Henderson  <rth@redhat.com>
10928         * dwarf2out.c (gen_variable_die): Initialize off.
10930 2012-03-30  Tristan Gingold  <gingold@adacore.com>
10932         * config/vms/vms-f.c: New file.
10933         * config/vms/t-vms (vms-f.o): New rule.
10934         * config.gcc (*-*-*vms*): Define fortran_target_objs.
10936 2012-03-30  Richard Guenther  <rguenther@suse.de>
10938         PR tree-optimization/52754
10939         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
10940         propagate arbitrary addresses into really plain dereferences.
10942 2012-03-30  Richard Guenther <rguenther@suse.de>
10944         PR middle-end/52772
10945         * except.c (emit_to_new_bb_before): Move loop updating ...
10946         (dw2_build_landing_pads): ... here.  Use a proper block for
10947         querying the loop father.
10949 2012-03-30  Tristan Gingold  <gingold@adacore.com>
10951         * config/ia64/ia64.c (ia64_section_type_flags): Remove
10952         common_object attribute handling.
10953         (SECTION_VMS_OVERLAY): Remove
10954         (ia64_vms_common_object_attribute): Replace abort with an assert.
10955         Do not set DECL_SECTION_NAME.
10956         (ia64_vms_output_aligned_decl_common): Handle common_object
10957         attribute.
10958         (ia64_vms_elf_asm_named_section): Remove.
10959         * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
10961 2012-03-30  Richard Guenther  <rguenther@suse.de>
10963         PR middle-end/52786
10964         * double-int.c (rshift_double): Remove not needed cast.
10966 2012-03-30  Richard Guenther  <rguenther@suse.de>
10968         * tree-affine.h (print_aff): Remove.
10969         * tree-affine.c (print_aff): Make static.
10970         * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
10971         (get_references_in_stmt): Likewise.
10972         (print_direction_vector): Likewise.
10973         (print_dir_vectors): Likewise.
10974         (print_dist_vectors): Likewise.
10975         (dump_subscript): Likewise.
10976         (dump_ddrs): Likewise.
10977         (dump_dist_dir_vectors): Likewise.
10978         (dump_data_references): Likewise.
10979         (dump_data_dependence_relation): Likewise.
10980         (dump_data_dependence_direction): Likewise.
10981         (dump_rdg_vertex): Likewise.
10982         (dump_rdg_component): Likewise.
10983         (debug_ddrs): Declare.
10984         (struct data_ref_loc_d): Move ...
10985         * tree-data-ref.c (struct data_ref_loc_d): ... here.
10986         (get_references_in_stmt): Make static.
10987         (dump_data_references): Likewise.
10988         (dump_subscript): Likewise.
10989         (print_direction_vector): Likewise.
10990         (print_dir_vectors): Likewise.
10991         (print_dist_vectors): Likewise.
10992         (dump_data_dependence_relation): Likewise.
10993         (dump_dist_dir_vectors): Likewise.
10994         (dump_ddrs): Likewise.
10995         (dump_rdg_vertex): Likewise.
10996         (dump_rdg_component): Likewise.
10997         (debug_ddrs): New function.
10998         (access_matrix_get_index_for_parameter): Remove.
11000 2012-03-30  Tristan Gingold  <gingold@adacore.com>
11002         * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
11003         (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
11004         (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
11005         (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
11006         (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
11007         (vms_patch_builtins): Handle new flags
11008         * config/vms/vms-crtlmap.map: Completed using nm on
11009         c and math system libraries.
11010         * config/vms/make-crtlmap.awk: Handle any number of flags.
11012 2012-03-30  Martin Jambor  <mjambor@suse.cz>
11014         * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
11015         is a builtin_stack_save in a dominating BB.
11017 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
11019         * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
11020         crossing 128bit lane boundary.
11022 2012-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11024         * ira-color.c (setup_left_conflict_sizes_p): Process all
11025         conflicting objects.
11027 2012-03-29  Jakub Jelinek  <jakub@redhat.com>
11029         PR tree-optimization/52760
11030         * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
11031         shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
11033 2012-03-29  Richard Guenther  <rguenther@suse.de>
11035         * cgraph.h (cgraph_materialize_all_clones): Remove.
11036         (reset_inline_failed): Likewise.
11037         * cgraphunit.c (cgraph_materialize_all_clones): Make static.
11038         * cgraphbuild.c (reset_inline_failed): Remove.
11039         * rtl.h (cse_main): Remove.
11040         (extended_count): Likewise.
11041         * cse.c (dump_class): Mark as DEBUG_FUNCTION.
11042         (cse_main): Make static.
11043         * combine.c (extended_count): Remove.
11044         (dump_combine_stats): Mark as DEBUG_FUNCTION.
11045         * basic-block.h (reorder_basic_blocks): Remove.
11046         * bb-reorder.c (reorder_basic_blocks): Make static.
11047         * Makefile.in (dse.o): Remove dse.h dependency.
11048         * dse.h: Remove.
11049         * dse.c (gate_dse): Remove.
11050         (clear_alias_mode_eq): Likewise.
11051         (clear_alias_mode_hash): Likewise.
11052         (dse_record_singleton_alias_set): Likewise.
11053         (dse_invalidate_singleton_alias_set): Likewise.
11055 2012-03-29  H.J. Lu  <hongjiu.lu@intel.com>
11057         * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
11058         crtbegin_so%O%s for -shared.
11059         (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
11061 2012-03-29  Richard Guenther  <rguenther@suse.de>
11063         * tree-flow.h (struct pre_expr_d): Remove forward declaration.
11064         (add_to_value): Remove.
11065         (print_value_expressions): Likewise.
11066         * tree-ssa-pre.c (add_to_value): Make static.
11067         (print_value_expressions): Likewise.
11068         * gimple.h (gimple_adjust_this_by_delta): Remove.
11069         * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
11071 2012-03-29  Richard Guenther  <rguenther@suse.de>
11073         PR middle-end/50708
11074         * double-int.h (rshift_double): Remove.
11075         * double-int.c (lshift_double): Use absu_hwi to make count positive.
11076         (rshift_double): Make static, take unsigned count argument,
11077         remove handling of negative count argument.
11078         (double_int_rshift): Dispatch to lshift_double.
11080 2012-03-28  H.J. Lu  <hongjiu.lu@intel.com>
11082         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
11083         OPTION_MASK_ABI_64.
11085         * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
11086         (SPEC_X32): Likewise.
11087         (MULTILIB_DEFAULTS): Likewise.
11089         * config/i386/i386.c (isa_opts): Remove -m64.
11090         (ix86_target_string): Properly handle -m32/-m64/-mx32.
11091         (ix86_option_override_internal): Properly
11092         set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
11093         handle -m32, -m64 and -mx32.
11095         * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
11096         with OPTION_ABI_X32.  Moved after TARGET_LP64.
11097         (TARGET_LP64): Changed to OPTION_ABI_64.
11099         * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
11100         (mx32): Replace ISA_X32 with ABI_X32.
11102 2012-03-28  Eric Botcazou  <ebotcazou@adacore.com>
11104         * tree.c (tree_size) <VECTOR_CST>: New case.
11106 2012-03-28  Uros Bizjak  <ubizjak@gmail.com>
11108         * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
11109         (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
11111 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
11113         PR middle-end/52691
11114         * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
11115         __builtin_va_start to __builtin_next_arg if the latter is
11116         builtin_decl_explicit_p rather than when it is not.
11118         PR middle-end/52750
11119         * tree-vect-generic.c (vector_element): Perform multiplication
11120         for pos in bitsizetype type instead of idx type.
11122 2012-03-28  Richard Guenther  <rguenther@suse.de>
11124         * loop-init.c (loop_optimizer_init): If loops are preserved
11125         perform incremental initialization of required loop features.
11126         (loop_optimizer_finalize): If loops are to be preserved only
11127         clean up optional loop features.
11128         (rtl_loop_done): Forcefully free loops here.
11129         * cgraph.c (cgraph_release_function_body): Forcefully free loops.
11130         * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
11131         to existing loops.
11132         (construct_init_block): Likewise.
11133         (construct_exit_block): Likewise.
11134         (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state.  Cleanup
11135         the CFG after expanding.
11136         * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
11137         If we needed to calculate them, free them afterwards.
11138         * tree-pass.h (PROP_loops): New define.
11139         * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
11140         * basic-block.h (CLEANUP_CFG_CHANGED): New.
11141         * cfgcleanup.c (merge_blocks_move): Protect loop latches.
11142         (cleanup_cfg): If we did something and have loops around, fix them up.
11143         * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
11144         with CLEANUP_CFG_CHANGED.
11145         * cfghooks.c (merge_blocks): If we merge a loop header into
11146         its predecessor, update the loop structure.
11147         (duplicate_block): If we copy a loop latch, adjust loop state
11148         to note we may have multiple latches.
11149         (delete_basic_block): Mark loops for fixup if we remove a loop.
11150         * cfganal.c (forwarder_block_p): Protect loop latches, headers
11151         and preheaders.
11152         * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
11153         (cfg_layout_can_merge_blocks_p): Likewise.
11154         * cprop.c (bypass_block): If we create a loop with multiple
11155         entries, mark it for removal.
11156         * except.c (emit_to_new_bb_before): Add the new basic-block
11157         to existing loops.
11158         * tree-eh.c (lower_resx): Likewise.
11159         * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
11160         (expand_omp_taskreg): Likewise.
11161         * tree-inline.c (initialize_cfun): Likewise.
11162         * tree-mudflap.c (add_bb_to_loop): Prototype.
11163         (mf_build_check_statement_for): Properly add new basic-blocks
11164         to existing loops.
11165         * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
11166         if we remove a loop.
11167         (thread_through_loop_header): Likewise.
11168         * trans-mem.c (tm_log_emit_save_or_restores): Properly add
11169         new basic-blocks to existing loops.
11170         (expand_transaction): Likewise.
11171         * Makefile.in (except.o): Add $(CFGLOOP_H).
11172         (expr.o): Likewise.
11173         (cgraph.o): Likewise.
11174         (cprop.o): Likewise.
11175         (cfgexpand.o): Likewise.
11176         (cfganal.o): Likewise.
11177         (trans-mem.o): Likewise.
11178         (tree-eh.o): Likewise.
11180 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
11182         PR target/52692
11183         * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
11184         (avr_builtin_decl): New static function.
11185         (struct avr_builtin_description, avr_bdesc): Move up.
11186         Add GTY marker. Add field fndecl. Remove redundant field id.
11187         (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
11188         (avr_expand_builtin): Code cleanup because .id is removed.
11190 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
11192         PR target/52737
11193         * config.gcc (tm_file): Remove avr/multilib.h.
11195         * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
11197         * config/avr/genmultilib.awk: Remove code to generate multilib.h.
11198         (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
11199         * config/avr/t-avr: Remove generation of multilib.h.
11200         * config/avr/t-multilib: Regenerate.
11201         * config/avr/multilib.h: Remove.
11202         * config/avr/avr.opt (-msp8): New option.
11203         (avr_sp8): New variable.
11204         * config/avr/driver-avr.c (avr_device_to_sp8): New function.
11205         * config/avr/avr.h (AVR_HAVE_SPH): New define.
11206         (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
11207         (avr_device_to_sp8): New prototype.
11208         (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
11209         (DRIVER_SELF_SPECS): New define.
11210         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
11211         __AVR_SP8__, __AVR_HAVE_SPH__.
11212         * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
11213         AVR_HAVE_8BIT_SP to decide if SP_H is present.
11214         (avr_file_start): Ditto.
11216 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
11218         PR target/52736
11219         * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
11220         instead of 8 in adjust_address.
11222 2012-03-27  Aurelien Buhrig  <aurelien.buhrig.gcc@gmail.com>
11224         PR middle-end/51893
11225         * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
11226         targets.
11228 2012-03-27  Oleg Endo  <olegendo@gcc.gnu.org>
11230         PR target/50751
11231         * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
11232         Rearrange conditional logic.  Move displacement address calculations
11233         to ...
11234         (sh_find_mov_disp_adjust): ... this new function.
11236 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11238         * config/arm/arm.opt (mapcs): Remove MaskExists.
11239         * config/cris/linux.opt (mno-gotplt): Likewise.
11240         * config/i386/i386.opt (mhard-float): Likewise.
11241         (msse4): Likewise.
11242         (mno-sse4): Likewise.
11243         * config/m68k/m68k.opt (mhard-float): Likewise.
11244         * config/mep/mep.op (mcop32): Likewise.
11245         * config/pa/pa-hpux.opt (msio): Likewise.
11246         * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
11247         * config/picochip/picochip.opt (mlittle): Likewise.
11248         * config/sh/sh.opt (mrenesas): Likewise.
11249         * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
11250         * config/sparc/sparc.opt (mhard-float): Likewise.
11251         * config/v850/v850.opt (mv850es): Likewise.
11252         * config/vax/vax.opt (mg-float): Likewise.
11254 2012-03-27  Martin Jambor  <mjambor@suse.cz>
11256         PR middle-end/52693
11257         * tree-sra.c (sra_modify_assign): Do not call
11258         load_assign_lhs_subreplacements when working with an unscalarizable
11259         region.
11261 2012-03-27  Uros Bizjak  <ubizjak@gmail.com>
11263         PR target/52698
11264         * config/i386/i386-protos.h (ix86_legitimize_reload_address):
11265         New prototype.
11266         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
11267         * config/i386/i386.c: Include reload.h.
11268         (ix86_legitimize_reload_address): New function.
11270 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11272         * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
11273         hasn't been allocated.  Define a target macro for Mask and
11274         InverseMask if it hasn't been defined.  Remove MaskExists handling.
11276         * doc/options.texi: Remove MaskExists.
11278 2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>
11280         PR target/52667
11281         * config/sh/sh.c (find_barrier): Add equality check of last_got
11282         to avoid going above orig insn. Update comments.
11284 2012-03-27  Richard Guenther  <rguenther@suse.de>
11286         PR middle-end/52720
11287         * fold-const.c (try_move_mult_to_index): Handle &x.array more
11288         explicitely.
11290 2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>
11292         * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
11293         of a unit before computing the offset in units.
11294         * expr.c (get_bit_range): Return the null range if the enclosing record
11295         is part of a larger bit field.
11297 2012-03-27  Tristan Gingold  <gingold@adacore.com>
11299         * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
11300         * config/ia64/ia64.md: Remove mode in template.
11301         Sign extend operand in expand_simple_binop.
11302         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
11303         CASE_VECTOR_MODE instead of TARGET_ILP32.
11304         (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
11306 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
11308         * varasm.c (assemble_external): #if 0 out the new assert from the
11309         previous commit, it breaks the Java and Go front ends.
11311 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
11313         * toplev.c (check_global_declaration_1): Do not call assemble_external.
11314         * expr.c (emit_block_move_libcall_fn): Likewise.
11315         (clear_storage_libcall_fn): Likewise.
11316         (expand_expr_addr_expr_1): Likewise.
11317         (expand_expr_real_1): Likewise.
11318         * calls.c (rtx_for_function_call): Likewise.
11320         * varasm.c (assemble_external): Assert this function is only called
11321         during or after expanding to RTL.
11323 2012-03-26  Martin Jambor  <mjambor@suse.cz>
11325         PR tree-optimization/50052
11326         * tree-sra.c (tree_non_aligned_mem_p): Removed.
11327         (tree_non_aligned_mem_for_access_p): Likewise.
11328         (build_accesses_from_assign): Removed strict alignment requirements
11329         checks.
11330         (access_precludes_ipa_sra_p): Likewise.
11332 2012-03-26  Richard Guenther  <rguenther@suse.de>
11334         PR tree-optimization/52701
11335         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
11336         compute and set the evolution part of PHI nodes.
11338 2012-03-26  Richard Guenther  <rguenther@suse.de>
11340         PR tree-optimization/52721
11341         * tree-vect-stmts.c (vect_init_vector): Handle scalars.
11343 2012-03-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
11345         PR tree-optimization/52686
11346         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
11347         WIDEN_LSHIFT_EXPR.
11349 2012-03-26  Tristan Gingold  <gingold@adacore.com>
11351         * config/alpha/vms.h (LINK_SPEC): Simplify.
11352         (STARTFILE_SPEC): Remove -mvms-return-codes handling.
11353         (NAME__MAIN, SYMBOL__MAIN): Remove.
11354         (VMS_DEBUG_MAIN_POINTER): Remove.
11355         * config/ia64/vms.h: Likewise.
11356         * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
11357         code to vms.c.  Call vms_start_function.
11358         * config/ia64/ia64.c (ia64_start_function): Likewise.
11359         * config/vms/vms-protos.h (vms_start_function): Declare.
11360         * config/vms/vms.c (vms_start_function): New function.
11361         * config/vms/vms.h (MATH_LIBRARY): Define.
11362         (VMS_DEBUG_MAIN_POINTER): Define.
11364 2012-03-26  Eric Botcazou  <ebotcazou@adacore.com>
11366         PR rtl-optimization/52629
11367         * reload1.c (count_pseudo): Short-circuit common case.
11368         (count_spilled_pseudo): Return early for pseudos without hard regs.
11369         Assert that the pseudo has got a hard reg before manipulating it.
11371 2012-03-24  Jan Hubicka  <jh@suse.cz>
11373         PR lto/51663
11374         * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
11375         (decide_is_variable_needed): Do not handle toplevel reorder here.
11376         * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
11377         * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
11378         even at -O0.
11380 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11382         * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
11383         and str_bitsize instead of more convoluted expressions.
11385 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11387         PR target/52610
11388         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
11390 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11392         PR target/52656
11393         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
11395 2012-03-23  Martin Jambor  <mjambor@suse.cz>
11397         * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
11399 2012-03-23  Richard Guenther  <rguenther@suse.de>
11401         PR tree-optimization/52678
11402         * tree-vectorizer.h (struct _stmt_vec_info): Add
11403         loop_phi_evolution_part member.
11404         (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
11405         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
11406         STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
11407         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
11408         Use the cached evolution part and the PHI nodes value from
11409         the loop preheader edge instead of re-analyzing the evolution.
11411 2012-03-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
11413         * config/mips/mips-tables.opt: Update.
11414         * config/mips/mips.md (processor): Add xlp.
11415         * config/mips/mips-cpus.def: Add xlp.
11416         * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
11417         5KF for now.
11418         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
11419         * doc/invoke.texi: Mention XLP.
11421 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
11423         PR middle-end/52547
11424         * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
11425         on any new_local_var_chain vars declared during recursing on
11426         GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
11428 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
11430         * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
11431         (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
11432         (ASM_OUTPUT_LOCAL): Ditto.
11433         (ASM_OUTPUT_COMMON): Remove.
11434         * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
11435         * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
11437 2012-03-22  Jan Hubicka  <jh@suse.cz>
11439         PR middle-end/51737
11440         * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
11441         parameter.
11442         * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
11443         * ipa-inline-transform.c (save_inline_function_body): Remove
11444         copied clone if needed.
11445         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
11447 2012-03-22  Richard Guenther  <rguenther@suse.de>
11449         PR middle-end/52666
11450         * fold-const.c (fold_ternary_loc): Fix typo.
11452 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
11454         PR target/52496
11455         * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
11456         (unspecv): Add UNSPECV_MEMORY_BARRIER.
11457         (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
11458         (delay_cycles_1, delay_cycles_2): Ditto.
11459         (delay_cycles_3, delay_cycles_4): Ditto.
11460         (nopv, *nopv): Ditto.
11461         (sleep, *sleep): Ditto.
11462         (wdr, *wdr): Ditto.
11464 2012-03-22  Richard Guenther  <rguenther@suse.de>
11466         PR tree-optimization/52548
11467         * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
11468         because of clobbers.
11469         (prune_clobbered_mems): New function.
11470         (compute_antic_aux): Use it to prune ANTIC_OUT.
11471         (compute_partial_antic_aux): Use it to prune PA_IN.
11472         (compute_avail): Only insert expressions into EXP_GEN that are not
11473         invalidated when translated up to the beginning of the block.
11475 2012-03-22  Richard Guenther  <rguenther@suse.de>
11477         PR tree-optimization/52638
11478         * tree-vect-stmts.c (vect_init_vector_1): New function, split
11479         out from ...
11480         (vect_init_vector): ... here.  Handle scalar vector inits.
11481         (vect_get_vec_def_for_operand): Adjust.
11482         (vectorizable_load): Likewise.
11484 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
11486         * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
11487         (alpha*-*-freebsd*): Ditto.
11488         (alpha*-*-netbsd*): Ditto.
11489         (alpha*-*-openbsd*): Ditto.
11490         * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
11491         (DWARF2_DEBUGGING_INFO): Remove.
11492         (PREFERRED_DEBUGGING_TYPE): Remove.
11493         (ASM_FINAL_SPEC): Remove.
11494         (IDENT_ASM_OP): Remove.
11495         (ASM_OUTPUT_IDENT): Remove.
11496         (SKIP_ASM_OP): Remove.
11497         (ASM_OUTPUT_SKIP): Remove.
11498         (ALIGN_ASM_OP): Remove.
11499         (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
11500         (ASM_OUTPUT_CASE_LABEL): Remove.
11501         (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
11502         (COMMON_ASM_OP): Remove.
11503         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
11504         (ASCII_DATA_ASM_OP): Remove.
11505         (READONLY_DATA_SECTION_ASM_OP): Remove.
11506         (INIT_SECTION_ASM_OP): Remove.
11507         (FINI_SECTION_ASM_OP): Remove.
11508         (ASM_SECTION_START_OP): Remove.
11509         (ASM_OUTPUT_SECTION_START_FILE): Remove.
11510         (TARGET_ASM_NAMED_SECTION): Remove.
11511         (TARGET_ASM_SELECT_SECTION): Remove.
11512         (MAKE_DECL_ONE_ONLY): Remove.
11513         (TYPE_ASM_OP): Remove.
11514         (SIZE_ASM_OP): Remove.
11515         (ASM_WEAKEN_LABEL): Remove.
11516         (TYPE_OPERAND_FMT): Remove.
11517         (ASM_DECLARE_RESULT): Remove.
11518         (ASM_DECLARE_OBJECT_NAME): Remove.
11519         (ASM_FINISH_DECLARE_OBJECT): Remove.
11520         (ELF_ASCII_ESCAPES): Remove.
11521         (ELF_STRING_LIMIT): Remove.
11522         (STRING_ASM_OP): Remove.
11523         (ASM_OUTPUT_EXTERNAL): Remove.
11524         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
11525         * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
11526         before define.
11527         (ASM_DECLARE_FUNCTION_NAME): Ditto.
11528         (ASM_DECLARE_FUNCTION_SIZE): Ditto.
11529         (ASM_GENERATE_INTERNAL_LABEL): Ditto.
11530         (ASM_OUTPUT_SKIP): Ditto.
11531         (READONLY_DATA_SECTION_ASM_OP): Remove.
11532         (USER_LABEL_PREFIX): Remove.
11533         (ASM_OUTPUT_ASCII): Remove.
11534         (ASM_OUTPUT_CASE_LABEL): Remove.
11535         (NO_DOLLAR_IN_LABEL): Undefine.
11537 2012-03-22  Richard Guenther  <rguenther@suse.de>
11539         PR tree-optimization/52459
11540         * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
11541         PHI insertion for calls.
11543 2012-03-21  Steven Bosscher  <steven@gcc.gnu.org>
11545         * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
11546         find_sets_in_insn, canonicalize_insn): Split out from ...
11547         (cse_insn): ... here.
11548         (invalidate_from_clobbers): Take an insn instead of the pattern.
11550 2012-03-21  Oleg Endo  <olegendo@gcc.gnu.org>
11552         PR target/52479
11553         * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
11554         * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
11555         * config/sh/sh.md (sindf2, cosdf2): Remove.
11557 2012-03-21  Kaz Kojima  <kkojima@gcc.gnu.org>
11559         PR target/52642
11560         * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
11561         prologue for unwinder and profiler.
11563 2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
11565         * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
11566         Introduce emul_name to select the right linker emulation for
11567         powerpc64-*-freebsd*.
11568         * configure: Regenerate.
11569         * config.gcc: Add bits to support powerpc64-*-freebsd*.
11570         * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
11571         * config/rs6000/freebsd64.h: New file.
11572         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
11573         POWERPC_FREEBSD.
11574         (rs6000_savres_strategy): Likewise.
11575         (rs6000_savres_routine_name): Likewise.
11576         (rs6000_elf_file_end): Likewise.
11577         * config/rs6000/t-freebsd64: New file.
11578         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
11579         rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
11581         * config/rs6000/freebsd64.h: Remove duplicated entries from last
11582         commit.
11583         * config/rs6000/t-freebsd64: Likewise.
11585 2012-03-21  Georg-Johann Lay  <avr@gjlay.de>
11587         PR rtl-optimization/52543
11588         PR target/52461
11589         * config/avr/avr-protos.h (avr_load_lpm): New prototype.
11590         * config/avr/avr.c (avr_mode_dependent_address_p): New function.
11591         (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
11592         (avr_load_libgcc_p): Restrict to __flash loads.
11593         (avr_out_lpm): Only handle 1-byte loads from __flash.
11594         (avr_load_lpm): New function.
11595         (avr_find_unused_d_reg): Remove.
11596         (avr_out_lpm_no_lpmx): Remove.
11597         (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
11598         * config/avr/avr.md (unspec): Add UNSPEC_LPM.
11599         (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
11600         (load_<mode>, load_<mode>_clobber): New insns.
11601         (mov<mode>): For multi-byte move from non-generic
11602         16-bit address spaces: Expand to load_<mode> resp.
11603         load_<mode>_clobber.
11604         (load<mode>_libgcc): Remove expander.
11605         (split-lpmx): Remove split.
11607 2012-03-21  Richard Earnshaw  <rearnsha@arm.com>
11609         * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
11610         * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
11611         All callers changed.
11612         (Fixed_core_reg): New feature.
11613         (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg.  Allow fmrrd in
11614         disassembly.
11615         * neon-testgen.ml: Handle Fixed_core_reg.
11617 2012-03-21  Andrew Stubbs  <ams@codesourcery.com>
11619         * config/arm/arm.c (thumb2_reorg): Add complete support
11620         for 16-bit instructions.
11621         * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
11623 2012-03-21  Richard Guenther  <rguenther@suse.de>
11625         PR tree-optimizer/52636
11626         * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
11627         to the appropriate type.
11629 2012-03-21  Richard Guenther  <rguenther@suse.de>
11631         * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
11632         dependencies.
11633         * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
11634         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
11635         * passes.c (init_optimization_passes): Remove pass_init_function,
11636         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
11637         * tree-pass.h (pass_init_function): Remove.
11638         (pass_jump): Remove.
11639         (pass_initial_value_sets): Remove.
11640         (pass_unshare_all_rtl): Remove.
11641         * integrate.c (pass_initial_value_sets): Remove.
11642         * emit-rtl.c (pass_unshare_all_rtl): Remove.
11643         * tree.h (init_function_for_compilation): Remove.
11644         * function.c (init_function_for_compilation): Remove.
11645         (pass_init_function): Remove.
11646         * cfgcleanup.c (rest_of_handle_jump): Remove.
11647         (pass_jump): Remove.
11649 2012-03-20  Jason Merrill  <jason@redhat.com>
11651         * tree-streamer-in.c (streamer_alloc_tree): Call
11652         ggc_alloc_zone_cleared_tree_node instead of
11653         ggc_alloc_zone_cleared_tree_node_stat.
11655 2012-03-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
11657         * doc/extend.texi (Template Instantiation): Remove anachronisms.
11659 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
11661         PR target/52607
11662         * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
11663         (ix86_expand_vec_perm_const_1): Call it.
11665         * config/i386/i386.c (vselect_insn): New variable.
11666         (init_vselect_insn): New function.
11667         (expand_vselect, expand_vselect_insn): Add testing_p argument.
11668         Call init_vselect_insn if vselect_insn is NULL.  Adjust
11669         PATTERN (vselect_insn), instead of creating a new insn each time,
11670         only emit a copy of it if not testing and recog has been successful.
11671         (expand_vec_perm_pshufb, expand_vec_perm_1,
11672         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
11673         callers.
11675         PR target/52607
11676         * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
11677         ("enabled" attribute): Handle avx2 and noavx2 isas.
11678         * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
11679         New insns.
11680         (vec_dup<mode>): Add avx2 =x,x alternative.
11681         (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
11682         (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
11683         For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
11684         * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
11685         for V8SFmode.
11686         (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
11687         if possible, handle also V8SFmode.
11689 2012-03-20  Richard Earnshaw  <rearnsha@arm.com>
11691         * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
11692         * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
11693         reg_or_zero_operand predicate.
11694         (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
11696 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
11698         * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
11699         If operand isn't UNSPEC, return 0.
11701 2012-03-20  Richard Guenther  <rguenther@suse.de>
11703         * tree-pass.h (pass_rtl_eh): Remove.
11704         * except.c (gate_handle_eh): Likewise.
11705         (rest_of_handle_eh): Likewise.
11706         (pass_rtl_eh): Likewise.
11707         (finish_eh_generation): Export.
11708         * except.h (finish_eh_generation): Declare.
11709         * passes.c (init_optimization_passes): Remove pass_rtl_eh.
11710         * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
11711         after expanding stack alignment.  Instead of compacting blocks
11712         call cleanup_cfg.
11714 2012-03-20  Richard Guenther  <rguenther@suse.de>
11716         * stor-layout.c (finish_bitfield_representative): Fallback
11717         to conservative maximum size if the padding up to the next
11718         field cannot be computed as a constant.
11719         (finish_bitfield_layout): If we cannot compute the distance
11720         between the start of the bitfield representative and the
11721         bitfield member start a new representative.
11722         * expr.c (get_bit_range): The distance between the start of
11723         the bitfield representative and the bitfield member is zero
11724         if the field offsets are not constants.
11726 2012-03-20  Tristan Gingold  <gingold@adacore.com>
11728         * tree.h (enum size_type_kind): Add stk_ prefix to constants,
11729         convert in lowercase.
11730         (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
11731         (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
11732         * stor-layout.c (sizetype_tab): Adjust.
11733         (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
11734         * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
11735         instead of type_kind_last.
11736         * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
11737         instead of size_int_kind.
11738         * doc/tm.texi.in (Type Layout): Document SIZETYPE.
11739         * doc/tm.texi: Regenerate.
11740         * defaults.h (SIZETYPE): Provide a default value.
11741         * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
11742         (SIZETYPE): Define.
11744 2012-03-20  Oleg Endo  <olegendo@gcc.gnu.org>
11746         * config/sh/sh.md: Use braced string notation where applicable.
11748 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
11750         * config/i386/i386.md (allocate_stack): Simplify.
11752 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
11754         * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
11755         copy_to_mode_reg (Pmode, ...).
11756         (expand_builtin_frame_address): Ditto.
11757         * expr.c (emit_block_move_via_libcall): Ditto.
11758         (set_storage_via_libcall): Ditto.
11760         * config/i386/i386.c (ix86_expand_movmem): Ditto.
11761         (ix86_expand_setmem): Ditto.
11762         (ix86_trampoline_init): DItto.
11763         * config/i386/i386.md (cmpstrnsi): Ditto.
11765 2012-03-19  Sandra Loosemore  <sandra@codesourcery.com>
11767         * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
11768         * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
11769         * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
11770         (SH Options): Likewise.
11772 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
11774         * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
11775         Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
11776         (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
11777         DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
11778         (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
11780         Revert:
11781         2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
11783         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
11784         * config/i386/i386.c (ix86_decompose_address): Use
11785         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
11786         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
11787         thread pointer to a register.
11789         Revert:
11790         2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
11792         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
11793         if Pmode != word_mode.
11794         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
11795         Pmode == SImode for TARGET_X32.
11797         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
11798         (tls_initial_exec_x32): Likewise.
11800 2012-03-19  Oleg Endo  <olegendo@gcc.gnu.org>
11802         PR target/50751
11803         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
11804         DISP_ADDR_OFFSET): New macros.
11805         * config/sh/sh.c (sh_address_cost): Add SH2A special case.
11806         (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
11807         (sh_legitimize_address): Add QImode displacement handling.
11808         (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
11809         vector subregs.
11810         (sh_secondary_reload): Add QImode displacement handling.
11811         * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
11812         * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
11813         * config/sh/sh.md (extendqisi2): Remove constraints from expander.
11814         (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
11815         to register operands only.
11816         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
11817         (extendqihi2): Change insn to expander.
11818         (*extendqihi2_compact_reg): New insn.
11819         (movqi_i, movqi): Replace with ...
11820         (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
11821         *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
11822         Add new peepholes for QImode displacement addressing.
11824 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
11826         PR c++/14710
11827         * doc/invoke.texi: Document -Wuseless-cast.
11829 2012-03-19  Eric Botcazou  <ebotcazou@adacore.com>
11831         * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
11832         * tree.h (handled_component_p): Reorder cases.
11833         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
11834         not initialize unsignedp.
11835         (loc_list_from_tree): Likewise.
11836         (fortran_common): Likewise.
11837         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
11839 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
11841         * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
11842         mode consistently.  Use ix86_gen_add3.  Assert that Pmode == DImode.
11843         (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
11844         (ix86_split_long_move): Ditto.
11845         (legitimize_tls_address): Use ix86_gen_sub3.
11846         (construct_plt_address): Assert that Pmode == DImode.
11848 2012-03-18  Uros Bizjak  <ubizjak@gmail.com>
11850         * config/i386/i386.md: Remove empty predicates and/or constraints.
11851         * config/i386/sync.md: Ditto.
11852         * config/i386/sse.md: Ditto.
11853         * config/i386/mmx.md: Ditto.
11854         * config/i386/pentium.md: Ditto.
11855         * config/i386/athlon.md: Ditto.
11857 2012-03-16  Richard Guenther  <rguenther@suse.de>
11859         PR tree-optimization/52603
11860         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
11861         comment.
11863         Revert
11864         2012-03-14  Richard Guenther  <rguenther@suse.de>
11866         PR tree-optimization/52571
11867         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
11868         flag_section_anchors check ...
11869         (vect_can_force_dr_alignment_p): ... here.
11871 2012-03-16  Martin Jambor  <mjambor@suse.cz>
11873         * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
11874         memory through MEM_REFs by calling extract_bit_field.
11876 2012-03-16  Richard Guenther  <rguenther@suse.de>
11878         * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
11879         and REFERENCE_TYPE interpretations.
11880         (can_native_interpret_type_p): New function.
11881         (fold_ternary_loc): Use native encode/interpret to fold
11882         BIT_FIELD_REFs of constants.
11884 2012-03-16  Richard Guenther  <rguenther@suse.de>
11886         PR middle-end/52584
11887         * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
11888         of vector constants and constructors.
11890 2012-03-16  Richard Guenther  <rguenther@suse.de>
11892         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
11893         VIEW_CONVERT_EXPR to convert constants.
11894         (vect_is_simple_use): Treat all constants as vec_constant_def.
11896 2012-03-16  Richard Guenther  <rguenther@suse.de>
11897             Kai Tietz  <ktietz@redhat.com>
11899         PR middle-end/48814
11900         * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
11901         side-effects completely in the pre-queue and use a temporary
11902         for the result.
11904 2012-03-16  Richard Guenther  <rguenther@suse.de>
11906         * stor-layout.c (finish_bitfield_representative): Fall back
11907         to the conservative maximum size if we cannot compute the
11908         size of the tail padding.
11910 2012-03-16  Tristan Gingold  <gingold@adacore.com>
11912         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
11913         __CRTL_VER and __VMS_VER.
11914         * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
11915         and vms_c_get_vms_ver.
11916         * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
11917         functions.
11918         * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
11919         (VMS_DEFAULT_VMS_VER): Define.
11920         * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
11921         (VMS_DEFAULT_VMS_VER): Define.
11923 2012-03-16  Richard Guenther  <rguenther@suse.de>
11925         * tree-vect-loop.c (get_initial_def_for_induction): Use
11926         build_constructor directly.
11927         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
11928         build_vector_from_val.
11929         * tree.c (build_vector_from_val): Avoid creating a constructor
11930         first when we want a constant vector.
11932 2012-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11934         * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
11936 2012-03-16  Richard Guenther  <rguenther@suse.de>
11938         * tree.h (TREE_VECTOR_CST_ELTS): Remove.
11939         (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
11940         (struct tree_vector): Remove elements member, add variable size
11941         elts array member.
11942         (build_vector_stat): Declare.
11943         (build_vector): Define in terms of build_vector_stat.
11944         * tree.c (build_vector): Rename to ...
11945         (build_vector_stat): ... this.  Take array of trees as parameter.
11946         (build_vector_from_ctor): Adjust.
11947         (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
11948         initializer_zerop): Adjust.
11949         * cfgexpand.c (expand_debug_expr): Likewise.
11950         * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
11951         const_vector_from_tree): Likewise.
11952         * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
11953         native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
11954         fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
11955         * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
11956         (lto_input_ts_vector_tree_pointers): Adjust.
11957         * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
11958         (write_ts_vector_tree_pointers): Adjust.
11959         * varasm.c (const_hash_1, compare_constant, copy_constant,
11960         output_constant): Adjust.
11961         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
11962         * print-tree.c (print_node): Adjust.
11963         * tree-pretty-print.c (dump_generic_node): Adjust.
11964         * tree-vect-generic.c (uniform_vector_p, vector_element,
11965         lower_vec_perm): Adjust.
11966         * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
11967         * tree-vect-slp.c (vect_get_constant_vectors,
11968         vect_transform_slp_perm_load): Adjust.
11969         * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
11970         * expmed.c (make_tree): Adjust.
11971         * config/i386/i386.c (ix86_expand_builtin): Adjust.
11972         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
11973         and implementation.
11974         (sparc_fold_builtin): Adjust.
11976 2012-03-16  Tristan Gingold  <gingold@adacore.com>
11978         * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
11979         * config/vms/vms-stdint.h: New file.
11981 2012-03-16  Tristan Gingold  <gingold@adacore.com>
11983         * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
11984         (ia64-hp-*vms*): Replaced by ...
11985         (*-*-*vms*): ... This new entry.
11987 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
11989         PR target/52568
11990         * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
11991         (ix86_expand_vec_perm_const_1): Use it.
11993         PR target/52568
11994         * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
11995         (avx2_permv4df): Remove.
11996         (avx2_permv4di): Macroize into...
11997         (avx2_perm<mode>): ... this using VI8F_256 iterator.
11998         (avx2_permv4di_1): Macroize into...
11999         (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
12001 2012-03-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
12003         * combine.c (apply_distributive_law): Do not distribute SUBREG.
12005 2012-03-15  Ira Rosen  <irar@il.ibm.com>
12006             Ulrich Weigand  <ulrich.weigand@linaro.org>
12008         * tree-vect-patterns.c (widened_name_p): Rename to ...
12009         (type_conversion_p): ... this.  Add new argument to determine
12010         if it's a promotion or demotion operation.  Check for
12011         CONVERT_EXPR_CODE_P instead of NOP_EXPR.
12012         (vect_recog_dot_prod_pattern): Call type_conversion_p instead
12013         widened_name_p.
12014         (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
12015         vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
12016         Likewise.
12017         (vect_recog_mixed_size_cond_pattern): Likewise and allow
12018         non-constant then and else clauses.
12020 2012-03-15  Ira Rosen  <irar@il.ibm.com>
12021             Ulrich Weigand  <ulrich.weigand@linaro.org>
12023         * tree-vectorizer.h (vect_pattern_recog): Add new argument.
12024         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
12025         vect_pattern_recog.
12026         * tree-vect-patterns.c (widened_name_p): Pass basic block
12027         info to vect_is_simple_use.
12028         (vect_recog_dot_prod_pattern): Fail for basic blocks.
12029         (vect_recog_widen_sum_pattern): Likewise.
12030         (vect_handle_widen_op_by_const): Support basic blocks.
12031         (vect_operation_fits_smaller_type,
12032         vect_recog_over_widening_pattern): Likewise.
12033         (vect_recog_vector_vector_shift_pattern): Support basic blocks.
12034         Update call to vect_is_simple_use.
12035         (vect_recog_mixed_size_cond_pattern): Support basic blocks.
12036         Add printing.
12037         (check_bool_pattern): Add an argument, update call to
12038         vect_is_simple_use and the recursive calls.
12039         (vect_recog_bool_pattern): Update relevant function calls.
12040         Add printing.
12041         (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
12042         (vect_pattern_recog_1): Check for reduction only in loops.
12043         (vect_pattern_recog): Add new argument.  Support basic blocks.
12044         * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
12045         info to vect_is_simple_use_1.
12046         * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
12047         (vect_slp_analyze_bb_1): Call vect_pattern_recog.
12049 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
12050             Andrew Pinski  <apinski@cavium.com>
12052         PR middle-end/52592
12053         * builtins.c (expand_builtin_int_roundingfn_2): If expanding
12054         BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
12055         calls instead of __builtin_ir{int,ound}*.
12057 2012-03-15  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12059         * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
12060         documentation.
12062 2012-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12064         * config.gcc (target_type_format_char): New. Document it. Set it for
12065         arm*-*-* .
12066         * configure.ac (gnu_unique_option): Use target_type_format_char
12067         in test.  Comment rationale.
12068         * configure: Regenerate .
12070 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
12072         PR tree-optimization/52267
12073         * tree-vrp.c (masked_increment): New function.
12074         (register_edge_assert_for_2): Derive ASSERT_EXPRs
12075         from (X & CST1) cmp CST2 tests.
12077 2012-03-15  Richard Guenther  <rguenther@suse.de>
12079         PR middle-end/52580
12080         * tree-data-ref.c (subscript_dependence_tester_1): Check
12081         all dimensions for non-conflicting access functions.
12083 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12085         PR c++/44783
12086         * doc/invoke.texi [C++ Language Options]: Document
12087         -ftemplate-backtrace-limit.
12089 2012-03-15  Tristan Gingold  <gingold@adacore.com>
12091         * c-parser.c (c_parser_parameter_declaration): Handle #pragma
12092         before a parameter.
12094 2012-03-15  Tristan Gingold  <gingold@adacore.com>
12096         * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
12097         use DW_OP_call_frame_cfa.
12099 2012-03-14  H.J. Lu  <hongjiu.lu@intel.com>
12101         PR target/50797
12102         * config/i386/i386-opts.h (pmode): New.
12104         * config/i386/i386.c (ix86_option_override_internal): Properly
12105         check and set ix86_pmode.
12107         * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
12109         * config/i386/i386.opt (maddress-mode=): New.
12111         * doc/invoke.texi: Document -maddress-mode=short|long for x86.
12113 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12115         * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
12116         (dwarf2out_do_cfi_asm): Likewise.
12117         * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
12118         handling.
12119         (add_data_member_location_attribute): Likewise.
12120         (gen_array_type_die): Likewise.
12121         (gen_subprogram_die): Likewise.
12122         (gen_producer_string): Likewise.
12123         * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
12124         Remove MIPS_DEBUGGING_INFO handling.
12125         (sdb_debug_hooks): Likewise.
12126         (sdbout_begin_block): Likewise.
12127         (sdbout_end_block): Likewise.
12128         (sdbout_begin_prologue): Likewise.
12129         (sdbout_start_source_file): Likewise.
12130         (sdbout_end_source_file): Likewise.
12131         (sdbout_init): Likewise.
12132         * system.h (MIPS_DEBUGGING_INFO): Poison.
12134 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12136         * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
12137         (alpha_file_start) [MS_STAMP]: Remove.
12139         * config/alpha/elf.h (TARGET_GAS): Remove.
12140         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
12141         * config/alpha/linux.h (TARGET_DEFAULT): Remove.
12142         * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
12143         * config/alpha/vms.h (TARGET_DEFAULT): Remove.
12144         * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
12145         (alpha*-*-freebsd*): Likewise.
12146         (alpha*-*-netbsd*): Likewise.
12147         (alpha*-*-openbsd*): Likewise.
12148         (alpha*-*-*): Remove target_cpu_default2.
12149         * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
12150         handling.
12151         * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
12152         (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
12153         * config/alpha/alpha.c (print_operand): Always assume
12154         TARGET_AS_SLASH_BEFORE_SUFFIX.
12155         * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
12156         Remove TARGET_AS_CAN_SUBTRACT_LABELS.
12157         ("*builtin_setjmp_receiver_er_1"): Remove.
12158         * config/alpha/alpha.opt (malpha-as): Remove.
12159         (mgas): Ignore.
12160         * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
12161         -malpha-as, -mgas.
12162         Remove DEC Unix reference.
12164         * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
12165         (EXTENDED_COFF): Remove.
12166         * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
12167         (EXTENDED_COFF): Don't undef.
12168         * config/alpha/alpha.c (alpha_file_start): Always assume
12169         OBJECT_FORMAT_ELF.
12170         Don't set targetm.asm_file_start_file_directive.
12171         [!OBJECT_FORMAT_ELF]: Remove.
12172         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12174         * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
12175         (DBX_DEBUGGING_INFO): Remove.
12176         (MIPS_DEBUGGING_INFO): Remove.
12177         (PREFERRED_DEBUGGING_TYPE): Remove.
12178         (DBX_OUTPUT_SOURCE_LINE): Remove.
12179         (SDB_OUTPUT_SOURCE_LINE): Remove.
12180         (DBX_CONTIN_LENGTH): Remove.
12181         (NO_DBX_FUNCTION_END): Remove.
12182         (ASM_STABS_OP): Remove.
12183         (ASM_STABN_OP): Remove.
12184         (ASM_STABD_OP): Remove.
12185         (SDB_ALLOW_FORWARD_REFERENCES): Remove.
12186         (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
12187         (PUT_SDB_DEF): Remove.
12188         (PUT_SDB_PLAIN_DEF): Remove.
12189         (PUT_SDB_TYPE): Remove.
12190         (sdb_label_count): Remove.
12191         (PUT_SDB_BLOCK_START): Remove.
12192         (PUT_SDB_BLOCK_END): Remove.
12193         (PUT_SDB_FUNCTION_START): Remove.
12194         (PUT_SDB_FUNCTION_END): Remove.
12195         (PUT_SDB_EPILOGUE_END): Remove.
12196         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
12197         (MIPS_DEBUGGING_INFO): Don't undef.
12198         (DBX_DEBUGGING_INFO): Don't undef.
12199         * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
12200         (MIPS_DEBUGGING_INFO): Don't undef.
12201         (DBX_DEBUGGING_INFO): Don't undef.
12202         * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
12203         * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
12204         handling.
12205         (alpha_start_function): Likewise.
12206         (sdb_label_count): Remove.
12207         (alpha_output_filename): Remove DBX_DEBUG handling.
12208         (alpha_file_start): Likewise.
12210 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12212         * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
12213         (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
12214         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
12215         Solaris 8 support.
12216         * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
12217         (ld_tls_support): Remove Solaris 8 references.
12218         (lwp_dir, lwp_spec): Remove support for alternate thread library.
12219         * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
12220         * configure: Regenerate.
12221         * config.in: Regenerate.
12223         * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
12224         * config/i386/sol2.h: Remove Solaris 8 references.
12226         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
12227         (i?86-*-solaris2.9): ... this.
12228         Remove Solaris 8 references.
12229         (Specific, *-*-solaris2*): Document Solaris 8 removal.
12230         Remove Solaris 8 references.
12232 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12234         * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
12235         (mips-sgi-irix6.5*): Remove.
12236         * config.host (mips-sgi-irix*): Remove.
12237         * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
12238         (set_have_as_tls): Remove *-*-irix6*.
12239         (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
12240         * configure: Regenerate.
12242         * config/mips/iris6.h: Remove.
12243         * config/mips/iris6.opt: Remove.
12244         * config/mips/t-irix6: Remove.
12246         * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
12247         (TARGET_IRIX6): Remove.
12248         (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
12249         Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
12250         * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
12251         handling.
12252         (mips_file_start): Likewise.
12253         * config/mips/mips-protos.h (irix_asm_output_align): Remove.
12255         * config/mips/driver-native.c [__sgi__]: Remove.
12256         (host_detect_local_cpu) [__sgi__]: Remove.
12258         * config/mips/gnu-user.h: Remove iris5.h reference.
12260         * config/mips/mips-modes.def: Remove IRIX 6 reference.
12261         * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
12262         * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
12263         Remove.
12265         * gcc.c (main): Move asm_debug initialization ...
12266         (asm_debug): ... here.
12268         * ginclude/stddef.h (__STDDEF_H__): Don't define.
12270         * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
12271         * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
12272         * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
12273         (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
12274         [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
12275         * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
12276         Remove.
12277         * doc/tm.texi: Regenerate.
12279         * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
12280         IRIX 6 reference.
12281         (MIPS Options, -march): Remove IRIX reference.
12282         * doc/install.texi (Binaries, SGI IRIX): Remove.
12283         (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
12284         of section.
12285         * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
12287 2012-03-14  Martin Jambor  <mjambor@suse.cz>
12289         * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
12290         when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
12291         (expand_expr_real_1): Do not handle misalignment if modifier is
12292         EXPAND_WRITE.
12294 2012-03-14  Richard Guenther  <rguenther@suse.de>
12296         PR middle-end/52584
12297         * tree-vect-generic.c (type_for_widest_vector_mode): Take
12298         element type instead of mode, use build_vector_type_for_mode
12299         instead of the langhook, build a vector of proper signedness.
12300         (expand_vector_operations_1): Adjust.
12302 2012-03-14  Richard Guenther  <rguenther@suse.de>
12304         PR middle-end/52582
12305         * gimple-fold.c (canonicalize_constructor_val): Make sure we have
12306         a cgraph node for a FUNCTION_DECL that comes from a constructor.
12307         (gimple_get_virt_method_for_binfo): Likewise.
12309 2012-03-14  Richard Guenther  <rguenther@suse.de>
12311         PR tree-optimization/52571
12312         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
12313         flag_section_anchors check ...
12314         (vect_can_force_dr_alignment_p): ... here.  Do not re-align
12315         DECL_COMMON variables.
12317 2012-03-14  Richard Guenther  <rguenther@suse.de>
12319         * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
12320         * stor-layout.c (start_bitfield_representative): New function.
12321         (finish_bitfield_representative): Likewise.
12322         (finish_bitfield_layout): Likewise.
12323         (finish_record_layout): Call finish_bitfield_layout.
12324         * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
12325         for QUAL_UNION_TYPE fields.
12326         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
12327         Stream DECL_BIT_FIELD_REPRESENTATIVE.
12328         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
12330         PR middle-end/52080
12331         PR middle-end/52097
12332         PR middle-end/48124
12333         * expr.c (get_bit_range): Unconditionally extract bitrange
12334         from DECL_BIT_FIELD_REPRESENTATIVE.
12335         (expand_assignment): Adjust call to get_bit_range.
12337 2012-03-14  Richard Guenther  <rguenther@suse.de>
12339         PR middle-end/52578
12340         * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
12341         the outermost conversion is a sign-change only.
12342         (fold_binary_loc): Disregard widening and sign-changing
12343         conversions when we determine if two variables are equal
12344         for reassociation.
12345         * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
12346         (T1)x if the outermost conversion is a sign-change only.
12348 2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
12350         Revert:
12351         2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
12353         * config/i386/predicates.md (constant_call_address_operand): Declare
12354         as special predicate.  Update all uses.
12356 2012-03-13  Jakub Jelinek  <jakub@redhat.com>
12358         PR c/52577
12359         * c-parser.c (c_parser_postfix_expression)
12360         <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
12362         * config/i386/smmintrin.h: Avoid /* within a comment.
12363         * config/i386/nmmintrin.h: Likewise.
12365 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12367         * config/i386/i386.md (xbegin): Remove constraint from expander.
12369 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12371         * config/i386/predicates.md (constant_call_address_operand): Declare
12372         as special predicate.  Update all uses.
12373         * config/i386/i386.md: Remove mode from constant_call_address_operand
12374         predicates.
12375         * config/i386/i386.c (ix86_output_call_insn): Call
12376         constant_call_address_operand with VOIDmode.
12378 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12380         * config/i386/i386.c (ix86_decompose_address): Handle subregs of
12381         AND zero extended address correctly.
12383 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12385         * config/i386/predicates.md (tls_symbolic_operand): Declare as
12386         special predicate.
12387         (tls_modbase_operand): Ditto.
12388         * config/i386/i386.md: Remove mode from tls_symbolic_operand and
12389         tls_modbase_operand predicates.
12391 2012-03-13  Martin Jambor  <mjambor@suse.cz>
12393         * expr.c (expand_assignment): Handle misaligned scalar writes to
12394         memory through top-level MEM_REFs by calling store_bit_field.
12396 2012-03-13  Richard Guenther  <rguenther@suse.de>
12398         PR middle-end/52134
12399         * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
12400         if Y is a constant multiple of 1 << CST.
12402 2012-03-13  Georg-Johann Lay  <avr@gjlay.de>
12404         PR target/52488
12405         * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
12406         offset (size) to a value the insns can deal with.
12407         (expand_epilogue): Ditto.
12409 2012-03-13  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
12411         * config/arm/neon.ml (ops): Fixup expected instructions for
12412         unsigned vector compares.
12414 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12416         * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
12417         addresses only when %reg is not in word mode.
12419 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12421         * config/microblaze/microblaze.md: Fix typo.
12422         * tree-if-conv.c: Likewise.
12423         * tree-vect-patterns.c: Likewise.
12425 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12427         * config.gcc (extra_passes): Remove.
12428         * configure.ac (extra_passes): Don't substitute.
12429         * configure: Regenerate.
12430         * Makefile.in (EXTRA_PASSES): Remove.
12431         (GCC_PASSES): Remove $(EXTRA_PASSES).
12432         (MOSTLYCLEANFILES): Likewise.
12433         (native): Likewise.
12434         (install-common): Likewise.
12436 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12438         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
12439         * config/i386/i386.c (ix86_decompose_address): Use
12440         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
12441         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
12442         thread pointer to a register.
12444 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12446         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
12447         on tls_symbolic_operand.
12448         (tls_global_dynamic_64_<mode>): Likewise.
12450 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
12452         PR other/52545
12453         * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
12454         SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
12456 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
12458         PR target/52499
12459         * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
12460         type from reg_class_t to enum reg_class.
12461         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
12463 2012-03-12  Andrew Pinski  <apinski@cavium.com>
12465         * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
12466         (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
12467         (value_replacement): Likewise.
12468         (empty_block_p): Check also if the PHIs for the block are empty.
12470 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
12472         PR target/52148
12473         * config/avr/avr.c (avr_out_movmem): Fix typo in output template
12474         for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
12475         r184615 from 2012-02-28.
12477 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12479         * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
12480         (ix86_gen_tls_local_dynamic_base_64): Likewise.
12481         (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
12482         and ix86_gen_tls_local_dynamic_base_64.
12483         (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
12484         ix86_gen_tls_local_dynamic_base_64.
12486         * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
12487         (*tls_global_dynamic_64_<mode>): This.
12488         (tls_global_dynamic_64): Renamed to ...
12489         (tls_global_dynamic_64_<mode>): This.
12490         (*tls_local_dynamic_base_64): Renamed to ...
12491         (*tls_local_dynamic_base_64_<mode>): This.
12492         (tls_local_dynamic_base_64): Renamed to ...
12493         (tls_local_dynamic_base_64_<mode>): This.
12495 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12497         * config/i386/i386.c (ix86_option_override_internal): Properly
12498         set ix86_gen_leave and ix86_gen_monitor.  Check Pmode == DImode,
12499         instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
12500         ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
12501         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
12503         * config/i386/sse.md (sse3_monitor64): Renamed to ...
12504         (sse3_monitor64_<mode>): This.
12506 2012-03-12  Tristan Gingold  <gingold@adacore.com>
12508         * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
12509         (ia64_function_arg_advance): Ditto.
12511 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12513         * config.gcc (mips*-*-openbsd*): Remove.
12514         * config/mips/openbsd.h: Remove.
12515         * config/mips/sdb.h: Remove.
12517         * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
12518         * config/mips/mips.c (sdb_label_count): Remove.
12519         (mips_debugger_offset): Remove #if 0 code.
12520         (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
12521         * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
12523 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12525         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
12526         binutils reference.
12527         (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
12528         Update binutils references.
12529         (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
12530         Update binutils reference.
12531         Update Sun as/GNU ld caveat.
12532         Document binutils largefile requirement for LTO plugin.
12533         Remove reference to alternate libpthread.
12535 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12537         * config.gcc (alpha*-dec-osf5.1*): Remove.
12538         * config.host (alpha*-dec-osf*): Remove.
12539         * configure.ac (*-*-osf*): Remove.
12540         (alpha*-dec-osf*): Remove.
12541         * configure: Regenerate.
12543         * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
12544         config/alpha/va_list.h, config/alpha/x-osf: Remove.
12546         * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
12547         * config/alpha/alpha.c (struct machine_function): Update comment.
12548         (alpha_start_function): Remove Tru64 UNIX as handling for
12549         max_frame_size.
12550         * config/alpha/alpha.md ("exception_receiver"): Remove
12551         TARGET_LD_BUGGY_LDGP.
12552         ("*exception_receiver_2"): Likewise.
12553         * except.c (finish_eh_generation): Remove Tru64 reference.
12554         * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
12555         * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
12556         * target.def (handle_pragma_extern_prefix): Remove.
12558         * Makefile.in (mips-tfile.o-warn): Remove.
12559         (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
12560         (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
12561         * mips-tdump.c, mips-tfile.c: Remove.
12563         * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
12564         extern_prefix.
12565         * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
12566         (Specific, alpha*-dec-osf5.1): Note removal.
12567         * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
12568         Remove.
12569         * doc/tm.texi: Regenerate.
12570         * doc/trouble.texi (Cross-Compiler Problems): Remove.
12572 2012-03-12  Richard Guenther  <rguenther@suse.de>
12574         * config/arm/arm.c (neon_dereference_pointer): Do not call
12575         covert during RTL expansion.
12577 2012-03-12  Tristan Gingold  <gingold@adacore.com>
12579         * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
12580         Options.  Mention -mpointer-size.
12582 2012-03-12  Richard Guenther  <rguenther@suse.de>
12584         * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
12585         build_nonstandard_integer_type.
12587 2012-03-12  Richard Guenther  <rguenther@suse.de>
12589         * tree.c (signed_or_unsigned_type_for): Use
12590         build_nonstandard_integer_type.
12591         (signed_type_for): Adjust documentation.
12592         (unsigned_type_for): Likewise.
12593         * tree-pretty-print.c (dump_generic_node): Use standard names
12594         for non-standard integer types if available.
12596 2012-03-12  Tristan Gingold  <gingold@adacore.com>
12598         * config/vms/vms.opt: Add vms-opts.h header.
12599         (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
12600         target mask.
12601         (-mvms-return-codes): Document.
12602         (-mpointer-size): New option.
12603         (vms_pointer_size): Add enumeration.
12604         * config/vms/vms-opts.h: New file.
12605         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
12606         __INITIAL_POINTER_SIZE.
12607         (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
12608         (C_COMMON_OVERRIDE_OPTIONS): Define.
12609         (DWARF2_ADDR_SIZE): Define.
12610         * config/vms/vms.c (vms_patch_builtins): Adjust condition.
12611         * config/vms/vms-protos.h (vms_c_common_override_options):
12612         New prototype.
12613         * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
12614         if -mno-pointer-size.
12615         (vms_c_common_override_options): New function.
12616         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
12617         * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
12618         (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
12619         and flag_vms_pointer_size.
12620         (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
12621         * config.gcc (*-*-*vms*): Define xm_file.
12622         (alpha*-dec-*vms*): Do not define xm_file.
12623         (alpha64-dec-*vms*): Remove.
12624         (ia64-hp-*vms*): Do not define xm_file.  Simplify tm_file
12625         and tmake_file.
12627 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
12629         PR tree-optimization/51721
12630         * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
12631         if (int) unsvar cmp CST.
12633 2012-03-12  Richard Guenther  <rguenther@suse.de>
12635         * tree-sra.c (create_access_replacement): Only rename the replacement
12636         if we can rewrite it into SSA form.  Properly mark register typed
12637         replacements that we cannot rewrite with TREE_ADDRESSABLE.
12638         * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
12639         for aggregate or BLKmode results.
12641 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
12643         PR tree-optimization/52533
12644         * tree-vrp.c (register_edge_assert_for_2): Use double_int
12645         type for mask, only handle shifts by non-zero in-range
12646         shift count, for LE_EXPR and GT_EXPR if new_val is
12647         maximum, don't add the assertion.
12649 2012-02-12  Kirill Yukhin  <kirill.yukhin@intel.com>
12651         * doc/invoke.texi: Document -mrtm option.
12652         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
12653         (OPTION_MASK_ISA_RTM_UNSET): Ditto.
12654         (ix86_handle_option): Handle OPT_mrtm.
12655         * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
12656         xtestintrin.h.
12657         (x86_64-*-*): Ditto.
12658         * i386-builtin-types.def (INT_FTYPE_VOID): New.
12659         * config/i386/i386-c.c (ix86_target_macros_internal): Define
12660         __RTM__ if needed.
12661         (ix86_target_string): Define -mrtm option.
12662         (PTA_RTM): New.
12663         (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
12664         Handle new option.
12665         (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
12666         (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
12667         IX86_BUILTIN_XTEST.
12668         (bdesc_special_args): Ditto.
12669         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
12670         (ix86_expand_special_args_builtin): Handle new built-in type.
12671         (ix86_expand_builtin): Handle XABORT instruction.
12672         * config/i386/i386.h (TARGET_RTM): New.
12673         * config/i386/i386.md (UNSPECV_XBEGIN): New.
12674         (UNSPECV_XEND): Ditto.
12675         (UNSPECV_XABORT): Ditto.
12676         (UNSPECV_XTEST): Ditto.
12677         (xbegin): Ditto.
12678         (xbegin_1): Ditto.
12679         (xend): Ditto.
12680         (xabort): Ditto
12681         (xtest): Ditto.
12682         (xtest_1): Ditto.
12683         * config/i386/i386.opt (mrtm): New.
12684         * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
12685         * config/i386/rtmintrin.h: New header.
12686         * config/i386/xtestintrin.h: Ditto.
12688 2012-03-12  Tristan Gingold  <gingold@adacore.com>
12690         * ginclude/stddef.h: Adjust previous patch.
12691         Use __VMS__ instead of VMS.
12693 2012-03-12  Uros Bizjak  <ubizjak@gmail.com>
12695         * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
12696         Also convert sequences with CC setting arithmetic instruction.
12698 2012-03-11  Sandra Loosemore  <sandra@codesourcery.com>
12700         * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
12701         from C Language Options to Preprocessor Options.
12702         (C Dialect Options): Move -no-integrated-cpp documentation
12703         from here...
12704         (Preprocessor Options): ...to here.  Rewrite the description
12705         so it makes more sense, and remove discussion of merging front ends.
12707 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12709         * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
12710         needed for loop.
12711         (ix86_expand_setmem): Likewise.
12713 2012-03-11  Uros Bizjak  <ubizjak@gmail.com>
12715         * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
12716         convert_to_mode.
12718 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12720         * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
12721         ptr_mode == SImode.  Replace DImode with Pmode or ptr_mode.
12723 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12725         * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
12727 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12729         * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
12730         TARGET_64BIT.
12732 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12733             Uros Bizjak  <ubizjak@gmail.com>
12735         * config/i386/predicates.md (call_insn_operand): Allow
12736         constant_call_address_operand in Pmode only.
12737         (sibcall_insn_operand): Ditto.
12738         * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
12739         (*call_vzeroupper): Ditto.
12740         (*sibcall): Ditto.
12741         (*sibcall_vzeroupper): Ditto.
12742         (*call_value): Ditto.
12743         (*call_value_vzeroupper): Ditto.
12744         (*sibcall_value): Ditto.
12745         (*sibcall_value_vzeroupper): Ditto.
12746         (*indirect_jump): Ditto.
12747         (*tablejump_1): Ditto.
12748         (indirect_jump): Convert memory address to word mode for TARGET_X32.
12749         (tablejump): Ditto.
12750         * config/i386/i386.c (ix86_expand_call): Convert indirect operands
12751         to word mode.
12753 2012-03-11  Oleg Endo  <olegendo@gcc.gnu.org>
12755         PR target/51244
12756         * config/sh/sh.md (movnegt): Expand into respective insns immediately.
12757         Use movrt_negc instead of negc pattern for non-SH2A.
12758         (*movnegt): Remove.
12759         (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
12761 2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
12763         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
12764         if Pmode != word_mode.
12765         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
12766         Pmode == SImode for TARGET_X32.
12768         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
12769         (tls_initial_exec_x32): Likewise.
12771 2012-03-10  Chung-Lin Tang  <cltang@codesourcery.com>
12773         PR rtl-optimization/52528
12774         * combine.c (can_combine_p): Add setting of subst_low_luid
12775         before call to expand_field_assignment().
12777 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
12779         * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
12780         and related program names.
12782 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
12784         * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
12786 2012-03-09  Uros Bizjak  <ubizjak@gmail.com>
12788         PR target/52530
12789         * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
12790         (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
12791         to set code to 'q'.
12792         * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
12793         (*movdi_internal_rex64): Use %E operand modifier for lea.
12794         (*movsi_internal): Ditto.
12795         (*lea_1): Ditto.
12796         (*lea<mode>_2): Ditto.
12797         (*lea_{3,4,5,6}_zext): Ditto.
12798         (*tls_global_dynamic_32_gnu): Ditto.
12799         (*tls_global_dynamic_64): Ditto.
12800         (*tls_dynamic_gnu2_lea_32): Ditto.
12801         (*tls_dynamic_gnu2_lea_64): Ditto.
12802         (pro_epilogue_adjust_stack_<mode>_add): Ditto.
12804 2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
12806         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
12807         redefine to be NULL if the current bit-size is different from the
12808         configured bit-size.
12810         * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
12811         cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
12812         set the default tuning.  Add asserts to make sure the cpu and tune
12813         indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
12814         test whether the index is set, instead of > 0.
12815         (rs6000_file_start): Do not reset the default cpu if the current
12816         bit-size is different from the configured bit-size.
12818 2012-03-09  Tristan Gingold  <gingold@adacore.com>
12820         * config/vms/vms-crtlmap.map: Add comments.
12821         Add entries needed to build Ada RTS.
12823 2012-03-09  Tristan Gingold  <gingold@adacore.com>
12825         * ginclude/stddef.h: Do not define __size_t on VMS.
12827 2012-03-09  Tristan Gingold  <gingold@adacore.com>
12829         * c-tree.h (c_default_pointer_mode): New variable.
12830         * c-decl.c (c_default_pointer_mode): New variable.
12831         (c_build_pointer_type): New function.
12832         (grokdeclarator): Call c_build_pointer_type instead
12833         of build_pointer_type.
12835         * config/vms/vms-c.c: Include c-tree.h
12836         (saved_pointer_mode): New variable.
12837         (handle_pragma_pointer_size): New function.
12838         (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
12839         (vms_c_register_pragma): Register __pointer_size and
12840         __required_pointer_size pragmas.
12842 2012-03-09  Tristan Gingold  <gingold@adacore.com>
12844         * config/vms/vms-c.c (vms_construct_include_filename): New function.
12845         (vms_c_register_includes): Reference it.
12847 2012-03-09  Andrew Pinski  <apinski@cavium.com>
12849         PR middle-end/51988
12850         * tree-ssa-phiopt.c: Include tree-pretty-print.h for
12851         print_generic_expr.
12852         (tree_ssa_phiopt_worker): Go through all the PHIs for
12853         value_replacement instead of just the singleton one.
12854         (value_replacement): Change return type to int.  Return 0 instead of
12855         false.
12856         Allow the middle basic block to contain more than just the defining
12857         statement.
12858         Handle non empty middle basic blocks.
12859         * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
12861 2012-03-09  Jiangning Liu  <jiangning.liu@arm.com>
12863         * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
12864         array reference and component reference.
12865         (analyze_scalar_evolution_for_address_of): New.
12867 2012-03-08  Jie Zhang  <jzhang918@gmail.com>
12869         PR target/49862
12870         * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
12871         (hwloop_pattern_reg): Fix set but not used warning.
12872         (bfin_reorg_loops): Remove unused parameter.
12873         (bfin_reorg): Update use of bfin_reorg_loops.
12875 2012-03-08  H.J. Lu  <hongjiu.lu@intel.com>
12877         * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
12878         with integer parameters in registers.
12879         (gen_push): Push register in word_mode instead of Pmode.
12880         (ix86_emit_save_regs): Likewise.
12881         (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
12882         (gen_pop): Pop register in word_mode instead of Pmode.
12883         (ix86_emit_restore_regs_using_pop): Likewise.
12884         (ix86_expand_prologue): Replace Pmode with word_mode for push
12885         immediate.  Use ix86_gen_pro_epilogue_adjust_stack.  Save and
12886         restore RAX and R10 in word_mode.
12887         (ix86_emit_restore_regs_using_mov): Restore integer registers
12888         in word_mode.
12889         (ix86_expand_split_stack_prologue): Save R10_REG and restore in
12890         word_mode.
12891         (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
12892         (ix86_split_long_move): Likewise.
12894         * config/i386/i386.md (W): New.
12895         (*push<mode>2_prologue): Replace :P with :W.
12896         (*pop<mode>1): Likewise.
12897         (*pop<mode>1_epilogue): Likewise.
12898         (push/pop peephole2): Use word_mode scratch registers.
12900 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
12902         * config/i386/predicates.md (indirect_branch_operand): Simplify.
12904 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
12906         * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
12907         for constants in [-63,63].
12909 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
12911         PR target/52530
12912         Revert:
12913         2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
12915         * config/i386/i386.c (ix86_print_operand_address): Only handle
12916         zero-extended DImode addresses.
12918 2012-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12920         * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
12921         * configure: Regenerate.
12923 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
12925         PR target/52496
12926         * config/avr/avr.c (avr_mem_clobber): New static function.
12927         (avr_expand_delay_cycles): Add memory clobber operand to
12928         delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
12929         * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
12930         (enable_interrupt, disable_interrupt): New expander.
12931         (nopv, sleep, wdr): New expanders.
12932         (delay_cycles_1): Add memory clobber.
12933         (delay_cycles_2): Add memory clobber.
12934         (delay_cycles_3): Add memory clobber.
12935         (delay_cycles_4): Add memory clobber.
12936         (cli_sei): New insn from former "enable_interrupt",
12937         "disable_interrupt" with memory clobber.
12938         (*wdt): New insn from former "wdt" with memory clobber.
12939         (*nopv): Similar, but for "nopv".
12940         (*sleep): Similar, but for "sleep".
12942 2012-03-07  Oleg Endo  <olegendo@gcc.gnu.org>
12943             Kaz Kojima  <kkojima@gcc.gnu.org>
12945         PR target/52503
12946         * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
12947         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
12948         (SUBTARGET_OVERRIDE_OPTIONS): Define.
12950 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
12952         * config/i386/predicates.md (x86_64_zext_general_operand): New.
12953         * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
12954         predicate to x86_64_zext_general_operand.  Accept "Z" constraint.
12956 2012-03-07  Walter Lee  <walt@tilera.com>
12958         * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
12959         REG_CFA_* notes for the stack pointer.
12960         (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
12961         EH_RETURN_STACKADJ_RTX.
12962         * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
12963         generate REG_CFA_* notes for the stack pointer.
12964         (tilepro_expand_epilogue): Restore stack pointer by adjusting it
12965         by EH_RETURN_STACKADJ_RTX.
12967 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
12969         * doc/invoke.texi (AVR Built-in Macros): Correct condition for
12970         when __AVR_3_BYTE_PC__ is defined.
12972 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
12974         * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
12975         (ix86_print_operand): Handle '^'.
12976         * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
12977         using P mode iterator.  Add %^ to asm template to conditionally emit
12978         addr32 prefix.
12979         (*rep_movdi_rex64): Ditto.
12980         (*strsetdi_rex_1): Ditto.
12981         (*rep_stosdi_rex64): Ditto.
12982         (*strmov{si,hi,qi}_1): Add %^ to asm template to
12983         conditionally emit addr32 prefix.
12984         (*rep_mov{si,qi}): Ditto.
12985         (*strset{si,hi,qi}): Ditto.
12986         (*rep_stos{si,qi}): Ditto.
12987         (*cmpstrnqi_nz_1): Ditto.
12988         (*cmpstrnqi_1): Ditto.
12989         (*strlenqi_1): Ditto.
12991 2012-03-07  H.J. Lu  <hongjiu.lu@intel.com>
12993         * config/i386/i386.c (function_value_64): Return pointers in
12994         word_mode instead of Pmode.
12995         (ix86_promote_function_mode): Likewise.
12997 2012-03-07  Richard Guenther  <rguenther@suse.de>
12999         * coverage.c (get_gcov_type): Use type_for_mode.
13000         (get_gcov_unsigned_t): Likewise.
13001         * expr.c (store_constructor): Use type_for_mode.
13002         (try_casesi): Likewise.
13003         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
13004         (add_standard_iv_candidates): Use standard type trees.
13005         * dojump.c (do_jump): Remove dead code.
13007 2012-03-07  Richard Guenther  <rguenther@suse.de>
13009         * c-typeck.c (pointer_diff): Use c_common_type_for_size.
13011 2012-03-07  Richard Guenther  <rguenther@suse.de>
13013         * convert.c (strip_float_extensions): Move ...
13014         * tree.c (strip_float_extensions): ... here.
13016 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13018         PR target/52484
13019         * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
13021 2012-03-07  Richard Guenther  <rguenther@suse.de>
13023         * omp-low.c (extract_omp_for_data): Use signed_type_for.
13024         (expand_omp_for_generic): Likewise.
13025         (expand_omp_for_static_nochunk): Likewise.
13026         (expand_omp_for_static_chunk): Likewise.
13027         * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
13028         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
13029         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
13030         Use unsigned_type_for.
13031         (vect_create_cond_for_align_checks): Use signed_type_for.
13033 2012-03-07  Andrey Belevantsev  <abel@ispras.ru>
13035         PR rtl-optimization/52203
13036         * sel-sched.c (estimate_insn_cost): New parameter pempty.  Adjust
13037         all callers to pass NULL except ...
13038         (reset_sched_cycles_in_current_ebb): ... here, save the value
13039         in new variable 'empty'.  Increase issue_rate only for
13040         non-empty insns.
13042 2012-03-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
13044         PR target/51417
13045         * Makefile.in: Let install-gcc-ar depend on installdirs,
13046         gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
13047         Don't double canonicalize if cross-compiling.
13049 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13051         PR target/52506
13052         * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
13053         to: RAMPZ, RAMPY, RAMPX, RAMPD.
13054         (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
13056 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13058         PR target/52505
13059         * config/avr/avr.c (avr_out_xload): Don't read unintentionally
13060         from RAM.
13061         * config/avr/avr.md (xload_8): Adjust insn length.
13063 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13065         PR target/52461
13066         * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
13067         if RAMPZ affects reading from RAM.
13069 2012-03-07  Richard Guenther  <rguenther@suse.de>
13071         PR pch/52518
13072         PR pch/38987
13073         * doc/invoke.texi (Precompiled Headers): Remove sentence that
13074         suggests you can include PCHs from inside another header.
13076 2012-03-07  Richard Sandiford  <rdsandiford@googlemail.com>
13078         PR middle-end/52515
13079         * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
13081 2012-03-07  Kai Tietz  <ktietz@redhat.com>
13083         * doc/invoke.texi (fwritable-relocated-rdata): Document
13084         new Cygwin/MinGW target option.
13085         * config/i386/winnt.c (i386_pe_unique_section): Ignore
13086         reloc if flag -fwritable-relocated-rdata is not set.
13087         (i386_pe_section_type_flags): Likewise.
13088         * config/i386/cygming.opt (fwritable-relocated-rdata):
13089         Add new flag variable flag_writable_rel_rdata.
13091 2012-03-07  Richard Guenther  <rguenther@suse.de>
13093         * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
13094         precision against gimple constraints.
13096 2012-03-06  Richard Sandiford  <rdsandiford@googlemail.com>
13098         PR middle-end/52372
13099         * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
13100         variables.
13101         (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
13102         * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
13103         variables.
13104         (init_emit_regs): Move associated initialization to...
13105         (init_emit_once): ...here.
13107 2012-03-06  Richard Henderson  <rth@redhat.com>
13109         * config/m68k/m68k.h (ISA_HAS_TAS): New.
13110         * config/m68k/sync.md (atomic_test_and_set): Use it.
13111         (atomic_test_and_set_1): Likewise.
13113 2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
13115         PR target/50310
13116         * config/rs6000/vector.md (vector_uneq<mode>): Add support for
13117         UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
13118         (vector_ltgt<mode>): Likewise.
13119         (vector_ordered<mode>): Likewise.
13120         (vector_unordered<mode>): Likewise.
13121         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
13123 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
13125         * trans-mem.c: New typedef for tm_region_p.
13126         Define vector types for tm_region_p.
13127         (tm_region_init): Replace region_worklist to a vector called
13128         bb_regions.
13130 2012-03-06  Richard Guenther  <rguenther@suse.de>
13132         * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
13133         MEM_REF with constant pointer operand.
13135 2012-03-06  Richard Guenther  <rguenther@suse.de>
13137         PR middle-end/52493
13138         * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
13140 2012-03-06  Tristan Gingold  <gingold@adacore.com>
13142         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
13143         (external_model_kind): Improve documentation.
13144         (vms_pragma_extern_model): Handle relaxed_redef.
13145         (vms_c_register_pragma): Allow expansion for nomember_alignment.
13147 2012-03-06  Georg-Johann Lay  <avr@gjlay.de>
13149         * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
13150         Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
13151         Some more notes on EIND usage and reorder EIND subsection.
13153 2012-03-06  Tristan Gingold  <gingold@adacore.com>
13155         * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
13156         * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
13158 2012-03-06  Tristan Gingold  <gingold@adacore.com>
13160         * config/vms/t-vmsnative (version): Define.
13161         * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
13163 2012-03-06  Andrey Belevantsev  <abel@ispras.ru>
13165         PR rtl-optimization/52250
13166         * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
13167         to put note list into.  Unconditionally call move_bb_info.
13168         (move_bb_info): Do not assert the blocks being in the same region,
13169         just drop the note list if they are not.
13171 2012-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
13173         PR target/51244
13174         * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
13175         and use unified expansion logic.
13176         * config/sh/sh.md (xorsi3_movrt): Rename to movrt.  Move
13177         closer to the existing movt insn.
13178         (negc): Rename insn to *negc.  Add new expander.
13179         (movnegt): Use xor pattern for T bit negation.  Reserve helper
13180         constant for negc pattern.
13181         (*movnegt): New insn and splitter.
13183 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
13185         * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
13186         PLUS_EXPR.
13188 2012-03-05  Richard Henderson  <rth@redhat.com>
13190         * genemit.c (main): Include "target.h" in insn-emit.c.
13191         * Makefile.in (insn-emit.o): Depend on TARGET_H.
13192         * config/sh/sync.md (atomic_test_and_set): Reference
13193         targetm.atomic_test_and_set_trueval instead of
13194         TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
13196 2012-03-05  Joern Rennecke  <joern.rennecke@embecosm.com>
13198         * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
13199         Make static.
13201 2012-03-05  Steven Bosscher  <steven@gcc.gnu.org>
13203         * langhooks.c (add_builtin_type): New function.
13204         * langhooks.h (add_builtin_type): Export it.
13205         * config/mep/mep.c (mep_init_builtins): Use it.
13206         * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
13208 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
13210         PR debug/51902
13211         * tree.h (BLOCK_SAME_RANGE): Define.
13212         * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
13213         if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
13214         Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
13215         isn't equal to supercontext fragment's fragment chain.
13216         Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
13217         fragment origin.
13218         (blocks_nreverse_all): Likewise.
13219         (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits.  Set
13220         BLOCK_SUPERCONTEXT to supercontext fragment instead of
13221         supercontext fragment's fragment origin.
13222         * dwarf2out.c (add_high_low_attributes): If stmt has the same
13223         range as its parent (or parents thereof etc.), use the parent's
13224         DW_AT_ranges value instead of creating a new .debug_ranges range.
13226 2012-03-05  Richard Henderson  <rth@redhat.com>
13228         PR tree-opt/52242
13229         Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
13230         * omp-low.c (expand_omp_atomic): Assume anything aligned to
13231         BIGGEST_ALIGNMENT is aligned.
13233 2012-03-05  Richard Henderson  <rth@redhat.com>
13235         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
13236         * config/sh/sh.c: ... here.
13238 2012-03-05  Richard Henderson  <rth@redhat.com>
13240         PR target/52481
13241         * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
13242         instead of calling negqi2 directly.
13244 2012-03-05  Aldy Hernandez  <aldyh@redhat.com>
13246         PR middle-end/52463
13247         * trans-mem.c (tm_region_init): Use last_basic_block.
13249 2012-03-05  Oleg Endo  <olegendo@gcc.gnu.org>
13251         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
13252         * config/sh/sync.md (atomic_test_and_set): New expander.
13253         (tasb, atomic_test_and_set_soft): New insns.
13254         * config/sh/sh.opt (menable-tas): New option.
13255         * doc/invoke.texi (SH Options): Document it.
13257 2012-03-05  Richard Guenther  <rguenther@suse.de>
13259         * cfgloop.c (verify_loop_structure): Verify dominators before
13260         using them.
13261         * graphite-clast-to-gimple.c (graphite_verify): Do not verify
13262         dominators from here.
13263         * graphite-scop-detection.c (create_sese_edges): Likewise.
13264         * loop-doloop.c (doloop_optimize_loops): Likewise.
13265         * loop-init.c (loop_optimizer_init): Likewise.
13266         * loop-unroll.c (unroll_and_peel_loops): Likewise.
13267         * loop-unswitch.c (unswitch_loops): Likewise.
13268         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
13269         * tree-parloops.c (parallelize_loops): Likewise.  Verify
13270         only when checking is enabled.
13271         * tree-loop-distribution.c (tree_loop_distribution): Likewise.
13273 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
13275         * genautomata.c (parse_automata_opt): New static function.
13276         (initiate_automaton_gen): Remove all option handling code.  Remove
13277         argc argument.  All callers changed.
13278         (main): Call init_rtx_reader_args_cb with the new function as argument.
13280 2012-03-05  Richard Guenther  <rguenther@suse.de>
13282         * cfgexpand.c (gimple_expand_cfg): Free dominator info.
13283         * tree-if-conv.c (combine_blocks): Free post-dominator info
13284         after breaking it.
13285         * tree-parloops.c (create_parallel_loop): Free and re-compute
13286         dominator info after breaking it.
13288 2012-03-05  Richard Guenther  <rguenther@suse.de>
13290         PR middle-end/52353
13291         * optabs.h (trapv_unoptab_p): New function.
13292         (trapv_binoptab_p): Likewise.
13293         * optabs.c (expand_binop): Use emit_libcall_block_1 with
13294         a proper equiv_may_trap argument.
13295         (expand_unop): Likewise.
13296         (emit_libcall_block_1): Take extra argument whether the
13297         instruction may trap.  Renamed from ...
13298         (emit_libcall_block): ... this.  New wrapper.
13300 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
13302         PR tree-optimization/51721
13303         * tree-vrp.c (register_edge_assert_for_2): If comparing
13304         lhs of right shift by constant with an integer constant,
13305         add ASSERT_EXPRs for the rhs1 of the right shift.
13307         * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
13309 2012-03-05  Richard Guenther  <rguenther@suse.de>
13311         * tree.c (integer_zerop): Handle VECTOR_CSTs.
13312         (integer_onep): Likewise.
13313         (integer_all_onesp): Likewise.
13315 2012-03-05  Georg-Johann Lay  <avr@gjlay.de>
13317         * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
13319 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13321         * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
13322         instead of TARGET_64BIT.
13324 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13326         * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
13327         adjust_stack_insn.
13329 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13331         * config/i386/i386.c (ix86_print_operand_address): Only handle
13332         zero-extended DImode addresses.
13334 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
13336         * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
13337         taken and cputaken as bool.
13339 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
13341         * config/i386/constraints.md (Ya): New internal constraint.
13342         * config/i386/i386.md (zero_extendsidi2): Remove expansion.
13343         (*zero_extendsidi2_rex64): Add x,x alternative.
13344         (*zero_extendsidi2): Ditto.  Add o,0 alternative.
13345         Remove flags reg clobber.  Adjust corresponding splits.
13346         (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
13347         zero_extendqisi2 expanders using SWI12 mode iterator.
13348         (zero_extend<mode>si2_and): Macroize insn from
13349         zero_extendhisi2_and and zero_extendqisi2_and.  Merge corresponding
13350         splitters.
13351         (*zero_extend<mode>si2):  Macroize insn from
13352         *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
13353         (*zero_extend*2_movzbl_and): Remove insn patterns.
13354         (zero_extendqihi2_and): Merge corresponding splitter.
13355         (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
13356         (*zero_extend*2_movzbl_and): Remove insn patterns.
13357         (*anddi_1): Split TYPE_IMOVX instructions.
13358         (*andsi_1): Use Ya for alternative 2.  Split TYPE_IMOVX instructions.
13359         (*andhi_1): Ditto.
13360         (and->zext splitter): Add splitter pattern.
13361         (zero extend with andsi3 splitter): Adjust zero_extend pattern.
13363 2012-03-04  Sandra Loosemore  <sandra@codesourcery.com>
13365         * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
13366         x86-specific text.
13367         (Debugging Options): Likewise.
13368         (Optimize Options): Likewise.
13369         (i386 and x86-64 Options): Discuss -march before -mtune, consistently
13370         with other architectures.  Use official processor names with correct
13371         spelling/capitalization.  Fix formatting and grammar issues.
13372         (i386 and x86-64 Windows Options): Similar cleanup here.
13374 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13376         * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
13378 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13380         * config/sh/sh.c (sh_dwarf_register_span): Don't apply
13381         DBX_REGISTER_NUMBER.
13383 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13385         * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
13386         operand is CONST_INT.  Take COSTS_N_INSNS into account.
13387         (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
13388         of shiftcosts.
13390 2012-03-02  Richard Henderson  <rth@redhat.com>
13392         * optabs.c (expand_atomic_test_and_set): Honor
13393         atomic_test_and_set_trueval even when atomic_test_and_set
13394         optab is not in use.
13396 2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>
13398         PR target/48596
13399         PR target/48806
13400         * config/sh/sh.c (sh_register_move_cost): Increase cost between
13401         GENERAL_REGS and FP_REGS for SImode.
13403 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
13405         PR target/49486
13406         * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
13407         (absdi2): New expander.
13408         (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
13410 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
13412         * config/sh/sync.md (atomic_exchange<mode>): New expander.
13413         (atomic_exchange<mode>_soft): New insn.
13415 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
13417         * config/sh/sync.md: Update copyright notice dates.
13418         (atomic_compare_and_swap<mode>): Use SImode for return value instead
13419         of QImode.
13420         (atomic_compare_and_swap<mode>_soft): Likewise.
13422 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
13424         PR target/31640
13425         * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
13426         * config/sh/sh.c: Update copyright notice dates.
13427         (sh_loop_align): Add logic from LOOP_ALIGN.  Don't disable loop
13428         alignment for TARGET_HARD_SH4.
13429         (sh_option_override): Reduce default function alignment.  Set
13430         loop alignment to 4 bytes when not optimizing for size.
13432 2012-03-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
13434         PR middle-end/50335
13435         * doc/invoke.texi (floop-flatten): Remove.
13436         * toplev.c (process_options): Remove references to flag_loop_flatten.
13437         * tree-ssa-loop.c (gate_graphite_transform): Same.
13438         * common.opt (floop-flatten): Obsolete.
13439         * graphite-poly.c (apply_poly_transforms): Remove reference to
13440         flag_loop_flatten.
13441         * Makefile.in (graphite-flattening.o): Remove.
13442         * graphite-flattening.c: Remove.
13444 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
13446         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
13447         having mode compatible with the mode of previous compare.  Substitute
13448         compare mode of previous compare with the mode, compatible
13449         with eliminated and previous compare.
13451 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
13453         * config/rs6000/dfp.md (floatdidd2): New define_insn.
13455 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
13457         * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
13458         compatible with CCGOCmode and CCGCmode.
13460 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
13462         * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
13464 2012-03-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
13466         * config/arm/arm.c (arm_sat_operator_match): New function.
13467         * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
13468         * config/arm/arm.md ("insn" attribute): Add "sat" value.
13469         ("SAT", "SATrev"): New code iterators.
13470         ("SATlo", "SAThi"): New code iterator attributes.
13471         ("*satsi_<SAT:code>"): New pattern.
13472         ("*satsi_<SAT:code>_shift"): Likewise.
13473         * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
13474         and "shift" attributes.
13475         ("arm_usatsihi"): Add "insn" attribute.
13476         * config/arm/predicates.md (sat_shift_operator): Allow multiplication
13477         by powers of two.  Do not allow shift by 32.
13479 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
13481         PR target/46716
13482         * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
13483         to pass the argument in the register of "natural" mode.
13485 2012-03-02  Richard Guenther  <rguenther@suse.de>
13487         PR tree-optimization/52406
13488         * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
13489         (struct indices): Add unconstrained_base member.
13490         (struct dr_alias): Remove unused vops member.
13491         (DR_UNCONSTRAINED_BASE): New define.
13492         * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
13493         add indices to allow their disambiguation.  Make DR_BASE_OBJECT
13494         be an artificial access that covers the whole indexed object,
13495         or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
13496         plain decl base-objects to their MEM_REF variant.
13497         (dr_may_alias_p): When the base-object of either data reference
13498         has unknown size use only points-to information.
13499         (compute_affine_dependence): Make dumps easier to read and
13500         more verbose.
13501         * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
13502         DR_REF when looking for packed references.
13503         (vect_supportable_dr_alignment): Likewise.
13505 2012-03-02  Greta Yorsh  <Greta.Yorsh@arm.com>
13507         * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
13508         Improve conditions for peepholes of loads followed by commutative
13509         operators.
13510         * config/arm/ldmstm.md: Regenerated.
13512 2012-03-02  Richard Guenther  <rguenther@suse.de>
13514         * BASE-VER: Set to 4.8.0.
13516 2012-03-01  Richard Earnshaw  <rearnsha@arm.com>
13518         * config.gcc (obsolete): Add all ARM targets using the FPA.
13519         (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
13520         * doc/install.texi: Avoid references to obsolete ARM ports.
13522 2012-03-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13524         * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
13526 2012-03-01  Jeremy Bennett  <jeremy.bennett@embecosm.com>
13527             Joern Rennecke  <joern.rennecke@embecosm.com>
13529         * doc/extend.texi: Expand and update information on interrupt
13530         attribute for Epiphany.
13532 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
13534         * config/sh/sh-protos.h: Update copyright notice dates.
13535         * config/sh/sh.h: Likewise.
13536         * config/sh/sh.md: Likewise.
13537         * config/sh/constraints.md: Likewise.
13538         * config/sh/predicates.md: Likewise.
13540 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
13542         * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
13543         * config/sh/sh.c (tertiary_reload_operand): Likewise.
13545 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
13547         * config/sh/constraints.md: Fix comment typo.
13549 2012-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13551         PR target/52408
13552         * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
13553         unsigned HOST_WIDE_INT.
13554         (zvdep_imm64): Likewise.
13555         (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
13556         (vdepi_and): Likewise.
13557         Likewise for unamed 64-bit patterns.
13558         * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
13560 2012-03-01  Alexandre Oliva  <aoliva@redhat.com>
13562         PR debug/52001
13563         PR rtl-optimization/52417
13564         * cselib.c (cselib_any_perm_equivs): New variable.
13565         (cselib_reset_table): Check that it's not set when not
13566         preserving constants.
13567         (cselib_add_permanent_equiv): Set it.
13568         (cselib_have_permanent_equivalences): New.
13569         (cselib_init, cselib_finish): Reset it.
13570         * cselib.h (cselib_have_permanent_equivalences): Declare.
13571         * alias.c (get_addr): Restore earlier behavior when there
13572         aren't permanent equivalences.
13574 2012-03-01  Steven Bosscher  <steven@gcc.gnu.org>
13576         * config/mn10300/mn10300-modes.def: Fix copyright notice.
13577         * config/v850/v850-modes.def: Fix copyright notice.
13579 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
13581         * doc/extend.texi (AVR Built-in Functions): Document
13582         __builtin_avr_flash_segment.
13584         * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
13585         * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
13586         (*split.flash_segment): New insn-and-split.
13587         * config/avr/avr.c (avr_init_builtins): Add local variables:
13588         const_memx_void_node, const_memx_ptr_type_node,
13589         char_ftype_const_memx_ptr.
13591 2012-03-01  Jakub Jelinek  <jakub@redhat.com>
13593         PR tree-optimization/52445
13594         * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
13595         add ssa_name_ver, offset and size fields and change store field
13596         to bool.
13597         (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
13598         (add_or_mark_expr): Likewise.  Only consider previous stores
13599         with the same size and offset.
13600         (nt_init_block): Only look at gimple_assign_single_p stmts,
13601         doesn't look at rhs2.
13603 2012-03-01  Richard Guenther  <rguenther@suse.de>
13605         PR middle-end/52443
13606         * tree-cfg.c (verify_gimple_assign_unary): Allow any
13607         conversions from integral types to pointer types.
13609 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
13611         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
13612         defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
13613         unintentionally removed in r184616.
13615 2012-03-01  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13617         * doc/invoke.texi: Document AMD bdver2 and remove mentioning
13618         3DNow from bdver1.
13620 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
13621             Uros Bizjak  <ubizjak@gmail.com>
13623         PR target/52437
13624         * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
13625         alternatives, add "e" constraint to the new last alternative
13626         and ! to last 3 alternatives.
13628 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13630         * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
13631         DW_AT_artificial attributes at the end of the processing.
13632         (gen_array_type_die): Likewise.
13633         (gen_enumeration_type_die): Likewise.
13634         (gen_struct_or_union_type_die): Likewise.
13635         (add_gnat_descriptive_type_attribute): Do not suppress debug info for
13636         the parent type.
13638 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
13640         PR middle-end/52419
13641         * expr.c (expand_assignment): If doing misaligned store that doesn't
13642         cover all mode bits, perform a RMW cycle.
13644         PR tree-optimization/52429
13645         * tree-parloops.c (separate_decls_in_region_debug): Return early
13646         if var is LABEL_DECL.
13648 2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13650         PR tree-optimization/52424
13651         * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
13652         calling dom_thread_across_edge.
13654 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13656         * config/avr/avr.c: Move definition of TARGET macros to end of file.
13658 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13660         * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
13661         * config/avr/avr.c (avr_output_bld): Remove unused function.
13662         (avr_out_sbxx_branch): Use "%T" to print bit position.
13664 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13666         * config/avr/avr.md: Untabify.
13668 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13670         * config/avr/avr.md (eqne): New code iterator.
13671         (*dec-and-branchsi): Use it in text peephole's condition.
13672         (*dec-and-branchhi): Ditto.
13673         (*dec-and-branchqi): Ditto.
13675 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13677         PR target/49939
13678         * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
13679         the device does not have the skip-bug.
13681 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
13683         * doc/invoke.texi (-msoft-atomic): Add more detailed description.
13684         (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
13685         -mpretend-cmove): New.
13687 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
13689         PR bootstrap/52397
13690         * df.h (struct df_d): Adjust comment that hard_regs_live_count
13691         doesn't count DEBUG_INSN refs.
13692         * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
13693         for DEBUG_INSN refs.
13695 2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13697         Partially revert:
13699         2012-02-20  Richard Guenther  <rguenther@suse.de>
13700         PR tree-optimization/52298
13701         * tree-vect-stmts.c (vectorizable_load): Properly use
13702         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
13704 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
13706         PR middle-end/51752
13707         * gimple.h (gimple_in_transaction): New.
13708         (gimple_set_in_transaction): New.
13709         (struct gimple_statement_base): Add in_transaction field.
13710         * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
13711         transaction loads.
13712         (tree_ssa_lim_initialize): Compute transaction bits.
13713         * tree.h (compute_transaction_bits): Protoize.
13714         * trans-mem.c (tm_region_init): Use the heap to store BB
13715         auxilliary data.
13716         (compute_transaction_bits): New.
13718 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13720         * gcc.c (display_help): Document --help=common and sort entries
13721         alphabetically.
13723 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13725         * doc/install.texi: Document check-$LANG specific shortcuts
13727 2012-02-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
13729         PR target/51534
13730         * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
13731         and vcgtu.
13732         * config/arm/arm_neon.h: Regenerate.
13733         * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
13734         (neon_vcgeu): New insn.
13735         (neon_vcgtu): Likewise.
13736         * config/arm/neon.ml (s_8_32, u_8_32): New lists.
13737         (ops): Unsigned comparison intrinsics call a different builtin.
13739 2012-02-28  Richard Guenther  <rguenther@suse.de>
13741         PR target/52407
13742         * config/i386/i386.c (ix86_expand_vector_set): Fix element
13743         ordering for the VEC_CONCAT for two element vectors for
13744         V2SFmode, V2SImode and V2DImode.
13746 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
13748         PR target/49448
13749         * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
13750         detecting big-endian triplets.
13752 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
13754         * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
13755         mode if there is no type information available.
13757 2012-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
13759         PR tree-optimization/53207
13760         * doc/invoke.texi: Document as experimental and relying on graphite.
13762 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
13764         * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
13765         of initializer to changes from r184614.
13767 2012-02-28  Richard Guenther  <rguenther@suse.de>
13769         PR tree-optimization/52395
13770         * tree-sra.c (build_ref_for_offset): Also look at the base
13771         TYPE_ALIGN when figuring out the alignment of the replacement.
13773 2012-02-28  Richard Guenther  <rguenther@suse.de>
13775         PR tree-optimization/52402
13776         * ipa-prop.c (ipa_modify_call_arguments): Properly use
13777         mis-aligned types when creating the accesses at the call site.
13779 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
13781         * config/avr/builtins.def: New file.
13782         * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
13783         * config/avr/avr.c (enum avr_builtin_id): Use it.
13784         (avr_init_builtins): Use it. And use avr_bdesc.
13785         (bdesc_1arg): Remove.
13786         (bdesc_2arg): Remove.
13787         (bdesc_3arg): Remove.
13788         (struct avr_builtin_description): Add field n_args.
13789         (avr_bdesc): New static variable using builtins.def.
13790         (avr_expand_builtin): Use it.
13791         Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
13792         (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
13793         Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
13795 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
13797         PR target/52148
13798         * config/avr/avr.md (movmem_<mode>): Replace match_operand that
13799         match only one single hard register with respective hard reg rtx.
13800         (movmemx_<mode>): Ditto.
13801         * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
13802         insn anatomy of movmem[x]_<mode>.
13803         (avr_out_movmem): Same for printing assembler and operand usage.
13805 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
13807         PR target/49868
13808         PR target/52261
13809         * doc/extend.texi (AVR Named Address Spaces): No more try to fix
13810         address spaces located outside of device flash.
13812         * config/avr/avr.h (base_arch_s): Remove field n_segments.
13813         (mcu_type_s): Add field n_flash.
13814         * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
13815         Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
13816         (AVR_MCU): Add N_FLASH argument.
13817         * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
13818         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
13819         macro __FLASH<n> if that address space makes sense for the device.
13820         * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
13821         outside of target flash.
13822         (avr_asm_named_section): Ditto.
13823         (avr_asm_select_section): Ditto.
13824         (avr_addr_space_convert): Ditto.
13825         (avr_emit_movmemhi): Ditto.
13826         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
13827         address space is outside of device flash.
13828         (avr_insert_attributes): Ditto.
13829         (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
13830         avr_current_arch->n_segments.
13832 2012-02-27  H.J. Lu  <hongjiu.lu@intel.com>
13834         PR target/52352
13835         * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
13836         (*movabs<mode>_2): Likewise.
13838 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
13840         PR target/52375
13841         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
13842         s_register_operand in the test instead of REG_P.  Don't call
13843         gen_reg_rtx if it won't be used.
13845         PR tree-optimization/52376
13846         * ipa-split.c (split_function): Ignore CLOBBER stmts.
13848 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
13850         * ifcvt.c (noce_get_condition): Check condition variable is not
13851         small_register_classes_for_mode_p before accepting.
13853 2012-02-27  Uros Bizjak  <ubizjak@gmail.com>
13855         * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
13857 2012-02-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
13859         Revert:
13860         2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
13861         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
13862         tuning parameters.
13863         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
13865 2012-02-27  Oleg Endo  <olegendo@gcc.gnu.org>
13867         * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
13869 2012-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
13871         * config/sh/predicates.md: Remove blank lines.
13872         * config/sh/sh.c: Fix typos in comments.
13873         * config/sh/constraints.md: Likewise.
13874         * config/sh/sh.md: Remove blank lines.
13875         Fix typos in comments.  Use ;; as comment characters.
13877 2012-02-26  Walter Lee  <walt@tilera.com>
13879         * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
13880         (replace_mov_pcrel_step2): Ditto.
13882 2012-02-25  Alexandre Oliva  <aoliva@redhat.com>
13884         PR debug/52001
13885         * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
13886         (get_addr): Walk canonical value's locs.  Avoid returning VALUEs
13887         and locs that reference values newer than the non-canonical value
13888         at hand.  Return the canonical value as a worst case.
13889         (memrefs_conflict_p): Walk canonical value's locs.
13891         PR debug/52001
13892         * cselib.c (preserve_only_constants): Rename to...
13893         (preserve_constants_and_equivs): ... this.  Split out...
13894         (invariant_or_equiv_p): ... this.  Preserve plus expressions
13895         of other preserved expressions too.
13896         (cselib_reset_table): Adjust.
13897         * var-tracking.c (reverse_op): Use canonical value to build
13898         reverse operation.
13900 2012-02-23  Kai Tietz  <ktietz@redhat.com>
13902         * config/i386/i386.c (ix86_delegitimize_address): Handle
13903         UNSPEC_PCREL plus displacement.
13905 2012-02-24  Georg-Johann Lay  <avr@gjlay.de>
13907         PR target/52261
13908         * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
13909         to test for unusedness in st X addressing.
13911 2012-02-24  Richard Guenther  <rguenther@suse.de>
13913         PR middle-end/52361
13914         * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
13915         (is_gimple_reg_type): Move inline ...
13916         * gimple.h (is_gimple_reg_type): ... here.
13918 2012-02-24  Richard Guenther  <rguenther@suse.de>
13920         PR middle-end/52361
13921         * passes.c (execute_function_todo): When verifying SSA form
13922         verify gimple form first.
13923         * tree-ssa.c (verify_ssa): Do not verify gimple form here.
13925 2012-02-24  Richard Guenther  <rguenther@suse.de>
13927         PR middle-end/52355
13928         * fold-const.c (fold_addr_of_array_ref_difference): New function.
13929         (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
13931 2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13933         * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
13935 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13937         * tree-phinodes.c (make_phi_node): Mark static.
13938         * tree-flow.h (make_phi_node): Remove extern decl.
13939         * doc/gimple.texi (make_phi_node): Remove documentation.
13941 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13943         * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
13944         * tree-ssa-sccvn.c (print_scc): Ditto.
13946 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13948         * doc/passes.texi (Full redundancy elimination): Fix typo.
13950 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13952         * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
13954 2012-02-23  Eric Botcazou  <ebotcazou@adacore.com>
13956         PR bootstrap/52287
13957         * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
13959 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
13961         PR c/52290
13962         * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
13964 2012-02-23  Georg-Johann Lay  <avr@gjlay.de>
13966         * config/avr/avr.md (code_stdname): Add ior, xor.
13967         (xior): New code iterator.
13968         (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
13969         (*<code_stdname><mode>qi.byte1-3): Ditto.
13971 2012-02-23  Jakub Jelinek  <jakub@redhat.com>
13973         PR tree-optimization/52019
13974         * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
13975         CLOBBER stmts.
13977 2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13979         * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
13980         HAVE_INITFINI_ARRAY to work around namespace pollution in
13981         certain versions of newlib system headers.
13982         * config.in: Regenerate.
13983         * configure: Regenerate.
13984         * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
13985         instead of HAVE_INITFINI_ARRAY.
13987 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
13989         PR target/52330
13990         * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
13991         is not offsettable memory reference.
13993 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
13995         PR target/18145
13996         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
13997         setting avr_need_clear_bss_p for __gnu_lto* symbols.
13999 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
14001         * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
14002         * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
14004 2012-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14006         * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
14007         library on Solaris 8 even without TLS support.
14008         * configure: Regenerate.
14010 2012-02-22  Richard Guenther  <rguenther@suse.de>
14012         PR middle-end/52329
14013         * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
14014         for GIMPLE_DEBUG stmts.
14016 2012-02-22  Martin Jambor  <mjambor@suse.cz>
14018         PR middle-end/51782
14019         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
14020         according to the base object.
14022 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
14024         PR rtl-optimization/50063
14025         * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
14026         and 2 (8-bit SP) in operand 2.
14027         * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
14028         setup to use movhi_sp_r instead of vanilla move to write SP.
14029         Adjust REG_CFA notes to superseed unspec.
14030         (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
14031         of vanilla move.
14032         As function body might contain CLI or SEI: Use irq_state 0 (IRQ
14033         known to be off) only with TARGET_NO_INTERRUPTS. Never use
14034         irq_state 1 (IRQ known to be on) here.
14036 2012-02-21  Bernd Schmidt  <bernds@codesourcery.com>
14038         * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
14039         WORDS_BIG_ENDIAN.
14040         * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
14041         assign_hard_reg): Likewise.
14043 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
14045         * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
14047 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
14049         * config/avr/avr.md
14050         (*dec-and-branchhi!=-1.d.clobber): New text peephole.
14051         (*dec-and-branchhi!=-1.l.clobber): New text peephole.
14053 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
14055         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
14056         prototype from here to...
14057         * config/avr/avr.h: ...here.
14059 2012-02-21  Richard Earnshaw  <rearnsha@arm.com>
14061         PR target/52294
14062         * thumb2.md (thumb2_shiftsi3_short): Split register and
14063         immediate shifts.  For register shifts tie operands 0 and 1.
14064         (peephole2 for above): Check that register-controlled shifts
14065         have suitably tied operands.
14067 2012-02-21  Quentin Neill  <quentin.neill@amd.com>
14069         PR target/52137
14070         * config/i386/bdver1.md (bdver1_call, bdver1_push,
14071         bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
14072         bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
14073         bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
14074         bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
14075         bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
14076         bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
14077         bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
14078         bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
14079         bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
14080         bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
14081         bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
14082         bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
14083         bdver1_ssevector_avx256_unaligned_load,
14084         bdver1_ssevector_sse128_unaligned_load,
14085         bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
14086         bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
14087         bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
14088         bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
14089         bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
14090         bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
14091         bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
14092         bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
14093         bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
14094         bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
14095         bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
14096         bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
14097         bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
14098         bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
14099         bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
14100         bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
14101         bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
14102         bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
14103         bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
14104         bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
14105         bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
14106         bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
14107         bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
14108         bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
14109         bdver1_ssediv_double_load, bdver1_ssediv_double,
14110         bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
14111         Add "bdver2" attribute.
14113 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14115         * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
14116         default if possible and not specified otherwise.
14118 2012-02-21  Richard Guenther  <rguenther@suse.de>
14120         PR middle-end/52314
14121         * gimplify.c (create_tmp_from_val): Use the main variant type
14122         for the type of the temporary we create.
14124 2012-02-21  Richard Guenther  <rguenther@suse.de>
14126         PR tree-optimization/52324
14127         * gimplify.c (gimplify_expr): When re-gimplifying expressions
14128         do not gimplify a MEM_REF address operand if it is already
14129         in suitable form.
14131 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14133         * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
14134         TARGET_HARD_FLOAT with TARGET_HARD_DFP.
14136 2012-02-21  Richard Guenther  <rguenther@suse.de>
14138         * tree-vect-stmts.c (vectorizable_load): Use pre-computed
14139         nested_in_vect_loop.
14141 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
14143         PR tree-optimization/52318
14144         * gimple-fold.c (gimplify_and_update_call_from_tree): Add
14145         vdef also to non-pure/const call stmts in the sequence.
14147 2012-02-21  Tristan Gingold  <gingold@adacore.com>
14149         * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
14151 2012-02-20  David S. Miller  <davem@davemloft.net>
14153         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
14154         don't use the "rd %pc" instruction on v9 for PIC register loads.
14156 2012-02-20  Aldy Hernandez  <aldyh@redhat.com>
14158         PR middle-end/52141
14159         * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
14160         in a transaction safe function.
14162 2012-02-20  Kai Tietz  <ktietz@redhat.com>
14164         PR target/52238
14165         * stor-layout.c (place_field): Handle desired_align for
14166         ms-bitfields, too.
14168 2012-02-20  Richard Guenther  <rguenther@suse.de>
14170         PR tree-optimization/52298
14171         * tree-vect-stmts.c (vectorizable_store): Properly use
14172         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
14173         outer loops.
14174         (vectorizable_load): Likewise.
14175         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
14176         Access DR_STEP after ensuring it is not NULL.
14178 2012-02-20  Jakub Jelinek  <jakub@redhat.com>
14180         PR tree-optimization/52286
14181         * fold-const.c (fold_binary_loc): For (X & C1) | C2
14182         optimization use double_int_to_tree instead of build_int_cst_wide,
14183         rewrite to use double_int vars.
14185 2012-02-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14187         PR target/50166
14188         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
14189         Define _start.
14190         Remove -e 0 from $gcc_cv_ld invocation.
14191         Only use __GLIBC_PREREQ if defined.
14192         Enable on Solaris since Solaris 8 patch.
14193         (gcc_SUN_LD_VERSION): New macro.
14194         * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
14195         gcc_SUN_LD_VERSION for version number format.
14196         * configure: Regenerate.
14197         * varasm.c (get_elf_initfini_array_priority_section): Set
14198         SECTION_NOTYPE for non-default priority.
14199         Use get_section instead of get_unnamed_section to emit
14200         .init_array/.fini_array with default priority.
14202 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
14204         * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
14205         (mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
14206         (mips_start_unique_function, mips_output_mips16_rdhwr)
14207         (mips_code_end): New functions.
14208         (TARGET_ASM_CODE_END): Define.
14210 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
14212         * config/mips/mips.c (mips16_build_call_stub): Add CFI information
14213         to stubs with non-sibling calls.
14215 2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>
14217         * doc/invoke.texi (-fira-* options): Copy-edit.
14218         (ira-* parameters): Copy-edit.
14220 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
14222         * doc/invoke.texi: Minor copy-edits to bring into conformance with
14223         GCC coding conventions.
14225 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
14227         * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
14228         when used as adjectives.
14230 2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>
14232         * doc/invoke.texi: Clean up "that"/"which" confusion.
14234 2012-02-17  Steven Bosscher  <steven@gcc.gnu.org>
14236         * system.h: Poison SMALL_REGISTER_CLASSES
14237         * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
14238         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
14240 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
14242         PR tree-optimization/52285
14243         * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
14244         when deciding if a call is a tail call or tail recursion.
14246 2012-02-16  Kai Tietz  <ktietz@redhat.com>
14248         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
14249         interger-constant displacement for UNSPEC_PCREL.
14251 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
14253         PR rtl-optimization/52208
14254         * ira-costs.c (scan_one_insn): Don't decrease mem_cost
14255         for MEMs with REG_EQUIV, if the MEM isn't general_operand.
14257         PR tree-optimization/52255
14258         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
14259         loop->header has virtual PHI, but exit_e->dest doesn't, add
14260         virtual PHI to exit_e->dest and adjust all uses after the loop.
14262         PR debug/52260
14263         * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
14264         children with clone_tree_hash, not after it.
14266 2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
14268         * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
14269         extended identifiers.
14271 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
14273         PR middle-end/51929
14274         * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
14275         a same_body_alias, also test whether e->callee isn't a former
14276         or current clone of the decl this is a same body alias of.
14278         PR translation/52264
14279         * cgraphunit.c (verify_cgraph_node): Fix a typo.
14281 2012-02-15  Sandra Loosemore  <sandra@codesourcery.com>
14283         * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
14285 2012-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
14287         PR target/52199
14288         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
14289         force_reg instead of copy_to_reg for better optimization.  Force
14290         non-register or memory operands into a register.
14292 2012-02-15  Andrew MacLeod  <amacleod@redhat.com>
14294         * extend.texi: Reserve upper bits of memory model for future use.
14296 2012-01-15  Georg-Johann Lay  <avr@gjlay.de>
14297             Anatoly Sokolov <aesok@post.ru>
14298             Eric Weddington <eric.weddington@atmel.com>
14300         PR target/52261
14301         * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
14302         avrxmega4, avrxmega5, avrxmega6, avrxmega7.
14303         Rewrite initializers for .macro.
14304         * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
14305         avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
14306         atxmega32d4, atxmega32x1.
14307         avrxmega4: atxmega64a3, atxmega64d3.
14308         avrxmega5: atxmega64a1, atxmega64a1u.
14309         avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
14310         atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
14311         avrxmega7: atxmega128a1, atxmega128a1u.
14312         * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
14313         ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
14314         (struct base_arch_s): Rename reserved to xmega_p.
14315         Rename reserved2 to have_rampd.
14316         (AVR_XMEGA): New define.
14317         (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
14318         (AVR_HAVE_RAMPZ): Change definition to fit xmega.
14319         * config/avr/predicates.md (io_address_operand): Take into
14320         account SFR offset.
14321         (low_io_address_operand): Ditto.
14322         (high_io_address_operand): Ditto.
14323         * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
14324         (enabled, movhi_sp_r): Use them.
14325         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
14326         cpp_define_formatted to built-in define __AVR_ARCH__.
14327         (__AVR_XMEGA__): New built-in define.
14328         (__AVR_HAVE_RAMPD__): New built-in define.
14329         (__AVR_HAVE_RAMPX__): New built-in define.
14330         (__AVR_HAVE_RAMPY__): New built-in define.
14331         (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
14333         * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
14334         (avr_option_override): Initialize them.
14335         (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
14336         (avr_init_expanders): Initialize them. No more block several calls.
14337         (emit_push_sfr): New static function.
14338         (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
14339         Handle AVR_XMEGA.
14340         (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
14341         (avr_print_operand): Print addreeses as symbols for
14342         RAMPX, RAMPY, RAMPD, CCP.
14343         (output_movhi): Handle AVR_XMEGA when writing to SP.
14344         (avr_out_movhi_mr_r_xmega): New static function.
14345         (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
14346         (avr_file_start): Print symbol defines for __RAMPX__,  __RAMPY__,
14347         __RAMPD__,  __CCP__ as needed.
14349         * config/avr/multilib.h: Regenerate.
14350         * config/avr/t-multilib: Regenerate.
14351         * config/avr/avr-tables.opt: Regenerate.
14353 2012-02-15  Tobias Grosser <grosser@fim.uni-passau.de>
14355         PR tree-optimization/50561
14356         * graphite-flattening.c (lst_project_loop): Do not
14357         remove old scattering dimensions after flattening.
14358         (lst_do_flatten): Likewise.
14360 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
14362         * doc/extend.texi (AVR Built-in Functions): Remove doc for
14363         __builtin_avr_map8, __builtin_avr_map16.
14364         Document __builtin_avr_insert_bits.
14366         * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
14367         (insert_bits): New insn.
14368         (adjust_len.map_bits): Rename to insert_bits.
14369         (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
14370         * avr-protos.h (avr_out_map_bits): Remove.
14371         (avr_out_insert_bits, avr_has_nibble_0xf): New.
14372         * config/avr/constraints.md (Cxf,C0f): New.
14373         * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
14374         defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
14375         New built-in define __BUILTIN_AVR_INSERT_BITS.
14376         * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
14377         (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
14378         (avr_move_bits): Rewrite.
14379         (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
14380         functions.
14381         (avr_map_op_t): New typedef.
14382         (avr_map_op): New static variable.
14383         (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
14384         (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
14385         (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
14386         (bdesc_3arg, avr_expand_triop_builtin): New.
14387         (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
14388         (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
14389         (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
14390         (avr_map_equal_p, avr_map_sig_p): Remove.
14391         (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
14392         (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14393         (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
14394         (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14395         (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
14396         (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14398 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
14400         * config/c6x/c6x.md (reserve_cycles): New attribute.
14401         * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
14402         don't reserve functional units after the branch occurs.
14404 2012-02-14  Aldy Hernandez  <aldyh@redhat.com>
14406         PR middle-end/52142
14407         * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
14408         functions into non-tm_pure functions.
14410 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
14412         PR lto/52178
14413         * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
14414         (iterative_hash_canonical_type): Likewise.
14415         * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
14416         the dead edges.
14418 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
14420         * haifa-sched.c (prune_ready_list): Ensure that if there is a
14421         sched-group insn, it either remains alone or the entire list is pruned.
14423 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
14425         * doc/install.texi (Prerequisites): Fix grammar.
14426         (Configuration): Likewise.
14428 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
14430         * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
14431         MPC as part of GCC before describing configuring with --with-gmp etc.
14432         (Installing GCC: Configuration): --with-gmp etc. aren't needed if
14433         sources are present.
14435 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
14437         PR debug/51950
14438         * dwarf2out.c (clone_tree_hash): New function.
14439         (copy_decls_walk): Use it instead of clone_tree.
14441 2012-02-14  Richard Guenther  <rguenther@suse.de>
14443         PR tree-optimization/52244
14444         PR tree-optimization/51528
14445         * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
14446         replacements for integral types.
14448 2012-02-14  Walter Lee  <walt@tilera.com>
14450         * config.gcc: Handle tilegx and tilepro.
14451         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
14452         tilegx and tilepro.
14453         Add HAVE_AS_TLS check for tilegx and tilepro.
14454         * configure: Regenerate.
14455         * doc/contrib.texi: Add Mat Hostetter and self.
14456         * doc/extend.texi (TILE-Gx Built-in Functions): New node.
14457         Document instruction intrinsics and network accessing intrinsics.
14458         (TILEPro Built-in Functions): New node.  Document instruction
14459         intrinsics and network accessing intrinsics.
14460         * doc/install.texi (Specific, tilegx-*-linux*): Document it.
14461         (Specific, tilepro-*-linux*): Likewise.
14462         * doc/invoke.texi (TILE-Gx Options): New section.
14463         (TILEPro Options): New section.
14464         * doc/md.texi (TILE-Gx): New section.
14465         (TILEPro): New section.
14466         * common/config/tilegx/tilegx-common.c: New file.
14467         * common/config/tilepro/tilepro-common.c: New file.
14468         * config/tilegx/constraints.md: New file.
14469         * config/tilegx/linux.h: New file.
14470         * config/tilegx/mul-tables.c: New file.
14471         * config/tilegx/predicates.md: New file.
14472         * config/tilegx/sync.md: New file.
14473         * config/tilegx/t-tilegx: New file.
14474         * config/tilegx/tilegx-builtins.h: New file.
14475         * config/tilegx/tilegx-c.c: New file.
14476         * config/tilegx/tilegx-generic.md: New file.
14477         * config/tilegx/tilegx-modes.def: New file.
14478         * config/tilegx/tilegx-multiply.h: New file.
14479         * config/tilegx/tilegx-protos.h: New file.
14480         * config/tilegx/tilegx.c: New file.
14481         * config/tilegx/tilegx.h: New file.
14482         * config/tilegx/tilegx.md: New file.
14483         * config/tilegx/tilegx.opt: New file.
14484         * config/tilepro/constraints.md: New file.
14485         * config/tilepro/gen-mul-tables.cc: New file.
14486         * config/tilepro/linux.h: New file.
14487         * config/tilepro/mul-tables.c: New file.
14488         * config/tilepro/predicates.md: New file.
14489         * config/tilepro/t-tilepro: New file.
14490         * config/tilepro/tilepro-builtins.h: New file.
14491         * config/tilepro/tilepro-c.c: New file.
14492         * config/tilepro/tilepro-generic.md: New file.
14493         * config/tilepro/tilepro-modes.def: New file.
14494         * config/tilepro/tilepro-multiply.h: New file.
14495         * config/tilepro/tilepro-protos.h: New file.
14496         * config/tilepro/tilepro.c: New file.
14497         * config/tilepro/tilepro.h: New file.
14498         * config/tilepro/tilepro.md: New file.
14499         * config/tilepro/tilepro.opt: New file.
14501 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
14503         PR tree-optimization/52210
14504         * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
14505         vect_model_simple_cost with two entry vect_def_type array instead
14506         of an address of dt.
14508 2012-02-14  Richard Guenther  <rguenther@suse.de>
14510         PR lto/52178
14511         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
14512         Do not stream DECL_QUALIFIER.
14513         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
14514         * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
14515         (find_decls_types_r): Do not walk DECL_QUALIFIER.
14517 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
14519         PR c/52181
14520         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
14521         newdecl.
14523 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
14525         PR bootstrap/52172
14526         * cselib.h (cselib_subst_to_values_from_insn): New prototype.
14527         * cselib.c (cselib_subst_to_values_from_insn): New function.
14528         * sched-deps.c (add_insn_mem_dependence,
14529         sched_analyze_1, sched_analyze_2): Use it.
14531 2012-02-13  Jan Hubicka  <jh@suse.cz>
14533         PR middle-end/52214
14534         * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
14536 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
14538         * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
14539         (GTM_SELF_SPECS): Define if not already defined.
14540         (driver_self_specs): Add GTM_SELF_SPECS.
14541         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
14542         (GTM_SELF_SPECS): Define.
14543         * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
14544         * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
14546 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
14548         * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
14549         away if seen.
14551         * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
14553         PR middle-end/52230
14554         * omp-low.c (expand_omp_for): If a static schedule without chunk size
14555         has NULL region->cont, force fd.chunk_size to be integer_zero_node.
14557 2012-02-13  Andrew MacLeod  <amacleod@redhat.com>
14559         PR c/52190
14560         * doc/extend.texi : Fix another __atomic_compare_exchange typo.
14562 2012-02-13  Richard Guenther  <rguenther@suse.de>
14564         PR translation/52211
14565         * passes.c (enable_disable_pass): Fix typo.
14567 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
14569         PR middle-end/52209
14570         * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
14571         XOR for reduce_bit_field if type is unsigned.
14573 2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>
14575         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
14576         disallow changes from SFmode to mode with different size in FP regs.
14578 2012-02-12  Robert Millan  <rmh@gnu.org>
14579             Gerald Pfeifer <gerald@pfeifer.com>
14581         * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
14582         Tweak comment.
14584 2012-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
14586         PR rtl-optimization/52175
14587         * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
14588         to frame-related instructions.
14590 2012-02-10  Jason Merrill  <jason@redhat.com>
14592         PR c++/51910
14593         * tlink.c (demangled_hash_entry): Change mangled to a VEC.
14594         (demangle_new_symbols): Fill it.
14595         (scan_linker_output): Walk it.
14596         (start_tweaking): Split out from scan_linker_output.
14597         (maybe_tweak): Update sym->chosen.
14598         * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
14600 2012-02-11  Jakub Jelinek  <jakub@redhat.com>
14602         PR debug/52132
14603         * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
14605 2012-02-11  Uros Bizjak  <ubizjak@gmail.com>
14607         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
14608         having the same mode as previous compare.
14610 2012-02-10  Eric Botcazou  <ebotcazou@adacore.com>
14612         * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
14613         * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
14614         (nonlocal_goto_internal): Likewise.
14615         (nonlocal_goto): Emit a use and an indirect jump directly.
14617 2012-02-10  Andrew MacLeod  <amacleod@redhat.com>
14619         PR c/52190
14620         * doc/extend.texi : Update comments for __atomic_compare_exchange and
14621         __atomic_{is,always}_lock_free.
14623 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
14625         PR target/52146
14626         * config/i386/i386.c (ix86_legitimate_address_p): Disallow
14627         negative constant address for TARGET_X32.
14629 2012-02-10  Richard Henderson  <rth@redhat.com>
14631         * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
14632         * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
14633         for GIMPLE_TRANSACTION.  Tidy if's into a switch.
14635 2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14636             Ira Rosen  <irar@il.ibm.com>
14638         PR tree-optimization/50031
14639         * targhooks.c (default_builtin_vectorization_cost): Handle
14640         vec_promote_demote.
14641         * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
14642         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
14643         all types of reduction and pattern statements.
14644         (vect_estimate_min_profitable_iters): Likewise.
14645         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
14646         (vect_get_load_cost): Use vec_perm for permutations; add dump logic
14647         for explicit realigns.
14648         (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
14649         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
14650         vec_promote_demote.
14651         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
14652         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
14653         vec_perm for VSX and handle vec_promote_demote.
14655 2012-02-10  Jakub Jelinek  <jakub@redhat.com>
14657         PR middle-end/52177
14658         * builtins.c (fold_builtin_atomic_always_lock_free,
14659         expand_builtin_atomic_always_lock_free,
14660         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
14661         Return and/or test boolean_true_node/boolean_false_node instead of
14662         integer_one_node/integer_zero_node.
14664 2012-02-10  Jan Hubicka  <jh@suse.cz>
14666         PR middle-end/48600
14667         * predict.c (predict_paths_for_bb): Prevent looping.
14668         (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
14670 2012-02-10  Roman Zhuykov  <zhroma@ispras.ru>
14672         * config/arm/arm.c (output_move_double): In one case properly
14673         count number of instructions that will be emitted.
14675 2012-02-10  Richard Guenther  <rguenther@suse.de>
14677         PR translation/52193
14678         * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
14680 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
14682         PR middle-end/52140
14683         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
14685 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
14687         PR debug/52165
14688         * var-tracking.c (emit_note_insn_var_location): If
14689         EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
14690         emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
14691         non-NOTE_DURING_CALL_P insn.
14693 2012-02-09  Bin Cheng  <bin.cheng@arm.com>
14695         PR middle-end/51867
14696         * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
14698 2012-02-08  Magnus Granberg  <zorry@gentoo.org>
14700         PR driver/48524
14701         * gcc.c (switch_matches) Support switches with separated form,
14702         -D and -U.
14704 2012-02-08  Georg-Johann Lay  <avr@gjlay.de>
14706         * config/avr/avr.md (SREG_ADDR): Remove constant definition.
14707         (SP_ADDR): Ditto.
14708         (RAMPZ_ADDR): Ditto.
14709         * config/avr/avr.c (avr_addr_t): New typedef.
14710         (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
14711         (avr_init_expanders): Initialize it.
14712         (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
14713         SREG_ADDR.
14714         (expand_epilogue): Ditto.
14715         (avr_print_operand): Ditto.
14716         (avr_file_start): Ditto.
14717         (avr_emit_movmemhi): Ditto.
14719 2012-02-08  Richard Guenther  <rguenther@suse.de>
14721         PR tree-optimization/46886
14722         * tree-flow.h (do_while_loop_p): Declare.
14723         * tree-ssa-loop-ch.c (do_while_loop_p): Export.
14724         * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
14726 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
14728         * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
14729         always succeed for integers larger than a native word.
14731 2012-02-08  Richard Guenther  <rguenther@suse.de>
14733         PR rtl-optimization/52170
14734         * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
14735         properly handle integer vector modes.
14737 2012-02-08  Jakub Jelinek  <jakub@redhat.com>
14739         PR gcov-profile/52150
14740         * coverage.c: Include target.h.
14741         (build_var): Call targetm.strip_name_encoding on the assembler name.
14742         Change one _ into . or $ if the target allows it.
14743         * Makefile.in (coverage.o): Depend on $(TARGET_H).
14745         PR rtl-optimization/52139
14746         * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
14747         is a BARRIER after emit_insn_after_noloc, move BB_END
14748         to the last non-BARRIER insn before it.
14750 2012-02-07  Richard Sandiford  <rdsandiford@googlemail.com>
14752         PR middle-end/24306
14753         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
14754         (mips_gimplify_va_arg_expr): Call it instead of
14755         std_gimplify_va_arg_expr.
14757 2012-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
14759         * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
14760         message for -mno-pointers-to-nested-function.
14762 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
14764         PR middle-end/51994
14765         * expr.c (get_inner_reference): If there is an offset, add a negative
14766         bit position to it (if any).
14768 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
14770         PR rtl-optimization/52060
14771         * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
14772         copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
14773         before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
14774         and/or i0src_copy2 when needed.
14776 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
14778         * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
14779         or LTOPLUGINSONAME if have_c.
14781         * config/freebsd-spec.h: Add comment about what macros can be defined
14782         in this header.
14783         (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
14784         * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
14785         here instead.
14787 2012-02-07  Richard Guenther  <rguenther@suse.de>
14789         * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
14790         newline in -alias dumps.
14792 2012-02-07  Kai Tietz  <ktietz@redhat.com>
14793             Dave Korn  <dave.korn.cygwin@gmail.com>
14795         PR target/40068
14796         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
14797         Take care that typinfo gets dllexport-attribute.
14799 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
14801         PR middle-end/52074
14802         * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
14803         if modifier < EXPAND_SUM call force_operand on the result.
14805 2012-02-07  Joern Rennecke  <joern.rennecke@embecosm.com>
14807         * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
14808         adding __forwarder_dst__ prefix if a forwarder_section attribute is
14809         present.
14810         (epiphany_function_type): Replace types for specific interrupts with
14811         EPIPHANY_FUNCTION_INTERRUPT.
14812         (EPIPHANY_INTERRUPT_P): Update.
14813         * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
14814         New static function.
14815         (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
14816         <disinterrupt>: Affects type identity.
14817         (epiphany_handle_interrupt_attribute): Handle variable number of
14818         arguments.
14819         (epiphany_compute_function_type): Update for new
14820         epiphany_function_type definition.
14821         (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
14822         handlers with a longcall forwarder.
14823         (epiphany_start_function): Handle multiple interrupt arguments and/or
14824         forwarder_section attribute.
14826         * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
14827         libgloss.
14829 2012-02-07  Alan Modra  <amodra@gmail.com>
14831         PR target/52107
14832         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
14833         subregs of TFmode.
14835 2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14837         PR tree-optimization/50969
14838         * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
14839         use vec_perm rather than vector_stmt.
14840         (vect_model_load_cost): Likewise.
14841         * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
14842         vec_perm to be the same as other vector statements.
14843         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
14844         cost of vec_perm for TARGET_VSX.
14846 2012-02-06  Richard Guenther  <rguenther@suse.de>
14848         PR tree-optimization/52115
14849         * tree-sra.c (access_has_replacements_p): New function.
14850         (sra_modify_assign): Use it to decide whether a use is uninitialized.
14852 2012-02-06  Patrick Marlier  <patrick.marlier@gmail.com>
14854         PR middle-end/52047
14855         * trans-mem.c (expand_call_tm): Add an assertion.
14856         * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
14857         functions.
14859 2012-02-06  Richard Guenther  <rguenther@suse.de>
14861         PR tree-optimization/50955
14862         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
14863         raise cost of expressions that replace an address with an
14864         expression based on a different pointer.
14866 2012-02-06  Jakub Jelinek  <jakub@redhat.com>
14868         PR target/52129
14869         * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
14870         CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
14872 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
14874         PR c++/48680
14875         * doc/invoke.texi (C++ Dialect Options): Use @option markup for
14876         -Weffc++ and specify guidelines come from second edition.
14878 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
14880         * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
14881         (sibcall_value_multiple_internal, call_split, call_internal_direct)
14882         (call_direct_split, call_value_split, call_value_internal_direct)
14883         (call_value_direct_split, call_value_multiple_split): Use jal and
14884         jal_macro attributes.
14886 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
14888         * reload1.c (reload_regs_reach_end_p): Replace with...
14889         (reload_reg_rtx_reaches_end_p): ...this function.
14890         (new_spill_reg_store): Update commentary.
14891         (emit_input_reload_insns): Don't clear new_spill_reg_store here.
14892         (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
14893         before setting new_spill_reg_store.
14894         (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
14895         Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
14896         Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
14897         for non-spill reload registers.
14899 2012-02-05  Ira Rosen  <irar@il.ibm.com>
14901         PR tree-optimization/52091
14902         * tree-vectorizer.h (vect_is_simple_use): Add an argument.
14903         (vect_is_simple_use_1): Likewise.
14904         * tree-vect-loop.c (vectorizable_reduction): Update calls
14905         to vect_is_simple_use_1 and vect_is_simple_use.
14906         (vectorizable_live_operation): Likewise.
14907         * tree-vect-patterns.c (widened_name_p,
14908         vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
14909         * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
14910         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
14911         vectorizable_shift,vectorizable_operation, vectorizable_store,
14912         vectorizable_load): Likewise.
14913         (vect_is_simple_cond): Add an argument, pass it to
14914         vect_is_simple_use_1.
14915         (vectorizable_condition): Update calls to vect_is_simple_cond,
14916         vect_is_simple_use.
14917         (vect_is_simple_use): Add an argument, the statement in which
14918         OPERAND is used.  Check that if OPERAND's def stmt is a double
14919         reduction phi node, the use is a phi node too.
14920         (vect_is_simple_use_1): Add an argument, pass it to
14921         vect_is_simple_use.
14922         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
14923         to vect_is_simple_use.
14925 2012-02-04  Jakub Jelinek  <jakub@redhat.com>
14927         PR rtl-optimization/52095
14928         * modulo-sched.c (dump_insn_locator): New function.
14929         (loop_canon_p, sms_schedule): Use it.
14931         PR rtl-optimization/52113
14932         * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
14933         even for decomposable shift/zext insns.
14935 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
14936             Zdenek Dvorak  <ook@ucw.cz>
14938         PR rtl-optimization/52092
14939         * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
14940         on get_iv_value result.
14942 2012-02-02  Andrew Pinski  <apinski@cavium.com>
14944         PR middle-end/47982
14945         PR middle-end/43967
14946         * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
14948 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
14950         PR middle-end/48071
14951         * diagnostic.c (diagnostic_finish): Remove trailing newlines.
14953 2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>
14955         PR rtl-optimization/49800
14956         * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
14957         (sched_finish): Call regstat_free_n_sets_and_refs.
14959 2012-02-02  Jia Liu  <proljc@gmail.com>
14961         * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
14962         than operand 2.
14964 2012-02-02  Jan Hubicka  <jh@suse.cz>
14965             Tom de Vries  <tom@codesourcery.com>
14967         PR middle-end/51998
14968         * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
14969         * varpool.c (varpool_analyze_pending_decls): Likewise.
14971 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
14972             Jayant R Sonar <jayant.sonar@kpitcummins.com>
14974         * config.gcc: Add cr16-* support.
14976         * doc/extend.texi: Document cr16 extensions.
14977         * doc/install.texi: Document cr16 install.
14978         * doc/invoke.texi: Document cr16 options.
14979         * doc/md.texi: Document cr16 constraints.
14981         * common/config/cr16/cr16-common.c: New file.
14982         * config/cr16/cr16.c: New file.
14983         * config/cr16/cr16.h: New file.
14984         * config/cr16/cr16.md: New file.
14985         * config/cr16/cr16.opt: New file.
14986         * config/cr16/cr16-protos.h: New file.
14987         * config/cr16/predicates.md: New file.
14988         * config/cr16/constraints.md: New file.
14989         * config/cr16/t-cr16: New file.
14991 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
14993         PR target/52086
14994         * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
14995         that operands[2] is either immediate, or q_regs_operand.
14997         PR tree-optimization/52073
14998         * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
14999         a pattern stmt for pattern uses, ignore uses outside of the loop.
15001 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
15003         * config/avr/avr.c: Resolve all AS1 and AS2 macros.
15004         * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
15005         (OUT_AS1, OUT_AS2): Remove.
15007 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
15009         PR rtl-optimization/51374
15010         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
15011         to cross other volatile_refs_p insns.
15013 2012-02-01  Richard Guenther  <rguenther@suse.de>
15015         * doc/invoke.texi (fno-inline): Clarify documentation.
15016         (finline-small-functions): Likewise.
15017         (finline-functions): Likewise.
15018         * common.opt (finline): Adjust comment and documentation.
15019         (finline-small-functions): Clarify documentation.
15020         (finline-functions): Likewise.
15021         (finline-functions-called-once): Likewise.
15023 2012-02-01  Tristan Gingold  <gingold@adacore.com>
15025         * c-typeck.c (composite_type): Keep mode for pointers.
15027 2012-01-31  Richard Sandiford  <rdsandiford@googlemail.com>
15029         * function.h (regno_reg_rtx): Adjust comment.
15030         * reginfo.c (init_reg_modes_target): Only use the previous mode
15031         if it fits within one register.  Remove MIPS comment.
15033 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
15035         PR bootstrap/52058
15036         * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
15038 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15040         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
15041         to srak instruction.
15043 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
15045         * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
15047 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
15049         PR bootstrap/52041
15050         PR bootstrap/52039
15051         PR target/51974
15052         * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
15054 2012-01-31  Richard Guenther  <rguenther@suse.de>
15056         PR tree-optimization/51528
15057         * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
15058         assigns.
15060 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
15062         PR bootstrap/52041
15063         PR bootstrap/52039
15064         PR target/51974
15065         * ree.c (add_removable_extension): Change def_map argument
15066         to unsigned *, store in def_map 1 + offset into *insn_list vector
15067         instead of pointers into the vector.
15068         (find_removable_extensions): Adjust caller.
15070 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
15072         * config/avr/avr.md: Resolve all AS1 and AS2 macros.
15073         Transform all "* quoted-c-code" to { c-code }.
15074         Remove redundant test for "optimize" in combine patterns.
15075         Move (include "avr-dimode.md") to end of file.
15077 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
15079         PR target/51835
15080         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15081         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
15083 2012-01-30  Richard Guenther  <rguenther@suse.de>
15085         PR tree-optimization/52028
15086         * tree-loop-distribution.c (ldist_gen): Properly update
15087         virtual SSA form.
15089 2012-01-30  Jakub Jelinek  <jakub@redhat.com>
15091         PR debug/52027
15092         * dwarf2out.c (dwarf2out_switch_text_section): Don't call
15093         set_cur_line_info_table if not emitting debug info.
15095         PR tree-optimization/52046
15096         * tree-vect-patterns.c (check_bool_pattern): Give up if
15097         a comparison could throw.
15099         PR debug/52048
15100         * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
15102 2012-01-30  Richard Guenther  <rguenther@suse.de>
15104         PR tree-optimization/52045
15105         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
15106         SSA form if cfgcleanup did anything.
15108 2012-01-30  Richard Guenther  <rguenther@suse.de>
15110         PR tree-optimization/52045
15111         * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
15112         before computing final todo.
15114 2012-01-30  Richard Guenther  <rguenther@suse.de>
15116         PR tree-optimization/51528
15117         * tree-sra.c (sra_modify_assign): Re-factor in preparation
15118         for PR51528 fix.
15120 2012-01-30  Paolo Bonzini  <bonzini@gnu.org>
15122         * df-problems.c (df_kill_notes): Check that the use refers
15123         to the note under examination.
15125 2012-01-30  Eric Botcazou  <ebotcazou@adacore.com>
15127         PR target/51920
15128         * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
15129         parameter and use short-lived pseudos.
15130         (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
15131         (sparc_expand_vector_init): Const-ify local variables and adjust
15132         calls to above functions.
15134 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
15136         * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
15138 2012-01-29  Sandra Loosemore  <sandra@codesourcery.com>
15140         * doc/invoke.texi: Make usage of "compile time" and
15141         "run time"/"runtime" consistent throughout the file.
15143 2012-01-29  Uros Bizjak  <ubizjak@gmail.com>
15145         * config/alpha/alpha.c (alpha_option_override): Default to
15146         full IEEE compliance mode for Go language.
15148 2012-01-29  Tijl Coosemans  <tijl@coosemans.org>
15150         * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
15151         (LINK_SSP_SPEC): Define.
15153 2012-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15155         PR target/51871
15156         * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
15157         stubs.
15159 2012-01-28  Sandra Loosemore  <sandra@codesourcery.com>
15161         * doc/invoke.texi: Correct hyphenation of "floating point",
15162         "double precision", and related terminology throughout the file.
15164 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
15166         PR target/52006
15167         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
15168         arm_general_register_operand predicate for operand 2 instead of
15169         register_operand.
15171 2012-01-27  Ian Lance Taylor  <iant@google.com>
15173         PR go/47656
15174         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
15175         * builtins.c (expand_builtin_init_trampoline): Add onstack
15176         parameter.  Change caller.
15177         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
15178         * tree.c (build_common_builtin_nodes): Declare
15179         __builtin_init_heap_trampoline.
15181 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
15183         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
15184         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
15185         * config/avr/avr.c: Ditto.
15186         (avr_regnames): Remove because unused.
15187         * config/avr/avr.md (*cpse.ne): New peephole.
15188         (*cpse.eq): New peephole from former cpse peepholes.
15190 2012-01-27  Michael Eager  <eager@eagercon.com>
15192         * config/microblaze.c (microblaze_emit_compare): Correct
15193         test after pcmp instruction.
15195 2012-01-27  Richard Guenther  <rguenther@suse.de>
15197         PR tree-optimization/52020
15198         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
15200 2012-01-27  Richard Guenther  <rguenther@suse.de>
15202         * ipa-pure-const.c (check_stmt): Clobbers do not make a
15203         function non-const/pure.
15205 2012-01-27  Richard Guenther  <rguenther@suse.de>
15207         PR tree-optimization/50444
15208         * tree-sra.c (build_ref_for_offset): Properly adjust the
15209         MEM_REF type for unaligned accesses.
15211 2012-01-27  Richard Guenther  <rguenther@suse.de>
15213         PR tree-optimization/50444
15214         * expr.c (mem_ref_refers_to_non_mem_p): New function.
15215         (expand_assignment): Use it.  Properly handle misaligned
15216         bases when expanding stores to component references.
15217         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
15218         refactor that case.
15220 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
15222         PR middle-end/51389
15223         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
15224         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
15225         * tree-data-ref.c (find_data_references_in_loop): Make static.
15226         (compute_all_dependences): Change return type to bool.  Bail out
15227         for too many datarefs in a loop.  Move the hunk resetting the data
15228         dependences vector from ...
15229         (compute_data_dependences_for_loop): ... here.  Account for
15230         compute_all_dependences returning false.
15231         (compute_data_dependences_for_bb): Likewise.
15232         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
15233         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
15235 2012-01-27  Richard Guenther  <rguenther@suse.de>
15237         PR middle-end/51959
15238         * expr.c (store_field): Use the alias-set of the scratch memory
15239         for storing to it.
15241 2012-01-27  Tom de Vries  <tom@codesourcery.com>
15243         PR tree-optimization/51990
15244         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
15245         WITH_SIZE_EXPR.
15246         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
15248 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
15250         PR debug/52001
15251         * var-tracking.c (reverse_op): Don't add any reverse operation
15252         if V already has any constant locations.
15254 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
15256         * doc/invoke.texi: Correct usage of "command line" (noun)
15257         vs "command-line" (adjective) throughout.
15259 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
15261         * doc/invoke.texi (Language Independent Options): Move
15262         -Wcoverage-mismatch blurb from here....
15263         (Warning Options): ...to here.
15265 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
15267         * config/rs6000/rs6000.c (rs6000_option_override_internal):
15268         Set rs6000_always_hint to false for 476.
15270 2012-01-27  Matthias Klose  <doko@ubuntu.com>
15272         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
15273           system root.
15274         * incpath.c (add_standard_paths): Likewise.
15276 2012-01-27  Richard Henderson  <rth@redhat.com>
15278         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15279         * config/m68k/sync.md (atomic_test_and_set): Rename from
15280         sync_test_and_setqi and adjust the operands.
15281         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
15282         and unconditionally enable.
15284 2012-01-27  Richard Henderson  <rth@redhat.com>
15286         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15287         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
15288         (ldstub): Rename from ldstubqi.
15289         (ldstub<I24MODE>): Remove.
15291 2012-01-27  Richard Henderson  <rth@redhat.com>
15293         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15294         * c-cppbuiltin.c (cpp_atomic_builtins): Define
15295         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
15296         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
15297         * doc/tm.texi: Rebuild.
15299 2012-01-27  Richard Henderson  <rth@redhat.com>
15301         * optabs.c (gen_atomic_test_and_set): Remove default.
15302         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
15304 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
15306         PR rtl-optimization/51978
15307         * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
15308         (combine_reaching_defs): Likewise.
15309         (struct re_info): Remove.
15310         (add_removable_extension): Remove x and data arguments,
15311         add insn, insn_list and def_map.  Use the arguments directly
15312         instead of using struct re_info.
15313         (find_removable_extensions): Don't call add_removable_extension
15314         through note_stores, instead just call it with single_set
15315         result if non-NULL.
15316         (find_and_remove_re): Pass curr_cand->expr instead of
15317         PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
15319 2012-01-26  Michael Matz  <matz@suse.de>
15321         PR tree-optimization/46590
15322         * cfgexpand.c: Revert last change (r183305).
15323         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
15324         regs.
15325         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
15326         checking for emptiness.
15328 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
15330         PR middle-end/51895
15331         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
15332         non-addressable non-BLKmode base correctly.
15334 2012-01-26  Michael Matz  <matz@suse.de>
15336         PR tree-optimization/48794
15337         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
15338         regions referenced from RESX/EH_DISPATCH.
15340 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15342         * config/s390/s390.h: Make BRANCH_COST an option.
15343         * config/s390/s390.opt: New option -mbranch-cost.
15345 2012-01-26  Richard Henderson  <rth@redhat.com>
15347         Revert 2012-01-24 change:
15348         * trans-mem.c (requires_barrier): Do not instrument thread local
15349         variables and emit save/restore for them.
15351 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
15353         PR middle-end/51986
15354         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
15355         for pat == 0.
15357 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
15359         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
15360         ASM_OPERANDS.
15362 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
15364         PR target/49868
15365         Rename __pgm to __flash.
15366         Rename __pgm1 to __flash1.
15367         Rename __pgm2 to __flash2.
15368         Rename __pgm3 to __flash3.
15369         Rename __pgm4 to __flash4.
15370         Rename __pgm5 to __flash5.
15371         Rename __pgmx to __memx.
15372         * doc/extend.texi (AVR Named Address Spaces)
15373         Rename address space names as indicated above.
15374         * config/avr/avr.c (avr_addrspace): Ditto.
15376         * config/avr/avr-protos.h
15377         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
15378         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
15379         * config/avr/predicates.md: Ditto.
15380         * config/avr/avr.c Ditto, and
15381         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
15382         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
15384         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
15385         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
15386         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
15387         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
15388         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
15389         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
15390         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
15391         * config/avr/avr.c: Ditto.
15392         * config/avr/avr.md: Ditto.
15394 2012-01-25  Jason Merrill  <jason@redhat.com>
15396         PR c++/51992
15397         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
15399 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
15401         PR tree-optimization/51987
15402         * tree-data-ref.c (get_references_in_stmt): Handle references in
15403         non-volatile GIMPLE_ASM.
15405 2012-01-25  Richard Guenther  <rguenther@suse.de>
15407         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
15408         bases are dereferenced.
15410 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
15412         PR rtl-optimization/48374
15413         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
15415 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
15417         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
15418         compute_data_dependences_for_loop returns false.
15419         * tree-parloops.c (loop_parallel_p): Likewise.
15421 2012-01-25  Richard Guenther  <rguenther@suse.de>
15423         * tree.h (get_pointer_alignment_1): Declare.
15424         * builtins.c (get_pointer_alignment_1): New function.
15425         (get_pointer_alignment): Use it.
15427 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15429         PR rtl-optimization/48308
15430         * combine.c (enum undo_kind): Add UNDO_LINKS.
15431         (struct undo): Add member l to other_contents and where.
15432         (do_SUBST_LINK): New.
15433         (SUBST_LINK): New.
15434         (try_combine): Handle LOG_LINKS for the dummy i1 case.
15435         (undo_all): Handle UNDO_LINKS.
15437 2012-01-25  Richard Henderson  <rth@redhat.com>
15439         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
15440         mem inputs.
15442 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
15444         * optabs.c (gen_atomic_test_and_set): Use each argument.
15446 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
15448         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
15449         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
15450         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
15451         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
15452         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
15453         TARGET_PAIRED_SINGLE_FLOAT.
15455 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
15457         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
15458         (in_struct, return_val): Remove MEM documentation.
15459         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
15460         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
15461         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
15462         and MEM_SCALAR.
15463         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15464         * cfgexpand.c (add_alias_set_conflicts): Likewise.
15465         * expr.c (store_field): Likewise.
15466         * function.c (assign_stack_temp_for_type): Likewise.
15467         * ifcvt.c (noce_try_cmove_arith): Likewise.
15468         * reload1.c (reload): Likewise.
15469         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
15470         (alpha_set_memflags): Likewise.
15471         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
15473 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
15475         * rtl.h (true_dependence, canon_true_dependence): Remove varies
15476         parameter.
15477         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
15478         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
15479         (true_dependence_1, true_dependence, canon_true_dependence): Remove
15480         varies parameter.
15481         * cselib.c (cselib_rtx_varies_p): Delete.
15482         (cselib_invalidate_mem): Update call to canon_true_dependence.
15483         * dse.c (record_store, check_mem_read_rtx): Likewise.
15484         (scan_reads_nospill): Likewise.
15485         * cse.c (check_dependence): Likewise.
15486         (cse_rtx_varies_p): Delete.
15487         * expr.c (safe_from_p): Update call to true_dependence.
15488         * ira.c (validate_equiv_mem_from_store): Likewise.
15489         (memref_referenced_p): Likewise.
15490         * postreload-gcse.c (find_mem_conflicts): Likewise.
15491         * sched-deps.c (sched_analyze_2): Likewise.
15492         * store-motion.c (load_kills_store): Likewise.
15493         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
15494         * gcse.c (mems_conflict_for_gcse_p): Likewise.
15495         (compute_transp): Update call to canon_true_dependence.
15497 2012-01-25  Richard Henderson  <rth@redhat.com>
15499         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
15500         (maybe_emit_atomic_test_and_set): New.
15501         (expand_sync_lock_test_and_set): Use it.
15502         (expand_atomic_test_and_set): Likewise.
15503         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
15504         the implementation; clarify implementation defined details.
15505         * doc/md.texi (atomic_test_and_set): Document.
15507 2012-01-25  Richard Henderson  <rth@redhat.com>
15509         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
15511 2012-01-25  Richard Henderson  <rth@redhat.com>
15513         PR target/51968
15514         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
15515         to effect no-op split.
15517 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
15519         PR lto/51698
15520         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
15521         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
15522         (BT_FN_VOID_PTR_INT_SIZE): New.
15523         (BT_FN_UINT_UINT_VAR): Remove.
15524         (BT_FN_UINT32_UINT32_VAR): New.
15525         (BT_FN_DOUBLE_VPTR): Remove.
15526         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
15528         * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
15529         (_ITM_changeTransactionMode): Same.
15530         (_ITM_memmoveRtWt): Change return type to void.
15531         (_ITM_memcpyRtWt): Same.
15532         (_ITM_memsetW): Same.
15533         (_ITM_RaRD): Change types to double.
15534         (_ITM_RD): Same.
15535         (_ITM_RaWD): Same.
15536         (_ITM_RfWD): Same.
15538         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
15540 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
15541             Patrick Marlier  <patrick.marlier@gmail.com>
15543         * trans-mem.c (requires_barrier): Do not instrument thread local
15544         variables and emit save/restore for them.
15546 2012-01-24  Jason Merrill  <jason@redhat.com>
15548         PR c++/51812
15549         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
15550         output static aliases.
15552 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
15554         PR driver/47249
15555         * common.opt (-pie, -shared, pie, shared): Change from Common to
15556         Driver.
15557         * gcc.c (display_help): Display help for -pie and -shared.
15559 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
15561         PR target/49868
15562         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
15563         Remove note on size/offset limitation.
15564         (AVR Variable Attributes): Add example how to read data located
15565         with progmem.  Refer to named address spaces.
15566         * doc/invoke.texi (AVR Options): Fix typo.
15568 2012-01-24  Richard Guenther  <rguenther@suse.de>
15570         Forward-port to trunk
15571         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
15573         PR middle-end/45678
15574         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
15575         op0 isn't sufficiently aligned and there is movmisalignM
15576         insn for mode, use it to load op0 into a temporary register.
15578 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
15580         PR target/51957
15581         * target.def (const_not_ok_for_debug_p): New hook.
15582         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
15583         documentation.
15584         * doc/tm.texi: Regenerated.
15585         * dwarf2out.c (const_ok_for_output_1): If
15586         targetm.const_not_ok_for_debug_p returns true, fail.
15587         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
15588         function.
15589         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
15591 2012-01-23  Kai Tietz  <ktietz@redhat.com>
15593         PR target/51900
15594         * config/i386/predicates.md (symbolic_operand): Allow
15595         UNSPEC_PCREL as PIC expression for lea.
15596         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
15597         * config/i386/i386.c (ix86_delegitimize_address): Handle
15598         UNSPEC_PCREL for none-MEM, too.
15600 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
15602         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
15603         (ipa_tm_create_version_alias): Same.
15605 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
15607         PR libitm/51830
15608         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
15609         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
15611 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
15612             Patrick Marlier  <patrick.marlier@gmail.com>
15613             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
15615         PR lto/51916
15616         * lto-wrapper.c (run_gcc): Pass the LTO section name to
15617         simple_object_start_read.
15619 2012-01-23  Richard Guenther  <rguenther@suse.de>
15622         PR tree-optimization/51895
15623         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
15624         parameter decomposition into BLKmode components.
15626 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
15628         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
15629         fake variables for restrict-qualified pointers whose pointed-to type
15630         contains a placeholder.
15632 2012-01-23  Richard Guenther  <rguenther@suse.de>
15634         PR tree-optimization/51949
15635         * ipa-split.c (execute_split_functions): Do not split malloc functions.
15637 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
15639         PR rtl-optimization/51933
15640         * ree.c (transform_ifelse): Return true right away if dstreg is
15641         already wider or equal to cand->mode.
15642         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
15643         (make_defs_and_copies_lists): Remove defs_list and copies_list
15644         arguments, add state argument, just truncate state->work_list
15645         instead of always allocating and freeing the vector.  Assert that
15646         get_defs succeeds instead of returning 2.  Changed return type to bool.
15647         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
15648         have ext_src_mode, see if it has been modified already with the
15649         right kind of extension and has been extended before from the
15650         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
15651         just return true.  Remember the original mode in state->modified array.
15652         (combine_reaching_defs): Add state argument.  Don't allocate and
15653         free here def_list, copied_list and vec vectors, instead just
15654         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
15655         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
15656         Add state variable, clear vectors in it, initialize state.modified
15657         if needed.  Free all the vectors at the end and state.modified too.
15658         Don't skip a candidate if the extension expression has been modified.
15660 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
15662         PR target/47096
15663         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
15664          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
15665         (extra_options) interix.opt -> i386/interix.opt"
15666         (extra_objs):Add winnt-stubs.o
15667         * configure.ac: Add interix to target_os .comm on PE check.
15668         * configure: Regenerate.
15669         * config/interix3.h: Delete and move bits to..
15670         * config/interix.h: Delete and move bits to..
15671         * config/i386/i386-interix3.h: Delete and move bits to..
15672         * config/i386/i386-interix.h: ..here.
15673         (TARGET_CPU_DEFAULT): Remove redefinition.
15674         (TARGET_ASM_CONSTRUCTOR): Undefine.
15675         (SUBTARGET_SWITCHES): Define for ms-bitfields.
15676         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
15677         (PTRDIFF_TYPE): Define.
15678         (LONG_DOUBLE_TYPE_SIZE): Define.
15679         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
15680         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
15681         (TARGET_SECTION_TYPE_FLAGS): Define.
15682         (ASM_DECLARE_FUNCTION_NAME): Define.
15683         (ASM_OUTPUT_EXTERNAL): Define.
15684         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
15685         (ASM_OUTPUT_ALIGNED_BSS): Define.
15686         (PCC_BITFIELD_TYPE_MATTERS): Define.
15687         (USE_CONST_SECTION): Define.
15688         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
15689         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
15690         (SUPPORTS_ONE_ONLY): Remove.
15691         (I386_PE_STRIP_ENCODING): Define.
15692         * config/interix.opt: Delete and move bits to..
15693         * config/i386/interix.opt: ..here. New.
15694         (mpe-aligned-commons): Add.
15695         * config/i386/t-interix: Add copyright header.
15696         (winnt-stubs.o): Add rule.
15698 2012-01-22  Jason Merrill  <jason@redhat.com>
15700         PR c++/51832
15701         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
15702         for extra name aliases.
15704 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15706         PR rtl-optimization/51924
15707         * ree.c (combine_set_extension): Improve debugging message.
15708         (combine_reaching_defs): Likewise.
15709         (get_defs): Rename confusingly named variable.
15710         (find_and_remove_re): Skip a candidate if the extension expression has
15711         been modified.
15713 2012-01-21  Robert Millan  <rmh@gnu.org>
15714             Gerald Pfeifer  <gerald@pfeifer.com>
15716         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
15717         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
15719 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
15721         PR tree-optimization/51914
15722         * tree-vect-stmts.c (vectorizable_conversion): For
15723         cvt_type && modifier == WIDEN, put temporary with cvt_type
15724         at the beginning of vec_dsts and set vec_dest to temporary
15725         with vectype_out.
15727 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15729         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
15731 2012-01-20  Tijl Coosemans  <tijl@coosemans.org>
15733         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
15734         * config/rs6000/rs6000.c: Likewise.
15736 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
15738         PR target/51915
15739         * config/arm/arm.c (arm_count_output_move_double_insns): Call
15740         output_move_double on a copy of operands array.
15742 2012-01-20  Cary Coutant  <ccoutant@google.com>
15743             Dodji Seketeli  <dodji@redhat.com>
15745         PR debug/45682
15746         * dwarf2out.c (copy_declaration_context): Return ref to parent
15747         of declaration DIE, if necessary.
15748         (remove_child_or_replace_with_skeleton): Add new parameter; update
15749         caller.  Place skeleton DIE under parent DIE of original declaration.
15750         Move call to copy_declaration_context to here ...
15751         (break_out_comdat_types): ... from here.
15753 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15755         PR rtl-optimization/51856
15756         * reload.c (find_reloads_subreg_address): Set the address_reloaded
15757         flag to reloaded.
15759 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15761         PR target/51819
15762         * config/arm/arm.c (arm_print_operand): Correct output of alignment
15763         hints for neon loads and stores.
15765 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
15767         PR target/49868
15768         PR target/50887
15769         * doc/extend.texi (Named Address Spaces): Split into subsections.
15770         (AVR Named Address Spaces): New subsection.
15771         (M32C Named Address Spaces): New subsection.
15772         (RL78 Named Address Spaces): New subsection.
15773         (SPU Named Address Spaces): New subsection.
15774         (Variable Attributes): New anchor "AVR Variable Attributes".
15775         (AVR Variable Attributes): Rewrite and avoid wording
15776         "address space" in this context.
15777         * doc/invoke.texi (AVR Options): Rewrite and add documentation
15778         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
15779         (AVR Built-in Macros): New subsubsection therein.
15780         * doc/md.texi (AVR constraints): Remove "C04", "R".
15782 2012-01-20  Richard Guenther  <rguenther@suse.de>
15784         PR tree-optimization/51903
15785         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
15786         when removing stmts.
15788 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15790         PR target/50313
15791         * config/arm/arm.c (arm_load_pic_register): Use
15792         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
15793         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
15794         (arm_pic_static_addr): Likewise.
15795         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
15796         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
15797         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
15798         (pic_load_addr_unified): New.
15800 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
15802         PR target/51106
15803         * function.c (instantiate_virtual_regs_in_insn): Use
15804         delete_insn_and_edges when removing a wrong asm insn.
15806 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
15808         PR rtl-optimization/40761
15809         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
15810         Add new member loop_num.
15811         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
15812         (ira_build): Remove the parameter.
15814         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
15815         (ira.c): Do not build CFG loops for one region allocation.  Remove
15816         argument from ira_build call.
15818         * ira-build.c (init_loop_tree_node): New function.
15819         (create_loop_tree_nodes): Use it.  Separate the case when CFG
15820         loops are not built.
15821         (more_one_region_p): Check current_loops.
15822         (finish_loop_tree_nodes): Separate the case when CFG loops are not
15823         built.
15824         (add_loop_to_tree): Process loop equal to NULL too.
15825         (form_loop_tree): Separate the case when CFG loops are not built.
15826         Use explicitly number for the root.
15827         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
15828         an assertion.
15829         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
15830         instead of loop->num.
15831         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
15832         (mark_all_loops_for_removal): Ditto.
15833         (remove_unnecessary_regions): Separate the case when CFG loops
15834         are not built.
15835         (ira_build): Remove the parameter.  Use explicit number of regions
15836         when CFG loops are not built.
15838         * ira-color.c (print_loop_title): Separate the case for the root node.
15839         Use loop_num instead of loop->num.
15840         (move_spill_restore): Use loop_num instead of loop->num.
15842         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
15843         (change_loop): Ditto.
15844         (change_loop): Use loop_num instead of loop->num.
15846         * ira-lives.c (process_bb_node_lives): Ditto.
15848         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
15850         * ira-conflicts.c (print_allocno_conflicts): Ditto.
15852 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
15854         PR libmudflap/40778
15855         * tree-mudflap.c (mf_artificial): New function.
15856         (execute_mudflap_function_ops, execute_mudflap_function_decls,
15857         mx_register_decls, mudflap_enqueue_decl): Use it.
15859         PR target/51876
15860         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
15861         numbers in the insn pattern.
15863 2012-01-19  Michael Matz  <matz@suse.de>
15865         PR tree-optimization/46590
15866         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
15867         use it in remembering which conflicts we already created.
15868         (add_scope_conflicts): Adjust call to above, (de)allocate helper
15869         bitmap.
15871 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
15873         PR lto/51280
15874         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
15875         (merge_and_complain): Same.
15877 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
15879         PR bootstrap/50237
15880         * config/initfini-array.h: Guard content of the header
15881         with #ifdef HAVE_INITFINI_ARRAY.
15882         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
15883         Add initfini-array.h to tm_file here.
15884         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
15885         * config.gcc: Don't add initfini-array.h to tm_file here.
15886         * configure: Regenerated.
15888 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
15890         PR rtl-optimization/51505
15891         * df-problems.c (df_kill_notes): New parameter live. Update comment.
15892         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
15893         (df_note_bb_compute): Update the call to df_kill_notes.
15895 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
15897         * trans-mem.c (requires_barrier): Remove call to is_global_var.
15899 2012-01-18  Richard Guenther  <rguenther@suse.de>
15901         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
15902         of conversions to void *.
15904 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15905             Richard Sandiford  <rdsandiford@googlemail.com>
15907         PR middle-end/50325
15908         PR middle-end/51192
15909         * optabs.h (simplify_expand_binop): Declare.
15910         * optabs.c (simplify_expand_binop): Make global.
15911         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
15912         endian targets if the source cannot be exactly covered by word
15913         mode chunks.
15915 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
15917         PR bootstrap/51872
15918         * hard-reg-set.h (struct hard_reg_set_container): New type.
15919         * target.h (struct hard_reg_set_container): Forward declare.
15920         * target.def (set_up_by_prologue): New target hook.
15921         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
15922         * doc/tm.texi: Regenerated.
15923         * function.c (thread_prologue_and_epilogue_insns): Change
15924         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
15925         Call targetm.set_up_by_prologue on it.
15926         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
15927         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
15929 2012-01-17  Nick Clifton  <nickc@redhat.com>
15931         * config/rx/rx.c (rx_can_use_simple_return): New function.
15932         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
15933         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
15935 2012-01-17  Richard Guenther  <rguenther@suse.de>
15937         PR middle-end/51782
15938         * expr.c (expand_assignment): Take address-space information
15939         from the address operand of MEM_REF and TARGET_MEM_REF.
15940         (expand_expr_real_1): Likewise.
15942 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15944         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
15945         reload dump is requested.
15947 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
15949         PR other/51165
15950         * trans-mem.c (requires_barrier): Call may_be_aliased.
15952 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
15954         PR tree-optimization/51877
15955         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
15956         call arguments and fndecls compare equal, instead return false if they
15957         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
15958         both SSA_NAMEs that are valueized the same, or they satisfy
15959         operand_equal_p.
15961 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15963         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
15964         Solaris 11+.
15965         * configure: Regenerate.
15967 2012-01-16  Jan Hubicka  <jh@suse.cz>
15969         PR c/12245
15970         PR c++/14179
15971         * convert.c (convert_to_integer): Use fold_convert for
15972         converting an INTEGER_CST to integer type.
15974 2012-01-16  Jason Merrill  <jason@redhat.com>
15976         PR c++/14179
15977         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
15979 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
15981         PR bootstrap/51860
15982         * config/s390/s390.c (s390_chunkify_start): Don't skip
15983         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
15984         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
15985         If insn is followed by NOTE_INSN_VAR_LOCATION or
15986         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
15987         Don't use location of note insns.
15989         PR tree-optimization/51865
15990         * tree-inline.c (tree_function_versioning): Call remap_decl
15991         on DECL_RESULT whenever it has VOID_TYPE_P type.
15993 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
15995         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
15996         for calls to locally-binding MIPS16 functions if only the return
15997         type uses float regs.
15999 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
16000             Richard Sandiford  <rdsandiford@googlemail.com>
16002         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
16003         (SYMBOL_32_HIGH): Likewise.
16004         (mips_output_tls_reloc_directive): Declare.
16005         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
16006         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
16007         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
16008         (mips_lo_relocs, mips_hi_relocs): Make extern.
16009         (mips16_stub_function): Move up file.
16010         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
16011         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
16012         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
16013         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
16014         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
16015         (mips_get_tp): Add MIPS16 support.
16016         (mips_legitimize_tls_address): Remove MIPS16 sorry().
16017         Generalize DTPREL and TPREL handling.
16018         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
16019         Add MIPS16 TLS support.
16020         (mips_output_tls_reloc_directive): New function.
16021         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
16022         * config/mips/predicates.md (symbolic_operand_with_high)
16023         (tls_reloc_operand): New predicates.
16024         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
16025         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
16026         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
16027         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
16028         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
16029         (*tls_get_tp_mips16_call_<mode>): Likewise.
16031 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
16033         PR rtl-optimization/51821
16034         * recog.c (peep2_find_free_register): Determine clobbered registers
16035         from insn pattern.
16037 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
16039         PR target/50925
16040         * config/avr/avr-protos.h: Revert change of 2012-01-09.
16041         * config/avr/avr.c: Likewise.
16042         * config/avr/avr.h: Likewise.
16044 2012-01-13  Ian Lance Taylor  <iant@google.com>
16046         PR c++/50012
16047         * tree.h (TYPE_QUALS): Add cast to int.
16048         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
16050 2012-01-13  Ian Lance Taylor  <iant@google.com>
16052         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
16053         comparing param_index to VEC_length result.
16055 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
16057         * c-decl.c: Do not include tree-mudflap.h
16058         * tree-optimize.c: Likewise.
16059         * Makefile.in: Update dependencies.
16061 2012-01-13  Richard Guenther  <rguenther@suse.de>
16063         PR middle-end/8081
16064         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
16065         variable-sized result always use RSO.
16067 2012-01-12  DJ Delorie  <dj@redhat.com>
16069         * cfgexpand.c (convert_debug_memory_address): Allow any valid
16070         pointer type, not just the default pointer type.
16072 2012-01-09  Richard Henderson  <rth@redhat.com>
16073             Denis Chertykov  <chertykov@gmail.com>
16075         PR target/50925
16076         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
16077         * config/avr/avr.c (avr_can_eliminate): Simplify.
16078         (avr_initial_elimination_offset): Likewise.
16079         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
16080         (expand_epilogue): Likewise.
16081         (avr_legitimize_address): Gut.
16082         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
16083         (avr_hard_regno_nregs): New.
16084         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
16085         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
16086         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
16087         add soft frame pointer.
16088         (CALL_USED_REGISTERS): Likewise.
16089         (REG_CLASS_CONTENTS): Likewise.
16090         (REGISTER_NAMES): Likewise.
16091         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
16092         (HARD_FRAME_POINTER_REGNUM): New.
16093         (FRAME_POINTER_REGNUM): Use soft frame pointer.
16094         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
16095         remove the HARD_FRAME_POINTER self-elimination.
16097 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
16099         PR target/51756
16100         * config/avr/avr.c (avr_encode_section_info): Test for absence of
16101         DECL_EXTERNAL when checking for initializers of progmem variables.
16103 2012-01-12  Ira Rosen  <irar@il.ibm.com>
16105         PR tree-optimization/51799
16106         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
16107         that the last operation is a type demotion.
16109 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
16111         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
16112         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
16114 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
16116         PR bootstrap/51796
16117         * combine.c (distribute_notes): If i3 is a noreturn call,
16118         allow old_size to be equal to args_size and make sure the
16119         noreturn call gets REG_ARGS_SIZE note.
16120         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
16121         on noreturn calls even when the delta is 0.
16123 2012-01-11  Nathan Sidwell  <nathan@acm.org>
16125         * gcov.c (STRING_SIZE): Remove.
16126         (generate_results): Erase annotations for source files with no
16127         coverage information.
16128         (read_line): New.
16129         (output_lines): Use it.
16131 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16133         * gimple.h (gimplify_body): Remove first argument.
16134         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
16135         pointer set here, instead just pass DATA to walk_tree.
16136         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
16137         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
16138         (unvisit_body): Likewise, but with unmark_visited.
16139         (gimplify_body): Remove BODY_P argument and adjust.
16140         (gimplify_function_tree): Adjust call to gimplify_body.
16141         * omp-low.c (finalize_task_copyfn): Likewise.
16143 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16145         * tree.h (build_function_decl_skip_args): Add boolean parameter.
16146         (build_function_type_skip_args): Delete.
16147         * tree.c (build_function_type_skip_args): Make static and add
16148         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
16149         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
16150         pass it to build_function_type_skip_args.
16151         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
16152         (tree_function_versioning): Likewise.
16153         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
16154         build_function_decl_skip_args.
16155         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
16156         and pass it to build_function_decl_skip_args/tree_function_versioning.
16157         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
16158         * ipa-inline-transform.c (save_inline_function_body): Likewise.
16159         * trans-mem.c (ipa_tm_create_version): Likewise.
16160         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
16161         * tree-inline.c (declare_return_variable): Remove always-true test.
16162         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
16163         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
16164         * ipa-split.c (split_function): Skip the return value for the split
16165         part if it doesn't return.
16167 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16169         PR tree-optimization/49642
16170         * ipa-split.c (forbidden_dominators): New variable.
16171         (check_forbidden_calls): New function.
16172         (dominated_by_forbidden): Likewise.
16173         (consider_split): Check for forbidden dominators.
16174         (execute_split_functions): Initialize and free forbidden
16175         dominators info; call check_forbidden_calls.
16177 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
16179         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
16181 2012-01-11  Nick Clifton  <nickc@redhat.com>
16183         * config/rx/rx.md (return): Define pattern.
16185 2012-01-11  Richard Guenther  <rguenther@suse.de>
16187         * doc/extend.texi (malloc attribute): Adjust according to
16188         implementation.
16190 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
16191             Patrick Marlier  <patrick.marlier@gmail.com>
16193         PR middle-end/51516
16194         * trans-mem.c (get_cg_data): Traverse aliases if requested.
16195         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
16196         (ipa_tm_note_irrevocable): Same.
16197         (ipa_tm_scan_irr_block): Same.
16198         (ipa_tm_decrement_clone_counts): Same.
16199         (ipa_tm_scan_irr_function): Same.
16200         (ipa_tm_create_version_alias): Same.
16201         (ipa_tm_create_version): Same.
16202         (ipa_tm_transform_calls_redirect): Same.
16203         (ipa_tm_transform_calls): Same.
16204         (ipa_tm_transform_transaction): Same.
16205         (ipa_tm_execute): Same.
16207 2012-01-10  Richard Guenther  <rguenther@suse.de>
16209         PR middle-end/51806
16210         * opts.c (common_handle_option): Handle -Werror.
16212 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
16214         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
16215         operand number.
16217 2012-01-10  Jason Merrill  <jason@redhat.com>
16219         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
16220         information.
16222 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16224         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
16225         supports R_386_TLS_GD_PLT reloc.
16226         (gcc_cv_as_ix86_tlsldmplt): Check if linker
16227         supports R_386_TLS_LDM_PLT reloc.
16228         * configure: Regenerate.
16229         * config.in: Regenerate.
16231 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
16233         PR target/49868
16234         Extend __pgmx semantics to linearize memory.
16235         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
16236         determine if code comes inline or from libgcc.
16237         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
16238         (movmem_qi, movmem_qi): Set constraint #2 to "n".
16239         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
16240         (movmemx_qi, movmemx_hi): New insns.
16241         (xload_<mode>_libgcc): Rewrite to new insn condition.
16242         (xload_<mode>): Remove insns.
16243         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
16244         cases that don't satisfy avr_xload_libgcc_p().
16245         (avr_addr_space_convert): Allow converting in any direction.
16246         (avr_addr_space_subset_p): Return always true.
16247         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
16248         (avr_emit_movmemhi): Ditto.
16249         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
16250         (avr_out_movmem): Ditto.
16251         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
16252         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
16253         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
16254         (avr_encode_section_info): Encode 'progmem' in symbol flags.
16255         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
16257 2012-01-10  Richard Guenther  <rguenther@suse.de>
16259         PR tree-optimization/50913
16260         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
16261         Require data-refs to be representable by Graphite with respect
16262         to any loop nest.
16264 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
16266         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
16267         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
16269 2012-01-10  Tom de Vries  <tom@codesourcery.com>
16271         PR rtl-optimization/51271
16272         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
16273         handling annulled branch.
16275 2012-01-10  Richard Henderson  <rth@redhat.com>
16277         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
16278         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
16279         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
16280         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
16281         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
16282         arm_expand_vec_perm_const): New.
16283         * config/arm/arm-protos.h: Update.
16284         * config/arm/neon.md (UNSPEC_VCONCAT): New.
16285         (*neon_vswp<VDQX>): New.
16286         (neon_vcombine<VDX>): Use neon_split_vcombine.
16287         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
16288         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
16289         (vec_perm<VE>): New.
16291 2012-01-10  Richard Henderson  <rth@redhat.com>
16293         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
16294         use it if reload_completed.
16295         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
16296         arm_output_asm_insn, arm_process_output_memory_barrier,
16297         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
16298         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
16299         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
16300         arm_process_output_sync_insn, arm_output_sync_insn,
16301         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
16302         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
16303         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
16304         (emit_unlikely_jump): New.
16305         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
16306         (arm_split_atomic_op): New.
16307         * config/arm/arm-protos.h: Update.
16308         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
16309         (struct arm_sync_generator): Remove.
16310         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
16311         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
16312         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
16313         (VUNSPEC_LL, VUNSPEC_SC): New.
16314         (sync_result, sync_memory, sync_required_value, sync_new_value,
16315         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
16316         (attr length): Don't use arm_sync_loop_insns.
16317         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
16318         (movsfcc, movdfcc): Likewise.
16319         * config/arm/constraints.md (Ua): New.
16320         * config/arm/prediates.md (mem_noofs_operand): New.
16321         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
16322         (sync_clobber, sync_t2_reqd): Remove.
16323         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
16324         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
16325         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
16326         (arm_sync_compare_and_swap<SIDI>): Remove.
16327         (arm_sync_compare_and_swap<NARROW>): Remove.
16328         (arm_sync_lock_test_and_set<SIDI>): Remove.
16329         (arm_sync_lock_test_and_set<NARROW>): Remove.
16330         (arm_sync_new_<syncop><SIDI>): Remove.
16331         (arm_sync_new_<syncop><NARROW>): Remove.
16332         (arm_sync_new_nand<SIDI>): Remove.
16333         (arm_sync_new_nand<NARROW>): Remove.
16334         (arm_sync_old_<syncop><SIDI>): Remove.
16335         (arm_sync_old_<syncop><NARROW>): Remove.
16336         (arm_sync_old_nand<SIDI>): Remove.
16337         (arm_sync_old_nand<NARROW>): Remove.
16338         (*memory_barrier): Merge arm_output_memory_barrier.
16339         (atomic_compare_and_swap<QHSD>): New.
16340         (atomic_compare_and_swap<NARROW>_1): New.
16341         (atomic_compare_and_swap<SIDI>_1): New.
16342         (atomic_exchange<QHSD>): New.
16343         (cas_cmp_operand, cas_cmp_str): New.
16344         (atomic_op_operand, atomic_op_str): New.
16345         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
16346         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
16347         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
16348         (arm_load_exclusive<NARROW>): New.
16349         (arm_load_exclusivesi, arm_load_exclusivedi): New.
16350         (arm_store_exclusive<QHSD>): New.
16352 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
16354         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
16355         reload patterns if -mvsx-scalar-memory.
16357         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
16358         generated, even -mno-vsx-scalar-double was used.
16359         (vsx_xscvdpsp_scalar): Likewise.
16360         (vsx_xscvspdp_scalar2): Likewise.
16362 2012-01-09  Tom de Vries  <tom@codesourcery.com>
16363             Andrew Pinski  <apinski@cavium.com>
16365         PR debug/51471
16366         * reorg.c (fill_slots_from_thread): Don't speculate
16367         frame-related insns.
16369 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
16371         * sched-int.h (bb_note): Move to...
16372         * basic-block.h: ...here.
16373         * haifa-sched.c (bb_note): Move to...
16374         * cfgrtl.c: ...here.
16375         * function.c (next_block_for_reg): New function.
16376         (move_insn_for_shrink_wrap): Likewise.
16377         (prepare_shrink_wrap): Rewrite to use the above.
16379 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
16381         * gimple.c (is_gimple_non_addressable): Remove.
16382         * gimple.h: Remove is_gimple_non_addressable.
16383         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
16384         is_gimple_non_addressable.
16385         * trans-mem.c (expand_assign_tm): Same.
16387 2012-01-09  Richard Guenther  <rguenther@suse.de>
16389         PR tree-optimization/51775
16390         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
16391         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
16393 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
16395         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
16396         tuning parameters.
16397         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
16399 2012-01-09  Richard Guenther  <rguenther@suse.de>
16401         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
16403 2012-01-08  Jan Hubicka  <jh@suse.cz>
16405         PR tree-optimize/51680
16406         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
16407         on when known_vals needs to be computed; cleanup.
16409 2012-01-08  Jan Hubicka  <jh@suse.cz>
16411         PR tree-optimize/51694
16412         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
16414 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
16416         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
16417         for -std=c++98 and -std=c++11 too.
16419 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
16421         * cfgloop.c (cancel_loop): Add free() of bbs array.
16423 2012-01-07  Jan Hubicka  <jh@suse.cz>
16425         PR tree-optimization/51600
16426         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
16427         that benefits small functions.
16429 2012-01-07  Jan Hubicka  <jh@suse.cz>
16431         * ipa-inline.c (want_inline_small_function_p): Fix formating.
16433 2012-01-07  Jan Hubicka  <jh@suse.cz>
16435         PR tree-optimization/51680
16436         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
16437         whose inlining reduce unit size.
16439 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
16441         PR bootstrap/51725
16442         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
16443         Add canonical node to containing_mem chain after the non-canonical
16444         one, even if there weren't any locs to propagate.
16445         (remove_useless_values): Keep only canonical values.
16446         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
16447         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
16448         canonicalize mem_chain elements that are not discarded.
16450 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
16452         PR target/47333
16453         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
16454         before emitting functions.
16456         PR gcov-profile/50127
16457         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
16458         clear_aux_for_blocks.
16460 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
16462         PR debug/51746
16463         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
16465 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
16467         * c-decl.c (ext_block): Moved up.
16468         (collect_all_refs, for_each_global_decl): Take ext_block into account.
16470 2012-01-06  Han Shen  <shenhan@google.com>
16472         Translate built-in include paths for sysroot.
16473         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
16474         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
16476         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
16477         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
16479         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
16480         control whether sysroot should be prepended to gxx include dir.
16482         * configure: Regenerate.
16484 2012-01-06  Torvald Riegel  <triegel@redhat.com>
16486         PR rtl-optimization/51771
16487         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
16488         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
16490 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16492         PR tree-optimization/51315
16493         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
16494         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
16496 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
16498         PR target/51681
16499         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
16500         for shrp pattern.  Correctly handle and fixup shift variable.
16501         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
16503 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
16505         PR debug/51762
16506         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
16507         note when !ACCUMULATE_OUTGOING_ARGS.
16509 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16511         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
16512         condition.
16513         (extract_range_from_unary_expr_1): Avoid useless computations.
16515 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
16517         PR rtl-optimization/51767
16518         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
16519         of jump_block and add an extra edge for degenerated asm gotos.
16521         PR middle-end/51768
16522         * stmt.c (check_unique_operand_names): Don't ICE during error
16523         reporting if i is from labels chain.
16525         PR middle-end/44777
16526         * profile.c (branch_prob): Split bbs that have exit edge
16527         and need a fake entry edge too.
16529 2012-01-05  Jan Hubicka  <jh@suse.cz>
16531         PR middle-end/49710
16532         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
16533         unlooping loops.
16535 2012-01-05  Richard Guenther  <rguenther@suse.de>
16537         PR lto/50490
16538         * tree-streamer-out.c (write_ts_optimization): New function.
16539         (streamer_write_tree_body): Call it.
16540         * tree-streamer-in.c (lto_input_ts_optimization): New function.
16541         (streamer_read_tree_body): Call it.
16542         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
16544 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
16546         PR middle-end/51761
16547         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
16548         * gimplify.c (gimplify_cleanup_point_expr): Save and set
16549         in_cleanup_point_expr before gimplify_stmt call and restore it
16550         afterwards.
16551         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
16552         in_cleanup_point_expr is false.
16554 2012-01-05  Richard Guenther  <rguenther@suse.de>
16556         PR middle-end/51764
16557         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
16558         to c.opt.
16559         * toplev.c (process_options): Reject combining mudflap and LTO.
16560         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
16562 2012-01-05  Richard Guenther  <rguenther@suse.de>
16564         PR tree-optimization/51760
16565         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
16566         not VARYING.
16567         (bit_value_unop): Handle UNDEFINED operands.
16568         (bit_value_binop): Likewise.
16570 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
16572         * config/avr/avr.c (avr_replace_prefix): Remove.
16573         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
16574         (avr_asm_function_rodata_section): Ditto.
16575         (avr_asm_select_section): Ditto.
16577 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16579         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
16580         insertion.
16582 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
16584         PR bootstrap/51648
16585         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
16586         calls that have any non-fake successor edges.
16588         PR debug/51746
16589         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
16591 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16593         PR tree-optimization/51624
16594         * tree-sra.c (build_ref_for_model): When replicating a chain of
16595         COMPONENT_REFs, stop as soon as the offset would become negative.
16597 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
16599         PR debug/51695
16600         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
16601         in .debug_loc on the floor.
16603 2012-01-04  Andrew Pinski  <apinski@cavium.com>
16605         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
16607 2012-01-04  Andrew Pinski  <apinski@cavium.com>
16608             Adam Nemet  <anemet@caviumnetworks.com>
16610         * config/mips/mips.md (size): Add SI and DI.
16611         (SIZE): New mode attribute.
16612         (U): New code attribute.
16613         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
16614         (mips_lbux_<mode>): Delete.
16615         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
16616         (mips_lhx): Use gen_mips_lhx_extsi.
16617         (mips_lhx_<mode>): Delete.
16618         (mips_lwx): Delete.
16619         (mips_l<size>x): New expand.
16620         (mips_lwx_<mode>): Delete.
16621         (mips_l<GPR:size>x_<P:mode>): New pattern.
16622         (*mips_lw<u>x_<P:mode>_ext): Likewise.
16623         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
16624         * config/mips/mips.c (mips_lx_address_p): New function.
16625         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
16626         (dsp64): New availability predicate.
16627         (mips_builtins): Add an entry for __builtin_mips_ldx.
16628         * config/mips/mips.h (ISA_HAS_LBX): New define.
16629         (ISA_HAS_LBUX): Likewise.
16630         (ISA_HAS_LHX): Likewise.
16631         (ISA_HAS_LHUX): Likewise.
16632         (ISA_HAS_LWX): Likewise.
16633         (ISA_HAS_LWUX): Likewise.
16634         (ISA_HAS_LDX): Likewise.
16635         * doc/extend.texi (__builtin_mips_ldx): Document.
16637 2012-01-04  Tristan Gingold  <gingold@adacore.com>
16639         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
16640         when long pointers are used.
16641         * config.build (*-*-*vms*): Handle all OpenVMS targets.
16642         (alpha64-dec-*vms*, alpha*-dec-*vms*)
16643         (ia64-hp-*vms*): Remove.
16644         * config/vms/xm-vms64.h: Delete.
16646 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
16648         PR middle-end/51472
16649         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
16651 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
16653         * opts.c (finish_options): Remove duplicate sorry.
16655 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
16657         PR middle-end/51696
16658         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
16659         correctly.
16661 2012-01-04  Richard Guenther  <rguenther@suse.de>
16663         PR middle-end/51750
16664         * tree.c (size_low_cst): New function.
16665         * tree.h (size_low_cst): Declare.
16666         * fold-const.c (fold_comparison): Use it to extract the low
16667         part of the POINTER_PLUS_EXPR offset.
16669 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
16671         Fix clearing ZERO_REG
16672         * config/avr/avr.md (cc): Add alternative "ldi".
16673         (movqi_insn): Use it in cc attribute.
16674         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
16675         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
16676         (output_reload_insisf): Use ZERO_REG to pre-clear register.
16678 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16680         * configure: Regenerate.
16682 2012-01-04  Richard Guenther  <rguenther@suse.de>
16684         PR tree-optimization/49651
16685         * tree-ssa-structalias.c (type_can_have_subvars): New function.
16686         (var_can_have_subvars): Use it.
16687         (get_constraint_for_1): Only consider subfields if there can be any.
16689 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
16691         PR bootstrap/51725
16692         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
16693         to its new canonical_cselib_val and the cselib_val was in
16694         first_containing_mem chain, but the canonical_cselib_val was not,
16695         add the latter into the chain.
16696         (cselib_invalidate_mem): Compare canonical_cselib_val of
16697         addr_list chain elt with v.
16699         PR pch/51722
16700         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
16701         dwarf2out_undef): Allocate e.info using ggc_strdup instead
16702         of xstrdup.
16703         (output_macinfo_op): Don't ggc_strdup fd->filename.
16704         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
16705         then ggc_strdup it.  Don't free inc->info or cur->info.
16706         (output_macinfo): Don't free ref->info or file->info.
16708 2012-01-03  Ira Rosen  <irar@il.ibm.com>
16710         PR tree-optimization/51269
16711         * tree-vect-loop-manip.c (set_prologue_iterations): Make
16712         first_niters a pointer.
16713         (slpeel_tree_peel_loop_to_edge): Likewise.
16714         (vect_do_peeling_for_loop_bound): Update call to
16715         slpeel_tree_peel_loop_to_edge.
16716         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
16717         here.  Remove it from the parameters list.
16718         (vect_do_peeling_for_alignment): Update calls and compute
16719         wide_prolog_niters.
16721 2012-01-03  Richard Guenther  <rguenther@suse.de>
16723         PR tree-optimization/51070
16724         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
16725         Properly handle calls.
16727 2012-01-03  Richard Guenther  <rguenther@suse.de>
16729         PR tree-optimization/51692
16730         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
16731         the LHS of allocation stmts.
16733 2012-01-03  Olivier Hainque  <hainque@adacore.com>
16735         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
16737 2012-01-03  Olivier Hainque  <hainque@adacore.com>
16739         * collect2.c (main): In AIX specific computations for vector
16740         insertions, use CONST_CAST2 to cast from char ** to const char **.
16742 2012-01-03  Richard Guenther  <rguenther@suse.de>
16744         PR debug/51650
16745         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
16746         the context of a limbo DIE when it does not already exist.
16748 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
16750         PR tree-optimization/51719
16751         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
16752         but direct call is, clear direct call's lhs and don't add fallthrough
16753         edge from dcall_bb to join_bb and PHIs.
16755 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16757         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
16758         the instructions emitted by the pattern.
16759         ("*TDC_insn_<mode>"): Add comment.
16761 2012-01-03  Richard Guenther  <rguenther@suse.de>
16763         PR middle-end/51730
16764         * fold-const.c (fold_comparison): Properly canonicalize
16765         tree offset and HOST_WIDE_INT bit position.
16767 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
16769         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
16770         operands for extzv pattern.
16772 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
16774         PR bootstrap/51725
16775         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
16776         on mem_elt first.
16778 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
16780         * doc/invoke.texi (-flto and related options): Copy-edit.
16782 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16784         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
16786 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
16788         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
16789         New patterns.
16791 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16793         * expr.h (move_by_pieces_ninsns): Declare.
16794         * expr.c (move_by_pieces_ninsns): Make external.
16795         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
16796         (mips_store_by_pieces_p): Likewise.
16797         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
16798         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
16799         * config/mips/mips.c (mips_move_by_pieces_p): New function.
16800         (mips_store_by_pieces_p): Likewise.
16802 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
16804         * passes.c (register_one_dump_file): Free full_name.
16806         * reload1.c (reload): Don't allocate reg_max_ref_width here.
16807         (calculate_elim_costs_all_insns): Free offsets_at and
16808         offsets_known_at at the end and clear the pointers.
16810 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
16812         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
16813         this option introduced in r180739.
16815 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
16817         PR target/51345
16818         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
16819         (tmake_file target=avr): Add avr/t-multilib.
16821         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
16822         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
16823         * config/avr/genmultilib.awk: New file.
16824         * config/avr/t-multilib: New auto-generated file.
16825         * config/avr/multilib.h: New auto-generated file.
16826         * config/avr/t-avr (AVR_MCUS): New variable.
16827         (genopt.sh): Use it.
16828         (s-mlib): Depend on t-multilib.
16829         (t-multilib, multilib.h): New dependencies.
16830         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
16831         (MULTILIB_OPTIONS): Remove.
16832         (MULTILIB_MATCHES): Remove.
16833         (MULTILIB_DIRNAMES): Remove.
16834         (MULTILIB_EXCEPTIONS): Remove:
16835         * config/avr/genopt.sh: Don't use hard coded file name;
16836         pass AVR_MCUS from t-avr instead.
16838 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
16840         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
16842 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
16844         Implement light-weight DImode support.
16845         * config/avr/avr-dimode.md: New file.
16846         * config/avr/avr.md: Include it.
16847         (adjust_len): Add plus64, compare64.
16848         (HIDI): Remove code iterator.
16849         (code_stdname): New code attribute.
16850         (rotx, rotsmode): Remove DI.
16851         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
16852         as code iterator.
16853         * config/avr/avr-protos.h (avr_have_dimode): New.
16854         (avr_out_plus64, avr_out_compare64): New.
16855         * config/avr/avr.c (avr_out_compare): Handle DImode.
16856         (avr_have_dimode): New variable definition and initialization.
16857         (avr_out_compare64, avr_out_plus64): New functions.
16858         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
16859         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
16860         (avr_compare_pattern): Skip DImode comparisons.
16862 2012-01-02  Revital Eres  <revital.eres@linaro.org>
16864         * ddg.c (def_has_ccmode_p): New function.
16865         (add_cross_iteration_register_deps,
16866         create_ddg_dep_from_intra_loop_link): Call it.
16868 2012-01-02  Richard Guenther  <rguenther@suse.de>
16870         PR other/51679
16871         * invoke.texi (fassociative-math): Remove spurious paranthesis.
16873 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
16875         * gcc.c (process_command): Update copyright notice dates.
16876         * gcov.c (print_version): Likewise.
16877         * gcov-dump.c (print_version): Likewise.
16878         * mips-tfile.c (main): Likewise.
16879         * mips-tdump.c (main): Likewise.
16881 2012-01-01  Ira Rosen  <irar@il.ibm.com>
16883         PR tree-optimization/51704
16884         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
16885         a use is inside the basic block or loop before accessing its vect info.
16887 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
16889         PR rtl-optimization/51069
16890         * cfgloopmanip.c (remove_path): Removing path making irreducible
16891         region unconditional makes BB part of the region.
16893 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
16895         PR tree-optimization/51683
16896         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
16897         calls with side-effects.
16898         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
16900 Copyright (C) 2012 Free Software Foundation, Inc.
16902 Copying and distribution of this file, with or without modification,
16903 are permitted in any medium without royalty provided the copyright
16904 notice and this notice are preserved.