PR target/33135
[official-gcc.git] / gcc / ChangeLog
blob4507857878372b82e600c45ca1f6c91d4e99717b
1 2012-07-18  Oleg Endo  <olegendo@gcc.gnu.org>
3         PR target/33135
4         * config/sh/sh.opt (mieee): Use Var instead of Mask.  Correct
5         description.
6         * config/sh/sh.c (sh_option_override): Do not change 
7         flag_finite_math_only.  Set TARGET_IEEE to complement of
8         flag_finite_math_only.
9         * doc/invoke.texi (SH options): Add mno-ieee.  Correct description
10         of mieee and mno-ieee behavior.
12 2012-07-18  Steven Bosscher  <steven@gcc.gnu.org>
14         * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
16 2012-07-18  Steven Bosscher  <steven@gcc.gnu.org>
18         * dumpfile.h (TDF_COMMENT): New define.
19         * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
20         EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
21         EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
22         EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
23         Move to new file cfg-flags.h.
24         (enum cfg_edge_flags): New enum, using cfg-flags.h.
25         (EDGE_ALL_FLAGS): Compute value automatically.
26         (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
27         BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
28         BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
29         BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
30         BB_IN_TRANSACTION): Move to new file cfg-flags.h.
31         (enum bb_flags): Rename to cfg_bb_flags.  Use cfg-flags.h.
32         (BB_ALL_FLAGS): New, compute value automatically.
33         (dump_bb_info): Update prototype.
34         (dump_edge_info): Update prototype.
35         * cfg-flags.h: New file.
36         * cfg.c (dump_edge_info): Take flags argument.  Be verbose only if
37         TDF_DETAILS and not TDF_SLIM.  Include cfg-flags.h for bitnames.
38         Check that the edge flags are within the range of EDGE_ALL_FLAGS.
39         (debug_bb): Update dump_bb call.
40         (dump_cfg_bb_info): Remove.
41         (dump_bb_info): New function.  Use cfg-flags.h for bitnames.
42         Adjust verbosity using TDF_* flags.  Check that the basic block flags
43         are within the range of BB_ALL_FLAGS.
44         (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
45         * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
46         first for consistency with other dump functions.
47         (dump_bb): Update prototype accordingly.
48         * cfghooks.c: Include dumpfile.h.
49         (verify_flow_info): Update dump_edge_info calls.
50         (dump_bb): Take a flags argument and pass it around.
51         Use dump_bb_info to dump common information about a basic block.
52         (dump_flow_info): Moved here from cfgrtl.c.  Make IL agnostic.
53         (debug_flow_info): Moved here from cfgrtl.c.
54         * profile.c (is_edge_inconsistent): Update dump_bb calls.
55         * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
56         * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
57         print_rtl_slim_with_bb): Remove prototypes.
58         (dump_insn_slim): Adjust prototype to take a const_rtx.
59         (print_rtl_with_bb): Adjust prototype.
60         * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
61         * sched-vis.c (dump_insn_slim): Take a const_rtx.
62         (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
63         (print_rtl_slim_with_bb): Remove.
64         (print_rtl_slim): Rename to debug_rtl_slim.  Print only insn info,
65         not basic block info (print_rtl_with_bb with TDF_SLIM should be used
66         for that.  Prototype here near DEBUG_FUNCTION marker.
67         (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
68         Use dump_bb.
69         (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
70         * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
71         (remove_bb): Update dump_bb call.
72         (gimple_debug_bb): Use dump_bb.
73         (dump_function_to_file): Update gimple_dump_bb call.
74         (print_loops_bb): Likewise.
75         * tree-flow.h (gimple_dump_bb): Update prototype.
76         * gimple-pretty-print.c (dump_bb_header): Rename to
77         dump_gimple_bb_header.  Write to a stream instead of a pretty
78         printer.  Use dump_bb_info to dump basic block info.
79         (dump_bb_end): Rename to dump_gimple_bb_footer.  Write to a
80         stream instead of a pretty printer.  Use dump_bb_info.
81         (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
82         (gimple_dump_bb): Do it here with dump_gimple_bb_header and
83         dump_gimple_bb_footer.
84         * cfgrtl.c (rtl_dump_bb): Update prototype.  Only dump DF if the
85         dump flags have TDF_DETAILS.  Use dump_insn_slim if TDF_SLIM.
86         (print_rtl_with_bb): Take a flags argument and pass it around.
87         Use dump_insn_slim if TDF_SLIM.
88         (dump_bb_info): Removed and re-incarnated in cfg.c.
89         (dump_flow_info): Moved to cfghooks.c.
90         (debug_flow_info): Moved to cfghooks.c.
91         * passes.c (execute_function_dump): Unconditionally use
92         print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
93         * final.c (dump_basic_block_info): Update dump_edge_info calls.
94         * tree-vrp.c (dump_asserts_for): Likewise.
95         * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
96         * tree-if-conv.c (if_convertible_bb_p): Don't look at
97         EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
98         * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
99         for the same reason.
100         * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
102 2012-07-17  Richard Guenther  <rguenther@suse.de>
104         * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
105         vars here, use create_tmp_reg where appropriate.
106         (vect_create_addr_base_for_vector_ref): Do not add referenced
107         vars here, use create_tmp_reg where appropriate.
108         (vect_create_data_ref_ptr): Likewise.
109         (vect_create_destination_var): Likewise.
110         (vect_permute_store_chain): Likewise.
111         (vect_permute_load_chain): Likewise.
112         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
113         Likewise.
114         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
115         * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
116         (vect_handle_widen_op_by_const): Likewise.
117         * tree-vect-stmts.c (vect_init_vector): Likewise.
118         (vectorizable_load): Likewise.
120 2012-07-17  Tom de Vries  <tom@codesourcery.com>
122         * hwint.c: Fix loop range.
124 2012-07-17  Tom de Vries  <tom@codesourcery.com>
126         * double-int.h (double_int_popcount): New inline function.
127         * hwint.c (popcount_hwi): New function.
128         * hwint.h (popcount_hwi): Declare function.  New inline function.
130 2012-07-17  Richard Henderson  <rth@redhat.com>
132         * tree-vect-stmts.c (supportable_widening_operation): Remove decl
133         parameters.
134         (vectorizable_conversion): Update supportable_widening_operation call.
135         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
136         (vect_recog_widen_shift_pattern): Likewise.
137         * tree-vectorizer.h: Update decl.
139 2012-07-17  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
140             Ulrich Weigand  <ulrich.weigand@linaro.org>
142         * common/config/arm/arm-common.c (arm_option_optimization_table):
143         Enable -fsched-pressure by default while optimizing.
144         * config/arm/arm.c (arm_option_override): Use the alternate scheduler
145         pressure algorithm by default.
147 2012-07-16  Oleg Endo  <olegendo@gcc.gnu.org>
149         * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
150         (CONST_OK_FOR_I10): Move macro to ...
151         * config/sh/sh.c: ... here.
152         (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
153         CONST_OK_FOR_I06.
155 2012-07-16  Oleg Endo  <olegendo@gcc.gnu.org>
157         * config/sh/sh.md: Delete mov related define_peephole patterns.
159 2012-07-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
161         PR c++/53919
162         * doc/install.texi (Installing GCC): Refer to instructions for
163         released versions. Fix hyphenation.
165 2012-07-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
167         * config/spu/spu.c (targetm): Move to bottom of file.
168         (spu_attribute_table): Likewise.
169         (spu_option_override, spu_init_builtins, spu_builtin_decl,
170         spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
171         spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
172         adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
173         frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
174         insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
175         get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
176         spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
177         spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
178         spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
179         spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
180         spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
181         spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
182         spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
183         spu_encode_section_info, spu_legitimize_address,
184         spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
185         spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
186         spu_addr_space_pointer_mode, spu_addr_space_address_mode,
187         spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
188         spu_section_type_flags, spu_select_section, spu_unique_section,
189         spu_trampoline_init, spu_conditional_register_usage,
190         spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
191         spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
192         spu_setup_incoming_varargs): Remove prototypes.
193         (spu_legitimize_address): Add "static" to definition.
195 2012-07-16  Jakub Jelinek  <jakub@redhat.com>
197         * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
199 2012-07-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
201         * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
202         before calling gsi_stmt.
204 2012-07-16  Kirill Yukhin  <kirill.yukhin@intel.com>
206         Revert
207         2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
209         * config/i386/i386.md (stack_protect_set): Disable the pattern
210         for Android since Android libc (bionic) does not provide random
211         value for stack protection guard at gs:0x14. Guard value
212         will be provided from external symbol (default implementation).
213         (stack_protect_set_<mode>): Likewise.
214         (stack_protect_test): Likewise.
215         (stack_protect_test_<mode>): Likewise.
217 2012-07-16  H.J. Lu  <hongjiu.lu@intel.com>
219         PR middle-end/53959
220         PR bootstrap/53963
221         * gimple.c (gimple_types_compatible_p_1): Restore type attribute
222         comparison.
224 2012-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
226         * opts.c (default_option): Add -fvect-cost-model to default options
227         at -O3 and above.
229 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
231         * graphite-clast-to-gimple.c, graphite-dependences.c,
232         graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
233         for pass TODO flags.
234         * Makefile.in: Fix dependencies.
236 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
238         * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
239         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
241         * function.c (stack_protect_epilogue): Use expand_call to expand
242         targetm.stack_protect_fail.
243         * stmt.c (expand_expr_stmt): Remove now-unused function.
244         * tree.h (expand_expr_stmt): Remove prototype.
245         * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
246         hook must return a CALL_EXPR.
247         * doc/tm.texi: Regenerate.
249         * emit-rtl.c (emit_label_before): Do not allow the same label
250         to be emitted twice.
251         (emit_label_after): Likewise.
252         (emit_label): Likewise.
254         * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
255         TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
256         * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
257         TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
259 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
261         * system.h (dump_file): Do not define.
262         * tree-pass.h: Include dumpfile.h, which is a new file containing...
263         (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
264         dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
265         dump_flag_name, dump_file, dump_flags, dump_file_name,
266         get_dump_file_info, struct dump_file_info): all of this, moved to...
267         * dumpfile.h: Here, new file.
268         * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
269         (dump_stmt): Remove prototype for C++ specific function.
270         (dump_enumerated_decls): Move prototype from here...
271         * tree-flow.h (dump_enumerated_decls): ... to here.
272         (get_ref_base_and_extent) Move prototype from here ...
273         * tree.h (get_ref_base_and_extent) ... to here.
274         * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
275         gimple-pretty-print.h is enough.  Do not include tree-dump.h,
276         include timevar.h and dumpfile.h instead.
277         (struct numbered_tree_d, compare_decls_by_uid,
278         dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
279         * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
280         dump_enumerated_decls_push, dump_enumerated_decls):... to here.
281         Do not include timevar.h.
282         * tree.c: Do not include timevar.h.
283         * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
284         timevar.h.
285         (dump_cfg_stats): Use current_function_name.
286         (gimple_cfg2vcg): Likewise.
287         (dump_function_to_file): Likewise.
288         * df-scan.c: Do not include tree-pass.h and timevar.h.
289         Include dumpfile.h.
290         (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
291         use print_current_pass.
292         * df-problems.c: Include dumpfile.h.
293         Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
294         leads to errors in the code not selected.
295         (df_note_compute): Do not print_rtl_with_bb here.  Fix compilation
296         bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
297         * lcm.c: Include dumpfile.h.
298         Remove obsolete include of insn-attr.h.
299         * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
300         missing probability notes.
301         * stmt.c: Include dumpfile.h.
302         (emit_case_decision_tree): Re-enable printing expand details only
303         if TDF_DETAILS.
304         * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c, 
305         cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c, 
306         cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c, 
307         coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c, 
308         dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c, 
309         function.c, fwprop.c, gcse.c, gimple-fold.c, 
310         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, 
311         gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c, 
312         graphite-dependences.c, graphite-interchange.c, 
313         graphite-optimize-isl.c, graphite-poly.c, 
314         graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c, 
315         ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c, 
316         ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c, 
317         ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c, 
318         jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c, 
319         loop-unroll.c, loop-unswitch.c, lower-subreg.c, 
320         lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c, 
321         mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c, 
322         plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c, 
323         print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c, 
324         regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c, 
325         sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c, 
326         store-motion.c, tracer.c, trans-mem.c, tree-affine.c, 
327         tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c, 
328         tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
329         tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c, 
330         tree-mudflap.c, tree-nrv.c, tree-object-size.c, 
331         tree-optimize.c, tree-outof-ssa.c, tree-predcom.c, 
332         tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c, 
333         tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c, 
334         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c, 
335         tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c, 
336         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c, 
337         tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c, 
338         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, 
339         tree-ssa-loop-manip.c, tree-ssa-loop-niter.c, 
340         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c, 
341         tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c, 
342         tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c, 
343         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c, 
344         tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c, 
345         tree-ssa-threadedge.c, tree-ssa-threadupdate.c, 
346         tree-ssa-uncprop.c, tree-ssa-uninit.c, 
347         tree-switch-conversion.c, tree-tailcall.c, 
348         tree-vect-data-refs.c, tree-vect-loop.c, 
349         tree-vect-loop-manip.c, tree-vectorizer.c, 
350         tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c, 
351         tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
352         only if needed.  If tree-pass.h is included, do not include timevar.h
353         and dumpfile.h.  If tree-pass.h is not included but dump_file, or
354         dump_flags, or the TDF_* flags are used, include dumpfile.h.
355         If gimple-pretty-print.h is included, don't include tree-pretty-print.h.
356         Remove assorted unnecessary includes.
358         * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
359         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
360         config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
361         Include dumpfile.h.
362         * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
363         * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
364         spu/t-spu-elf: Fix dependencies.
366 2012-07-16  Dehao Chen  <dehao@google.com>
368         Revert
369         2012-07-10  Dehao Chen  <dehao@google.com>
371         * tree.h (phi_arg_d): New field.
372         * tree-flow-inline.h (gimple_phi_arg_block): New function.
373         (gimple_phi_arg_block_from_edge): New function.
374         (gimple_phi_arg_set_block): New function.
375         (gimple_phi_arg_has_block): New function.
376         (redirect_edge_var_map_block): New function.
377         * tree-flow.h (_edge_var_map): New field.
378         * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
379         * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
380         redirect_edge_var_map_add.
381         * tree-outof-ssa.c (_elim_graph): New field.
382         (insert_partition_copy_on_edge): New parameter.
383         (insert_value_copy_on_edge): New parameter.
384         (insert_rtx_to_part_on_edge): New parameter.
385         (insert_part_to_rtx_on_edge): New parameter.
386         (elim_graph_add_edge): New parameter.
387         (elim_graph_remove_succ_edge): New parameter.
388         (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
389         (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
390         (new_elim_graph): Add block debug info.
391         (clear_elim_graph): Likewise.
392         (delete_elim_graph): Likewise.
393         (elim_graph_add_node): Likewise.
394         (elim_graph_add_edge): Likewise.
395         (elim_graph_remove_succ_edge): Likewise.
396         (eliminate_build): Likewise.
397         (elim_forward): Likewise.
398         (elim_unvisited_predecessor): Likewise.
399         (elim_backward): Likewise.
400         (elim_create): Likewise.
401         (eliminate_phi): Likewise.
402         (insert_backedge_copies): Likewise.
403         * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
404         add_phi_arg.
405         (rewrite_add_phi_arguments): Likewise.
406         * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
407         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
408         * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
409         * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
410         * tree-ssa-loop-manip.c (create_iv): Likewise.
411         (add_exit_phis_edge): Likewise.
412         (split_loop_exit_edge): Likewise.
413         (copy_phi_node_args): Likewise.
414         (tree_transform_and_unroll_loop): Likewise.
415         * value-prof.c (gimple_ic): Likewise.
416         (gimple_stringop_fixed_value): Likewise.
417         * tree-tailcall.c (add_successor_phi_arg): Likewise.
418         (eliminate_tail_call): Likewise.
419         (create_tailcall_accumulator): Likewise.
420         (tree_optimize_tail_calls_1): Likewise.
421         * tree-phinodes.c (add_phi_arg): Likewise.
422         (make_phi_node): Likewise.
423         (resize_phi_node): Likewise.
424         (remove_phi_arg_num): Likewise.
425         * omp-low.c (expand_parallel_call): Likewise.
426         (expand_omp_for_static_chunk): Likewise.
427         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
428         Likewise.
429         (slpeel_update_phi_nodes_for_guard1): Likewise.
430         (slpeel_update_phi_nodes_for_guard2): Likewise.
431         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
432         (set_prologue_iterations): Likewise.
433         (slpeel_tree_peel_loop_to_edge): Likewise.
434         (vect_loop_versioning): Likewise.
435         * tree-parloops.c (create_phi_for_local_result): Likewise.
436         (transform_to_exit_first_loop): Likewise.
437         (create_parallel_loop): Likewise.
438         * ipa-split.c (split_function): Likewise.
439         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
440         (vect_create_epilog_for_reduction): Likewise.
441         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
442         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
443         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
444         (cond_if_else_store_replacement_1): Likewise.
445         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
446         (remove_forwarder_block_with_phi): Likewise.
447         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
448         * tree-predcom.c (initialize_root_vars): Likewise.
449         (initialize_root_vars_lm): Likewise.
450         * sese.c (sese_add_exit_phis_edge): Likewise.
451         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
452         * tree-ssa.c (flush_pending_stmts): Likewise.
453         (redirect_edge_var_map_add): Likewise.
454         (ssa_redirect_edge): Likewise.
455         * gimple-streamer-in.c (input_phi): Likewise.
456         * tree-vect-stmts.c (vectorizable_load): Likewise.
457         * tree-inline.c (copy_phis_for_bb): Likewise.
458         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
459         * tree-switch-conversion.c (fix_phi_nodes): Likewise.
460         * tree-cfg.c (reinstall_phi_args): Likewise.
461         (gimple_make_forwarder_block): Likewise.
462         (add_phi_args_after_copy_edge): Likewise.
463         (gimple_duplicate_sese_tail): Likewise.
465 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
467         * config/i386/i386.md (stack_protect_set): Disable the pattern
468         for Android since Android libc (bionic) does not provide random
469         value for stack protection guard at gs:0x14. Guard value
470         will be provided from external symbol (default implementation).
471         (stack_protect_set_<mode>): Likewise.
472         (stack_protect_test): Likewise.
473         (stack_protect_test_<mode>): Likewise.
475 2012-07-16  Hans-Peter Nilsson  <hp@axis.com>
477         * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
478         * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
479         CONSTANT_P and cris_legitimate_address_p.
480         * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
481         (cris_preferred_reload_class): Don't return GENERAL_REGS as
482         preferred to MOF_SRP_REGS.
484         * config/cris/cris.c (cris_init_libfuncs): Handle initialization
485         of library functions for basic atomic compare-and-swap.
486         * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
487         * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
488         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
489         ("cris_atomic_fetch_<atomic_op_name><mode>_1")
490         ("atomic_compare_and_swap<mode>")
491         ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
492         TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
493         * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
494         * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
495         (atomic_op_op_pred): Ditto.
496         (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
497         reflect the change to include %2 in expansion.  All callers changed.
498         (qm3): New mode_attr.
499         ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
500         as predicate for operand 2. 
501         ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME.  Use
502         "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
503         constraint for operand 2.
504         ("atomic_compare_and_swap<mode>"): Add FIXME.  Change predicate to
505         nonmemory_operand for operand 3.
506         ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
507         exclude memory.  Improve emitted sync code for v10 and v32.  Use
508         <qm3> instead of <m> for size designator for cmp.
509         ("atomic_compare_and_swap<mode>"): Change predicate to
510         nonmemory_operand for operand 3.  Add FIXME.
511         ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
512         constraints for operand 3 to exclude memory.
513         ("atomic_fetch_<atomic_op_name><mode>")
514         ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
515         calls on result of call to need_atomic_barrier_p.
517 2012-07-15  Richard Sandiford  <rdsandiford@googlemail.com>
519         * config/mips/mips.md (move_type): Replace mfhilo and mthilo
520         with mflo and mtlo.
521         (type): Split mfhilo into mfhi and mflo.  Split mthilo into mthi
522         and mtlo.  Adjust move_type->type mapping.
523         (may_clobber_hilo): Split mthilo into mthi and mtlo.
524         (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
525         (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
526         (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
527         instead of mthilo and mfhilo.
528         (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
529         (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
530         * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
531         (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
532         Use mflo instead of mfhilo.
533         * config/mips/10000.md (r10k_arith): Split mthilo.
534         (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
535         * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
536         (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
537         * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
538         mthilo and mfhilo.
539         * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
540         * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
541         Likewise.
542         * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
543         * config/mips/5400.md (ir_vr54_hilo): Likewise.
544         * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
545         * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
546         * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
547         * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
548         * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
549         * config/mips/generic.md (generic_hilo): Likewise.
550         * config/mips/loongson2ef.md (ls2_alu): Likewise.
551         * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
552         * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
553         (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
554         * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
555         * config/mips/xlr.md (xlr_hilo): Likewise.
557 2012-07-14  Andrew Stubbs  <ams@codesourcery.com>
558             Sandra Loosemore  <sandra@codesourcery.com>
560         * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
562 2012-07-14  Uros Bizjak  <ubizjak@gmail.com>
564         * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
565         for TARGET_SSE.
567 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
569         * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
571 2012-07-13  Bill Schmidt  <wschmidt@linux.ibm.com>
573         PR bootstrap/53955
574         * config/spu/spu.c (spu_init_cost): Mark static.
575         (spu_add_stmt_cost): Likewise.
576         (spu_finish_cost): Likewise.
577         (spu_destroy_cost_data): Likewise.
578         * config/i386/i386.c (ix86_init_cost): Mark static.
579         (ix86_add_stmt_cost): Likewise.
580         (ix86_finish_cost): Likewise.
581         (ix86_destroy_cost_data): Likewise.
582         * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
583         (rs6000_add_stmt_cost): Likewise.
584         (rs6000_finish_cost): Likewise.
585         (rs6000_destroy_cost_data): Likewise.
587 2012-07-13  Steven Bosscher  <steven@gcc.gnu.org>
589         * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
590         ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
591         ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
592         ATTRIBUTE_MALLOC.
593         * alloc-pool.h (pool_alloc): Likewise.
595         * final.c (final): Do not loop to find max_uid.
597 2012-07-13  Steven Bosscher  <steven@gcc.gnu.org>
599         * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
600         * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
602 2012-07-13  Richard Guenther  <rguenther@suse.de>
604         PR tree-optimization/53907
605         * tree-ssa-forwprop.c (associate_pointerplus): New function.
606         (ssa_forward_propagate_and_combine): Call it.
608 2012-07-13  Richard Guenther  <rguenther@suse.de>
610         PR tree-optimization/53922
611         * tree-vrp.c (value_inside_range): Change prototype to take
612         min/max instead of value-range.
613         (range_includes_zero_p): Likewise.  Return the result from
614         value_inside_range.
615         (extract_range_from_binary_expr_1): Adjust to handle dont-know
616         return value from range_includes_zero_p.
617         (extract_range_from_unary_expr_1): Likewise.
618         (compare_range_with_value): Likewise.
619         (vrp_meet_1): Likewise.
621 2012-07-13  Bill Schmidt  <wschmidt@linux.ibm.com>
623         * doc/tm.texi: Regenerate.
624         * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
625         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
626         (TARGET_VECTORIZE_FINISH_COST): Likewise.
627         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
628         * targhooks.c (default_init_cost): New function.
629         (default_add_stmt_cost): Likewise.
630         (default_finish_cost): Likewise.
631         (default_destroy_cost_data): Likewise.
632         * targhooks.h (default_init_cost): New decl.
633         (default_add_stmt_cost): Likewise.
634         (default_finish_cost): Likewise.
635         (default_destroy_cost_data): Likewise.
636         * target.def (init_cost): New DEFHOOK.
637         (add_stmt_cost): Likewise.
638         (finish_cost): Likewise.
639         (destroy_cost_data): Likewise.
640         * target.h (struct _stmt_vec_info): New extern decl.
641         (stmt_vectype): Likewise.
642         (stmt_in_inner_loop_p): Likewise.
643         * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
644         (stmt_vector_for_cost): New VEC/typedef.
645         (add_stmt_info_to_vec): New function.
646         (struct _slp_tree): Remove cost.inside_of_loop field.
647         (struct _slp_instance): Remove cost.inside_of_loop field; add
648         stmt_cost_vec field.
649         (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
650         (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
651         (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
652         (struct _vect_peel_extended_info): Add stmt_cost_vec field.
653         (struct _loop_vec_info): Add target_cost_data field.
654         (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
655         (struct _bb_vec_info): Add target_cost_data field.
656         (BB_VINFO_TARGET_COST_DATA): New accessor macro.
657         (struct _stmt_vec_info): Remove cost.inside_of_loop field.
658         (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
659         (stmt_vinfo_set_inside_of_loop_cost): Remove function.
660         (init_cost): New function.
661         (add_stmt_cost): Likewise.
662         (finish_cost): Likewise.
663         (destroy_cost_data): Likewise.
664         (vect_model_simple_cost): Change parameter list.
665         (vect_model_store_cost): Likewise.
666         (vect_model_load_cost): Likewise.
667         (record_stmt_cost): New extern decl.
668         (vect_get_load_cost): Change parameter list.
669         (vect_get_store_cost): Likewise.
670         * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
671         (destroy_loop_vec_info): Call destroy_cost_data.
672         (vect_estimate_min_profitable_iters): Remove old calculation of
673         inside costs; call finish_cost instead.
674         (vect_model_reduction_cost): Call add_stmt_cost instead of old
675         inside-costs calculation.
676         (vect_model_induction_cost): Likewise.
677         * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
678         return a stmt_vector_for_cost; modify calls to vect_get_load_cost
679         and vect_get_store_cost to obtain the value to return.
680         (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
681         vect_get_data_access_cost and store it in the minimum peeling
682         structure.
683         (vect_peeling_hash_choose_best_peeling): Change the parameter list
684         to add a (stmt_vector_for_cost *) output parameter, and set its value.
685         (vect_enhance_data_refs_alignment): Ignore the new return value from
686         calls to vect_get_data_access_cost; obtain stmt_cost_vec from
687         vect_peeling_hash_choose_best_peeling and pass its contents to the
688         target cost model.
689         * tree-vect-stmts.c (stmt_vectype): New function.
690         (stmt_in_inner_loop_p): Likewise.
691         (record_stmt_cost): Likewise.
692         (vect_model_simple_cost): Add stmt_cost_vec parameter; call
693         record_stmt_cost instead of old calculation; don't call
694         stmt_vinfo_set_inside_of_loop_cost.
695         (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
696         old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
697         (vect_model_store_cost): Add stmt_cost_vec parameter; call
698         record_stmt_cost instead of old calculation; add stmt_cost_vec
699         parameter to vect_get_store_cost call; don't call
700         stmt_vinfo_set_inside_of_loop_cost.
701         (vect_get_store_cost): Add stmt_cost_vec parameter; call
702         record_stmt_cost instead of old calculation.
703         (vect_model_load_cost): Add stmt_cost_vec parameter; call
704         record_stmt_cost instead of old calculation; add stmt_cost_vec
705         parameter to vect_get_load_cost call; don't call
706         stmt_vinfo_set_inside_of_loop_cost.
707         (vect_get_load_cost): Add stmt_cost_vec parameter; call
708         record_stmt_cost instead of old calculation.
709         (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
710         (vectorizable_conversion): Likewise.
711         (vectorizable_assignment): Likewise.
712         (vectorizable_shift): Likewise.
713         (vectorizable_operation): Likewise.
714         (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
715         (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
716         (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
717         * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
718         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
719         (TARGET_VECTORIZE_FINISH_COST): Likewise.
720         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
721         (spu_init_cost): New function.
722         (spu_add_stmt_cost): Likewise.
723         (spu_finish_cost): Likewise.
724         (spu_destroy_cost_data): Likewise.
725         * config/i386/i386.c (ix86_init_cost): New function.
726         (ix86_add_stmt_cost): Likewise.
727         (ix86_finish_cost): Likewise.
728         (ix86_destroy_cost_data): Likewise.
729         (TARGET_VECTORIZE_INIT_COST): New macro def.
730         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
731         (TARGET_VECTORIZE_FINISH_COST): Likewise.
732         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
733         * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
734         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
735         (TARGET_VECTORIZE_FINISH_COST): Likewise.
736         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
737         (rs6000_init_cost): New function.
738         (rs6000_add_stmt_cost): Likewise.
739         (rs6000_finish_cost): Likewise.
740         (rs6000_destroy_cost_data): Likewise.
741         * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
742         (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
743         (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
744         stmt_cost_vec parameter to vect_model_store_cost and
745         vect_model_simple_cost calls.
746         (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
747         parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
748         vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
749         calculating cost more than once for loads; remove inside_cost
750         parameter from recursive vect_build_slp_tree calls; call
751         record_stmt_cost instead of old calculation.
752         (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
753         the instance; free it on premature exit; remove inside_cost parameter
754         from vect_build_slp_tree call; add stmt_cost_vec parameter to
755         vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
756         (new_bb_vec_info): Call init_cost.
757         (destroy_bb_vec_info): Call destroy_cost_data.
758         (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
759         statement recorded with an SLP instance; call finish_cost instead of
760         the old calculation.
761         (vect_update_slp_costs_according_to_vf): Record statement costs from
762         SLP instances, multiplying by the appropriate number of copies; don't
763         update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
765 2012-07-13  Richard Guenther  <rguenther@suse.de>
767         PR middle-end/53937
768         * builtins.c (get_pointer_alignment_1): Handle constant
769         pointers.
771 2012-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
772             Steven Bosscher  <steven@gcc.gnu.org>
773             Bernd Schmidt  <bernds@codesourcery.com>
775         PR rtl-optimization/53908
776         * df-problems.c (can_move_insns_across): When doing
777         memory-reference book-keeping, handle call insns.
779 2012-07-13  Richard Guenther  <rguenther@suse.de>
781         * gimple.c (gimple_types_compatible_p_1): Remove redundant
782         type attribute comparisons.
783         (gimple_canonical_types_compatible_p): Likewise.
785 2012-07-12  Hans-Peter Nilsson  <hp@axis.com>
787         PR rtl-optimization/53176
788         * rtlanal.c (rtx_cost): Adjust default cost for X with a
789         UNITS_PER_WORD factor for all X according to the size of
790         its mode, not just for SUBREGs with untieable modes.
791         Handle SET.  Use factor * factor for MULT, DIV, UDIV,
792         MOD, UMOD.
794 2012-07-12  Uros Bizjak  <ubizjak@gmail.com>
796         * config/i386/i386.md (QImode and HImode cmove splitters): Merge
797         QImode and HImode splitters.  Use ix86_comparison_operator.
798         Explicitly match FLAGS_REG.
799         (DFmode cmove splitter): Explicitly match FLAGS_REG.
801 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
803         * expr.h (can_move_by_pieces): Move prototype from here ...
804         * tree.h (can_move_by_pieces): ... to here.
805         * optabs.h (set_widening_optab_handler): Use XCNEW.
806         * gimplify.c: Do not include expr.h.
808         * toplev.c: Do not include dwarf2out.h.
809         * config/ia64/ia64.c: Likewise.
810         * config/sparc/sparc.c: Likewise.
811         * config/sparc/t-sparc (sparc.o): Fix dependencies.
813         * Makefile.in (toplev.o): Fix dependencies
814         (c-family/c-gimplify.o): Likewise.
815         (c-family/c-common.o): Likewise.
817 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
819         * basic-block.h (struct edge_def): Use basic_block instead of
820         basic_block_def *.
821         * cfgloop.h (struct loop_exit, struct loop): Likewise.
822         * gengenrtl.c (type_from_format): Likewise.  Also for 'tree'
823         instead of union tree_node *.
824         * rtl.h (union rtunion_def, emit_insn_before_noloc,
825         emit_insn_after_noloc, add_insn_before, add_insn_after,
826         debug_bb_slim): Likewise.
827         * tree-inline.h (struct copy_body_data): Likewise.
828         * sched-rgn.c (dump_region_dot): Likewise.
829         * gimple.h (struct gimple_statement_base, gimple_set_bb,
830         gsi_move_to_bb_end): Likewise.
831         * sched-vis.c (debug_bb_slim): Likewise.
832         (debug_bb_n_slim): Likewise.
833         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
834         (mn10300_block_contains_call):
836 2012-07-11  Greta Yorsh  <Greta.Yorsh@arm.com>
838         PR target/53859
839         * config/arm/arm.c (arm_early_load_addr_dep): Handle new
840         epilogue patterns.
842 2012-07-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
844         * doc/extend.texi (Namespace Association): Alter cautionary text.
846 2012-07-10  Oleg Endo  <olegendo@gcc.gnu.org>
848         PR target/53911
849         * config/sh/sh.md: Remove displacement addresssing related splits.
851 2012-07-10  Xinliang David Li  <davidxl@google.com>
853         * doc/invoke.texi: New option documented.
854         * flag-types.h: New enum type.
855         * gimplify.c (gimplify_bind_expr): Control
856         clobber generation with new option.
857         (gimplify_target_expr): Ditto.
858         * common.opt: New option.
860 2012-07-10  Julian Brown  <julian@codesourcery.com>
862         * config/arm/arm.md (movsi): Don't split symbol refs here.
863         (define_split): New.
865 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
867         PR bootstrap/53913
868         * config/m68k/m68k.c (m68k_epilogue_uses): New.
869         * config/m68k/m68k.h (EPILOGUE_USES): Use it.
870         * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
872 2012-07-10  Richard Henderson  <rth@redhat.com>
874         * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
875         * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
876         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
877         * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
878         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
879         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
880         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
881         (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
882         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
883         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
884         (bdesc_args): Remove entries to match.
885         (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
886         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
887         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
888         * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
889         (rs6000_builtin_mul_widen_odd): Remove.
890         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
891         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
892         * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
893         (spu_builtin_mul_widen_odd): Remove.
894         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
895         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
896         * doc/tm.texi.in: Don't document the removed hooks.
898         * tree-vect-stmts.c (supportable_widening_operation): Expand
899         WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
901         * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
902         (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
903         * optabs.c (can_mult_highpart_p): New.
904         (expand_mult_highpart): New.
905         * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
906         * tree-vect-generic.c (expand_vector_operations_1): Don't expand
907         by pieces if can_mult_highpart_p.
908         (expand_vector_divmod): Use can_mult_highpart_p and always
909         generate MULT_HIGHPART_EXPR.
910         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
911         * tree-vect-stmts.c (vectorizable_operation): Likewise.
913         * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
914         (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
915         * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
916         (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
917         (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
918         (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
919         * config/spu/spu-builtins.def: Update pattern names to match.
921         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
922         from altivec_vmuleub.
923         (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
924         (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
925         (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
926         (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
927         (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
928         (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
929         (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
930         * config/rs6000/rs6000-builtin.def: Update pattern names to match.
932         * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
933         avx2_umulv4siv4di3.
934         (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
935         (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
936         (mulv4si3): Remove XOP test shadowed by SSE4 test.
937         * config/i386/i386.c (bdesc_args): Update pattern names.
938         (ix86_expand_sse2_mulvxdi3): Likewise.
939         (ix86_expand_mul_widen_evenodd): Likewise.  Remove XOP test
940         shadowed by SSE4 test.
942         * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
943         * cfgexpand.c (expand_debug_expr): Handle them.
944         * expr.c (expand_expr_real_2): Likewise.
945         * fold-const.c (fold_binary_loc): Likewise.
946         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
947         * optabs.c (optab_for_tree_code): Likewise.
948         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
949         * tree-inline.c (estimate_operator_cost): Likewise.
950         * tree-pretty-print.c (dump_generic_node): Likewise.
951         * tree.c (commutative_tree_code): Likewise.
952         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
953         Handle type change before looking up optab.
954         * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
955         (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
956         (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
957         (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
958         * genopinit.c (optabs): Initialize them.
959         * doc/md.texi: Document them.
961 2012-07-10  Dehao Chen  <dehao@google.com>
963         * tree.h (phi_arg_d): New field.
964         * tree-flow-inline.h (gimple_phi_arg_block): New function.
965         (gimple_phi_arg_block_from_edge): New function.
966         (gimple_phi_arg_set_block): New function.
967         (gimple_phi_arg_has_block): New function.
968         (redirect_edge_var_map_block): New function.
969         * tree-flow.h (_edge_var_map): New field.
970         * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
971         * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
972         redirect_edge_var_map_add.
973         * tree-outof-ssa.c (_elim_graph): New field.
974         (insert_partition_copy_on_edge): New parameter.
975         (insert_value_copy_on_edge): New parameter.
976         (insert_rtx_to_part_on_edge): New parameter.
977         (insert_part_to_rtx_on_edge): New parameter.
978         (elim_graph_add_edge): New parameter.
979         (elim_graph_remove_succ_edge): New parameter.
980         (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
981         (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
982         (new_elim_graph): Add block debug info.
983         (clear_elim_graph): Likewise.
984         (delete_elim_graph): Likewise.
985         (elim_graph_add_node): Likewise.
986         (elim_graph_add_edge): Likewise.
987         (elim_graph_remove_succ_edge): Likewise.
988         (eliminate_build): Likewise.
989         (elim_forward): Likewise.
990         (elim_unvisited_predecessor): Likewise.
991         (elim_backward): Likewise.
992         (elim_create): Likewise.
993         (eliminate_phi): Likewise.
994         (insert_backedge_copies): Likewise.
995         * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
996         add_phi_arg.
997         (rewrite_add_phi_arguments): Likewise.
998         * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
999         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
1000         * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
1001         * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
1002         * tree-ssa-loop-manip.c (create_iv): Likewise.
1003         (add_exit_phis_edge): Likewise.
1004         (split_loop_exit_edge): Likewise.
1005         (copy_phi_node_args): Likewise.
1006         (tree_transform_and_unroll_loop): Likewise.
1007         * value-prof.c (gimple_ic): Likewise.
1008         (gimple_stringop_fixed_value): Likewise.
1009         * tree-tailcall.c (add_successor_phi_arg): Likewise.
1010         (eliminate_tail_call): Likewise.
1011         (create_tailcall_accumulator): Likewise.
1012         (tree_optimize_tail_calls_1): Likewise.
1013         * tree-phinodes.c (add_phi_arg): Likewise.
1014         (make_phi_node): Likewise.
1015         (resize_phi_node): Likewise.
1016         (remove_phi_arg_num): Likewise.
1017         * omp-low.c (expand_parallel_call): Likewise.
1018         (expand_omp_for_static_chunk): Likewise.
1019         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
1020         Likewise.
1021         (slpeel_update_phi_nodes_for_guard1): Likewise.
1022         (slpeel_update_phi_nodes_for_guard2): Likewise.
1023         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1024         (set_prologue_iterations): Likewise.
1025         (slpeel_tree_peel_loop_to_edge): Likewise.
1026         (vect_loop_versioning): Likewise.
1027         * tree-parloops.c (create_phi_for_local_result): Likewise.
1028         (transform_to_exit_first_loop): Likewise.
1029         (create_parallel_loop): Likewise.
1030         * ipa-split.c (split_function): Likewise.
1031         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
1032         (vect_create_epilog_for_reduction): Likewise.
1033         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1034         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
1035         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
1036         (cond_if_else_store_replacement_1): Likewise.
1037         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
1038         (remove_forwarder_block_with_phi): Likewise.
1039         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
1040         * tree-predcom.c (initialize_root_vars): Likewise.
1041         (initialize_root_vars_lm): Likewise.
1042         * sese.c (sese_add_exit_phis_edge): Likewise.
1043         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
1044         * tree-ssa.c (flush_pending_stmts): Likewise.
1045         (redirect_edge_var_map_add): Likewise.
1046         (ssa_redirect_edge): Likewise.
1047         * gimple-streamer-in.c (input_phi): Likewise.
1048         * tree-vect-stmts.c (vectorizable_load): Likewise.
1049         * tree-inline.c (copy_phis_for_bb): Likewise.
1050         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1051         * tree-switch-conversion.c (fix_phi_nodes): Likewise.
1052         * tree-cfg.c (reinstall_phi_args): Likewise.
1053         (gimple_make_forwarder_block): Likewise.
1054         (add_phi_args_after_copy_edge): Likewise.
1055         (gimple_duplicate_sese_tail): Likewise.
1057 2012-07-09  Oleg Endo  <olegendo@gcc.gnu.org>
1059         PR target/53886
1060         * config/sh/sh.c (sequence_insn_p): New function.
1061         (find_barrier, sh_insn_length_adjustment): Use it.
1063 2012-07-09  Iain Sandoe  <iain@codesourcery.com>
1065         PR target/53283
1066         * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
1067         if defined.
1068         * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
1069         SUBTARGET_FOLD_BUILTIN.
1070         * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
1071         SUBTARGET_FOLD_BUILTIN.
1073 2012-07-09  Iain Sandoe  <iain@codesourcery.com>
1075         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
1076         runtime exceptions model setting from here ...
1077         * config/darwin.c (darwin_override_options): ... to here.
1079 2012-07-09  Steven Bosscher  <steven@gcc.gnu.org>
1081         PR tree-optimization/53887
1082         * tree-cfg.c (group_case_labels_stmt): Make non-static.
1083         * tree-flow.h (group_case_labels_stmt): Add prototype.
1084         * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
1085         to pre-process every switch.
1087 2012-07-09  Jason Merrill  <jason@redhat.com>
1089         PR c++/53882
1090         * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
1091         (type_hash_eq): Likewise.
1093 2012-07-09  Tom de Vries  <tom@codesourcery.com>
1094             Richard Guenther  <rguenther@suse.de>
1096         * tree-ssa-ccp.c (optimize_unreachable): New function.
1097         (execute_fold_all_builtins): Use optimize_unreachable to optimize
1098         BUILT_IN_UNREACHABLE.  Don't optimize after BUILT_IN_UNREACHABLE.
1100 2012-07-09  Richard Guenther  <rguenther@suse.de>
1102         PR bootstrap/53898
1103         * graphite-optimize-isl.c: Make sure CU is not empty.
1105 2012-07-09  Steven Bosscher  <steven@gcc.gnu.org>
1107         * gensupport.c (init_rtx_reader_args_cb): Start counting code
1108         generating patterns from 1 to free up 0 for CODE_FOR_nothing.
1109         * gencodes.c (main): Give CODE_FOR_nothing the value 0.  Add
1110         the LAST_INSN_CODE marker at the end.
1111         * genoutput.c (nothing): New static struct data.
1112         (idata): Initialize to &nothing.
1113         (idata_end): Initialize to &nothing.next.
1114         (init_insn_for_nothing): New function to create dummy 'nothing' insn.
1115         (main): Use it.
1116         * genpeep.c (insn_code_number): Remove global variable.
1117         (gen_peephole): Take it as an argument instead.
1118         (main): Take insn_code_number from read_md_rtx.
1119         * optabs.h: Revert r161809:
1120         (optab_handlers): Change type of insn_code back to insn_code.
1121         (optab_handler, widening_optab_handler, set_optab_handler,
1122         set_widening_optab_handler, convert_optab_handler,
1123         set_convert_optab_handler, direct_optab_handler,
1124         set_direct_optab_handler): Remove int casts.
1125         Revert to treating the insn_code field as "insn_code".
1127 2012-07-08  Oleg Endo  <olegendo@gcc.gnu.org>
1129         * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
1130         * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
1131         * config/sh/sh-protos.h: Declare it.
1133 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1135         * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
1136         (dump_fixup_graph): Use current_function_name.
1137         (adjust_cfg_counts): Likewise.
1138         * ira-conflicts.c: Do not include tree.h.
1139         (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
1141 2012-07-08  Oleg Endo  <olegendo@gcc.gnu.org>
1143         PR target/51244
1144         * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
1146 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1148         * basic-block.h: Re-group most prototypes per file.
1149         (struct edge_list): Remove num_blocks field.
1150         (dump_bb_info): Adjust prototypes.
1151         (dump_reg_info): Move prototype to regs.h.
1152         * function.h: Do not include tree.h.
1153         Include vec.h, vecir.h, input.h and machmode.h to compensate.
1154         (function_name): New prototype.
1155         * gimple.h: Include tree.h to compensate for basic-block.h change.
1156         * langhooks.h: Note that tree.h is only necessary for enum tree_code.
1157         * regs.h (dump_reg_info): Prototype here.
1158         * regset.h: Adjust file reference in comment.
1159         (debug_regset): Remove prototype.
1160         * rtl.h: Include flags.h for flag_var_tracking_assignments.
1161         (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
1162         instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
1163         (dump_reg_info, dump_flow_info): Remove prototypes.
1164         * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
1165         to here, the only user.  Make static.
1166         (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
1167         * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
1168         flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
1169         tree-pass.h, cfgloop.h, and tree-flow.h.
1170         Include basic-block.h, the first header I'd expect to be included.
1171         (reg_obstack): Move to df-core.c.
1172         (free_edge): Remove bogus ATTRIBUTE_UNUSED.
1173         (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
1174         (redirect_edge_succ_nodup): Move to cfghooks.c.
1175         (dump_regset, debug_regset): Move to df-core.c.
1176         (dump_bb_info): Move to cfgrtl.c.
1177         (dump_reg_info): Move to regstat.c.
1178         (dump_flow_info): Move to cfgrtl.c.
1179         (debug_flow_info): Likewise.
1180         (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
1181         * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
1182         insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
1183         (flow_active_insn_p, forwarder_block_p, can_fallthru,
1184         could_fall_through): Move to cfgrtl.c.
1185         (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
1186         (create_edge_list): Do not set edge_list's removed num_blocks.
1187         (print_edge_list): Look at n_basic_blocks instead of num_blocks.
1188         (flow_nodes_print): Remove.
1189         (flow_edge_list_print): Remove.
1190         (inverted_post_order_compute): Use FOR_ALL_BB.
1191         *cfgrtl.c (dump_flow_info): Moved from cfg.c.
1192         Do not call dump_reg_info.
1193         (debug_flow_info): Moved from cfg.c
1194         (dump_bb_info): Moved from cfg.c.  Take 'verbose' argument
1195         to avoid looking at TDF_* flags from tree-pass.h.
1196         (flow_active_insn_p, forwarder_block_p, can_fallthru,
1197         could_fall_through): Moved from cfganal.c.
1198         (print_rtl_with_bb): Adjust dump_bb_info calls.
1199         * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
1200         (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
1201         (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
1202         * cselib.c: Include tree.h with a FIXME.
1203         * df-core.c (reg_obstack): Moved from cfg.c.
1204         (dump_regset): Likewise.
1205         (debug_regset): Likewise.  Make a DEBUG_FUNCTION.
1206         * final.c (compute_alignments): Call dump_reg_info before
1207         dump_flow_info.
1208         * function.c (function_name): New function.
1209         (current_function_name): Use it.
1210         * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
1211         dump_flow_info.
1212         * ira-conflicts.c: Include tree.h with a note.
1213         * regstat.c (dump_reg_info): Moved here from cfg.c.
1214         * loop-init.c: Include regs.h instead of hard-reg-set.h.
1215         (rtl_loop_init): Call dump_reg_info before dump_flow_info.
1216         (rtl_loop_done): Likewise.
1217         * mcf.c: Include tree.h before langhooks.h.
1218         * predict.c (maybe_hot_count_p): Assert we have cfun.
1219         (probably_never_executed_bb_p): Likewise.
1220         * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
1221         instead of dump_flow_info.
1222         * sched-deps.c: Include tree.h with a FIXME.
1223         (call_may_noreturn_p): Add FIXME note why this function has to
1224         look at function decls instead of function decl flags.
1225         * sched-vis.c: Include tree.h with a FIXME.
1226         (print_rtl_slim): Adjust dump_bb_info uses.
1227         * statistics.c (statistics_fini_pass_2): Use current_function_name
1228         to avoid including tree.h.
1229         (statistics_counter_event): Use function_name for the same reason.
1230         (statistics_histogram_event): Likewise.
1231         * tracer.c (tracer): Remove bogus gcc_assert.  Use brief_dump_cfg
1232         instead of dump_flow_info.
1233         * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
1234         before dump_flow_info.
1235         * doc/cfg.texi: Update CFG documentation.
1236         * Makefile.in (RTL_H): Depend on FLAGS_H.
1237         (GIMPLE_H): Depend on TREE_H.
1238         (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
1239         but no longer on TREE_H.
1240         (C_COMMON_H): Depend on TREE_H.
1241         (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
1242         sched-deps.o, sched-vis.o): Fixup dependencies.
1244 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1246         * alias.h: Do not include coretypes.h in header files.
1247         * cppbuiltin.h: Likewise.
1248         * double-int.h: Likewise.
1249         * gimple-fold.h: Likewise.
1250         * flags.h: Likewise.
1251         * tree-ssa-alias.h: Likewise.
1252         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
1253         OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
1254         * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
1255         (TREE_H): Likewise.
1256         (ALIAS_H): Do not depend on coretypes.h.
1257         (FLAGS_H): Likewise.
1258         (realmpfr.o): Depend on coretypes.h.
1260 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1262         * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
1263         gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
1265 2012-07-07  Richard Earnshaw  <rearnsha@arm.com>
1267         * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
1268         (TARGET_FPA): Delete definition.
1269         (TARGET_MAVERICK): Likewise.
1270         (TARGET_FPA_EMU2): Likewise.
1271         (arm_fp_model): Remove FPA and Maverick models.
1272         (arm_arch_cirrus): Delete declaration.
1273         (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
1274         (FIXED_REGISTERS): Remove FPA and Maverick support.  Reorganize.
1275         (CALL_USED_REGISTERS): Likewise.
1276         (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
1277         (FIRST_VFP_REGNUM): Renumbered.
1278         (D7_VFP_REGNUM): Chain definition.
1279         (LAST_LO_VFP_REGNUM): Likewise.
1280         (FIRST_HI_VFP_REGNUM): Likewise.
1281         (LAST_HI_VFP_REGNUM): Likewise.
1282         (FIRST_IWMMXT_GR_REGNUM): Likewise.
1283         (LAST_IWMMXT_GR_REGNUM): Likewise.
1284         (FIRST_IWMMXT_REGNUM): Likewise.
1285         (LAST_IWMMXT_REGNUM): Likewise.
1286         (FRAME_POINTER_REGNUM): Renumbered.
1287         (ARG_POINTER_REGNUM): Renumbered.
1288         (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
1289         (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
1290         (HARD_REGNO_REGNUM): Remove FPA support.
1291         (REG_ALLOC_ORDER): Remove FPA and Maverick registers.  Reorganize.
1292         (reg_class): Likewise.
1293         (REG_CLASS_NAMES): Likewise.
1294         (REG_CLASS_CONTENTS): Likewise.
1295         (CANNOT_CHANGE_MODE_CLASS): Never true.  Update comment.
1296         (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
1297         (CLASS_MAX_NREGS): Remove FPA and Maverick support.
1298         * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
1299         Reorganize.  Use AAPCS preferred names.
1300         (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick.  Update
1301         comments.
1302         (OVERLAPPING_REGISTER_NAMES): Update register numbering.
1303         * arm.c (FL_CIRRUS): Delete definition.
1304         (arm_arch_cirrus): Delete variable.
1305         (arm_float_words_big_endian): Delete function.
1306         (cirrus_memory_offset): Delete function.
1307         (output_mov_long_double_fpa_from_arm): Delete function.
1308         (output_mov_long_double_arm_from_fpa): Delete function.
1309         (output_mov_double_fpa_from_arm): Delete function.
1310         (output_mov_double_arm_from_fpa): Delete function.
1311         (emit_sfm): Delete function.
1312         (maybe_get_arm_condition_code): Update comment.
1313         (arm_file_start): Always use softvfp for softfloat systems.
1314         (thumb_core_reg_alloc_order): Adjust for updated register allocation.
1315         (arm_option_override): Remove FPA and Maverick support.  Always
1316         default to vfp as the fallback FPU format.
1317         (use_return_insn): Remove FPA support.
1318         (arm_get_frame_offsets): Likewise.
1319         (arm_save_coproc_regs): Likewise.
1320         (arm_canonicalize_comparison): Remove Maverick support.
1321         (arm_select_cc_mode): Likewise.
1322         (arm_gen_compare_reg): Likewise.
1323         (arm_print_operand): Likewise.
1324         (arm_libcall_value_1): Remove FPA and Maverick support.
1325         (arm_function_value_regno_p): Likewise.
1326         (arm_apply_result_size): Likewise.
1327         (arm_legitimate_index_p): Likewise.
1328         (thumb2_legitimate_index_p): Likewise.
1329         (legitimize_reload_address): Likewise.
1330         (arm_register_move_cost): Likewise.
1331         (arm_hard_regno_mode_ok): Likewise.
1332         (arm_regno_class): Likewise.
1333         (arm_dbx_register_number): Likewise.
1334         (arm_emit_unwind_sequence): Likewise.
1335         (arm_conditional_register_usage): Likewise.
1336         * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
1337         (cirrus_memory_offset): Likewise.
1338         (output_move_long_double_fpa_from_arm): Likewise.
1339         (output_move_long_double_arm_from_fpa): Likewise.
1340         (output_move_double_fpa_from_arm): Likewise.
1341         (output_move_double_arm_from_fpa): Likewise.
1342         (arm_float_words_big_endian): Likewise.
1343         * arm.md (CC_REGNUM): Renumbered.
1344         (VFPCC_REGNUM): Moved here.  Renumbered.
1345         (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
1346         (attr fpu): Remove FPA and Maverick support.
1347         * vfp.md (VFPCC_REGNUM): Delete.  Moved to arm.md.
1348         * arm-cores.def (ep9312): Remove Maverick support.
1349         * arm-arches.def (ep9312): Delete architecture.
1350         * arm-tables.opt: Regenerated.
1352         * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
1354 2012-07-07  Steven Bosscher  <steven@gcc.gnu.org>
1356         PR tree-optimization/53881
1357         * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
1358         comparing labels to establish uniqueness of a switch case target,
1359         use the CFG instead.
1361 2012-07-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
1363         * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
1364         due to negative shift amount.
1366 2012-07-07  Hans-Peter Nilsson  <hp@axis.com>
1368         Fix configure test for "stack protector support in target C library".
1369         * configure.ac (test_prefix, test_exec_prefix): Move setting from
1370         inside sysroot handling to before and outside it.
1371         * configure: Regenerate.
1373 2012-07-06  Kai Tietz  <ktietz@redhat.com>
1375         PR bootstrap/52947
1376         * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
1377         as "/mingw/include".
1379 2012-07-06  Alexandre Oliva  <aoliva@redhat.com>
1381         PR debug/53820
1382         * var-tracking.c (vt_add_function_parameter): Convert
1383         internal_arg_pointer into arg_pointer-based address even
1384         without DRAP.
1386 2012-07-06  Alexandre Oilva  <aoliva@redhat.com>
1388         PR rtl-optimization/53827
1389         PR debug/53671
1390         PR debug/49888
1391         * alias.c (memrefs_conflict_p): Adjust offset and size by the
1392         same amount for alignment ANDs.
1394 2012-07-06  Tom de Vries  <tom@codesourcery.com>
1396         PR tree-optimization/51879
1397         * tree-ssa-sccvn.c (copy_reference_ops_from_call)
1398         (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
1399         (visit_use): Also call visit_reference_op_call for calls with a vdef.
1401 2012-07-06  Tom de Vries  <tom@codesourcery.com>
1403         PR tree-optimization/52009
1404         * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
1405         value numbers of gimple_vdef.
1406         * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
1407         prototype.
1408         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
1409         (vn_reference_insert): Add and handle vdef parameter.
1410         (visit_reference_op_load): Add argument to vn_reference_insert call.
1411         (visit_reference_op_store): Find value number of vdef of store.  Insert
1412         value number of vdef of store.
1414 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
1416         * config/i386/i386.md (simple lea to add peephole): Also transform
1417         RTXes where second PLUS operand matches output.
1419 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
1421         * config/i386/i386.c (construct_plt_address): Make static.
1422         * config/i386/i386-protos.h (construct_plt_address): Remove.
1424 2012-07-06  Nick Clifton  <nickc@redhat.com>
1426         * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
1427         default_encode_section_info.
1429 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
1431         PR target/53853
1432         * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
1433         emit PIC sequence for fnaddr symbol reference in advance.
1435 2012-07-06  Eric Botcazou  <ebotcazou@adacore.com>
1437         Revert
1438         2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
1440         * dwarf2out.c (function_possibly_abstracted_p): New static function.
1441         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
1442         cgraph_function_possibly_inlined_p.
1443         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
1444         (process_scope_var): Do not emit concrete instances of abstracted
1445         nested functions from here.
1446         (gen_decl_die): Emit the abstract instance if the function is possibly
1447         abstracted and not only possibly inlined.
1448         (dwarf2out_finish): Find the first non-abstract parent instance and
1449         attach concrete instances on the limbo list to it.
1451 2012-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1452             Julian Brown  <julian@codesourcery.com>
1454         PR target/48941
1455         PR target/51980
1456         * config/arm/neon-gen.ml (return_by_ptr): Delete.
1457         (print_function): Handle empty strings.
1458         (return): Delete use of return_by_ptr.
1459         (mask_shape_for_shuffle): New function.
1460         (mask_elems): Likewise.
1461         (shuffle_fn): Likewise.
1462         (params): Simplify and remove use of return_by_ptr.
1463         (get_shuffle): New function.
1464         (print_variant): Update.
1465         * config/arm/neon.ml (rev_elems): New function.
1466         (permute_range): Likewise.
1467         (zip_range): Likewise.
1468         (uzip_range): Likewise.
1469         (trn_range): Likewise.
1470         (zip_elems): Likewise.
1471         (uzip_elems): Likewise.
1472         (trn_elems): Likewise.
1473         (features): New enumeration Use_shuffle. Delete ReturnPtr.
1474         (pf_su_8_16): New.
1475         (suf_32): New.
1476         (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
1477         * config/arm/arm_neon.h: Regenerate.
1479 2012-07-05  Richard Guenther  <rguenther@suse.de>
1481         * tree-pretty-print.c (dump_generic_node): Properly test
1482         the result of exact_log2.
1484 2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1486         * config/s390/s390-protos.h (s390_expand_movmem)
1487         (s390_expand_cmpmem): Add return value.
1488         * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
1489         Return FALSE to use the library function in some cases.
1490         * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
1491         helper functions.
1493 2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1495         * config.gcc: Enable ifunc attribute by default on s390 and s390x.
1497 2012-07-05  Steven Bosscher  <steven@gcc.gnu.org>
1499         * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
1500         * stmt.c (dump_case_nodes): New.
1501         (expand_case): Split out code generation parts into new functions.
1502         (expand_switch_as_decision_tree_p): Split out from expand_case.
1503         (emit_case_decision_tree): Likewise.
1504         (emit_case_dispatch_table): Likewise.
1506 2012-07-05  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1508         * config/arm/iterators.md (SDF): New mode iterator.
1509         (V_if_elem): Add support for SF and DF modes.
1510         (V_reg): Likewise.
1511         (F_constraint): New mode iterator attribute.
1512         (F_fma_type): Likewise.
1513         config/arm/vfp.md (fma<SDF:mode>4): New pattern.
1514         (*fmsub<SDF:mode>4): Likewise.
1515         (*fmnsub<SDF:mode>4): Likewise.
1516         (*fmnadd<SDF:mode>4): Likewise.
1518 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
1520         * expmed.c (expand_mult): Initialize coeff and is_neg.
1522 2012-07-04  Oleg Endo  <olegendo@gcc.gnu.org>
1524         * config/sh/predicates.md (zero_extend_operand): New predicate.
1525         * config/sh/sh.md (zero_extendhisi2): Simplify by using new
1526         zero_extend_operand predicate.
1527         (zero_extendqisi2): Likewise.
1529 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
1531         PR middle-end/53321
1532         * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
1533         to not call cgraph_propagate_frequency if something was changed.
1535 2012-07-04  Richard Guenther  <rguenther@suse.de>
1537         PR middle-end/53433
1538         * gimple-fold.c (get_base_constructor): Do not return an
1539         error_mark_node DECL_INITIAL.
1541 2012-07-04  Richard Guenther  <rguenther@suse.de>
1543         PR tree-optimization/53844
1544         * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
1545         the loop virtual PHI.
1547 2012-07-04  Richard Guenther  <rguenther@suse.de>
1549         PR tree-optimization/53849
1550         * tree-cfg.c (move_stmt_op): Only call add_referenced_var
1551         for duplicated locals.  Use add_referenced_var_1 to avoid
1552         pushing/popping cfun.
1554 2012-07-04  Kai Tietz  <ktietz@redhat.com>
1556         * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
1557         * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
1558         prototype.
1559         * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
1560         as i386_pe_reloc_rw_mask.
1562 2012-07-04  Richard Guenther  <rguenther@suse.de>
1564         * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
1565         as in free_lang_data_in_type.
1567 2012-07-04  Tobias Grosser <tobias@grosser.es>
1568             Michael Matz  <matz@suse.de>
1570         * Makefile.in (OBJS): Add graphite-optimize-isl.o.
1571         (graphite-optimize-isl.o): Add dependencies.
1572         * common.opt (floop-nest-optimize): New flag.
1573         * doc/invoke.texi (floop-nest-optimize): Document.
1574         * graphite-dependences.c (compute_deps): Export.
1575         * graphite-poly.h (compute_deps): Declare.
1576         * graphite-optimize-isl.c: New file.
1577         * graphite-poly.c (apply_poly_transforms): Run the loop
1578         nest optimizer.
1579         * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
1580         if -floop-nest-optimize is enabled.
1582 2012-07-03  Oleg Endo  <olegendo@gcc.gnu.org>
1584         * config/sh/predicates.md (logical_and_operand): New predicate.
1585         * config/sh/constraints.md (Jmb, Jmw): New constraints.
1586         * config/sh/sh.md (andsi3): Move expander above insns.  Add handling
1587         of 0xFFFF constant.  Use logical_and_operand predicate and
1588         satisfies_constraint_Jmb, satisfies_constraint_Jmw.
1589         (*andsi3_compact): Make it an insn_and_split.  Use
1590         logical_and_operand predicate.  Add Jmb,Jmw alternatives.
1592 2012-07-03  Jason Merrill  <jason@redhat.com>
1594         PR c++/53826
1595         * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
1597 2012-07-03  Nick Clifton  <nickc@redhat.com>
1599         * config/mep/mep.c (mep_reorg_regmove): Use
1600         next_nonnote_non_debug_insn to advance to the next insn.  Do not
1601         expect delete_insn to return an rtx.
1603 2012-07-03  Richard Guenther  <rguenther@suse.de>
1605         * doc/install.texi (CLooG): Clarify how CLooG needs to be
1606         configured and that it needs to be built against ISL 0.10.
1608 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1610         * config/i386/i386.c (ix86_option_override_internal): Fix wrong
1611         code model string in the error message.
1613 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1615         PR target/53811
1616         * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
1617         sibcall_insn_operand.  Move it to a temporary register if not.
1619 2012-07-03  Andreas Schwab  <schwab@linux-m68k.org>
1621         PR target/28896
1622         * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
1623         if !TARGET_68020.
1625 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1627         * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
1629 2012-07-03  Roland McGrath  <mcgrathr@google.com>
1631         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
1632         assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
1633         * configure: Regenerated.
1634         * config/i386/i386.md (simple_return_internal_long): Use %;
1635         (ctz<mode>2): Likewise.
1636         (*pause): Likewise.
1638 2012-07-02  Oleg Endo  <olegendo@gcc.gnu.org>
1640         PR target/51244
1641         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
1642         predicates.
1643         * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
1644         * config/sh/sh.c (get_t_reg_rtx): New function.  Use it when invoking
1645         gen_branch_true and gen_branch_false.
1646         * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
1647         gen_branch_false.
1648         (branch_true, branch_false): Use t_reg_operand predicate.
1649         (*branch_true, *branch_false): Delete.
1650         (movt): Use t_reg_operand predicate.
1651         (*negnegt): Use negt_reg_operand predicate and fold little and big
1652         endian variants.
1653         (*movtt): Use t_reg_operand and fold little and big endian variants.
1654         (*movt_qi): Delete.
1656 2012-07-02  Steven Bosscher  <steven@gcc.gnu.org>
1658         * stmt.c (emit_case_bit_tests): Remove.
1659         (expand_case): Remove expand_switch_using_bit_tests_p code.
1660         * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
1661         (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
1662         (lshift_cheap_p): Likewise.
1663         (expand_switch_using_bit_tests_p): Likewise.
1664         (struct case_bit_test): Likewise.
1665         (case_bit_test_cmp): Likewise.
1666         (emit_case_bit_tests): New implementation for GIMPLE.
1667         (gen_inbound_check): Do not release post-dominator info here.
1668         (process_switch): Reorder code.  Expand as bit tests if it
1669         looks like a win.
1670         (do_switchconv): Release post-dominator info here if something changed.
1671         (struct gimple_opt_pass): Verify more.
1672         * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
1674 2012-07-02  Martin Jambor  <mjambor@suse.cz>
1676         PR middle-end/38474
1677         * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
1678         dynamic type change check.
1680 2012-07-02  Richard Guenther  <rguenther@suse.de>
1681             Michael Matz  <matz@suse.de>
1682             Tobias Grosser <tobias@grosser.es>
1683             Sebastian Pop <sebpop@gmail.com>
1685         * Makefile.in: Remove PPL flags in favor of ISL ones.
1686         (BACKENDLIBS): Remove PPL libs.
1687         (INCLUDES): Remove PPL includes in favor of ISL ones.
1688         (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
1689         graphite-cloog-compat.h dependencies.
1690         (graphite-dependences.o): Likewise.
1691         (graphite-poly.o): Likewise.
1692         * configure.ac: Declare ISL vars instead of PPL ones.
1693         * configure: Regenerated.
1694         * doc/install.texi: Replace PPL requirement documentation with ISL one.
1695         * graphite-blocking.c: Remove PPL code, add ISL equivalent.
1696         * graphite-clast-to-gimple.c: Likewise.
1697         * graphite-dependences.c: Likewise.
1698         * graphite-interchange.c: Likewise.
1699         * graphite-poly.h: Likewise.
1700         * graphite-poly.c: Likewise.
1701         * graphite-sese-to-poly.c: Likewise.
1702         * graphite.c: Likewise.
1703         * graphite-scop-detection.c: Re-arrange includes.
1704         * graphite-cloog-util.c: Remove.
1705         * graphite-cloog-util.h: Likewise.
1706         * graphite-ppl.h: Likewise.
1707         * graphite-ppl.c: Likewise.
1708         * graphite-dependences.h: Likewise.
1710 2012-07-02  Richard Guenther  <rguenther@suse.de>
1712         Merge from graphite branch
1713         2011-07-21  Tobias Grosser  <tobias@grosser.es>
1715         * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
1716         Remove graphite-cloog-util.h.
1717         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
1718         build_iv_mapping, translate_clast_user, translate_clast,
1719         free_scattering, initialize_cloog_names, build_cloog_prog,
1720         create_params_index): Do not use old compatibility functions.
1721         (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
1722         * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
1723         compatibility functions.
1724         (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
1725         cloog.
1726         * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
1727         * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
1728         cloog_finalize().
1729         * graphite-cloog-compat.h: Remove.
1731         2011-08-09  Tobias Grosser <tobias@grosser.es>
1733         * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
1734         of the string, no just a reference.
1735         (clast_name_index): Add a new field, that specifies if we need to free
1736         the name.
1737         (free_clast_name_index): If necessary, free the name string.
1738         (clast_name_index_elt_info): Calculate the hash based on the string
1739         content, not the memory location it is stored in.
1740         (clast_name_to_level): Specify that we do not need to free the name.
1741         (clast_name_to_index): Dito.
1742         (clast_name_to_lb_ub): Dito.
1743         (eq_clast_name_indexes): Compare the strings, not their base pointers.
1744         (free_scattering): Removed.
1745         (initialize_cloog_names): Renamed to add_names_to_union_domain().
1746         (add_names_to_union_domain): Changed to work on a union_domain,
1747         instead of a CloogNames structure.
1748         (build_cloog_prog): Removed.
1749         (build_cloog_union_domain): New.
1750         (generate_cloog_input): New.
1751         (scop_to_clast): Use CloogInput instead of CloogProgram.
1752         (print_generated_program): Adapt to new scop_to_clast() and do not
1753         print the CloogProgram any more.
1754         (create_params_index): Removed, functionality integrated in
1755         add_names_to_union_domain().
1756         (gloog): Adapt to new scop_to_clast().
1757         * graphite-clast-to-gimple.h (scop_to_clast): Remove.
1759         2012-01-11  Tobias Grosser <tobias@grosser.es>
1761         * graphite-clast-to-gimple.c (clast_name_to_index,
1762         clast_name_to_lb_ub, clast_name_to_gcc): Change types.
1763         (clast_to_gcc_expression): Add clast_expr_name as a new
1764         case. Do not assume a clast_expr_term points always to a
1765         clast_expr_name.
1766         (type_for_clast_term): Do not assume a clast_expr_term points always to
1767         a clast_expr_name.
1768         (type_for_clast_name): New.
1769         (type_for_clast_expr): Add clast_expr_name as a new case.
1771         2011-08-03  Sebastian Pop <sebpop@gmail.com>
1773         * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
1774         new_Cloog_Scattering_from_ppl_Polyhedron,
1775         new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
1777 2012-07-02  Jakub Jelinek  <jakub@redhat.com>
1779         PR tree-optimization/53645
1780         * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
1781         instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
1783 2012-07-01  Wei Guozhi  <carrot@google.com>
1785         PR target/53447
1786         * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
1787         * config/arm/arm.c (const_ok_for_dimode_op): New function.
1788         * config/arm/constraints.md (Dd): New constraint.
1789         * config/arm/predicates.md (arm_adddi_operand): New predicate.
1790         * config/arm/arm.md (adddi3): Extend it to handle constants.
1791         (arm_adddi3): Likewise.
1792         (addsi3_carryin_<optab>): Extend it to handle sbc case.
1793         (addsi3_carryin_alt2_<optab>): Likewise.
1794         * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
1796 2012-06-30  Nathan Sidwell  <nathan@acm.org>
1798         * coverage.c (bbg_file_stamp): New.
1799         (read_counts_file): Merge incoming stamp with bbg_file_stamp.
1800         (build_info): Write bbg_file_stamp.
1801         (coverage_init): Initialize bbg_file_stamp.  Read counts file
1802         before writing graph header.
1803         (coverage_finish): Don't unlink the data file if we can generate a
1804         unique file stamp.
1805         * tree.h (crc32_unsigned): Declare.
1806         * tree.c (crc32_unsigned_bits): New, broken out of ...
1807         (crc32_byte): ... here.  Use it.
1808         (crc32_unsigned): New.
1810 2012-06-29  Cary Coutant  <ccoutant@google.com>
1812         * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
1813         (gen_subprogram_die): Don't add pubname if want_pubnames is false.
1814         (gen_variable_die): Likewise.
1815         (gen_namespace_die): Likewise.
1817 2012-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1819         * tree-eh.c (lower_try_finally_switch): Really put the location of the
1820         last statement of the finally block onto the switch.
1822 2012-06-29  H.J. Lu  <hongjiu.lu@intel.com>
1824         PR target/53539
1825         * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
1826         TARGET_LP64.
1828 2012-06-29  Sterling Augustine  <saugustine@google.com>
1830         * dwarf2out.c (add_pubname): Add comment.
1831         (add_pubtype): Fix indentation.
1832         (gen_enumeration_type_die): Likewise.
1834 2012-06-29  Jakub Jelinek  <jakub@redhat.com>
1836         * tree-vect-generic.c (expand_vector_divmod): For even/odd
1837         widening multiply, put even always as first argument to VEC_PERM_EXPR.
1839 2012-06-29  Richard Henderson  <rth@redhat.com>
1841         * tree-vect-generic.c: Include target.h.
1842         (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
1843         * Makefile.in (tree-vect-generic.o): Update.
1845 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1847         * configure.ac: Remove special gtfiles case for C.
1848         * configure: Regenerate.
1849         * Makefile.in: Remove C front-end hooks and build hooks that
1850         will be picked up from c/Make-lang.in now.
1851         Add tree-mudflap to C_COMMON_OBJS.
1852         * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
1853         * config/vms/vms.c: Look for c-tree.h in c/.
1854         * doc/gty.texi: Remove reference to c-config-lang.in.
1855         * doc/sourcebuild.texi: Document the c/ subdirectory.
1857 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1859         * system.h (CASE_USE_BIT_TESTS): Poison.
1860         * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
1861         (expand_switch_using_bit_tests_p): ...here.
1862         * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
1863         * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
1865 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1867         * system.h (IFCVT_EXTRA_FIELDS): Poison.
1868         (IFCVT_INIT_EXTRA_FIELDS): Poison.
1869         * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
1870         * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
1871         IFCVT_INIT_EXTRA_FIELDS.
1872         * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
1873         * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
1874         IFCVT_MACHDEP_INIT.
1875         * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
1876         frv_ifcvt_machdep_init.
1877         * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
1878         Remove documentation.
1879         (IFCVT_MACHDEP_INIT): Document.
1880         * doc/tm.texi: Regenerate.
1882 2012-06-29  Nick Clifton  <nickc@redhat.com>
1884         * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
1886 2012-06-29  Jakub Jelinek  <jakub@redhat.com>
1888         * tree-vect-stmts.c (vectorizable_operation): Check both
1889         VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
1890         Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
1892 2012-06-28  Richard Henderson  <rth@redhat.com>
1894         * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
1896 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
1898         PR tree-optimization/51581
1899         * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
1900         (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
1901         also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
1902         VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
1903         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
1904         MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
1906         PR tree-optimization/53645
1907         * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
1908         instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
1909         if possible.
1911 2012-06-28  Georg-Johann Lay  <avr@gjlay.de>
1913         PR 53595
1914         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
1915         * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
1916         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
1917         avr_hard_regno_call_part_clobbered.
1919 2012-06-28  Richard Guenther  <rguenther@suse.de>
1921         PR middle-end/53790
1922         * expr.c (expand_expr_real_1): Verify if the type is complete
1923         before inspecting its size.
1925 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
1927         * doc/include/gpl.texi: Remove.
1928         * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
1930 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
1932         PR tree-optimization/53645
1933         * tree-vect-generic.c (add_rshift): New function.
1934         (expand_vector_divmod): New function.
1935         (expand_vector_operation): Use it for vector integer
1936         TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
1937         * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
1938         unused lguup variable with dummy_int.
1940 2012-06-28  OLivier Hainque  <hainque@adacore.com>
1942         * expr.c (convert_move): Latch mem integer inputs into a
1943         register before expanding a multi-instructions sequence.
1945 2012-06-28  Alexandre Oliva  <aoliva@redhat.com>
1946             Uros Bizjak  <ubizjak@gmail.com>
1947             Jakub Jelinek  <jakub@redhat.com>
1949         PR debug/53706
1950         PR debug/47624
1951         * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
1952         (vt_finalize): ... here instead, if needed.
1954 2012-06-28  Alexandre Oliva  <aoliva@redhat.com>
1956         PR debug/53740
1957         PR debug/52983
1958         PR debug/48866
1959         * dce.c (word_dce_process_block): Check whether inserting debug
1960         temps are needed even for needed insns.
1961         (dce_process_block): Likewise.
1962         * df-problems.c (dead_debug_add): Add comment about multi-regs.
1963         (dead_debug_insert_temp): Likewise.  Don't subreg when we're
1964         setting fewer regs than a multi-reg requires.
1966 2012-06-27  Richard Henderson  <rth@redhat.com>
1968         * config/alpha/alpha.c (alpha_dimode_u): New.
1969         (alpha_init_builtins): Initialize it, and use it.
1970         (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
1971         (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
1972         (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
1973         (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
1974         (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
1975         (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
1976         (alpha_fold_builtin_ctpop): Likewise.
1977         (alpha_fold_builtin_umulh): Remove.
1978         (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
1979         typo in MAX_ARGS check.
1981 2012-06-27  Richard Henderson  <rth@redhat.com>
1983         * tree.def (MULT_HIGHPART_EXPR): New.
1984         * cfgexpand.c (expand_debug_expr): Ignore it.
1985         * expr.c (expand_expr_real_2): Handle it.
1986         * fold-const.c (int_const_binop_1): Likewise.
1987         * optabs.c (optab_for_tree_code): Likewise.
1988         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
1989         * tree-inline.c (estimate_operator_cost): Likewise.
1990         * tree-pretty-print.c (dump_generic_node): Likewise.
1991         (op_code_prio, op_symbol_code): Likewise.
1992         * tree.c (commutative_tree_code): Likewise.  Also handle
1993         WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
1995 2012-06-27  Richard Henderson  <rth@redhat.com>
1997         PR target/53749
1998         * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
1999         in 2012-06-23 change.  Adjust two other DImode tests as well.
2001 2012-06-27  Nick Clifton  <nickc@redhat.com>
2003         * config/rx/rx.md (comparesi3_extend): Remove = modifier from
2004         input operand.
2006 2012-06-27  Richard Guenther  <rguenther@suse.de>
2008         PR middle-end/53676
2009         * tree-chrec.c (chrec_convert_1): Represent truncation to
2010         a type with undefined overflow as truncation to an unsigned
2011         type converted to the type with undefined overflow.
2012         * tree-scalar-evolution.c (interpret_rhs_expr): For computing
2013         the scalar evolution of a truncated widened operation avoid
2014         looking at the non-existing evolution of the widened operation
2015         result.
2017 2012-06-27  Richard Guenther  <rguenther@suse.de>
2019         PR tree-optimization/53774
2020         * tree-ssa-reassoc.c (get_rank): All default defs have
2021         precomputed rank.
2022         (init_reassoc): Precompute rank for all SSA default defs.
2024 2012-06-27  Nick Clifton  <nickc@redhat.com>
2026         * config/rx/rx.md (simple_return): Use the simple_return rtx.
2028 2012-06-26  Richard Henderson  <rth@redhat.com>
2030         * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
2031         and don't fall thru from standard_80387_constant_p to the memory
2032         fallback.
2034 2012-06-26  Richard Henderson  <rth@redhat.com>
2036         * config/i386/i386.c (bdesc_args): Update.  Change
2037         IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
2038         (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
2039         (ix86_builtin_mul_widen_even): Use it.
2040         (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
2041         (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
2042         * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
2043         for all SSE2.
2044         (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
2045         (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise.  Relax from V124_AVX2.
2046         (vec_widen_smult_even_v4si): New.
2048 2012-06-26  Richard Henderson  <rth@redhat.com>
2050         * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
2051         to expander; move guts to ...
2052         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here.  Add
2053         highparts before shifting up.
2054         * config/i386/i386-protos.h: Update.
2056 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2058         * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
2059         * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
2060         * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
2062 2012-06-26  Alexandre Oliva  <aoliva@redhat.com>
2064         * var-tracking.c (vt_add_function_parameter): Use a preserved
2065         VALUE for the MEM address of an incoming parameter.
2067 2012-06-26  Sterling Augustine <saugustine@google.com>
2069         * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
2070         (prune_unused_types): Likewise.
2072 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2074         * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2075         UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
2076         * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2077         UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
2078         VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
2079         VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
2080         * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
2081         UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
2082         * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
2083         documentation.
2084         * doc/tm.texi: Regenerate.
2085         * doc/cpp.texi: Make example for #error generic.
2086         * config/frv/frv.h: Fix example text to match tm.texi.
2088 2012-06-26  Bill Schmidt  <wschmidt@linux.ibm.com>
2090         * tree-pass.h (pass_strength_reduction): New decl.
2091         * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
2092         (finalize_costs): Likewise.
2093         * timevar.def (TV_TREE_SLSR): New timevar.
2094         * gimple-ssa-strength-reduction.c: New.
2095         * tree-flow.h (initialize_costs): New decl.
2096         (finalize_costs): Likewise.
2097         * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
2098         * passes.c (init_optimization_passes): Add pass_strength_reduction.
2100 2012-06-26  Matt Turner  <mattst88@gmail.com>
2102         * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
2103         (__builtin_arm_tinsrh): Likewise.
2104         (__builtin_arm_tinsrw): Likewise.
2105         (__builtin_arm_wsadb): Add missing v2si parameter.
2106         (__builtin_arm_wsadh): Likewise.
2107         (__builtin_arm_getwcx): Delete.
2108         (__builtin_arm_setwcx): Delete.
2109         (__builtin_arm_getwcgr0): Add.
2110         (__builtin_arm_getwcgr1): Add.
2111         (__builtin_arm_getwcgr2): Add.
2112         (__builtin_arm_getwcgr3): Add.
2113         (__builtin_arm_setwcgr0): Add.
2114         (__builtin_arm_setwcgr1): Add.
2115         (__builtin_arm_setwcgr2): Add.
2116         (__builtin_arm_setwcgr3): Add.
2118 2012-06-26  Richard Guenther  <rguenther@suse.de>
2120         Revert
2121         2012-06-21  Richard Guenther  <rguenther@suse.de>
2123         * tree-inline.c (estimate_num_insns): Estimate call cost for
2124         tailcalls properly.
2126 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2128         PR other/33190
2129         * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
2130         * doc/tm.texi: Regenerate.
2132 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2134         PR other/33190
2135         * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
2136         * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
2137         * doc/tm.texi.in: Remove documentation for unused target macros
2138         ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
2139         DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
2140         REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
2141         TARGET_NARROW_VOLATILE_BITFIELDS.
2142         Document that MD_HANDLE_UNWABI is a macro in libgcc.
2143         * doc/tm.texi: Regenerate.
2144         * system.h: Poison target macros
2145         ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
2146         DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
2147         REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
2148         TARGET_NARROW_VOLATILE_BITFIELDS
2150 2012-06-26  Jan Hubicka  <jh@suse.cz>
2152         PR lto/53572
2153         * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
2154         used symbols.
2156 2012-06-26  Dehao Chen  <dehao@google.com>
2158         * tree-inline.c: (expand_call_inline): Ensure that lexical block's
2159         source location is consistant with the call stmt.
2161 2012-06-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
2163         PR tree-optimization/53729
2164         PR tree-optimization/53636
2165         * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
2166         vect_verify_datarefs_alignment until after statements have
2167         been marked as relevant/irrelevant.
2168         * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
2169         Skip irrelevant statements.
2170         (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
2171         instead of STMT_VINFO_RELEVANT.
2172         (vect_get_data_access_cost): Do not check for supportable
2173         alignment before calling vect_get_load_cost/vect_get_store_cost.
2174         * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
2175         handling unsupported alignment.
2176         (vect_get_load_cost): Likewise.
2178 2012-06-25  Steven Bosscher  <steven@gcc.gnu.org>
2180         * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
2181         Do not define JMP_BUF_SIZE.
2183 2012-06-26  Jakub Jelinek  <jakub@redhat.com>
2185         PR tree-optimization/53748
2186         * tree-ssa-phiopt.c (conditional_replacement): Only optimize
2187         if arg0/arg1 have integral or pointer types.
2189 2012-06-25  Richard Henderson  <rth@redhat.com>
2191         * config/i386/sse.md (sse2_sse4_1): Remove code attr.
2192         (<s>dot_prodv4si, <s>dot_prodv8si): Remove
2193         (sdot_prodv4si): New; handle only XOP.
2195 2012-06-25  Richard Henderson  <rth@redhat.com>
2197         * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
2198         (V2UDI_FUNC_V4USI_V4USI): New.
2199         (V4UDI_FUNC_V8USI_V8USI): New.
2200         * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
2201         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
2202         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
2203         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
2204         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
2205         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
2206         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
2207         (bdesc_args): Add them.
2208         (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
2209         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
2210         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
2211         (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
2212         * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
2214 2012-06-25  Richard Henderson  <rth@redhat.com>
2216         * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
2218 2012-06-25  Richard Henderson  <rth@redhat.com>
2220         * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
2221         to V16QImode.
2222         (ix86_expand_vec_interleave): New.
2223         (ix86_expand_mul_widen_evenodd): New.
2224         (ix86_expand_mul_widen_hilo): New.
2225         (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
2226         * config/i386/i386.md (u_bool) New code attr.
2227         * config/i386/predicates.md
2228         (nonimmediate_or_const_vector_operand): Remove.
2229         * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
2230         both AVX and SSE4_1.
2231         (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
2232         (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
2233         (vec_widen<s>mult_hi_v8si): Remove.
2234         (vec_widen<s>mult_lo_v8si): Remove.
2235         (vec_widen_smult_hi_v4si): Remove.
2236         (vec_widen_smult_lo_v4si): Remove.
2237         (vec_widen_umult_hi_v4si): Remove.
2238         (vec_widen_umult_lo_v4si): Remove.
2239         (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
2240         (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
2241         * config/i386/i386-protos.h: Update.
2243 2012-06-25  Christophe Lyon  <christophe.lyon@st.com>
2245         * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
2246         (neon_vld1_dup): Restrict to VQ operands.
2247         (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
2249 2012-06-25  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2250             James Greenhalgh  <james.greenhalgh@arm.com>
2252         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
2253         (TARGET_FMA): New macro.
2254         (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
2255         (TARGET_ARM_ARCH): Likewise.
2256         (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
2257         (TARGET_V6M, TARGET_V7M): Likewise.
2258         (TARGET_ARM_ARCH_PROFILE): Likewise.
2259         (TARGET_ARM_FEATURE_LDREX): Likewise.
2260         (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
2261         (ARM_MIN_ENUM_SIZE): Likewise.
2262         * config/arm/arm.c (arm_file_start): Refactor appropriately.
2263         (base_architecture): New enumeration.
2264         (arm_base_arch): New global variable.
2265         (processors): Add field base_arch.
2266         (ARM_ARCH, ARM_CORE): Adjust accordingly.
2267         (arm_option_override): Add initialization of arm_base_arch.
2268         * doc/cpp.texi (system-specific predefined macros.): Change.
2270 2012-06-25  Jakub Jelinek  <jakub@redhat.com>
2272         PR target/53759
2273         * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
2274         of x x x in the vmovlps load alternative.
2276 2012-06-25  Richard Sandiford  <rdsandiford@googlemail.com>
2278         PR debug/53740
2279         * df.h (dead_debug_add): Remove third argument.
2280         * df-problems.c (dead_debug_add): Likewise.  Use the REGNO of the
2281         REG that we want to replace instead.
2282         (dead_debug_insert_temp): Use the REGNO of the reg that we want
2283         to replace instead of DF_REF_REGNO.  Require there to always be
2284         at least one such use.  Check for cases where the same location
2285         has more than df_ref associated with it.
2286         (df_note_bb_compute): Remove third dead_debug_add argument.
2287         * dce.c (word_dce_process_block): Likewise.
2289 2012-06-25  Steven Bosscher  <steven@gcc.gnu.org>
2291         * config/v850/v850.c: Remove redundant extern declarations for
2292         last_assemble_variable_decl and size_directive_output.
2294         * doc/tm.texi.in: Document JMP_BUF_SIZE.
2295         * doc/tm.texi: Regenerate.
2296         * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
2297         * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
2298         * config/stormy16/stormy16.h: Likewise.
2300         * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
2302         * doc/sourcebuild.texi: Add missing subdirectories.
2304 2012-06-25  Tristan Gingold  <gingold@adacore.com>
2306         * config/i386/i386.h: Fix typo.
2308 2012-06-25  Tristan Gingold  <gingold@adacore.com>
2310         * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
2311         (seh_cfa_adjust_cfa): ... that function.
2312         (seh_emit_stackalloc): Do not emit out of range values.
2313         * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
2314         UNSPEC_DEF_CFA constants.
2315         * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
2316         * config/i386/i386.c (ix86_frame_pointer_required): Required
2317         for very large frames on SEH target.
2318         (ix86_compute_frame_layout): Save area is before frame pointer
2319         on SEH target.  Handle very large frames.
2320         (ix86_expand_prologue): Likewise.
2322 2012-06-24  Steven Bosscher  <steven@gcc.gnu.org>
2324         * output.h: (current_function_is_leaf,
2325         current_function_sp_is_unchanging,
2326         current_function_uses_only_leaf_regs): Remove.
2327         * function.c (current_function_is_leaf,
2328         current_function_sp_is_unchanging,
2329         current_function_uses_only_leaf_regs): Remove.
2330         (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
2331         instead of current_function_uses_only_leaf_regs.
2332         * function.h (struct rtl_data): New fields sp_is_unchanging,
2333         is_leaf, uses_only_leaf_regs.
2334         * resource.c (init_resource_info): Replace current_function_is_leaf,
2335         current_function_sp_is_unchanging, and
2336         current_function_uses_only_leaf_regs with new crtl fields.
2337         * sdbout.c (sdbout_symbol): Likewise.
2338         * df-core.c (rest_of_handle_df_initialize): Likewise.
2339         * ira.c (ira): Likewise.
2340         * final.c (final_start_function): Likewise.
2341         * reorg.c (fill_simple_delay_slots): Likewise.
2342         * regrename.c (check_new_reg_p): Likewise.
2343         * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
2344         (notice_stack_pointer_modification): Likewise.
2345         * dbxout.c (dbxout_symbol): Likewise.
2346         (dbxout_parms): Likewise.
2347         * sel-sched.c (init_regs_for_mode): Likewise.
2348         * dwarf2out.c (dbx_reg_number): Likewise.
2349         (multiple_reg_loc_descriptor): Likewise.
2350         * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
2351         (gen_pop): Likewise.
2352         (ix86_select_alt_pic_regnum): Likewise.
2353         (ix86_compute_frame_layout): Likewise.
2354         (ix86_finalize_stack_realign_flags): Likewise.
2355         (ix86_expand_epilogue): Likewise.
2356         * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
2357         * config/h8300/h8300.c (byte_reg): Likewise.
2358         * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
2359         (c6x_save_reg): Likewise.
2360         (c6x_compute_frame_layout): Likewise.
2361         * config/pa/pa.c (pa_compute_frame_size): Likewise.
2362         (pa_output_function_prologue): Likewise.
2363         * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
2364         * config/sparc/sparc.md (attr "leaf_function"): Likewise.
2365         * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
2366         (sparc_expand_prologue): Likewise.
2367         (sparc_flat_expand_prologue): Likewise.
2368         (sparc_asm_function_prologue): Likewise.
2369         (sparc_output_mi_thunk): Likewise.
2370         (sparc_frame_pointer_required): Likewise.
2371         * config/epiphany/epiphany.c (epiphany_compute_function_type):
2372         Likewise.
2373         (epiphany_compute_frame_size): Likewise.
2374         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
2375         * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
2376         (cris_frame_pointer_required): Likewise.
2377         * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
2378         (tilepro_current_function_is_leaf): Likewise.
2379         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
2380         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
2381         * config/ia64/ia64.c (find_gr_spill): Likewise.
2382         (ia64_compute_frame_size): Likewise.
2383         (ia64_can_eliminate): Likewise.
2384         (ia64_initial_elimination_offset): Likewise.
2385         * config/m68k/m68k.c (m68k_save_reg): Likewise.
2386         (m68k_expand_epilogue): Likewise.
2387         * config/rx/rx.c (rx_get_stack_layout): Likewise.
2388         * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
2389         * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
2390         Likewise.
2391         (picochip_output_frame_debug): Likewise.
2392         * config/sh/sh.c (sh_media_register_for_return): Likewise.
2393         (sh_allocate_initial_value): Likewise.
2394         (sh_output_mi_thunk): Likewise.
2395         * config/microblaze/microblaze.c (microblaze_must_save_register):
2396         Likewise.
2397         (compute_frame_size): Likewise.
2398         (microblaze_initial_elimination_offset): Likewise.
2399         (microblaze_expand_prologue): Likewise.
2400         (microblaze_expand_epilogue): Likewise.
2401         * config/frv/frv.c (frv_expand_epilogue): Likewise.
2402         (frv_frame_pointer_required): Likewise.
2403         * config/spu/spu.c (get_pic_reg): Likewise.
2404         (direct_return): Likewise.
2405         (spu_expand_prologue): Likewise.
2406         (spu_expand_epilogue): Likewise.
2407         (spu_initial_elimination_offset): Likewise.
2408         * config/mips/mips.c (mips_global_pointer): Likewise.
2409         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2410         (mips_compute_frame_info): Likewise.
2411         * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
2412         (mep_reload_pointer): Likewise.
2413         * config/rl78/rl78.c (need_to_save): Likewise.
2414         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
2415         * config/score/score.c (score_compute_frame_size): Likewise.
2416         (score_function_prologue): Likewise.
2417         * config/bfin/bfin.c (must_save_p): Likewise.
2418         (expand_prologue_reg_save): Likewise.
2419         (expand_epilogue_reg_restore): Likewise.
2420         (bfin_frame_pointer_required): Likewise.
2421         (n_regs_saved_by_prologue): Likewise.
2422         (add_to_reg): Likewise.
2423         (expand_interrupt_handler_prologue): Likewise.
2424         (expand_interrupt_handler_epilogue): Likewise.
2425         (bfin_expand_prologue): Likewise.
2426         * config/avr/avr.c (avr_regs_to_save): Likewise.
2427         (avr_prologue_setup_frame): Likewise.
2428         (expand_epilogue): Likewise.
2429         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
2430         (s390_register_info): Likewise.
2431         (s390_frame_info): Likewise.
2432         (s390_init_frame_layout): Likewise.
2433         (s390_emit_prologue): Likewise.
2436 2012-06-24  Steven Bosscher  <steven@gcc.gnu.org>
2438         * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
2439         * vmsdbgout: Do not undefine it if defined.
2440         Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
2441         * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
2442         * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
2444 2012-06-24  Richard Sandiford  <rdsandiford@googlemail.com>
2446         * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
2448 2012-06-23  Richard Henderson  <rth@redhat.com>
2450         PR target/53749
2451         * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
2452         V*QImode shifts and multiply.
2453         (ix86_expand_vecop_qihi): Support shifts.
2454         * config/i386/i386.md (any_shift): New code iterator.
2455         * config/i386/sse.md (ashlv16qi3): Merge ...
2456         (<any_shiftrt>v16qi3): ... into ...
2457         (<any_shift><VI1_AVX2>3): ... here.  Use ix86_expand_vecop_qihi
2458         to support SSE and AVX.
2460         * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
2461         parameter into src and dest.
2462         * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
2463         (vec_unpacks_hi_<V124_AVX2>): Likewise.
2464         (vec_unpacku_lo_<V124_AVX2>): Likewise.
2465         (vec_unpacks_lo_<V124_AVX2>): Likewise.
2466         * config/i386/i386-protos.h: Update.
2468         * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
2469         pure expander; move expansion code ...
2470         * config/i386/i386.c (ix86_expand_vecop_qihi): ... here.  New function.
2471         * config/i386/i386-protos.h: Update.
2473 2012-06-22  Edmar Wienskoski  <edmar@freescale.com>
2475         * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
2476         (popcntb<mode>2): Add attribute type popcnt.
2477         (popcntd<mode>2): Ditto.
2478         * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
2479         * config/rs6000/power5.md (define_insn_reservation): Ditto.
2480         * config/rs6000/power7.md (define_insn_reservation): Ditto.
2481         * config/rs6000/476.md (define_insn_reservation): Ditto.
2482         * config/rs6000/power6.md (define_insn_reservation): New
2483         reservation for popcnt instructions.
2485 2012-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2487         * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
2489 2012-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2491         PR target/53383
2492         * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
2494         * config/i386/i386.c (ix86_option_override_internal): Allow
2495         -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
2497         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
2498         if SSE is disabled.
2500 2012-06-22  Bill Schmidt  <wschmidt@linux.ibm.com>
2502         * double-int.c (double_int_multiple_of): New function.
2503         * double-int.h (double_int_multiple_of): New decl.
2504         * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
2505         (mbc_entry_hash): New forward decl.
2506         (mbc_entry_eq): Likewise.
2507         (zero_cost): Change to no_cost.
2508         (mult_costs): New static var.
2509         (cost_tables_exist): Likewise.
2510         (initialize_costs): New function.
2511         (finalize_costs): Likewise.
2512         (tree_ssa_iv_optimize_init): Call initialize_costs.
2513         (add_cost): Change to add_regs_cost; distinguish costs by speed.
2514         (multiply_regs_cost): New function.
2515         (add_const_cost): Likewise.
2516         (extend_or_trunc_reg_cost): Likewise.
2517         (negate_reg_cost): Likewise.
2518         (multiply_by_cost): Change to multiply_by_const_cost; distinguish
2519         costs by speed.
2520         (get_address_cost): Change add_cost to add_regs_cost; change
2521         multiply_by_cost to multiply_by_const_cost.
2522         (force_expr_to_var_cost): Change zero_cost to no_cost; change
2523         add_cost to add_regs_cost; change multiply_by_cost to
2524         multiply_by_const_cost.
2525         (split_cost): Change zero_cost to no_cost.
2526         (ptr_difference_cost): Likewise.
2527         (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
2528         to multiply_by_const_cost.
2529         (get_computation_cost_at): Change add_cost to add_regs_cost; change
2530         multiply_by_cost to multiply_by_const_cost.
2531         (determine_use_iv_cost_generic): Change zero_cost to no_cost.
2532         (determine_iv_cost): Change add_cost to add_regs_cost.
2533         (iv_ca_new): Change zero_cost to no_cost.
2534         (tree_ssa_iv_optimize_finalize): Call finalize_costs.
2535         * tree-ssa-address.c (most_expensive_mult_to_index): Change
2536         multiply_by_cost to multiply_by_const_cost.
2537         * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
2538         (add_regs_cost): New decl.
2539         (multiply_regs_cost): Likewise.
2540         (add_const_cost): Likewise.
2541         (extend_or_trunc_reg_cost): Likewise.
2542         (negate_reg_cost): Likewise.
2544 2012-06-22  Richard Guenther  <rguenther@suse.de>
2546         Merge from graphite branch
2547         2011-08-10  Sebastian Pop <sebpop@gmail.com>
2549         * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
2551         2012-01-13  Tobias Grosser  <tobias@grosser.es>
2553         * tree-flow.h (parallelized_function_p): Declare.
2554         * tree-parloops.c (parallelized_function_p): Export.
2555         * graphite.c (graphite_transform_loops): Do not run graphite on
2556         already parallel functions.
2558 2012-06-22  Alan Modra  <amodra@gmail.com>
2560         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
2561         return mem.  Convert to indirect addressing if not indirect or
2562         indexed.  Adjust all callers.
2564 2012-06-22  Richard Guenther  <rguenther@suse.de>
2566         * gcov-iov.c: Include bconfig.h and system.h.
2568 2012-06-22  Andreas Schwab  <schwab@linux-m68k.org>
2570         * doc/include/texinfo.tex: Update to version 2012-06-05.14.
2572 2012-06-22  Richard Guenther  <rguenther@suse.de>
2574         PR gcov-profile/53744
2575         * gcov-iov.c (main): Treat "" and "prerelease" the same.
2577 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2579         PR debug/53704
2580         * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
2581         for GNU Fortran if in strict DWARF2 mode.
2583 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2585         * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
2586         DECL_IGNORED_P non-reg vars even if they are used.
2588 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2590         PR debug/53671
2591         PR debug/49888
2592         * var-tracking.c (vt_get_canonicalize_base): New.
2593         (vt_canonicalize_addr, vt_stack_offset_p): New.
2594         (vt_canon_true_dep): New.
2595         (drop_overlapping_mem_locs): Use vt_canon_true_dep.
2596         (clobber_overlaping_mems): Use vt_canonicalize_addr.
2598 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2600         PR debug/53671
2601         PR debug/49888
2602         * var-tracking.c (vt_initialize): Record initial offset between
2603         arg pointer and stack pointer.
2605 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2607         PR debug/53671
2608         PR debug/49888
2609         * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
2610         CFA base.
2612 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2614         PR debug/53671
2615         PR debug/49888
2616         * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
2618 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2620         * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
2622 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2624         PR debug/53682
2625         * cselib.c (promote_debug_loc): Don't crash on NULL argument.
2627 2012-06-21  Meador Inge  <meadori@codesourcery.com>
2629         PR c/53702
2630         * c-decl.c (c_push_function_context): Restore the behavior to reuse
2631         the language function allocated for -Wunused-local-typedefs.
2632         (c_pop_function_context): If necessary, clear the language function
2633         created in c_push_function_context.  Always clear out the
2634         x_cur_stmt_list field of the restored language function.
2636 2012-06-21  Sterling Augustine  <saugustine@google.com>
2637             Cary Coutant  <ccoutant@google.com>
2639         * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
2640         add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
2641         (comdat_type_struct): New field 'skeleton_die'.
2642         (breakout_comdat_types): Update it.
2643         (add_pubname): Rework logic.  Call is_class_die, is_cu_die and
2644         is_namespace_die.  Fix minor style violation.  Call want_pubnames.
2645         (add_pubname_string): Call want_pubnames.
2646         (add_pubtype): Rework logic for calculating type name.  Call
2647         is_namespace_die.  Call want_pubnames.
2648         (output_pubnames): Move conditional logic deciding when to produce the
2649         section from dwarf2out_finish.  Use new skeleton_die field.
2650         (base_type_die): Call add_pubtype.
2651         (gen_enumeration_type_die): Unconditionally call add_pubtype.
2652         (gen_subprogram_die): Adjust calls to add_pubname.
2653         (gen_namespace_die): Call add_pubname_string.
2654         (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
2655         produce pubnames and pubtypes sections to output_pubnames.
2656         * common.opt (-gpubnames): New option.
2657         * doc/invoke.texi: Document it.
2659 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
2661         * config/m32c/m32c-pragma.c: Remove unnecessary includes.
2663 2012-06-21  Michael Matz  <matz@suse.de>
2665         PR middle-end/53688
2666         * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
2667         with correct size.
2669 2012-06-21  Richard Guenther  <rguenther@suse.de>
2671         * tree-inline.c (estimate_num_insns): Estimate call cost for
2672         tailcalls properly.
2674 2012-06-20  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
2676         * tree.h (DECL_SOURCE_COLUMN): New accessor.
2678 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2680         * config/i386/i386.md (SINCOS): New int iterator.
2681         (sincos): New int attribute.
2682         (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
2683         SINCOS int iterator.
2684         (*<sincos>_extend<mode>xf2_i387): Macroize insn from
2685         *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
2687 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2689         * config/i386/i386.md (RDFSGSBASE): New int iterator.
2690         (WRFSGSBASE): Ditto.
2691         (fsgs): New int attribute.
2692         (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
2693         RDFSGSBASE int iterator.
2694         (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
2695         WRFSGSBASE int iterator.
2697 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2699         * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
2700         from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
2701         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
2702         from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
2703         int iterator.
2705 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
2707         * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
2709 2012-06-20  Richard Guenther  <rguenther@suse.de>
2711         PR tree-optimization/30318
2712         * tree-vrp.c (range_int_cst_p): Do not reject overflowed
2713         constants here.
2714         (range_int_cst_singleton_p): But explicitely here.
2715         (zero_nonzero_bits_from_vr): And here.
2716         (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
2717         to cover all cases we can perform arbitrary precision
2718         arithmetic with double-ints.
2719         (intersect_ranges): Handle adjacent anti-ranges.
2721 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2723         * config/i386/i386.md (rounding_insn): New int attribute.
2724         (<rounding_insn>xf2): Macroize insn from
2725         {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
2726         (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
2728 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2730         * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
2731         (ieee_maxmin): New int attribute.
2732         (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
2733         *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
2735 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
2737         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
2738         * config/arm/arm.c: Do not include c-pragma.h.
2739         (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
2740         (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
2741         to arm_emit_eabi_attribute.
2742         * arm-c.c: Do not include output.h.
2743         (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
2744         call to arm_emit_eabi_attribute.
2745         * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
2747 2012-06-20  Richard Guenther  <rguenther@suse.de>
2749         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
2750         Allow adjusting alignment of user-aligned decls again.
2752 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
2754         * config/rl78/rl78-c.c: Remove unnecessary includes.
2756 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
2758         * config/cris/cris.c: Include cgraph.h.
2759         (cris_option_override): Do not set non-existing flag_no_gcc_ident.
2761 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
2763         * emit-rtl.c (need_atomic_barrier_p): New function.
2764         * emit-rtl.h (need_atomic_barrier_p): Declare it.
2765         * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
2766         * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
2767         * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
2768         * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
2769         (mips_process_sync_loop): Use generic version instead.
2771 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
2773         * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
2774         it is used.
2776 2012-06-19  Tom de Vries  <vries@codesourcery.com>
2777             Maxim Kuvyrkov  <maxim@codesourcery.com>
2779         * config/mips/constraints.md (ZR): New constraint.
2780         * config/mips/predicates.md (mem_noofs_operand): New predicate.
2781         * config/mips/mips.c (mips_print_operand): Handle new print modifier.
2782         * config/mips/mips.h (TARGET_XLP): Define.
2783         (TARGET_SYNC_AFTER_SC): Update.
2784         (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
2785         * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
2786         XLP-specific swap and ldadd patterns.
2787         (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
2789 2012-06-19  Tom de Vries  <vries@codesourcery.com>
2790             Maxim Kuvyrkov  <maxim@codesourcery.com>
2792         * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
2793         (mips_emit_post_atomic_barrier_p): New static functions.
2794         (mips_process_sync_loop): Use them.  Emit sync memory barriers in
2795         accordance with memory model semantics.  Add return of CMP result for
2796         compare_and_swap.
2797         * config/mips/mips.md: Update comment.
2798         (sync_cmp): New attribute.
2799         (sync_memmodel): New attribute replacing sync_release_barrier.
2800         * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
2801         (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
2802         (sync_lock_test_and_set, test_and_set_12): Update.
2803         (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
2804         (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
2806 2012-06-19  Joseph Myers  <joseph@codesourcery.com>
2808         * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
2809         mov_si<mode>_e500_subreg0.
2810         (*mov_si<mode>_e500_subreg0_elf_low)
2811         (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
2813 2012-06-19  Richard Henderson  <rth@redhat.com>
2815         * config/alpha/alpha.c: Include params.h.
2816         (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
2817         PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
2819 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2821         * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
2822         TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
2823         (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
2824         Remove.
2825         * doc/tm.texi: Regenerate.
2826         * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
2827         .objc_class_name_*.
2828         * config/darwin-c.c: Include target.h.
2829         (darwin_objc_declare_unresolved_class_reference): New function.
2830         (darwin_objc_declare_class_definition): New function.
2831         (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
2832         (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
2834 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2836         * target.def (output_ident): New hook.
2837         * targhooks.h (default_asm_output_ident_directive): Add prototype.
2838         * varasm.c (assemble_asm): Only prefix a tab if the string does not
2839         already start with one.
2840         (default_asm_output_ident_directive): New function to emit
2841         .ident as a top-level asm node while parsing, or directly to
2842         asm_out_file after parsing.
2843         * toplev.c (compile_file): Print a GCC .ident with
2844         targetm.asm_out.output_ident.
2845         * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
2846         (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
2847         * doc/tm.texi: Update.
2849         * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
2850         (TARGET_ASM_OUTPUT_IDENT): Define.
2851         * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
2852         * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
2853         * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
2854         * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
2855         (TARGET_ASM_OUTPUT_IDENT): Define.
2856         * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
2857         (TARGET_ASM_OUTPUT_IDENT): Define.
2859         * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
2860         * config/cris/cris.c (cris_asm_output_ident): New function.
2861         * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
2863         * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
2864         Add prototype.
2865         * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
2866         (microblaze_asm_output_ident): Rewrite to work similar to
2867         default_asm_output_ident_directive for front-end .idents.
2868         * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
2869         (TARGET_ASM_OUTPUT_IDENT): Define.
2871         * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
2872         * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
2874         * config/rx/rx.c: Include cgraph.h for add_asm_node.
2875         (rx_asm_output_ident): New function, similar to
2876         default_asm_output_ident_directive, but handle AS100 syntax also, so
2877         that #ident also works for rx in AS100 syntax.
2878         (TARGET_ASM_OUTPUT_IDENT): Define.
2879         * config/rx/rx.h (IDENT_ASM_OP): Remove.
2881         * Makefile.in: Fix dependencies for c-family/c-lex.o.
2883 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
2885         * config/i386/i386.md (FIST_ROUNDING): New int iterator.
2886         (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
2887         (ROUNDING): Ditto.
2888         (*fist<mode>2_<rounding>_1): Macroize insn from
2889         *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
2890         (fistdi2_<rounding>): Macroize insn from
2891         fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
2892         (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
2893         corresponding splitters from fistdi2_{floor,ceil} and corresponding
2894         splitters using FIST_ROUNDING int iterator.
2895         (fist<mode>2_<rounding>): Macroize insn from
2896         fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
2897         (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
2898         corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
2899         splitters using FIST_ROUNDING int iterator.
2900         (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
2901         using FIST_ROUNDING int iterator.
2903 2012-06-19  Richard Henderson  <rth@redhat.com>
2905         * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
2906         * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
2907         * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
2908         * config/i386/sse.md (sse2_mulv4si3): Delete.
2909         (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
2910         nonimmediate_or_const_vector_operand.
2912 2012-06-19  Richard Henderson  <rth@redhat.com>
2914         * expmed.c (struct init_expmed_rtl): Split ...
2915         (init_expmed_one_mode): ... out of ...
2916         (init_expmed): ... here.  Initialize integer vector modes also.
2917         (synth_mult): Handle integer vector modes.
2918         (choose_mult_variant): Likewise.
2919         (expand_mult_const): Likewise.
2920         (expand_mult): Likewise.
2921         * machmode.h (GET_MODE_UNIT_BITSIZE): New.
2923 2012-06-19  Richard Henderson  <rth@redhat.com>
2925         * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
2926         integral vector modes.
2928 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
2930         * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
2931         (rounding): New int attribute.
2932         (ROUNDING): Ditto.
2933         (frndintxf2_<rounding>): Macroize insn from
2934         frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
2935         (frndintxf2_<rounding>_i387): Macroize insn from
2936         frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
2938 2012-06-19  Richard Guenther  <rguenther@suse.de>
2940         * tree-vrp.c (union_ranges): New function.
2941         (vrp_meet_1): Use union_ranges.
2942         (vrp_meet): Dump what we union and call vrp_meet_1.
2944 2012-06-19  Richard Earnshaw  <rearnsha@arm.com>
2946         * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
2947         (attr type): Remove fmul, ffmul, farith, ffarith, float_em
2948         f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
2949         (attr write_conflict, attr core_cycles): Update.
2950         * arm-generic.md (r_mem_f_wbuf): Delete reservation.
2952 2012-06-19  Richard Guenther  <rguenther@suse.de>
2954         * tree-vrp.c (intersect_ranges): Handle more cases.
2955         (vrp_intersect_ranges): Dump what we intersect and call ...
2956         (vrp_intersect_ranges_1): ... this.
2958 2012-06-19  Richard Guenther  <rguenther@suse.de>
2960         PR tree-optimization/53708
2961         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
2962         user-supplied alignment and alignment of decls with the used
2963         attribute.
2965 2012-06-18  Lawrence Crowl  <crowl@google.com>
2967         * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
2968         (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
2969         (TV_PHASE_STREAM_IN): New.
2970         (TV_PHASE_STREAM_OUT): New.
2971         * timevar.c (validate_phases): New.
2972         (timevar_print): Call validate_phases.
2973         * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
2974         to TV_PHASE_OPT_GEN.
2975         * langhooks.c (write_global_declarations): Rename use of
2976         TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN.  Use TV_PHASE_DBGINFO instead of
2977         TV_PHASE_CHECK_DBGINFO.
2978         * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
2979         TV_PHASE_LATE_ASM.  Move start of TV_PHASE_LATE_ASM to after call to
2980         lang_hooks.decls.final_write_globals.
2982 2012-06-18  David Edelshn  <dje.gcc@gmail.com>
2984         * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
2986 2012-06-18  Uros Bizjak  <ubizjak@gmail.com>
2988         PR target/53712
2989         * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
2990         (*sse4_2_pcmpistr_unaligned): New.
2992 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
2993             Sameera Deshpande  <sameera.deshpande@arm.com>
2994             Greta Yorsh  <greta.yorsh@arm.com>
2996         * config/arm/arm-protos.h (arm_output_epilogue): Remove.
2997         * config/arm/arm.c (print_multi_reg): Remove.
2998         (vfp_output_fldmd): Likewise.
2999         (arm_output_epilogue): Likewise.
3000         * config/arm/arm.md (epilogue_insns): Update condition and code.
3002 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
3003             Sameera Deshpande  <sameera.deshpande@arm.com>
3004             Greta Yorsh  <greta.yorsh@arm.com>
3006         * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
3007         * config/arm/arm.c (thumb2_expand_return): New function.
3008         * config/arm/arm.md (return): Update condition and code.
3010 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
3011             Sameera Deshpande  <sameera.deshpande@arm.com>
3012             Greta Yorsh  <greta.yorsh@arm.com>
3014         * config/arm/arm-protos.h (output_return_instruction): New parameter
3015         and int to bool change of parameter types.
3016         * config/arm/arm.c (output_return_instruction): Likewise.
3017         * config/arm/arm.md (arm_simple_return): New pattern.
3018         (arm_return, cond_return, cond_return_inverted): Add new arguments.
3019         * config/arm/thumb2.md (thumb2_return): Update condition and code.
3021 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
3022             Sameera Deshpande  <sameera.deshpande@arm.com>
3023             Greta Yorsh  <greta.yorsh@arm.com>
3025         * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
3026         * config/arm/arm.c (arm_expand_epilogue): New function.
3027         * config/arm/arm.md (epilogue): Update condition and code.
3028         (sibcall_epilogue): Likewise.
3030 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
3031             Sameera Deshpande  <sameera.deshpande@arm.com>
3032             Greta Yorsh  <greta.yorsh@arm.com>
3034         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
3035         * config/arm/arm.md (arm_addsi3) Add an alternative.
3037 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
3038             Sameera Deshpande  <sameera.deshpande@arm.com>
3039             Greta Yorsh  <greta.yorsh@arm.com>
3041         * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
3042         * config/arm/predicates.md (pop_multiple_fp) New special predicate.
3043         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
3045 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
3046             Sameera Deshpande  <sameera.deshpande@arm.com>
3047             Greta Yorsh  <greta.yorsh@arm.com>
3049         * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
3050         (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
3051         (pop_multiple_with_return, ldr_with_return) Likewise.
3052         * config/arm/predicates.md (pop_multiple_return) New special predicate.
3053         * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
3054         * config/arm/arm.c (arm_output_multireg_pop) New function.
3055         (arm_emit_multi_reg_pop): New function.
3057 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3059         * config/arm/arm.c (ldm_stm_operation_p): Require SP
3060         as base register for loads if SP is in the register list.
3062 2012-06-18  Richard Guenther  <rguenther@suse.de>
3064         PR tree-optimization/53693
3065         * tree-vect-patterns.c (vect_operation_fits_smaller_type):
3066         Reject operands with more than one use.
3068 2012-06-18  Bill Schmidt  <wschmidt@linux.ibm.com>
3070         PR tree-optimization/53703
3071         * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
3072         correctly set bb_for_def[12].
3074 2012-06-18  Steven Bosscher  <steven@gcc.gnu.org>
3076         * config/vax/vax.h (VMS_TARGET): Remove.
3078 2012-06-18  Richard Guenther  <rguenther@suse.de>
3080         * tree-vrp.c (extract_range_from_assert): Split out range
3081         intersecting code.
3082         (intersect_ranges): New function.
3083         (vrp_intersect_ranges): Likewise.
3085 2012-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3087         * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
3088         r187965.
3090 2012-06-18  Tejas Belagod  <tejas.belagod@arm.com>
3092         * doc/md.texi: Document int iterators.
3093         * read-rtl.c (ints): New iterator group.
3094         (find_int): Int iterator group callback.
3095         (apply_int_iterator): Likewise.
3096         (apply_iterators): Traverse int iterator table and add all the used
3097         iterators to list.
3098         (initialize_iterators): Initialize data structures and callbacks for
3099         int iterators.
3100         (read_rtx): Parse and read mappings for int iterators.
3101         (read_rtx_code): Record int iterator usage.
3103 2012-06-18  Richard Sandiford  <rdsandiford@googlemail.com>
3105         PR middle-end/53698
3106         * expr.c (expand_expr_addr_expr_1): Convert to tmode before
3107         performing an addition.
3109 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3111         * output.h (split_double): Move prototype to rtl.h.
3112         (constructor_static_from_elts_p): Move prototype to tree.c.
3113         * rtl.h (split_double): Moved here from output.h.
3114         * tree.h (constructor_static_from_elts_p): Moved here from output.h.
3115         * final.c (split_double): Move from here ...
3116         * rtlanal.c (split_double): ... to here.
3117         * expr.c: Do not include output.h.
3119 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3121         * cfglayout.h: Remove.
3122         * cfglayout.c: Remove.
3123         * function.h (struct function): Remove x_last_location field.
3124         * function.c: Do not include cfglayout.h.
3125         (expand_function_start): Do not call no-op force_next_line_note.
3126         (expand_function_end): Likewise.
3127         * cfgrtl.c: Do not include cfglayout.h.  Include gt-cfgrtl.h.
3128         (unlink_insn_chain): Moved here from cfglayout.c.
3129         (skip_insns_after_block, label_for_bb, record_effective_endpoints,
3130         into_cfg_layout_mode, outof_cfg_layout_mode,
3131         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
3132         relink_block_chain, fixup_reorder_chain, verify_insn_chain,
3133         fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
3134         cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
3135         cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
3136         cfg_layout_finalize): Likewise.
3137         (rtl_can_remove_branch_p): Likewise.
3138         * rtl.h (insn_scope): Move prototype from cfglayout.h here.
3139         (duplicate_insn_chain): Likewise.
3140         (force_next_line_note): Remove prototype.
3141         * emit-rtl.c: Do not include tree-flow.h, egad.  Include vecprim.h.
3142         (last_location): Remove #define to emit.x_last_location.
3143         (force_next_line_note): Remove no-op function.
3144         (init_emit): Don't set x_last_location.
3145         (block_locators_locs, block_locators_blocks, locations_locators_locs,
3146         locations_locators_vals, prologue_locator, epilogue_locator,
3147         curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3148         Move POD to here from cfglayout.c.
3149         (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
3150         set_curr_insn_source_location, get_curr_insn_source_location,
3151         set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
3152         locator_scope, insn_scope, locator_location, locator_line, insn_line,
3153         locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
3154         * cfghooks.h: Remove double-include protection.
3155         (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
3156         * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
3157         * final.c: Do not include cfglayout.h.
3158         (choose_inner_scope, change_scope): Move to here from cfglayout.c.
3159         (reemit_insn_block_notes): Likewise.  Make static.
3160         * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
3161         operation_could_trap_p, tree_could_throw_p): Move from here...
3162         * tree.h: ... to here.
3163         * gengtype.c (open_base_files): Remove cfglayout.h from the list.
3164         * profile.c: Do not include cfghooks.h.
3165         * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
3166         * modulo-sched.c: Likewise.
3167         * loop-unswitch.c: Do not include cfglayout.h.
3168         * sched-ebb.c: Likewise.
3169         * tracer.c: Likewise.
3170         * ddg.c: Likewise.
3171         * tree-vect-loop-manip.c: Likewise.
3172         * loop-init.c: Likewise.
3173         * dwarf2out.c: Likewise.
3174         * hw-doloop.c: Likewise.
3175         * loop-unroll.c: Likewise.
3176         * cfgcleanup.c: Likewise.
3177         * bb-reorder.c: Likewise.
3178         * sched-rgn.c: Likewise.
3179         * tree-cfg.c: Likewise.
3180         * config/alpha/alpha.c: Likewise.
3181         * config/spu/spu.c: Likewise.
3182         * config/sparc/sparc.c: Likewise.
3183         * config/sh/sh.c: Likewise.
3184         * config/c6x/c6x.c: Likewise.
3185         * config/ia64/ia64.c: Likewise.
3186         * config/rs6000/rs6000.c: Likewise.
3187         * config/score/score.c: Likewise.
3188         * config/mips/mips.c: Likewise.
3189         * config/bfin/bfin.c: Likewise.
3190         * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
3191         * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
3192         * config/spu/t-spu-elf (spu.o: $): Likewise.
3193         * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
3195 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3197         * cfgloop.h: Do not include rtl.h.
3198         (enum iv_extend_code): New.
3199         (struct rtx_iv): Use iv_extend_code instead of rtx_code.
3200         * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
3201         * loop-iv.c (iv_extend_to_rtx_code): New function to translate
3202         an IV_EXTEND_CODE to an RTX_CODE.
3203         (dump_iv_info): Update for rtx_iv field type change.
3204         (iv_constant): Likewise.
3205         (iv_subreg): Likewise.
3206         (iv_extend): Likewise.
3207         (iv_neg): Likewise.
3208         (iv_add): Likewise.
3209         (iv_mult): Likewise.
3210         (iv_shift): Likewise.
3211         (get_biv_step_1): Likewise.
3212         (get_biv_step): Likewise.
3213         (iv_analyze_biv): Likewise.
3214         (get_iv_value): Likewise.
3215         (shorten_into_mode): Likewise.
3216         (canonicalize_iv_subregs): Likewise.
3217         * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
3218         of MAY_HAVE_DEBUG_INSNS.
3219         * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
3220         * tree-ssa-loop-prefetch.c: Likewise.
3222 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3224         * expmed.c (ceil_log2): Move from here...
3225         * hwint.c: ... to here for older GCCs...
3226         * hwint.h: ... and here for newer GCCs.
3227         * rtl.h (ceil_log2): Remove prototype.
3229         * tree-phinodes.c: Do not include rtl.h.
3230         * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
3232 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3234         * config/cris/cris.h (TARGET_ELF): Remove.
3235         (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
3236         (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
3237         (LOCAL_LABEL_PREFIX): Likewise.
3238         * config/cris/cris.c (cris_target_asm_named_section): Remove.
3239         (cris_option_override): Simpify using TARGET_ELF==1.
3240         (cris_file_start): Likewise.
3241         * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
3243 2012-06-17  Uros Bizjak  <ubizjak@gmail.com>
3245         * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
3247 2012-06-16  Eric Botcazou  <ebotcazou@adacore.com>
3249         PR middle-end/53590
3250         * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
3252 2012-06-15  Easwaran Raman  <eraman@google.com>
3254         * passes.c (init_optimization_passes): Remove pass_call_cdce
3255         from its current position and insert after pass_dce.
3257 2012-06-15  Walter Lee  <walt@tilera.com>
3259         * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
3261 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
3263         * arm.c (note_invalid_constants): Don't return a result.
3264         (arm_memory_load_p): Delete function.
3265         (arm_const_double_rtx): Delete iterator variable i;
3266         (fp_immediate_constant): Likewise.
3267         (fp_const_from_val): Likewise.
3269         * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
3271 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
3273         PR c++/51033
3274         * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
3275         * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
3277 2012-06-15  Georg-Johann Lay  <avr@gjlay.de>
3279         * config/avr/avr.c (avr_default_expand_builtin): New function.
3280         (avr_expand_builtin): Use it.
3281         (avr_expand_unop_builtin): Remove.
3282         (avr_expand_binop_builtin): Remove.
3283         (avr_expand_triop_builtin): Remove.
3285 2012-06-15  Michael Matz  <matz@suse.de>
3287         PR middle-end/38474
3288         * cfgexpand.c (add_alias_set_conflicts): Remove.
3289         (expand_used_vars): Don't call it.
3290         (aggregate_contains_union_type): Remove.
3291         * function.c (n_temp_slots_in_use): New static data.
3292         (make_slot_available, assign_stack_temp_for_type): Update it.
3293         (init_temp_slots): Zero it.
3294         (remove_unused_temp_slot_addresses): Use it for quicker removal.
3295         (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
3297 2012-06-15  Michael Matz  <matz@suse.de>
3299         * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
3300         argument, don't emit assign statement if value is directly usable.
3301         (gimplify_expr): Adjust.
3303 2012-06-15  Michael Matz  <matz@suse.de>
3305         * gimplify.c (gimplify_modify_expr): Fold generated statements.
3306         * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
3308 2012-06-15  Richard Guenther  <rguenther@suse.de>
3310         * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
3311         predicates to set VR_UNDEFINED and VR_VARYING.  Drop a case
3312         we assert for in set_value_range to VR_VARYING.
3314 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
3316         * arm.md (addsf3, adddf3): Use s_register_operand.
3317         (subsf3, subdf3): Likewise.
3318         (mulsf3, muldf3): Likewise.
3319         (difsf3, divdf3): Likewise.
3320         (movsfcc, movdfcc): Likewise.
3321         * predicates.md (f_register_operand): Delete.
3322         (arm_float_rhs_operand): Delete.
3323         (arm_float_add_operand): Delete.
3324         (arm_float_compare_operand): Use s_register_operand when
3325         there's no VFP.
3326         (cirrus_register_operand): Delete.
3327         (cirrus_fp_register): Delete.
3328         (cirrus_shift_const): Delete.
3329         (cmpdi_operand): Remove Maverick support.
3330         * constraints.md (f, v, H): Delete constraints.
3331         (G): Update documentation.
3332         * arm.c (fp_consts_inited): Convert to bool.
3333         (strings_fp): Delete.
3334         (values_fp): Delete.
3335         (value_fp0): New variable.
3336         (init_fp_table): Simplify logic.
3337         (arm_const_double_rtx): Likewise.
3338         (fp_immediate_constant): Likewise.
3339         (fp_const_from_val): Likewise.
3340         (neg_const_double_rtx_ok_for_fpa): Delete.
3341         * doc/md.texi (ARM constraints): Update documentation.
3343 2012-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
3345         PR tree-optimization/53636
3346         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
3347         stride when doing basic-block vectorization.
3349 2012-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3351         * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
3352         into VEC_PERM_EXPR.
3354 2012-06-15  Jakub Jelinek  <jakub@redhat.com>
3356         * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
3357         allocate and free bbs array for the SLP case.
3359         PR tree-optimization/51581
3360         * expr.h (choose_multiplier): New prototype.
3361         * expmed.c (choose_multiplier): No longer static.
3362         Change multiplier_ptr from rtx * to UHWI *.
3363         (expand_divmod): Adjust callers.
3364         * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
3365         (vect_recog_divmod_pattern): ... this.  Pass bb_vinfo as last
3366         argument to new_stmt_vec_info.  Attempt to optimize also divisions
3367         by non-pow2 constants if integer vector division isn't supported.
3368         * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
3369         don't look at pattern stmts and sequences.
3371 2012-06-15  Eric Botcazou  <ebotcazou@adacore.com>
3373         PR middle-end/53590
3374         * common.opt (-fdelete-dead-exceptions): New switch.
3375         * doc/invoke.texi (Code Gen Options): Document it.
3376         * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
3377         insn_could_throw_p predicate.  Do not skip an insn that could throw
3378         if dead exceptions can be deleted.
3379         (insn_live_p): Likewise, do not return true in that case.
3380         * dce.c (can_alter_cfg): New flag.
3381         (deletable_insn_p): Do not return false for an insn that can throw if
3382         the CFG can be altered and dead exceptions can be deleted.
3383         (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
3384         * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
3385         predicate. Do not preserve an insn that could throw if dead exceptions
3386         can be deleted.
3387         * function.h (struct function): Add can_delete_dead_exceptions flag.
3388         * function.c (allocate_struct_function): Set it.
3389         * lto-streamer-in.c (input_struct_function_base): Stream it.
3390         * lto-streamer-out.c (input_struct_function_base): Likewise.
3391         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
3392         statement that could throw as necessary if dead exceptions can be
3393         deleted.
3395 2012-06-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
3397         * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
3399 2012-06-14  Oleg Endo  <olegendo@gcc.gnu.org>
3401         PR target/53568
3402         * config/sh/sh.md: Add peephole for swapbsi2.
3403         (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
3405 2012-06-14  Uros Bizjak  <ubizjak@gmail.com>
3407         * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
3408         (*zero_extendsidi2_rex64): Ditto.  Remove isa attribute.
3410 2012-06-14  Jakub Jelinek  <jakub@redhat.com>
3412         PR target/53639
3413         * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
3415 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
3417         * arm.c (arm_cirrus_insn_p): Delete.
3418         (cirrus_reorg): Delete.
3419         (arm_reorg): Don't call cirrus_reorg.
3420         (arm_final_prescan_insn_p): Don't check for cirrus insns.
3421         * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
3422         (adddi3, subdi3): Remove Maverick support.
3423         (arm_adddi3): Likewise.
3424         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
3425         (addsf3, adddf3): Likewise.
3426         (subsf3, subdf3): Likewise.
3427         (mulsf3, muldf3): Likewise.
3428         (ashldi3, ashrdi3, lshrdi3): Likewise.
3429         (floatsisf2, floatsidf2): Likewise.
3430         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
3431         (arm_movdi, thumb1_movdi_insn): Likewise.
3432         (arm_cmpdi_insn): Likewise.
3433         (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
3434         (cirrus.md): Don't include.
3435         * cirrus.md: Delete file.
3436         * t-arm (MD_INCLUDES): Remove cirrus.md.
3438 2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
3440         * dwarf2out.c (function_possibly_abstracted_p): New static function.
3441         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
3442         cgraph_function_possibly_inlined_p.
3443         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
3444         (process_scope_var): Do not emit concrete instances of abstracted
3445         nested functions from here.
3446         (gen_decl_die): Emit the abstract instance if the function is possibly
3447         abstracted and not only possibly inlined.
3448         (dwarf2out_finish): Find the first non-abstract parent instance and
3449         attach concrete instances on the limbo list to it.
3451 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
3453         * arm.md (divsf3, divdf3): Remove FPA support.
3454         (negsf2, negdf2): Likewise.
3455         (sqrtsf2, sqrtdf2): Likewise.
3456         (movdfcc): Likewise.
3457         (modsf3, moddf3, movxf): Delete.
3458         (push_fp_multi): Delete.
3459         (fpa.md): Don't include it.
3460         * fpa.md: Delete file.
3461         * t-arm (MD_INCLUDES): Remove fpa.md.
3463 2012-06-14  Bill Schmidt  <wschmidt@linux.ibm.com>
3465         * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
3466         (cost_for_stmt): Remove decl.
3467         (vect_get_single_scalar_iteration_cost): Correct typo in name.
3468         * tree-vect-loop.c (vect_get_cost): Remove.
3469         (vect_get_single_scalar_iteration_cost): Correct typo in name; use
3470         vect_get_stmt_cost rather than vect_get_cost.
3471         (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
3472         vect_get_cost.
3473         (vect_estimate_min_profitable_iters): Correct typo in call to
3474         vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
3475         than vect_get_cost.
3476         (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
3477         vect_get_cost.
3478         (vect_model_induction_cost): Likewise.
3479         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
3480         typo in call to vect_get_single_scalar_iteration_cost.
3481         * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
3482         (cost_for_stmt): Remove unnecessary function.
3483         * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
3485 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
3487         * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
3488         * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
3489         * arm-tables.opt: Regenerated.
3490         * doc/invoke.texi: Remove references to deleted options.
3492 2012-06-14  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
3494         * config/h8300/genmova.sh: Modified to add offset bits of
3495         mova/Sz assembly instruction for memory access.
3496         * config/h8300/h8300.c: Likewise.
3497         * config/h8300/mova.md: Likewise.
3499 2012-06-12  Christian Bruel  <christian.bruel@st.com>
3501         PR target/53621
3502         * config/sh/sh.c (sh_option_override): Don't force
3503          flag_omit_frame_pointer and maccumulate_outgoing_args.
3504         * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
3506 2012-06-14  Richard Guenther  <rguenther@suse.de>
3508         * tree-vrp.c (VR_INITIALIZER): New define.
3509         (ranges_from_anti_range): New function.
3510         (extract_range_from_binary_expr_1): Decompose operations on
3511         VR_ANTI_RANGEs to operations on VR_RANGE.
3512         (extract_range_from_unary_expr_1): Likewise.
3513         (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
3514         extract_range_from_unary_expr_1, extract_range_from_unary_expr,
3515         extract_range_from_cond_expr, adjust_range_with_scev,
3516         vrp_visit_assignment_or_call, vrp_visit_phi_node,
3517         simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
3519 2012-06-13  Richard Henderson  <rth@redhat.com>
3521         * hwint.h (HOST_WIDEST_INT_C): New.
3522         (HOST_WIDE_INT_C): New.
3523         (HOST_WIDE_INT_1): Use it.
3524         * config/alpha/alpha.c (alpha_trampoline_init): Use it.
3526 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
3528         PR debug/49888
3529         * var-tracking.c: Include alias.h.
3530         (overlapping_mems): New struct.
3531         (drop_overlapping_mem_locs): New.
3532         (clobber_overlapping_mems): New.
3533         (var_mem_delete_and_set, var_mem_delete): Call it.
3534         (val_bind): Likewise, but only if modified.
3535         (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
3536         * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
3538 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
3540         PR debug/47624
3541         * var-tracking.c (loc_exp_dep_pool): New.
3542         (vt_emit_notes): Create and release the pool.
3543         (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
3544         (emit_notes_in_bb): Likewise.
3545         (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
3546         (notify_dependents_of_changed_value): Likewise.
3547         (notify_dependents_of_resolved_value): Check that NOT_ONEPART
3548         variables don't have a VAR_LOC_DEP_LST.
3549         (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
3550         VALUEs or MEMs of VALUEs.
3552 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
3554         PR debug/52983
3555         PR debug/48866
3556         * dce.c (word_dce_process_block): Insert debug temps only if the
3557         insn is not marked.
3558         (dce_process_block): Likewise, and if debug.used is not empty,
3559         and only after iterating over all DEFs that might mark the insn.
3561 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
3563         * common.opt (ftree-coalesce-inlined-vars): New.
3564         (ftree-coalesce-vars): New.
3565         * doc/invoke.texi: Document them.
3566         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
3567         Implement them.
3569 2012-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
3571         * read-rtl.c (mapping): Remove index field.  Add current_value field.
3572         Define heap vectors.
3573         (iterator_group): Fix long line.  Remove num_builtins field and
3574         uses_iterator fields.  Make apply_iterator take a void * parameter.
3575         (iterator_use, atttribute_use): New structures.
3576         (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
3577         (current_iterators, iterator_uses, attribute_uses): New variables.
3578         (uses_mode_iterator_p, uses_code_iterator_p): Delete.
3579         (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
3580         (map_attr_string, apply_iterator_to_string): Remove iterator
3581         and value parameters.  Look through all current iterator values
3582         for a matching attribute.
3583         (mode_attr_index, apply_mode_maps): Delete.
3584         (apply_iterator_to_rtx): Replace with...
3585         (copy_rtx_for_iterators): ...this new function.
3586         (uses_iterator_p, apply_iterator_traverse): Delete.
3587         (apply_attribute_uses, add_current_iterators, apply_iterators): New
3588         functions.
3589         (add_mapping): Remove index field.  Set current_value field.
3590         (initialize_iterators): Don't set num_builtins and uses_iterator_p
3591         fields.
3592         (find_iterator): Delete.
3593         (record_iterator_use, record_attribute_use): New functions.
3594         (record_potential_iterator_use): New function.
3595         (check_code_iterator): Remove handling of bellwether codes.
3596         (read_rtx): Remove mode maps.  Truncate iterator and attribute uses.
3597         (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
3598         parameter.  Use the first code iterator value instead of the
3599         bellwether_codes array.  Use record_potential_iterator_use for modes.
3601 2012-06-13  Oleg Endo  <olegendo@gcc.gnu.org>
3603         PR target/53568
3604         * config/sh/sh.md (bswapsi2): New expander.
3605         (swapbsi2): New insn.
3607 2012-06-13  H.J. Lu  <hongjiu.lu@intel.com>
3609         PR target/53647
3610         * config/i386/i386.c (ix86_tune_cost): New variable.
3611         (ix86_option_override_internal): Set ix86_tune_cost.  Use
3612         ix86_tune_cost for simultaneous_prefetches, prefetch_block,
3613         l1_cache_size and l2_cache_size.
3615 2012-06-13  Richard Guenther  <rguenther@suse.de>
3617         * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
3618         Handle meeting two VR_RANGE to an VR_ANTI_RANGE.  Implement
3619         all possible meetings of VR_RANGE with VR_ANTI_RANGE and
3620         VR_ANTI_RANGE with VR_ANTI_RANGE.
3622 2012-06-13  Richard Earnshaw  <rearnsha@arm.com>
3624         * config.gcc (unsupported): Move obsoleted FPA-based configurations
3625         here from ...
3626         (obsolete): ... here.
3627         (arm*-*-freebsd*): Remove.
3628         (arm*-*-linux*): Only accept EABI variants.  Simplify logic.
3629         (arm*-*-uclinux*): Likewise.
3630         (arm*-*-ecos-elf): Remove.
3631         (arm*-*-rtems*): Remove.
3632         (arm*-*-elf): Remove.
3633         (arm*-wince-pe*): Remove.
3634         (arm, --with-fpu): Remove support for fpa and Maverick variants.
3635         * arm/ecos-elf.h: Delete.
3636         * arm/t-strongarm-elf: Delete.
3637         * arm/rtems-elf.h: Delete.
3638         * arm/wince-pe.h: Delete.
3639         * arm/pe.c: Delete.
3640         * arm/pe.h: Delete.
3641         * arm/t-wince-pe: Delete.
3643 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
3645         PR tree-optimization/53647
3646         * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
3647         targets with no defined cache line size.
3649 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
3651         * targhooks.c (default_builtin_vectorized_conversion): Handle
3652         vec_construct, using vectype to base cost on subparts.
3653         * target.h (enum vect_cost_for_stmt): Add vec_construct.
3654         * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
3655         instead of scalar_to-vec.
3656         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
3657         vec_construct in same way as default for now.
3658         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
3659         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3660         Handle vec_construct, including special case for 32-bit loads.
3662 2012-06-13  Xinyu Qi <xyqi@marvell.com>
3664         * config/arm/arm.c (FL_IWMMXT2): New define.
3665         (arm_arch_iwmmxt2): New variable.
3666         (arm_option_override): Enable use of iWMMXt with VFP.
3667         Disable use of iWMMXt with NEON. Disable use of iWMMXt under
3668         Thumb mode. Set arm_arch_iwmmxt2.
3669         (arm_expand_binop_builtin): Accept VOIDmode op.
3670         (enum arm_builtins): Revise built-in fcode.
3671         (IWMMXT2_BUILTIN): New define.
3672         (IWMMXT2_BUILTIN2): Likewise.
3673         (iwmmx2_mbuiltin): Likewise.
3674         (builtin_description bdesc_2arg): Revise built in declaration.
3675         (builtin_description bdesc_1arg): Likewise.
3676         (arm_init_iwmmxt_builtins): Revise built in initialization.
3677         (arm_expand_builtin): Revise built in expansion.
3678         (arm_output_iwmmxt_shift_immediate): New function.
3679         (arm_output_iwmmxt_tinsr): Likewise.
3680         * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
3681         (arm_output_iwmmxt_tinsr): Likewise.
3682         * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
3683         (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
3684         (rorv4hi3, rorv2si3, rordi3): Likewise.
3685         (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
3686         (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
3687         (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
3688         (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
3689         (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
3690         (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
3691         (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
3692         (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
3693         (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
3694         (ror<mode>3, ror<mode>3_di): Likewise.
3695         (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
3696         (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
3697         (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
3698         (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
3699         (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
3700         (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
3701         (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
3702         (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
3703         (All instruction patterns): Add wtype attribute.
3704         (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
3705         (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
3706         (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
3707         (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
3708         (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
3709         (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
3710         (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
3711         (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
3712         (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
3713         (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
3714         (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
3715         (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
3716         (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
3717         (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
3718         (iwmmxt2.md): Include.
3719         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
3720         (TARGET_IWMMXT2): New define.
3721         (TARGET_REALLY_IWMMXT2): Likewise.
3722         (arm_arch_iwmmxt2): Declare.
3723         * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
3724         Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
3725         Use C name-mangling for intrinsics.
3726         (__v8qi): Redefine.
3727         (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
3728         (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
3729         (_m_from_int): Likewise.
3730         (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
3731         (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
3732         (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
3733         (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
3734         (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
3735         (_mm_tbcst_pi32): Likewise.
3736         (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
3737         (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
3738         (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
3739         (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
3740         (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
3741         (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
3742         (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
3743         (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
3744         (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
3745         (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
3746         (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
3747         (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
3748         (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
3749         (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
3750         (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
3751         (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
3752         (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
3753         (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
3754         (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
3755         (_m_to_int): New define.
3756         * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
3757         * config/arm/arm-arches.def (iwmmxt2): Likewise.
3758         * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
3759         iwmmxt2.md.
3760         * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
3761         (arch): Add "iwmmxt2".
3762         (arch_enabled): Handle "iwmmxt2".
3763         (wtype): New attribute.
3764         (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
3765         (UNSPEC_WALIGNI): New unspec.
3766         * config/arm/predicates.md (imm_or_reg_operand): New predicate.
3767         * config/arm/iterators.md (VMMX2): New mode_iterator.
3768         * config/arm/marvell-f-iwmmxt.md: New file.
3769         * config/arm/iwmmxt2.md: New file.
3771 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
3773         PR c/53532
3774         PR c/51034
3775         PR c/53196
3776         * c-decl.c (build_compound_literal): Call c_incomplete_type_error
3777         if type isn't complete.
3779 2012-06-12  Uros Bizjak  <ubizjak@gmail.com>
3781         * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
3783 2012-06-12  Richard Henderson  <rth@redhat.com>
3785         * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
3786         iterator instead of INT.
3788 2012-06-12  Bill Schmidt  <wschmidt@linux.ibm.com>
3790         * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
3791         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
3792         declaration.
3793         (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
3794         (tree_ssa_phiopt): Call gate_hoist_loads.
3795         (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
3796         (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
3797         hoist_adjacent_loads.
3798         (local_mem_dependence): New function.
3799         (hoist_adjacent_loads): Likewise.
3800         (gate_hoist_loads): Likewise.
3801         * common.opt (fhoist-adjacent-loads): New switch.
3802         * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
3804 2012-06-12  Michael Matz  <matz@suse.de>
3806         * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
3807         (nonoverlapping_memrefs_p): Don't call it here ...
3808         (true_dependence_1): ... but here.
3810 2012-06-12  Richard Guenther  <rguenther@suse.de>
3812         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
3813         * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
3814         and MEM_SIZE only refines it.  Reflect that and be less conservative
3815         if either of the latter is not known.
3817 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
3819         PR rtl-optimization/53589
3820         * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
3821         discovery even when e->dest != target.  If any LABEL_REF points
3822         to e->dest label, redirect it to target's label.
3824 2012-06-12  Chung-Lin Tang  <cltang@codesourcery.com>
3826         * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
3827         condition for generating REG_FRAME_RELATED_EXPR note.
3828         (pop): Add code for generating REG_CFA_RESTORE,
3829         REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
3830         (sh_expand_epilogue): Use frame_insn() for FP to SP move.
3831         Set 'frame_p' of calls to output_stack_adjust() to 'true'.
3833 2012-06-11  Richard Henderson  <rth@redhat.com>
3835         * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
3836         * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
3838         * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
3840 2012-06-12  Hans-Peter Nilsson  <hp@axis.com>
3842         * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
3843         Mention that this hook needs to be defined for native TLS.
3844         * doc/tm.texi: Regenerate.
3846 2012-06-11  Mike Stump  <mikestump@comcast.net>
3848         * emit-rtl.c (init_emit_once): Iterate through the
3849         MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
3850         MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
3851         all the MIN_MODE_PARTIAL_INT modes anymore.
3853 2012-06-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
3855         * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
3857 2012-06-11  Roland McGrath  <mcgrathr@google.com>
3859         * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
3860         SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
3861         not a VAR_DECL.  Also don't limit it to UNSPECs with exactly one
3862         operand.
3864 2012-06-11  Oleg Endo  <olegendo@gcc.gnu.org>
3866         PR target/53511
3867         * config/sh/sh.md (fmasf4): New expander.
3868         (*macsf3): Rename to fmasf4_i.  Adapt to fma pattern.
3869         (mac_media): Rename to fmasf4_media.  Adapt to fma pattern.
3870         * config/sh/sh.opt (mfused-madd): Remove.
3871         * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
3872         (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
3873         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
3874         as extra options.
3875         * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
3876         descriptions.
3878 2012-06-11  Richard Henderson  <rth@redhat.com>
3880         * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
3882 2012-06-11  Richard Guenther  <rguenther@suse.de>
3884         PR middle-end/53470
3885         * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
3886         replace it with the first non-BLOCK context.
3888 2012-06-11  Richard Guenther  <rguenther@suse.de>
3890         * alias.c (aliases_everything_p): Remove.
3891         (DIFFERENT_ALIAS_SETS_P): Likewise.
3892         (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
3893         Do not use aliases_everything_p or special-case ANDs.  Do not
3894         special-case BLKmode moves.
3895         (may_alias_p): Likewise.  Handle BLKmode similar like everywhere
3896         - for SCATCH only.
3898 2012-06-09  Hans-Peter Nilsson  <hp@axis.com>
3900         Fix CRIS build errors with --enable-build-with-cxx.
3901         * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
3902         variable "and" to "andop".
3903         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
3904         temporary variable for memory model, passing C++-type-correct
3905         parameter type to expand_mem_thread_fence.
3906         ("atomic_compare_and_swap<mode>"): Ditto.
3908 2012-06-09  Richard Henderson  <rth@redhat.com>
3910         PR c++/53602
3911         * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
3912         (pass_jump): Rename from pass_jump2.
3913         (execute_jump2, pass_jump2): New.
3914         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
3915         perform cfg cleanup here.  Move the test of PUSH_ROUNDING
3916         and ACCUMULATE_OUTGOING_ARGS test...
3917         (gate_handle_stack_adjustments): ... here.
3918         * passes.c (init_optimization_passes): Update for pass_jump2 rename.
3919         Place new pass_jump2 after pass_stack_adjustments.
3920         * tree-pass.h (pass_jump): Declare.
3922 2012-06-09  Kenneth Zadeck <zadeck@naturalbridge.com>
3924         * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
3925         count trucation.
3927 2012-06-08  Richard Henderson  <rth@redhat.com>
3929         PR c++/53602
3930         * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
3931         note to a clobber insn when no other insn is available.
3933 2012-06-08  Georg-Johann Lay  <avr@gjlay.de>
3935         * config/avr/avr.c (avr_case_values_threshold): Return 7.
3937 2012-06-07  Andreas Schwab  <schwab@linux-m68k.org>
3939         * genhooks.c (main): Set progname.
3940         (emit_documentation): Remove variable found_start, always bail out
3941         when a place is missing.
3942         * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
3944 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
3946         PR middle-end/53580
3947         * omp-low.c (scan_omp): Change first argument to gimple_seq *,
3948         call walk_gimple_seq_mod instead of walk_gimple_seq.
3949         (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
3950         scan_omp_for, scan_omp_sections, scan_omp_single,
3951         execute_lower_omp): Adjust callers.
3952         (scan_omp_1_stmt): Likewise.  If check_omp_nesting_restrictions
3953         returns false, replace stmt with GIMPLE_NOP.
3954         (check_omp_nesting_restrictions): Instead of issuing warnings,
3955         issue errors and return false if any errors were reported.
3957 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
3959         * doc/invoke.texi (fconserve-space): Remove documentation.
3961 2012-06-06  Edmar Wienskoski  <edmar@freescale.com>
3963         * config/rs6000/rs6000-tables.opt: Regenerated.
3965 2012-06-06  Richard Guenther  <rguenther@suse.de>
3967         PR tree-optimization/53081
3968         * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
3969         (adjacent_dr_p): ... this and make it work for reads, too.
3970         * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
3971         (struct partition_s): Change main_stmt to main_dr, add
3972         secondary_dr member.
3973         (build_size_arg_loc): Change to date data-reference and not
3974         gimplify here.
3975         (build_addr_arg_loc): New function split out from ...
3976         (generate_memset_builtin): ... here.  Use it and simplify.
3977         (generate_memcpy_builtin): New function.
3978         (generate_code_for_partition): Adjust.
3979         (classify_partition): Streamline pattern detection.  Detect memcpy.
3980         (ldist_gen): Adjust.
3981         (tree_loop_distribution): Adjust seed statements for memcpy
3982         recognition.
3984 2012-06-06  Matt Turner  <mattst88@gmail.com>
3986         * config/arm/mmintrin.h (_mm_empty): New.
3987         (_m_empty): New.
3989 2012-06-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
3991         * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
3992         * common.opt (fsched-pressure-algorithm=): Remove.
3993         * flag-types.h (sched_pressure_algorithm): Move to...
3994         * sched-int.h (sched_pressure_algorithm): ...here.
3995         * params.def (sched-pressure-algorithm): New param.
3996         * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
3997         * common/config/s390/s390-common.c (s390_option_optimization_table):
3998         Remove OPT_fsched_pressure_algorithm_ entry.
3999         * config/s390/s390.c (s390_option_override): Set a default value for
4000         PARAM_SCHED_PRESSURE_ALGORITHM.
4002 2012-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
4004         PR target/53487
4005         * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
4006         doing an unsigned compare, make sure the second argument is not a
4007         negative constant.
4008         (rs6000_emit_cmove): Don't allow floating point comparisons when
4009         generating ISEL moves.
4011 2012-06-05  Edmar Wienskoski  <edmar@freescale.com>
4013         * config/rs6000/e5500.md: New file.
4014         * config/rs6000/e6500.md: New file.
4015         * config/rs6000/rs6000.c (processor_costs): Add new costs for
4016         e5500 and e6500.
4017         (rs6000_option_override_internal): Altivec and Spe options not
4018         allowed with e5500. Spe options not allowed with e6500. Increase
4019         move inline limit for e5500 and e6500. Disable string instructions
4020         for e5500 and e6500. Enable branch targets alignment for e5500 and
4021         e6500. Initialize rs6000_cost for e5500 and e6500.
4022         (rs6000_adjust_cost): Add extra scheduling cycles between compare
4023         and brnach for e5500 and e6500.
4024         (rs6000_issue_rate): Set issue rate for e5500 and e6500.
4025         * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
4026         e6500.
4027         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
4028         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
4029         ppce6500.
4030         Include e5500.md and e6500.md.
4031         * config/rs6000/rs6000-opt.h (processor_type): Add
4032         PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
4033         * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
4034         (powerpc*-*-*): Add new cores e5500, e6500.
4035         * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
4037 2012-06-05  Richard Guenther  <rguenther@suse.de>
4039         * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
4041 2012-06-05  H.J. Lu  <hongjiu.lu@intel.com>
4043         PR target/53575
4044         * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
4045         is used for x86_64-*-*.
4047 2012-06-05  Richard Guenther  <rguenther@suse.de>
4049         PR tree-optimization/30442
4050         * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
4051         vectorization stop analysis at the first stmt we cannot compute
4052         a data-reference for instead of giving up completely.
4054 2012-06-05  Richard Guenther  <rguenther@suse.de>
4056         * tree-loop-distribution.c (struct partition_s): Add has_writes member.
4057         (partition_alloc): Initialize it.
4058         (partition_has_writes): New function.
4059         (rdg_flag_uses): Adjust.
4060         (rdg_flag_vertex): Likewise.
4061         (rdg_flag_vertex_and_dependent): Likewise.
4062         (rdg_flag_loop_exits): Likewise.
4063         (build_rdg_partition_for_component): Likewise.
4064         (rdg_build_partitions): Likewise.
4066 2012-06-05  Richard Guenther  <rguenther@suse.de>
4068         PR tree-optimization/53081
4069         * tree-loop-distribution.c (generate_memset_builtin): Handle all
4070         kinds of byte-sized stores.
4071         (classify_partition): Likewise.
4072         (tree_loop_distribution): Adjust seed statements used for
4073         !flag_tree_loop_distribution.
4075 2012-06-05  Alan Modra  <amodra@gmail.com>
4077         * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
4078         (rs6000_emit_prologue): Ensure register used for inline saves
4079         of vector regs is not the static chain register.  Revise comment.
4081 2012-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
4083         * doc/md.texi (Standard Pattern Names For Generation): Document
4084         sincos pattern.
4086 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4088         PR bootstrap/53555
4089         * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
4091 2012-06-04  Jason Merrill  <jason@redhat.com>
4093         * dwarf2out.c (is_unit_die): New.
4094         (copy_declaration_context, copy_ancestor_tree): Use it.
4095         (copy_decls_walk): Likewise.
4097 2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>
4099         PR c++/53524
4100         * doc/invoke.texi (Wenum-compare): Update documentation.
4102 2012-06-04  Dodji Seketeli  <dodji@redhat.com>
4104         PR preprocessor/53463
4105         * parser.c (cp_parser_assignment_expression): Use the location
4106         for the '=' as the default location for the expression.
4108 2012-06-04  Edmar Wienskoski  <edmar@freescale.com>
4110         PR target/53559
4111         * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
4112         operands.
4113         (altivec_stvlxl): Ditto.
4114         (altivec_stvrx): Ditto.
4115         (altivec_stvrxl): Ditto.
4117 2012-06-04  Vladimir Makarov  <vmakarov@redhat.com>
4119         * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
4120         (ira_uniform_class_p): New macro.
4122         * ira.c (setup_uniform_class_p): New function.
4123         (setup_allocno_and_important_classes): Call the function.
4124         (print_unform_and_important_classes): New function.
4125         (print_classes): Rename to print_translated_classes.
4126         (ira_debug_allocno_classes): Add call of
4127         print_unform_and_important_classes.
4129         * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
4130         classes instead of pressure classes.
4132 2012-06-04  Aldy Hernandez  <aldyh@redhat.com>
4134         PR middle-end/47530
4135         * trans-mem.c (expand_block_edges): Do not skip the first
4136         statement when resetting the BB.
4138 2012-06-04  Richard Guenther  <rguenther@suse.de>
4140         * tree-data-ref.c (stores_from_loop): Remove.
4141         (stmt_with_adjacent_zero_store_dr_p): Likewise.
4142         (stores_zero_from_loop): Likewise.
4143         * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
4144         stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
4145         (adjacent_store_dr_p): New function.
4146         * tree-loop-distribution.c (generate_memset_builtin): Pass
4147         the RDG, use the already available data-reference.
4148         (generate_code_for_partition): Pass down RDG.
4149         (classify_partition): Inline parts of the former
4150         stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
4151         (ldist_gen): Remember if there was any detected builtin and
4152         do less work if not and flag_tree_loop_distribution is not set.
4153         (tree_loop_distribution): Inline and fuse stores_from_loop
4154         and stores_zero_from_loop here.
4156 2012-06-04  Richard Guenther  <rguenther@suse.de>
4158         PR middle-end/53471
4159         * dwarf2out.c (dwarf2out_finish): If generating LTO do not
4160         create new assembler names.
4162 2012-06-04  Richard Guenther  <rguenther@suse.de>
4164         * tree-data-ref.c (struct rdg_vertex_info): Remove.
4165         (rdg_vertex_for_stmt): Simplify using gimple_uid.
4166         (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
4167         hashtable.  Record stmt data-references.
4168         (hash_stmt_vertex_info): Remove.
4169         (eq_stmt_vertex_info): Likewise.
4170         (hash_stmt_vertex_del): Likewise.
4171         (build_empty_rdg): Simplify.
4172         (build_rdg): Adjust.
4173         (free_rdg): Likewise.
4174         (ref_base_address): Remove.
4175         (have_similar_memory_accesses): Likewise.
4176         * tree-data-ref.h (create_rdg_vertices): Remove.
4177         (struct rdg_vertex): Add datarefs member.
4178         (RDGV_DATAREFS): New define.
4179         (RDG_DATAREFS): Likewise.
4180         (have_similar_memory_accesses): Remove.
4181         (rdg_has_similar_memory_accesses): Likewise.
4182         * tree-loop-distribution.c (ref_base_address): Re-implement here.
4183         (similar_memory_accesses): Re-implement using existing data-references.
4184         (tree_loop_distribution): Initialize stmt uids for the stmt to
4185         RDG index mapping.
4186         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
4187         access stmt vinfo for stmts in loop.
4189 2012-06-04  Andreas Schwab  <schwab@linux-m68k.org>
4191         PR target/53461
4192         * config/m68k/m68k.md ("tablejump"): Fix check for
4193         CASE_VECTOR_PC_RELATIVE.
4195 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
4197         * output.h (merge_weak, assemble_alias,
4198         initializer_constant_valid_p,
4199         initializer_constant_valid_for_bitfield_p): Move protos from here...
4200         * tree.h: ... to here.
4201         * cgraphclones.c: Do not include output.h.
4202         * gimplify.c: Likewise.
4203         * reload.c: Likewise.
4204         * recog.c: Likewise.
4205         * tree-ssa-loop-ivopts.c: Likewise.
4206         * tree-switch-conversion.c: Likewise.
4207         * c-parser.c: Likewise.
4208         * c-typeck.c: Likewise.
4209         * Makefile.in: Fix dependencies.
4211 2012-06-04  Georg-Johann Lay  <avr@gjlay.de>
4213         PR target/46261
4214         * config/avr/avr-stdint.h: New file.
4215         * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
4216         newlib-stdint.h
4218 2012-06-04  Jakub Jelinek  <jakub@redhat.com>
4220         PR tree-optimization/53550
4221         * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
4222         is POINTER_TYPE_P, use sizetype as step type instead of type.
4224 2012-06-04  Richard Guenther  <rguenther@suse.de>
4226         * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
4227         (ref_base_address_1): Likewise.
4228         (remove_similar_memory_refs): Likewise.
4229         * tree-data-ref.h (remove_similar_memory_refs): Remove.
4230         * tree-loop-distribution.c (classify_partition): Do not classify
4231         as builtin if -ftree-loop-distribute-patterns is not enabled.
4232         (fuse_partitions_with_similar_memory_accesses): Inline ...
4233         (ldist_gen): ... here.  Fuse all non-builtin partitions if
4234         -ftree-loop-distribution is not enabled.  Properly return
4235         the number of created partitions.  Do not update SSA form here but ...
4236         (tree_loop_distribution): ... once here for the whole function.
4237         Only walk innermost loops, constrain loops we consider here
4238         further.  Do not call remove_similar_memory_refs.
4239         (distribute_loop): Do not check number of loop nodes here.
4241 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
4243         * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
4245 2012-06-03  Martin Jambor  <mjambor@suse.cz>
4247         * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
4248         (ipa_get_jf_known_type_base_type): Likewise.
4249         (ipa_get_jf_known_type_component_type): Likewise.
4250         (ipa_get_jf_constant): Likewise.
4251         (ipa_get_jf_pass_through_formal_id): Likewise.
4252         (ipa_get_jf_pass_through_operation): Likewise.
4253         (ipa_get_jf_ancestor_offset): Likewise.
4254         (ipa_get_jf_ancestor_type): Likewise.
4255         (ipa_get_jf_ancestor_formal_id): Likewise.
4256         (ipa_get_jf_member_ptr_pfn): Likewise.
4257         * ipa-prop.c (ipa_set_jf_known_type): New function.
4258         (ipa_set_jf_constant): Likewise.
4259         (ipa_set_jf_simple_pass_through): Likewise.
4260         (ipa_set_jf_arith_pass_through): Likewise.
4261         (ipa_set_ancestor_jf): Likewise.
4262         (fill_member_ptr_cst_jump_function): Moved up and renamed to
4263         ipa_set_jf_member_ptr_cst.
4264         (detect_type_change_1): Use the new jump function creation functions.
4265         (compute_complex_assign_jump_func): Likewise.
4266         (compute_complex_ancestor_jump_func): Likewise.
4267         (compute_known_type_jump_func): Likewise.
4268         (compute_scalar_jump_functions): Likewise.
4269         (compute_pass_through_member_ptrs): Likewise.
4270         (determine_cst_member_ptr): Likewise.
4271         (combine_known_type_and_ancestor_jfs): Likewise.
4272         (try_make_edge_direct_simple_call): Likewise.
4273         (try_make_edge_direct_virtual_call): Likewise.
4274         (update_indirect_edges_after_inlining): Likewise.
4275         * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
4276         access functions.  Incorporat NOP_EXPR and BINFO handling from its
4277         callers.
4278         (ipa_get_jf_ancestor_result): Likewise.  Incorporate handling BINFOs
4279         which was in its callers.
4280         (ipa_value_from_jfunc): Use jump function access functions.  Some
4281         functionality moved to functions above.
4282         (propagate_vals_accross_ancestor): Likewise.
4283         (propagate_vals_accross_pass_through): Use jump function access
4284         functions.
4285         (propagate_accross_jump_function): Likewise.
4286         * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
4287         access functions.
4288         (inline_merge_summary): Likewise.
4290 2012-06-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4292         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
4293         * config/pa/pa.c (pa_attr_length_millicode_call): Use
4294         MAX_PCREL17F_OFFSET instead of fixed offset.
4295         (pa_attr_length_call): Likewise.
4296         (pa_attr_length_indirect_call): Likewise.
4298 2012-06-03  Oleg Endo  <olegendo@gcc.gnu.org>
4300         PR target/53512
4301         * config/sh/sh.opt (mfsca, mfsrra): New options.
4302         * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
4303         condition.
4304         (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
4305         (sinssf2, cossf2): Fold expanders to ...
4306         (sincossf3): ... this new expander.  Use TARGET_FPU_ANY and
4307         TARGET_FSCA condition.
4308         * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
4309         TARGET_FSCA.
4310         * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
4311         -mno-fsca, -mfsrra, -mno-fsrra.
4313 2012-06-03  Matt Turner  <mattst88@gmail.com>
4315         * config/mips/4600.md (r4700_imul_si): New.
4316         (r4700_imul_di): New.
4317         (r4700_fmul_single): New.
4318         (r4700_fmul_double): New.
4319         * config/mips/mips-cpus.def: Add r4700.
4320         * config/mips/mips.c: Likewise.
4321         * config/mips/mips.md: Likewise.
4322         * config/mips/mips-tables.opt: Regenerate.
4324 2012-06-02  Steven Bosscher  <steven@gcc.gnu.org>
4326         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
4327         new function sparc_initial_elimination_offset.
4328         * config/sparc/sparc.c (sparc_initial_elimination_offset): New
4329         function.
4330         * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
4331         Prototype it.
4333 2012-06-02  Kenneth Zadeck <zadeck@naturalbridge.com>
4335         * expmed.c (expand_mult, choose_multiplier): Change
4336         "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
4337         * expr.c (convert_modes): Likewise.
4338         * explow.c (plus_constant): Likewise.
4339         * fixed-value.c (fixed_saturate1, fixed_saturate2)
4340         (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
4341         (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
4342         (do_fixed_divide, do_fixed_divide, do_fixed_divide)
4343         (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
4344         (do_fixed_shift, fixed_convert, fixed_convert)
4345         (fixed_convert_from_int, fixed_convert_from_int)
4346         (fixed_convert_from_real): Likewise.
4347         * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
4348         (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
4349         * varasm.c (output_constructor_bitfield): Likewise.
4350         * tree-vrp.c (register_edge_assert_for_2): Likewise.
4351         * double-int.c (rshift_double, lshift_double): Likewise.
4352         * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
4353         Likewise.
4354         * simplify-rtx.c (mode_signbit_p)
4355         (simplify_const_unary_operation, simplify_binary_operation_1)
4356         (simplify_immed_subreg): Likewise.
4357         * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
4358         * tree-vect-generic.c (build_replicated_const): Likewise.
4359         * dbxout.c (stabstr_O): Likewise.
4360         * emit-rtl.c (immed_double_int_const, immed_double_const)
4361         (gen_lowpart_common, init_emit_once): Likewise.
4362         * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
4363         (widest_int_cst_value, upper_bound_in_type): Likewise.
4364         * stor-layout.c (initialize_sizetypes, fixup_signed_type)
4365         (fixup_unsigned_type): Likewise.
4366         * real.c (real_to_integer2, real_from_integer): Likewise.
4367         * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
4368         (clz_loc_descriptor, mem_loc_descriptor): Likewise.
4370 2012-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4372         PR middle-end/53501
4373         * fold-const.c (fold_binary_loc): Refine previous change.
4375 2012-06-01  Olivier Hainque  <hainque@adacore.com>
4377         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
4378         the "do {" part of the do-while(0) loop.
4380 2012-06-01  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
4382         * config/i386/i386.c (x86_sched_reorder): New function.
4383         Added new function x86_sched_reorder.
4385 2012-06-01  Richard Guenther  <rguenther@suse.de>
4387         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
4388         Handle PHIs.
4389         (classify_partition): Likewise.
4391 2012-06-01  Richard Guenther  <rguenther@suse.de>
4393         * tree-loop-distribution.c (enum partition_kind): New enum.
4394         (struct partition_s): Add kind and main_stmt members.
4395         (partition_alloc): Initialize kind to PKIND_NORMAL.
4396         (partition_builtin_p): New function.
4397         (copy_loop_before): Remove failure path and assert instead.
4398         (generate_loops_for_partition): Likewise.
4399         (generate_memset_zero): Fold into ...
4400         (generate_memset_builtin): ... this.
4401         (classify_partition): New function with code from
4402         can_generate_builtin and generate_builtin.
4403         (generate_builtin): Remove.
4404         (can_generate_builtin): Likewise.
4405         (fuse_partitions_with_similar_memory_accesses): Call
4406         partition_builtin_p instead of can_generate_builtin.
4407         (rdg_build_partitions): Do not call
4408         fuse_partitions_with_similar_memory_accesses here...
4409         (ldist_gen): ... but here after classifying all partitions.
4410         Remove failure path of generate_code_for_partition.
4411         (generate_code_for_partition): Generate code according
4412         to partition classification.
4414 2012-06-01  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4415             Jonathan Wakely  <jwakely.gcc@gmail.com>
4417         PR c++/50134
4418         * doc/invoke.texi (Warning Options): Explain purpose and differences
4419         between -Wmissing-prototypes and -Wmissing-declarations.
4421 2012-06-01  Christian Bruel  <christian.bruel@st.com>
4423         * gcc.c (save_switch): Add user_p parameter.
4424         (read_specs): Likewise.
4425         (set_specs): Likewise.
4426         (validate_switches): Likewise.
4427         (validate_switches_from_spec): Likewise.
4428         (validate_all_switches): Pass on user_p parameter.
4429         (struct spec_list): Add user_p field.
4430         (struct switchstr): Add known field.
4431         (save_switch): Add known parameter.
4432         (INIT_STATIC_SPEC): Initialize user_p;
4433         (driver_unknown_option_callbac): call save_switch if
4434         OPT_SPECIAL_unknown.
4435         (driver_handle_option): Propagate OPT_specs.
4436         (do_spec_1): Set validated only if known.
4437         (check_live_switch): Likewise.
4438         (validate_switches): Set validated if known or user_spec.
4440 2012-06-01  Hans-Peter Nilsson  <hp@axis.com>
4442         Add CRIS atomic patterns for 1, 2, and 4 bytes.
4443         * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
4444         * config/cris/cris-protos.h: Declare it.
4445         * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
4446         (TARGET_DEFAULT): Add alignment by 32.
4447         [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
4448         case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
4449         TARGET_CPU_DEFAULT == 32.
4450         (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
4451         * config/cris/cris.md: Include sync.md.  Avoid allocating specific
4452         numbers by replacing the define_constants for all UNSPECs with the
4453         equivalent define_c_enum construct.
4454         * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
4455         * config/cris/sync.md: New file.
4457 2012-05-31  Matt Turner  <mattst88@gmail.com>
4459         * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
4460         (r4600_imul_di): New.
4461         (r4600_idiv_si): Rename from r4600_idiv.
4462         (r4600_idiv_di): New.
4464 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
4466         * output.h (__gcc_host_wide_int__): Move to hwint.h.
4467         (decl_default_tls_model): Move to tree.h
4468         (dump_file): Move to system.h.
4469         (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
4470         dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
4471         dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
4472         dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
4473         dbxout_stab_value_zero, dbxout_stab_value_label_diff,
4474         dbxout_stab_value_internal_label,
4475         dbxout_stab_value_internal_label_diff): Move from here ...
4476         * dbxout.h: ... to here.
4477         * system.h (dump_file): Moved here from output.h.
4478         * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
4479         * tree.h (decl_default_tls_model): Moved here from output.h.
4480         * varasm.c (default_stabs_asm_out_destructor,
4481         default_stabs_asm_out_constructor): Move from here ...
4482         * dbxout.c: ... to here.
4484         * gcov-dump.c (dump_file): Rename to dump_gcov_file.  Update callers.
4486         * collect2.h (dump_file): Rename to dump_ld_file.
4487         * collect2.c: Likewise.
4488         * tlink.c: Likewise.
4490         * alias.c: Do not include output.h.
4491         * auto-inc-dec.c: Likewise.
4492         * bt-load.c: Likewise.
4493         * caller-save.c: Likewise.
4494         * cfg.c: Likewise.
4495         * cfgbuild.c: Likewise.
4496         * cfgcleanup.c: Likewise.
4497         * cfglayout.c: Likewise.
4498         * cfgloop.c: Likewise.
4499         * cfgloopanal.c: Likewise.
4500         * cfgloopmanip.c: Likewise.
4501         * cfgrtl.c: Likewise.
4502         * cgraph.c: Likewise.
4503         * cgraphclones.c: Likewise.
4504         * combine-stack-adj.c: Likewise.
4505         * combine.c: Likewise.
4506         * cprop.c: Likewise.
4507         * cse.c: Likewise.
4508         * cselib.c: Likewise.
4509         * dbgcnt.c: Likewise.
4510         * df-problems.c: Likewise.
4511         * df-scan.c: Likewise.
4512         * dojump.c: Likewise.
4513         * fwprop.c: Likewise.
4514         * gcse.c: Likewise.
4515         * graph.c: Likewise.
4516         * haifa-sched.c: Likewise.
4517         * hw-doloop.c: Likewise.
4518         * ipa-inline-transform.c: Likewise.
4519         * ipa-pure-const.c: Likewise.
4520         * ipa-reference.c: Likewise.
4521         * ipa-utils.c: Likewise.
4522         * ira-build.c: Likewise.
4523         * ira-emit.c: Likewise.
4524         * lcm.c: Likewise.
4525         * loop-doloop.c: Likewise.
4526         * loop-invariant.c: Likewise.
4527         * loop-iv.c: Likewise.
4528         * loop-unroll.c: Likewise.
4529         * loop-unswitch.c: Likewise.
4530         * lto-cgraph.c: Likewise.
4531         * lto-section-in.c: Likewise.
4532         * lto-streamer-in.c: Likewise.
4533         * mcf.c: Likewise.
4534         * mode-switching.c: Likewise.
4535         * postreload-gcse.c: Likewise.
4536         * postreload.c: Likewise.
4537         * predict.c: Likewise.
4538         * profile.c: Likewise.
4539         * ree.c: Likewise.
4540         * reg-stack.c: Likewise.
4541         * regcprop.c: Likewise.
4542         * regmove.c: Likewise.
4543         * regstat.c: Likewise.
4544         * reload1.c: Likewise.
4545         * sched-ebb.c: Likewise.
4546         * sel-sched-dump.c: Likewise.
4547         * simplify-rtx.c: Likewise.
4548         * stor-layout.c: Likewise.
4549         * store-motion.c: Likewise.
4550         * tracer.c: Likewise.
4551         * tree-affine.c: Likewise.
4552         * tree-cfg.c: Likewise.
4553         * tree-cfgcleanup.c: Likewise.
4554         * tree-dfa.c: Likewise.
4555         * tree-into-ssa.c: Likewise.
4556         * tree-nomudflap.c: Likewise.
4557         * tree-optimize.c: Likewise.
4558         * tree-pretty-print.c: Likewise.
4559         * tree-profile.c: Likewise.
4560         * tree-ssa-address.c: Likewise.
4561         * tree-ssa-ccp.c: Likewise.
4562         * tree-ssa-copy.c: Likewise.
4563         * tree-ssa-dom.c: Likewise.
4564         * tree-ssa-loop-ch.c: Likewise.
4565         * tree-ssa-loop-im.c: Likewise.
4566         * tree-ssa-loop-manip.c: Likewise.
4567         * tree-ssa-loop-niter.c: Likewise.
4568         * tree-ssa-loop-prefetch.c: Likewise.
4569         * tree-ssa-loop-unswitch.c: Likewise.
4570         * tree-ssa-loop.c: Likewise.
4571         * tree-ssa-propagate.c: Likewise.
4572         * tree-ssa-structalias.c: Likewise.
4573         * tree-ssa-tail-merge.c: Likewise.
4574         * tree-ssa-threadedge.c: Likewise.
4575         * tree-ssa-threadupdate.c: Likewise.
4576         * tree-ssa-uncprop.c: Likewise.
4577         * tree-ssa-uninit.c: Likewise.
4578         * tree-ssa.c: Likewise.
4579         * value-prof.c: Likewise.
4580         * var-tracking.c: Likewise.
4581         * web.c: Likewise.
4583         * config/m32r/m32r.c: Include dbxout.h.
4584         * config/pa/pa.c: Likewise.
4585         * config/rs6000/rs6000.c: Likewise.
4587         * Makefile.in: Fix dependencies.
4588         * config/rs6000/t-rs5000: Likewise.
4590 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
4592         * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
4593         * gimple.h (block_in_transaction): Check for flag_tm.
4595 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
4597         PR tree-optimization/52558
4598         * cfg.c (alloc_aux_for_edge): Fix comment.
4599         (alloc_aux_for_edge): Remove static.
4600         * basic-block.h (alloc_aux_for_edge): Protoize.
4601         * tree-ssa-loop-im.c (execute_sm_if_changed): New.
4602         (execute_sm_if_changed_flag): New.
4603         (execute_sm_if_changed_flag_set): New.
4604         (execute_sm): Do not generate data races unless requested.
4605         (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
4606         (tree_ssa_lim_finalize): Call free_aux_for_edges.
4607         * gimple.h (block_in_transaction): New.
4608         (gimple_in_transaction): Use block_in_transaction.
4610 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
4612         PR target/51345
4613         * config/avr/avr.opt (-msp8): Document it.
4614         * doc/invoke.texi (AVR Options): Ditto.  And document related
4615         built-in macros.
4617 2012-05-31  Diego Novillo  <dnovillo@google.com>
4619         * configure.ac (CXX_FOR_BUILD): Define and substitute.
4620         (BUILD_CXXFLAGS): Define and substitute.
4621         * Makefile.in (BUILD_CXXFLAGS): Define.
4622         (CXX_FOR_BUILD): Define.
4623         (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
4624         (LINKER_FOR_BUILD): Likewise.
4625         (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
4626         (BUILD_LINKERFLAGS): Likewise.
4627         * configure: Regenerate.
4629 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
4631         * Makefile.in: Fix many dependencies.
4632         * tree-profile.c: Don't include regs.h.
4633         * tree-vectorizer.c: Don't include cfglayout.h.
4634         * tree-vect-stmts.c: Likewise.
4635         * tree-vect-slp.c: Likewise.
4636         * tree-vect-loop.c: Likewise.
4637         * reg-stack.c: Likewise.
4638         * tree-ssa-loop-manip.c: Likewise.
4639         * toplev.c: Likewise.
4640         * varasm.c: Don't include cfglayout.h, basic-block.h,
4641         and tree-iterator.h.
4642         * tree-cfgcleanup.c: Don't include cfglayout.h.
4643         * passes.c: Don't include cfglayout.h, dwarf2asm.h,
4644         dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
4645         * cgraphclones.c: Don't include plugin.h.
4647 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
4649         * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
4650         (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
4651         * doc/avr-mmcu.texi (svn:eol-style): Set to native.
4653 2012-05-31  Richard Guenther  <rguenther@suse.de>
4655         * tree-loop-distribution.c (struct partition_s): New struct,
4656         typedef and vector type.
4657         (partition_alloc, partition_free): New functions.
4658         (generate_loops_for_partition, generate_builtin,
4659         generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
4660         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
4661         build_rdg_partition_for_component, can_generate_builtin,
4662         similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
4663         rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
4664         number_of_rw_in_partition, partition_contains_all_rw,
4665         ldist_gen): Use partition_t instead of bitmap.
4667 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
4669         * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
4670         * doc/avr-mmcu.texi: Regenerate.
4672 2012-05-31  Richard Guenther  <rguenther@suse.de>
4674         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
4675         Use FOR_EACH_SSA_DEF_OPERAND.
4676         (generate_builtin): Adjust.
4677         (stmt_generated_in_another_partition): Remove.
4678         (add_scalar_computations_to_partition): Likewise.
4679         (rdg_build_partitions): Do not call
4680         add_scalar_computations_to_partition.
4682 2012-05-31  Eric Botcazou  <ebotcazou@adacore.com>
4684         * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
4685         double ints throughout.
4686         * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
4687         Check that the position of the field is representable as an integer.
4689 2012-05-31  Richard Guenther  <rguenther@suse.de>
4691         * tree-data-ref.c (dr_analyze_innermost): Properly convert
4692         the MEM_REF offset to sizetype.
4694 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
4696         * doc/invoke.texi (AVR Options): Fix typos.
4698 2012-05-31  Hans-Peter Nilsson  <hp@axis.com>
4700         * config/cris/cris.h (CC1_SPEC): Pass through all -march=
4701         and -mcpu= options.
4702         (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
4703         non-v32 into --march=v0_v10.
4705 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4707         * ira-int.h (target_ira_int): Rename x_move_cost to
4708         x_ira_register_move_cost, x_may_move_in_cost to
4709         x_ira_may_move_in_cost and x_may_move_out_cost to
4710         x_ira_may_move_out_cost.  Delete the old fields with
4711         those names and also x_ira_max_register_move_cost,
4712         x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
4713         (move_cost, may_move_in_cost, may_move_out_cost)
4714         (ira_max_register_move_cost, ira_max_may_move_in_cost)
4715         (ira_max_may_move_out_cost): Delete.
4716         * ira.c (init_move_cost): Rename to...
4717         (ira_init_register_move_cost): ...this, deleting the old
4718         function with that name.  Apply above variable renamings.
4719         Retain asserts for null fields.
4720         (ira_init_once): Don't initialize register move costs here.
4721         (free_register_move_costs): Apply above variable renamings.
4722         Remove code for deleted fields.
4724 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4726         * ira.c (init_move_cost): Adjust choice of subclasses to match
4727         the current ira_init_register_move_cost choice.  Use
4728         ira_class_subset_p instead of reg_class_subset_p.
4729         (ira_init_register_move_cost): Assert that move_cost,
4730         may_move_in_cost and may_move_out_cost already hold the desired
4731         values for their ira_* equivalents.  For the latter two,
4732         ignore classes that can't store a register of the given mode.
4734 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4736         * ira.c (setup_allocno_and_important_classes): Use
4737         ira_class_hard_regs_num to check whether a class has any
4738         allocatable registers.
4739         (ira_init_register_move_cost): Likewise.
4741 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4743         * ira.c (init_move_cost): Adjust local variable names to match
4744         file conventions.  Use ira_assert instead of gcc_assert.
4746 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4748         * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
4749         Move these definitions and associated target_globals fields to...
4750         * ira-int.h: ...here.
4751         * rtl.h (init_move_cost): Delete.
4752         * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
4753         * ira.c: ...here, making the latter static.
4755 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4757         * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
4758         and ira_register_move_cost instead of init_move_cost and move_cost.
4760 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4762         * ira.h (target_ira): Delete x_ira_available_class_regs.
4763         (ira_available_class_regs): Delete.
4764         * ira.c (setup_available_class_regs): Delete.
4765         (setup_alloc_classes): Don't call it.
4766         (setup_pressure_classes): Use ira_class_hard_regs_num instead of
4767         ira_available_class_regs.
4768         * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
4769         (model_spill_cost): Likewise.
4770         * ira-build.c (low_pressure_loop_node_p): Likewise.
4771         * ira-color.c (color_pass): Likewise.
4772         * ira-emit.c (change_loop): Likewise.
4773         * ira-lives.c (inc_register_pressure, dec_register_pressure)
4774         (single_reg_class, ira_implicitly_set_insn_hard_regs)
4775         (process_bb_node_lives): Likewise.
4776         * loop-invariant.c (gain_for_invariant): Likewise.
4778 2012-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4780         PR target/52999
4781         * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
4782         (pa_section_type_flags): New.
4783         (pa_legitimate_constant_p): Revert previous change.
4785 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
4787         * ira.c (allocate_initial_values): Make static.
4789 2012-05-30  Uros Bizjak  <ubizjak@gmail.com>
4791         * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
4792         Generate tls_initial_exec_64_sun only when !TARGET_X32.
4794 2012-05-30  Richard Guenther  <rguenther@suse.de>
4796         PR middle-end/53501
4797         * fold-const.c (fold_binary_loc): Make sure to call
4798         fold_plusminus_mult_expr with the original sign of operands.
4800 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
4802         * Makefile.in: Fix many dependencies.
4803         (DWARF2_H): Depend on dwarf2.def.
4804         (RTL_ERROR_H): Depend on rtl-error.h.
4805         (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New.  Replace
4806         all gimple-pretty-print.h and tree-pretty-print.h references.
4808 2012-05-30  Marc Glisse  <marc.glisse@inria.fr>
4810         * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
4811         concatenations.
4813 2012-05-30  Richard Guenther  <rguenther@suse.de>
4815         PR middle-end/53522
4816         * tree-emutls.c (gen_emutls_addr): Do not add globals to
4817         referenced-vars.
4819 2012-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4821         * explow.c (probe_stack_range): Restore simple control flow and stop
4822         again when the probe cannot be generated if HAVE_check_stack.
4824 2012-05-30  Jakub Jelinek  <jakub@redhat.com>
4826         PR rtl-optimization/53519
4827         * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
4828         instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
4830 2012-05-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4832         * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
4834 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
4836         PR debug/53453
4837         * doc/tm.texi: Update.
4838         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
4839         * target.def (force_at_comp_dir): New hook.
4840         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
4841         * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
4843 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
4845         * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
4846         Darwin >= 10.
4847         (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
4848         (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
4850 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
4852         PR target/51340
4853         * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
4854         flag_unsafe_math_optimizations is set.
4855         * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
4856         Update description of -mfused-madd.
4858 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
4860         PR target/52941
4861         * config/sh/predicates.md (atomic_arith_operand,
4862         atomic_logical_operand): New predicates.
4863         * config/sh/sh.c (sh_option_override): Check atomic options.
4864         * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
4865         UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
4866         (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
4867         UNSUPPORTED_HARD_ATOMIC_CPU.
4868         * config/sh/sync.md: Update description comments.
4869         (I12): New mode iterator.
4870         (fetchop_predicate, fetchop_constraint): New code attributes.
4871         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
4872         atomic_exchangesi_hard, atomic_exchange<mode>_hard,
4873         atomic_fetch_<fetchop_name>si_hard,
4874         atomic_fetch_<fetchop_name><mode>_hard,
4875         atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
4876         atomic_<fetchop_name>_fetchsi_hard,
4877         atomic_<fetchop_name>_fetch<mode>_hard,
4878         atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
4879         atomic_test_and_set_hard): New insns.
4880         (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
4881         atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
4882         atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
4883         atomic_test_and_set_soft): Use same formatting for the first line of
4884         the asm block as in new insns above.
4885         (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
4886         atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
4887         atomic_test_and_set): Integrate new *_hard insns into expanders.
4888         * config/sh/sh.opt (mhard-atomic): New option.
4889         * doc/invoke.texi (SH Options): Document it.
4891 2012-05-29  Meador Inge  <meadori@codesourcery.com>
4893         * c-decl.c (c_push_function_context): Always create a new language
4894         function.
4895         (c_pop_function_context): Clear the language function created in
4896         c_push_function_context.
4898 2012-05-29  Matt Turner  <mattst88@gmail.com>
4900         * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
4901         (define_bypass "ev6_fcmov"): New.
4903 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
4905         * integrate.c: Remove.
4906         * integrate.h: Remove.
4907         * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
4908         * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
4909         * config/rs6000/t-rs6000: Likewise
4910         * config/spu/t-spu-elf: Likewise.
4911         * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
4912         get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
4913         from integrate.h to here.
4914         (initial_value_entry): New prototype.
4915         * reload.h (allocate_initial_values): Remove prototype.
4916         * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
4917         * cse.c (fixed_base_plus_p): Don't handle virtual registers for
4918         integrate.c.
4919         * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
4920         set_decl_abstract_flags, set_block_abstract_flags): Move from
4921         integrate.c to here, the only user.
4922         * expmed.c (extract_fixed_bit_field): Remove outdated comment
4923         about integrate.c.
4924         * function.c: Don't include integrate.h.
4925         (struct initial_value_pair, struct initial_value_struct,
4926         get_hard_reg_initial_val, has_hard_reg_initial_val,
4927         get_hard_reg_initial_reg, emit_initial_value_sets): Move from
4928         integrate.c to here.
4929         (initial_value_entry): New function.
4930         * genemit.c (main): Don't print integrate.h include line.
4931         * ira.c: Don't include integrate.h.
4932         (allocate_initial_values): Move from integrate.c to here.
4933         (ira): Update allocate_initial_values call.
4934         * tree-inline.c: Don't include integrate.h.
4935         (function_attribute_inlinable_p): Moved from integrate.c to here.
4936         * cfgexpand.c: Don't include integrate.h.
4937         * except.c: Likewise.
4938         * langhooks.c: Likewise.
4939         * passes.c: Likewise.
4940         * toplev.c: Likewise.
4941         * config/frv/frv.c: Likewise.
4942         * config/pa/pa.c: Likewise.
4943         * config/spu/spu.c: Likewise.
4944         * config/epiphany/epiphany.c: Likewise.
4945         * config/mep/mep.c: Likewise.
4946         * config/score/score.c: Likewise.
4947         * config/picochip/picochip.c: Likewise.
4948         * config/sh/sh.c: Likewise.
4949         * config/alpha/alpha.c: Likewise.
4950         * config/microblaze/microblaze.c: Likewise.
4951         * config/mips/mips.c: Likewise.
4952         * config/v850/v850.c: Likewise.
4953         * config/mmix/mmix.c: Likewise.
4954         * config/bfin/bfin.c: Likewise.
4955         * config/arm/arm.c: Likewise.
4956         * config/s390/s390.c: Likewise.
4957         * config/m32r/m32r.c: Likewise.
4958         * config/rs6000/rs6000.c: Likewise.
4959         * config/c6x/c6x.c: Include function.h instead of integrate.h.
4960         * config/tilegx/tilegx.c: Likewise.
4961         * config/tilepro/tilepro.c: Likewise.
4963 2012-05-29  Georg-Johann Lay  <avr@gjlay.de>
4965         * config/avr/t-avr (s-avr-mmcu-texi): Call
4966         gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
4968 2012-05-29  Michael Matz  <matz@suse.de>
4970         * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
4971         assign_temp): Remove 'keep' argument.
4972         (mark_temp_addr_taken): Remove prototype.
4973         * tree.h (expand_decl): Remove prototype.
4974         * function.c (struct temp_slot): Remove addr_taken and keep member.
4975         (assign_stack_temp_for_type) Don't initialize above, remove
4976         keep argument.
4977         (assign_stack_temp, assign_temp): Remove keep argument.
4978         (mark_temp_addr_taken): Remove.
4979         (preserve_temp_slots): Remove handling of addr_taken and keep members.
4980         (free_temp_slots): Ditto.
4981         * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
4982         dead code.
4983         * stmt.c (expand_asm_operands): Remove dead code.
4984         (expand_decl): Remove.
4985         * c-decl.c (finish_struct): Don't call expand_decl.
4986         * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
4987         and assign_stack_temp.
4988         * calls.c (save_fixed_argument_area, initialize_argument_information,
4989         expand_call, emit_library_call_value_1, store_one_arg): Ditto.
4990         * expmed.c (extract_bit_field_1): Ditto.
4991         * expr.c (emit_group_load_1, emit_group_store,
4992         copy_blkmode_from_reg, emit_push_insn, expand_assignment,
4993         store_field, expand_constructor, expand_cond_expr_using_cmove,
4994         expand_expr_real_2, expand_expr_real_1): Ditto.
4995         * stmt.c (expand_asm_operands, expand_return): Ditto.
4997         * function.c (pop_temp_slots): Call free_temp_slots.
4998         * calls.c (store_one_arg): Don't call preserve_temp_slots or
4999         free_temp_slots.
5000         * expr.c (expand_assignment): Don't call free_temp_slots.
5002         * config/arm/arm.c (neon_expand_vector_init): Ditto.
5003         * config/i386/i386.c (ix86_expand_vector_set): Ditto.
5004         (ix86_expand_vector_extract): Ditto.
5005         * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
5006         ia64_expand_movxf_movrf): Ditto.
5007         * config/mips/mips.c (mips_expand_vi_general): Ditto.
5008         * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
5009         extendsfdf2): Ditto.
5010         * config/rs6000/rs6000.c (rs6000_expand_vector_init,
5011         rs6000_expand_vector_set, rs6000_expand_vector_extract,
5012         rs6000_allocate_stack_temp): Ditto.
5013         * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
5014         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5015         sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
5016         sparc_expand_vector_init): Ditto.
5018 2012-05-29  Michael Matz  <matz@suse.de>
5020         * c-tree.h (c_expand_decl): Remove prototype.
5022         * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
5023         a kept temp.
5024         (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
5025         * gimple-fold.c (canonicalize_constructor_val): Canonicalize
5026         COMPOUND_LITERAL_EXPR.
5027         * function.c (expand_function_start): Don't call expand_decl,
5028         instead assert that we have RTL assigned.
5029         * tree-ssa-live.c (remove_unused_locals): Clear
5030         nonlocal_goto_save_area if its backing variable is removed.
5031         * stmt.c (expand_asm_operands): Remove handling of non-lvalues
5032         as mem inputs.
5033         (expand_decl): Assert that this does nothing.
5034         * calls.c (expand_call): Don't call mark_temp_addr_taken.
5036 2012-05-29  Richard Guenther  <rguenther@suse.de>
5038         PR tree-optimization/53516
5039         * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
5040         bitfield accesses.
5041         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5043 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
5045         * LANGUAGES: Fix typos.
5046         * Makefile.in: Fix typos.
5047         * alias.c: Fix typos.
5048         * auto-inc-dec.c: Fix typos.
5049         * bb-reorder.c: Fix typos.
5050         * cfgcleanup.c: Fix typos.
5051         * cgraph.c: Fix typos.
5052         * cgraph.h: Fix typos.
5053         * cgraphunit.c: Fix typos.
5054         * collect2-aix.h: Fix typos.
5055         * collect2.c: Fix typos.
5056         * compare-elim.c: Fix typos.
5057         * config/alpha/vms.h: Fix typos.
5058         * config/arm/README-interworking: Fix typos.
5059         * config/arm/arm.c: Fix typos.
5060         * config/arm/iterators.md: Fix typos.
5061         * config/arm/vxworks.h: Fix typos.
5062         * config/avr/avr.c: Fix typos.
5063         * config/avr/avr.h: Fix typos.
5064         * config/avr/avr.md: Fix typos.
5065         * config/avr/builtins.def: Fix typos.
5066         * config/c6x/c6x.c: Fix typos.
5067         * config/cr16/cr16.c: Fix typos.
5068         * config/cr16/cr16.md: Fix typos.
5069         * config/cris/cris.md: Fix typos.
5070         * config/darwin.c: Fix typos.
5071         * config/darwin.opt: Fix typos.
5072         * config/i386/i386-c.c: Fix typos.
5073         * config/i386/i386.c: Fix typos.
5074         * config/ia64/ia64.c: Fix typos.
5075         * config/m68k/cf.md: Fix typos.
5076         * config/mep/mep.c: Fix typos.
5077         * config/microblaze/microblaze.c: Fix typos.
5078         * config/microblaze/microblaze.h: Fix typos.
5079         * config/mn10300/mn10300.c: Fix typos.
5080         * config/mn10300/mn10300.md: Fix typos.
5081         * config/pa/pa.c: Fix typos.
5082         * config/picochip/picochip.h: Fix typos.
5083         * config/rs6000/a2.md: Fix typos.
5084         * config/rs6000/rs6000.c: Fix typos.
5085         * config/rs6000/vector.md: Fix typos.
5086         * config/rx/rx.md: Fix typos.
5087         * config/rx/rx.opt: Fix typos.
5088         * config/s390/2097.md: Fix typos.
5089         * config/s390/s390.c: Fix typos.
5090         * config/s390/s390.h: Fix typos.
5091         * config/sh/sh.c: Fix typos.
5092         * config/sh/sh.md: Fix typos.
5093         * config/sparc/sync.md: Fix typos.
5094         * config/spu/spu.c: Fix typos.
5095         * config/spu/spu.md: Fix typos.
5096         * config/vms/vms.c: Fix typos.
5097         * config/vxworks-dummy.h: Fix typos.
5098         * config/vxworks.h: Fix typos.
5099         * cselib.c: Fix typos.
5100         * df-scan.c: Fix typos.
5101         * df.h: Fix typos.
5102         * doc/extend.texi: Fix typos.
5103         * doc/install.texi: Fix typos.
5104         * doc/invoke.texi: Fix typos.
5105         * doc/md.texi: Fix typos.
5106         * doc/plugins.texi: Fix typos.
5107         * doc/rtl.texi: Fix typos.
5108         * dse.c: Fix typos.
5109         * dwarf2asm.c: Fix typos.
5110         * dwarf2out.c: Fix typos.
5111         * except.h: Fix typos.
5112         * expr.c: Fix typos.
5113         * fold-const.c: Fix typos.
5114         * gcc.c: Fix typos.
5115         * gcse.c: Fix typos.
5116         * genautomata.c: Fix typos.
5117         * gengtype-state.c: Fix typos.
5118         * gengtype.c: Fix typos.
5119         * genhooks.c: Fix typos.
5120         * gimple-fold.c: Fix typos.
5121         * gimple-pretty-print.c: Fix typos.
5122         * gimple.c: Fix typos.
5123         * gimple.h: Fix typos.
5124         * gimplify.c: Fix typos.
5125         * graphite-interchange.c: Fix typos.
5126         * graphite-sese-to-poly.c: Fix typos.
5127         * ifcvt.c: Fix typos.
5128         * input.c: Fix typos.
5129         * ipa-cp.c: Fix typos.
5130         * ipa-inline-analysis.c: Fix typos.
5131         * ipa-inline-transform.c: Fix typos.
5132         * ipa-inline.c: Fix typos.
5133         * ipa-pure-const.c: Fix typos.
5134         * ipa-ref.h: Fix typos.
5135         * ipa-reference.c: Fix typos.
5136         * ipa-utils.c: Fix typos.
5137         * ipa.c: Fix typos.
5138         * ira-emit.c: Fix typos.
5139         * ira-lives.c: Fix typos.
5140         * lto-streamer.c: Fix typos.
5141         * lto-streamer.h: Fix typos.
5142         * lto-wrapper.c: Fix typos.
5143         * mcf.c: Fix typos.
5144         * mode-switching.c: Fix typos.
5145         * modulo-sched.c: Fix typos.
5146         * plugin.c: Fix typos.
5147         * postreload.c: Fix typos.
5148         * sched-deps.c: Fix typos.
5149         * sel-sched-ir.c: Fix typos.
5150         * sel-sched-ir.h: Fix typos.
5151         * sel-sched.c: Fix typos.
5152         * sese.c: Fix typos.
5153         * stor-layout.c: Fix typos.
5154         * target-hooks-macros.h: Fix typos.
5155         * target.def: Fix typos.
5156         * trans-mem.c: Fix typos.
5157         * tree-eh.c: Fix typos.
5158         * tree-predcom.c: Fix typos.
5159         * tree-sra.c: Fix typos.
5160         * tree-ssa-address.c: Fix typos.
5161         * tree-ssa-loop-ivopts.c: Fix typos.
5162         * tree-ssa-loop-niter.c: Fix typos.
5163         * tree-ssa-math-opts.c: Fix typos.
5164         * tree-ssa-pre.c: Fix typos.
5165         * tree-ssa-propagate.c: Fix typos.
5166         * tree-ssa-reassoc.c: Fix typos.
5167         * tree-ssa-sccvn.c: Fix typos.
5168         * tree-ssa-ter.c: Fix typos.
5169         * tree-ssa-uninit.c: Fix typos.
5170         * tree-ssanames.c: Fix typos.
5171         * tree-vect-generic.c: Fix typos.
5172         * tree-vect-slp.c: Fix typos.
5173         * tree.c: Fix typos.
5174         * tree.h: Fix typos.
5175         * varasm.c: Fix typos.
5176         * varpool.c: Fix typos.
5178 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
5180         * doc/include/texinfo.tex: Update to version 2012-05-16.16.
5182 2012-05-29  Richard Guenther  <rguenther@suse.de>
5184         * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
5185         for globals.
5186         (add_referenced_var_1): Re-organize.  Assert we are not
5187         called for globals.
5188         (remove_referenced_var): Likewise.
5189         * varpool.c (add_new_static_var): Use create_tmp_var_raw.
5190         * tree-mudflap.c (execute_mudflap_function_ops): Do not
5191         call add_referenced_var on globals.
5192         * matrix-reorg.c (transform_access_sites): Likewise.
5194 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
5196         * alias.c (reg_known_value): Make this a VEC.
5197         (reg_known_equiv_p): Make this an sbitmap.
5198         (reg_known_value_size): Remove.
5199         (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
5200         set_reg_known_equiv_p): Update for reg_known_value and
5201         reg_known_value_size data structure change.
5202         (init_alias_analysis, end_alias_analysis): Likewise.
5204 2012-05-29  Jakub Jelinek  <jakub@redhat.com>
5206         PR middle-end/53510
5207         * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
5208         to avoid leaking memory.  No need to handle memory allocation
5209         failure.  Double string_len on each reallocation instead of adding 2.
5210         * gcov.c (read_line): Likewise.
5212 2012-05-29  Hans-Peter Nilsson  <hp@axis.com>
5214         * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
5215         New macros.
5216         * config/cris/cris.md ("trap"): Define, enabled for
5217         TARGET_TRAP_USING_BREAK8.
5218         * config/cris/cris.opt (mtrap-using-break8): New option.
5220 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
5222         PR c++/25137
5223         * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
5224         for C++.
5226 2012-05-28  Hans-Peter Nilsson  <hp@axis.com>
5228         * doc/md.texi (stack_protect_test): Remove negation of branch to label.
5229         (Standard Names): Fix typos in documentation of atomic patterns.
5231 2012-05-27  Nathan Sidwell  <nathan@acm.org>
5233         * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
5235 2012-05-26  Jason Merrill  <jason@redhat.com>
5237         PR c++/53220
5238         * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
5239         about array compound literals.
5241 2012-05-26  Eric Botcazou  <ebotcazou@adacore.com>
5243         * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
5244         if CLEANUP_NO_INSN_DEL.
5245         * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
5246         from cfg_layout_merge_blocks.
5247         (emit_nop_for_unique_locus_between): New function.
5248         (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
5249         (cfg_layout_merge_blocks): Likewise.
5251 2012-05-26  Dimitrios Apostolou  <jimis@gmx.net>
5252             Paolo Bonzini  <bonzini@gnu.org>
5254         * df-scan.c (df_def_record_1): Assert a parallel must contain an
5255         EXPR_LIST at this point.  Receive the LOC and move its extraction...
5256         (df_defs_record): ... here. Change if-else to a switch statement.
5257         (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
5258         (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
5259         and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
5260         DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
5261         regs_invalidated_by_call.
5262         (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
5263         df_get_call_refs().
5265 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5267         PR lto/52178
5268         * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
5269         * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
5271 2012-05-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
5273         * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
5274         software floating point emulation.  No longer build the multilibs
5275         with -mstrict-align.
5277 2012-05-25  Aldy Hernandez  <aldyh@redhat.com>
5279         PR middle-end/53008
5280         * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
5281         accessed indirectly.
5282         (ipa_tm_create_version): Same.
5284 2012-05-25  Uros Bizjak  <ubizjak@gmail.com>
5286         PR target/53474
5287         * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
5288         <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
5290 2012-05-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5292         PR target/53435
5293         * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
5294         (ix86_expand_vec_perm): Use int mode instead of float.
5295         (expand_vec_perm_pshufb): Remove handling of useseless type
5296         conversion.
5298 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5300         PR ada/52362
5301         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
5302         gnu_ld variables to yes.
5303         * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
5304         (HAVE_GNU_AS): Likewise.
5305         * config.in: Regenerate.
5306         * configure: Likewise.
5308 2012-05-25  Tristan Gingold  <gingold@adacore.com>
5310         * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
5311         (ix86_compute_frame_layout): Fix type of stack_alignment_needed
5312         and preferred_alignment.
5314 2012-05-25  Tristan Gingold  <gingold@adacore.com>
5316         * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
5318 2012-05-25  Thomas Schwinge  <thomas@codesourcery.com>
5320         * fold-const.c (optimize_bit_field_compare): Abort early in the strict
5321         volatile bitfields case.
5323 2012-05-24  Pat Haugen  <pthaugen@us.ibm.com>
5325         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
5326         rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
5327         (adjacent_mem_locations): Move some code to and call...
5328         (get_memref_parts): ...new function.
5329         (mem_locations_overlap): New function.
5330         (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
5331         (is_mem_ref): Rename to...
5332         (find_mem_ref): ...this. Return MEM rtx.
5333         (get_store_dest): Remove function.
5334         (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
5335         new parameter and adjust calls.
5336         (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
5337         mem refs overlap for true_store_to_load_dep_costly.
5338         (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
5339         passed to adjacent_mem_locations.
5340         (is_costly_group): Walk resolved dependency list.
5341         (force_new_group): Emit group ending nop for Power6/Power7.
5342         * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
5343         (group_ending_nop): New define_insn.
5345 2012-05-24  Dodji Seketeli  <dodji@redhat.com>
5347         Make unwound macro expansion trace less redundant
5348         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
5349         context of macro definition in the trace, when it's redundant.
5350         Update comments.
5352 2012-05-24  Richard Guenther  <rguenther@suse.de>
5354         PR middle-end/53460
5355         * tree-profile.c (tree_profiling): Cleanup the CFG if
5356         execute_fixup_cfg requests it.
5358 2012-05-24  Richard Guenther  <rguenther@suse.de>
5360         * tree-flow.h (create_var_ann): Remove.
5361         * tree-dfa.c (create_var_ann): Remove and inline into its
5362         single caller ...
5363         (add_referenced_var_1): ... here.
5364         * varpool.c (add_new_static_var): Do not call add_referenced_var
5365         for global vars.
5366         * gimple-fold.c (canonicalize_constructor_val): Likewise.
5367         * tree-switch-conversion.c (build_one_array): Likewise.
5368         * tree-profile.c (gimple_gen_ic_profiler): Likewise.
5369         * tree-flow-inline.h (gimple_referenced_vars): Guard against
5370         NULL fn argument.
5371         * tree-inline.c (remap_gimple_op_r): Likewise.  Check
5372         gimple_referenced_vars instead of gimple_in_ssa_p.
5373         (copy_tree_body_r): Likewise.
5374         (setup_one_parameter): Likewise.
5375         (declare_return_variable): Likewise.
5376         (tree_function_versioning): Likewise.
5378 2012-05-24  Jakub Jelinek  <jakub@redhat.com>
5380         PR tree-optimization/53465
5381         * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
5382         vr0 into *vr, then vrp_meet that.
5383         (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
5384         have any equivalences.
5385         (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
5386         first time.
5388 2012-05-24  Jim MacArthur  <jim.macarthur@arm.com>
5390         * recog.c (reg_fits_class_p): Check both regno and regno + offset are
5391         hard registers.
5392         * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
5393         check end_regno - 1 is a hard register.
5395 2012-05-24  Richard Guenther  <rguenther@suse.de>
5397         * varpool.c (add_new_static_var): Remove call to create_var_ann.
5398         * tree-ssa-operands.c (create_vop_var): Likewise.
5400 2012-05-24  Richard Guenther  <rguenther@suse.de>
5402         PR bootstrap/53466
5403         * tree-ssa-live.c (remove_unused_scope_block_p): Properly
5404         handle globals.
5405         (remove_unused_locals): Pass global_unused_vars to
5406         remove_unused_scope_block_p.  Restore code walking all
5407         referenced vars and pruning them.
5409 2012-05-23  Jan Hubicka  <jh@suse.cz>
5411         * tree.h (alias_diag_flags): Remove.
5412         (alias_pair): Remove emitted_diags.
5413         (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
5414         symbol_alias_set_t, symbol_alias_set_destroy,
5415         symbol_alias_set_contains, propagate_aliases_backward): Remove.
5416         * toplev.c (compile_file): Do not call finish_aliases_2
5417         * cgraphunit.c (cgraph_process_new_functions): Do not call
5418         finish_aliases_1.
5419         (handle_alias_pairs): Output diagnostics about aliases to externals.
5420         (assemble_thunks_and_aliases): Use do_assemble_alias.
5421         (output_weakrefs): Likewise.
5422         (finalize_compilation_unit): Do not call finish_aliases_1.
5423         * ipa.c (symtab_remove_unreachable_nodes): De not call
5424         remove_unreachable_alias_pairs.
5425         * varasm.c (do_assemble_alias): Export.
5426         (symbol_alias_set_create, symbol_alias_set_destroy,
5427         symbol_alias_set_contains, symbol_alias_set_insert,
5428         propagate_aliases_forward, propagate_aliases_backward,
5429         propagate_aliases_backward, trivially_visible_alias,
5430         trivially_defined_alias, remove_unreachable_alias_pairs,
5431         finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
5432         * output.h (do_assemble_alias): Declare.
5433         * varpool.c (varpool_remove_unreferenced_decls): Do not call
5434         finish_aliases_1.
5436 2012-05-23  Martin Jambor  <mjambor@suse.cz>
5438         * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
5440 2012-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5442         * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
5443         size handling.
5444         (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
5445         (iterative_hash_gimple_type): Adjust comment.
5446         (iterative_hash_canonical_type): Likewise.  Hash the bounds of the
5447         domain for an array type instead of the domain type itself.
5449 2012-05-23  Richard Guenther  <rguenther@suse.de>
5451         PR tree-optimization/53438
5452         * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
5454 2012-05-23  Georg-Johann Lay  <avr@gjlay.de>
5456         PR target/53448
5457         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
5458         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
5459         ASM_OUTPUT_ALIGN.
5461 2012-05-23  Richard Guenther  <rguenther@suse.de>
5463         * tree-dfa.c (add_referenced_var_1): Do not add global vars.
5464         * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
5465         via the global_unused_vars bitmap.
5466         (remove_unused_locals): Handle global vars in local-decls via
5467         a global_unused_vars bitmap instead of the used flag in the
5468         var annotation.  Simplify global variable handling and removal.
5470 2012-05-22  Jan Hubicka  <jh@suse.cz>
5472         PR middle-end/53426
5473         * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
5474         from other partitions.
5476 2012-05-22  Jan Hubicka  <jh@suse.cz>
5478         PR middle-end/53161
5479         * symtab.c (symtab_register_node): Fix ordering issue.
5481 2012-05-22  Steven Drake <sbd@NetBSD.org>
5483         * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
5485 2012-05-22  David Edelsohn  <dje.gcc@gmail.com>
5487         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
5488         Use strip_name_encoding target hook.
5490 2012-05-22  Richard Guenther  <rguenther@suse.de>
5492         * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
5493         (init_function_for_compilation): Remove.
5494         * tree-dfa.c (find_vars_r): Take struct function argument.
5495         (find_referenced_vars_in): Adjust.
5496         * tree-ssa-operands.c (clobber_stats): Remove.
5497         (create_vop_var): Take struct function argument.  Mark
5498         virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
5499         (init_ssa_operands): Take struct function argument.
5500         (fini_ssa_operands): Do not dump dead stats.
5501         * tree-ssa-operands.h (init_ssa_operands): Take struct function
5502         argument.
5503         * cgraphunit.c (init_lowered_empty_function): Adjust.
5504         * lto-streamer-in.c (input_cfg): Likewise.
5505         * tree-inline.c (initialize_cfun): Likewise.
5506         * tree-into-ssa.c (rewrite_into_ssa): Likewise.
5507         * omp-low.c (expand_omp_taskreg): Likewise.  Avoid switching cfun.
5508         * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
5509         virtual operands are not registers.
5511 2012-05-22  Richard Guenther  <rguenther@suse.de>
5513         * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
5515 2012-05-22  Richard Guenther  <rguenther@suse.de>
5517         PR middle-end/53437
5518         * tree-inline.c (setup_one_parameter): Create a dummy init
5519         statement for unused parameters when not optimizing.
5521 2012-05-22  Richard Guenther  <rguenther@suse.de>
5523         * tree-flow.h (add_referenced_var_1): Declare.
5524         (add_referenced_var): Define.
5525         * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
5526         (add_referenced_var): Rename to ...
5527         (add_referenced_var_1): ... this.  Take struct function argument.
5529 2012-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5531         PR target/53334
5532         * config/arm/arm-protos.h (arm_validize_comparison): Declare.
5533         * config/arm/arm.c (arm_validize_comparison): Define.
5534         * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
5535         arm_validize_comparison.
5536         ("cbranchdi4"): Likewise.
5537         ("cstoredi4"): Likewise.
5538         ("movsicc"): Likewise.
5539         ("movsfcc"): Likewise.
5540         ("movdfcc"): Likewise.
5542 2012-05-22  Dimitrios Apostolou  <jimis@gmx.net>
5544         * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
5545         the mw_reg_pool size.
5547 2012-05-22  Paolo Bonzini  <bonzini@gnu.org>
5549         PR tree-optimization/53336
5550         * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
5551         non-integer integral types to offset type and vice versa.
5553 2012-05-22  Alan Modra  <amodra@gmail.com>
5555         * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
5556         * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
5557         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
5558         V_SAVE_INLINE): Delete.
5559         * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
5560         (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
5561         For ELF targets, use out-of-line restores for -Os and any number
5562         of regs if the restore exits, and out-of-line gp save for two or
5563         more regs.  Use save_reg_p to test for holes in reg restore set.
5564         Replace "#if" with "if".
5566 2012-05-22  Alan Modra  <amodra@gmail.com>
5568         * config/rs6000/rs6000.c (save_reg_p): New function.
5569         (first_reg_to_save, first_fp_reg_to_save): Use it here.
5570         (first_altivec_reg_to_save, restore_saved_cr): Likewise.
5571         (emit_frame_save): Use gen_frame_store.
5572         (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
5573         (rs6000_emit_prologue): Use save_reg_p.  Use gen_frame_store for
5574         vrsave and toc.
5575         (rs6000_emit_epilogue): Use save_reg_p.  Use gen_frame_load for
5576         vrsave, toc, gp and fp restores.
5578 2012-05-22  Alan Modra  <amodra@gmail.com>
5580         * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
5581         Move those with ATTRIBUTE_UNUSED to immediately before definitions.
5582         Move function pointer variables after forward declarations.
5583         (rs6000_builtin_support_vector_misalignment): Make static.
5584         (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
5585         (rs6000_function_value, rs6000_can_eliminate): Likewise.
5587 2012-05-21  Bernd Schmidt  <bernds@codesourcery.com>
5589         PR rtl-optimization/53373
5590         * caller-save.c (save_call_clobbered_regs): Look into a possible
5591         PARALLEL manually rather than using single_set on a call insn.
5593 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
5595         PR tree-optimization/53436
5596         * omp-low.c (omp_build_component_ref): New function.
5597         (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
5599 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
5601         * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
5602         arguments to bool.
5603         (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
5604         Do not print '.' here.  Output operand lossage error for unhandled
5605         sizes.  Move.
5606         <case '*'>: Move.
5607         <case '&'>: Ditto.
5608         <case 'Y'>: Ditto.
5609         <case 'z'>: Hardcode "code" argument into error strings.
5610         <case 'Z'>: Ditto.
5611         <case 'D'>: Merge AVX and non-AVX codes.
5612         <case 'C', case 'c', case 'F', case 'f'>: Merge.  Fix error string.
5613         Update call to put_condition_code.
5615 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
5617         * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2.  Call
5618         CC_STATUS_INIT.
5619         (clzsi2): New expander.
5620         (*clzsi2_68k): New insn.
5621         * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
5623 2012-05-21  Aldy Hernandez  <aldyh@redhat.com>
5625         * gimple.h (gimple_set_in_transaction): Remove.
5626         (gimple_in_transaction): Look in BB instead.
5627         (gimple_statement_base): Remove in_transaction field.
5628         * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
5629         * trans-mem.c (compute_transaction_bits): Place transaction bit
5630         information into basic blocks.
5632 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
5634         * expr.c (get_def_for_expr_class): Define only if
5635         HAVE_conditional_move.
5636         (convert_tree_comp_to_rtx): Likewise.
5638 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
5640         PR target/53399
5641         * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
5642         for TARGET_BMI.
5643         (ffssi2_no_cmove): Ditto.
5644         (*ffs<mode>_1): Remove insn pattern.
5645         (*tzcnt<mode>_1): New insn pattern.
5646         (*bsf<mode>1): Ditto.
5648 2012-05-21  Richard Guenther  <rguenther@suse.de>
5650         * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
5651         more referenced vars.
5652         * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
5653         flag on variables that have a var-annotation.
5655 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5657         PR c/53418
5658         * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
5659         from folded operands before wrapping another around the
5660         conditional expression.
5662 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
5664         PR tree-optimization/53366
5665         * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
5666         tests if complex_numbers == 2, but there are non-complex number loads
5667         too.
5669         PR tree-optimization/53409
5670         * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
5671         vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
5673         PR tree-optimization/53410
5674         * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
5675         instead of build_int_cst (type, 0) where vector types might be
5676         involved. Instead of build_int_cst (type, 1) convert the original
5677         integer_onep argument to the desired type.
5679 2012-05-21  Michael Matz  <matz@suse.de>
5681         * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
5682         (simplify_test_exp): Handle one more case of distributive law,
5683         decrease cost threshold.
5684         (tests_attr_p, get_attr_order): New functions.
5685         (optimize_attrs): Use topological order, inline only cheap values.
5686         (write_attr_set): Reset our_known_true after some time.
5688 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5690         PR target/53425
5691         * config/i386/i386.c (type_natural_mode): Warn passing SSE
5692         vector argument without SSE enabled changes the ABI.
5694 2012-05-21  Richard Guenther  <rguenther@suse.de>
5696         PR tree-optimization/53408
5697         * tree-vect-loop.c (vectorizable_induction): Properly check
5698         the restriction that we cannot handle induction results from
5699         the inner loop outside of the outer loop.
5701 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5703         PR target/53416
5704         * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
5705         (UNSPECV_RDRAND): This.
5706         (rdrand<mode>_1): Updated.
5708 2012-05-21  Richard Guenther  <rguenther@suse.de>
5710         * tree-loop-distribution.c (can_generate_builtin): Reject
5711         volatile stmts.
5713 2012-05-21  Chung-Lin Tang  <cltang@codesourcery.com>
5715         * Makefile.in (options.c): Add options.h to included header
5716         files, before tm.h.
5718 2012-05-21  Razya Ladelsky  <razya@il.ibm.com>
5720         * tree-parloops.c : Add myself to contributors, update
5721         TODO list, add link to wiki.
5723 2012-05-21  Alan Modra  <amodra@gmail.com>
5725         * config/rs6000/predicates.md (input_operand): Don't match
5726         constant pool addresses.  Remove label_ref, high and plus from
5727         match_code list.  Remove redundant CONSTANT_P test.
5728         (splat_input_operand): Similarly update match_code list.
5729         (small_toc_ref): New predicate.
5730         * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
5731         * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
5732         (legitimate_constant_pool_address_p): Move TARGET_TOC test and
5733         register checks to..
5734         (toc_relative_expr_p): ..here.  Add "strict" param.  Match new rtl
5735         generated by create_TOC_reference.
5736         (rs6000_legitimize_address): Update cerate_TOC_reference call.
5737         (rs6000_delegitimize_address): Handle new rtl for toc refs.
5738         (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
5739         (use_toc_relative_ref): New function, split out from..
5740         (rs6000_emit_move): ..here.  Remove redundant tests.  Update
5741         create_TOC_reference calls.
5742         (rs6000_legitimize_reload_address): Formatting.  Handle splitting
5743         of medium/large model toc addresses.  Use use_toc_relative_ref.
5744         (print_operand): Formatting, style.  Adjust for toc changes.
5745         (print_operand_address): Likewise.
5746         (rs6000_output_addr_const_extra): Likewise.
5747         (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
5748         than a PLUS.  Use this formulation for both high and low part
5749         of -mcmodel=medium/large toc reference too.  Before reload,
5750         always use the small model formulation.
5751         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
5752         a PLUS in high part of addresses here.
5753         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
5754         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
5755         (largetoc_high, largetoc_low): Move earlier.  Cope when no
5756         base reg available.
5757         (largetoc_high_plus): New insn.
5758         (movsi_internal1, movsi_internal1_single, movsf_softfloat,
5759         movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
5760         (tocref): ..instead do so here, new insn and split.
5762 2012-05-20  H.J. Lu  <hongjiu.lu@intel.com>
5764         * config/i386/driver-i386.c (host_detect_local_cpu): Support
5765         RDRND, F16C and FSGSBASE.
5767 2012-05-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5769         PR rtl-optimzation/53373
5770         * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
5771         call pattern.  Update split patterns.
5772         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
5773         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
5775 2012-05-20  Razya Ladelsky  <razya@il.ibm.com>
5777         * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
5778         for outer loops.
5780 2012-05-18  Jan Hubicka  <jh@suse.cz>
5782         * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
5783         (cgraph_process_new_functions): Process also aliases.
5784         * lto-streamer-out.c (struct sets): Remove.
5785         (trivally_defined_alias): Remove.
5786         (output_alias_pair_p): Remove.
5787         (output_unreferenced_globals): Remove.
5788         (produce_symtab); Do not handle alias pairs.
5789         (produce_asm_for_decls): Likewise.
5790         * lto-streamer-in.c (input_alias_pairs): Remove.
5791         (lto_read_body): Do not input alias pairs.
5792         (lto_input_constructors_and_inits): Remove.
5794 2012-05-18  Jan Hubicka  <jh@suse.cz>
5796         * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
5797         aliases.
5799 2012-05-18  Jan Hubicka  <jh@suse.cz>
5801         * cgraphbuild.c (record_reference): Update.
5802         * lto-cgraph.c (lto_output_varpool_node): External vars
5803         are not in other partition even if they are not output
5804         in current partition.
5805         * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
5806         argument; fix.
5807         (canonicalize_constructor_val): Take FROM_DECL argument.
5808         (fold_ctor_reference, fold_string_cst_ctor_reference,
5809         fold_array_ctor_reference, fold_nonarray_ctor_reference,
5810         fold_ctor_reference): Likewise.
5811         (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
5812         * gimple.h (gimple_fold_builtin): Likewise.
5814 2012-05-18  Olivier Hainque  <hainque@adacore.com>
5816         * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
5817         $(libsubdir) as libexecsubdir.
5819 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5821         * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
5822         relied on signed overflow behavior.
5824 2012-05-18  Richard Guenther  <rguenther@suse.de>
5826         PR tree-optimization/53346
5827         * tree-loop-distribution.c (ldist_gen): Make sure to apply
5828         builtin transform even when only a single partition with
5829         all reads/writes exists.
5831 2012-05-18  Richard Guenther  <rguenther@suse.de>
5833         PR tree-optimization/53390
5834         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
5835         strided loads.
5837 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5839         * tree-ssa-reassoc.c (bip_map): Remove decl.
5840         (completely_remove_stmt): Remove function.
5841         (remove_def_if_absorbed_call): Remove function.
5842         (remove_visited_stmt_chain): Remove __builtin_powi handling.
5843         (possibly_move_powi): Remove function.
5844         (rewrite_expr_tree): Remove calls to possibly_move_powi.
5845         (rewrite_expr_tree_parallel): Likewise.
5846         (attempt_builtin_powi): Build multiplies explicitly rather than
5847         relying on the ops vector and rank system.
5848         (transform_stmt_to_copy): New function.
5849         (transform_stmt_to_multiply): Likewise.
5850         (reassociate_bb): Handle leftover operations after __builtin_powi
5851         optimization; build a final multiply if necessary.
5853 2012-05-18  Jan Hubicka  <jh@suse.cz>
5855         * cgraphunit.c (varpool_finalize_decl): Allow external decls.
5856         (mark_functions_to_output): Fix sanity check.
5857         * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
5859 2012-05-18  Richard Guenther  <rguenther@suse.de>
5861         * tree-flow.h (mark_symbols_for_renaming): Remove.
5862         * tree-dfa.c (mark_symbols_for_renaming): Likewise.
5863         * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
5864         (copy_debug_stmt): Likewise.
5865         (expand_call_inline): Likewise.
5866         (declare_return_variable): Mark the return variable for renaming
5867         if necessary.
5869 2012-05-18  Andrew Stubbs  <ams@codesourcery.com>
5871         * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
5872         prototype.
5873         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
5874         * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
5875         (ashrdi3,lshrdi3): Likewise.
5876         (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
5878 2012-05-18  Meador Inge  <meadori@codesourcery.com>
5880         PR rtl-optimization/53352
5881         * cse.c (equiv_constant): Ignore paradoxical subregs.
5883 2012-05-17  Steven Bosscher  <steven@gcc.gnu.org>
5885         PR rtl-optimization/53125
5886         * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
5887         argument.  Simplify calculation of REG_LIVE_LENGTH for regnos that
5888         die in the basic block.  Correctly top off REG_FREQ and
5889         REG_FREQ_CALLS_CROSSED.
5890         Remove do_not_gen.
5891         (regstat_compute_ri): Allocate and free local_live_last_luid.
5892         Remove do_not_gen.
5893         (regstat_bb_compute_calls_crossed): Correctly top off
5894         REG_FREQ_CALLS_CROSSED.
5896 2012-05-17  Jan Hubicka  <jh@suse.cz>
5898         * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
5899         constructor over decl without.
5900         * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
5901         * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
5902         * cgraphunit.c (process_function_and_variable_attributes): Finalize
5903         extrnal decls.
5904         (mark_functions_to_output): Also accept bodies for functions with
5905         clones.
5906         (output_in_order): Skip external vars.
5907         * lto-cgraph.c (lto_output_node): External functions are never in other
5908         partition.
5909         (lto_output_varpool_node): Likewise.
5910         * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
5911         forgotten initializers.
5912         * ipa.c (process_references): Handle external vars.
5913         (symtab_remove_unreachable_nodes): Update to handle external vars.
5914         (varpool_externally_visible_p): External vars are externally visible.
5915         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
5916         * varpool.c (varpool_remove_node): Remove constructor.
5917         (decide_is_variable_needed): Handle externals.
5918         (varpool_remove_unreferenced_decls): Likewise.
5920 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5922         * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
5923         (enable_warning_as_error): Do not special case Wuninitialized.
5924         * optc-gen.awk: Add sanity checks.
5926 2012-05-17  Jan Hubicka  <jh@suse.cz>
5928         * ipa-reference.c (is_proper_for_analysis): Do not check flags
5929         that might change as result of global optimization.
5930         (analyze_function): Do not check analyzed and externally_visible
5931         flags; be happy about address dereferences.
5932         (propagate): Prune all_module_statics so it really contains just
5933         statics; prune all the local summaries.
5934         (ipa_reference_write_optimization_summary): Simplify.
5936 2012-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
5938         * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
5939         * config/m68k/m68k-tables.opt: Regenerated.
5940         * doc/invoke.texi (M680x0 Options): Document.
5942 2012-05-16  Dave Boutcher  <daveboutcher@gmail.com>
5943             Patrick Marlier  <patrick.marlier@gmail.com>
5945         * trans-mem.c (ipa_tm_transform_clone): Transform functions with
5946         indirect calls.
5948 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5950         * configure: Regenerated.
5952 2012-05-16  Andrew Pinski  <apinski@cavium.com>
5954         * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
5955         GIMPLE_ASSIGN.
5957 2012-05-16  David S. Miller  <davem@davemloft.net>
5959         * jump.c (delete_related_insns): If we remove a CALL, make sure
5960         we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
5962 2012-05-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5964         PR tree-optimization/53217
5965         * tree-ssa-reassoc.c (bip_map): New static variable.
5966         (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
5967         (attempt_builtin_powi): Save feeding multiplies on a stack.
5968         (reassociate_bb): Create and destroy bip_map.
5970 2012-05-16  Olivier Hainque  <hainque@adacore.com>
5972         * Makefile.in (install-no-fixedincludes): New target, former toplevel
5973         gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
5974         Add comments and improve stamp preservation across the whole sequence.
5975         (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
5977 2012-05-16  Richard Guenther  <rguenther@suse.de>
5979         * tree-inline.c (insert_init_stmt): Do not call
5980         mark_symbols_for_renaming.
5981         (setup_one_parameter): Avoid initializing unused parameters.
5982         (declare_return_variable): Properly handle DECL_BY_REFERENCE
5983         return vars in SSA form.
5985 2012-05-16  Richard Guenther  <rguenther@suse.de>
5987         * tree-flow.h (get_virtual_var): Remove.
5988         * tree-dfa.c (get_virtual_var): Likewise.
5990 2012-05-16  Richard Guenther  <rguenther@suse.de>
5992         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
5993         Remove set-only bitmap of new names.
5994         (slpeel_tree_peel_loop_to_edge): Likewise.  Do not set
5995         CFG hooks.
5996         * tree-flow.h (ssa_names_to_replace): Remove.
5997         * tree-into-ssa.c (ssa_names_to_replace): Likewise.
5999 2012-05-16  Richard Guenther  <rguenther@suse.de>
6001         PR tree-optimization/53364
6002         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
6003         detect a view-conversion of the decl.
6005 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
6007         PR preprocessor/7263
6008         * c-tree.h (enum c_declspec_word): Declare new enum.
6009         (struct c_declspecs::locations): New member.
6010         (declspecs_add_qual, declspecs_add_scspec)
6011         (declspecs_add_addrspace, declspecs_add_alignas): Take a new
6012         location parameter.
6013         * c-decl.c (build_null_declspecs): Initialize the new struct
6014         c_declspecs::locations member.
6015         (declspecs_add_addrspace): Take a location parameter for the
6016         address space.  Store it onto declaration specifiers.
6017         (declspecs_add_qual): Likewise, take a location parameter for the
6018         qualifier.
6019         (declspecs_add_type): Likewise, take a location parameter for the
6020         type specifier.
6021         (declspecs_add_scspec): Likewise, take a location parameter for
6022         the storage class specifier.
6023         (declspecs_add_attrs): Likewise, take a location parameter for the
6024         first attribute.
6025         (declspecs_add_alignas): Likewise, take a location parameter for
6026         the alignas token.
6027         (finish_declspecs): For diagnostics, use the location of the
6028         relevant declspec, instead of the global input_location.
6029         * c-parser.c (c_parser_parameter_declaration): Pass the precise
6030         virtual location of the declspec to the declspecs-setters.
6031         (c_parser_declspecs): Likewise.  Avoid calling c_parser_peek_token
6032         repeatedly.
6034 2012-05-16  Igor Zamyatin  <igor.zamyatin@intel.com>
6036         * configure.ac: Stack protector enabling for Android targets.
6037         * configure: Regenerate.
6039 2012-05-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
6041         * ira.c (pseudo_move_insn): Delete.
6042         (find_moveable_pseudos): Don't set it.
6043         (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
6044         the definitions of the original pseudo.  Delete all of them.
6046 2012-05-16  Olivier Hainque  <hainque@adacore.com>
6048         * config/rs6000/rs6000-opts.h (enum processor_type): Add
6049         PROCESSOR_PPC8548.
6050         * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
6051         * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
6052         * config/rs6000/8540.md: indicate that the units/patterns apply to
6053         ppc8548 as well.
6055         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
6056         default_cpu into implicit_cpu, conveying what --with-cpu was passed at
6057         configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
6058         related flags,  check that what is queried is supported by the selected
6059         configuration. Rework the single/double_float and MASK_STRING resets to
6060         hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
6061         costs for PROCESSOR_PPC8548 as well.
6062         (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
6063         (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
6064         statement instead of a sequence of ifs.
6066         * config/rs6000/rs6000.h (TARGET_E500): Remove.
6067         (TARGET_NO_LWSYNC): Adjust accordingly.
6068         * config/rs6000/e500.h (TARGET_E500): Remove.
6069         (CHECK_E500_OPTIONS): Adjust accordingly.
6070         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
6071         (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
6072         * config/rs6000/linuxspe.h: Likewise.
6073         * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
6074         superfluous comments.
6075         * config/rs6000/e500-double.h: Remove.
6077         * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
6078         default to with_cpu=8548 if --enable-e500-double, and to 8540
6079         otherwise.
6080         (set misc flags section): For powerpc*|rs6000*, remove inclusion
6081         of e500-double.h for --enable-e500-double.
6083 2012-05-16  Olivier Hainque  <hainque@adacore.com>
6085         * Makefile.in (s-header-vars): Resort to -n instead of trailing
6086         -e d in sed invocation.
6088 2012-05-16  Hans-Peter Nilsson  <hp@axis.com>
6090         * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
6091         source-code.
6092         * doc/tm.texi: Regenerate.
6094 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
6096         * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
6098 2012-05-15  Jakub Jelinek  <jakub@redhat.com>
6100         PR target/53358
6101         * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
6102         that operands[2] is either immediate, or q_regs_operand.
6104 2012-05-15  Richard Guenther  <rguenther@suse.de>
6106         * cgraphunit.c (thunk_adjust): Use make_rename_temp.
6107         (assemble_thunk): Likewise.  Manually rename and register
6108         function arguments.
6110 2012-05-15  Richard Guenther  <rguenther@suse.de>
6112         PR tree-optimization/53355
6113         * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
6114         by constants.
6116 2012-05-15  Tristan Gingold  <gingold@adacore.com>
6118         * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
6120 2012-05-15  Richard Guenther  <rguenther@suse.de>
6122         * gimple.c (gimple_set_modified): Move ...
6123         * gimple.h (gimple_set_modified): ... here.
6125 2012-05-15  Tristan Gingold  <gingold@adacore.com>
6127         * ira-color.c (move_spill_restore): Add a guard.
6129 2012-05-15  Tristan Gingold  <gingold@adacore.com>
6131         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
6132         plus_constant.
6134 2012-05-15  Eric Botcazou  <ebotcazou@adacore.com>
6136         * gimplify.c (gimplify_init_constructor): Do a block move for very
6137         small objects as well.
6139 2012-05-15  Bernd Schmidt  <bernds@codesourcery.com>
6141         * ira.c (find_moveable_pseudos): Skip registers whose
6142         DF_REG_EQ_USE_COUNT is nonzero.
6144 2012-05-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
6146         * doc/md.texi (fma): Define to only be applicable for single rounding.
6148 2012-05-14  Uros Bizjak  <ubizjak@gmail.com>
6150         PR target/46098
6151         * config/i386/i386.c (ix86_expand_special_args_builtin): Always
6152         generate target register for "load" class builtins.
6154         Revert:
6155         2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
6157         PR target/46098
6158         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
6159         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
6160         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
6161         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
6162         (<sse>_movu<ssemodesuffix>): New expander.
6163         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
6164         (avx_movdqu<avxmodesuffix>): New expander.
6165         (*sse2_movdqu): Rename from sse2_movdqu.
6166         (sse2_movdqu): New expander.
6168 2012-05-14  Marc Glisse  <marc.glisse@inria.fr>
6170         PR target/52607
6171         * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
6172         (canonicalize_perm): ... new function.
6173         (expand_vec_perm_2vperm2f128_vshuf): New function.
6174         (ix86_expand_vec_perm_const_1): Call it.
6176 2012-05-14  Andrew Pinski  <apinski@cavium.com>
6177             H.J. Lu  <hongjiu.lu@intel.com>
6178             Jakub Jelinek  <jakub@redhat.com>
6180         PR target/53315
6181         * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
6182         (xbegin): Updated.
6184 2012-05-14  Jakub Jelinek  <jakub@redhat.com>
6186         * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
6187         lineno 1 the same as lineno 0 before first start file directive.
6188         (optimize_macinfo_range): Likewise.
6190         * dwarf2out.c (have_macinfo): Define.
6191         (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
6192         attribute, don't force empty compilation unit and don't emit any
6193         .debug_macinfo/.debug_macro section if macinfo_table is empty.
6195 2012-05-14  Georg-Johann Lay  <avr@gjlay.de>
6197         PR target/53344
6198         * config/avr/avr.c (avr_const_address_lo16): Remove.
6199         (avr_assemble_integer):  Print ".byte lo8(x)",
6200         ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
6201         .warning if 3-byte address is assembled.
6202         * doc/extend.texi (AVR Named Address Spaces): Document that
6203         binutils 2.23 is needed to assemble 3-byte addresses.
6205 2012-05-14  Richard Guenther  <rguenther@suse.de>
6207         * tree-vect-data-refs.c (vect_setup_realignment): Remove
6208         call to mark_symbols_for_renaming.
6209         (vect_permute_load_chain): Likewise.
6210         * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
6211         instead of calling mark_symbols_for_renaming.
6212         * tree-vect-stmts.c (read_vector_array): Remove call to
6213         mark_symbols_for_renaming.
6214         (write_vector_array): Likewise.
6215         (vectorizable_call): Likewise.
6216         (vectorizable_store): Likewise.
6217         (vectorizable_load): Likewise.
6218         * matrix-reorg.c (transform_allocation_sites): Likewise.
6219         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
6220         (create_expression_by_pieces): Likewise.
6222 2012-05-14  Richard Guenther  <rguenther@suse.de>
6224         * gimplify.c (gimple_regimplify_operands): Only mark the LHS
6225         of statements for renaming.
6226         (force_gimple_operand_1): Likewise, consistently for both
6227         calls to force_gimple_operand and force_gimple_operand_gsi.
6229 2012-05-14  Richard Guenther  <rguenther@suse.de>
6231         * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
6232         * omp-low.c (expand_omp_taskreg): Properly conditionalize call
6233         to update_ssa.
6234         (expand_omp_for): Likewise.
6235         (expand_omp_for_generic): Adjust conditional add to referenced vars.
6236         Use make_rename_temp for temporaries that should be rewritten into
6237         SSA form.
6238         (expand_omp_for_static_nochunk): Likewise.
6239         (expand_omp_atomic_pipeline): Likewise.
6241 2012-05-14  Richard Guenther  <rguenther@suse.de>
6243         PR tree-optimization/53331
6244         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
6245         strided loads.
6246         * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
6248 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6250         PR 53063
6251         * doc/options.texi: (LangEnabledBy): Document it.
6252         * optc-gen.awk: Handle LangEnabledBy.
6253         * opth-gen.awk: Generate declaration for lang-specific functions.
6254         * opt-read.awk: Record lang numbers.
6255         * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
6256         (lang_sanitized_name): New.
6258 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
6260         * attribs.c (decl_attributes): Avoid emitting a warning if
6261         ATTR_FLAG_BUILT_IN.
6262         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
6263         codes.  Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
6264         * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define.  Use it to
6265         define a string "1".
6266         (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
6267         * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
6268         BUILT_IN_STRCPY): Use it for these functions.
6269         * postreload.c (reload_combine): Deal with SETs inside
6270         CALL_INSN_FUNCTION_USAGE.
6271         * caller-save.c (setup_save_areas, save_call_clobbered_regs):
6272         Look for REG_RETURNED notes and use a cheap restore if possible.
6273         * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
6274         (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
6275         * ira-build.c (ira_create_allocno, create_cap_allocno,
6276         propagate_allocno_info, propagate_some_info_from_allocno,
6277         copy_info_to_removed_store_destination, ira_flattening): Handle it.
6278         * ira-lives.c (pseudo_regno_single_word_and_live_p,
6279         find_call_crossed_cheap_reg): New static functions.
6280         (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
6281         and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible.  Also make
6282         a REG_RETURNED note in that case.
6283         * ira.c (setup_reg_renumber): Change assert to allow cases where
6284         allocnos only cross calls for which they are cheap to restore.
6285         * ira-costs.c (ira_tune_allocno_costs): Compare
6286         ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
6287         than 0.
6288         * reg-notes.def (REG_RETURNED): New note.
6289         * cse.c (cse_insn): Likewise.
6290         * sched-deps.c (sched_analyze_insn): Likewise.
6291         * expr.c (init_block_move_fn): Set a "fn spec" attribute.
6292         * calls.c (decl_return_flags): New static function.
6293         (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
6294         functions that return one of their arguments.
6295         * regcprop.c (struct kill_set_value_data): New.
6296         (kill_set_value): Interpret data as a pointer to such a struct.
6297         Do nothing if the caller wants the register to be ignored.
6298         (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
6300 2012-05-14  Richard Guenther  <rguenther@suse.de>
6302         PR tree-optimization/53340
6303         * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
6305 2012-05-14  Richard Guenther  <rguenther@suse.de>
6307         * gimplify.c (gimplify_expr): Remove odd code.
6309 2012-05-14  Eric Botcazou  <ebotcazou@adacore.com>
6311         * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
6312         into a PLUS_EXPR byte offset.
6314         * tree-ssa-pre.c (can_value_number_call): Delete.
6315         (compute_avail): Skip all statements with side effects.
6316         <GIMPLE_CALL>: Skip calls to internal functions.
6318 2012-05-13  Steven Bosscher  <steven@gcc.gnu.org>
6320         * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
6322 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6324         * common.opt (Wtype-limits): Use EnabledBy.
6326 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
6328         * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
6329         (pushtf splitter): Ditto.
6330         (movtf): Ditto.
6331         (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
6332         (<code>tf2): Enable for TARGET_SSE.
6333         (*absnegtf2_sse): Ditto.
6334         (copysign<mode>3): Enable TFmode for TARGET_SSE.
6335         (copysign<mode>3_const): Ditto.
6336         (copysign<mode>3_var): Ditto.
6337         * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
6338         (*andnottf3): Ditto.  Use V4SFmode for !TARGET_SSE2.
6339         (*<code>tf3): Ditto.
6340         * config/i386/i386.c (struct builtin_description bdesc_args)
6341         <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
6342         <IX86_BUILTIN_COPYSIGNQ>: Ditto.
6343         (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
6344         Emit a normal call if SSE isn't available.
6346 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
6348         * config/i386/sse.md (<sse>_andnot<mode>3): Handle
6349         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6350         (<code><mode>3): Ditto.
6351         (*andnot<mode>3): Ditto.
6352         (*andnottf3): Ditto.
6353         (*<code><mode>3): Ditto.
6354         (<code>tf3): Ditto.
6356 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6358         * optc-gen.awk: Error instead of warning for conflicting help.
6360 2012-05-12  Jason Merrill  <jason@redhat.com>
6362         PR debug/53235
6363         * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
6364         comdat types.
6366 2012-05-12  Eric Botcazou  <ebotcazou@adacore.com>
6368         * function.c (requires_stack_frame_p): If the function can throw
6369         non-call exceptions, return true if the insn can throw internally.
6371 2012-05-12  Paolo Carlini  <paolo.carlini@oracle.com>
6373         * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
6375 2012-05-12  Uros Bizjak  <ubizjak@gmail.com>
6377         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
6378         ORDERED and UNORDERED conditions.
6380 2012-05-11  Richard Guenther  <rguenther@suse.de>
6382         * tree-flow.h (referenced_var_check_and_insert): Remove.
6383         (find_new_referenced_vars): Likewise.
6384         * tree-dfa.c (referenced_var_check_and_insert): Make static.
6385         (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
6386         * tree-inline.c (copy_bb): Use find_referenced_vars_in
6387         instead of find_new_referenced_vars.
6388         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
6390 2012-05-11  Richard Guenther  <rguenther@suse.de>
6392         * tree-pass.h (pass_rest_of_compilation,
6393         pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
6394         Remove.
6395         * passes.c (pass_all_optimizations, pass_postreload,
6396         pass_all_early_optimizations): Make static.
6397         (pass_rest_of_compilation): Likewise.  Make it an RTL_PASS.
6398         * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
6399         * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
6400         (delete_tree_ssa): Do not call fini_phinodes.
6401         * tree-flow.h (init_phinodes, fini_phinodes): Remove.
6403 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6405         PR 53063
6406         * doc/options.texi (EnabledBy): Document
6407         * opts.c: Include opts.h and options.h before tm.h.
6408         (finish_options): Do not handle some sub-options here...
6409         (common_handle_option): ... instead call common_handle_option_auto
6410         here.
6411         * optc-gen.awk: Handle EnabledBy.
6412         * opth-gen.awk: Declare common_handle_option_auto.
6413         * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
6414         (Wmaybe-uninitialized): Likewise.
6415         (Wunused-but-set-variable): Likewise.
6416         (Wunused-function): Likewise.
6417         (Wunused-label): Likewise.
6418         (Wunused-value): Likewise.
6419         (Wunused-variable): Likewise.
6420         * opt-read.awk: Create opt_numbers array.
6422 2012-05-11  Richard Guenther  <rguenther@suse.de>
6424         PR tree-optimization/53295
6425         * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
6426         strides.
6427         * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
6428         strides when analyzing data-references in a loop context.
6429         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
6430         non-constant strides for now.
6431         (vect_enhance_data_refs_alignment): Ignore data references
6432         that are strided loads.
6433         (vect_analyze_data_ref_access): Handle non-constant strides.
6434         (vect_check_strided_load): Verify the data-reference is a load.
6435         (vect_analyze_data_refs): Restructure to make strided load
6436         support not dependent on gather support.
6437         * tree-vect-stmts.c (vectorizable_load): Avoid useless work
6438         when doing strided or gather loads.
6439         * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
6440         integer_zerop to compare stride with zero.
6442 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6444         * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
6446 2012-05-11  Jan Hubicka  <jh@suse.cz>
6448         PR bootstrap/53300
6449         * varpool.c (varpool_assemble_decl): Also output constat pool entries
6450         that output_constant_pool missed.
6452 2012-05-11  Mingjie Xing  <mingjie.xing@gmail.com>
6454         * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
6455         MULTILIB_EXTRA_OPTS.
6457 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
6459         PR target/53291
6460         * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
6462 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
6464         * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
6465         optimization for TARGET_AVX.
6466         (*movti_internal_sse): Ditto.
6467         (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6468         (*movdi_internal): Ditto.
6469         (*movsi_internal): Ditto.
6470         (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
6471         (*movdf_internal_rex64): Ditto.
6472         (*movfd_internal): Ditto.
6473         (*movsf_internal): Ditto.
6474         * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
6476 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
6478         * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
6479         reference as size attribute.
6481 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
6482             Tristan Gingold  <gingold@adacore.com>
6484         * doc/md.texi (Standard Names): Document probe_stack_address.
6485         * explow.c (emit_stack_probe): Handle probe_stack_address.
6486         * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
6487         (UNSPECV_PROBE_STACK_RANGE): Likewise.
6488         (probe_stack_address): New insn.
6489         (probe_stack_range): Likewise.
6490         * config/ia64/ia64.c: Include common/common-target.h.
6491         (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
6492         checking is enabled.
6493         (ia64_emit_probe_stack_range): New function.
6494         (output_probe_stack_range): Likewise.
6495         (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
6496         builtin stack checking is enabled.
6497         (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
6498         and UNSPECV_PROBE_STACK_ADDRESS.
6499         (unknown_for_bundling_p): New predicate.
6500         (group_barrier_needed): Use important_for_bundling_p.
6501         (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
6502         (issue_nops_and_insn): Likewise.
6503         (bundling): Likewise.
6504         (final_emit_insn_group_barriers): Likewise.
6505         * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
6506         * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
6507         (STACK_CHECK_PROTECT): Likewise.
6508         * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6510 2012-05-10  Jan Hubicka  <jh@suse.cz>
6512         * ipa-inline.c (update_all_callee_keys): Remove.
6513         (inline_small_functions): Simplify priority updating.
6515 2012-05-10  Jan Hubicka  <jh@suse.cz>
6517         * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
6519 2012-05-10  Jan Hubicka  <jh@suse.cz>
6521         * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
6522         (symtab_remove_unreachable_nodes): ... this one.
6523         * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
6524         * cgraphunit.c (ipa_passes): Update.
6525         * cgraphclones.c (cgraph_materialize_all_clones): Update.
6526         * cgraph.c (cgraph_release_function_body): Only turn initial
6527         into error mark when initial was previously set.
6528         * ipa-inline.c (ipa_inline): Update.
6529         * ipa.c: Include ipa-inline.h
6530         (enqueue_cgraph_node, enqueue_varpool_node): Remove.
6531         (enqueue_node): New function.
6532         (process_references): Update.
6533         (symtab_remove_unreachable_nodes): Cleanup.
6534         * passes.c (execute_todo, execute_one_pass): Update.
6536 2012-05-10  Vladimir Makarov  <vmakarov@redhat.com>
6538         PR rtl-optimization/53125
6539         * ira.c (ira): Call find_moveable_pseudos and
6540         move_unallocated_pseudos if only ira_conflicts_p is true.
6542 2012-05-10  Uros Bizjak  <ubizjak@gmail.com>
6544         * config/i386/i386.md (*movoi_internal_avx): Handle
6545         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
6546         (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6547         (*movti_internal_sse): Ditto.
6548         (*movtf_internal): Ditto.
6549         * config/i386/sse.md (ssePSmode): New mode attribute.
6550         (*move<mode>_internal): Use ssePSmode.
6551         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
6552         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
6553         * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
6554         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
6556 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
6558         * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
6559         DECL_ORIGINAL_TYPE if it is present.
6561 2012-05-10  Nick Clifton  <nickc@redhat.com>
6563         PR target/53120
6564         * config/m32c/bitops.md (bset_qi): Change operand 2 from having
6565         a "0" constraint to being a (match_dup 0).
6567 2012-05-10  Richard Guenther  <rguenther@suse.de>
6569         * stor-layout.c (byte_from_pos): Amend comment.
6571 2012-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6573         * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
6574         Document requirement to call in constructors.
6576         * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
6578 2012-05-10  Richard Guenther  <rguenther@suse.de>
6580         * tree.h (TYPE_IS_SIZETYPE): Remove.
6581         * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
6582         (extract_muldiv_1): Likewise.
6583         * gimple.c (gtc_visit): Likewise.
6584         (gimple_types_compatible_p): Likewise.
6585         (iterative_hash_canonical_type): Likewise.
6586         (gimple_canonical_types_compatible_p): Likewise.
6587         * gimplify.c (gimplify_one_sizepos): Likewise.
6588         * print-tree.c (print_node): Likewise.
6589         * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
6591 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
6593         PR target/52908
6594         * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
6595         xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
6596         (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
6597         instead of xop_mulv2div2di3_low.
6598         (xop_p<macs>dql): Fix vec_select selector.
6599         (xop_p<macs>dqh): Ditto.
6600         (xop_mulv2div2di3_low): Remove insn_and_split pattern.
6601         (xop_mulv2div2di3_high): Ditto.
6603 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6605         PR c++/53289
6606         * diagnostic.h (diagnostic_context): Add last_location.
6607         * diagnostic.c (diagnostic_initialize): Initialize it.
6608         (diagnostic_show_locus): Use it.
6610 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6612         * doc/extend.texi (Function Attributes): Point xref to section
6613         about Pragmas.
6615 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
6617         * config/i386/i386.c (*movdf_internal_rex64): Remove
6618         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
6619         Calculate "mode" attribute according to
6620         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
6621         (*movdf_internal): Ditto.
6623 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
6625         PR target/44141
6626         * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
6627         128 bit vectors specially for TARGET_AVX.  Emit sse2_movupd and
6628         sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
6629         or when optimizing for size.
6630         * config/i386/sse.md (*mov<mode>_internal): Remove
6631         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
6632         Calculate "mode" attribute according to optimize_function_for_size_p
6633         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
6634         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
6635         depending on the mode of the instruction.  Calculate "mode" attribute
6636         according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
6637         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
6638         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
6640 2012-05-09  Georg-Johann Lay  <avr@gjlay.de>
6642         PR target/53256
6643         * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
6644         * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
6645         * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
6646         * config/avr/avr.c (avr_asm_declare_function_name): Remove.
6647         (expand_prologue): Move initialization of cfun->machine->is_naked,
6648         is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
6649         (avr_set_current_function): ...this new static function.
6650         (TARGET_SET_CURRENT_FUNCTION): New define.
6651         (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
6652         checking attributes of current_function_decl.
6653         (avr_regs_to_save): Ditto.
6654         (signal_function_p): Rename to avr_signal_function_p.
6655         (interrupt_function_p): Rename to avr_interrupt_function_p.
6657         * doc/extend.texi (Function Attributes): Better explanation of
6658         'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
6659         alphabetical order.
6661 2012-05-09  Michael Matz  <matz@suse.de>
6663         PR tree-optimization/53185
6664         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
6665         peeling when we see strided loads.
6667 2012-05-09  Matthias Klose  <doko@ubuntu.com>
6669         * gcc-ar.c (main): Don't check for execute bits for the plugin.
6671 2012-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6673         * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
6674         Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
6675         USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
6676         * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
6677         (USE_LOAD_POST_INCREMENT): Define.
6678         (USE_LOAD_PRE_INCREMENT): Define.
6679         (USE_LOAD_POST_DECREMENT): Define.
6680         (USE_LOAD_PRE_DECREMENT): Define.
6681         (USE_STORE_PRE_DECREMENT): Define.
6682         (USE_STORE_PRE_INCREMENT): Define.
6683         (USE_STORE_POST_DECREMENT): Define.
6684         (USE_STORE_POST_INCREMENT): Define.
6685         (arm_auto_incmodes): Add enumeration.
6686         * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
6687         * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
6689 2012-05-09  Jakub Jelinek  <jakub@redhat.com>
6691         PR tree-optimization/53226
6692         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
6693         prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
6694         before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
6695         doesn't need to be revisited, look for earliest stmt with
6696         !gimple_plf (stmt, GF_PLF_1) if something changed.
6698 2012-05-09  Terry Guo  <terry.guo@arm.com>
6700         * genmultilib: Update copyright dates.
6701         * doc/fragments.texi: Ditto.
6703 2012-05-09  Terry Guo  <terry.guo@arm.com>
6705         * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
6706         * genmultilib (MULTILIB_REQUIRED): New.
6707         * doc/fragments.texi: Document the MULTILIB_REQUIRED.
6709 2012-05-09  Richard Guenther  <rguenther@suse.de>
6711         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6712         (vect_do_peeling_for_loop_bound): Likewise.
6713         (vect_do_peeling_for_alignment): Likewise.
6714         * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
6715         (vect_do_peeling_for_loop_bound): Get check_profitability and
6716         threshold as parameters.
6717         (vect_do_peeling_for_alignment): Likewise.
6718         (vect_loop_versioning): Likewise.
6719         * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
6720         and threshold here.  Control where to put the check here.
6722 2012-05-09  Richard Sandiford  <rdsandiford@googlemail.com>
6724         PR middle-end/53249
6725         * dwarf2out.h (get_address_mode): Move declaration to...
6726         * rtl.h: ...here.
6727         * dwarf2out.c (get_address_mode): Move definition to...
6728         * rtlanal.c: ...here.
6729         * var-tracking.c (get_address_mode): Delete.
6730         * combine.c (find_split_point): Use get_address_mode instead of
6731         targetm.addr_space.address_mode.
6732         * cselib.c (cselib_record_sets): Likewise.
6733         * dse.c (canon_address, record_store): Likewise.
6734         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
6735         * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
6736         (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
6737         (expand_expr_real_1): Likewise.
6738         * ifcvt.c (noce_try_cmove_arith): Likewise.
6739         * optabs.c (maybe_legitimize_operand_same_code): Likewise.
6740         * reload.c (find_reloads): Likewise.
6741         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
6742         * sel-sched-dump.c (debug_mem_addr_value): Likewise.
6744 2012-05-09  Maciej W. Rozycki  <macro@codesourcery.com>
6746         * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
6747         information from the instruction produced.
6749 2012-05-09  Richard Guenther  <rguenther@suse.de>
6751         * stor-layout.c (bit_from_pos): Document.
6752         (byte_from_pos): Likewise.  Optimize.
6753         (pos_from_bit): Likewise.
6754         (normalize_offset): Use pos_from_bit instead of replicating it.
6756 2012-05-09  Alan Modra  <amodra@gmail.com>
6758         PR target/53271
6759         * config/rs6000/rs6000.c (gen_frame_set): New function.
6760         (gen_frame_load, gen_frame_store): New functions.
6761         (rs6000_savres_rtx): Use the above.
6762         (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
6763         Correct mode used for CR2 in save/restore_world patterns.
6764         Don't emit instructions for eh_return frame unwind reg info.
6766 2012-05-08  Jan Hubicka  <jh@suse.cz>
6768         * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
6769         with VALUE_EXPR.
6770         * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
6771         are removable.
6772         * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
6773         need to wrapup.
6774         (compile_file): Do not output variables.
6775         * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
6776         output it.
6777         * langhooks.c: Include timevar.h
6778         (write_global_declarations): Finalize compilation unit after wrapup;
6779         set timevars correctly.
6780         * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
6781         not to be added to varpool.
6782         * varpool.c (varpool_assemble_decl): Sanity check that we are called
6783         only on cases where it makes sense; skip constant pool and value expr
6784         vars.
6786 2012-05-08  David S. Miller  <davem@davemloft.net>
6788         * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
6789         * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
6790         * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
6792 2012-05-08  Richard Sandiford  <rdsandiford@googlemail.com>
6794         PR rtl-optimization/53278
6795         * lower-subreg.c (decompose_multiword_subregs): Remove left-over
6796         speed_p code from earlier patch.
6798 2012-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
6800         PR target/51244
6801         * config/sh/sh.md (*branch_true, *branch_false): New insns.
6803 2012-05-08  Teresa Johnson  <tejohnson@google.com>
6805         * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
6806         * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
6808 2012-05-08  Jan Hubicka  <jh@suse.cz>
6810         * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
6811         (cgraph_create_node_1): Rename to ...
6812         (cgraph_create_empty_node): ... this one; export.
6813         (cgraph_create_node): Update.
6814         (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
6815         (cgraph_create_edge_including_clones): Likewise.
6816         (cgraph_find_replacement_node): Likewise.
6817         (cgraph_clone_edge): Likewise.
6818         (cgraph_clone_node): Likewise.
6819         (clone_function_name): Likewise.
6820         (cgraph_create_virtual_clone): Likewise.
6821         (cgraph_remove_node_and_inline_clones): Likewise.
6822         (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
6823         * cgraph.h: Reorder declarations so they match file of origin.
6824         (cgraph_create_empty_node): Declare.
6825         * cgraphunit.c (update_call_expr): Move to cgraphclones.c
6826         (cgraph_copy_node_for_versioning): Likewise.
6827         (cgraph_function_versioning): Likewise.
6828         (cgraph_materialize_clone): Likewise.
6829         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
6830         (cgraph_materialize_all_clones): Likewise.
6831         * cgraphclones.c: New file.
6832         * Makefile.in: Update for cgraphclones.
6834 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
6836         PR target/53176
6837         * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
6838         (ix86_rtx_costs): Handle SET.
6840 2012-05-08  Michael Matz  <matz@suse.de>
6842         * basic-block.h (struct rtl_bb_info): Remove visited member and
6843         move head_ member to ...
6844         (struct basic_block_def.basic_block_il_dependent): ... the new
6845         member x, replacing but containing old member rtl.
6846         (enum bb_flags): New BB_VISITED flag.
6847         (BB_HEADER, BB_FOOTER): New macros.
6849         * jump.c (mark_all_labels): Adjust.
6850         * cfgcleanup.c (try_optimize_cfg): Adjust.
6851         * cfglayout.c (record_effective_endpoints): Adjust.
6852         (relink_block_chain): Ditto (and don't fiddle with visited).
6853         (fixup_reorder_chain): Adjust.
6854         (fixup_fallthru_exit_predecessor): Ditto.
6855         (cfg_layout_duplicate_bb): Ditto.
6856         * combine.c (update_cfg_for_uncondjump): Adjust.
6857         * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
6858         (bb_visited_trace): New accessor.
6859         (mark_bb_visited): Move in front.
6860         (rotate_loop): Use bb_visited_trace.
6861         (find_traces_1_round): Ditto.
6862         (emit_barrier_after): Ditto.
6863         (copy_bb): Ditto, and initialize visited on resize.
6864         (reorder_basic_blocks): Initize visited member.
6865         (duplicate_computed_gotos): Clear bb flags at start, use
6866         BB_VISITED flags.
6868         * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
6869         (rtl_verify_flow_info_1): Ditto.
6870         (cfg_layout_split_block): Ditto.
6871         (cfg_layout_delete_block): Ditto.
6872         (cfg_layout_merge_blocks): Ditto.
6873         (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
6875 2012-05-08  Hans-Peter Nilsson  <hp@axis.com>
6877         PR target/53272
6878         * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
6879         when a constant source operand matches an "I" constraint, the "no
6880         CC0 change" applies to a register-destination only, not a
6881         strict_low_part-destination.
6883 2012-05-08  Richard Guenther  <rguenther@suse.de>
6885         * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
6886         to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
6888 2012-05-08  Georg-Johann Lay  <avr@gjlay.de>
6890         * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
6892         * doc/avr-mmcu.texi: New auto-generated file.
6893         * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
6894         to document all valid -mmcu= arguments.
6896         * config/avr/avr.h (arch_info_s): New struct definition.
6897         * config/avr/avr-devices.c (avr_texinfo): New variable.
6898         * config/avr/gen-avr-mmcu-texi.c: New file.
6899         * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
6901 2012-05-08  Dehao Chen  <dehao@google.com>
6903         * predict.c (find_qualified_ssa_name): New.
6904         (find_ssa_name_in_expr): New.
6905         (find_ssa_name_in_assign_stmt): New.
6906         (is_comparison_with_loop_invariant_p): New.
6907         (is_bound_expr_similar): New.
6908         (predict_iv_comparison): New.
6909         (predict_loops): Add heuristic for loop-nested branches that compare an
6910         induction variable to a loop bound variable.
6911         * predict.def (PRED_LOOP_IV_COMPARE): New macro.
6913 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
6915         * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
6916         TARGET_BDVER2 defines where appropriate.
6918 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6920         * configure.ac (PLUGIN_LD): Rename into...
6921         (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
6922         * config.in: Regenerate.
6923         * configure: Likewise.
6924         * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
6926 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6928         * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
6929         computation using the precision of the index type.
6930         * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
6931         (fold_array_ctor_reference): Do index computations in the index type.
6933 2012-05-07  Georg-Johann Lay  <avr@gjlay.de>
6935         * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
6936         down to plus_constant.
6937         (expand_epilogue): Ditto.
6939 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6941         * postreload.c (reload_cse_regs): Make static.
6942         * reload.h (reload_cse_regs): Remove prototype.
6944 2012-05-07  Richard Henderson  <rth@redhat.com>
6946         * config/alpha/alpha.md (clear_cache): New pattern.
6948 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6950         PR middle-end/53245
6951         * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
6952         is folded to a type boundary value, verify that the resulting case
6953         label is still a care range.
6955 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
6957         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
6958         only for TARGET_GENERIC, when not optimizing for size.
6959         (*ffs<mode>_1): Ditto.
6961 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6963         * tree-cfg.c (verify_gimple_switch): Tighten checks.
6965 2012-05-07  Jakub Jelinek  <jakub@redhat.com>
6967         PR tree-optimization/53239
6968         * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
6969         of DECL_BY_REFERENCE RESULT_DECL to nonnull.
6971 2012-05-07  Richard Guenther  <rguenther@suse.de>
6973         PR tree-optimization/53195
6974         * tree-inline.c (setup_one_parameter): Properly add referenced
6975         vars from the parameters new known value.
6977 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6979         * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
6980         (sched_branch_type): Remove.
6981         (m68k_sched_md_init_global): Don't allocate it.
6982         (m68k_sched_md_finish_global): Don't free it.
6983         * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
6984         * config/m68k/m68k.md: Set the type of insns using
6985         m68k_sched_branch_type to bcc directly.
6987 2012-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6989         * config/sol2.c (solaris_override_options): New function.
6990         * config/sol2-protos.h (solaris_override_options): Declare.
6991         * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
6993 2012-05-07  Richard Guenther  <rguenther@suse.de>
6995         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
6996         whether we failed to compute data dependences.
6997         (loop_prefetch_arrays): Fail if we failed.
6999 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
7000             Paolo Bonzini  <bonzini@gnu.org>
7002         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
7003         Emit bsf when optimizing for size.
7004         (*ffs<mode>_1): Ditto.
7006 2012-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
7008         PR target/53250
7009         * config/sh/sh.c (sh_rtx_costs): Handle SET.
7011 2012-05-06  Uros Bizjak  <ubizjak@gmail.com>
7013         PR target/53227
7014         * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
7015         (bswapdi2): Split from bswap<mode>2.  Use nonnimediate_operand
7016         predicate for operand 1.  Force operand 1 to register for TARGET_BSWAP.
7017         (bswapsi2): Ditto.
7018         (*bswapdi2_doubleword): New insn pattern.
7019         (*bswap<mode>2): Rename from *bswap<mode>2_1.
7021 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
7023         * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
7024         (mips_set_reg_reg_cost): Likewise.
7025         (mips_rtx_costs): Handle SET.
7027 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
7029         * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
7030         (compute_costs): Likewise for the zero extension.  Use set_rtx_cost
7031         to compute the cost of moves.  Set the mode of the target register.
7033 2012-05-05  Richard Sandiford  <rdsandiford@googlemail.com>
7035         * rtl.h (plus_constant, plus_constant_mode): Merge into a single
7036         plus_constant function.
7037         * explow.c (plus_constant, plus_constant_mode): Likewise.  Assert
7038         that the mode is sensible.
7039         (use_anchored_address, round_push, allocate_dynamic_stack_space)
7040         (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
7041         plus_constant.
7043         * alias.c (canon_rtx): Likewise.
7044         (init_alias_analysis): Likewise.
7045         * builtins.c (expand_builtin_return_addr)
7046         (expand_builtin_setjmp_setup, expand_builtin_longjmp)
7047         (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
7048         (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
7049         (expand_builtin_stpcpy): Likewise.
7050         * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
7051         (compute_argument_addresses, internal_arg_pointer_based_exp)
7052         (expand_call, emit_library_call_value_1): Likewise.
7053         * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
7054         * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
7055         * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
7056         * cse.c (insert_const_anchor, find_reg_offset_for_const)
7057         (use_related_value, fold_rtx): Likewise.
7058         * cselib.c (cselib_subst_to_values): Likewise.
7059         * dse.c (record_store, check_mem_read_rtx): Likewise.
7060         * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
7061         * emit-rtl.c (adjust_address_1): Likewise.
7062         * except.c (sjlj_emit_function_enter)
7063         (expand_builtin_extract_return_addr)
7064         (expand_builtin_frob_return_addr): Likewise.
7065         * expmed.c (expand_divmod): Likewise.
7066         * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
7067         (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
7068         (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
7069         * function.c (assign_stack_local_1)
7070         (instantiate_virtual_regs_in_rtx): Likewise.
7071         * optabs.c (prepare_cmp_insn): Likewise.
7072         * recog.c (offsettable_address_addr_space_p): Likewise.
7073         * reload.c (find_reloads_address, form_sum)
7074         (find_reloads_subreg_address): Likewise.
7075         * reload1.c (init_reload, eliminate_regs_1)
7076         (eliminate_regs_in_insn): Likewise.
7077         * simplify-rtx.c (simplify_unary_operation_1)
7078         (simplify_binary_operation_1, simplify_plus_minus): Likewise.
7079         * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
7080         (vt_add_function_parameter): Likewise.
7082         * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
7083         * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
7084         * config/alpha/alpha.c (alpha_legitimize_address_1)
7085         (get_unaligned_address, alpha_expand_unaligned_load)
7086         (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
7087         (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
7088         (alpha_expand_builtin_establish_vms_condition_handler)
7089         (alpha_setup_incoming_varargs, emit_frame_store_1)
7090         (alpha_expand_prologue, alpha_expand_epilogue)
7091         (alpha_use_linkage): Likewise.
7092         * config/alpha/alpha.md: Likewise.
7094         * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
7095         (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
7096         (thumb_legitimize_address, arm_gen_load_multiple_1)
7097         (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
7098         (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
7099         (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
7100         (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
7101         (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
7102         (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
7103         (thumb_expand_movmemqi, arm_set_return_address)
7104         (thumb_set_return_address): Likewise.
7105         * config/arm/arm.md: Likewise.
7107         * config/avr/avr.c (avr_incoming_return_addr_rtx)
7108         (avr_prologue_setup_frame, expand_epilogue)
7109         (avr_const_address_lo16): Likewise.
7111         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
7112         * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
7113         (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
7114         (bfin_output_mi_thunk): Likewise.
7116         * config/c6x/c6x.c (c6x_initialize_trampoline)
7117         (c6x_output_mi_thunk): Likewise.
7119         * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
7120         * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
7122         * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
7123         (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
7124         (cris_emit_movem_store, cris_trampoline_init): Likewise.
7125         * config/cris/cris.md: Likewise.
7127         * config/darwin.c (machopic_indirect_data_reference)
7128         (machopic_legitimize_pic_address): Likewise.
7130         * config/epiphany/epiphany.c (epiphany_emit_save_restore)
7131         (epiphany_expand_prologue, epiphany_expand_epilogue)
7132         (epiphany_trampoline_init): Likewise.
7133         * config/epiphany/epiphany.md: Likewise.
7135         * config/fr30/fr30.c (fr30_move_double): Likewise.
7137         * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
7138         (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
7139         (frv_index_memory, unspec_got_name, frv_find_base_term)
7140         (frv_output_dwarf_dtprel): Likewise.
7142         * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
7143         (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
7145         * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
7146         * config/i386/i386.c (setup_incoming_varargs_64)
7147         (setup_incoming_varargs_ms_64, choose_baseaddr)
7148         (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
7149         (ix86_emit_probe_stack_range, ix86_expand_prologue)
7150         (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
7151         (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
7152         (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
7153         (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
7154         (x86_output_mi_thunk): Likewise.
7155         * config/i386/i386.md: Likewise.
7157         * config/ia64/ia64.c (ia64_expand_load_address)
7158         (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
7159         (do_spill, ia64_trampoline_init): Likewise.
7161         * config/iq2000/iq2000.c (iq2000_va_start)
7162         (iq2000_emit_frame_related_store, iq2000_expand_prologue)
7163         (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
7164         (iq2000_print_operand, iq2000_legitimize_address): Likewise.
7166         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7168         * config/m32c/m32c.c (m32c_return_addr_rtx)
7169         (m32c_expand_insv): Likewise.
7171         * config/m32r/m32r.c (m32r_setup_incoming_varargs)
7172         (m32r_legitimize_pic_address, m32r_print_operand)
7173         (m32r_print_operand_address): Likewise.
7175         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
7176         * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
7177         (EH_RETURN_HANDLER_RTX): Likewise.
7178         * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
7179         (m68k_expand_epilogue, legitimize_pic_address)
7180         (m68k_output_mi_thunk): Likewise.
7181         * config/m68k/m68k.md: Likewise.
7183         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7184         (mcore_expand_epilog): Likewise.
7185         * config/mcore/mcore.md: Likewise.
7187         * config/mep/mep.c (mep_allocate_initial_value)
7188         (mep_expand_prologue, mep_expand_epilogue): Likewise.
7190         * config/microblaze/microblaze.c (double_memory_operand)
7191         (microblaze_block_move_loop): Likewise.
7193         * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
7194         (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
7195         (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
7196         (mips_expand_prologue, mips_epilogue_set_cfa)
7197         (mips_expand_epilogue): Likewise.
7198         * config/mips/mips.md: Likewise.
7200         * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
7201         (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
7203         * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
7204         (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
7206         * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
7207         (EH_RETURN_HANDLER_RTX): Likewise.
7208         * config/moxie/moxie.c (moxie_static_chain): Likewise.
7210         * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
7211         (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
7212         (pa_return_addr_rtx, hppa_builtin_saveregs)
7213         (pa_trampoline_init): Likewise.
7214         * config/pa/pa.md: Likewise.
7216         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
7218         * config/picochip/picochip.c (picochip_static_chain): Likewise.
7220         * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
7221         * config/rs6000/rs6000.c (rs6000_legitimize_address)
7222         (setup_incoming_varargs, print_operand, rs6000_return_addr)
7223         (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
7224         (rs6000_emit_epilogue)
7225         (rs6000_machopic_legitimize_pic_address): Likewise.
7227         * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7229         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
7230         (DYNAMIC_CHAIN_ADDRESS): Likewise.
7231         * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
7232         (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
7233         (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
7234         (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
7235         (s390_emit_epilogue, s390_function_profiler): Likewise.
7236         * config/s390/s390.md: Likewise.
7238         * config/score/score.c (score_add_offset, score_prologue): Likewise.
7240         * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
7241         (sh_output_mi_thunk): Likewise.
7242         * config/sh/sh.md: Likewise.
7244         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
7245         (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
7246         * config/sparc/sparc.c (sparc_legitimize_pic_address)
7247         (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
7248         (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
7249         (emit_and_preserve): Likewise.
7250         * config/sparc/sparc.md: Likewise.
7252         * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7253         * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
7254         (spu_setup_incoming_varargs, ea_load_store_inline)
7255         (spu_expand_load): Likewise.
7257         * config/stormy16/stormy16.c (xstormy16_expand_prologue)
7258         (combine_bnp): Likewise.
7260         * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7261         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
7262         (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
7264         * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7265         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
7266         (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
7268         * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
7269         * config/v850/v850.md: Likewise.
7271         * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
7272         (EH_RETURN_HANDLER_RTX): Likewise.
7273         * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
7274         * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
7275         (print_operand_address, vax_trampoline_init): Likewise.
7277         * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
7278         (xtensa_function_value_regno_p): Likewise.
7280 2012-05-04  Andrew Pinski  <apinski@cavium.com>
7282         * expr.c (get_def_for_expr_class): New function.
7283         (convert_tree_comp_to_rtx): New function.
7284         (expand_cond_expr_using_cmove): New function.
7285         (expand_expr_real_2 <case COND_EXPR>): Call
7286         expand_cond_expr_using_cmove first and return if it succeeds.
7287         Remove the check for HAVE_conditional_move since we should have
7288         already converted it to a conditional move.
7289         * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
7290         modes of DImode for 32bits and TImode.
7292 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
7294         PR other/29442
7295         * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
7296         (print_md_ptr_loc, print_c_condition): Use them.
7297         * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
7298         * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
7299         attr_file, dfa_file, latency_file): New global variables.
7300         (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
7301         write_upcase, write_indent, write_length_unit_log, write_test_expr,
7302         write_attr_get, write_insn_cases, write_eligible_delay,
7303         write_const_num_delay_slots): Accept FILE pointer and toss it around.
7304         Update all callers.
7305         (write_header, open_outfile, handle_arg): New funcions.
7306         (make_automaton_attrs): Write prototypes as extern to the output
7307         files.
7308         (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
7309         names from the command line.  Open the output files and write out
7310         internal functions for DFA functions to dfa_file_name, insn latency
7311         functions to latency_file_name, and everything else to attr_file.
7312         * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
7313         (BACKEND): Build libbackend first.
7314         (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
7315         (.PRECIOUS): Likewise.
7316         (insn-dfatab.o): New rule.
7317         (insn-latencytab.o): New rule.
7318         (simple_rtl_generated_c): Do not include insn-attrtab.c.
7319         (s-attrtab): New rule.
7321 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
7323         * rtl.def (ATTR_FLAG): Remove probability indicating flags.
7324         * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
7325         ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
7326         * reorg.c (get_jump_flags): Do not set the removed flags.
7328         * doc/md.texi (attr_flag): Update for abovementioned changes.
7330 2012-05-04  Uros Bizjak  <ubizjak@gmail.com>
7332         PR target/53228
7333         * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
7334         (TARGET_CMOV): Rename from TARGET_CMOVE.
7335         (TARGET_CMOVE): New define.
7336         * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
7337         Do not set TARGET_CMOVE here.
7339 2012-05-04  Dodji Seketeli  <dodji@redhat.com>
7341         Enable -Wunused-local-typedefs when -Wall or -Wunused is on
7342         * opts.c (finish_options): Activate -Wunused-local-typedefs if
7343         -Wunused is activated.
7344         * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
7346 2012-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7348         * config/s390/s390.md (*movmem_short, *clrmem_short)
7349         (*cmpmem_short): Move the mode check from the insn condition to
7350         the match_scratch.
7352 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
7354         PR tree-optimization/52633
7355         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
7356         vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
7357         (vect_recog_over_widening_pattern): Remove handling of code that was
7358         already detected as over-widening pattern.  Remove special handling
7359         of "unsigned" cases.  Instead, support general case of conversion
7360         of the shift result to another type.
7362 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
7364         * tree-vect-patterns.c (vect_single_imm_use): New function.
7365         (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
7366         (vect_recog_over_widening_pattern): Likewise.
7367         (vect_recog_widen_shift_pattern): Likewise.
7369 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
7371         * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
7372         (vect_handle_widen_op_by_const): Use it instead of open-coding test.
7373         (vect_recog_widen_mult_pattern): Likewise.
7374         (vect_operation_fits_smaller_type): Likewise.
7375         (vect_recog_over_widening_pattern): Likewise.
7376         (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
7378 2012-05-04  Richard Guenther  <rguenther@suse.de>
7380         PR lto/50602
7381         * lto-wrapper.c (merge_and_complain): Complain about mismatches
7382         of -freg-struct-return and -fpcc-struct-return.
7383         (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
7384         from the input file options and ignore those from the link
7385         command line.
7387 2012-05-04  Richard Guenther  <rguenther@suse.de>
7389         PR tree-optimization/53168
7390         * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
7391         memory reads when the result is a constant we can pun.
7393 2012-05-04  Richard Guenther  <rguenther@suse.de>
7395         * common.opt (flto-report): Do not mark as Optimization.
7397 2012-05-04  Eric Botcazou  <ebotcazou@adacore.com>
7399         PR target/48496
7400         * recog.c (constrain_operands): If extra constraints are present, also
7401         accept pseudo-registers with equivalent memory locations during reload.
7403 2012-05-04  Olivier Hainque  <hainque@adacore.com>
7405         * collect2.c (may_unlink_output_file): New global.
7406         (maybe_unlink): Honor it.
7407         * collect2.h: Add extern for it.
7408         * tlink.c (do_tlink): Set it to true if the link succeeded.
7410 2012-05-04  Olivier Hainque  <hainque@adacore.com>
7412         * gcc.c (eval_spec_function): Finalize/restore the current string
7413         obstack state as part of the context push/pop operations.
7415 2012-05-04  Bin Cheng  <bin.cheng@arm.com>
7417         PR rtl-optimization/52804
7418         * reload1.c (reload_reg_reaches_end_p): Check whether successor
7419         reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
7420         of current one with type RELOAD_FOR_INPADDR_ADDRESS.
7421         Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
7422         RELOAD_FOR_OUTADDR_ADDRESS.
7424 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7426         PR c++/24985
7427         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
7428         for macro expansion.
7430 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7432         * flags.h (flag_permissive): Do not declare.
7433         * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
7434         option specially.
7435         * toplev.c (flag_permissive): Do not define.
7436         * c-tree.h (system_header_p): Delete unused.
7438 2012-05-03  David S. Miller  <davem@davemloft.net>
7440         PR target/52684
7441         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
7442         MEM directly into a libcall, mark it's MEM_EXPR as addressable.
7443         (sparc_emit_float_lib_cmp): Likewise.
7445 2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
7447         PR target/53199
7448         * config/rs6000/rs6000.md (bswapdi splitters): If
7449         -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
7450         default) is used, generate an alternate sequence that does not
7451         depend on using indexed addressing.
7453 2012-05-03  Jason Merrill  <jason@redhat.com>
7455         * gengtype.c (write_types): Fix warning message.
7456         (write_local): Likewise.
7458 2012-05-02  Jason Merrill  <jason@redhat.com>
7460         * dwarf2out.c (struct external_ref, build_local_stub): New.
7461         (hash_external_ref, external_ref_eq, lookup_external_ref): New.
7462         (optimize_external_refs, optimize_external_refs_1): New.
7463         (change_AT_die_ref): New.
7464         (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
7465         (build_abbrev_table): Take the external refs hashtable.
7466         (output_comp_unit): Get it from optimize_external_refs and pass it in.
7468 2012-05-03  Jan Hubicka  <jh@suse.cz>
7470         PR middle-end/53093
7471         * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
7473 2012-05-03  Jan Hubicka  <jh@suse.cz>
7475         PR middle-end/53106
7476         * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
7478 2012-05-03  Jason Merrill  <jason@redhat.com>
7480         * dwarf2out.c (die_struct): Add comdat_type_p flag.  Use it instead of
7481         use_debug_types to discriminate the die_id union.
7482         (print_die, assign_symbol_names, copy_decls_walk): Likewise.
7483         (build_abbrev_table, output_die): Likewise.
7484         (prune_unused_types_walk_attribs): Likewise.
7485         (generate_type_signature, copy_declaration_context): Set it.
7486         (remove_child_or_replace_with_skeleton): Set it.
7487         (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
7488         check use_debug_types.
7489         (dwarf2out_finish): Do break_out_includes after .debug_types.
7491 2012-05-03  Jason Merrill  <jason@redhat.com>
7493         * dwarf2out.c (modified_type_die): Use scope_die_for.
7494         (gen_type_die_with_usage, dwarf2out_finish): Likewise.
7495         (uses_local_type_r, uses_local_type): New.
7496         (scope_die_for): Keep a type that uses a local type in local scope.
7497         Use get_context_die for namespace and type scope.
7499 2012-05-03  Jason Merrill  <jason@redhat.com>
7501         * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
7502         pc thunk.
7503         * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
7504         (dwarf2out_finish): Likewise.
7506 2012-05-03  Martin Jambor  <mjambor@suse.cz>
7508         * builtins.c (get_object_alignment_1): Return whether we can determine
7509         the alignment or conservatively assume byte alignment.  Return the
7510         alignment by reference.  Use get_pointer_alignment_1 for dereference
7511         alignment.
7512         (get_pointer_alignment_1): Return whether we can determine the
7513         alignment or conservatively assume byte alignment.  Return the
7514         alignment by reference.  Use get_ptr_info_alignment to get SSA name
7515         alignment.
7516         (get_object_alignment): Update call to get_object_alignment_1.
7517         (get_object_or_type_alignment): Likewise, fall back to type alignment
7518         only when it returned false.
7519         (get_pointer_alignment): Update call to get_pointer_alignment_1.
7520         * fold-const.c (get_pointer_modulus_and_residue): Update call to
7521         get_object_alignment_1.
7522         * ipa-prop.c (ipa_modify_call_arguments): Update call to
7523         get_pointer_alignment_1.
7524         * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
7525         of MEM_REF or TARGET_MEM_REF only when it returns false.
7526         * tree-ssa-ccp.c (get_value_from_alignment): Update call to
7527         get_object_alignment_1.
7528         (ccp_finalize): Use set_ptr_info_alignment.
7529         * tree.h (get_object_alignment_1): Update declaration.
7530         (get_pointer_alignment_1): Likewise.
7531         * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
7532         (dump_gimple_stmt): Likewise.
7533         * tree-flow.h (ptr_info_def): Updated comments of fields align and
7534         misalign.
7535         (get_ptr_info_alignment): Declared.
7536         (mark_ptr_info_alignment_unknown): Likewise.
7537         (set_ptr_info_alignment): Likewise.
7538         (adjust_ptr_info_misalignment): Likewise.
7539         * tree-ssa-address.c (copy_ref_info): Use new access functions to get
7540         and set alignment of SSA names.
7541         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
7542         mark_ptr_info_alignment_unknown.
7543         * tree-ssanames.c (get_ptr_info_alignment): New function.
7544         (mark_ptr_info_alignment_unknown): Likewise.
7545         (set_ptr_info_alignment): Likewise.
7546         (adjust_ptr_info_misalignment): Likewise.
7547         (get_ptr_info): Call mark_ptr_info_alignment_unknown.
7548         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7549         Likewise.
7550         (bump_vector_ptr): Likewise.
7551         * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
7552         (vectorizable_store): Likewise.
7553         (vectorizable_load): Likewise.
7555 2012-05-03  Michael Matz  <matz@suse.de>
7557         * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
7558         in front of basic_block_def.
7559         (struct basic_block_def): Make il.gimple the full struct, not a
7560         pointer.
7561         (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
7563         * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
7564         * gimple-iterator.c (gimple_stmt_iterator): Don't special case
7565         NULL il.gimple, which can't happen anymore.
7566         * gimple.h (bb_seq): il.gimple can't be NULL.
7567         (bb_seq_add): Ditto.
7568         (set_bb_seq): Adjust.
7569         (gsi_start_bb, gsi_last_bb): Tidy.
7570         * lto-streamer-in.c (make_new_block): Don't zero members that
7571         are zeroed already, don't allocate a gimple_bb_info.
7572         * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
7573         (remove_bb): Clear all il.gimple members.
7574         (gimple_verify_flow_info): Adjust for flat il.gimple.
7575         * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
7577         * coretypes.h (const_gimple_seq): Remove typedef.
7578         * gimple.h (gimple_seq_first): Take gimple_seq.
7579         (gimple_seq_first_stmt): Ditto.
7580         (gimple_seq_last): Ditto.
7581         (gimple_seq_last_stmt): Ditto.
7582         (gimple_seq_empty_p): Ditto.
7584 2012-05-03  Richard Guenther  <rguenther@suse.de>
7586         * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
7587         operations.
7588         (prune_clobbered_mems): Do it here.  Do not uselessly sort expressions.
7589         (compute_avail): Do not add possibly trapping operations to
7590         EXP_GEN if they might not be executed in the block.
7592 2012-05-03  Uros Bizjak  <ubizjak@gmail.com>
7594         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
7596 2012-05-03  Steven Bosscher  <steven@gcc.gnu.org>
7598         * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
7599         information as early as possible.  Update dominance info instead of
7600         discarding it.
7602 2012-05-03  Richard Guenther  <rguenther@suse.de>
7604         * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
7605         (union_contains_value): Remove.
7606         (vro_valid_in_sets): Likewise.
7607         (op_valid_in_sets): New function.
7608         (valid_in_sets): Use op_valid_in_sets.
7609         (insert_into_preds_of_block): Move dumping ...
7610         (do_regular_insertion): ... here.
7611         (do_partial_partial_insertion): ... and here.  Dump that
7612         we've found a partial partial redundancy.
7613         (insert): Dump the current insert iteration.
7615 2012-05-03  Jakub Jelinek  <jakub@redhat.com>
7617         PR plugins/53126
7618         * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
7619         append program name to it and pass that as first argument
7620         to make_relative_prefix.  Always pass standard_libexec_prefix
7621         as last argument to make_relative_prefix.  If
7622         make_relative_prefix returns NULL, fall back to
7623         standard_libexec_prefix.
7625         PR debug/53174
7626         * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
7627         removed.
7629         PR target/53187
7630         * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
7631         mode, return that mode.
7633         PR target/53194
7634         * config/i386/i386-c.c (ix86_target_macros_internal): Don't
7635         define __ATOMIC_HLE_* macros here.
7636         (ix86_target_macros): But here, using cpp_define_formatted.
7638 2012-05-03  Richard Guenther  <rguenther@suse.de>
7640         PR tree-optimization/53144
7641         * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
7642         Rename to ...
7643         (vn_reference_lookup_or_insert_for_pieces): ... this.  Properly deal
7644         with SSA name values.
7645         (vn_reference_lookup_3): Adjust callers.
7647 2012-05-03  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
7649         * config/i386/driver-i386.c (host_detect_local_cpu): Reset
7650         has_fma4 for AMD processors with both fma3 and fma4 support.
7652 2012-05-03  Kirill Yukhin  <kirill.yukhin@intel.com>
7654         PR target/53201
7655         * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
7656         "-mno-hle".
7658 2012-05-03  Michael Matz  <matz@suse.de>
7660         PR bootstrap/53197
7661         * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
7662         (dse_enter_block): Properly iterate the whole sequence even
7663         if the last statement was removed.
7665 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
7667         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
7668         unset flag_jump_tables.
7669         * stmt.c (expand_case): Remove special flag_pic case conditional
7670         on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
7672 2012-05-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
7674         * common/config/s390/s390-common.c (s390_option_optimization_table):
7675         Enable -fsched-pressure using -fsched-pressure-algorithm=model by
7676         default when optimizing.
7678 2012-05-02  Martin Jambor  <mjambor@suse.cz>
7680         PR lto/52605
7681         * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
7682         of a variable when the contect is a function.
7684 2012-05-02  Michael Matz  <matz@suse.de>
7686         * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
7687         * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
7688         (const_gimple_seq_node): Remove.
7689         (gimple_seq_node): Typedef as gimple.
7690         (struct gimple_statement_base): Add next and prev members,
7691         adjust all WORD markers in using structs.
7692         (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
7693         (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
7694         gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
7695         gimple are the same.
7696         (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
7697         gimple_seq, adjust.
7698         (gimple_init_singleton): New function.
7699         (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
7700         (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
7701         (gsi_stmt): Adjust.
7702         (gsi_stmt_ptr): Remove.
7703         (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
7705         * gimple-iterator.c (update_bb_for_stmts): Take last parameter
7706         again, adjust for above changes.
7707         (update_call_edge_frequencies): Adjust for above changes.
7708         (gsi_insert_seq_nodes_before): Rewrite for new data structure.
7709         (gsi_insert_seq_nodes_after): Ditto.
7710         (gsi_split_seq_after): Ditto.
7711         (gsi_set_stmt): Ditto.
7712         (gsi_split_seq_before): Ditto.
7713         (gsi_remove): Ditto.
7714         (gsi_insert_seq_before_without_update): Don't free sequence.
7715         (gsi_insert_seq_after_without_update): Ditto.
7716         (gsi_replace): Assert some more invariants.
7717         (gsi_insert_before_without_update, gsi_insert_after_without_update):
7718         Tidy.
7719         (gsi_for_stmt): Don't search for stmt.
7720         (gsi_insert_on_edge_immediate): Tidy.
7722         * gimple.c (gimple_alloc_k): Remove "sequences".
7723         (gimple_seq_cache): Remove.
7724         (gimple_alloc_stat): Make stmt a singleton sequence.
7725         (gimple_seq_alloc, gimple_seq_free): Remove.
7726         (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
7727         (gimple_copy): Ditto.
7728         * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
7729         create iterator from correct sequence.
7730         * tree-phinodes.c (make_phi_node): Make stmt a singleton.
7732 2012-05-02  Michael Matz  <matz@suse.de>
7734         * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
7735         gimple_seq.
7736         (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
7737         sequence, lazily allocate it.
7738         (bb_seq_addr): New function.
7739         (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
7740         (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
7741         (gsi_none): New function.
7742         (gsi_start_bb): Adjust.
7743         (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
7744         (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
7745         (gsi_last_bb): Adjust.
7746         (gsi_seq): Adjust.
7747         * tree-flow-inline.h (phi_nodes_ptr): New function.
7749         * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
7750         datastructure and interface change.
7751         (gsi_insert_seq_before_without_update): Ditto.
7752         (gsi_insert_seq_nodes_after): Ditto.
7753         (gsi_insert_seq_after_without_update): Ditto.
7754         (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
7755         (gsi_split_seq_before): Ditto.
7756         (gsi_start_phis): Adjust.
7757         * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
7758         (vect_transform_loop): Ditto.
7759         * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
7760         gimple_seq_copy): Don't use gimple_seq_alloc.
7761         * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
7762         (gimplify_seq_add_seq): Ditto.
7763         * lto-streamer-in.c (make_new_block): Ditto.
7764         * tree-cfg.c (create_bb): Ditto.
7765         * tree-sra.c (initialize_parameter_reductions): Ditto.
7767 2012-05-02  Michael Matz  <matz@suse.de>
7769         * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
7770         gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
7771         gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
7772         set_bb_seq): Move down to after gimple_statement_d definition.
7774 2012-05-02  Michael Matz  <matz@suse.de>
7776         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
7777         gsi_replace_with_seq, instead of inserting itself.
7778         * gimple-iterator.c (gsi_replace_with_seq): New function.
7779         * tree-ssa-forwprop.c (forward_propagate_comparison): Take
7780         iterator instead of statement, advance it.
7781         (ssa_forward_propagate_and_combine): Adjust call to above.
7783 2012-05-02  Michael Matz  <matz@suse.de>
7785         * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
7786         gimple_seq_alloc.
7787         * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
7788         * tree-nested.c (walk_gimple_omp_for): Ditto.
7789         * trans-mem.c (lower_transaction): Ditto.
7790         * tree-eh.c (do_return_redirection): Ditto.
7791         (do_goto_redirection): Ditto.
7792         (lower_try_finally_switch): Ditto.
7793         * gimplify.c (gimplify_stmt): Ditto.
7794         (gimplify_scan_omp_clauses): Ditto.
7795         (gimplify_omp_for): Ditto.
7796         (gimplify_function_tree): Ditto.
7797         * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
7798         * tree-mudflap.c (mf_decl_cache_locals): Ditto.
7799         (mf_build_check_statement_for): Ditto.
7800         (mx_register_decls): Ditto.
7801         * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
7802         and don't use itertors to append.
7803         (insert_stmts): Ditto.
7804         (insert_out_of_ssa_copy): Ditto.
7805         (insert_out_of_ssa_copy_on_edge): Ditto.
7807 2012-05-02  Michael Matz  <matz@suse.de>
7809         * gimple.h (gimple_bind_body_ptr): New function.
7810         (gimple_bind_body): Use it.
7811         (gimple_catch_handler): Use gimple_catch_handler_ptr.
7812         (gimple_eh_filter_failure_ptr): New function.
7813         (gimple_eh_filter_failure): Use it.
7814         (gimple_eh_else_n_body_ptr): New function.
7815         (gimple_eh_else_n_body): Use it.
7816         (gimple_eh_else_e_body_ptr): New function.
7817         (gimple_eh_else_e_body): Use it.
7818         (gimple_try_eval_ptr): New function.
7819         (gimple_try_eval): Use it.
7820         (gimple_try_cleanup_ptr): New function.
7821         (gimple_try_cleanup): Use it.
7822         (gimple_wce_cleanup_ptr): New function.
7823         (gimple_wce_cleanup): Use it.
7824         (gimple_omp_body_ptr): New function.
7825         (gimple_omp_body): Use it.
7826         (gimple_omp_for_pre_body_ptr): New function.
7827         (gimple_omp_for_pre_body): Use it.
7828         (gimple_transaction_body_ptr): New function.
7829         (gimple_transaction_body): Use it.
7830         (gsi_split_seq_before): Adjust to return nothing and take pointer
7831         to sequence.
7832         (gsi_set_stmt): Declare.
7833         (gsi_replace_with_seq): Declare.
7834         (walk_gimple_seq_mod): Declare.
7835         * function.h (struct function <gimple_body>): Use typedef gimple_seq.
7837         * gimple-iterator.c (gsi_set_stmt): New function.
7838         (gsi_split_seq_before): Return new sequence via pointer argument.
7839         (gsi_replace): Use gsi_set_stmt.
7841         * tree-ssa-loop-im.c (move_computations_stmt): First remove
7842         then insert stmt.
7843         * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
7844         * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
7845         return new stmt.
7846         (reserve_phi_args_for_new_edge): Change call to above,
7847         use gsi_set_stmt.
7849         * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
7850         (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
7851         iterators.  Adjust call to lower_omp.
7852         (lower_lastprivate_clauses): Adjust call to lower_omp.
7853         (lower_reduction_clauses): Ditto.
7854         (expand_omp_taskreg): Nullify non-cfg body of child_fn.
7855         (lower_omp_sections): Don't explicitely count sequence length,
7856         nullify lowered bodies earlier, ensure stmts are part of only
7857         one sequence, adjust call to lower_omp.
7858         (lower_omp_single): Ensure stmts are part of only one sequence,
7859         adjust call to lower_omp.
7860         (lower_omp_master): Ditto.
7861         (lower_omp_ordered): Ditto.
7862         (lower_omp_critical): Ditto.
7863         (lower_omp_for): Ditto.
7864         (lower_omp_taskreg): Ditto, tidy.
7865         (lower_omp_1): Adjust calls to lower_omp.
7866         (execute_lower_omp): Ditto.
7867         (lower_omp): Adjust to take pointer to sequence.
7868         (diagnose_sb_2): Use walk_gimple_seq_mod.
7869         (diagnose_omp_structured_block_errors): Ditto and set possibly
7870         changed function body.
7871         * gimple-low.c (lower_function_body): Set function body after
7872         it stabilizes.
7873         (lower_sequence): Adjust to take pointer to sequence.
7874         (lower_omp_directive): Ensure stmt isn't put twice into the
7875         sequence, adjust call to lower_sequence.
7876         (lower_stmt): Adjust calls to lower_sequence.
7877         (lower_gimple_bind): Ditto.
7878         (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
7879         * tree-nested.c (walk_body): Take pointer to sequence, use
7880         walk_gimple_seq_mod.
7881         (walk_function): Adjust call to walk_body, set possibly changed body.
7882         (walk_gimple_omp_for): Adjust calls to walk_body.
7883         (convert_nonlocal_omp_clauses): Ditto.
7884         (convert_nonlocal_reference_stmt): Ditto.
7885         (convert_local_omp_clauses): Ditto.
7886         (convert_local_reference_stmt): Ditto.
7887         (convert_tramp_reference_stmt): Ditto.
7888         (convert_gimple_call): Ditto.
7889         (convert_nl_goto_reference): Use local iterator copy.
7890         * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
7891         but taking pointer to sequence, ensure gsi_start is called with
7892         callers lvalue.
7893         (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
7894         asserting that the sequence head didn't change.
7895         (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
7896         walk_gimple_seq_mod.
7897         * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
7898         (execute_lower_tm): Ditto, and set possibly changed body.
7899         * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
7900         call gsi_start with that lvalue.
7901         (replace_goto_queue_stmt_list): Ditto.
7902         (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
7903         (replace_goto_queue): Ditto.
7904         (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
7905         (lower_try_finally_onedest): Ditto.
7906         (lower_try_finally_copy): Ditto.
7907         (lower_try_finally_switch): Ditto.
7908         (lower_try_finally): Ditto.
7909         (lower_eh_filter): Ditto.
7910         (lower_eh_must_not_throw): Ditto.
7911         (lower_cleanup): Ditto.
7912         (lower_eh_constructs_2): Ditto.
7913         (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
7914         (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
7915         set possibly changed body.
7916         (optimize_double_finally): Call gsi_start with lvalue.
7918         * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
7919         (gimple_split_block): Ditto.
7920         (gimple_merge_blocks): Use gsi_start_phis.
7921         (move_stmt_r): Use walk_gimple_seq_mod.
7922         * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
7923         * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
7924         (rebuild_cgraph_edges): Ditto.
7925         (cgraph_rebuild_references): Ditto.
7926         * ipa-prop.c (ipa_analyze_params_uses): Ditto.
7927         * tree-inline.c (copy_phis_for_bb): Ditto.
7928         * tree-ssa-dce.c: Ditto.
7930         * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
7932 2012-05-02  Kirill Yukhin  <kirill.yukhin@intel.com>
7933             Andi Kleen <ak@linux.intel.com>
7935         * coretypes.h (MEMMODEL_MASK): New.
7936         * builtins.c (get_memmodel): Add val. Call target.memmodel_check
7937         and return new variable.
7938         (expand_builtin_atomic_exchange):  Mask memmodel values.
7939         (expand_builtin_atomic_compare_exchange): Ditto.
7940         (expand_builtin_atomic_load): Ditto.
7941         (expand_builtin_atomic_store): Ditto.
7942         (expand_builtin_atomic_clear): Ditto.
7943         * doc/extend.texi: Mention port-dependent memory model flags.
7944         * config/i386/cpuid.h (bit_HLE): New.
7945         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7946         HLE support.
7947         * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
7948         * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
7949         (ix86_target_string)<-mhle>: New.
7950         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
7951         * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
7952         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
7953         (ix86_option_override_internal) <PTA_HLE>: New switch, set it
7954         enabled for generic, generic64 and core-avx2.
7955         (ix86_print_operand): Generate HLE lock prefixes.
7956         (ix86_memmodel_check): New.
7957         (TARGET_MEMMODEL_CHECK): Ditto.
7958         * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
7959         (IX86_HLE_ACQUIRE): Ditto.
7960         (IX86_HLE_RELEASE): Ditto.
7961         * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
7962         * config/i386/i386.opt (mhle): Ditto.
7963         * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
7964         success model to instruction emitter.
7965         (atomic_fetch_add<mode>): Ditto.
7966         (atomic_exchange<mode>): Ditto.
7967         (atomic_add<mode>): Ditto.
7968         (atomic_sub<mode>): Ditto.
7969         (atomic_<code><mode>): Ditto.
7970         (*atomic_compare_and_swap_doubledi_pic): Ditto.
7971         (atomic_compare_and_swap_single<mode>): Define and use argument
7972         for success model.
7973         (atomic_compare_and_swap_double<mode>): Ditto.
7974         * configure.ac: Check if assembler support HLE prefixes.
7975         * configure: Regenerate.
7976         * config.in: Ditto.
7978 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
7980         PR middle-end/53153
7981         * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
7982         split out from ...
7983         (gimplify_switch_expr): ... here.
7984         * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
7985         * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
7986         to clean up case labels with values outside the index type range.
7987         (simplify_gimple_switch): Call it if something changed.
7988         Remove strange and unnecessary assert.
7990 2012-05-02  Richard Guenther  <rguenther@suse.de>
7992         * fold-const.c (div_if_zero_remainder): sizetypes no longer
7993         sign-extend.
7994         (int_const_binop_1): New worker for int_const_binop with
7995         overflowable parameter.  Pass it through to force_fit_type_double.
7996         (int_const_binop): Wrap around int_const_binop_1 with overflowable
7997         equal to one.
7998         (size_binop_loc): Call int_const_binop_1 with overflowable equal
7999         to minus one, forcing overflow detection for even unsigned types.
8000         (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
8001         (fold_binary_loc): Call try_move_mult_to_index with signed offset.
8002         * stor-layout.c (initialize_sizetypes): sizetypes no longer
8003         sign-extend.
8004         (layout_type): For zero-sized arrays ignore overflow on the
8005         size calculations.
8006         * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
8007         (bit_value_binop_1): Likewise.
8008         * tree.c (double_int_to_tree): Likewise.
8009         (double_int_fits_to_tree_p): Likewise.
8010         (force_fit_type_double): Likewise.
8011         (host_integerp): Likewise.
8012         (int_fits_type_p): Likewise.
8013         * varasm.c (output_constructor_regular_field): Sign-extend the
8014         field-offset to cater for negative offsets produced by the Ada
8015         frontend.
8016         * omp-low.c (extract_omp_for_data): Convert the loop step to
8017         signed for pointer adjustments.
8019 2012-05-02  Richard Guenther  <rguenther@suse.de>
8021         * tree.c (valid_constant_size_p): New function.
8022         * tree.h (valid_constant_size_p): Declare.
8023         * cfgexpand.c (expand_one_var): Adjust check for too large
8024         variables by using valid_constant_size_p.
8025         * varasm.c (assemble_variable): Likewise.
8027         * c-decl.c (grokdeclarator): Properly check for sizes that
8028         cover more than half of the address-space.
8030 2012-05-02  Jakub Jelinek  <jakub@redhat.com>
8032         PR tree-optimization/53163
8033         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
8034         return value from compute_all_dependences.
8036         PR rtl-optimization/53160
8037         * ree.c (combine_reaching_defs): Handle the case where cand->insn
8038         has been modified by ree pass already.
8040 2012-05-01  Ian Lance Taylor  <iant@google.com>
8042         PR c/37303
8043         * c-decl.c (build_compound_literal): Make the decl readonly if it
8044         an array of a readonly type.
8045         * gimplify.c (gimplify_compound_literal_expr): Add fallback
8046         parameter.  Change all callers.  If the decl is not addressable
8047         and is not an l-value, make it readonly.
8049 2012-05-01  Bernd Schmidt  <bernds@codesourcery.com>
8051         * ira.c (allocated_reg_info_size): New static variable.
8052         (expand_reg_info): Manage it. Call
8053         setup_preferred_alternate_classes_for_new_pseudos.
8054         (ira): Don't do it here.  Remove local allocated_reg_info_size,
8055         set the global before calling find_moveable_pseudos.
8056         (find_moveable_pseudos): Call expand_reg_info rather than
8057         resize_reg_info.
8059 2012-05-01  Richard Henderson  <rth@redhat.com>
8061         * common.opt (fsync-libcalls): New.
8062         * doc/invoke.texi: Document it.
8063         * optabs.c (init_sync_libfuncs): Honor it.
8065 2012-05-01  Kenneth Zadeck  <zadeck@naturalbridge.com>
8066             Richard Sandiford  <r.sandiford@uk.ibm.com>
8068         PR rtl-optimization/52543
8069         * Makefile.in (lower-subreg.o, target-globals.o): Depend on
8070         lower-subreg.h.
8071         * lower-subreg.h: New file.
8072         * target-globals.h (this_target_lower_subreg): Declare.
8073         (target_globals): Add lower_subreg;
8074         (restore_target_globals): Restore this_target_lower_subreg.
8075         * target-globals.c: Include it.
8076         (default_target_globals): Add default_target_lower_subreg.
8077         (save_target_globals): Initialize target_lower_subreg.
8078         * rtl.h (init_lower_subreg): Added declaration.
8079         * toplev.c (backend_init_target): Call initializer for lower-subreg
8080         pass.
8081         * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
8082         (default_target_lower_subreg): New variable.
8083         (this_target_lower_subreg): Likewise.
8084         (twice_word_mode, choices): New macros.
8085         (shift_cost, compute_splitting_shift, compute_costs)
8086         (init_lower_subreg): New functions.
8087         (resolve_simple_move): Add speed_p argument.  Check choices.
8088         (find_pseudo_copy): Don't check the mode size here.
8089         (resolve_simple_move): Assert the mode size.
8090         (find_decomposable_shift_zext): Add speed_p argument and return
8091         a bool.  Check choices.
8092         (resolve_shift_zext): Add comment.
8093         (dump_shift_choices, dump_choices): New functions.
8094         (decompose_multiword_subregs): Dump list of profitable
8095         transformations.  Add code to skip non profitable transformations.
8096         Update calls to simple_move and find_decomposable_shift_zext.
8098 2012-05-01  Ian Bolton  <ian.bolton@arm.com>
8099             Sameera Deshpande  <sameera.deshpande@arm.com>
8100             Greta Yorsh  <greta.yorsh@arm.com>
8102         * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
8103         (thumb1_unexpanded_epilogue): ...this.
8104         * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
8105         (thumb1_unexpanded_epilogue): ...this.
8106         * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
8107         (thumb1_unexpanded_epilogue): ...this.
8109 2012-05-01  Richard Earnshaw  <rearnsha@arm.com>
8111         * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
8112         comparing enumeration values.  Update comments.
8114 2012-05-01  Alan Modra  <amodra@gmail.com>
8116         PR target/53038
8117         * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
8118         load_cr_save, add_crlr_cfa_restore): New functions.
8119         (rs6000_restore_saved_cr): Rename to..
8120         (restore_saved_cr): ..this.  Add cfa_restore notes for cr.
8121         (rs6000_emit_epilogue): Use new functions.  Adjust condition
8122         for emitting lr and cr cfa_restore.  Emit cfa_restores for fp
8123         regs when using out-of-line restore only when shrink wrapping.
8125 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
8127         PR middle-end/53136
8128         * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
8129         calls to cgraph_node_name in xstrdup.
8130         (ipa_make_edge_direct_to_target): Ditto.
8131         * cgraph.c (dump_cgraph_node): Ditto.
8132         * tree-sra.c (convert_callers_for_node): Ditto.
8133         * lto-symtab.c (lto_cgraph_replace_node): Ditto.
8134         * ipa-cp.c (perhaps_add_new_callers): Ditto.
8135         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
8136         (cgraph_materialize_all_clones): Ditto.
8137         * ipa-inline.c (report_inline_failed_reason): Ditto.
8138         (want_early_inline_function_p): Ditto.
8139         (edge_badness): Ditto.
8140         (update_edge_key): Ditto.
8141         (flatten_function): Ditto.
8142         (ipa_inline): Ditto.
8143         (inline_always_inline_functions): Ditto.
8144         (early_inline_small_functions): Ditto.
8146 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
8148         PR target/53141
8149         * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
8150         constraints 0 and 1.
8152 012-04-30  Jan Hubicka  <jh@suse.cz>
8154         * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
8155         (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
8156         (cgraph_add_to_same_comdat_group): Remove.
8157         (cgraph_add_asm_node): Move to cgraphunit.c.
8158         (cgraph_make_decl_local): Move to symtab.c
8159         (cgraph_make_node_local_1): Update.
8160         (cgraph_can_remove_if_no_direct_calls_and): Update.
8161         (used_from_object_file_p): Update.
8162         (resolution_used_from_other_file_p): Move to symtab.c
8163         (cgraph_used_from_object_file_p): move to symtab.c
8164         (verify_cgraph_node): Verify same comdat groups.
8165         * cgraph.h (cgraph_asm_node): Rename to ...
8166         (asm_node): ... this one.
8167         (cgraph_asm_nodes): Rename to ...
8168         (asm_nodes): ... this one.
8169         (symtab_add_to_same_comdat_group): New function.
8170         (symtab_dissolve_same_comdat_group_list): New function.
8171         (symtab_used_from_object_file_p): Declare.
8172         (symtab_make_decl_local): Declare.
8173         (cgraph_add_to_same_comdat_group): Remove.
8174         (cgraph_add_asm_node): Remove.
8175         (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
8176         Remove.
8177         (cgraph_finalize_compilation_unit): Rename to ...
8178         (finalize_compilation_unit): ... this one.
8179         (cgraph_optimize): Rename to ....
8180         (compile): ... this one.
8181         (add_asm_node): Declare.
8182         (fixup_same_cpp_alias_visibility): Declare.
8183         (cgraph_make_decl_local): Remove.
8184         (varpool_assemble_pending_decls): Rename to ...
8185         (varpool_output_variables): ... this one.
8186         (varpool_remove_unreferenced_decls): Remove.
8187         * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
8188         (preserve_function_body_p): Make static.
8189         * toplev.c (compile_file): Update comments; update.
8190         * cgraphunit.c: Update comments.
8191         (cgraph_expand_all_functions): Rename to ...
8192         (expand_all_functions): ... this one; update.
8193         (cgraph_mark_functions_to_output): Rename to ...
8194         (mark_functions_to_output): ... this one; cleanup.
8195         (cgraph_output_pending_asms): Remove prototype.
8196         (asm_nodes, asm_last_node): New static vars.
8197         (cgraph_process_new_functions): Update.
8198         (cgraph_reset_node): Cleanup; add comment.
8199         (cgraph_add_new_function): Update.
8200         (cgraph_output_pending_asms): Rename to ...
8201         (output_asm_statements): ... this one.
8202         (add_asm_node): New function.
8203         (fixup_same_cpp_alias_visibility): New function based on code
8204         in cgraph_analyze_function.
8205         (cgraph_analyze_function): Use it.
8206         (cgraph_order_sort): Update.
8207         (cgraph_output_in_order): Update.
8208         (cgraph_function_versioning): Update.
8209         (cgraph_optimize): Rename to ...
8210         (compile): ... this one; initialize streamer hooks here.
8211         (cgraph_finalize_compilation_unit): Rename to ...
8212         (finalize_compilation_unit): ... this one; do not initialize streamer
8213         hook here.
8214         * lto-streamer-out.c (lto_output_toplevel_asms): Update.
8215         * dwarf2out.c: Update ocmment.
8216         * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
8217         * method.c (use_thunk): Likewise.
8218         * semantics.c (maybe_add_lambda_conv_op): Likewise.
8219         * decl2.c (maybe_emit_vtables): Likewise.
8220         (cp_write_global_declarations): Use finalize_compilation_unit.
8221         * parser.c (cp_parser_asm_definition): Use add_asm_node.
8222         * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
8223         * c-decl.c (c_write_global_declarations): Use
8224         finalize_compilation_unit.
8225         * langhooks.c (write_global_declarations): Update.
8226         * ipa.c (cgraph_externally_visible_p): Update.
8227         (dissolve_same_comdat_group_list): Remove.
8228         (function_and_variable_visibility): Update.
8229         * symtab.c: Inlcude lto-streamer.h and rtl.h
8230         (ld_plugin_symbol_resolution_names): New.
8231         (symtab_add_to_same_comdat_group): New.
8232         (symtab_dissolve_same_comdat_group_list): New.
8233         (resolution_used_from_other_file_p): Move here from cgraph.c
8234         (symtab_used_from_object_file_p): New.
8235         (symtab_make_decl_local): New.
8236         * passes.c (register_pass): Update comments.
8237         * c-parser.c (c_parser_asm_definition): Update.
8238         * varpool.c (varpool_analyze_node): Use
8239         fixup_same_cpp_alias_visibility.
8240         (varpool_remove_unreferenced_decls): Make static.
8241         (varpool_assemble_pending_decls): Rename to ...
8242         (varpool_output_variables): ... this one; call
8243         varpool_remove_unreferenced_decls.
8244         (varpool_used_from_object_file_p): Remove.
8246 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
8248         PR c++/51033
8249         * c-typeck.c (build_array_ref): Call
8250         convert_vector_to_pointer_for_subscript.
8251         * doc/extend.texi (Vector Extensions): Subscripting not just for C.
8253 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
8255         * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
8256         to compile-time "mode == <MODE>mode" checks.
8257         (and splitter): Ditto.
8259 2012-04-30  Richard Henderson  <rth@redhat.com>
8261         * config/arm/arm.md (UNSPEC_LL): New.
8262         * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
8263         (arm_load_exclusivedi): Use %H0.
8265 2012-04-30  Jason Merrill  <jason@redhat.com>
8267         * dwarf2out.c (comdat_symbol_id): Add const.
8268         (union die_symbol_or_type_node): Add const to die_symbol.
8269         (output_die_symbol, output_die, output_comp_unit): Adjust.
8271 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
8273         * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
8274         * config/arm/neon.md (negdi2_neon): New insn.
8275         Also add splitters for core and NEON registers.
8277 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
8279         * config/arm/arm.c (neon_valid_immediate): Allow const_int.
8280         (arm_print_operand): Add 'x' format.
8281         * config/arm/constraints.md (Dn): Allow const_int.
8282         * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
8283         Use 'x' format to print constants.
8284         * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
8285         * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
8286         is enabled.
8287         (movdi_vfp_cortexa8): Likewise.
8289 2012-04-30  Ian Bolton  <ian.bolton@arm.com>
8290             Sameera Deshpande  <sameera.deshpande@arm.com>
8291             Greta Yorsh  <greta.yorsh@arm.com>
8293         * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
8294         * config/arm/arm.c (ldm_stm_operation_p): New function.
8295         * config/arm/predicates.md (load_multiple_operation): Update predicate.
8296         (store_multiple_operation): Likewise.
8298         * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
8299         * config/arm/arm.c (ldm_stm_operation_p): New parameters.
8300         * config/arm/predicates.md (load_multiple_operation): Add arguments.
8301         (store_multiple_operation): Likewise.
8303 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
8305         * config/i386/i386.md (and<mode>3): Expand masking operations with
8306         0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
8307         (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
8309 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
8311         Add -Wvarargs option
8312         * builtins.c (fold_builtin_next_arg):  Use OPT_Wvarargs as an
8313         argument for the various warning_at calls.
8314         * docs/invoke.texi: Update the documentation.
8316 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
8318         Switch -ftrack-macro-expansion=2 on by default.
8319         * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
8320         by default.
8322         Fix va_start related location
8323         * builtins.c (fold_builtin_next_arg): Unwinds to the first
8324         location in real source code.
8326         Make conversion warnings work on NULL with -ftrack-macro-expansion
8327         * input.h (expansion_point_location_if_in_system_header): Declare
8328         new function.
8329         * input.c (expansion_point_location_if_in_system_header): Define it.
8331         Fix -Wuninitialized for -ftrack-macro-expansion
8332         * tree-ssa.c (warn_uninit): Use the spelling location of the variable
8333         declaration.  Use linemap_location_before_p for source locations.
8335         Strip "<built-in>" loc from displayed expansion context
8336         * input.c (expand_location_1): When expanding to spelling location
8337         in a context of a macro expansion, skip reserved system header
8338         locations.  Update comments.  * tree-diagnostic.c
8339         (maybe_unwind_expanded_macro_loc): Likewise.
8341         Make expand_location resolve to locus in main source file
8342         * input.c (expand_location_1): New.  Takes a parameter to choose
8343         whether to resolve the location to spelling or expansion point.
8344         Was factorized from ...
8345         (expand_location): ... here.
8346         (expand_location_to_spelling_point): New.  Implemented in terms of
8347         expand_location_1.
8348         * diagnostic.c (diagnostic_build_prefix): Use the new
8349         expand_location_to_spelling_point instead of expand_location.
8351         Fix PCH crash on GTYed pointer-to-scalar field of a struct
8352         * gengtype.c (write_types_process_field): Force second argument of
8353         the call to the PCH object hierarchy walker to be 'x'.
8355 2012-04-30  Eric Botcazou  <ebotcazou@adacore.com>
8357         * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
8358         predicate to discriminate types.
8360 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8362         * doc/invoke.texi (Wmissing-format-attribute): Document as an
8363         alias of Wsuggest-attribute=format.
8364         * c-typeck.c (convert_for_assignment): Replace
8365         Wmissing-format-attribute with Wsuggest-attribute=format.
8366         (digest_init): Likewise.
8368 2012-04-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8370         * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
8371         * common.opt (Wmissing-noreturn): Alias of
8372         -Wsuggest-attribute=noreturn.
8374 2012-04-29  Hans-Peter Nilsson  <hp@axis.com>
8376         PR target/53156
8377         * config/cris/cris.md (andqu): New peephole2.
8378         (andu): Tweak head comment.
8380 2012-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8381             Steven Bosscher  <steven@gcc.gnu.org>
8382             Maxim Kuvyrkov  <maxim@codesourcery.com>
8384         PR tree-optimization/38785
8385         * common.opt (ftree-partial-pre): New option.
8386         * doc/invoke.texi: Document it.
8387         * opts.c (default_options_table): Initialize flag_tree_partial_pre.
8388         * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
8389         benefit speed path.
8390         (execute_pre): Use flag_tree_partial_pre.
8392 2012-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8394         PR target/52999
8395         * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
8396         in constant pool.
8398 2012-04-27  Ollie Wild  <aaw@google.com>
8400         * doc/invoke.texi (Wliteral-suffix): Document new option.
8402 2012-04-27  Tom Tromey  <tromey@redhat.com>
8404         * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
8405         (dwarf_tag_name): Use get_DW_TAG_name.
8406         (dwarf_attr_name): Use get_DW_AT_name.
8407         (dwarf_form_name): Use get_DW_FORM_name.
8408         * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
8410 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
8412         * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
8413         arguments are -1 and 0, by negating the result of the conditional.
8415 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
8417         PR target/53138
8418         * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
8420 2012-04-27  Richard Guenther  <rguenther@suse.de>
8422         * tree-flow.h (is_hidden_global_store): Remove.
8423         * tree-ssa-sink.c (is_hidden_global_store): Likewise.
8424         * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
8425         (stmt_may_clobber_global_p): Likewise.
8426         * tree-ssa-alias.c (ref_may_alias_global_p): New function.
8427         (stmt_may_clobber_global_p): Likewise.
8428         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
8429         stmt_may_clobber_global_p.
8430         * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
8432 2012-04-27  Steven Bosscher  <steven@gcc.gnu.org>
8434         * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
8435         place.
8437         * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
8438         reorganize some fields and update comments.  Rename bit_test_uniq
8439         and bit_test_count to uniq resp. count.  Remove bit_test_bb.
8440         (collect_switch_conv_info): New function, collects info about a
8441         GIMPLE_SWITCH into a struct switch_conv_info.
8442         (check_range): Simplify to use pre-recorded info.  Fix think-o in
8443         range-branch ratio check.
8444         (check_process_case): Remove function.
8445         (check_all_empty_except_final): New function, verifies that all
8446         non-final basic blocks are empty.
8447         (process_switch): Simplify to use pre-recorded info.  Call
8448         collect_switch_conv_info to do that.  Assert that degenerate switch
8449         statements have been cleaned up.
8451 2012-04-27  Marc Glisse  <marc.glisse@inria.fr>
8453         PR middle-end/27139
8454         * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
8456 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8458         PR c/53130
8459         * c-typeck.c (pop_init_level): Use %qD instead of %qT.
8461 2012-04-27  Tom de Vries  <tom@codesourcery.com>
8463         PR tree-optimization/51879
8464         * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
8465         * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
8466         of ...
8467         (defs_to_varying): ... here.  Don't set use_processed.
8468         (visit_reference_op_call): Handle gimple_vdef.
8469         Handle case that lhs is NULL_TREE.
8470         (visit_use): Use mark_use_processed.  Handle calls with side-effect
8471         using visit_reference_op_call.
8473 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
8475         * sched-deps.c (fixup_sched_groups): Rename to...
8476         (chain_to_prev_insn): ...this.
8477         (chain_to_prev_insn_p): New function.
8478         (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
8480 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
8482         * sched-int.h (_haifa_insn_data): Move priority_status.
8483         Add model_index.
8484         (INSN_MODEL_INDEX): New macro.
8485         * haifa-sched.c (insn_delay): New function.
8486         (sched_regno_pressure_class): Update commentary.
8487         (mark_regno_birth_or_death): Pass the liveness bitmap and
8488         pressure array as arguments, instead of using curr_reg_live and
8489         curr_reg_pressure.  Only update the pressure if the bit in the
8490         liveness set has changed.
8491         (initiate_reg_pressure_info): Always trust the live-in set for
8492         SCHED_PRESSURE_MODEL.
8493         (initiate_bb_reg_pressure_info): Update call to
8494         mark_regno_birth_or_death.
8495         (dep_list_size): Take the list as argument.
8496         (calculate_reg_deaths): New function, extracted from...
8497         (setup_insn_reg_pressure_info): ...here.
8498         (MODEL_BAR): New macro.
8499         (model_pressure_data, model_insn_info, model_pressure_limit)
8500         (model_pressure_group): New structures.
8501         (model_schedule, model_worklist, model_insns, model_num_insns)
8502         (model_curr_point, model_before_pressure, model_next_priority):
8503         New variables.
8504         (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
8505         (MODEL_INSN_INFO, MODEL_INSN): New macros.
8506         (model_index, model_update_limit_points_in_group): New functions.
8507         (model_update_limit_points, model_last_use_except): Likewise.
8508         (model_start_update_pressure, model_update_pressure): Likewise.
8509         (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
8510         (model_excess_cost, model_dump_pressure_points): Likewise.
8511         (model_set_excess_costs): Likewise.
8512         (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
8513         SCHED_PRIORITY_MODEL.  Use insn_delay.  Use the order in the model
8514         schedule as an alternative tie-breaker.  Update the call to
8515         dep_list_size.
8516         (ready_sort): Call model_set_excess_costs.
8517         (update_register_pressure): Update call to mark_regno_birth_or_death.
8518         Rely on that function to check liveness rather than doing it here.
8519         (model_classify_pressure, model_order_p, model_add_to_worklist_at)
8520         (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
8521         (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
8522         (model_record_pressure, model_record_pressures): New functions.
8523         (model_record_final_pressures, model_add_successors_to_worklist)
8524         (model_promote_predecessors, model_choose_insn): Likewise.
8525         (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
8526         (model_start_schedule, model_finalize_pressure_group): Likewise.
8527         (model_end_schedule): Likewise.
8528         (schedule_insn): Say when we're scheduling the next instruction
8529         in the model schedule.
8530         (schedule_insn): Handle SCHED_PRESSURE_MODEL.
8531         (queue_to_ready): Do not add instructions that are
8532         MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
8533         Always allow the next instruction in the model schedule to be added.
8534         (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
8535         and delay for SCHED_PRESSURE_MODEL too.
8536         (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
8537         SCHED_PRIORITY_MODEL, but also take the DFA into account.
8538         (schedule_block): Call model_start_schedule and model_end_schedule.
8539         Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
8540         (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8541         to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
8542         region_ref_regs.
8543         (sched_finish): Update accordingly.
8544         (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8545         to SCHED_PRESSURE_MODEL.
8546         (add_jump_dependencies): Update call to dep_list_size.
8547         (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
8548         (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8549         to SCHED_PRESSURE_MODEL.
8550         * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
8551         allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
8552         (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
8553         handling to SCHED_PRESSURE_MODEL.
8555 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
8557         * common.opt (fsched-pressure-algorithm=): New option.
8558         * flag-types.h (sched_pressure_algorithm): New enum.
8559         * sched-int.h (sched_pressure_p): Replace with...
8560         (sched_pressure): ...this new variable.
8561         * haifa-sched.c (sched_pressure_p): Replace with...
8562         (sched_pressure): ...this new variable.
8563         (sched_regno_pressure_class, rank_for_schedule, ready_sort)
8564         (update_reg_and_insn_max_reg_pressure, schedule_insn)
8565         (debug_ready_list, prune_ready_list, schedule_block, sched_init)
8566         (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
8567         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8568         (sched_analyze_insn): Likewise.
8569         * sched-rgn.c (schedule_region): Likewise.
8570         * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
8572 2012-04-26  Bernd Schmidt  <bernds@codesourcery.com>
8574         * PR middle-end/52997
8575         * ira.c (find_moveable_pseudos): Call resize_reg_info.
8577         PR middle-end/52940
8578         * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
8579         * expr.c (convert_move): Honor unsignedp when extending partial int
8580         modes.
8581         * genmodes.c (complete_mode): Don't clear component field of partial
8582         int modes.
8583         (emit_mode_inner): Don't emit it however.
8584         (calc_wider_mode): Partial int modes widen to their component.
8586 2012-04-26  David S. Miller  <davem@davemloft.net>
8588         * config/sparc/niagara4.md: New file.
8589         * config/sparc/sparc.md: Include it.
8590         * config/sparc/sparc.c (niagara4_costs): New processor costs.
8591         (sparc_option_override): Use it.
8592         (sparc_use_sched_lookahead): Return 2 for niagara4.
8593         (sparc_issue_rate): Likewise.
8595         * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
8596         (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
8597         (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
8598         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
8599         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
8600         alignaddrldi_vis): Set type to gsr.
8601         (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
8602         (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
8603         cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
8604         v<vis3_shift_patname><mode>3, fmean16_vis,
8605         fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
8606         fucmp<code>8<P:mode>_vis): Set type to fga.
8607         * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
8608         * config/sparc/niagara.md: Likewise.
8609         * config/sparc/niagara2.md: Likewise.
8610         * config/sparc/ultra3.md: Likewise, and fix type matching for
8611         us3_ialuX reservation.
8613 2012-04-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8615         * reload.c (find_reloads): Change the loop nesting when trying an
8616         alternative with swapped operands.
8618 2012-04-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8620         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
8621         comment. Delete unused parameter first_exp_point_map.
8622         (virt_loc_aware_diagnostic_finalizer): Update call.
8624 2012-04-26  Michael Hope  <michael.hope@linaro.org>
8625             Richard Earnshaw  <rearnsha@arm.com>
8627         * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
8628         (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
8629         (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
8630         (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
8632 2012-04-25  Sriraman Tallam  <tmsriram@google.com>
8634         * doc/extend.texi: Document avx2 support.
8635         * config/i386/i386.c (fold_builtin_cpu): Add avx2.
8637 2012-04-26  Hans-Peter Nilsson  <hp@axis.com>
8639         PR target/53120
8640         * config/cris/cris.md ("*andhi_lowpart_v32")
8641         ("*andqi_lowpart_v32"): Change first input-only operand from
8642         a (match_operand ...) to (match_dup 0).  Drop alternatives with
8643         const_int-matching constraints for redundancy.
8644         ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
8645         three-operand alternative.
8647 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
8649         PR target/53110
8650         * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
8651         instead expand it as zero extension.
8653 2012-04-25  H.J. Lu  <hongjiu.lu@intel.com>
8655         PR debug/52857
8656         * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
8658 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
8660         * common.opt (flag_debug_types_section): Default to 0.
8661         (dwarf_version): Default to 4.
8662         (dwarf_record_gcc_switches): Default to 1.
8663         (dwarf_strict): Default to 0.
8664         * toplev.c (process_options): Don't handle dwarf_strict
8665         or dwarf_version here.
8666         * config/vxworks.c (vxworks_override_options): Don't
8667         test whether dwarf_strict or dwarf_version are negative,
8668         instead test !global_options_set.x_dwarf_*.
8669         * config/darwin.c (darwin_override_options): Default to
8670         dwarf_version 2.
8671         * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
8672         and -fno-debug-types-section are now the default.
8674 2012-04-25  Jan Hubicka  <jh@suse.cz>
8676         * cgraphunit.c: Update toplevel comment.
8677         (tree_rest_of_compilation): Merge into cgraph_expand_function.
8678         (cgraph_analyze_function): Make static.
8679         (cgraph_decide_is_function_needed): Make static.
8680         (cgraph_add_new_function): Use expand_function instead of
8681         rest_of_compilation.
8682         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
8683         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
8684         Move to cgraph.c
8685         (cgraph_inline_p): Remove.
8686         (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
8687         (init_cgraph): Add comment.
8688         * cgraphbuild.c (record_reference, mark_address, mark_load,
8689         mark_store): Do not call analyze_expr hook.
8690         * cgraph.c: Update toplevel comment.
8691         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
8692         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
8693         Move fere from cgraphunit.c
8694         (cgraph_mark_force_output_node): Move to cgraph.h
8695         * cgraph.h: Reorder so the comments match the function placement.
8696         (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
8697         (cgraph_mark_force_output_node): Move here from cgraph.c
8698         * tree.c (free_lang_data): Do not clear analyze_expr hook.
8699         * ipa-inline-transform.c (preserve_function_body_p): New function.
8700         (inline_transform): Update.
8701         * langhooks.c (lhd_callgraph_analyze_expr): Remove.
8702         * langhooks.h (lang_hooks_for_callgraph): Remove.
8703         (lang_hooks): Remove callgraph.
8704         * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
8705         * varpool.c: Remove out of date comment.
8706         * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
8707         (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
8709 2012-04-25  Jan Hubicka  <jh@suse.cz>
8711         PR middle-end/53089
8712         * cgraphunit.c (referred_to_p): Move ahead in file to avoid
8713         forward declaration.
8714         (cgraph_finalize_function): Finalize them here.
8715         * symtab.c (dump_symtab): Dump ctors and dtors.
8717 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
8719         PR middle-end/52979
8720         * stor-layout.c (get_best_mode): Don't return mode with bitsize
8721         larger than maxbits.  Don't compute maxbits modulo align.
8722         Also check that unit bytes long store at bitpos / unit * unit
8723         doesn't affect bits beyond bitregion_end.
8724         * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
8725         would not fit into bitregion_start ... bitregion_end + 1 bit region.
8726         (store_split_bit_field): Decrease unit close to end of bitregion_end
8727         if access is restricted in order to avoid mutual recursion.
8729         PR tree-optimization/53058
8730         * double-int.h (double_int_max_value, double_int_min_value): New
8731         prototypes.
8732         * double-int.c (double_int_max_value, double_int_min_value): New
8733         functions.
8734         * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
8735         or GT_EXPR with double_int_max_value instead of double_int_mask.
8737 2012-04-25  Richard Guenther  <rguenther@suse.de>
8739         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
8740         * tree-vect-loop.c (vect_transform_loop): Adjust.
8741         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
8742         the maximum number of iterations for the epilogue loop.
8743         (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
8745 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
8747         PR c/52880
8748         * c-typeck.c (set_nonincremental_init,
8749         set_nonincremental_init_from_string): Pass true instead of false
8750         as IMPLICIT to add_pending_init.
8752 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8754         * c-typeck.c (pop_init_level): Improve diagnostics.
8756 2012-04-25  Uros Bizjak  <ubizjak@gmail.com>
8758         * compare-elim.c (try_eliminate_compare): Also handle operands with
8759         implicit extensions.
8761 2012-04-25  Alan Modra  <amodra@gmail.com>
8763         * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
8764         V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
8765         SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
8766         (no_global_regs_above): Delete.
8767         (no_global_regs): New function.
8768         (rs6000_savres_strategy): Handle vector regs.  Use proper lr_save_p
8769         value for load multiple test.
8770         (savres_routine_syms): Increase size.
8771         (rs6000_savres_routine_name, rs6000_savres_routine_sym,
8772         ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
8773         rather than a number of boolean flags.  Update all callers.
8774         (rs6000_savres_routine_name): Generate vector save/restore names.
8775         (rs6000_savres_routine_sym): Handle vector regs.  Delete forward decl.
8776         (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
8777         (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
8778         and using_store_multiple.  Expand uses.  Don't always use r11 as
8779         frame reg when needed for out-of-line saves.  Set up initial offset
8780         for out-of-line vector saves when buying stack frame.  Handle pointer
8781         reg setup for out-of-line fp save.  Emit call to out-of-line vector
8782         save function.  Choose r11 or r12 for vrsave reg when available for
8783         better scheduling.
8784         (rs6000_output_function_prologue): Don't emit .extern for ELF.
8785         (rs6000_emit_epilogue): Choose a better frame reg when restoring
8786         from back-chain to suit out-of-line vector restore functions.  Emit
8787         call to out-of-line vector restore function.  Adjust register used
8788         for cr restore.  Tweak pointer register setup for gpr restore.
8789         * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
8790         FIXED_R13.
8791         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
8792         (V_SAVE_INLINE): Define.
8793         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
8795 2012-04-25  Alan Modra  <amodra@gmail.com>
8797         * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
8798         out-of-line save/restore for large frames.  Don't disable
8799         out-of-line saves on ABI_AIX when using static chain reg.
8800         (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
8801         clobber static chain reg, and tweak for out-of-line gpr saves
8802         that use r1.
8804 2012-04-25  Alan Modra  <amodra@gmail.com>
8806         * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
8807         (rs6000_emit_prologue): Use the above to catch register overlap.
8809 2012-04-25  Alan Modra  <amodra@gmail.com>
8811         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
8812         decl.  Move logic selecting update reg to callers.  Update all callers.
8813         (rs6000_emit_allocate_stack): Add copy_off param.
8814         (emit_frame_save): Don't handle reg+reg addressing.
8815         (ptr_regno_for_savres): New function, extracted from..
8816         (rs6000_emit_savres_rtx): ..here.  Add lr_offset param.
8817         (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
8818         Set frame_reg_rtx to r11 whenever r11 is needed, and merge
8819         frame offset adjustment for out-of-line save with copy from sp.
8820         Simplify condition controlling whether cr is saved early or
8821         late.  Use ptr_regno_for_savres to verify correct reg is set
8822         up for out-of-line saves.  Pass the actual pointer reg used to
8823         rs6000_emit_savres_rtx so rtl matches insns in out-of-line
8824         function.  Rearrange spe vars so code is similar to that
8825         elsewhere in this function.  Don't update frame_off when spe
8826         save code will restore r11.  Use emit_frame_save for spe and
8827         gpr saves.  Consolidate darwin out-of-line gpr setup with that
8828         for other abis.  Don't assume frame_offset is zero and frame
8829         reg is sp when setting up altivec reg saves, and calculate
8830         exact offset requirement.
8831         (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off.  Tidy
8832         spe restore code.  Consolidate darwin out-of-line gpr setup
8833         with that for other abis.
8835 2012-04-25  Alan Modra  <amodra@gmail.com>
8837         * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
8838         REG_FRAME_RELATED_EXPR note when the instruction exactly matches
8839         the replacement.
8840         (emit_frame_save): Delete frame_ptr param.  Rename total_size to
8841         frame_reg_to_sp.
8842         (rs6000_emit_prologue): Add sp_off.  Update rs6000_frame_related
8843         and emit_frame_save calls.  Cope with possibly missing note.
8845 2012-04-24  Sriraman Tallam  <tmsriram@google.com>
8847         * config/i386/i386.c (build_processor_model_struct): New function.
8848         (make_var_decl): New function.
8849         (fold_builtin_cpu): New function.
8850         (ix86_fold_builtin): New function.
8851         (make_cpu_type_builtin): New function.
8852         (ix86_init_platform_type_builtins): New function.
8853         (ix86_expand_builtin): Expand new builtins by folding them.
8854         (ix86_init_builtins): Make new builtins to detect CPU type.
8855         (TARGET_FOLD_BUILTIN): New macro.
8856         (IX86_BUILTIN_CPU_INIT): New enum value.
8857         (IX86_BUILTIN_CPU_IS): New enum value.
8858         (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
8859         * config/i386/i386-builtin-types.def: New function type.
8860         * testsuite/gcc.target/builtin_target.c: New testcase.
8861         * doc/extend.texi: Document builtins.
8863 2012-04-24  Olivier Hainque  <hainque@adacore.com>
8865         * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
8866         * toplev.c (process_options): Default to dwarf_version 2.
8867         * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
8868         and dwarf_version 2.
8870 2012-04-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8872         * tree-pretty-print.h (default_tree_printer): Do not declare.
8873         * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
8874         intl.h.
8875         (default_tree_diagnostic_starter): Make static.
8876         (default_tree_printer): Move to here. Make static.
8877         (tree_diagnostics_defaults): New.
8878         * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
8879         * tree.c (free_lang_data): Use tree_diagnostics_defaults.
8880         * toplev.c: Do not include tree-pass.h.
8881         (default_tree_printer): Move from here.
8882         (general_init): Use tree_diagnostics_defaults.
8884 2012-04-24  Chao-ying Fu  <fu@mips.com>
8886         * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
8887         (mips*-*-linux*): Append mips/linux-common.h to tm_file.
8888         * config/mips/gnu-user.h
8889         (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
8890         (GNU_USER_TARGET_LINK_SPEC): New define.
8891         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
8892         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
8893         (GNU_USER_TARGET_MATHFILE_SPEC): New define.
8894         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
8895         GNU_USER_TARGET_ENDFILE_SPEC.
8896         * config/mips/gnu-user64.h (LIB_SPEC): Remove.
8897         (GNU_USER_TARGET_LINK_SPEC): New define.
8898         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
8899         * config/mips/linux-common.h: New file.
8901 2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8903         PR target/47197
8904         * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
8905         (altivec_build_resolved_builtin): Call fully_fold_convert.
8907 2012-04-24  Georg-Johann Lay  <avr@gjlay.de>
8909         PR target/53065
8910         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
8912 2012-04-24  Richard Guenther  <rguenther@suse.de>
8914         PR tree-optimization/53085
8915         * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
8916         stores.
8918 2012-04-24  Richard Guenther  <rguenther@suse.de>
8920         * tree-if-conv.c (main_tree_if_conversion): Move bb under
8921         ENABLE_CHECKING.
8923 2012-04-24  Jim Meyering  <meyering@redhat.com>
8925         * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
8926         absence of an define_enum call.
8928 2012-04-24  Richard Guenther  <rguenther@suse.de>
8930         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
8931         the epilogue loop is not re-used as unvectorized version
8932         record the its maximum number of iterations.
8934 2012-04-24  Andrew Pinski  <apinski@cavium.com>
8936         * tree-ssa-forwprop.c (simplify_bitwise_binary):
8937         Don't directly use def1/def2.
8939 2012-04-24  Richard Guenther  <rguenther@suse.de>
8941         PR tree-optimization/53098
8942         * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
8943         comparison sign.
8945 2012-04-24  Andrew Pinski  <apinski@cavium.com>
8947         PR tree-opt/33512
8948         * tree-ssa-forwprop.c (defcodefor_name): New function.
8949         (simplify_bitwise_binary): Use defcodefor_name instead of manually
8950         Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
8951         Simplify "(~X | Y) & X" to "X & Y" and
8952         "(~X & Y) | X" to "X | Y".
8954 2012-04-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8956         * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
8957         validate_change to add clobbers if IN_GROUP is nonzero.
8958         (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
8959         * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
8960         prototype.
8961         * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
8962         set to false.
8963         * config/s390/s390.c (insn_invalid_p): Likewise.
8965 2012-04-24  Jakub Jelinek  <jakub@redhat.com>
8967         PR middle-end/53084
8968         * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
8969         (output_addressed_constants): Likewise.
8971         PR middle-end/52999
8972         * varasm.c (get_section): Don't ICE for section conflicts with
8973         built-in section kinds.
8975 2012-04-23  DJ Delorie  <dj@redhat.com>
8977         * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
8978         (LIBSTDCXX): Change to CPP2.
8980 2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>
8982         PR bootstrap/52878
8983         * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
8984         extra_masks.
8986 2012-04-23  Uros Bizjak  <ubizjak@gmail.com>
8988         * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
8989         (*addsi_2_zext): Ditto.
8990         (*add<mode>_3): Ditto.
8991         (*addsi_3_zext): Ditto.
8992         (*add<mode>_5): Ditto.
8994 2012-04-23  Andrew Pinski  <apinski@cavium.com>
8996         * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
8997         (C & B) to (A OP0) & B.
8999 2012-04-23  Martin Jambor  <mjambor@suse.cz>
9001         * expr.c (expand_expr_real_1): Remove setting parent's alias set for
9002         temporaries created for a bitfield (reverting revision 122014).
9004 2012-04-23  Richard Guenther  <rguenther@suse.de>
9006         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
9007         the condition using is_gimple_condexpr and avoid the not necessary
9008         boolification.
9009         (set_prologue_iterations): Likewise.
9010         (vect_loop_versioning): Likewise.
9012 2012-04-23  Richard Guenther  <rguenther@suse.de>
9014         PR tree-optimization/53070
9015         * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
9016         (main_tree_if_conversion): Verify we succeeded in that.
9018 2012-04-23  Jan Hubicka  <jh@suse.cz>
9020         * lto-symtab.c (lto_cgraph_replace_node): Do not call
9021         mark_reahcable_node.
9022         * cgraph.c (cgraph_remove_node): Do not clear reachable.
9023         (cgraph_mark_reachable_node): Remove.
9024         (cgraph_mark_force_output_node): Do not set reachable.
9025         (dump_cgraph_node): Do not dump reachable.
9026         (cgraph_create_virtual_clone): Do not set reachable.
9027         * cgraph.h (cgraph_node): Remove reachable flag.
9028         (varpool_node): Remove reachable flag.
9029         (cgraph_mark_if_needed): Remove.
9030         (cgraph_mark_reachable_node): Remove.
9031         * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
9032         * cgraphunit.c (cgraph_finalize_function): Do not mark node as
9033         reachable.
9034         (cgraph_add_new_function): Likewise.
9035         (cgraph_mark_if_needed): Remove.
9036         (cgraph_analyze_function): Do not set target as reachable.
9037         (process_function_and_variable_attributes): Do not care about
9038         dllexport.
9039         (cgraph_analyze_functions): Do not set reachable flags.
9040         (cgraph_mark_functions_to_output): Do not check reachability.
9041         (cgraph_copy_node_for_versioning): Do not set reachable flag.
9042         (dbxout_expand_expr): Update.
9043         * c-decl.c (merge_decls): Do not track changed externs.
9044         * ipa.c: Include pointer-set.h
9045         (enqueue_cgraph_node): Use reachable pointer set.
9046         (process_references): Likewise.
9047         (cgraph_remove_unreachable_nodes): Likewise.
9048         (whole_program_function_and_variable_visibility): Do not recompute
9049         reachable.
9050         * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
9052 2012-04-23  Georg-Johann Lay  <avr@gjlay.de>
9054         * doc/extend.texi (AVR Named Address Spaces): Fix typos.
9056 2012-04-23  Richard Guenther  <rguenther@suse.de>
9058         PR c/53060
9059         * c-typeck.c (build_binary_op): Fix typo.
9061 2012-04-23  Jakub Jelinek  <jakub@redhat.com>
9063         PR tree-optimizations/52891
9064         * tree-vect-patterns.c (adjust_bool_pattern): Use
9065         build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
9066         but with non-standard precision.
9068 2012-04-22  Jan Hubicka  <jh@suse.cz>
9070         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
9071         tree refs.
9073 2012-04-22  Jan Hubicka  <jh@suse.cz>
9075         * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
9076         * cgraphbuild.c (record_reference, record_type_list, mark_address,
9077         mark_load, mark_store): Do not mark varpool nodes as needed.
9078         * cgraph.c (cgraph_new_nodes): Remove.
9079         (cgraph_create_function_alias): Do not mark nodes as reachable.
9080         (cgraph_add_thunk): Likewise.
9081         (cgraph_mark_reachable_node): Do not manage the queue.
9082         * cgraph.h (cgraph_node): Remove next_needed.
9083         (varpool_nodes_queue): Remove next_needed and prev_needed.
9084         (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
9085         (cgraph_new_nodes): Declare.
9086         (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
9087         (varpool_analyze_pending_decls): Remove.
9088         (varpool_analyze_node): New.
9089         (varpool_mark_needed_node): Remove.
9090         (varpool_first_variable, varpool_next_variable): New inlines.
9091         (varpool_first_static_initializer, varpool_next_static_initializer):
9092         Update.
9093         (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
9094         (varpool_first_defined_variable): New inline.
9095         (varpool_next_defined_variable): New inline
9096         (FOR_EACH_VARIABLE): Reimplement.
9097         (FOR_EACH_DEFINED_VARIABLE): Reimplement.
9098         * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
9099         needed flag.
9100         * cgraphunit.c (cgraph_new_nodes): Declare here.
9101         (enqueue_node): New function.
9102         (cgraph_process_new_functions): update for new
9103         node set; when constructing cgraph enqueue node for processing.
9104         (cgraph_add_new_function): Use new node set.
9105         (process_function_and_variable_attributes): Do not set varpool needed
9106         flags.
9107         (referred_to_p): New function.
9108         (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
9109         when varpool is in construction.
9110         (cgraph_analyze_functions): Rewrite.
9111         (cgraph_expand_all_functions): Update.
9112         (cgraph_output_in_order): Do not analyze pending decls; do not set
9113         needed flags.
9114         (cgraph_optimize): Do not analyze pending decls.
9115         * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
9116         in other partition; do not mark node as needed.
9117         * dwarf2out.c (reference_to_unused): Use analyzed flag.
9118         (premark_types_used_by_global_vars_helper): Likewise.
9119         * ipa.c (process_references): Do not call varpool_mark_needed_node.
9120         (cgraph_remove_unreachable_nodes): Do not rely on varpool and
9121         cgrpah queues.
9122         (function_and_variable_visibility): Do not mark node as needed.
9123         (whole_program_function_and_variable_visibility): Likewise.
9124         * Makefile.in (gt-varpool.h): No longer needed.
9125         * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
9126         (ipa_write_summaries): Do not use needed flag.
9127         * varpool.c: Do not include gt-varpool.h
9128         (x_varpool_nodes_queue, x_varpool_last_needed_node,
9129         x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
9130         x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
9131         Remove.
9132         (varpool_remove_node): Do not update the lists.
9133         (dump_varpool_node): Do not dump needed flag.
9134         (varpool_enqueue_needed_node): Remove.
9135         (varpool_mark_needed_node): Remove.
9136         (varpool_reset_queue): Remove.
9137         (varpool_finalize_decl): Move to cgraphunit.c
9138         (varpool_analyze_node): New functions based on former
9139         varpool_analyze_pending_decls.
9140         (varpool_analyze_pending_decls): Remove.
9141         (varpool_assemble_decl): Do not update the lists.
9142         (enqueue_node): New function.
9143         (varpool_remove_unreferenced_decls): Rewrite.
9144         (varpool_empty_needed_queue): Remove.
9145         (add_new_static_var): Do not mark node as needed.
9146         (varpool_create_variable_alias): Handle expansion state
9147         creation.
9148         * except.c (output_ttype): Do not mark node as needed.
9149         * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
9150         * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
9151         Likewise.
9152         * tree-switch-conversion.c (build_one_array): Likewise.
9154 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9156         PR c/44774
9157         * doc/invoke.texi (pedantic): Rename to Wpedantic.
9158         * common.opt (Wpedantic): New.
9159         (pedantic): Alias Wpedantic.
9160         * diagnostic.c (warning_at): Likewise.
9161         * c-decl.c (diagnose_mismatched_decls): Likewise.
9162         (build_array_declarator): Likewise.
9163         (mark_forward_parm_decls):
9164         (check_bitfield_type_and_width): Likewise.
9165         (grokdeclarator): Likewise.
9166         (grokfield): Likewise.
9167         (finish_struct): Likewise.
9168         (build_enumerator): Likewise.
9169         (store_parm_decls_oldstyle): Likewise.
9170         (declspecs_add_qual): Likewise.
9171         (declspecs_add_type): Likewise.
9172         (finish_declspecs): Likewise.
9173         * c-typeck.c (composite_type): Likewise.
9174         (comp_target_types): Likewise.
9175         (build_array_ref): Likewise.
9176         (pointer_diff): Likewise.
9177         (build_unary_op): Likewise.
9178         (build_conditional_expr): Likewise.
9179         (build_c_cast): Likewise.
9180         (convert_for_assignment): Likewise.
9181         (maybe_warn_string_init): Likewise.
9182         (digest_init): Likewise.
9183         (pop_init_level): Likewise.
9184         (set_init_index): Likewise.
9185         (c_finish_goto_label): Likewise.
9186         (c_finish_return): Likewise.
9187         (do_case): Likewise.
9188         (build_binary_op): Likewise.
9189         * c-parser.c (static): Likewise.
9190         (c_parser_external_declaration): Likewise.
9191         (c_parser_declaration_or_fndef): Likewise.
9192         (c_parser_static_assert_declaration_no_se): Likewise.
9193         (c_parser_enum_specifier): Likewise.
9194         (c_parser_struct_or_union_specifier): Likewise.
9195         (c_parser_struct_declaration): Likewise.
9196         (c_parser_alignas_specifier): Likewise.
9197         (c_parser_braced_init): Likewise.
9198         (c_parser_initelt): Likewise.
9199         (c_parser_compound_statement_nostart): Likewise.
9200         (c_parser_conditional_expression): Likewise.
9201         (c_parser_alignof_expression): Likewise.
9202         (c_parser_postfix_expression): Likewise.
9203         (c_parser_postfix_expression_after_paren_): Likewise.
9204         (c_parser_objc_class_instance_variables): Likewise.
9205         (c_parser_objc_method_definition): Likewise.
9206         (c_parser_objc_methodprotolist): Likewise.
9208 2012-04-22  Ian Lance Taylor  <iant@google.com>
9210         * godump.c (go_output_typedef): Dump size of structs.
9212 2012-04-22  Razya Ladelsky  <razya@il.ibm.com>
9214         Correcting transform_to_exit_first_loop + fix to PR46886
9215         * tree-parloops.c (transform_to_exit_first_loop): Remove
9216         setting of number of iterations according to the loop pattern.
9217         Duplicate from entry to exit->src instead of loop->latch.
9218         (pallelize_loops): Remove the condition preventing do-while loops.
9219         * tree-cfg.c (bool bb_in_region_p): New.
9220         (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
9221         Adjust redirection of the duplicated iteration.
9223 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
9225         PR bootstrap/53021
9226         * rtl.def (ADDRESS): Use "i" rather than "w".
9227         * rtl.h (find_base_term): Delete.
9228         (may_be_sp_based_p): Declare.
9229         * rtl.c (rtx_code_size): Remove ADDRESS special case.
9230         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
9231         (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
9232         * alias.c: ...here.
9233         (find_base_term): Make static.
9234         (may_be_sp_based_p): New function.
9235         * dse.c (record_store): Use it.
9236         * store-motion.c (store_killed_in_insn): Likewise.
9238 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
9240         * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
9242 2012-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9244         PR 35441
9245         * c-typeck.c (inform_declaration): New.
9246         (build_function_call_vec):  Do not pretty-print
9247         expressions when caret is enabled.
9248         (convert_arguments): Use inform_declaration.
9250 2012-04-20  Jim Meyering  <meyering@redhat.com>
9252         * genmodes.c (make_complex_modes): Don't truncate a mode name of
9253         length 7 or more when prepending a "C".  Suggested by Richard Guenther.
9255 2012-04-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9257         PR rtl-optimization/44214
9258         * fold-const.c (exact_inverse): New function.
9259         (fold_binary_loc): Fold vector and complex division by constant into
9260         multiply by recripocal with flag_reciprocal_math; fold vector division
9261         by constant into multiply by reciprocal with exact inverse.
9263 2012-04-20  Jan Hubicka  <jh@suse.cz>
9265         * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
9266         force flags.
9267         * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
9268         (cgraph_remove_node): Update.
9269         (cgraph_mark_needed_node): Remove.
9270         (cgraph_mark_force_output_node): New.
9271         (dump_cgraph_node): Do not dump needed flag.
9272         (cgraph_node_cannot_be_local_p_1): Update.
9273         (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
9274         * cgraph.h (symtab_node_base): Add force_output flag.
9275         (cgraph_node): Remove needed flag.
9276         (varpool_node): Remove force_output flag.
9277         (cgraph_mark_needed_node): Remove.
9278         (cgraph_mark_force_output_node): New.
9279         (cgraph_only_called_directly_or_aliased_p,
9280         varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
9281         * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
9282         * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
9283         (cgraph_add_new_function): Update.
9284         (cgraph_mark_if_needed): Update.
9285         (verify_cgraph_node): Update.
9286         (cgraph_analyze_function): Alias target is reachable.
9287         (process_function_and_variable_attributes): Update: externally_visible
9288         flag makes function reachable.
9289         (cgraph_analyze_functions): Update dumping.
9290         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9291         input_overwrite_node, input_varpool_node): Update streaming.
9292         * lto-streamer-out.c (produce_symtab): Use force_output.
9293         * ipa.c (process_references): Weakrefs must be processed.
9294         (cgraph_remove_unreachable_nodes): Likewise; update for new
9295         force_output flag.
9296         (varpool_externally_visible_p): Weakrefs are externally visible
9297         even if they are not.
9298         (function_and_variable_visibility): Update; when processing alias
9299         pair force the targets to be output.
9300         (whole_program_function_and_variable_visility): Use
9301         mark_reachable_node.
9302         * trans-mem.c (ipa_tm_mark_needed_node): Remove
9303         (ipa_tm_mark_force_output_node): New function.
9304         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
9305         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
9306         aliases.
9307         * varasm.c (mark_decl_referenced): Update.
9308         (find_decl_and_mark_needed): Remove.
9309         (find_decl): New function.
9310         (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
9311         alias targets as needed.
9312         (dump_tm_clone_pairs): Update.
9313         * tree-inline.c (copy_bb): Update check.
9314         * symtab.c (dump_symtab_base): Dump force_output.
9315         * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
9316         * passes.c (execute_todo): Fix dumping.
9317         * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
9318         (varpool_analyze_pending_decls): Alias target is reachable.
9319         (varpool_create_variable_alias): Finalize weakrefs.
9321 2012-04-20  Jakub Jelinek  <jakub@redhat.com>
9323         PR bootstrap/53021
9324         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
9325         UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
9326         * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
9327         macros instead of constants.
9328         * dse.c (record_store): Check for SP ADDRESS by comparing
9329         XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
9330         XEXP to be stack_pointer_rtx.
9332 2012-04-20  Richard Guenther  <rguenther@suse.de>
9334         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
9335         update_call_from_tree when propagating into a call.
9337 2012-04-20  Alan Modra  <amodra@gmail.com>
9339         * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
9340         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.  Rename
9341         sp_offset to frame_off.  Move world save code earlier.
9343 2012-04-20  Richard Guenther  <rguenther@suse.de>
9345         PR tree-optimization/53050
9346         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
9347         Do only one transform on COND_EXPRs at the same time.
9349 2012-04-19  Jan Hubicka  <jh@suse.cz>
9351         * symtab.c (dump_symtab_base): Revert accidental checkin.
9353 2012-04-20  Alan Modra  <amodra@gmail.com>
9355         PR target/53040
9356         * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
9357         static chain, set REST_INLINE_FPRS too.
9359 2012-04-20  Thomas Schwinge  <thomas@codesourcery.com>
9361         * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
9362         nodes.
9364 2012-04-20  Richard Guenther  <rguenther@suse.de>
9366         * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
9367         loops that can never run more often than the vectorization factor.
9369 2012-04-19  Jan Hubicka  <jh@suse.cz>
9371         * symtab.c (dump_symtab_base): Fix dumping of asm lists.
9373 2012-04-19  David Edelsohn  <dje.gcc@gmail.com>
9375         * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
9377 2012-04-19  Jim Meyering  <meyering@redhat.com>
9379         * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
9380         We verified above that the string(including trailing NUL) fits in buf,
9381         so just use memcpy.
9383 2012-04-19  Richard Guenther  <rguenther@suse.de>
9385         * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
9386         for dumping DECL_SECTION_NAME.
9388 2012-04-19  Michael Matz  <matz@suse.de>
9390         PR middle-end/52977
9391         * tree.h (VECTOR_CST_NELTS): Use part number of types again.
9392         (struct tree_vector): Adjust GTY length.
9393         * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
9395         * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
9396         members.
9397         (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
9398         caller emitted the length calulation already.
9399         (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
9400         before handling any of the fields for structs.
9402 2012-04-19  Richard Guenther  <rguenther@suse.de>
9404         PR tree-optimization/53031
9405         * tree-vrp.c (adjust_range_with_scev): Revert back to
9406         using max_loop_iterations.
9408 2012-04-19  Michael Matz  <matz@suse.de>
9410         * diagnostic.c (emit_diagnostic): Move va_end call after user
9411         of the va_list.
9412         (warning, warning_at, pedwarn, permerror): Ditto.
9414 2012-04-19  Richard Guenther  <rguenther@suse.de>
9416         * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
9417         array access.
9419 2012-04-19  Georg-Johann Lay  <avr@gjlay.de>
9421         PR target/53033
9422         * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
9423         the case *(X+const).
9425 2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9427         * config/arm/sync.md (sync_optab): Change ior attribute to "or".
9429 2012-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9431         PR c/52283/37985
9432         * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
9433         * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
9435 2012-04-19  Richard Guenther  <rguenther@suse.de>
9437         PR rtl-optimization/44688
9438         * loop-iv.c (determine_max_iter): Only return max_iter.
9439         (iv_number_of_iterations): Also use the recorded loop bound
9440         on the maximum number of iterations.
9441         * loop-unroll.c (decide_unroll_runtime_iterations): Use
9442         max_iter to avoid unrolling loops that do not roll.
9443         (decide_unroll_stupid): Likewise.
9445 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
9447         * targhooks.c (default_case_values_threshold): Fix code style nit.
9449         * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
9450         case range and type folding from here...
9451         * gimplify.c (gimplify_switch_expr): ... to here.  Expect NULL_TREE
9452         type, as documented in tree.def.
9454 2012-04-18  Jan Hubicka  <jh@suse.cz>
9456         * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
9457         Declare.
9458         * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
9459         cgraph hash and same comdat groups.
9460         (cgraph_optimize): Verify symbol table.
9461         * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
9462         (dissolve_same_comdat_group_list): Work on symtab nodes.
9463         (function_and_variable_visibility): Dissolve variable same comdat group
9464         lists, too.
9465         * symtab.c: Include timevar.h
9466         (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
9468 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
9470         * tree-switch-conversion.c (info): Remove global pass info.
9471         (check_range, check_process_case, check_final_bb, create_temp_arrays,
9472         free_temp_arrays, gather_default_values, build_constructors,
9473         array_value_type, build_one_array, build_arrays, gen_def_assigns,
9474         fix_phi_nodes, gen_inbound_check): Pass info around from ...
9475         (process_switch): ... here.  Unify message format.  Return a const
9476         char pointer to the failure reason message.
9477         (do_switchconv): Unify message format.  Update process_switch usage.
9479         * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
9480         * tree-cfg.c (edge_to_cases): Fix documentation.
9482 2012-04-18  Uros Bizjak  <ubizjak@gmail.com>
9484         * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
9486 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9488         PR tree-optimization/52976
9489         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
9490         (possibly_move_powi): New function.
9491         (rewrite_expr_tree): Call possibly_move_powi.
9492         (rewrite_expr_tree_parallel): Likewise.
9493         (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
9494         call add_to_ops_vec instead.
9496 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9498         PR tree-optimization/52976
9499         * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
9500         (decrement_power): Likewise.
9501         (propagate_op_to_single_use): Likewise.
9502         (zero_one_operation): Handle __builtin_pow* calls in linearized
9503         expression trees; factor logic into propagate_op_to_single_use.
9504         (undistribute_ops_list): Allow operands with repeat counts > 1.
9506 2012-04-18  Richard Guenther  <rguenther@suse.de>
9508         PR tree-optimization/44688
9509         * cfgloop.h (record_niter_bound): Declare.
9510         * tree-ssa-loop-niter.c (record_niter_bound): Export.
9511         Update the estimation with the upper bound here...
9512         (estimate_numbers_of_iterations_loop): ... instead of here.
9513         Do not forcefully reset a recorded upper bound.
9514         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
9515         Record the maximum number of loop iterations of the prologue loop.
9517 2012-04-18  Jan Hubicka  <jh@suse.cz>
9519         * lto-symtab.c (lto_cgraph_replace_node): Update.
9520         * cgraphbuild.c (record_reference, record_type_list,
9521         record_eh_tables, mark_address, mark_load, mark_store): Update.
9522         * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
9523         cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
9524         Update.
9525         * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
9526         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
9527         * reload.c: Fix typo in comment.
9528         * rtlanal.c: Likewise.
9529         * tree-emultls.c (gen_emutls_addr): Update.
9530         * ipa-reference.c (analyze_function): Update.
9531         * cgraphunit.c (cgraph_analyze_function,
9532         cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
9533         Update.
9534         * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
9535         (ipa_remove_reference): Likewise.
9536         (ipa_remove_all_refering): Rename to ...
9537         (ipa_remove_all_referring): ... this one; update.
9538         (ipa_dump_references): Update.
9539         (ipa_dump_referring): Update.
9540         (ipa_clone_references): Update.
9541         (ipa_clone_refering): Rename to ...
9542         (ipa_clone_referring): ... this one; update.
9543         (ipa_ref_cannot_lead_to_return): Update.
9544         (ipa_ref_has_aliases_p): Update.
9545         * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
9546         forward typedefs.
9547         (ipa_ref_type): Remove.
9548         (ipa_ref_ptr_u): Remove.
9549         (ipa_ref): Remove referencing, refered, refered_index, refering_type
9550         and refered_type; add referring, referred and referred_index.
9551         (ipa_ref_list): Rename refering to referring.
9552         (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
9553         ipa_clone_references, ipa_clone_referring): Update prototypes.
9554         * lto-cgraph.c (referenced_from_other_partition_p): Update.
9555         (lto_output_ref): Update.
9556         (add_references): Update.
9557         (input_varpool_node): Update.
9558         (input_refs): Update.
9559         * ipa-ref-inline.h (ipa_ref_node): Update.
9560         (ipa_ref_varpool_node): Update.
9561         (ipa_ref_referring_node): Update.
9562         (ipa_ref_referring_varpool_node): Update.
9563         (ipa_ref_referring_ref_list): Update.
9564         (ipa_ref_referred_ref_list): Update.
9565         (ipa_ref_list_first_referring): Update.
9566         (ipa_empty_ref_list): Update.
9567         (ipa_ref_list_refering_iterate): Rename to ...
9568         (ipa_ref_list_referring_iterate): ... this one.
9569         * cse.c: Update comment.
9570         * ipa-utils.c (ipa_reverse_postorder): Update.
9571         * tree-ssa-alias.c: Update.
9572         * ipa-inline.c (reset_edge_caches): Update.
9573         (update_caller_keys): Update.
9574         * ipa-inline.h: Update comments.
9575         * jump.c: Update comment.
9576         * alias.c: Likewise.
9577         * ipa.c (process_references): Update.
9578         (cgraph_remove_unreachable_nodes): Likewise.
9579         (ipa_discover_readonly_nonaddressable_var): Likewise.
9580         (cgraph_address_taken_from_non_vtable_p): Likewise.
9581         * trans-mem.c (ipa_tm_execute): Update.
9582         * simplify-rtx.c: Fix comment.
9583         * rtl.c: Fix comment.
9584         * symtab.c (symtab_unregister_node): Update.
9585         * varpool.c (dump_varpool_node): Update.
9586         (varpool_analyze_pending_decls): Update.
9587         (assemble_aliases): Update.
9588         (varpool_for_node_and_aliases): Update.
9590 2012-04-18  Richard Guenther  <rguenther@suse.de>
9592         * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
9593         use_undefined_p parameter.
9594         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
9595         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
9596         Likewise.
9597         (estimate_numbers_of_iterations): Likewise.
9598         (estimated_loop_iterations): Adjust.
9599         (max_loop_iterations): Likewise.
9600         (scev_probably_wraps_p): Likewise.
9601         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
9602         * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
9603         not max_loop_iterations.
9604         (execute_vrp): Remove explicit number of iterations estimation.
9606 2012-04-18  Enkovich Ilya  <ilya.enkovich@intel.com>
9608         * config/i386/linux-common.h: New.
9610         * config.gcc: Add i386/linux-common.h before
9611         all i386/linux.h and i386/linux64.h usages.
9613         * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
9614         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
9615         * config/i386/gnu-user64.h: Likewise.
9617         * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
9618         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
9619         (GNU_USER_TARGET_MATHFILE_SPEC): New.
9620         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
9622 2012-04-18  Jan Hubicka  <jh@suse.cz>
9624         * cgraph.c (cgraph_node_name): Remove.
9625         (dump_cgraph_node): Use dump_symtab_base; reformat.
9626         * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
9627         debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
9628         Declare.
9629         (cgraph_node_name, varpool_node_name): Remove.
9630         (cgraph_node_asm_name, varpool_node_asm_name,
9631         cgraph_node_name, varpool_node_name): New.
9632         * tree-pass.h (TODO_dump_cgraph): Rename to ...
9633         (TODO_dump_symtab): ... this one.
9634         * ipa-cp (pass_ipa_cp): Update.
9635         * ia-reference.c (generate_summary, read_write_all_from_decl,
9636         propagate, ipa_reference_read_optimization_summary): Update.
9637         * cgraphunit.c (cgraph_analyze_functions): Update.
9638         (cgraph_optimize): Update.
9639         * ipa-ref.c (ipa_dump_references): Update.
9640         (ipa_dump_refering): Update.
9641         * ipa-inline.c (pass_ipa_inline): Update.
9642         * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
9643         * ipa.c (pass_ipa_function_visibility,
9644         pass_ipa_whole_program_visibility): Update.
9645         * tree-sra.c (pass_early_ipa_sra): Update.
9646         * symtab.c: Include langhooks.h
9647         (symtab_node_asm_name): New.
9648         (symtab_node_name): New.
9649         (symtab_type_names): New static var.
9650         (dump_symtab_base): New.
9651         (dump_symtab_node, dump_symtab): New.
9652         (debug_symtab_node,  debug_symtab): New.
9653         * tree-ssa-structalias.c: Dump symbol table.
9654         * pases.c (execute_todo): Handle TODO_dump_symtab instead
9655         of TODO_dump_cgraph.
9656         * varpoo.c (varpool_node_name): Remove.
9657         (dump_varpool_node): Use dump_symtab_base; reformat.
9659 2012-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9661         * doc/invoke.texi (Language Independent Options): @item should be
9662         before @opindex.
9664 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
9666         PR bootstrap/53021
9667         * rtl.c (rtx_code_size): Handle ADDRESS.
9669 2012-04-17  Tom de Vries  <tom@codesourcery.com>
9671         * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
9672         is not a STMT_LIST.
9674 2012-04-17  Uros Bizjak  <ubizjak@gmail.com>
9676         PR target/53020
9677         * config/i386/sync.md (atomic_<code><mode>): Rename to
9678         atomic_<logic><mode>.
9680 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
9682         * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
9683         * alias.c (reg_base_value): Expand and update comment.
9684         (arg_base_value): New variable.
9685         (unique_id): Move up file.
9686         (unique_base_value, unique_base_value_p, known_base_value_p): New.
9687         (find_base_value): Use arg_base_value and known_base_value_p.
9688         (record_set): Document REG_NOALIAS handling.  Use unique_base_value.
9689         (find_base_term): Use known_base_value_p.
9690         (base_alias_check): Use unique_base_value_p.
9691         (init_alias_target): Initialize arg_base_value.  Use unique_base_value.
9692         (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
9694 2012-04-17  Pat Haugen <pthaugen@us.ibm.com>
9696         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
9698 2012-04-17  Michael Matz  <matz@suse.de>
9700         PR tree-optimization/18437
9701         * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
9702         (STMT_VINFO_STRIDE_LOAD_P): New accessor.
9703         (vect_check_strided_load): Declare.
9704         * tree-vect-data-refs.c (vect_check_strided_load): New function.
9705         (vect_analyze_data_refs): Use it to accept strided loads.
9706         * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
9708 2012-04-17  Richard Guenther  <rguenther@suse.de>
9710         PR middle-end/53011
9711         * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
9712         loops when redirecting an entry or latch edge.
9714 2012-04-17  Bernd Schmidt  <bernds@codesourcery.com>
9716         * sel-sched.c (sel_global_init): Revert previous change.
9718 2012-04-17  Richard Guenther  <rguenther@suse.de>
9720         * tree-flow.h (array_at_struct_end_p): Move declaration ...
9721         * tree.h (array_at_struct_end_p): ... here.
9722         * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
9723         * expr.c (array_at_struct_end_p): ... here.  Rewrite.
9725 2012-04-17  Steven Bosscher  <steven@gcc.gnu.org>
9727         * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
9728         COST_TABLE): Remove.
9729         (estimate_case_costs): Remove.
9730         (expand_case): Do not call estimate_case_costs
9731         to set use_cost_table.
9732         (balance_case_nodes): Do not use use_cost_table.
9734 2012-04-16  Jan Hubicka  <jh@suse.cz>
9736         * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
9737         (hash_node, eq_node): Remove.
9738         (cgraph_create_node): Do not handle hashtable.
9739         (cgraph_get_node): Remove.
9740         (cgraph_insert_node_to_hashtable): Remove.
9741         (hash_node_by_assembler_name): Remove.
9742         (eq_assembler_name): Remove.
9743         (cgraph_node_for_asm): Rewrite.
9744         (cgraph_find_replacement_node): Break out from ...
9745         (cgraph_remove_node): ... here; do not maintain hashtables.
9746         (change_decl_assembler_name): Remove.
9747         (cgraph_clone_node): Do not maintain hashtables.
9748         * cgraph.h (const_symtab_node): New typedef.
9749         (cgraph_insert_node_to_hashtable): Remove.
9750         (symtab_get_node, symtab_node_for_asm,
9751         symtab_insert_node_to_hashtable): Declare.
9752         (cgraph_find_replacement_node): Declare.
9753         (cgraph_get_node, varpool_get_node): Turn into inlines.
9754         (cgraph, varpool): Work sanely on NULL pointers.
9755         (FOR_EACH_SYMBOL): New walker.
9756         * ipa-inline-transform.c (save_inline_function_body): Use
9757         symtab_insert_node_to_hashtable.
9758         * symtab.c: Include ggc.h and diagnostics.h
9759         (symtab_hash, assembler_name_hash): New static vars;
9760         (hash_node, eq_node, hash_node_by_assembler_name,
9761         eq_assembler_name, insert_to_assembler_name_hash,
9762         unlink_from_assembler_name_hash): New.
9763         (symtab_register_node): Update hashtables.
9764         (symtab_insert_node_to_hashtable): New.
9765         (symtab_unregister_node): Update hashtables.
9766         (symtab_get_node): New.
9767         (symtab_node_for_asm): New.
9768         (change_decl_assembler_name): New.
9769         * Makefile.in (symtab.o): Needs GTY.
9770         * varpool.c (varpool_hash): Remove.
9771         (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
9772         (varpool_node): Rewrite using varpool_get_node.
9773         (varpool_remove_node): DO not maintain hashtables.
9774         (varpool_node_for_asm): Rewrite.
9776 2012-04-16  Sandra Loosemore  <sandra@codesourcery.com>
9778         * doc/invoke.texi:  Copy-edit to put verbs in the present tense
9779         when describing the current behavior of GCC.
9781 2012-04-16  Richard Sandiford  <rdsandiford@googlemail.com>
9783         * genemit.c (gen_exp): Remove ADDRESS handling.
9784         * genoutput.c (scan_operands): Likewise.
9785         * genpeep.c (match_rtx): Likewise.
9786         * genrecog.c (add_to_sequence): Likewise.
9788 2012-04-16  David Edelsohn  <dje.gcc@gmail.com>
9790         * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
9792 2012-04-16  Martin Jambor  <mjambor@suse.cz>
9794         * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
9795         bit-fields.
9797 2012-04-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
9799         PR target/51819
9800         * config/arm/arm.c (arm_print_operand): Fix invalid alignment
9801         hints for 'A' operand types.
9803 2012-04-16  Jan Hubicka  <jh@suse.cz>
9805         * cgraph.h (symtab_node_base): Add next and previous pointers.
9806         (cgraph_node): Remove next and preivous pointers.
9807         (varpool_node): Likewise; remove next/previous GTY marker;
9808         it is not type safe.
9809         (symtab_node_def): Update GTY marker
9810         (x_cgraph_nodes, cgraph_nodes): Remove.
9811         (symtab_nodes): New function.
9812         (cgraph_order): Rename to ...
9813         (symtab_order): ... this one.
9814         (symtab_register_node, symtab_unregister_node, symtab_remove_node):
9815         Declare.
9816         (x_varpool_nodes, varpool_nodes): Remove.
9817         (FOR_EACH_STATIC_VARIABLE): Update.
9818         (symtab_function_p, symtab_variable_p): New function.
9819         (FOR_EACH_VARIABLE): Update.
9820         (varpool_first_variable, varpool_next_variable): New functions.
9821         (FOR_EACH_VARIABLE): Update.
9822         (cgraph_first_defined_function): Update.
9823         (cgraph_next_defined_function, cgraph_next_defined_function): Update.
9824         (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
9825         (cgraph_first_function, cgraph_next_function): New.
9826         (FOR_EACH_FUNCTION): Update.
9827         (cgraph_first_function_with_gimple_body,
9828         cgraph_next_function_with_gimple_body): Update.
9829         * symtab.c: New file.
9830         * cgraph.c: Update copyright dates.
9831         (x_cgraph_nodes, cgraph_order): Remove.
9832         (NEXT_FREE_NODE): Update.
9833         (SET_NEXT_FREE_NODE): New.
9834         (cgraph_create_node_1): Remove common code.
9835         (cgraph_create_node): Remove common code; call symtab_register_node.
9836         (cgraph_remove_node): Remove common code; call symtab_unregister-node.
9837         (cgraph_add_asm_node): Update.
9838         (cgraph_clone_node): Register new node.
9839         * cgraphunit.c (process_function_and_variable_attributes): Update.
9840         (cgraph_analyze_functions): Update.
9841         (cgraph_analyze_functions): Update.
9842         (cgraph_output_in_order): Update.
9843         * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
9844         Update.
9845         * ipa-inline.c (recursive_inlining): Update.
9846         * lto-streamer-in.c (lto_input_toplevel_asms): Update.
9847         * ipa.c (cgraph_remove_unreachable_nodes): Update.
9848         * Makefile.in: Add symtab.o
9849         * varpool.c (x_varpool_nodes): Remove
9850         (varpool_node): Remove common code; call symtab_register_node.
9851         (varpool_remove_node): Remove common code; call symtab_unregister_node.
9853 2012-04-16  Richard Guenther  <rguenther@suse.de>
9855         PR middle-end/52977
9856         * tree.h (VECTOR_CST_NELTS): Adjust.
9857         (struct tree_vector): Add explicit length field.
9858         (make_vector_stat): Declare.
9859         (make_vector): Define.
9860         * tree.c (make_vector_stat): New function.
9861         (build_vector_stat): Use it.
9862         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
9864 2012-04-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9866         PR tree-optimization/52976
9867         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
9868         (undistribute_ops_list): Ops with repeat counts aren't eligible for
9869         undistribution.
9870         (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
9872 2012-04-16  Jan Hubicka  <jh@suse.cz>
9874         * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
9875         New macros.
9876         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
9877         walkers to walk cgraph and varpool.
9878         * cgraph.c (cgraph_node_for_asm): Likewise.
9879         (dump_cgraph): Likewise.
9880         * value-prof.c (init_node_map): Likewise.
9881         * tree.c (free_lang_data_in_cgraph): Likewise.
9882         * tree-emutls.c: (ipa_lower_emutls): Likewise.
9883         * ipa-reference.c (generate_summary, propagate): Likewise.
9884         * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
9885         cgraph_mark_functions_to_output, cgraph_output_in_order,
9886         output_weakrefs, cgraph_materialize_all_clones,
9887         cgraph_optimize): Likewise.
9888         * lto-cgraph.c (merge_profile_summaries): Likewise.
9889         (input_cgraph): Likewise.
9890         * ipa-pure-const.c (generate_summary): Likewise.
9891         (propagate): Likwise.
9892         * ipa-utils.c (ipa_reduced_postorder): Likewise.
9893         (ipa_free_postorder_info): Likewise.
9894         (ipa_reverse_postorder): Likewise.
9895         * ipa-inline.c (ipa_inline): Likewise.
9896         * matrix-reorg.c (find_matrices_decl): Likewise.
9897         (matrix_reorg): Likewise.
9898         * tree-vectorizer.c (increase_alignment): Likewise.
9899         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
9900         (function_and_variable_visibility): Likewise.
9901         (whole_program_function_and_variable_visibility): Likewise.
9902         (ipa_cdtor_merge): Likewise.
9903         * trans-mem.c (ipa_tm_execute): Likewise.
9904         * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
9905         * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
9906         (ipa_print_all_params): Likewise.
9907         (ipa_update_after_lto_read): Likewise.
9908         * tree-profie.c (tree_profiling): Likewise.
9909         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
9910         * passes.c (dump_passes): Likewise.
9911         (do_per_function): Likewise.
9912         (ipa_write_summaries): Likewise.
9913         * varpool.c (dump_varpool): Likewise.
9914         (varpool_node_for_asm): Likewise.
9915         (varpool_assemble_pending_decls): Likewise.
9917 2012-04-16  Richard Guenther  <rguenther@suse.de>
9919         PR tree-optimization/52975
9920         * tree-if-conv.c (predicate_bbs): Do not simplify inverted
9921         condition but always mark it with TRUTH_NOT_EXPR.
9923 2012-04-16  Richard Guenther  <rguenther@suse.de>
9925         PR tree-optimization/52975
9926         * tree-ssa-forwprop.c (combine_cond_exprs): New function.
9927         (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
9928         and VEC_COND_EXPRs.  Also combine into VEC_COND_EXPRs condition.
9929         * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
9931 2012-04-14  Uros Bizjak  <ubizjak@gmail.com>
9933         * config/i386/sse.md (ssse3_plusminus): New code iterator.
9934         (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
9935         avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
9936         (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
9937         ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
9938         (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
9939         ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
9941         (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
9942         avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
9943         (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
9944         ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
9945         (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
9946         ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
9948         (xop_plus): New code iterator.
9949         (macs): New code attribute.
9950         (macds): Ditto.
9951         (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
9952         xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
9953         iterator.
9954         (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
9955         xop_plus code iterator.
9956         (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
9957         xop_plus code iterator.
9958         (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
9959         xop_plus code iterator.
9960         (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
9961         xop_plus code iterator.
9963         (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
9964         any_extend code iterator.
9965         (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
9966         any_extend code iterator.
9967         (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
9968         any_extend code iterator.
9969         (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
9970         any_extend code iterator.
9971         (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
9972         any_extend code iterator.
9973         (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
9974         any_extend code iterator.
9976 2012-04-14  Tom de Vries  <tom@codesourcery.com>
9978         * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
9979         call to delete_insn.  Remove code to reorder BASIC_BLOCK note and
9980         DELETED_LABEL note, and move it to ...
9981         * cfgrtl.c (delete_insn): ... here.  Change return type to void.
9982         (delete_insn_and_edges): Likewise.
9983         (delete_insn_chain): Handle new return type of delete_insn.  Delete
9984         chain backwards rather than forwards.
9985         * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
9986         void.
9987         * cfglayout.c (fixup_reorder_chain): Delete unused label.
9989 2012-04-14  Jan Hubicka  <jh@suse.cz>
9991         * cgraph.h: Update copyrights;
9992         (symtab_node): Turn to union typedef.
9993         (symtab_node_base): New structure.
9994         (symtab_type): Add SYMTAB_SYMBOL tag.
9995         (cgraph_node): Annotate some pinters with nested_ptr.
9996         (varpool_node): Likewise.
9997         (cgraph_local_info): Remove lto_file_data
9998         and externally_visible.
9999         (cgraph_node): Remove decl; same_comdat_group list;
10000         aux; ref_list; order; address_taken; reachable_from_other_parittion,
10001         in_other_partition; resolution.
10002         (varpool_node): Remove decl; same_comdat_group;
10003         ref_list; lto_file_data; aux; order; resolution; externally_visible;
10004         used_from_other_partition; in_other_partition.
10005         (symtab_node_def): New union.
10006         (cgraph, varpool): Update.
10007         (varpool_first_static_initializer, varpool_next_static_initializer,
10008         cgraph_only_called_directly_or_aliased_p,
10009         varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
10010         varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
10011         varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
10012         field references.
10013         * cgraph.c: Likewise.
10014         (cgraph_hash, assembler_name_hash): Turn into symtab_node.
10015         * cgraphbuild.c: Likewise.
10016         * lto-symtab.c: Likewise.
10017         * c-gimplify.c: Likewise.
10018         * value-prof.c: Likewise.
10019         * tree.c: Likewise.
10020         * ipa-cp.c: Likewise.
10021         * tree-emutls.c: Likewise.
10022         * ipa-inline-transform.c: Likwise.
10023         * ipa-reference.c: Likewise.
10024         * cgraphunit.c: Likewise.
10025         * ipa-ref.c: Likewise.
10026         * lto-cgraph.c: Likewise.
10027         * ipa-ref-inline.h: Likewise.
10028         * ipa-pure-const.c: Likewise.
10029         * lto-streamer-out.c: Likewise.
10030         * ipa-utils.c: Likewise.
10031         * ipa-inline.c: Likewise.
10032         * matrix-reorg.c: Likewise.
10033         * tree-eh.c: Likewise.
10034         * tree-vectorizer.c: Likewise.
10035         * ipa-split.c: Likewise.
10036         * ipa.c: Likewise.
10037         * trans-mem.c: Likewise.
10038         * ipa-inline-analysis.c: Likewise.
10039         * gimplify.c: Likewise.
10040         * cfgexpand.c: Likewise.
10041         * tree-sra.c: Likewise.
10042         * ipa-prop.c: Likewise.
10043         * varasm.c: Likewise.
10044         * tree-nested.c: Likewise.
10045         * tree-inline.c: Likewise.
10046         * tree-profile.c: Likewise.
10047         * tree-ssa-structalias.c: Likewise.
10048         * passes.c: Likewise.
10049         * varpool.c: Likewise.
10051 2012-04-14  Tom de Vries  <tom@codesourcery.com>
10053         * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
10054         same_succ_hash, with local_def inlined.  Use SINGLE_SSA_DEF_OPERAND.
10055         Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT.  Remove use
10056         of find_edge.
10057         (gsi_advance_fw_nondebug_nonlocal): New function.
10058         (local_def): Removed function.
10059         (same_succ_hash): Use stmt_local_def.
10060         (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
10061         (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
10063 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10065         * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
10066         and __ILP32__ for x32.
10068 2012-04-13  Martin Jambor  <mjambor@suse.cz>
10070         PR middle-end/52939
10071         * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
10072         fold_ctor_reference returns a zero constant.
10074 2012-04-13  Enkovich Ilya  <ilya.enkovich@intel.com>
10076         * config.gcc: Add i386/gnu-user-common.h before all
10077         i386/gnu-user.h and i386/gnu-user64.h usages.
10079         * config/i386/gnu-user-common.h: New.
10081         * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
10082         (CC1_SPEC): Likewise.
10083         (ENDFILE_SPEC): Likewise.
10084         (DEFAULT_PCC_STRUCT_RETURN): Likewise.
10085         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
10086         (TARGET_OS_CPP_BUILTINS): Likewise.
10087         (LIBGCC2_HAS_TF_MODE): Likewise.
10088         (LIBGCC2_TF_CEXT): Likewise.
10089         (TF_SIZE): Likewise.
10090         (TARGET_ASM_FILE_END): Likewise.
10091         (STACK_CHECK_MOVING_SP): Likewise.
10092         (STACK_CHECK_STATIC_BUILTIN): Likewise.
10093         * config/i386/gnu-user64.h: Likewise.
10095 2012-04-13  Martin Jambor  <mjambor@suse.cz>
10097         * expr.c (expand_expr_real_1): Pass type, not the expression, to
10098         set_mem_attributes for a memory temporary. Do not call the function
10099         for the memory temporary created for a bitfield.
10101 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
10103         PR debug/48866
10104         * df.h (enum debug_temp_where): New.
10105         (dead_debug_init, dead_debug_finish) Declare.
10106         (dead_debug_add, dead_debug_insert_temp): Declare.
10107         (struct dead_debug_use, struct dead_debug): Moved from...
10108         * df-problems.c: ... here.
10109         (df_set_unused_notes_for_mw): Bind debug uses of unused regno
10110         to a debug temp.
10111         (df_create_unused_note): Likewise.
10112         (df_set_dead_notes_for_mw): Move comment where it belongs.
10113         (dead_debug_init): Export.
10114         (dead_debug_reset_uses): New, factored out of...
10115         (dead_debug_finish): ...this.  Export.
10116         (dead_debug_reset): Remove.
10117         (dead_debug_add): Export.
10118         (dead_debug_insert_before): Rename to...
10119         (dead_debug_insert_temp): ... this.  Add where argument.  Export.
10120         Locate stored value for BEFORE_WITH_VALUE.  Avoid repeat inserts.
10121         Return insertion count.
10122         (df_note_bb_compute): Adjust.
10123         * dce.c (word_dce_process_block): Adjust dead debug uses.
10124         (dce_process_block): Likewise.
10126 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
10128         * df-problems.c (df_note_bb_compute): Do not take note of
10129         debug uses for whose REGs we won't emit DEAD or UNUSED notes.
10131 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
10133         PR debug/51570
10134         * var-tracking.c (expand_depth): New type.
10135         (onepart_aux, expand_loc_callback_data): Change depth type to it.
10136         (loc_exp_dep_alloc): Adjust initializer.
10137         (update_depth): Use new type.  Add entryvals.
10138         (vt_expand_var_loc_chain): Take note of expansions with
10139         ENTRY_VALUEs, but don't accept them right away.  Run an optional
10140         second pass accepting the minimum ENTRY_VALUE count found in the
10141         first pass.
10142         (vt_expand_loc_callback, INIT_ELCD): Adjust.
10144 2012-04-13  Tom de Vries  <tom@codesourcery.com>
10146         * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
10147         parameters vuse and vuse_escaped.
10148         (find_duplicate): Init vuse1, vuse2 and vuse_escaped.  Pass to
10149         gsi_advance_bw_nondebug_nonlocal.  Return if vuse_escaped and
10150         vuse1 != vuse2.
10152 2012-04-13  Richard Guenther  <rguenther@suse.de>
10154         PR tree-optimization/52969
10155         * tree-if-conv.c (predicate_mem_writes): Properly gimplify
10156         the condition for the COND_EXPR and handle predicate negation
10157         by swapping the COND_EXPR arms.
10159 2012-04-13  Nick Clifton  <nickc@redhat.com>
10161         * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
10162         TODO_dump_func flag.
10164 2012-04-13  Andrey Belevantsev  <abel@ispras.ru>
10166         PR rtl-optimization/52203
10167         PR rtl-optimization/52715
10169         Revert the 2012-03-07 fix for PR 52203.
10170         * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
10171         the insn does not modify DFA right before issuing, adjust
10172         issue_rate accordingly.
10174 2012-04-13  Richard Guenther  <rguenther@suse.de>
10176         PR c/52549
10177         * c-typeck.c (pointer_diff): Remove bogus assert.
10179 2012-04-13  Richard Guenther  <rguenther@suse.de>
10181         PR c/52862
10182         * convert.c (convert_to_pointer): Remove special-casing of zero.
10184 2012-04-13  Joey Ye  <joey.ye@arm.com>
10186         * config/arm/constraints.md (Pe): New constraint.
10187         * config/arm/arm.md: New split for imm 256-510.
10189 2012-04-13  Terry Guo  <terry.guo@arm.com>
10191         * config/arm/arm-cores.def: Added core cortex-m0plus.
10192         * config/arm/arm-tune.md: Regenerated.
10193         * config/arm/arm-tables.opt: Regenerated.
10194         * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
10196 2012-04-13  Alan Modra  <amodra@gmail.com>
10198         PR target/52828
10199         * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
10200         tie regs on destination of sets.  Delete forward declaration.
10201         (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
10202         (rs6000_emit_prologue): Likewise.
10203         (rs6000_emit_epilogue): Likewise.  Use in place of gen_frame_tie
10204         and gen_stack_tie.
10205         (is_mem_ref): Use tie_operand to recognise stack ties.
10206         * config/rs6000/predicates.md (tie_operand): New.
10207         * config/rs6000/rs6000.md (restore_stack_block): Generate new
10208         stack tie rtl.
10209         (restore_stack_nonlocal): Likewise.
10210         (stack_tie): Update.
10211         (frame_tie): Delete.
10213 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10215         * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
10216         HOST_WIDE_INT_PRINT_DEC in format strings.
10218 2012-04-12  Uros Bizjak  <ubizjak@gmail.com>
10220         PR target/52932
10221         * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
10222         argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
10223         * config/i386/sse.md (UNSPEC_VPERMVAR): New.
10224         (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
10225         (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
10226         (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
10227         avx2_permvarv8si using VI4F_256 mode iterator.
10228         * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
10229         Update builtin type to V8SF_FTYPE_V8SF_V8SI.
10230         (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
10231         gen_avx2_permvarv8sf.
10232         (expand_vec_perm_pshufb): Ditto.
10234 2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10236         PR target/52775
10237         * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
10238         the list of options to enable the FCFID instruction.
10239         (TARGET_EXTRA_BUILTINS): Adjust comment.
10241 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10243         PR tree-optimization/18589
10244         * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
10245         (operand_entry): Add count field.
10246         (add_repeat_to_ops_vec): New function.
10247         (completely_remove_stmt): Likewise.
10248         (remove_def_if_absorbed_call): Likewise.
10249         (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
10250         (acceptable_pow_call): New function.
10251         (linearize_expr_tree): Look for builtin pow/powi calls and add operand
10252         entries with repeat counts when found.
10253         (repeat_factor_d): New struct and associated typedefs.
10254         (repeat_factor_vec): New static vector variable.
10255         (compare_repeat_factors): New function.
10256         (get_reassoc_pow_ssa_name): Likewise.
10257         (attempt_builtin_powi): Likewise.
10258         (reassociate_bb): Call attempt_builtin_powi.
10259         (fini_reassoc): Two new calls to statistics_counter_event.
10261 2012-04-12  Richard Guenther  <rguenther@suse.de>
10263         * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
10264         * cgraph.h (tree_rest_of_compilation): Remove.
10265         * cgraph.c (cgraph_add_new_function): Move ...
10266         * cgraphunit.c (cgraph_add_new_function): ... here.
10267         (tree_rest_of_compilation): Make static.
10268         (cgraph_expand_function): Do not set cgraph_function_flags_ready.
10269         * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
10270         gate_all_early_local_passes, execute_all_early_local_passes,
10271         pass_early_local_passes, gate_all_early_optimizations,
10272         pass_all_early_optimizations): Move ...
10273         * passes.c (gate_all_optimizations, pass_all_optimizations,
10274         gate_all_early_local_passes, execute_all_early_local_passes,
10275         pass_early_local_passes, gate_all_early_optimizations,
10276         pass_all_early_optimizations): ... here.
10277         * tree-optimize.c (execute_free_datastructures): Remove.
10278         * tree-flow.h (execute_free_datastructures): Remove.
10279         * tree-optimize.c (execute_init_datastructures,
10280         pass_init_datastructures): Move ...
10281         * tree-ssa.c (execute_init_datastructures,
10282         pass_init_datastructures): ... here.
10283         * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
10284         execute_free_datastructures.
10286 2012-04-12  Bernd Schmidt  <bernds@codesourcery.com>
10288         * dbgcnt.def (ira_move): New counter.
10289         * ira-int.h (ira_create_new_reg): Declare function.
10290         (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
10291         * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
10292         no longer static.  All callers changed.
10293         * ira.c: Include "dbgcnt.h".
10294         (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
10295         move_unallocated_pseudos): New static functions.
10296         (first_moveable_pseudo, last_moveable_pseudo): New global variables.
10297         (pseudo_replaced_reg, pseudo_move_insn): New static variables.
10298         (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
10299         * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
10300         to the pseudos generated in find_moveable_pseudos.
10301         * Makefile.in (ira.o): Add $(DBGCNT_H).
10303 2012-04-12  Richard Guenther  <rguenther@suse.de>
10305         PR tree-optimization/52943
10306         * tree-chrec.h (chrec_is_positive): Remove.
10307         * tree-scalar-evolution.c (chrec_is_positive): Move ...
10308         * tree-data-ref.c (chrec_is_positive): ... here.  Make static.
10309         Return false for a constant zero instead of negative.
10310         (analyze_siv_subscript_cst_affine): Handle zero difference
10311         in the initial condition explicitely.
10313 2012-04-12  Richard Guenther  <rguenther@suse.de>
10315         * tree-parloops.c (parallelize_loops): Also consult the upper
10316         bound for the number of iterations.
10317         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10318         (loop_prefetch_arrays): Likewise.
10320 2012-04-12  Richard Guenther  <rguenther@suse.de>
10322         * cfgloop.h (estimated_loop_iterations_int): Ditch
10323         'conservative' parameter.
10324         (max_stmt_executions_int): Likewise.
10325         (estimated_loop_iterations): Likewise.
10326         (max_stmt_executions): Likewise.
10327         (max_loop_iterations): Declare.
10328         (max_loop_iterations_int): Likewise.
10329         (estimated_stmt_executions): Likewise.
10330         (estimated_stmt_executions_int): Likewise.
10331         * tree-ssa-loop-niter.c (estimated_loop_iterations):
10332         Split parts to ...
10333         (max_loop_iterations): ... this.
10334         (estimated_loop_iterations_int): Split parts to ...
10335         (max_loop_iterations_int): ... this.
10336         (max_stmt_executions_int): Split parts to ...
10337         (estimated_stmt_executions_int): ... this.
10338         (max_stmt_executions): Split parts to ...
10339         (estimated_stmt_executions): ... this.
10340         * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
10341         * predict.c (predict_loops): Likewise.
10342         * tree-data-ref.c (max_stmt_executions_tree): Likewise.
10343         (analyze_siv_subscript_cst_affine): Likewise.
10344         (compute_overlap_steps_for_affine_1_2): Likewise.
10345         (analyze_subscript_affine_affine): Likewise.
10346         (init_omega_for_ddr_1): Likewise.
10347         * tree-parloops.c (parallelize_loops): Likewise.
10348         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10349         (may_eliminate_iv): Likewise.
10350         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10351         (loop_prefetch_arrays): Likewise.
10352         * tree-vrp.c (adjust_range_with_scev): Likewise.
10354 2012-04-12  Oleg Endo  <olegendo@gcc.gnu.org>
10356         * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
10357         * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
10358         Fix line width.
10359         (dump_table): Use bool type for need_align and have_df variables.
10360         (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
10361         (regs_used): Remove register modifier.
10362         (barrier_align): Move variables slot, credit, jump_to_next
10363         into if block above for loop.  Use bool type for jump_to_next.
10364         (sh_function_arg): Use NULL_RTX instead of 0.
10366 2012-04-11  Andreas Schwab  <schwab@linux-m68k.org>
10368         * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
10369         (bswapsi2): New expander.
10371 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10373         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
10374         0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
10376 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10378         PR rtl-optimization/52876
10379         * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
10380         Don't call mark_reg_pointer for incompatible pointer sign extension.
10382         * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
10383         directly.
10385 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
10387         * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
10388         comparisons against TYPE_PRECISION.
10389         * tree-ssa-forwprop.c (combine_conversions): Likewise.
10391 2012-04-11  Xinliang David Li  <davidxl@google.com>
10393         * tree-passes.h: Remove TODO_dump_func.
10394         * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
10395         * trans-mem.c: Remove TODO_dump_func.
10396         * ira.c: Remove TODO_dump_func.
10398 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10400         * config/i386/i386.c (ix86_option_override_internal): Check
10401         SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
10402         after TARGET_64BIT is updated.
10404 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
10406         * config/sh/sh.h: Remove old secondary reload code.
10408 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
10410         * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
10411         (ready_reorder): ... this function.
10413 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
10415         * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
10416         sched_init calls.
10418         * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
10419         insns so that no other insn is queued for a time before them.
10421         * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
10422         unknown.
10424 2012-04-11  Richard Guenther  <rguenther@suse.de>
10426         PR middle-end/52621
10427         * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
10428         consider loop nesting.
10429         (evolution_function_is_univariate_p): Properly check the remainder
10430         for chrecs.
10432 2012-04-11  Richard Guenther  <rguenther@suse.de>
10434         PR middle-end/52918
10435         * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
10437 2012-04-11  Nick Clifton  <nickc@redhat.com>
10439         * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
10440         information, if requested.
10442         * config/rx/rx.c (rx_expand_prologue): Likewise.
10444 2012-04-11  Peter Bergner  <bergner@vnet.ibm.com>
10445             Michael Matz  <matz@suse.de>
10447         PR target/16458
10448         * rtlanal.c (unsigned_reg_p): New function.
10449         Update copyright notice dates.
10450         * rtl.h (unsigned_reg_p): Prototype it.
10451         Update copyright notice dates.
10452         * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
10453         Update comment.
10454         * expr.c (expand_expr_real_1): Set register attributes.
10455         * stmt.c (expand_case): Likewise.
10457 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
10459         PR target/50751
10460         * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
10461         consider_sh2a and allow_zero.
10462         * config/sh/sh.c (sh_legitimate_index_p): Likewise.
10463         (disp_addr_displacement): New function.
10464         (sh_address_cost): Use disp_addr_displacement function instead
10465         of DISP_ADDR_OFFSET.
10466         (sh_legitimate_address_p): Adapt to changed
10467         sh_legitimate_index_p declaration.
10468         (sh_find_mov_disp_adjust): Remove HImode check.
10469         (sh_secondary_reload): Add HImode case.  Use satisfies_constraint_Sdd,
10470         disp_addr_displacement and max_mov_insn_displacement.
10471         (max_mov_insn_displacement): Remove HImode check.
10472         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
10473         DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
10474         * config/sh/constraints.md (K05, K13): New constraints.
10475         (K12): Correct comment.
10476         (Sdd): Do not use DISP_ADDR_P macro.
10477         (Snd, Sbw): Use satisfies_constraint_Sdd.
10478         * config/sh/sh.md (extendhisi2): Remove constraints from expander.
10479         (*extendhisi2_compact, movhi_i): Remove.
10480         (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
10481         *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
10482         *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
10483         *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
10484         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
10485         *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
10486         *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
10487         CONST_OK_FOR_Kxx.
10488         Add new peepholes for HImode displacement addressing.
10490 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
10492         * config/sh/sh.h (SIDI_OFF): Remove.
10493         * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
10494         DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
10495         or operand_subword.
10497 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
10499         PR target/52624
10500         * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
10501         (PowerPC AltiVec/VSX Built-in Functions): Remove it.
10502         * doc/md.texi (Standard Names): Add bswap.
10503         * builtin-types.def (BT_UINT16): New primitive type.
10504         (BT_FN_UINT16_UINT16): New function type.
10505         * builtins.def (BUILT_IN_BSWAP16): New.
10506         * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
10507         (expand_builtin) <BUILT_IN_BSWAP16>: New case.  Pass TARGET_MODE to
10508         expand_builtin_bswap.
10509         (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
10510         (fold_builtin_1): Likewise.
10511         (is_inexpensive_builtin): Likewise.
10512         * optabs.c (expand_unop): Deal with bswap in HImode specially.  Add
10513         missing bits for bswap to libcall code.
10514         * tree.c (build_common_tree_nodes): Build uint16_type_node.
10515         * tree.h (enum tree_index): Add TI_UINT16_TYPE.
10516         (uint16_type_node): New define.
10517         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
10518         * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
10519         above builtin.
10520         (rs6000_init_builtins): Likewise.
10521         * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
10523 2012-04-11  Tristan Gingold  <gingold@adacore.com>
10525         * doc/extend.texi (Type Attributes): Move paragraph.
10527 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10529         PR 24985
10530         * diagnostic.h (show_caret): Declare.
10531         (caret_max_width): Declare.
10532         (diagnostic_show_locus): Declare.
10533         * diagnostic.c (diagnostic_initialize): Initialize to false.
10534         (diagnostic_show_locus): New.
10535         (diagnostic_report_diagnostic): Call it.
10536         (getenv_columns): New.
10537         (adjust_line): New.
10538         (diagnostic_set_caret_max_width): New.
10539         * input.c (read_line): New.
10540         (location_get_source_line): New.
10541         * input.h (location_get_source_line): Declare.
10542         * toplev.c (general_init): Initialize show_caret from options.
10543         * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
10544         * opts.c (common_handle_option): Likewise.
10545         * pretty-print.h (pp_get_prefix): New.
10546         (pp_base_get_prefix): New.
10547         * common.opt (fdiagnostics-show-caret): New option.
10548         * doc/invoke.texi (fdiagnostics-show-caret): Document it.
10550 2012-04-11  Richard Guenther  <rguenther@suse.de>
10552         PR rtl-optimization/52881
10553         * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
10555 2012-04-11  Richard Guenther  <rguenther@suse.de>
10557         PR tree-optimization/52912
10558         * tree-ssa-threadupdate.c (thread_block): Tell the cfg
10559         manipulation code we are threading through a loop header
10560         to an exit destination.
10562 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10564         * tree.h (warn_if_unused_value): Move declaration from here.
10565         * stmt.c (warn_if_unused_value): Move definition from here.
10567 2012-04-10  Michael Matz  <matz@suse.de>
10569         * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
10570         grouped_stores.
10571         (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
10572         (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
10573         (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
10574         (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
10575         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
10576         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
10577         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
10578         (vect_record_strided_load_vectors): Rename to
10579         vect_record_grouped_load_vectors.
10580         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
10581         Rename use of above macros.
10582         (vect_verify_datarefs_alignment): Ditto.
10583         (vector_alignment_reachable_p): Ditto.
10584         (vect_peeling_hash_get_lowest_cost): Ditto.
10585         (vect_enhance_data_refs_alignment): Ditto.
10586         (vect_analyze_group_access): Ditto and rename stride to groupsize.
10587         (vect_analyze_data_ref_access): Rename "strided" to "grouped".
10588         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
10589         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
10590         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
10591         (vect_record_strided_load_vectors): Rename to
10592         vect_record_grouped_load_vectors.
10593         * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
10594         (destroy_loop_vec_info): Ditto.
10595         (vect_transform_loop): Ditto and rename strided_store to grouped_store.
10596         * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
10597         (vect_analyze_slp): Ditto.
10598         (new_bb_vec_info): Ditto.
10599         (destroy_bb_vec_info): Ditto.
10600         (vect_schedule_slp_instance): Ditto and rename strided_store to
10601         grouped_store.
10602         * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
10603         vect_cost_group_size.
10604         (vect_model_store_cost): Rename use of above macros and call
10605         to vect_cost_strided_group_size.
10606         (vect_model_load_cost): Ditto.
10607         (vectorizable_store): Ditto, rename strided_store to grouped_store
10608         and calls to renamed tree-vectorizer.h functions.
10609         (vectorizable_load): Ditto.
10610         (vect_transform_stmt): Rename use of above macros and strided_store
10611         to grouped_store.
10613 2012-04-10  Jan Hubicka  <jh@suse.cz>
10615         * cgraph.h: Remove misledaing comment on ipa-ref.h.
10616         (symtab_type): New enum.
10617         (symtab_node): New structure.
10618         (cgraph_node, varpool_node): Add symbol base type.
10619         (cgraph, varpool): New accestor functions.
10620         * cgraph.c (cgraph_create_node_1): Set symbol type.
10621         * varpool.c (varpool_node): Set symbol type.
10623 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
10624             Richard Sandiford  <rdsandiford@googlemail.com>
10626         * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
10628 2012-04-10  Richard Guenther  <rguenther@suse.de>
10630         PR middle-end/52888
10631         * gimple-low.c (gimple_check_call_args): Properly account for
10632         compatible aggregate types.
10634 2012-04-10  Richard Guenther  <rguenther@suse.de>
10636         * toplev.h (tree_rest_of_compilation): Remove.
10637         * tree-optimize.c (tree_rest_of_compilation): Likewise.
10638         * cgraph.h (tree_rest_of_compilation): Declare.
10639         * tree-optimize.c (tree_rest_of_compilation): Move ...
10640         * cgraphunit.c (tree_rest_of_compilation): ... here.
10641         * cgraph.c (cgraph_add_new_function): Adjust.
10642         * Makefile.in (tree-optimize.o): Adjust.
10643         (cgraphunit.o): Likewise.
10645 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
10647         PR tree-optimization/52870
10648         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
10649         presumed pattern statement is within the same loop or basic block.
10651 2012-04-10  Tristan Gingold  <gingold@adacore.com>
10653         * gengtype.c (main): Make uintptr_t a known type.
10655 2012-04-10  Richard Guenther  <rguenther@suse.de>
10657         * tree-pass.h (tree_lowering_passes): Remove.
10658         * tree-optimize.c (tree_lowering_passes): Remove.
10659         * cgraph.c (cgraph_add_new_function): Inline relevant parts
10660         of tree_lowering_passes, avoid redundant call of early local passes.
10661         * cgraphunit.c (cgraph_lower_function): Fold into ...
10662         (cgraph_analyze_function): ... its single caller.  Inline
10663         relevant parts of tree_lowering_passes.
10665 2012-04-09  H.J. Lu  <hongjiu.lu@intel.com>
10667         PR other/52777
10668         * config/pa/pa.opt: Remove SIO and GNU_LD.
10670 2012-04-09  Jan Hubicka  <jh@suse.cz>
10672         PR lto/52722
10673         PR lto/51765
10674         PR lto/52634
10675         * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
10676         boundary, add its target too.
10677         * lto.c (add_references_to_partition): Add also aliased nodes.
10678         (add_cgraph_node_to_partition,
10679         add_varpool_node_to_partition): Work on nodes, not functions/variables;
10680         when adding alias, add also the aliased object.
10682 2012-04-09  Uros Bizjak  <ubizjak@gmail.com>
10684         PR target/52883
10685         * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
10686         VOIDmode immediate operands.
10687         * config/i386/constraints.md (Wz): New constraint.
10688         * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
10690 2012-04-09  Eric Botcazou  <ebotcazou@adacore.com>
10692         PR target/52717
10693         * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
10694         the DECL generated for the special GOT helper.
10696 2012-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
10698         * config/sh/constraints.md: Update list of constraints in
10699         comment block.
10700         (Sr0): Remove unused memory constraint.
10702 2012-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10704         * tree-pretty-print.h: Update comment.
10706 2012-04-08  Oleg Endo  <olegendo@gcc.gnu.org>
10708         * config/sh/sh.md: Use braced string notation where applicable.
10709         (*prefetch_i4, prefetch_m2a): Merge into ...
10710         (*prefetch): ... this new insn.
10712 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
10714         * config/sh/sh.h (high_life_started): Remove
10715         * config/sh/predicates.md (general_movdst_operand): Use
10716         'reload_in_progress' instead of 'high_life_started'.
10717         * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
10718         divsi_inv_fp): Likewise.
10720 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
10722         * config/sh/sh-protos.h (prepare_move_operands): Return void
10723         instead of int.
10724         * config/sh/sh.c (prepare_move_operands): Likewise.
10725         * config/sh/sh.md: Remove return value checks of prepare_move_operands.
10727 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
10729         * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
10730         general_movsrc_operand, general_movdst_operand, arith_reg_operand,
10731         fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
10732         logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
10733         commutative_float_operator, noncommutative_float_operator,
10734         sh_handle_pragma): Remove.
10736 2012-04-06  Sandra Loosemore  <sandra@codesourcery.com>
10738         * doc/invoke.texi:  Clean up Texinfo markup throughout the file.
10739         Use @option markup on command-line options.  Use @samp markup on
10740         literal keywords to options.  Use @code markup on code fragments.
10741         Use other markup in preference to quotation marks in the text.
10742         Add markup to some passages without any.
10744 2012-04-06  Mike Stump  <mikestump@comcast.net>
10746         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
10748 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
10750         * config/sh/sh.c (hi_const): Remove.
10751         (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
10752         of hi_const.
10754 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
10756         * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
10757         to bool.
10758         * config/sh/sh.c (sh_expand_t_scc): Likewise.
10759         * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
10760         calling sh_expand_t_scc.
10762 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
10764         * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
10765         nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
10766         sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
10767         reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
10768         sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
10769         sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
10770         check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
10771         sh2a_is_function_vector_call): Use bool as return type.
10772         (sh_pass_in_reg_p): Remove.
10773         * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
10774         flow_dependent_p, sh2a_function_vector_p, expand_block_move,
10775         expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
10776         sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
10777         sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
10778         sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
10779         fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
10780         sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
10781         sh_loads_bankedreg_p): Use bool as return type.
10782         (nonpic_symbol_mentioned_p): Use bool as return type.  Remove
10783         'register' modifier.
10785 2012-04-06  Matt Turner  <mattst88@gmail.com>
10787         * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
10789 2012-04-06  Eric Botcazou  <ebotcazou@adacore.com>
10791         * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
10792         of the destination isn't also a FP_REGS register.
10794 2012-04-05  Teresa Johnson  <tejohnson@google.com>
10795             H.J. Lu  <hongjiu.lu@intel.com>
10797         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
10798         * config/i386/i386.md (move immediate to memory peephole2):
10799         Add cases for HImode move when LCP stall avoidance is needed.
10800         * config/i386/i386.c (initial_ix86_tune_features): Initialize
10801         X86_TUNE_LCP_STALL entry.
10803 2012-04-05  Uros Bizjak  <ubizjak@gmail.com>
10805         PR target/52882
10806         * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
10807         CONST_INT operands, zero-extended with AND.
10809 2012-04-05  Oleg Endo  <olegendo@gcc.gnu.org>
10811         PR target/50751
10812         * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
10813         first argument instead of mode size.  Move displacement calculations
10814         to ...
10815         (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
10816         ... these new functions.
10817         (disp_adjust): Remove max_mov_disp field.
10818         (sh_legitimate_index_p): Use max_mov_insn_displacement and
10819         mov_insn_alignment_mask.
10820         (sh_address_cost): Use max_mov_insn_displacement.
10822 2012-04-05  Andrew Stubbs  <ams@codesourcery.com>
10824         * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
10825         (arch_enabled): Handle new arch types.
10826         (one_cmpldi2): Add NEON support.
10828 2012-04-05  Richard Guenther  <rguenther@suse.de>
10830         * gimple.c (walk_gimple_op): Compute val_only for the LHS
10831         of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
10832         (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
10833         * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
10834         ... here and make static.
10835         * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
10836         Remove.
10838 2012-04-05  Richard Guenther  <rguenther@suse.de>
10840         * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
10841         basic-block before removing it.
10843 2012-04-05  Richard Guenther  <rguenther@suse.de>
10845         * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
10846         version namespace as we release the freelist.
10848 2012-04-05  Richard Guenther  <rguenther@suse.de>
10850         * tree-nrv.c (tree_nrv): Release VDEFs.
10851         * tree-sra.c (sra_modify_constructor_assign): Likewise.
10852         (sra_modify_assign): Likewise.
10853         * tree-vect-stmts.c (vect_remove_stores): Likewise.
10854         * tree-vect-loop.c (vect_transform_loop): Likewise.
10855         * tree-ssa-dom.c (optimize_stmt): Likewise.
10856         * tree-vect-slp.c (vect_schedule_slp): Likewise.
10857         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
10859 2012-04-05  Richard Guenther  <rguenther@suse.de>
10861         * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
10862         cleanup.
10863         * gimple.h (gsi_remove): Adjust.
10864         * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
10865         * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
10866         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
10867         * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
10868         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
10869         * tree-ssa-pre.c (eliminate): Likewise.
10871 2012-04-04  Mike Stump  <mikestump@comcast.net>
10873         * doc/rtl.texi (const_double): Document as sign-extending.
10874         * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
10875         * emit-rtl.c (immed_double_int_const): Refine to state the
10876         value is signed.
10877         * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
10878         CONST_DOUBLE integers.
10879         (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
10880         negative values are converted.  Fix conversions bigger than
10881         HOST_BITS_PER_WIDE_INT.
10882         (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
10883         (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
10884         * explow.c (plus_constant_mode): Add.
10885         (plus_constant): Implement with plus_constant_mode.
10886         * rtl.h (plus_constant_mode): Add.
10888 2012-04-04  Richard Guenther  <rguenther@suse.de>
10890         PR tree-optimization/52808
10891         * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
10892         * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
10894 2012-04-04  Tristan Gingold  <gingold@adacore.com>
10896         * expr.c (expand_expr_real_2): Handle larger sizetype in
10897         POINTER_PLUS_EXPR.
10899 2012-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10901         * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
10902         to m2a-single instead of m2e.
10904 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
10906         * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
10907         Change type of BITOFFSET to signed.  Make sure the lower bound of
10908         the computed range is non-negative by adjusting OFFSET and BITPOS.
10909         (expand_assignment): Adjust call to get_bit_range.
10911 2012-04-03  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
10913         * h8300/h8300.c (h8300_current_function_monitor_function_p):
10914         New function. Added to check monitor functions.
10915         (h8300_option_override): Modified to generate error/warning
10916         messages for invalid combinations of different command line
10917         options.
10918         * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
10919         save EXR on stack for monitor function in case of H8S target
10920         when "-mno-exr" is passed.
10921         * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
10922         Add prototype.
10923         * doc/invoke.texi: Document H8S options.
10925 2012-04-03  Tristan Gingold  <gingold@adacore.com>
10927         * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
10928         of gcc_AC_FUNC_MMAP_BLACKLIST.
10929         * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
10930         * Makefile.in (aclocal_deps): Add mmap.m4.
10931         * configure: Regenerate.
10932         * aclocal.m4: Regenerate.
10934 2012-04-03  Richard Guenther  <rguenther@suse.de>
10936         PR tree-optimization/52808
10937         * tracer.c (tail_duplicate): Return whether we have duplicated
10938         any block.
10939         (tracer): If we have duplicated any block, cleanup the CFG.
10940         * cfghooks.c (duplicate_block): If we duplicated a loop
10941         header but not its loop, destroy the loop because it now has
10942         multiple entries.
10943         * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
10944         the cfg manipulation routines we are not creating a multiple
10945         entry loop.
10947 2012-04-03  Tristan Gingold  <gingold@adacore.com>
10949         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
10950         'byte' alignment.
10951         (vms_c_common_override_options): Allow parameterless variadic
10952         functions.
10954 2012-04-03  Jakub Jelinek  <jakub@redhat.com>
10956         PR tree-optimization/52835
10957         * tree-data-ref.c (build_rdg): Return NULL if
10958         compute_data_dependences_for_loop failed.
10960 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
10962         * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
10963         for REAL_CST as well.
10964         (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
10965         In the bitfield case, if the value is a REAL_CST, convert it first to
10966         an INTEGER_CST.
10968 2012-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10970         * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
10971         for --with-abi={x32|mx32} or --with-multilib-list=mx32.
10972         (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
10974         * config/i386/biarchx32.h: New.
10976 2012-04-02  Anatoly Sokolov  <aesok@post.ru>
10978         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
10979         * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10980         (arm_preferred_reload_class): New function.
10982 2012-04-02  Richard Guenther  <rguenther@suse.de>
10984         PR tree-optimization/52756
10985         * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
10986         (thread_through_loop_header): After threading through the loop latch
10987         remove the split part from the loop and clear further threading
10988         opportunities that would create a multiple entry loop.
10990 2012-04-02  Richard Guenther  <rguenther@suse.de>
10992         PR rtl-optimization/52800
10993         * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
10994         CLEANUP_CFG_CHANGED.
10996 2012-04-02  Richard Guenther  <rguenther@suse.de>
10998         PR middle-end/52803
10999         * loop-init.c (gate_handle_loop2): Destroy loops here if
11000         we don't enter RTL loop optimizers.
11002 2012-04-02  Uros Bizjak  <ubizjak@gmail.com>
11004         Partially revert:
11005         2012-03-29  Richard Guenther  <rguenther@suse.de>
11007         * rtl.h (extended_count): Remove.
11008         * combine.c (extended_count): Remove.
11010 2012-04-02  Dodji Seketeli  <dodji@redhat.com>
11012         PR c++/40942
11013         * pt.c (more_specialized_fn):  Don't apply decay conversion to
11014         types of function parameters.
11016 2012-04-02  Tristan Gingold  <gingold@adacore.com>
11018         * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
11019         (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
11020         (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
11021         (ggc_pch_this_base): Use uintptr_t instead of size_t.
11023 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11025         PR bootstrap/52784
11026         * config/i386/i386.c (ix86_option_override_internal): Don't
11027         check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
11029 2012-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11031         * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
11032         (stmt_can_make_abnormal_goto): Use it.
11033         (is_ctrl_altering_stmt): Likewise.
11035 2012-03-30  Naveen H.S  <naveen.S@kpitcummins.com>
11036             Kaz Kojima  <kkojima@gcc.gnu.org>
11038         * config/sh/sh.c (push_regs): Skip banked registers when
11039         resbank attribute is specified.
11040         (sh_expand_epilogue): Likewise.
11042 2012-03-30  Richard Henderson  <rth@redhat.com>
11044         PR debug/52727
11045         * combine-stack-adj.c (prev_active_insn_bb): New.
11046         (next_active_insn_bb): New.
11047         (force_move_args_size_note): New.
11048         (combine_stack_adjustments_for_block): Use it.
11050 2012-03-30  Richard Henderson  <rth@redhat.com>
11052         * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
11053         (ix86_expand_vector_init_duplicate): Initialize it.
11054         (expand_vec_perm_palignr): Likewise.
11055         (ix86_expand_vec_perm_const): Likewise.
11056         (ix86_vectorize_vec_perm_const_ok): Likewise.
11057         (expand_vec_perm_blend): Use it.
11058         (expand_vec_perm_vpermil): Likewise.
11059         (expand_vec_perm_pshufb): Likewise.
11060         (expand_vec_perm_1): Likewise.
11061         (expand_vec_perm_pshuflw_pshufhw): Likewise.
11062         (expand_vec_perm_interleave2): Likewise.
11063         (expand_vec_perm_vpermq_perm_1): Likewise.
11064         (expand_vec_perm_vperm2f128): Likewise.
11065         (expand_vec_perm_interleave3): Likewise.
11066         (expand_vec_perm_vperm2f128_vblend): Likewise.
11067         (expand_vec_perm_vpshufb2_vpermq): Likewise.
11068         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
11069         (expand_vec_perm_broadcast): Likewise.
11070         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
11072 2012-03-30  Richard Henderson  <rth@redhat.com>
11074         * dwarf2out.c (gen_variable_die): Initialize off.
11076 2012-03-30  Tristan Gingold  <gingold@adacore.com>
11078         * config/vms/vms-f.c: New file.
11079         * config/vms/t-vms (vms-f.o): New rule.
11080         * config.gcc (*-*-*vms*): Define fortran_target_objs.
11082 2012-03-30  Richard Guenther  <rguenther@suse.de>
11084         PR tree-optimization/52754
11085         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
11086         propagate arbitrary addresses into really plain dereferences.
11088 2012-03-30  Richard Guenther <rguenther@suse.de>
11090         PR middle-end/52772
11091         * except.c (emit_to_new_bb_before): Move loop updating ...
11092         (dw2_build_landing_pads): ... here.  Use a proper block for
11093         querying the loop father.
11095 2012-03-30  Tristan Gingold  <gingold@adacore.com>
11097         * config/ia64/ia64.c (ia64_section_type_flags): Remove
11098         common_object attribute handling.
11099         (SECTION_VMS_OVERLAY): Remove
11100         (ia64_vms_common_object_attribute): Replace abort with an assert.
11101         Do not set DECL_SECTION_NAME.
11102         (ia64_vms_output_aligned_decl_common): Handle common_object
11103         attribute.
11104         (ia64_vms_elf_asm_named_section): Remove.
11105         * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
11107 2012-03-30  Richard Guenther  <rguenther@suse.de>
11109         PR middle-end/52786
11110         * double-int.c (rshift_double): Remove not needed cast.
11112 2012-03-30  Richard Guenther  <rguenther@suse.de>
11114         * tree-affine.h (print_aff): Remove.
11115         * tree-affine.c (print_aff): Make static.
11116         * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
11117         (get_references_in_stmt): Likewise.
11118         (print_direction_vector): Likewise.
11119         (print_dir_vectors): Likewise.
11120         (print_dist_vectors): Likewise.
11121         (dump_subscript): Likewise.
11122         (dump_ddrs): Likewise.
11123         (dump_dist_dir_vectors): Likewise.
11124         (dump_data_references): Likewise.
11125         (dump_data_dependence_relation): Likewise.
11126         (dump_data_dependence_direction): Likewise.
11127         (dump_rdg_vertex): Likewise.
11128         (dump_rdg_component): Likewise.
11129         (debug_ddrs): Declare.
11130         (struct data_ref_loc_d): Move ...
11131         * tree-data-ref.c (struct data_ref_loc_d): ... here.
11132         (get_references_in_stmt): Make static.
11133         (dump_data_references): Likewise.
11134         (dump_subscript): Likewise.
11135         (print_direction_vector): Likewise.
11136         (print_dir_vectors): Likewise.
11137         (print_dist_vectors): Likewise.
11138         (dump_data_dependence_relation): Likewise.
11139         (dump_dist_dir_vectors): Likewise.
11140         (dump_ddrs): Likewise.
11141         (dump_rdg_vertex): Likewise.
11142         (dump_rdg_component): Likewise.
11143         (debug_ddrs): New function.
11144         (access_matrix_get_index_for_parameter): Remove.
11146 2012-03-30  Tristan Gingold  <gingold@adacore.com>
11148         * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
11149         (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
11150         (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
11151         (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
11152         (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
11153         (vms_patch_builtins): Handle new flags
11154         * config/vms/vms-crtlmap.map: Completed using nm on
11155         c and math system libraries.
11156         * config/vms/make-crtlmap.awk: Handle any number of flags.
11158 2012-03-30  Martin Jambor  <mjambor@suse.cz>
11160         * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
11161         is a builtin_stack_save in a dominating BB.
11163 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
11165         * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
11166         crossing 128bit lane boundary.
11168 2012-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11170         * ira-color.c (setup_left_conflict_sizes_p): Process all
11171         conflicting objects.
11173 2012-03-29  Jakub Jelinek  <jakub@redhat.com>
11175         PR tree-optimization/52760
11176         * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
11177         shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
11179 2012-03-29  Richard Guenther  <rguenther@suse.de>
11181         * cgraph.h (cgraph_materialize_all_clones): Remove.
11182         (reset_inline_failed): Likewise.
11183         * cgraphunit.c (cgraph_materialize_all_clones): Make static.
11184         * cgraphbuild.c (reset_inline_failed): Remove.
11185         * rtl.h (cse_main): Remove.
11186         (extended_count): Likewise.
11187         * cse.c (dump_class): Mark as DEBUG_FUNCTION.
11188         (cse_main): Make static.
11189         * combine.c (extended_count): Remove.
11190         (dump_combine_stats): Mark as DEBUG_FUNCTION.
11191         * basic-block.h (reorder_basic_blocks): Remove.
11192         * bb-reorder.c (reorder_basic_blocks): Make static.
11193         * Makefile.in (dse.o): Remove dse.h dependency.
11194         * dse.h: Remove.
11195         * dse.c (gate_dse): Remove.
11196         (clear_alias_mode_eq): Likewise.
11197         (clear_alias_mode_hash): Likewise.
11198         (dse_record_singleton_alias_set): Likewise.
11199         (dse_invalidate_singleton_alias_set): Likewise.
11201 2012-03-29  H.J. Lu  <hongjiu.lu@intel.com>
11203         * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
11204         crtbegin_so%O%s for -shared.
11205         (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
11207 2012-03-29  Richard Guenther  <rguenther@suse.de>
11209         * tree-flow.h (struct pre_expr_d): Remove forward declaration.
11210         (add_to_value): Remove.
11211         (print_value_expressions): Likewise.
11212         * tree-ssa-pre.c (add_to_value): Make static.
11213         (print_value_expressions): Likewise.
11214         * gimple.h (gimple_adjust_this_by_delta): Remove.
11215         * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
11217 2012-03-29  Richard Guenther  <rguenther@suse.de>
11219         PR middle-end/50708
11220         * double-int.h (rshift_double): Remove.
11221         * double-int.c (lshift_double): Use absu_hwi to make count positive.
11222         (rshift_double): Make static, take unsigned count argument,
11223         remove handling of negative count argument.
11224         (double_int_rshift): Dispatch to lshift_double.
11226 2012-03-28  H.J. Lu  <hongjiu.lu@intel.com>
11228         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
11229         OPTION_MASK_ABI_64.
11231         * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
11232         (SPEC_X32): Likewise.
11233         (MULTILIB_DEFAULTS): Likewise.
11235         * config/i386/i386.c (isa_opts): Remove -m64.
11236         (ix86_target_string): Properly handle -m32/-m64/-mx32.
11237         (ix86_option_override_internal): Properly
11238         set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
11239         handle -m32, -m64 and -mx32.
11241         * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
11242         with OPTION_ABI_X32.  Moved after TARGET_LP64.
11243         (TARGET_LP64): Changed to OPTION_ABI_64.
11245         * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
11246         (mx32): Replace ISA_X32 with ABI_X32.
11248 2012-03-28  Eric Botcazou  <ebotcazou@adacore.com>
11250         * tree.c (tree_size) <VECTOR_CST>: New case.
11252 2012-03-28  Uros Bizjak  <ubizjak@gmail.com>
11254         * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
11255         (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
11257 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
11259         PR middle-end/52691
11260         * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
11261         __builtin_va_start to __builtin_next_arg if the latter is
11262         builtin_decl_explicit_p rather than when it is not.
11264         PR middle-end/52750
11265         * tree-vect-generic.c (vector_element): Perform multiplication
11266         for pos in bitsizetype type instead of idx type.
11268 2012-03-28  Richard Guenther  <rguenther@suse.de>
11270         * loop-init.c (loop_optimizer_init): If loops are preserved
11271         perform incremental initialization of required loop features.
11272         (loop_optimizer_finalize): If loops are to be preserved only
11273         clean up optional loop features.
11274         (rtl_loop_done): Forcefully free loops here.
11275         * cgraph.c (cgraph_release_function_body): Forcefully free loops.
11276         * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
11277         to existing loops.
11278         (construct_init_block): Likewise.
11279         (construct_exit_block): Likewise.
11280         (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state.  Cleanup
11281         the CFG after expanding.
11282         * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
11283         If we needed to calculate them, free them afterwards.
11284         * tree-pass.h (PROP_loops): New define.
11285         * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
11286         * basic-block.h (CLEANUP_CFG_CHANGED): New.
11287         * cfgcleanup.c (merge_blocks_move): Protect loop latches.
11288         (cleanup_cfg): If we did something and have loops around, fix them up.
11289         * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
11290         with CLEANUP_CFG_CHANGED.
11291         * cfghooks.c (merge_blocks): If we merge a loop header into
11292         its predecessor, update the loop structure.
11293         (duplicate_block): If we copy a loop latch, adjust loop state
11294         to note we may have multiple latches.
11295         (delete_basic_block): Mark loops for fixup if we remove a loop.
11296         * cfganal.c (forwarder_block_p): Protect loop latches, headers
11297         and preheaders.
11298         * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
11299         (cfg_layout_can_merge_blocks_p): Likewise.
11300         * cprop.c (bypass_block): If we create a loop with multiple
11301         entries, mark it for removal.
11302         * except.c (emit_to_new_bb_before): Add the new basic-block
11303         to existing loops.
11304         * tree-eh.c (lower_resx): Likewise.
11305         * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
11306         (expand_omp_taskreg): Likewise.
11307         * tree-inline.c (initialize_cfun): Likewise.
11308         * tree-mudflap.c (add_bb_to_loop): Prototype.
11309         (mf_build_check_statement_for): Properly add new basic-blocks
11310         to existing loops.
11311         * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
11312         if we remove a loop.
11313         (thread_through_loop_header): Likewise.
11314         * trans-mem.c (tm_log_emit_save_or_restores): Properly add
11315         new basic-blocks to existing loops.
11316         (expand_transaction): Likewise.
11317         * Makefile.in (except.o): Add $(CFGLOOP_H).
11318         (expr.o): Likewise.
11319         (cgraph.o): Likewise.
11320         (cprop.o): Likewise.
11321         (cfgexpand.o): Likewise.
11322         (cfganal.o): Likewise.
11323         (trans-mem.o): Likewise.
11324         (tree-eh.o): Likewise.
11326 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
11328         PR target/52692
11329         * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
11330         (avr_builtin_decl): New static function.
11331         (struct avr_builtin_description, avr_bdesc): Move up.
11332         Add GTY marker. Add field fndecl. Remove redundant field id.
11333         (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
11334         (avr_expand_builtin): Code cleanup because .id is removed.
11336 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
11338         PR target/52737
11339         * config.gcc (tm_file): Remove avr/multilib.h.
11341         * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
11343         * config/avr/genmultilib.awk: Remove code to generate multilib.h.
11344         (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
11345         * config/avr/t-avr: Remove generation of multilib.h.
11346         * config/avr/t-multilib: Regenerate.
11347         * config/avr/multilib.h: Remove.
11348         * config/avr/avr.opt (-msp8): New option.
11349         (avr_sp8): New variable.
11350         * config/avr/driver-avr.c (avr_device_to_sp8): New function.
11351         * config/avr/avr.h (AVR_HAVE_SPH): New define.
11352         (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
11353         (avr_device_to_sp8): New prototype.
11354         (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
11355         (DRIVER_SELF_SPECS): New define.
11356         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
11357         __AVR_SP8__, __AVR_HAVE_SPH__.
11358         * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
11359         AVR_HAVE_8BIT_SP to decide if SP_H is present.
11360         (avr_file_start): Ditto.
11362 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
11364         PR target/52736
11365         * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
11366         instead of 8 in adjust_address.
11368 2012-03-27  Aurelien Buhrig  <aurelien.buhrig.gcc@gmail.com>
11370         PR middle-end/51893
11371         * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
11372         targets.
11374 2012-03-27  Oleg Endo  <olegendo@gcc.gnu.org>
11376         PR target/50751
11377         * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
11378         Rearrange conditional logic.  Move displacement address calculations
11379         to ...
11380         (sh_find_mov_disp_adjust): ... this new function.
11382 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11384         * config/arm/arm.opt (mapcs): Remove MaskExists.
11385         * config/cris/linux.opt (mno-gotplt): Likewise.
11386         * config/i386/i386.opt (mhard-float): Likewise.
11387         (msse4): Likewise.
11388         (mno-sse4): Likewise.
11389         * config/m68k/m68k.opt (mhard-float): Likewise.
11390         * config/mep/mep.op (mcop32): Likewise.
11391         * config/pa/pa-hpux.opt (msio): Likewise.
11392         * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
11393         * config/picochip/picochip.opt (mlittle): Likewise.
11394         * config/sh/sh.opt (mrenesas): Likewise.
11395         * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
11396         * config/sparc/sparc.opt (mhard-float): Likewise.
11397         * config/v850/v850.opt (mv850es): Likewise.
11398         * config/vax/vax.opt (mg-float): Likewise.
11400 2012-03-27  Martin Jambor  <mjambor@suse.cz>
11402         PR middle-end/52693
11403         * tree-sra.c (sra_modify_assign): Do not call
11404         load_assign_lhs_subreplacements when working with an unscalarizable
11405         region.
11407 2012-03-27  Uros Bizjak  <ubizjak@gmail.com>
11409         PR target/52698
11410         * config/i386/i386-protos.h (ix86_legitimize_reload_address):
11411         New prototype.
11412         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
11413         * config/i386/i386.c: Include reload.h.
11414         (ix86_legitimize_reload_address): New function.
11416 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11418         * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
11419         hasn't been allocated.  Define a target macro for Mask and
11420         InverseMask if it hasn't been defined.  Remove MaskExists handling.
11422         * doc/options.texi: Remove MaskExists.
11424 2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>
11426         PR target/52667
11427         * config/sh/sh.c (find_barrier): Add equality check of last_got
11428         to avoid going above orig insn. Update comments.
11430 2012-03-27  Richard Guenther  <rguenther@suse.de>
11432         PR middle-end/52720
11433         * fold-const.c (try_move_mult_to_index): Handle &x.array more
11434         explicitely.
11436 2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>
11438         * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
11439         of a unit before computing the offset in units.
11440         * expr.c (get_bit_range): Return the null range if the enclosing record
11441         is part of a larger bit field.
11443 2012-03-27  Tristan Gingold  <gingold@adacore.com>
11445         * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
11446         * config/ia64/ia64.md: Remove mode in template.
11447         Sign extend operand in expand_simple_binop.
11448         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
11449         CASE_VECTOR_MODE instead of TARGET_ILP32.
11450         (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
11452 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
11454         * varasm.c (assemble_external): #if 0 out the new assert from the
11455         previous commit, it breaks the Java and Go front ends.
11457 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
11459         * toplev.c (check_global_declaration_1): Do not call assemble_external.
11460         * expr.c (emit_block_move_libcall_fn): Likewise.
11461         (clear_storage_libcall_fn): Likewise.
11462         (expand_expr_addr_expr_1): Likewise.
11463         (expand_expr_real_1): Likewise.
11464         * calls.c (rtx_for_function_call): Likewise.
11466         * varasm.c (assemble_external): Assert this function is only called
11467         during or after expanding to RTL.
11469 2012-03-26  Martin Jambor  <mjambor@suse.cz>
11471         PR tree-optimization/50052
11472         * tree-sra.c (tree_non_aligned_mem_p): Removed.
11473         (tree_non_aligned_mem_for_access_p): Likewise.
11474         (build_accesses_from_assign): Removed strict alignment requirements
11475         checks.
11476         (access_precludes_ipa_sra_p): Likewise.
11478 2012-03-26  Richard Guenther  <rguenther@suse.de>
11480         PR tree-optimization/52701
11481         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
11482         compute and set the evolution part of PHI nodes.
11484 2012-03-26  Richard Guenther  <rguenther@suse.de>
11486         PR tree-optimization/52721
11487         * tree-vect-stmts.c (vect_init_vector): Handle scalars.
11489 2012-03-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
11491         PR tree-optimization/52686
11492         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
11493         WIDEN_LSHIFT_EXPR.
11495 2012-03-26  Tristan Gingold  <gingold@adacore.com>
11497         * config/alpha/vms.h (LINK_SPEC): Simplify.
11498         (STARTFILE_SPEC): Remove -mvms-return-codes handling.
11499         (NAME__MAIN, SYMBOL__MAIN): Remove.
11500         (VMS_DEBUG_MAIN_POINTER): Remove.
11501         * config/ia64/vms.h: Likewise.
11502         * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
11503         code to vms.c.  Call vms_start_function.
11504         * config/ia64/ia64.c (ia64_start_function): Likewise.
11505         * config/vms/vms-protos.h (vms_start_function): Declare.
11506         * config/vms/vms.c (vms_start_function): New function.
11507         * config/vms/vms.h (MATH_LIBRARY): Define.
11508         (VMS_DEBUG_MAIN_POINTER): Define.
11510 2012-03-26  Eric Botcazou  <ebotcazou@adacore.com>
11512         PR rtl-optimization/52629
11513         * reload1.c (count_pseudo): Short-circuit common case.
11514         (count_spilled_pseudo): Return early for pseudos without hard regs.
11515         Assert that the pseudo has got a hard reg before manipulating it.
11517 2012-03-24  Jan Hubicka  <jh@suse.cz>
11519         PR lto/51663
11520         * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
11521         (decide_is_variable_needed): Do not handle toplevel reorder here.
11522         * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
11523         * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
11524         even at -O0.
11526 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11528         * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
11529         and str_bitsize instead of more convoluted expressions.
11531 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11533         PR target/52610
11534         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
11536 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11538         PR target/52656
11539         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
11541 2012-03-23  Martin Jambor  <mjambor@suse.cz>
11543         * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
11545 2012-03-23  Richard Guenther  <rguenther@suse.de>
11547         PR tree-optimization/52678
11548         * tree-vectorizer.h (struct _stmt_vec_info): Add
11549         loop_phi_evolution_part member.
11550         (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
11551         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
11552         STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
11553         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
11554         Use the cached evolution part and the PHI nodes value from
11555         the loop preheader edge instead of re-analyzing the evolution.
11557 2012-03-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
11559         * config/mips/mips-tables.opt: Update.
11560         * config/mips/mips.md (processor): Add xlp.
11561         * config/mips/mips-cpus.def: Add xlp.
11562         * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
11563         5KF for now.
11564         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
11565         * doc/invoke.texi: Mention XLP.
11567 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
11569         PR middle-end/52547
11570         * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
11571         on any new_local_var_chain vars declared during recursing on
11572         GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
11574 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
11576         * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
11577         (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
11578         (ASM_OUTPUT_LOCAL): Ditto.
11579         (ASM_OUTPUT_COMMON): Remove.
11580         * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
11581         * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
11583 2012-03-22  Jan Hubicka  <jh@suse.cz>
11585         PR middle-end/51737
11586         * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
11587         parameter.
11588         * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
11589         * ipa-inline-transform.c (save_inline_function_body): Remove
11590         copied clone if needed.
11591         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
11593 2012-03-22  Richard Guenther  <rguenther@suse.de>
11595         PR middle-end/52666
11596         * fold-const.c (fold_ternary_loc): Fix typo.
11598 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
11600         PR target/52496
11601         * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
11602         (unspecv): Add UNSPECV_MEMORY_BARRIER.
11603         (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
11604         (delay_cycles_1, delay_cycles_2): Ditto.
11605         (delay_cycles_3, delay_cycles_4): Ditto.
11606         (nopv, *nopv): Ditto.
11607         (sleep, *sleep): Ditto.
11608         (wdr, *wdr): Ditto.
11610 2012-03-22  Richard Guenther  <rguenther@suse.de>
11612         PR tree-optimization/52548
11613         * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
11614         because of clobbers.
11615         (prune_clobbered_mems): New function.
11616         (compute_antic_aux): Use it to prune ANTIC_OUT.
11617         (compute_partial_antic_aux): Use it to prune PA_IN.
11618         (compute_avail): Only insert expressions into EXP_GEN that are not
11619         invalidated when translated up to the beginning of the block.
11621 2012-03-22  Richard Guenther  <rguenther@suse.de>
11623         PR tree-optimization/52638
11624         * tree-vect-stmts.c (vect_init_vector_1): New function, split
11625         out from ...
11626         (vect_init_vector): ... here.  Handle scalar vector inits.
11627         (vect_get_vec_def_for_operand): Adjust.
11628         (vectorizable_load): Likewise.
11630 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
11632         * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
11633         (alpha*-*-freebsd*): Ditto.
11634         (alpha*-*-netbsd*): Ditto.
11635         (alpha*-*-openbsd*): Ditto.
11636         * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
11637         (DWARF2_DEBUGGING_INFO): Remove.
11638         (PREFERRED_DEBUGGING_TYPE): Remove.
11639         (ASM_FINAL_SPEC): Remove.
11640         (IDENT_ASM_OP): Remove.
11641         (ASM_OUTPUT_IDENT): Remove.
11642         (SKIP_ASM_OP): Remove.
11643         (ASM_OUTPUT_SKIP): Remove.
11644         (ALIGN_ASM_OP): Remove.
11645         (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
11646         (ASM_OUTPUT_CASE_LABEL): Remove.
11647         (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
11648         (COMMON_ASM_OP): Remove.
11649         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
11650         (ASCII_DATA_ASM_OP): Remove.
11651         (READONLY_DATA_SECTION_ASM_OP): Remove.
11652         (INIT_SECTION_ASM_OP): Remove.
11653         (FINI_SECTION_ASM_OP): Remove.
11654         (ASM_SECTION_START_OP): Remove.
11655         (ASM_OUTPUT_SECTION_START_FILE): Remove.
11656         (TARGET_ASM_NAMED_SECTION): Remove.
11657         (TARGET_ASM_SELECT_SECTION): Remove.
11658         (MAKE_DECL_ONE_ONLY): Remove.
11659         (TYPE_ASM_OP): Remove.
11660         (SIZE_ASM_OP): Remove.
11661         (ASM_WEAKEN_LABEL): Remove.
11662         (TYPE_OPERAND_FMT): Remove.
11663         (ASM_DECLARE_RESULT): Remove.
11664         (ASM_DECLARE_OBJECT_NAME): Remove.
11665         (ASM_FINISH_DECLARE_OBJECT): Remove.
11666         (ELF_ASCII_ESCAPES): Remove.
11667         (ELF_STRING_LIMIT): Remove.
11668         (STRING_ASM_OP): Remove.
11669         (ASM_OUTPUT_EXTERNAL): Remove.
11670         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
11671         * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
11672         before define.
11673         (ASM_DECLARE_FUNCTION_NAME): Ditto.
11674         (ASM_DECLARE_FUNCTION_SIZE): Ditto.
11675         (ASM_GENERATE_INTERNAL_LABEL): Ditto.
11676         (ASM_OUTPUT_SKIP): Ditto.
11677         (READONLY_DATA_SECTION_ASM_OP): Remove.
11678         (USER_LABEL_PREFIX): Remove.
11679         (ASM_OUTPUT_ASCII): Remove.
11680         (ASM_OUTPUT_CASE_LABEL): Remove.
11681         (NO_DOLLAR_IN_LABEL): Undefine.
11683 2012-03-22  Richard Guenther  <rguenther@suse.de>
11685         PR tree-optimization/52459
11686         * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
11687         PHI insertion for calls.
11689 2012-03-21  Steven Bosscher  <steven@gcc.gnu.org>
11691         * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
11692         find_sets_in_insn, canonicalize_insn): Split out from ...
11693         (cse_insn): ... here.
11694         (invalidate_from_clobbers): Take an insn instead of the pattern.
11696 2012-03-21  Oleg Endo  <olegendo@gcc.gnu.org>
11698         PR target/52479
11699         * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
11700         * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
11701         * config/sh/sh.md (sindf2, cosdf2): Remove.
11703 2012-03-21  Kaz Kojima  <kkojima@gcc.gnu.org>
11705         PR target/52642
11706         * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
11707         prologue for unwinder and profiler.
11709 2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
11711         * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
11712         Introduce emul_name to select the right linker emulation for
11713         powerpc64-*-freebsd*.
11714         * configure: Regenerate.
11715         * config.gcc: Add bits to support powerpc64-*-freebsd*.
11716         * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
11717         * config/rs6000/freebsd64.h: New file.
11718         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
11719         POWERPC_FREEBSD.
11720         (rs6000_savres_strategy): Likewise.
11721         (rs6000_savres_routine_name): Likewise.
11722         (rs6000_elf_file_end): Likewise.
11723         * config/rs6000/t-freebsd64: New file.
11724         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
11725         rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
11727         * config/rs6000/freebsd64.h: Remove duplicated entries from last
11728         commit.
11729         * config/rs6000/t-freebsd64: Likewise.
11731 2012-03-21  Georg-Johann Lay  <avr@gjlay.de>
11733         PR rtl-optimization/52543
11734         PR target/52461
11735         * config/avr/avr-protos.h (avr_load_lpm): New prototype.
11736         * config/avr/avr.c (avr_mode_dependent_address_p): New function.
11737         (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
11738         (avr_load_libgcc_p): Restrict to __flash loads.
11739         (avr_out_lpm): Only handle 1-byte loads from __flash.
11740         (avr_load_lpm): New function.
11741         (avr_find_unused_d_reg): Remove.
11742         (avr_out_lpm_no_lpmx): Remove.
11743         (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
11744         * config/avr/avr.md (unspec): Add UNSPEC_LPM.
11745         (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
11746         (load_<mode>, load_<mode>_clobber): New insns.
11747         (mov<mode>): For multi-byte move from non-generic
11748         16-bit address spaces: Expand to load_<mode> resp.
11749         load_<mode>_clobber.
11750         (load<mode>_libgcc): Remove expander.
11751         (split-lpmx): Remove split.
11753 2012-03-21  Richard Earnshaw  <rearnsha@arm.com>
11755         * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
11756         * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
11757         All callers changed.
11758         (Fixed_core_reg): New feature.
11759         (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg.  Allow fmrrd in
11760         disassembly.
11761         * neon-testgen.ml: Handle Fixed_core_reg.
11763 2012-03-21  Andrew Stubbs  <ams@codesourcery.com>
11765         * config/arm/arm.c (thumb2_reorg): Add complete support
11766         for 16-bit instructions.
11767         * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
11769 2012-03-21  Richard Guenther  <rguenther@suse.de>
11771         PR tree-optimizer/52636
11772         * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
11773         to the appropriate type.
11775 2012-03-21  Richard Guenther  <rguenther@suse.de>
11777         * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
11778         dependencies.
11779         * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
11780         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
11781         * passes.c (init_optimization_passes): Remove pass_init_function,
11782         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
11783         * tree-pass.h (pass_init_function): Remove.
11784         (pass_jump): Remove.
11785         (pass_initial_value_sets): Remove.
11786         (pass_unshare_all_rtl): Remove.
11787         * integrate.c (pass_initial_value_sets): Remove.
11788         * emit-rtl.c (pass_unshare_all_rtl): Remove.
11789         * tree.h (init_function_for_compilation): Remove.
11790         * function.c (init_function_for_compilation): Remove.
11791         (pass_init_function): Remove.
11792         * cfgcleanup.c (rest_of_handle_jump): Remove.
11793         (pass_jump): Remove.
11795 2012-03-20  Jason Merrill  <jason@redhat.com>
11797         * tree-streamer-in.c (streamer_alloc_tree): Call
11798         ggc_alloc_zone_cleared_tree_node instead of
11799         ggc_alloc_zone_cleared_tree_node_stat.
11801 2012-03-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
11803         * doc/extend.texi (Template Instantiation): Remove anachronisms.
11805 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
11807         PR target/52607
11808         * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
11809         (ix86_expand_vec_perm_const_1): Call it.
11811         * config/i386/i386.c (vselect_insn): New variable.
11812         (init_vselect_insn): New function.
11813         (expand_vselect, expand_vselect_insn): Add testing_p argument.
11814         Call init_vselect_insn if vselect_insn is NULL.  Adjust
11815         PATTERN (vselect_insn), instead of creating a new insn each time,
11816         only emit a copy of it if not testing and recog has been successful.
11817         (expand_vec_perm_pshufb, expand_vec_perm_1,
11818         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
11819         callers.
11821         PR target/52607
11822         * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
11823         ("enabled" attribute): Handle avx2 and noavx2 isas.
11824         * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
11825         New insns.
11826         (vec_dup<mode>): Add avx2 =x,x alternative.
11827         (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
11828         (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
11829         For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
11830         * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
11831         for V8SFmode.
11832         (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
11833         if possible, handle also V8SFmode.
11835 2012-03-20  Richard Earnshaw  <rearnsha@arm.com>
11837         * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
11838         * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
11839         reg_or_zero_operand predicate.
11840         (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
11842 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
11844         * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
11845         If operand isn't UNSPEC, return 0.
11847 2012-03-20  Richard Guenther  <rguenther@suse.de>
11849         * tree-pass.h (pass_rtl_eh): Remove.
11850         * except.c (gate_handle_eh): Likewise.
11851         (rest_of_handle_eh): Likewise.
11852         (pass_rtl_eh): Likewise.
11853         (finish_eh_generation): Export.
11854         * except.h (finish_eh_generation): Declare.
11855         * passes.c (init_optimization_passes): Remove pass_rtl_eh.
11856         * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
11857         after expanding stack alignment.  Instead of compacting blocks
11858         call cleanup_cfg.
11860 2012-03-20  Richard Guenther  <rguenther@suse.de>
11862         * stor-layout.c (finish_bitfield_representative): Fallback
11863         to conservative maximum size if the padding up to the next
11864         field cannot be computed as a constant.
11865         (finish_bitfield_layout): If we cannot compute the distance
11866         between the start of the bitfield representative and the
11867         bitfield member start a new representative.
11868         * expr.c (get_bit_range): The distance between the start of
11869         the bitfield representative and the bitfield member is zero
11870         if the field offsets are not constants.
11872 2012-03-20  Tristan Gingold  <gingold@adacore.com>
11874         * tree.h (enum size_type_kind): Add stk_ prefix to constants,
11875         convert in lowercase.
11876         (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
11877         (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
11878         * stor-layout.c (sizetype_tab): Adjust.
11879         (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
11880         * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
11881         instead of type_kind_last.
11882         * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
11883         instead of size_int_kind.
11884         * doc/tm.texi.in (Type Layout): Document SIZETYPE.
11885         * doc/tm.texi: Regenerate.
11886         * defaults.h (SIZETYPE): Provide a default value.
11887         * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
11888         (SIZETYPE): Define.
11890 2012-03-20  Oleg Endo  <olegendo@gcc.gnu.org>
11892         * config/sh/sh.md: Use braced string notation where applicable.
11894 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
11896         * config/i386/i386.md (allocate_stack): Simplify.
11898 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
11900         * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
11901         copy_to_mode_reg (Pmode, ...).
11902         (expand_builtin_frame_address): Ditto.
11903         * expr.c (emit_block_move_via_libcall): Ditto.
11904         (set_storage_via_libcall): Ditto.
11906         * config/i386/i386.c (ix86_expand_movmem): Ditto.
11907         (ix86_expand_setmem): Ditto.
11908         (ix86_trampoline_init): DItto.
11909         * config/i386/i386.md (cmpstrnsi): Ditto.
11911 2012-03-19  Sandra Loosemore  <sandra@codesourcery.com>
11913         * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
11914         * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
11915         * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
11916         (SH Options): Likewise.
11918 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
11920         * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
11921         Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
11922         (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
11923         DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
11924         (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
11926         Revert:
11927         2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
11929         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
11930         * config/i386/i386.c (ix86_decompose_address): Use
11931         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
11932         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
11933         thread pointer to a register.
11935         Revert:
11936         2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
11938         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
11939         if Pmode != word_mode.
11940         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
11941         Pmode == SImode for TARGET_X32.
11943         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
11944         (tls_initial_exec_x32): Likewise.
11946 2012-03-19  Oleg Endo  <olegendo@gcc.gnu.org>
11948         PR target/50751
11949         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
11950         DISP_ADDR_OFFSET): New macros.
11951         * config/sh/sh.c (sh_address_cost): Add SH2A special case.
11952         (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
11953         (sh_legitimize_address): Add QImode displacement handling.
11954         (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
11955         vector subregs.
11956         (sh_secondary_reload): Add QImode displacement handling.
11957         * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
11958         * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
11959         * config/sh/sh.md (extendqisi2): Remove constraints from expander.
11960         (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
11961         to register operands only.
11962         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
11963         (extendqihi2): Change insn to expander.
11964         (*extendqihi2_compact_reg): New insn.
11965         (movqi_i, movqi): Replace with ...
11966         (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
11967         *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
11968         Add new peepholes for QImode displacement addressing.
11970 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
11972         PR c++/14710
11973         * doc/invoke.texi: Document -Wuseless-cast.
11975 2012-03-19  Eric Botcazou  <ebotcazou@adacore.com>
11977         * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
11978         * tree.h (handled_component_p): Reorder cases.
11979         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
11980         not initialize unsignedp.
11981         (loc_list_from_tree): Likewise.
11982         (fortran_common): Likewise.
11983         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
11985 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
11987         * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
11988         mode consistently.  Use ix86_gen_add3.  Assert that Pmode == DImode.
11989         (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
11990         (ix86_split_long_move): Ditto.
11991         (legitimize_tls_address): Use ix86_gen_sub3.
11992         (construct_plt_address): Assert that Pmode == DImode.
11994 2012-03-18  Uros Bizjak  <ubizjak@gmail.com>
11996         * config/i386/i386.md: Remove empty predicates and/or constraints.
11997         * config/i386/sync.md: Ditto.
11998         * config/i386/sse.md: Ditto.
11999         * config/i386/mmx.md: Ditto.
12000         * config/i386/pentium.md: Ditto.
12001         * config/i386/athlon.md: Ditto.
12003 2012-03-16  Richard Guenther  <rguenther@suse.de>
12005         PR tree-optimization/52603
12006         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
12007         comment.
12009         Revert
12010         2012-03-14  Richard Guenther  <rguenther@suse.de>
12012         PR tree-optimization/52571
12013         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
12014         flag_section_anchors check ...
12015         (vect_can_force_dr_alignment_p): ... here.
12017 2012-03-16  Martin Jambor  <mjambor@suse.cz>
12019         * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
12020         memory through MEM_REFs by calling extract_bit_field.
12022 2012-03-16  Richard Guenther  <rguenther@suse.de>
12024         * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
12025         and REFERENCE_TYPE interpretations.
12026         (can_native_interpret_type_p): New function.
12027         (fold_ternary_loc): Use native encode/interpret to fold
12028         BIT_FIELD_REFs of constants.
12030 2012-03-16  Richard Guenther  <rguenther@suse.de>
12032         PR middle-end/52584
12033         * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
12034         of vector constants and constructors.
12036 2012-03-16  Richard Guenther  <rguenther@suse.de>
12038         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
12039         VIEW_CONVERT_EXPR to convert constants.
12040         (vect_is_simple_use): Treat all constants as vec_constant_def.
12042 2012-03-16  Richard Guenther  <rguenther@suse.de>
12043             Kai Tietz  <ktietz@redhat.com>
12045         PR middle-end/48814
12046         * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
12047         side-effects completely in the pre-queue and use a temporary
12048         for the result.
12050 2012-03-16  Richard Guenther  <rguenther@suse.de>
12052         * stor-layout.c (finish_bitfield_representative): Fall back
12053         to the conservative maximum size if we cannot compute the
12054         size of the tail padding.
12056 2012-03-16  Tristan Gingold  <gingold@adacore.com>
12058         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
12059         __CRTL_VER and __VMS_VER.
12060         * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
12061         and vms_c_get_vms_ver.
12062         * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
12063         functions.
12064         * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
12065         (VMS_DEFAULT_VMS_VER): Define.
12066         * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
12067         (VMS_DEFAULT_VMS_VER): Define.
12069 2012-03-16  Richard Guenther  <rguenther@suse.de>
12071         * tree-vect-loop.c (get_initial_def_for_induction): Use
12072         build_constructor directly.
12073         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
12074         build_vector_from_val.
12075         * tree.c (build_vector_from_val): Avoid creating a constructor
12076         first when we want a constant vector.
12078 2012-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12080         * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
12082 2012-03-16  Richard Guenther  <rguenther@suse.de>
12084         * tree.h (TREE_VECTOR_CST_ELTS): Remove.
12085         (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
12086         (struct tree_vector): Remove elements member, add variable size
12087         elts array member.
12088         (build_vector_stat): Declare.
12089         (build_vector): Define in terms of build_vector_stat.
12090         * tree.c (build_vector): Rename to ...
12091         (build_vector_stat): ... this.  Take array of trees as parameter.
12092         (build_vector_from_ctor): Adjust.
12093         (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
12094         initializer_zerop): Adjust.
12095         * cfgexpand.c (expand_debug_expr): Likewise.
12096         * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
12097         const_vector_from_tree): Likewise.
12098         * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
12099         native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
12100         fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
12101         * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
12102         (lto_input_ts_vector_tree_pointers): Adjust.
12103         * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
12104         (write_ts_vector_tree_pointers): Adjust.
12105         * varasm.c (const_hash_1, compare_constant, copy_constant,
12106         output_constant): Adjust.
12107         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
12108         * print-tree.c (print_node): Adjust.
12109         * tree-pretty-print.c (dump_generic_node): Adjust.
12110         * tree-vect-generic.c (uniform_vector_p, vector_element,
12111         lower_vec_perm): Adjust.
12112         * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
12113         * tree-vect-slp.c (vect_get_constant_vectors,
12114         vect_transform_slp_perm_load): Adjust.
12115         * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
12116         * expmed.c (make_tree): Adjust.
12117         * config/i386/i386.c (ix86_expand_builtin): Adjust.
12118         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
12119         and implementation.
12120         (sparc_fold_builtin): Adjust.
12122 2012-03-16  Tristan Gingold  <gingold@adacore.com>
12124         * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
12125         * config/vms/vms-stdint.h: New file.
12127 2012-03-16  Tristan Gingold  <gingold@adacore.com>
12129         * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
12130         (ia64-hp-*vms*): Replaced by ...
12131         (*-*-*vms*): ... This new entry.
12133 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
12135         PR target/52568
12136         * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
12137         (ix86_expand_vec_perm_const_1): Use it.
12139         PR target/52568
12140         * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
12141         (avx2_permv4df): Remove.
12142         (avx2_permv4di): Macroize into...
12143         (avx2_perm<mode>): ... this using VI8F_256 iterator.
12144         (avx2_permv4di_1): Macroize into...
12145         (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
12147 2012-03-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
12149         * combine.c (apply_distributive_law): Do not distribute SUBREG.
12151 2012-03-15  Ira Rosen  <irar@il.ibm.com>
12152             Ulrich Weigand  <ulrich.weigand@linaro.org>
12154         * tree-vect-patterns.c (widened_name_p): Rename to ...
12155         (type_conversion_p): ... this.  Add new argument to determine
12156         if it's a promotion or demotion operation.  Check for
12157         CONVERT_EXPR_CODE_P instead of NOP_EXPR.
12158         (vect_recog_dot_prod_pattern): Call type_conversion_p instead
12159         widened_name_p.
12160         (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
12161         vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
12162         Likewise.
12163         (vect_recog_mixed_size_cond_pattern): Likewise and allow
12164         non-constant then and else clauses.
12166 2012-03-15  Ira Rosen  <irar@il.ibm.com>
12167             Ulrich Weigand  <ulrich.weigand@linaro.org>
12169         * tree-vectorizer.h (vect_pattern_recog): Add new argument.
12170         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
12171         vect_pattern_recog.
12172         * tree-vect-patterns.c (widened_name_p): Pass basic block
12173         info to vect_is_simple_use.
12174         (vect_recog_dot_prod_pattern): Fail for basic blocks.
12175         (vect_recog_widen_sum_pattern): Likewise.
12176         (vect_handle_widen_op_by_const): Support basic blocks.
12177         (vect_operation_fits_smaller_type,
12178         vect_recog_over_widening_pattern): Likewise.
12179         (vect_recog_vector_vector_shift_pattern): Support basic blocks.
12180         Update call to vect_is_simple_use.
12181         (vect_recog_mixed_size_cond_pattern): Support basic blocks.
12182         Add printing.
12183         (check_bool_pattern): Add an argument, update call to
12184         vect_is_simple_use and the recursive calls.
12185         (vect_recog_bool_pattern): Update relevant function calls.
12186         Add printing.
12187         (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
12188         (vect_pattern_recog_1): Check for reduction only in loops.
12189         (vect_pattern_recog): Add new argument.  Support basic blocks.
12190         * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
12191         info to vect_is_simple_use_1.
12192         * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
12193         (vect_slp_analyze_bb_1): Call vect_pattern_recog.
12195 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
12196             Andrew Pinski  <apinski@cavium.com>
12198         PR middle-end/52592
12199         * builtins.c (expand_builtin_int_roundingfn_2): If expanding
12200         BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
12201         calls instead of __builtin_ir{int,ound}*.
12203 2012-03-15  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12205         * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
12206         documentation.
12208 2012-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12210         * config.gcc (target_type_format_char): New. Document it. Set it for
12211         arm*-*-* .
12212         * configure.ac (gnu_unique_option): Use target_type_format_char
12213         in test.  Comment rationale.
12214         * configure: Regenerate .
12216 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
12218         PR tree-optimization/52267
12219         * tree-vrp.c (masked_increment): New function.
12220         (register_edge_assert_for_2): Derive ASSERT_EXPRs
12221         from (X & CST1) cmp CST2 tests.
12223 2012-03-15  Richard Guenther  <rguenther@suse.de>
12225         PR middle-end/52580
12226         * tree-data-ref.c (subscript_dependence_tester_1): Check
12227         all dimensions for non-conflicting access functions.
12229 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12231         PR c++/44783
12232         * doc/invoke.texi [C++ Language Options]: Document
12233         -ftemplate-backtrace-limit.
12235 2012-03-15  Tristan Gingold  <gingold@adacore.com>
12237         * c-parser.c (c_parser_parameter_declaration): Handle #pragma
12238         before a parameter.
12240 2012-03-15  Tristan Gingold  <gingold@adacore.com>
12242         * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
12243         use DW_OP_call_frame_cfa.
12245 2012-03-14  H.J. Lu  <hongjiu.lu@intel.com>
12247         PR target/50797
12248         * config/i386/i386-opts.h (pmode): New.
12250         * config/i386/i386.c (ix86_option_override_internal): Properly
12251         check and set ix86_pmode.
12253         * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
12255         * config/i386/i386.opt (maddress-mode=): New.
12257         * doc/invoke.texi: Document -maddress-mode=short|long for x86.
12259 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12261         * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
12262         (dwarf2out_do_cfi_asm): Likewise.
12263         * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
12264         handling.
12265         (add_data_member_location_attribute): Likewise.
12266         (gen_array_type_die): Likewise.
12267         (gen_subprogram_die): Likewise.
12268         (gen_producer_string): Likewise.
12269         * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
12270         Remove MIPS_DEBUGGING_INFO handling.
12271         (sdb_debug_hooks): Likewise.
12272         (sdbout_begin_block): Likewise.
12273         (sdbout_end_block): Likewise.
12274         (sdbout_begin_prologue): Likewise.
12275         (sdbout_start_source_file): Likewise.
12276         (sdbout_end_source_file): Likewise.
12277         (sdbout_init): Likewise.
12278         * system.h (MIPS_DEBUGGING_INFO): Poison.
12280 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12282         * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
12283         (alpha_file_start) [MS_STAMP]: Remove.
12285         * config/alpha/elf.h (TARGET_GAS): Remove.
12286         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
12287         * config/alpha/linux.h (TARGET_DEFAULT): Remove.
12288         * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
12289         * config/alpha/vms.h (TARGET_DEFAULT): Remove.
12290         * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
12291         (alpha*-*-freebsd*): Likewise.
12292         (alpha*-*-netbsd*): Likewise.
12293         (alpha*-*-openbsd*): Likewise.
12294         (alpha*-*-*): Remove target_cpu_default2.
12295         * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
12296         handling.
12297         * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
12298         (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
12299         * config/alpha/alpha.c (print_operand): Always assume
12300         TARGET_AS_SLASH_BEFORE_SUFFIX.
12301         * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
12302         Remove TARGET_AS_CAN_SUBTRACT_LABELS.
12303         ("*builtin_setjmp_receiver_er_1"): Remove.
12304         * config/alpha/alpha.opt (malpha-as): Remove.
12305         (mgas): Ignore.
12306         * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
12307         -malpha-as, -mgas.
12308         Remove DEC Unix reference.
12310         * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
12311         (EXTENDED_COFF): Remove.
12312         * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
12313         (EXTENDED_COFF): Don't undef.
12314         * config/alpha/alpha.c (alpha_file_start): Always assume
12315         OBJECT_FORMAT_ELF.
12316         Don't set targetm.asm_file_start_file_directive.
12317         [!OBJECT_FORMAT_ELF]: Remove.
12318         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12320         * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
12321         (DBX_DEBUGGING_INFO): Remove.
12322         (MIPS_DEBUGGING_INFO): Remove.
12323         (PREFERRED_DEBUGGING_TYPE): Remove.
12324         (DBX_OUTPUT_SOURCE_LINE): Remove.
12325         (SDB_OUTPUT_SOURCE_LINE): Remove.
12326         (DBX_CONTIN_LENGTH): Remove.
12327         (NO_DBX_FUNCTION_END): Remove.
12328         (ASM_STABS_OP): Remove.
12329         (ASM_STABN_OP): Remove.
12330         (ASM_STABD_OP): Remove.
12331         (SDB_ALLOW_FORWARD_REFERENCES): Remove.
12332         (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
12333         (PUT_SDB_DEF): Remove.
12334         (PUT_SDB_PLAIN_DEF): Remove.
12335         (PUT_SDB_TYPE): Remove.
12336         (sdb_label_count): Remove.
12337         (PUT_SDB_BLOCK_START): Remove.
12338         (PUT_SDB_BLOCK_END): Remove.
12339         (PUT_SDB_FUNCTION_START): Remove.
12340         (PUT_SDB_FUNCTION_END): Remove.
12341         (PUT_SDB_EPILOGUE_END): Remove.
12342         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
12343         (MIPS_DEBUGGING_INFO): Don't undef.
12344         (DBX_DEBUGGING_INFO): Don't undef.
12345         * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
12346         (MIPS_DEBUGGING_INFO): Don't undef.
12347         (DBX_DEBUGGING_INFO): Don't undef.
12348         * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
12349         * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
12350         handling.
12351         (alpha_start_function): Likewise.
12352         (sdb_label_count): Remove.
12353         (alpha_output_filename): Remove DBX_DEBUG handling.
12354         (alpha_file_start): Likewise.
12356 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12358         * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
12359         (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
12360         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
12361         Solaris 8 support.
12362         * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
12363         (ld_tls_support): Remove Solaris 8 references.
12364         (lwp_dir, lwp_spec): Remove support for alternate thread library.
12365         * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
12366         * configure: Regenerate.
12367         * config.in: Regenerate.
12369         * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
12370         * config/i386/sol2.h: Remove Solaris 8 references.
12372         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
12373         (i?86-*-solaris2.9): ... this.
12374         Remove Solaris 8 references.
12375         (Specific, *-*-solaris2*): Document Solaris 8 removal.
12376         Remove Solaris 8 references.
12378 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12380         * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
12381         (mips-sgi-irix6.5*): Remove.
12382         * config.host (mips-sgi-irix*): Remove.
12383         * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
12384         (set_have_as_tls): Remove *-*-irix6*.
12385         (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
12386         * configure: Regenerate.
12388         * config/mips/iris6.h: Remove.
12389         * config/mips/iris6.opt: Remove.
12390         * config/mips/t-irix6: Remove.
12392         * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
12393         (TARGET_IRIX6): Remove.
12394         (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
12395         Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
12396         * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
12397         handling.
12398         (mips_file_start): Likewise.
12399         * config/mips/mips-protos.h (irix_asm_output_align): Remove.
12401         * config/mips/driver-native.c [__sgi__]: Remove.
12402         (host_detect_local_cpu) [__sgi__]: Remove.
12404         * config/mips/gnu-user.h: Remove iris5.h reference.
12406         * config/mips/mips-modes.def: Remove IRIX 6 reference.
12407         * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
12408         * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
12409         Remove.
12411         * gcc.c (main): Move asm_debug initialization ...
12412         (asm_debug): ... here.
12414         * ginclude/stddef.h (__STDDEF_H__): Don't define.
12416         * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
12417         * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
12418         * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
12419         (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
12420         [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
12421         * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
12422         Remove.
12423         * doc/tm.texi: Regenerate.
12425         * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
12426         IRIX 6 reference.
12427         (MIPS Options, -march): Remove IRIX reference.
12428         * doc/install.texi (Binaries, SGI IRIX): Remove.
12429         (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
12430         of section.
12431         * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
12433 2012-03-14  Martin Jambor  <mjambor@suse.cz>
12435         * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
12436         when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
12437         (expand_expr_real_1): Do not handle misalignment if modifier is
12438         EXPAND_WRITE.
12440 2012-03-14  Richard Guenther  <rguenther@suse.de>
12442         PR middle-end/52584
12443         * tree-vect-generic.c (type_for_widest_vector_mode): Take
12444         element type instead of mode, use build_vector_type_for_mode
12445         instead of the langhook, build a vector of proper signedness.
12446         (expand_vector_operations_1): Adjust.
12448 2012-03-14  Richard Guenther  <rguenther@suse.de>
12450         PR middle-end/52582
12451         * gimple-fold.c (canonicalize_constructor_val): Make sure we have
12452         a cgraph node for a FUNCTION_DECL that comes from a constructor.
12453         (gimple_get_virt_method_for_binfo): Likewise.
12455 2012-03-14  Richard Guenther  <rguenther@suse.de>
12457         PR tree-optimization/52571
12458         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
12459         flag_section_anchors check ...
12460         (vect_can_force_dr_alignment_p): ... here.  Do not re-align
12461         DECL_COMMON variables.
12463 2012-03-14  Richard Guenther  <rguenther@suse.de>
12465         * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
12466         * stor-layout.c (start_bitfield_representative): New function.
12467         (finish_bitfield_representative): Likewise.
12468         (finish_bitfield_layout): Likewise.
12469         (finish_record_layout): Call finish_bitfield_layout.
12470         * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
12471         for QUAL_UNION_TYPE fields.
12472         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
12473         Stream DECL_BIT_FIELD_REPRESENTATIVE.
12474         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
12476         PR middle-end/52080
12477         PR middle-end/52097
12478         PR middle-end/48124
12479         * expr.c (get_bit_range): Unconditionally extract bitrange
12480         from DECL_BIT_FIELD_REPRESENTATIVE.
12481         (expand_assignment): Adjust call to get_bit_range.
12483 2012-03-14  Richard Guenther  <rguenther@suse.de>
12485         PR middle-end/52578
12486         * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
12487         the outermost conversion is a sign-change only.
12488         (fold_binary_loc): Disregard widening and sign-changing
12489         conversions when we determine if two variables are equal
12490         for reassociation.
12491         * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
12492         (T1)x if the outermost conversion is a sign-change only.
12494 2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
12496         Revert:
12497         2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
12499         * config/i386/predicates.md (constant_call_address_operand): Declare
12500         as special predicate.  Update all uses.
12502 2012-03-13  Jakub Jelinek  <jakub@redhat.com>
12504         PR c/52577
12505         * c-parser.c (c_parser_postfix_expression)
12506         <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
12508         * config/i386/smmintrin.h: Avoid /* within a comment.
12509         * config/i386/nmmintrin.h: Likewise.
12511 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12513         * config/i386/i386.md (xbegin): Remove constraint from expander.
12515 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12517         * config/i386/predicates.md (constant_call_address_operand): Declare
12518         as special predicate.  Update all uses.
12519         * config/i386/i386.md: Remove mode from constant_call_address_operand
12520         predicates.
12521         * config/i386/i386.c (ix86_output_call_insn): Call
12522         constant_call_address_operand with VOIDmode.
12524 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12526         * config/i386/i386.c (ix86_decompose_address): Handle subregs of
12527         AND zero extended address correctly.
12529 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12531         * config/i386/predicates.md (tls_symbolic_operand): Declare as
12532         special predicate.
12533         (tls_modbase_operand): Ditto.
12534         * config/i386/i386.md: Remove mode from tls_symbolic_operand and
12535         tls_modbase_operand predicates.
12537 2012-03-13  Martin Jambor  <mjambor@suse.cz>
12539         * expr.c (expand_assignment): Handle misaligned scalar writes to
12540         memory through top-level MEM_REFs by calling store_bit_field.
12542 2012-03-13  Richard Guenther  <rguenther@suse.de>
12544         PR middle-end/52134
12545         * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
12546         if Y is a constant multiple of 1 << CST.
12548 2012-03-13  Georg-Johann Lay  <avr@gjlay.de>
12550         PR target/52488
12551         * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
12552         offset (size) to a value the insns can deal with.
12553         (expand_epilogue): Ditto.
12555 2012-03-13  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
12557         * config/arm/neon.ml (ops): Fixup expected instructions for
12558         unsigned vector compares.
12560 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12562         * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
12563         addresses only when %reg is not in word mode.
12565 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12567         * config/microblaze/microblaze.md: Fix typo.
12568         * tree-if-conv.c: Likewise.
12569         * tree-vect-patterns.c: Likewise.
12571 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12573         * config.gcc (extra_passes): Remove.
12574         * configure.ac (extra_passes): Don't substitute.
12575         * configure: Regenerate.
12576         * Makefile.in (EXTRA_PASSES): Remove.
12577         (GCC_PASSES): Remove $(EXTRA_PASSES).
12578         (MOSTLYCLEANFILES): Likewise.
12579         (native): Likewise.
12580         (install-common): Likewise.
12582 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12584         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
12585         * config/i386/i386.c (ix86_decompose_address): Use
12586         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
12587         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
12588         thread pointer to a register.
12590 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12592         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
12593         on tls_symbolic_operand.
12594         (tls_global_dynamic_64_<mode>): Likewise.
12596 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
12598         PR other/52545
12599         * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
12600         SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
12602 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
12604         PR target/52499
12605         * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
12606         type from reg_class_t to enum reg_class.
12607         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
12609 2012-03-12  Andrew Pinski  <apinski@cavium.com>
12611         * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
12612         (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
12613         (value_replacement): Likewise.
12614         (empty_block_p): Check also if the PHIs for the block are empty.
12616 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
12618         PR target/52148
12619         * config/avr/avr.c (avr_out_movmem): Fix typo in output template
12620         for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
12621         r184615 from 2012-02-28.
12623 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12625         * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
12626         (ix86_gen_tls_local_dynamic_base_64): Likewise.
12627         (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
12628         and ix86_gen_tls_local_dynamic_base_64.
12629         (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
12630         ix86_gen_tls_local_dynamic_base_64.
12632         * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
12633         (*tls_global_dynamic_64_<mode>): This.
12634         (tls_global_dynamic_64): Renamed to ...
12635         (tls_global_dynamic_64_<mode>): This.
12636         (*tls_local_dynamic_base_64): Renamed to ...
12637         (*tls_local_dynamic_base_64_<mode>): This.
12638         (tls_local_dynamic_base_64): Renamed to ...
12639         (tls_local_dynamic_base_64_<mode>): This.
12641 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12643         * config/i386/i386.c (ix86_option_override_internal): Properly
12644         set ix86_gen_leave and ix86_gen_monitor.  Check Pmode == DImode,
12645         instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
12646         ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
12647         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
12649         * config/i386/sse.md (sse3_monitor64): Renamed to ...
12650         (sse3_monitor64_<mode>): This.
12652 2012-03-12  Tristan Gingold  <gingold@adacore.com>
12654         * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
12655         (ia64_function_arg_advance): Ditto.
12657 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12659         * config.gcc (mips*-*-openbsd*): Remove.
12660         * config/mips/openbsd.h: Remove.
12661         * config/mips/sdb.h: Remove.
12663         * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
12664         * config/mips/mips.c (sdb_label_count): Remove.
12665         (mips_debugger_offset): Remove #if 0 code.
12666         (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
12667         * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
12669 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12671         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
12672         binutils reference.
12673         (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
12674         Update binutils references.
12675         (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
12676         Update binutils reference.
12677         Update Sun as/GNU ld caveat.
12678         Document binutils largefile requirement for LTO plugin.
12679         Remove reference to alternate libpthread.
12681 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12683         * config.gcc (alpha*-dec-osf5.1*): Remove.
12684         * config.host (alpha*-dec-osf*): Remove.
12685         * configure.ac (*-*-osf*): Remove.
12686         (alpha*-dec-osf*): Remove.
12687         * configure: Regenerate.
12689         * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
12690         config/alpha/va_list.h, config/alpha/x-osf: Remove.
12692         * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
12693         * config/alpha/alpha.c (struct machine_function): Update comment.
12694         (alpha_start_function): Remove Tru64 UNIX as handling for
12695         max_frame_size.
12696         * config/alpha/alpha.md ("exception_receiver"): Remove
12697         TARGET_LD_BUGGY_LDGP.
12698         ("*exception_receiver_2"): Likewise.
12699         * except.c (finish_eh_generation): Remove Tru64 reference.
12700         * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
12701         * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
12702         * target.def (handle_pragma_extern_prefix): Remove.
12704         * Makefile.in (mips-tfile.o-warn): Remove.
12705         (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
12706         (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
12707         * mips-tdump.c, mips-tfile.c: Remove.
12709         * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
12710         extern_prefix.
12711         * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
12712         (Specific, alpha*-dec-osf5.1): Note removal.
12713         * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
12714         Remove.
12715         * doc/tm.texi: Regenerate.
12716         * doc/trouble.texi (Cross-Compiler Problems): Remove.
12718 2012-03-12  Richard Guenther  <rguenther@suse.de>
12720         * config/arm/arm.c (neon_dereference_pointer): Do not call
12721         covert during RTL expansion.
12723 2012-03-12  Tristan Gingold  <gingold@adacore.com>
12725         * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
12726         Options.  Mention -mpointer-size.
12728 2012-03-12  Richard Guenther  <rguenther@suse.de>
12730         * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
12731         build_nonstandard_integer_type.
12733 2012-03-12  Richard Guenther  <rguenther@suse.de>
12735         * tree.c (signed_or_unsigned_type_for): Use
12736         build_nonstandard_integer_type.
12737         (signed_type_for): Adjust documentation.
12738         (unsigned_type_for): Likewise.
12739         * tree-pretty-print.c (dump_generic_node): Use standard names
12740         for non-standard integer types if available.
12742 2012-03-12  Tristan Gingold  <gingold@adacore.com>
12744         * config/vms/vms.opt: Add vms-opts.h header.
12745         (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
12746         target mask.
12747         (-mvms-return-codes): Document.
12748         (-mpointer-size): New option.
12749         (vms_pointer_size): Add enumeration.
12750         * config/vms/vms-opts.h: New file.
12751         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
12752         __INITIAL_POINTER_SIZE.
12753         (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
12754         (C_COMMON_OVERRIDE_OPTIONS): Define.
12755         (DWARF2_ADDR_SIZE): Define.
12756         * config/vms/vms.c (vms_patch_builtins): Adjust condition.
12757         * config/vms/vms-protos.h (vms_c_common_override_options):
12758         New prototype.
12759         * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
12760         if -mno-pointer-size.
12761         (vms_c_common_override_options): New function.
12762         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
12763         * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
12764         (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
12765         and flag_vms_pointer_size.
12766         (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
12767         * config.gcc (*-*-*vms*): Define xm_file.
12768         (alpha*-dec-*vms*): Do not define xm_file.
12769         (alpha64-dec-*vms*): Remove.
12770         (ia64-hp-*vms*): Do not define xm_file.  Simplify tm_file
12771         and tmake_file.
12773 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
12775         PR tree-optimization/51721
12776         * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
12777         if (int) unsvar cmp CST.
12779 2012-03-12  Richard Guenther  <rguenther@suse.de>
12781         * tree-sra.c (create_access_replacement): Only rename the replacement
12782         if we can rewrite it into SSA form.  Properly mark register typed
12783         replacements that we cannot rewrite with TREE_ADDRESSABLE.
12784         * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
12785         for aggregate or BLKmode results.
12787 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
12789         PR tree-optimization/52533
12790         * tree-vrp.c (register_edge_assert_for_2): Use double_int
12791         type for mask, only handle shifts by non-zero in-range
12792         shift count, for LE_EXPR and GT_EXPR if new_val is
12793         maximum, don't add the assertion.
12795 2012-02-12  Kirill Yukhin  <kirill.yukhin@intel.com>
12797         * doc/invoke.texi: Document -mrtm option.
12798         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
12799         (OPTION_MASK_ISA_RTM_UNSET): Ditto.
12800         (ix86_handle_option): Handle OPT_mrtm.
12801         * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
12802         xtestintrin.h.
12803         (x86_64-*-*): Ditto.
12804         * i386-builtin-types.def (INT_FTYPE_VOID): New.
12805         * config/i386/i386-c.c (ix86_target_macros_internal): Define
12806         __RTM__ if needed.
12807         (ix86_target_string): Define -mrtm option.
12808         (PTA_RTM): New.
12809         (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
12810         Handle new option.
12811         (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
12812         (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
12813         IX86_BUILTIN_XTEST.
12814         (bdesc_special_args): Ditto.
12815         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
12816         (ix86_expand_special_args_builtin): Handle new built-in type.
12817         (ix86_expand_builtin): Handle XABORT instruction.
12818         * config/i386/i386.h (TARGET_RTM): New.
12819         * config/i386/i386.md (UNSPECV_XBEGIN): New.
12820         (UNSPECV_XEND): Ditto.
12821         (UNSPECV_XABORT): Ditto.
12822         (UNSPECV_XTEST): Ditto.
12823         (xbegin): Ditto.
12824         (xbegin_1): Ditto.
12825         (xend): Ditto.
12826         (xabort): Ditto
12827         (xtest): Ditto.
12828         (xtest_1): Ditto.
12829         * config/i386/i386.opt (mrtm): New.
12830         * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
12831         * config/i386/rtmintrin.h: New header.
12832         * config/i386/xtestintrin.h: Ditto.
12834 2012-03-12  Tristan Gingold  <gingold@adacore.com>
12836         * ginclude/stddef.h: Adjust previous patch.
12837         Use __VMS__ instead of VMS.
12839 2012-03-12  Uros Bizjak  <ubizjak@gmail.com>
12841         * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
12842         Also convert sequences with CC setting arithmetic instruction.
12844 2012-03-11  Sandra Loosemore  <sandra@codesourcery.com>
12846         * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
12847         from C Language Options to Preprocessor Options.
12848         (C Dialect Options): Move -no-integrated-cpp documentation
12849         from here...
12850         (Preprocessor Options): ...to here.  Rewrite the description
12851         so it makes more sense, and remove discussion of merging front ends.
12853 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12855         * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
12856         needed for loop.
12857         (ix86_expand_setmem): Likewise.
12859 2012-03-11  Uros Bizjak  <ubizjak@gmail.com>
12861         * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
12862         convert_to_mode.
12864 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12866         * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
12867         ptr_mode == SImode.  Replace DImode with Pmode or ptr_mode.
12869 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12871         * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
12873 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12875         * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
12876         TARGET_64BIT.
12878 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12879             Uros Bizjak  <ubizjak@gmail.com>
12881         * config/i386/predicates.md (call_insn_operand): Allow
12882         constant_call_address_operand in Pmode only.
12883         (sibcall_insn_operand): Ditto.
12884         * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
12885         (*call_vzeroupper): Ditto.
12886         (*sibcall): Ditto.
12887         (*sibcall_vzeroupper): Ditto.
12888         (*call_value): Ditto.
12889         (*call_value_vzeroupper): Ditto.
12890         (*sibcall_value): Ditto.
12891         (*sibcall_value_vzeroupper): Ditto.
12892         (*indirect_jump): Ditto.
12893         (*tablejump_1): Ditto.
12894         (indirect_jump): Convert memory address to word mode for TARGET_X32.
12895         (tablejump): Ditto.
12896         * config/i386/i386.c (ix86_expand_call): Convert indirect operands
12897         to word mode.
12899 2012-03-11  Oleg Endo  <olegendo@gcc.gnu.org>
12901         PR target/51244
12902         * config/sh/sh.md (movnegt): Expand into respective insns immediately.
12903         Use movrt_negc instead of negc pattern for non-SH2A.
12904         (*movnegt): Remove.
12905         (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
12907 2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
12909         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
12910         if Pmode != word_mode.
12911         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
12912         Pmode == SImode for TARGET_X32.
12914         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
12915         (tls_initial_exec_x32): Likewise.
12917 2012-03-10  Chung-Lin Tang  <cltang@codesourcery.com>
12919         PR rtl-optimization/52528
12920         * combine.c (can_combine_p): Add setting of subst_low_luid
12921         before call to expand_field_assignment().
12923 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
12925         * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
12926         and related program names.
12928 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
12930         * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
12932 2012-03-09  Uros Bizjak  <ubizjak@gmail.com>
12934         PR target/52530
12935         * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
12936         (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
12937         to set code to 'q'.
12938         * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
12939         (*movdi_internal_rex64): Use %E operand modifier for lea.
12940         (*movsi_internal): Ditto.
12941         (*lea_1): Ditto.
12942         (*lea<mode>_2): Ditto.
12943         (*lea_{3,4,5,6}_zext): Ditto.
12944         (*tls_global_dynamic_32_gnu): Ditto.
12945         (*tls_global_dynamic_64): Ditto.
12946         (*tls_dynamic_gnu2_lea_32): Ditto.
12947         (*tls_dynamic_gnu2_lea_64): Ditto.
12948         (pro_epilogue_adjust_stack_<mode>_add): Ditto.
12950 2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
12952         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
12953         redefine to be NULL if the current bit-size is different from the
12954         configured bit-size.
12956         * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
12957         cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
12958         set the default tuning.  Add asserts to make sure the cpu and tune
12959         indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
12960         test whether the index is set, instead of > 0.
12961         (rs6000_file_start): Do not reset the default cpu if the current
12962         bit-size is different from the configured bit-size.
12964 2012-03-09  Tristan Gingold  <gingold@adacore.com>
12966         * config/vms/vms-crtlmap.map: Add comments.
12967         Add entries needed to build Ada RTS.
12969 2012-03-09  Tristan Gingold  <gingold@adacore.com>
12971         * ginclude/stddef.h: Do not define __size_t on VMS.
12973 2012-03-09  Tristan Gingold  <gingold@adacore.com>
12975         * c-tree.h (c_default_pointer_mode): New variable.
12976         * c-decl.c (c_default_pointer_mode): New variable.
12977         (c_build_pointer_type): New function.
12978         (grokdeclarator): Call c_build_pointer_type instead
12979         of build_pointer_type.
12981         * config/vms/vms-c.c: Include c-tree.h
12982         (saved_pointer_mode): New variable.
12983         (handle_pragma_pointer_size): New function.
12984         (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
12985         (vms_c_register_pragma): Register __pointer_size and
12986         __required_pointer_size pragmas.
12988 2012-03-09  Tristan Gingold  <gingold@adacore.com>
12990         * config/vms/vms-c.c (vms_construct_include_filename): New function.
12991         (vms_c_register_includes): Reference it.
12993 2012-03-09  Andrew Pinski  <apinski@cavium.com>
12995         PR middle-end/51988
12996         * tree-ssa-phiopt.c: Include tree-pretty-print.h for
12997         print_generic_expr.
12998         (tree_ssa_phiopt_worker): Go through all the PHIs for
12999         value_replacement instead of just the singleton one.
13000         (value_replacement): Change return type to int.  Return 0 instead of
13001         false.
13002         Allow the middle basic block to contain more than just the defining
13003         statement.
13004         Handle non empty middle basic blocks.
13005         * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
13007 2012-03-09  Jiangning Liu  <jiangning.liu@arm.com>
13009         * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
13010         array reference and component reference.
13011         (analyze_scalar_evolution_for_address_of): New.
13013 2012-03-08  Jie Zhang  <jzhang918@gmail.com>
13015         PR target/49862
13016         * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
13017         (hwloop_pattern_reg): Fix set but not used warning.
13018         (bfin_reorg_loops): Remove unused parameter.
13019         (bfin_reorg): Update use of bfin_reorg_loops.
13021 2012-03-08  H.J. Lu  <hongjiu.lu@intel.com>
13023         * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
13024         with integer parameters in registers.
13025         (gen_push): Push register in word_mode instead of Pmode.
13026         (ix86_emit_save_regs): Likewise.
13027         (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
13028         (gen_pop): Pop register in word_mode instead of Pmode.
13029         (ix86_emit_restore_regs_using_pop): Likewise.
13030         (ix86_expand_prologue): Replace Pmode with word_mode for push
13031         immediate.  Use ix86_gen_pro_epilogue_adjust_stack.  Save and
13032         restore RAX and R10 in word_mode.
13033         (ix86_emit_restore_regs_using_mov): Restore integer registers
13034         in word_mode.
13035         (ix86_expand_split_stack_prologue): Save R10_REG and restore in
13036         word_mode.
13037         (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
13038         (ix86_split_long_move): Likewise.
13040         * config/i386/i386.md (W): New.
13041         (*push<mode>2_prologue): Replace :P with :W.
13042         (*pop<mode>1): Likewise.
13043         (*pop<mode>1_epilogue): Likewise.
13044         (push/pop peephole2): Use word_mode scratch registers.
13046 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
13048         * config/i386/predicates.md (indirect_branch_operand): Simplify.
13050 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
13052         * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
13053         for constants in [-63,63].
13055 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
13057         PR target/52530
13058         Revert:
13059         2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13061         * config/i386/i386.c (ix86_print_operand_address): Only handle
13062         zero-extended DImode addresses.
13064 2012-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13066         * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
13067         * configure: Regenerate.
13069 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
13071         PR target/52496
13072         * config/avr/avr.c (avr_mem_clobber): New static function.
13073         (avr_expand_delay_cycles): Add memory clobber operand to
13074         delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
13075         * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
13076         (enable_interrupt, disable_interrupt): New expander.
13077         (nopv, sleep, wdr): New expanders.
13078         (delay_cycles_1): Add memory clobber.
13079         (delay_cycles_2): Add memory clobber.
13080         (delay_cycles_3): Add memory clobber.
13081         (delay_cycles_4): Add memory clobber.
13082         (cli_sei): New insn from former "enable_interrupt",
13083         "disable_interrupt" with memory clobber.
13084         (*wdt): New insn from former "wdt" with memory clobber.
13085         (*nopv): Similar, but for "nopv".
13086         (*sleep): Similar, but for "sleep".
13088 2012-03-07  Oleg Endo  <olegendo@gcc.gnu.org>
13089             Kaz Kojima  <kkojima@gcc.gnu.org>
13091         PR target/52503
13092         * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
13093         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
13094         (SUBTARGET_OVERRIDE_OPTIONS): Define.
13096 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
13098         * config/i386/predicates.md (x86_64_zext_general_operand): New.
13099         * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
13100         predicate to x86_64_zext_general_operand.  Accept "Z" constraint.
13102 2012-03-07  Walter Lee  <walt@tilera.com>
13104         * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
13105         REG_CFA_* notes for the stack pointer.
13106         (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
13107         EH_RETURN_STACKADJ_RTX.
13108         * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
13109         generate REG_CFA_* notes for the stack pointer.
13110         (tilepro_expand_epilogue): Restore stack pointer by adjusting it
13111         by EH_RETURN_STACKADJ_RTX.
13113 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13115         * doc/invoke.texi (AVR Built-in Macros): Correct condition for
13116         when __AVR_3_BYTE_PC__ is defined.
13118 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
13120         * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
13121         (ix86_print_operand): Handle '^'.
13122         * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
13123         using P mode iterator.  Add %^ to asm template to conditionally emit
13124         addr32 prefix.
13125         (*rep_movdi_rex64): Ditto.
13126         (*strsetdi_rex_1): Ditto.
13127         (*rep_stosdi_rex64): Ditto.
13128         (*strmov{si,hi,qi}_1): Add %^ to asm template to
13129         conditionally emit addr32 prefix.
13130         (*rep_mov{si,qi}): Ditto.
13131         (*strset{si,hi,qi}): Ditto.
13132         (*rep_stos{si,qi}): Ditto.
13133         (*cmpstrnqi_nz_1): Ditto.
13134         (*cmpstrnqi_1): Ditto.
13135         (*strlenqi_1): Ditto.
13137 2012-03-07  H.J. Lu  <hongjiu.lu@intel.com>
13139         * config/i386/i386.c (function_value_64): Return pointers in
13140         word_mode instead of Pmode.
13141         (ix86_promote_function_mode): Likewise.
13143 2012-03-07  Richard Guenther  <rguenther@suse.de>
13145         * coverage.c (get_gcov_type): Use type_for_mode.
13146         (get_gcov_unsigned_t): Likewise.
13147         * expr.c (store_constructor): Use type_for_mode.
13148         (try_casesi): Likewise.
13149         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
13150         (add_standard_iv_candidates): Use standard type trees.
13151         * dojump.c (do_jump): Remove dead code.
13153 2012-03-07  Richard Guenther  <rguenther@suse.de>
13155         * c-typeck.c (pointer_diff): Use c_common_type_for_size.
13157 2012-03-07  Richard Guenther  <rguenther@suse.de>
13159         * convert.c (strip_float_extensions): Move ...
13160         * tree.c (strip_float_extensions): ... here.
13162 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13164         PR target/52484
13165         * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
13167 2012-03-07  Richard Guenther  <rguenther@suse.de>
13169         * omp-low.c (extract_omp_for_data): Use signed_type_for.
13170         (expand_omp_for_generic): Likewise.
13171         (expand_omp_for_static_nochunk): Likewise.
13172         (expand_omp_for_static_chunk): Likewise.
13173         * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
13174         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
13175         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
13176         Use unsigned_type_for.
13177         (vect_create_cond_for_align_checks): Use signed_type_for.
13179 2012-03-07  Andrey Belevantsev  <abel@ispras.ru>
13181         PR rtl-optimization/52203
13182         * sel-sched.c (estimate_insn_cost): New parameter pempty.  Adjust
13183         all callers to pass NULL except ...
13184         (reset_sched_cycles_in_current_ebb): ... here, save the value
13185         in new variable 'empty'.  Increase issue_rate only for
13186         non-empty insns.
13188 2012-03-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
13190         PR target/51417
13191         * Makefile.in: Let install-gcc-ar depend on installdirs,
13192         gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
13193         Don't double canonicalize if cross-compiling.
13195 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13197         PR target/52506
13198         * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
13199         to: RAMPZ, RAMPY, RAMPX, RAMPD.
13200         (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
13202 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13204         PR target/52505
13205         * config/avr/avr.c (avr_out_xload): Don't read unintentionally
13206         from RAM.
13207         * config/avr/avr.md (xload_8): Adjust insn length.
13209 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13211         PR target/52461
13212         * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
13213         if RAMPZ affects reading from RAM.
13215 2012-03-07  Richard Guenther  <rguenther@suse.de>
13217         PR pch/52518
13218         PR pch/38987
13219         * doc/invoke.texi (Precompiled Headers): Remove sentence that
13220         suggests you can include PCHs from inside another header.
13222 2012-03-07  Richard Sandiford  <rdsandiford@googlemail.com>
13224         PR middle-end/52515
13225         * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
13227 2012-03-07  Kai Tietz  <ktietz@redhat.com>
13229         * doc/invoke.texi (fwritable-relocated-rdata): Document
13230         new Cygwin/MinGW target option.
13231         * config/i386/winnt.c (i386_pe_unique_section): Ignore
13232         reloc if flag -fwritable-relocated-rdata is not set.
13233         (i386_pe_section_type_flags): Likewise.
13234         * config/i386/cygming.opt (fwritable-relocated-rdata):
13235         Add new flag variable flag_writable_rel_rdata.
13237 2012-03-07  Richard Guenther  <rguenther@suse.de>
13239         * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
13240         precision against gimple constraints.
13242 2012-03-06  Richard Sandiford  <rdsandiford@googlemail.com>
13244         PR middle-end/52372
13245         * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
13246         variables.
13247         (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
13248         * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
13249         variables.
13250         (init_emit_regs): Move associated initialization to...
13251         (init_emit_once): ...here.
13253 2012-03-06  Richard Henderson  <rth@redhat.com>
13255         * config/m68k/m68k.h (ISA_HAS_TAS): New.
13256         * config/m68k/sync.md (atomic_test_and_set): Use it.
13257         (atomic_test_and_set_1): Likewise.
13259 2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
13261         PR target/50310
13262         * config/rs6000/vector.md (vector_uneq<mode>): Add support for
13263         UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
13264         (vector_ltgt<mode>): Likewise.
13265         (vector_ordered<mode>): Likewise.
13266         (vector_unordered<mode>): Likewise.
13267         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
13269 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
13271         * trans-mem.c: New typedef for tm_region_p.
13272         Define vector types for tm_region_p.
13273         (tm_region_init): Replace region_worklist to a vector called
13274         bb_regions.
13276 2012-03-06  Richard Guenther  <rguenther@suse.de>
13278         * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
13279         MEM_REF with constant pointer operand.
13281 2012-03-06  Richard Guenther  <rguenther@suse.de>
13283         PR middle-end/52493
13284         * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
13286 2012-03-06  Tristan Gingold  <gingold@adacore.com>
13288         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
13289         (external_model_kind): Improve documentation.
13290         (vms_pragma_extern_model): Handle relaxed_redef.
13291         (vms_c_register_pragma): Allow expansion for nomember_alignment.
13293 2012-03-06  Georg-Johann Lay  <avr@gjlay.de>
13295         * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
13296         Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
13297         Some more notes on EIND usage and reorder EIND subsection.
13299 2012-03-06  Tristan Gingold  <gingold@adacore.com>
13301         * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
13302         * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
13304 2012-03-06  Tristan Gingold  <gingold@adacore.com>
13306         * config/vms/t-vmsnative (version): Define.
13307         * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
13309 2012-03-06  Andrey Belevantsev  <abel@ispras.ru>
13311         PR rtl-optimization/52250
13312         * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
13313         to put note list into.  Unconditionally call move_bb_info.
13314         (move_bb_info): Do not assert the blocks being in the same region,
13315         just drop the note list if they are not.
13317 2012-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
13319         PR target/51244
13320         * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
13321         and use unified expansion logic.
13322         * config/sh/sh.md (xorsi3_movrt): Rename to movrt.  Move
13323         closer to the existing movt insn.
13324         (negc): Rename insn to *negc.  Add new expander.
13325         (movnegt): Use xor pattern for T bit negation.  Reserve helper
13326         constant for negc pattern.
13327         (*movnegt): New insn and splitter.
13329 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
13331         * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
13332         PLUS_EXPR.
13334 2012-03-05  Richard Henderson  <rth@redhat.com>
13336         * genemit.c (main): Include "target.h" in insn-emit.c.
13337         * Makefile.in (insn-emit.o): Depend on TARGET_H.
13338         * config/sh/sync.md (atomic_test_and_set): Reference
13339         targetm.atomic_test_and_set_trueval instead of
13340         TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
13342 2012-03-05  Joern Rennecke  <joern.rennecke@embecosm.com>
13344         * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
13345         Make static.
13347 2012-03-05  Steven Bosscher  <steven@gcc.gnu.org>
13349         * langhooks.c (add_builtin_type): New function.
13350         * langhooks.h (add_builtin_type): Export it.
13351         * config/mep/mep.c (mep_init_builtins): Use it.
13352         * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
13354 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
13356         PR debug/51902
13357         * tree.h (BLOCK_SAME_RANGE): Define.
13358         * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
13359         if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
13360         Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
13361         isn't equal to supercontext fragment's fragment chain.
13362         Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
13363         fragment origin.
13364         (blocks_nreverse_all): Likewise.
13365         (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits.  Set
13366         BLOCK_SUPERCONTEXT to supercontext fragment instead of
13367         supercontext fragment's fragment origin.
13368         * dwarf2out.c (add_high_low_attributes): If stmt has the same
13369         range as its parent (or parents thereof etc.), use the parent's
13370         DW_AT_ranges value instead of creating a new .debug_ranges range.
13372 2012-03-05  Richard Henderson  <rth@redhat.com>
13374         PR tree-opt/52242
13375         Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
13376         * omp-low.c (expand_omp_atomic): Assume anything aligned to
13377         BIGGEST_ALIGNMENT is aligned.
13379 2012-03-05  Richard Henderson  <rth@redhat.com>
13381         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
13382         * config/sh/sh.c: ... here.
13384 2012-03-05  Richard Henderson  <rth@redhat.com>
13386         PR target/52481
13387         * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
13388         instead of calling negqi2 directly.
13390 2012-03-05  Aldy Hernandez  <aldyh@redhat.com>
13392         PR middle-end/52463
13393         * trans-mem.c (tm_region_init): Use last_basic_block.
13395 2012-03-05  Oleg Endo  <olegendo@gcc.gnu.org>
13397         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
13398         * config/sh/sync.md (atomic_test_and_set): New expander.
13399         (tasb, atomic_test_and_set_soft): New insns.
13400         * config/sh/sh.opt (menable-tas): New option.
13401         * doc/invoke.texi (SH Options): Document it.
13403 2012-03-05  Richard Guenther  <rguenther@suse.de>
13405         * cfgloop.c (verify_loop_structure): Verify dominators before
13406         using them.
13407         * graphite-clast-to-gimple.c (graphite_verify): Do not verify
13408         dominators from here.
13409         * graphite-scop-detection.c (create_sese_edges): Likewise.
13410         * loop-doloop.c (doloop_optimize_loops): Likewise.
13411         * loop-init.c (loop_optimizer_init): Likewise.
13412         * loop-unroll.c (unroll_and_peel_loops): Likewise.
13413         * loop-unswitch.c (unswitch_loops): Likewise.
13414         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
13415         * tree-parloops.c (parallelize_loops): Likewise.  Verify
13416         only when checking is enabled.
13417         * tree-loop-distribution.c (tree_loop_distribution): Likewise.
13419 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
13421         * genautomata.c (parse_automata_opt): New static function.
13422         (initiate_automaton_gen): Remove all option handling code.  Remove
13423         argc argument.  All callers changed.
13424         (main): Call init_rtx_reader_args_cb with the new function as argument.
13426 2012-03-05  Richard Guenther  <rguenther@suse.de>
13428         * cfgexpand.c (gimple_expand_cfg): Free dominator info.
13429         * tree-if-conv.c (combine_blocks): Free post-dominator info
13430         after breaking it.
13431         * tree-parloops.c (create_parallel_loop): Free and re-compute
13432         dominator info after breaking it.
13434 2012-03-05  Richard Guenther  <rguenther@suse.de>
13436         PR middle-end/52353
13437         * optabs.h (trapv_unoptab_p): New function.
13438         (trapv_binoptab_p): Likewise.
13439         * optabs.c (expand_binop): Use emit_libcall_block_1 with
13440         a proper equiv_may_trap argument.
13441         (expand_unop): Likewise.
13442         (emit_libcall_block_1): Take extra argument whether the
13443         instruction may trap.  Renamed from ...
13444         (emit_libcall_block): ... this.  New wrapper.
13446 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
13448         PR tree-optimization/51721
13449         * tree-vrp.c (register_edge_assert_for_2): If comparing
13450         lhs of right shift by constant with an integer constant,
13451         add ASSERT_EXPRs for the rhs1 of the right shift.
13453         * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
13455 2012-03-05  Richard Guenther  <rguenther@suse.de>
13457         * tree.c (integer_zerop): Handle VECTOR_CSTs.
13458         (integer_onep): Likewise.
13459         (integer_all_onesp): Likewise.
13461 2012-03-05  Georg-Johann Lay  <avr@gjlay.de>
13463         * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
13465 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13467         * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
13468         instead of TARGET_64BIT.
13470 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13472         * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
13473         adjust_stack_insn.
13475 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13477         * config/i386/i386.c (ix86_print_operand_address): Only handle
13478         zero-extended DImode addresses.
13480 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
13482         * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
13483         taken and cputaken as bool.
13485 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
13487         * config/i386/constraints.md (Ya): New internal constraint.
13488         * config/i386/i386.md (zero_extendsidi2): Remove expansion.
13489         (*zero_extendsidi2_rex64): Add x,x alternative.
13490         (*zero_extendsidi2): Ditto.  Add o,0 alternative.
13491         Remove flags reg clobber.  Adjust corresponding splits.
13492         (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
13493         zero_extendqisi2 expanders using SWI12 mode iterator.
13494         (zero_extend<mode>si2_and): Macroize insn from
13495         zero_extendhisi2_and and zero_extendqisi2_and.  Merge corresponding
13496         splitters.
13497         (*zero_extend<mode>si2):  Macroize insn from
13498         *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
13499         (*zero_extend*2_movzbl_and): Remove insn patterns.
13500         (zero_extendqihi2_and): Merge corresponding splitter.
13501         (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
13502         (*zero_extend*2_movzbl_and): Remove insn patterns.
13503         (*anddi_1): Split TYPE_IMOVX instructions.
13504         (*andsi_1): Use Ya for alternative 2.  Split TYPE_IMOVX instructions.
13505         (*andhi_1): Ditto.
13506         (and->zext splitter): Add splitter pattern.
13507         (zero extend with andsi3 splitter): Adjust zero_extend pattern.
13509 2012-03-04  Sandra Loosemore  <sandra@codesourcery.com>
13511         * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
13512         x86-specific text.
13513         (Debugging Options): Likewise.
13514         (Optimize Options): Likewise.
13515         (i386 and x86-64 Options): Discuss -march before -mtune, consistently
13516         with other architectures.  Use official processor names with correct
13517         spelling/capitalization.  Fix formatting and grammar issues.
13518         (i386 and x86-64 Windows Options): Similar cleanup here.
13520 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13522         * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
13524 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13526         * config/sh/sh.c (sh_dwarf_register_span): Don't apply
13527         DBX_REGISTER_NUMBER.
13529 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13531         * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
13532         operand is CONST_INT.  Take COSTS_N_INSNS into account.
13533         (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
13534         of shiftcosts.
13536 2012-03-02  Richard Henderson  <rth@redhat.com>
13538         * optabs.c (expand_atomic_test_and_set): Honor
13539         atomic_test_and_set_trueval even when atomic_test_and_set
13540         optab is not in use.
13542 2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>
13544         PR target/48596
13545         PR target/48806
13546         * config/sh/sh.c (sh_register_move_cost): Increase cost between
13547         GENERAL_REGS and FP_REGS for SImode.
13549 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
13551         PR target/49486
13552         * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
13553         (absdi2): New expander.
13554         (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
13556 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
13558         * config/sh/sync.md (atomic_exchange<mode>): New expander.
13559         (atomic_exchange<mode>_soft): New insn.
13561 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
13563         * config/sh/sync.md: Update copyright notice dates.
13564         (atomic_compare_and_swap<mode>): Use SImode for return value instead
13565         of QImode.
13566         (atomic_compare_and_swap<mode>_soft): Likewise.
13568 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
13570         PR target/31640
13571         * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
13572         * config/sh/sh.c: Update copyright notice dates.
13573         (sh_loop_align): Add logic from LOOP_ALIGN.  Don't disable loop
13574         alignment for TARGET_HARD_SH4.
13575         (sh_option_override): Reduce default function alignment.  Set
13576         loop alignment to 4 bytes when not optimizing for size.
13578 2012-03-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
13580         PR middle-end/50335
13581         * doc/invoke.texi (floop-flatten): Remove.
13582         * toplev.c (process_options): Remove references to flag_loop_flatten.
13583         * tree-ssa-loop.c (gate_graphite_transform): Same.
13584         * common.opt (floop-flatten): Obsolete.
13585         * graphite-poly.c (apply_poly_transforms): Remove reference to
13586         flag_loop_flatten.
13587         * Makefile.in (graphite-flattening.o): Remove.
13588         * graphite-flattening.c: Remove.
13590 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
13592         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
13593         having mode compatible with the mode of previous compare.  Substitute
13594         compare mode of previous compare with the mode, compatible
13595         with eliminated and previous compare.
13597 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
13599         * config/rs6000/dfp.md (floatdidd2): New define_insn.
13601 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
13603         * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
13604         compatible with CCGOCmode and CCGCmode.
13606 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
13608         * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
13610 2012-03-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
13612         * config/arm/arm.c (arm_sat_operator_match): New function.
13613         * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
13614         * config/arm/arm.md ("insn" attribute): Add "sat" value.
13615         ("SAT", "SATrev"): New code iterators.
13616         ("SATlo", "SAThi"): New code iterator attributes.
13617         ("*satsi_<SAT:code>"): New pattern.
13618         ("*satsi_<SAT:code>_shift"): Likewise.
13619         * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
13620         and "shift" attributes.
13621         ("arm_usatsihi"): Add "insn" attribute.
13622         * config/arm/predicates.md (sat_shift_operator): Allow multiplication
13623         by powers of two.  Do not allow shift by 32.
13625 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
13627         PR target/46716
13628         * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
13629         to pass the argument in the register of "natural" mode.
13631 2012-03-02  Richard Guenther  <rguenther@suse.de>
13633         PR tree-optimization/52406
13634         * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
13635         (struct indices): Add unconstrained_base member.
13636         (struct dr_alias): Remove unused vops member.
13637         (DR_UNCONSTRAINED_BASE): New define.
13638         * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
13639         add indices to allow their disambiguation.  Make DR_BASE_OBJECT
13640         be an artificial access that covers the whole indexed object,
13641         or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
13642         plain decl base-objects to their MEM_REF variant.
13643         (dr_may_alias_p): When the base-object of either data reference
13644         has unknown size use only points-to information.
13645         (compute_affine_dependence): Make dumps easier to read and
13646         more verbose.
13647         * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
13648         DR_REF when looking for packed references.
13649         (vect_supportable_dr_alignment): Likewise.
13651 2012-03-02  Greta Yorsh  <Greta.Yorsh@arm.com>
13653         * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
13654         Improve conditions for peepholes of loads followed by commutative
13655         operators.
13656         * config/arm/ldmstm.md: Regenerated.
13658 2012-03-02  Richard Guenther  <rguenther@suse.de>
13660         * BASE-VER: Set to 4.8.0.
13662 2012-03-01  Richard Earnshaw  <rearnsha@arm.com>
13664         * config.gcc (obsolete): Add all ARM targets using the FPA.
13665         (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
13666         * doc/install.texi: Avoid references to obsolete ARM ports.
13668 2012-03-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13670         * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
13672 2012-03-01  Jeremy Bennett  <jeremy.bennett@embecosm.com>
13673             Joern Rennecke  <joern.rennecke@embecosm.com>
13675         * doc/extend.texi: Expand and update information on interrupt
13676         attribute for Epiphany.
13678 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
13680         * config/sh/sh-protos.h: Update copyright notice dates.
13681         * config/sh/sh.h: Likewise.
13682         * config/sh/sh.md: Likewise.
13683         * config/sh/constraints.md: Likewise.
13684         * config/sh/predicates.md: Likewise.
13686 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
13688         * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
13689         * config/sh/sh.c (tertiary_reload_operand): Likewise.
13691 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
13693         * config/sh/constraints.md: Fix comment typo.
13695 2012-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13697         PR target/52408
13698         * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
13699         unsigned HOST_WIDE_INT.
13700         (zvdep_imm64): Likewise.
13701         (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
13702         (vdepi_and): Likewise.
13703         Likewise for unamed 64-bit patterns.
13704         * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
13706 2012-03-01  Alexandre Oliva  <aoliva@redhat.com>
13708         PR debug/52001
13709         PR rtl-optimization/52417
13710         * cselib.c (cselib_any_perm_equivs): New variable.
13711         (cselib_reset_table): Check that it's not set when not
13712         preserving constants.
13713         (cselib_add_permanent_equiv): Set it.
13714         (cselib_have_permanent_equivalences): New.
13715         (cselib_init, cselib_finish): Reset it.
13716         * cselib.h (cselib_have_permanent_equivalences): Declare.
13717         * alias.c (get_addr): Restore earlier behavior when there
13718         aren't permanent equivalences.
13720 2012-03-01  Steven Bosscher  <steven@gcc.gnu.org>
13722         * config/mn10300/mn10300-modes.def: Fix copyright notice.
13723         * config/v850/v850-modes.def: Fix copyright notice.
13725 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
13727         * doc/extend.texi (AVR Built-in Functions): Document
13728         __builtin_avr_flash_segment.
13730         * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
13731         * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
13732         (*split.flash_segment): New insn-and-split.
13733         * config/avr/avr.c (avr_init_builtins): Add local variables:
13734         const_memx_void_node, const_memx_ptr_type_node,
13735         char_ftype_const_memx_ptr.
13737 2012-03-01  Jakub Jelinek  <jakub@redhat.com>
13739         PR tree-optimization/52445
13740         * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
13741         add ssa_name_ver, offset and size fields and change store field
13742         to bool.
13743         (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
13744         (add_or_mark_expr): Likewise.  Only consider previous stores
13745         with the same size and offset.
13746         (nt_init_block): Only look at gimple_assign_single_p stmts,
13747         doesn't look at rhs2.
13749 2012-03-01  Richard Guenther  <rguenther@suse.de>
13751         PR middle-end/52443
13752         * tree-cfg.c (verify_gimple_assign_unary): Allow any
13753         conversions from integral types to pointer types.
13755 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
13757         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
13758         defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
13759         unintentionally removed in r184616.
13761 2012-03-01  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13763         * doc/invoke.texi: Document AMD bdver2 and remove mentioning
13764         3DNow from bdver1.
13766 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
13767             Uros Bizjak  <ubizjak@gmail.com>
13769         PR target/52437
13770         * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
13771         alternatives, add "e" constraint to the new last alternative
13772         and ! to last 3 alternatives.
13774 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13776         * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
13777         DW_AT_artificial attributes at the end of the processing.
13778         (gen_array_type_die): Likewise.
13779         (gen_enumeration_type_die): Likewise.
13780         (gen_struct_or_union_type_die): Likewise.
13781         (add_gnat_descriptive_type_attribute): Do not suppress debug info for
13782         the parent type.
13784 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
13786         PR middle-end/52419
13787         * expr.c (expand_assignment): If doing misaligned store that doesn't
13788         cover all mode bits, perform a RMW cycle.
13790         PR tree-optimization/52429
13791         * tree-parloops.c (separate_decls_in_region_debug): Return early
13792         if var is LABEL_DECL.
13794 2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13796         PR tree-optimization/52424
13797         * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
13798         calling dom_thread_across_edge.
13800 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13802         * config/avr/avr.c: Move definition of TARGET macros to end of file.
13804 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13806         * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
13807         * config/avr/avr.c (avr_output_bld): Remove unused function.
13808         (avr_out_sbxx_branch): Use "%T" to print bit position.
13810 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13812         * config/avr/avr.md: Untabify.
13814 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13816         * config/avr/avr.md (eqne): New code iterator.
13817         (*dec-and-branchsi): Use it in text peephole's condition.
13818         (*dec-and-branchhi): Ditto.
13819         (*dec-and-branchqi): Ditto.
13821 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13823         PR target/49939
13824         * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
13825         the device does not have the skip-bug.
13827 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
13829         * doc/invoke.texi (-msoft-atomic): Add more detailed description.
13830         (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
13831         -mpretend-cmove): New.
13833 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
13835         PR bootstrap/52397
13836         * df.h (struct df_d): Adjust comment that hard_regs_live_count
13837         doesn't count DEBUG_INSN refs.
13838         * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
13839         for DEBUG_INSN refs.
13841 2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13843         Partially revert:
13845         2012-02-20  Richard Guenther  <rguenther@suse.de>
13846         PR tree-optimization/52298
13847         * tree-vect-stmts.c (vectorizable_load): Properly use
13848         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
13850 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
13852         PR middle-end/51752
13853         * gimple.h (gimple_in_transaction): New.
13854         (gimple_set_in_transaction): New.
13855         (struct gimple_statement_base): Add in_transaction field.
13856         * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
13857         transaction loads.
13858         (tree_ssa_lim_initialize): Compute transaction bits.
13859         * tree.h (compute_transaction_bits): Protoize.
13860         * trans-mem.c (tm_region_init): Use the heap to store BB
13861         auxilliary data.
13862         (compute_transaction_bits): New.
13864 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13866         * gcc.c (display_help): Document --help=common and sort entries
13867         alphabetically.
13869 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13871         * doc/install.texi: Document check-$LANG specific shortcuts
13873 2012-02-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
13875         PR target/51534
13876         * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
13877         and vcgtu.
13878         * config/arm/arm_neon.h: Regenerate.
13879         * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
13880         (neon_vcgeu): New insn.
13881         (neon_vcgtu): Likewise.
13882         * config/arm/neon.ml (s_8_32, u_8_32): New lists.
13883         (ops): Unsigned comparison intrinsics call a different builtin.
13885 2012-02-28  Richard Guenther  <rguenther@suse.de>
13887         PR target/52407
13888         * config/i386/i386.c (ix86_expand_vector_set): Fix element
13889         ordering for the VEC_CONCAT for two element vectors for
13890         V2SFmode, V2SImode and V2DImode.
13892 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
13894         PR target/49448
13895         * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
13896         detecting big-endian triplets.
13898 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
13900         * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
13901         mode if there is no type information available.
13903 2012-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
13905         PR tree-optimization/53207
13906         * doc/invoke.texi: Document as experimental and relying on graphite.
13908 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
13910         * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
13911         of initializer to changes from r184614.
13913 2012-02-28  Richard Guenther  <rguenther@suse.de>
13915         PR tree-optimization/52395
13916         * tree-sra.c (build_ref_for_offset): Also look at the base
13917         TYPE_ALIGN when figuring out the alignment of the replacement.
13919 2012-02-28  Richard Guenther  <rguenther@suse.de>
13921         PR tree-optimization/52402
13922         * ipa-prop.c (ipa_modify_call_arguments): Properly use
13923         mis-aligned types when creating the accesses at the call site.
13925 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
13927         * config/avr/builtins.def: New file.
13928         * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
13929         * config/avr/avr.c (enum avr_builtin_id): Use it.
13930         (avr_init_builtins): Use it. And use avr_bdesc.
13931         (bdesc_1arg): Remove.
13932         (bdesc_2arg): Remove.
13933         (bdesc_3arg): Remove.
13934         (struct avr_builtin_description): Add field n_args.
13935         (avr_bdesc): New static variable using builtins.def.
13936         (avr_expand_builtin): Use it.
13937         Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
13938         (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
13939         Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
13941 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
13943         PR target/52148
13944         * config/avr/avr.md (movmem_<mode>): Replace match_operand that
13945         match only one single hard register with respective hard reg rtx.
13946         (movmemx_<mode>): Ditto.
13947         * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
13948         insn anatomy of movmem[x]_<mode>.
13949         (avr_out_movmem): Same for printing assembler and operand usage.
13951 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
13953         PR target/49868
13954         PR target/52261
13955         * doc/extend.texi (AVR Named Address Spaces): No more try to fix
13956         address spaces located outside of device flash.
13958         * config/avr/avr.h (base_arch_s): Remove field n_segments.
13959         (mcu_type_s): Add field n_flash.
13960         * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
13961         Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
13962         (AVR_MCU): Add N_FLASH argument.
13963         * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
13964         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
13965         macro __FLASH<n> if that address space makes sense for the device.
13966         * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
13967         outside of target flash.
13968         (avr_asm_named_section): Ditto.
13969         (avr_asm_select_section): Ditto.
13970         (avr_addr_space_convert): Ditto.
13971         (avr_emit_movmemhi): Ditto.
13972         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
13973         address space is outside of device flash.
13974         (avr_insert_attributes): Ditto.
13975         (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
13976         avr_current_arch->n_segments.
13978 2012-02-27  H.J. Lu  <hongjiu.lu@intel.com>
13980         PR target/52352
13981         * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
13982         (*movabs<mode>_2): Likewise.
13984 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
13986         PR target/52375
13987         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
13988         s_register_operand in the test instead of REG_P.  Don't call
13989         gen_reg_rtx if it won't be used.
13991         PR tree-optimization/52376
13992         * ipa-split.c (split_function): Ignore CLOBBER stmts.
13994 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
13996         * ifcvt.c (noce_get_condition): Check condition variable is not
13997         small_register_classes_for_mode_p before accepting.
13999 2012-02-27  Uros Bizjak  <ubizjak@gmail.com>
14001         * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
14003 2012-02-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
14005         Revert:
14006         2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
14007         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
14008         tuning parameters.
14009         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
14011 2012-02-27  Oleg Endo  <olegendo@gcc.gnu.org>
14013         * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
14015 2012-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
14017         * config/sh/predicates.md: Remove blank lines.
14018         * config/sh/sh.c: Fix typos in comments.
14019         * config/sh/constraints.md: Likewise.
14020         * config/sh/sh.md: Remove blank lines.
14021         Fix typos in comments.  Use ;; as comment characters.
14023 2012-02-26  Walter Lee  <walt@tilera.com>
14025         * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
14026         (replace_mov_pcrel_step2): Ditto.
14028 2012-02-25  Alexandre Oliva  <aoliva@redhat.com>
14030         PR debug/52001
14031         * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
14032         (get_addr): Walk canonical value's locs.  Avoid returning VALUEs
14033         and locs that reference values newer than the non-canonical value
14034         at hand.  Return the canonical value as a worst case.
14035         (memrefs_conflict_p): Walk canonical value's locs.
14037         PR debug/52001
14038         * cselib.c (preserve_only_constants): Rename to...
14039         (preserve_constants_and_equivs): ... this.  Split out...
14040         (invariant_or_equiv_p): ... this.  Preserve plus expressions
14041         of other preserved expressions too.
14042         (cselib_reset_table): Adjust.
14043         * var-tracking.c (reverse_op): Use canonical value to build
14044         reverse operation.
14046 2012-02-23  Kai Tietz  <ktietz@redhat.com>
14048         * config/i386/i386.c (ix86_delegitimize_address): Handle
14049         UNSPEC_PCREL plus displacement.
14051 2012-02-24  Georg-Johann Lay  <avr@gjlay.de>
14053         PR target/52261
14054         * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
14055         to test for unusedness in st X addressing.
14057 2012-02-24  Richard Guenther  <rguenther@suse.de>
14059         PR middle-end/52361
14060         * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
14061         (is_gimple_reg_type): Move inline ...
14062         * gimple.h (is_gimple_reg_type): ... here.
14064 2012-02-24  Richard Guenther  <rguenther@suse.de>
14066         PR middle-end/52361
14067         * passes.c (execute_function_todo): When verifying SSA form
14068         verify gimple form first.
14069         * tree-ssa.c (verify_ssa): Do not verify gimple form here.
14071 2012-02-24  Richard Guenther  <rguenther@suse.de>
14073         PR middle-end/52355
14074         * fold-const.c (fold_addr_of_array_ref_difference): New function.
14075         (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
14077 2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14079         * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
14081 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14083         * tree-phinodes.c (make_phi_node): Mark static.
14084         * tree-flow.h (make_phi_node): Remove extern decl.
14085         * doc/gimple.texi (make_phi_node): Remove documentation.
14087 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14089         * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
14090         * tree-ssa-sccvn.c (print_scc): Ditto.
14092 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14094         * doc/passes.texi (Full redundancy elimination): Fix typo.
14096 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14098         * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
14100 2012-02-23  Eric Botcazou  <ebotcazou@adacore.com>
14102         PR bootstrap/52287
14103         * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
14105 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
14107         PR c/52290
14108         * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
14110 2012-02-23  Georg-Johann Lay  <avr@gjlay.de>
14112         * config/avr/avr.md (code_stdname): Add ior, xor.
14113         (xior): New code iterator.
14114         (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
14115         (*<code_stdname><mode>qi.byte1-3): Ditto.
14117 2012-02-23  Jakub Jelinek  <jakub@redhat.com>
14119         PR tree-optimization/52019
14120         * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
14121         CLOBBER stmts.
14123 2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14125         * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
14126         HAVE_INITFINI_ARRAY to work around namespace pollution in
14127         certain versions of newlib system headers.
14128         * config.in: Regenerate.
14129         * configure: Regenerate.
14130         * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
14131         instead of HAVE_INITFINI_ARRAY.
14133 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
14135         PR target/52330
14136         * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
14137         is not offsettable memory reference.
14139 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
14141         PR target/18145
14142         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
14143         setting avr_need_clear_bss_p for __gnu_lto* symbols.
14145 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
14147         * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
14148         * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
14150 2012-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14152         * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
14153         library on Solaris 8 even without TLS support.
14154         * configure: Regenerate.
14156 2012-02-22  Richard Guenther  <rguenther@suse.de>
14158         PR middle-end/52329
14159         * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
14160         for GIMPLE_DEBUG stmts.
14162 2012-02-22  Martin Jambor  <mjambor@suse.cz>
14164         PR middle-end/51782
14165         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
14166         according to the base object.
14168 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
14170         PR rtl-optimization/50063
14171         * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
14172         and 2 (8-bit SP) in operand 2.
14173         * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
14174         setup to use movhi_sp_r instead of vanilla move to write SP.
14175         Adjust REG_CFA notes to superseed unspec.
14176         (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
14177         of vanilla move.
14178         As function body might contain CLI or SEI: Use irq_state 0 (IRQ
14179         known to be off) only with TARGET_NO_INTERRUPTS. Never use
14180         irq_state 1 (IRQ known to be on) here.
14182 2012-02-21  Bernd Schmidt  <bernds@codesourcery.com>
14184         * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
14185         WORDS_BIG_ENDIAN.
14186         * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
14187         assign_hard_reg): Likewise.
14189 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
14191         * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
14193 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
14195         * config/avr/avr.md
14196         (*dec-and-branchhi!=-1.d.clobber): New text peephole.
14197         (*dec-and-branchhi!=-1.l.clobber): New text peephole.
14199 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
14201         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
14202         prototype from here to...
14203         * config/avr/avr.h: ...here.
14205 2012-02-21  Richard Earnshaw  <rearnsha@arm.com>
14207         PR target/52294
14208         * thumb2.md (thumb2_shiftsi3_short): Split register and
14209         immediate shifts.  For register shifts tie operands 0 and 1.
14210         (peephole2 for above): Check that register-controlled shifts
14211         have suitably tied operands.
14213 2012-02-21  Quentin Neill  <quentin.neill@amd.com>
14215         PR target/52137
14216         * config/i386/bdver1.md (bdver1_call, bdver1_push,
14217         bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
14218         bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
14219         bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
14220         bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
14221         bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
14222         bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
14223         bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
14224         bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
14225         bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
14226         bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
14227         bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
14228         bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
14229         bdver1_ssevector_avx256_unaligned_load,
14230         bdver1_ssevector_sse128_unaligned_load,
14231         bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
14232         bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
14233         bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
14234         bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
14235         bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
14236         bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
14237         bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
14238         bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
14239         bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
14240         bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
14241         bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
14242         bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
14243         bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
14244         bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
14245         bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
14246         bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
14247         bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
14248         bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
14249         bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
14250         bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
14251         bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
14252         bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
14253         bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
14254         bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
14255         bdver1_ssediv_double_load, bdver1_ssediv_double,
14256         bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
14257         Add "bdver2" attribute.
14259 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14261         * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
14262         default if possible and not specified otherwise.
14264 2012-02-21  Richard Guenther  <rguenther@suse.de>
14266         PR middle-end/52314
14267         * gimplify.c (create_tmp_from_val): Use the main variant type
14268         for the type of the temporary we create.
14270 2012-02-21  Richard Guenther  <rguenther@suse.de>
14272         PR tree-optimization/52324
14273         * gimplify.c (gimplify_expr): When re-gimplifying expressions
14274         do not gimplify a MEM_REF address operand if it is already
14275         in suitable form.
14277 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14279         * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
14280         TARGET_HARD_FLOAT with TARGET_HARD_DFP.
14282 2012-02-21  Richard Guenther  <rguenther@suse.de>
14284         * tree-vect-stmts.c (vectorizable_load): Use pre-computed
14285         nested_in_vect_loop.
14287 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
14289         PR tree-optimization/52318
14290         * gimple-fold.c (gimplify_and_update_call_from_tree): Add
14291         vdef also to non-pure/const call stmts in the sequence.
14293 2012-02-21  Tristan Gingold  <gingold@adacore.com>
14295         * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
14297 2012-02-20  David S. Miller  <davem@davemloft.net>
14299         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
14300         don't use the "rd %pc" instruction on v9 for PIC register loads.
14302 2012-02-20  Aldy Hernandez  <aldyh@redhat.com>
14304         PR middle-end/52141
14305         * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
14306         in a transaction safe function.
14308 2012-02-20  Kai Tietz  <ktietz@redhat.com>
14310         PR target/52238
14311         * stor-layout.c (place_field): Handle desired_align for
14312         ms-bitfields, too.
14314 2012-02-20  Richard Guenther  <rguenther@suse.de>
14316         PR tree-optimization/52298
14317         * tree-vect-stmts.c (vectorizable_store): Properly use
14318         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
14319         outer loops.
14320         (vectorizable_load): Likewise.
14321         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
14322         Access DR_STEP after ensuring it is not NULL.
14324 2012-02-20  Jakub Jelinek  <jakub@redhat.com>
14326         PR tree-optimization/52286
14327         * fold-const.c (fold_binary_loc): For (X & C1) | C2
14328         optimization use double_int_to_tree instead of build_int_cst_wide,
14329         rewrite to use double_int vars.
14331 2012-02-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14333         PR target/50166
14334         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
14335         Define _start.
14336         Remove -e 0 from $gcc_cv_ld invocation.
14337         Only use __GLIBC_PREREQ if defined.
14338         Enable on Solaris since Solaris 8 patch.
14339         (gcc_SUN_LD_VERSION): New macro.
14340         * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
14341         gcc_SUN_LD_VERSION for version number format.
14342         * configure: Regenerate.
14343         * varasm.c (get_elf_initfini_array_priority_section): Set
14344         SECTION_NOTYPE for non-default priority.
14345         Use get_section instead of get_unnamed_section to emit
14346         .init_array/.fini_array with default priority.
14348 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
14350         * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
14351         (mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
14352         (mips_start_unique_function, mips_output_mips16_rdhwr)
14353         (mips_code_end): New functions.
14354         (TARGET_ASM_CODE_END): Define.
14356 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
14358         * config/mips/mips.c (mips16_build_call_stub): Add CFI information
14359         to stubs with non-sibling calls.
14361 2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>
14363         * doc/invoke.texi (-fira-* options): Copy-edit.
14364         (ira-* parameters): Copy-edit.
14366 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
14368         * doc/invoke.texi: Minor copy-edits to bring into conformance with
14369         GCC coding conventions.
14371 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
14373         * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
14374         when used as adjectives.
14376 2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>
14378         * doc/invoke.texi: Clean up "that"/"which" confusion.
14380 2012-02-17  Steven Bosscher  <steven@gcc.gnu.org>
14382         * system.h: Poison SMALL_REGISTER_CLASSES
14383         * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
14384         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
14386 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
14388         PR tree-optimization/52285
14389         * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
14390         when deciding if a call is a tail call or tail recursion.
14392 2012-02-16  Kai Tietz  <ktietz@redhat.com>
14394         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
14395         interger-constant displacement for UNSPEC_PCREL.
14397 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
14399         PR rtl-optimization/52208
14400         * ira-costs.c (scan_one_insn): Don't decrease mem_cost
14401         for MEMs with REG_EQUIV, if the MEM isn't general_operand.
14403         PR tree-optimization/52255
14404         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
14405         loop->header has virtual PHI, but exit_e->dest doesn't, add
14406         virtual PHI to exit_e->dest and adjust all uses after the loop.
14408         PR debug/52260
14409         * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
14410         children with clone_tree_hash, not after it.
14412 2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
14414         * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
14415         extended identifiers.
14417 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
14419         PR middle-end/51929
14420         * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
14421         a same_body_alias, also test whether e->callee isn't a former
14422         or current clone of the decl this is a same body alias of.
14424         PR translation/52264
14425         * cgraphunit.c (verify_cgraph_node): Fix a typo.
14427 2012-02-15  Sandra Loosemore  <sandra@codesourcery.com>
14429         * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
14431 2012-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
14433         PR target/52199
14434         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
14435         force_reg instead of copy_to_reg for better optimization.  Force
14436         non-register or memory operands into a register.
14438 2012-02-15  Andrew MacLeod  <amacleod@redhat.com>
14440         * extend.texi: Reserve upper bits of memory model for future use.
14442 2012-01-15  Georg-Johann Lay  <avr@gjlay.de>
14443             Anatoly Sokolov <aesok@post.ru>
14444             Eric Weddington <eric.weddington@atmel.com>
14446         PR target/52261
14447         * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
14448         avrxmega4, avrxmega5, avrxmega6, avrxmega7.
14449         Rewrite initializers for .macro.
14450         * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
14451         avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
14452         atxmega32d4, atxmega32x1.
14453         avrxmega4: atxmega64a3, atxmega64d3.
14454         avrxmega5: atxmega64a1, atxmega64a1u.
14455         avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
14456         atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
14457         avrxmega7: atxmega128a1, atxmega128a1u.
14458         * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
14459         ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
14460         (struct base_arch_s): Rename reserved to xmega_p.
14461         Rename reserved2 to have_rampd.
14462         (AVR_XMEGA): New define.
14463         (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
14464         (AVR_HAVE_RAMPZ): Change definition to fit xmega.
14465         * config/avr/predicates.md (io_address_operand): Take into
14466         account SFR offset.
14467         (low_io_address_operand): Ditto.
14468         (high_io_address_operand): Ditto.
14469         * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
14470         (enabled, movhi_sp_r): Use them.
14471         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
14472         cpp_define_formatted to built-in define __AVR_ARCH__.
14473         (__AVR_XMEGA__): New built-in define.
14474         (__AVR_HAVE_RAMPD__): New built-in define.
14475         (__AVR_HAVE_RAMPX__): New built-in define.
14476         (__AVR_HAVE_RAMPY__): New built-in define.
14477         (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
14479         * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
14480         (avr_option_override): Initialize them.
14481         (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
14482         (avr_init_expanders): Initialize them. No more block several calls.
14483         (emit_push_sfr): New static function.
14484         (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
14485         Handle AVR_XMEGA.
14486         (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
14487         (avr_print_operand): Print addreeses as symbols for
14488         RAMPX, RAMPY, RAMPD, CCP.
14489         (output_movhi): Handle AVR_XMEGA when writing to SP.
14490         (avr_out_movhi_mr_r_xmega): New static function.
14491         (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
14492         (avr_file_start): Print symbol defines for __RAMPX__,  __RAMPY__,
14493         __RAMPD__,  __CCP__ as needed.
14495         * config/avr/multilib.h: Regenerate.
14496         * config/avr/t-multilib: Regenerate.
14497         * config/avr/avr-tables.opt: Regenerate.
14499 2012-02-15  Tobias Grosser <grosser@fim.uni-passau.de>
14501         PR tree-optimization/50561
14502         * graphite-flattening.c (lst_project_loop): Do not
14503         remove old scattering dimensions after flattening.
14504         (lst_do_flatten): Likewise.
14506 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
14508         * doc/extend.texi (AVR Built-in Functions): Remove doc for
14509         __builtin_avr_map8, __builtin_avr_map16.
14510         Document __builtin_avr_insert_bits.
14512         * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
14513         (insert_bits): New insn.
14514         (adjust_len.map_bits): Rename to insert_bits.
14515         (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
14516         * avr-protos.h (avr_out_map_bits): Remove.
14517         (avr_out_insert_bits, avr_has_nibble_0xf): New.
14518         * config/avr/constraints.md (Cxf,C0f): New.
14519         * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
14520         defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
14521         New built-in define __BUILTIN_AVR_INSERT_BITS.
14522         * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
14523         (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
14524         (avr_move_bits): Rewrite.
14525         (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
14526         functions.
14527         (avr_map_op_t): New typedef.
14528         (avr_map_op): New static variable.
14529         (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
14530         (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
14531         (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
14532         (bdesc_3arg, avr_expand_triop_builtin): New.
14533         (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
14534         (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
14535         (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
14536         (avr_map_equal_p, avr_map_sig_p): Remove.
14537         (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
14538         (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14539         (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
14540         (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14541         (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
14542         (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14544 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
14546         * config/c6x/c6x.md (reserve_cycles): New attribute.
14547         * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
14548         don't reserve functional units after the branch occurs.
14550 2012-02-14  Aldy Hernandez  <aldyh@redhat.com>
14552         PR middle-end/52142
14553         * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
14554         functions into non-tm_pure functions.
14556 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
14558         PR lto/52178
14559         * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
14560         (iterative_hash_canonical_type): Likewise.
14561         * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
14562         the dead edges.
14564 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
14566         * haifa-sched.c (prune_ready_list): Ensure that if there is a
14567         sched-group insn, it either remains alone or the entire list is pruned.
14569 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
14571         * doc/install.texi (Prerequisites): Fix grammar.
14572         (Configuration): Likewise.
14574 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
14576         * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
14577         MPC as part of GCC before describing configuring with --with-gmp etc.
14578         (Installing GCC: Configuration): --with-gmp etc. aren't needed if
14579         sources are present.
14581 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
14583         PR debug/51950
14584         * dwarf2out.c (clone_tree_hash): New function.
14585         (copy_decls_walk): Use it instead of clone_tree.
14587 2012-02-14  Richard Guenther  <rguenther@suse.de>
14589         PR tree-optimization/52244
14590         PR tree-optimization/51528
14591         * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
14592         replacements for integral types.
14594 2012-02-14  Walter Lee  <walt@tilera.com>
14596         * config.gcc: Handle tilegx and tilepro.
14597         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
14598         tilegx and tilepro.
14599         Add HAVE_AS_TLS check for tilegx and tilepro.
14600         * configure: Regenerate.
14601         * doc/contrib.texi: Add Mat Hostetter and self.
14602         * doc/extend.texi (TILE-Gx Built-in Functions): New node.
14603         Document instruction intrinsics and network accessing intrinsics.
14604         (TILEPro Built-in Functions): New node.  Document instruction
14605         intrinsics and network accessing intrinsics.
14606         * doc/install.texi (Specific, tilegx-*-linux*): Document it.
14607         (Specific, tilepro-*-linux*): Likewise.
14608         * doc/invoke.texi (TILE-Gx Options): New section.
14609         (TILEPro Options): New section.
14610         * doc/md.texi (TILE-Gx): New section.
14611         (TILEPro): New section.
14612         * common/config/tilegx/tilegx-common.c: New file.
14613         * common/config/tilepro/tilepro-common.c: New file.
14614         * config/tilegx/constraints.md: New file.
14615         * config/tilegx/linux.h: New file.
14616         * config/tilegx/mul-tables.c: New file.
14617         * config/tilegx/predicates.md: New file.
14618         * config/tilegx/sync.md: New file.
14619         * config/tilegx/t-tilegx: New file.
14620         * config/tilegx/tilegx-builtins.h: New file.
14621         * config/tilegx/tilegx-c.c: New file.
14622         * config/tilegx/tilegx-generic.md: New file.
14623         * config/tilegx/tilegx-modes.def: New file.
14624         * config/tilegx/tilegx-multiply.h: New file.
14625         * config/tilegx/tilegx-protos.h: New file.
14626         * config/tilegx/tilegx.c: New file.
14627         * config/tilegx/tilegx.h: New file.
14628         * config/tilegx/tilegx.md: New file.
14629         * config/tilegx/tilegx.opt: New file.
14630         * config/tilepro/constraints.md: New file.
14631         * config/tilepro/gen-mul-tables.cc: New file.
14632         * config/tilepro/linux.h: New file.
14633         * config/tilepro/mul-tables.c: New file.
14634         * config/tilepro/predicates.md: New file.
14635         * config/tilepro/t-tilepro: New file.
14636         * config/tilepro/tilepro-builtins.h: New file.
14637         * config/tilepro/tilepro-c.c: New file.
14638         * config/tilepro/tilepro-generic.md: New file.
14639         * config/tilepro/tilepro-modes.def: New file.
14640         * config/tilepro/tilepro-multiply.h: New file.
14641         * config/tilepro/tilepro-protos.h: New file.
14642         * config/tilepro/tilepro.c: New file.
14643         * config/tilepro/tilepro.h: New file.
14644         * config/tilepro/tilepro.md: New file.
14645         * config/tilepro/tilepro.opt: New file.
14647 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
14649         PR tree-optimization/52210
14650         * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
14651         vect_model_simple_cost with two entry vect_def_type array instead
14652         of an address of dt.
14654 2012-02-14  Richard Guenther  <rguenther@suse.de>
14656         PR lto/52178
14657         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
14658         Do not stream DECL_QUALIFIER.
14659         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
14660         * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
14661         (find_decls_types_r): Do not walk DECL_QUALIFIER.
14663 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
14665         PR c/52181
14666         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
14667         newdecl.
14669 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
14671         PR bootstrap/52172
14672         * cselib.h (cselib_subst_to_values_from_insn): New prototype.
14673         * cselib.c (cselib_subst_to_values_from_insn): New function.
14674         * sched-deps.c (add_insn_mem_dependence,
14675         sched_analyze_1, sched_analyze_2): Use it.
14677 2012-02-13  Jan Hubicka  <jh@suse.cz>
14679         PR middle-end/52214
14680         * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
14682 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
14684         * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
14685         (GTM_SELF_SPECS): Define if not already defined.
14686         (driver_self_specs): Add GTM_SELF_SPECS.
14687         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
14688         (GTM_SELF_SPECS): Define.
14689         * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
14690         * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
14692 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
14694         * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
14695         away if seen.
14697         * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
14699         PR middle-end/52230
14700         * omp-low.c (expand_omp_for): If a static schedule without chunk size
14701         has NULL region->cont, force fd.chunk_size to be integer_zero_node.
14703 2012-02-13  Andrew MacLeod  <amacleod@redhat.com>
14705         PR c/52190
14706         * doc/extend.texi : Fix another __atomic_compare_exchange typo.
14708 2012-02-13  Richard Guenther  <rguenther@suse.de>
14710         PR translation/52211
14711         * passes.c (enable_disable_pass): Fix typo.
14713 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
14715         PR middle-end/52209
14716         * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
14717         XOR for reduce_bit_field if type is unsigned.
14719 2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>
14721         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
14722         disallow changes from SFmode to mode with different size in FP regs.
14724 2012-02-12  Robert Millan  <rmh@gnu.org>
14725             Gerald Pfeifer <gerald@pfeifer.com>
14727         * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
14728         Tweak comment.
14730 2012-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
14732         PR rtl-optimization/52175
14733         * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
14734         to frame-related instructions.
14736 2012-02-10  Jason Merrill  <jason@redhat.com>
14738         PR c++/51910
14739         * tlink.c (demangled_hash_entry): Change mangled to a VEC.
14740         (demangle_new_symbols): Fill it.
14741         (scan_linker_output): Walk it.
14742         (start_tweaking): Split out from scan_linker_output.
14743         (maybe_tweak): Update sym->chosen.
14744         * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
14746 2012-02-11  Jakub Jelinek  <jakub@redhat.com>
14748         PR debug/52132
14749         * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
14751 2012-02-11  Uros Bizjak  <ubizjak@gmail.com>
14753         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
14754         having the same mode as previous compare.
14756 2012-02-10  Eric Botcazou  <ebotcazou@adacore.com>
14758         * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
14759         * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
14760         (nonlocal_goto_internal): Likewise.
14761         (nonlocal_goto): Emit a use and an indirect jump directly.
14763 2012-02-10  Andrew MacLeod  <amacleod@redhat.com>
14765         PR c/52190
14766         * doc/extend.texi : Update comments for __atomic_compare_exchange and
14767         __atomic_{is,always}_lock_free.
14769 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
14771         PR target/52146
14772         * config/i386/i386.c (ix86_legitimate_address_p): Disallow
14773         negative constant address for TARGET_X32.
14775 2012-02-10  Richard Henderson  <rth@redhat.com>
14777         * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
14778         * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
14779         for GIMPLE_TRANSACTION.  Tidy if's into a switch.
14781 2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14782             Ira Rosen  <irar@il.ibm.com>
14784         PR tree-optimization/50031
14785         * targhooks.c (default_builtin_vectorization_cost): Handle
14786         vec_promote_demote.
14787         * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
14788         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
14789         all types of reduction and pattern statements.
14790         (vect_estimate_min_profitable_iters): Likewise.
14791         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
14792         (vect_get_load_cost): Use vec_perm for permutations; add dump logic
14793         for explicit realigns.
14794         (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
14795         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
14796         vec_promote_demote.
14797         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
14798         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
14799         vec_perm for VSX and handle vec_promote_demote.
14801 2012-02-10  Jakub Jelinek  <jakub@redhat.com>
14803         PR middle-end/52177
14804         * builtins.c (fold_builtin_atomic_always_lock_free,
14805         expand_builtin_atomic_always_lock_free,
14806         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
14807         Return and/or test boolean_true_node/boolean_false_node instead of
14808         integer_one_node/integer_zero_node.
14810 2012-02-10  Jan Hubicka  <jh@suse.cz>
14812         PR middle-end/48600
14813         * predict.c (predict_paths_for_bb): Prevent looping.
14814         (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
14816 2012-02-10  Roman Zhuykov  <zhroma@ispras.ru>
14818         * config/arm/arm.c (output_move_double): In one case properly
14819         count number of instructions that will be emitted.
14821 2012-02-10  Richard Guenther  <rguenther@suse.de>
14823         PR translation/52193
14824         * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
14826 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
14828         PR middle-end/52140
14829         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
14831 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
14833         PR debug/52165
14834         * var-tracking.c (emit_note_insn_var_location): If
14835         EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
14836         emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
14837         non-NOTE_DURING_CALL_P insn.
14839 2012-02-09  Bin Cheng  <bin.cheng@arm.com>
14841         PR middle-end/51867
14842         * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
14844 2012-02-08  Magnus Granberg  <zorry@gentoo.org>
14846         PR driver/48524
14847         * gcc.c (switch_matches) Support switches with separated form,
14848         -D and -U.
14850 2012-02-08  Georg-Johann Lay  <avr@gjlay.de>
14852         * config/avr/avr.md (SREG_ADDR): Remove constant definition.
14853         (SP_ADDR): Ditto.
14854         (RAMPZ_ADDR): Ditto.
14855         * config/avr/avr.c (avr_addr_t): New typedef.
14856         (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
14857         (avr_init_expanders): Initialize it.
14858         (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
14859         SREG_ADDR.
14860         (expand_epilogue): Ditto.
14861         (avr_print_operand): Ditto.
14862         (avr_file_start): Ditto.
14863         (avr_emit_movmemhi): Ditto.
14865 2012-02-08  Richard Guenther  <rguenther@suse.de>
14867         PR tree-optimization/46886
14868         * tree-flow.h (do_while_loop_p): Declare.
14869         * tree-ssa-loop-ch.c (do_while_loop_p): Export.
14870         * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
14872 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
14874         * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
14875         always succeed for integers larger than a native word.
14877 2012-02-08  Richard Guenther  <rguenther@suse.de>
14879         PR rtl-optimization/52170
14880         * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
14881         properly handle integer vector modes.
14883 2012-02-08  Jakub Jelinek  <jakub@redhat.com>
14885         PR gcov-profile/52150
14886         * coverage.c: Include target.h.
14887         (build_var): Call targetm.strip_name_encoding on the assembler name.
14888         Change one _ into . or $ if the target allows it.
14889         * Makefile.in (coverage.o): Depend on $(TARGET_H).
14891         PR rtl-optimization/52139
14892         * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
14893         is a BARRIER after emit_insn_after_noloc, move BB_END
14894         to the last non-BARRIER insn before it.
14896 2012-02-07  Richard Sandiford  <rdsandiford@googlemail.com>
14898         PR middle-end/24306
14899         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
14900         (mips_gimplify_va_arg_expr): Call it instead of
14901         std_gimplify_va_arg_expr.
14903 2012-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
14905         * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
14906         message for -mno-pointers-to-nested-function.
14908 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
14910         PR middle-end/51994
14911         * expr.c (get_inner_reference): If there is an offset, add a negative
14912         bit position to it (if any).
14914 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
14916         PR rtl-optimization/52060
14917         * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
14918         copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
14919         before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
14920         and/or i0src_copy2 when needed.
14922 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
14924         * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
14925         or LTOPLUGINSONAME if have_c.
14927         * config/freebsd-spec.h: Add comment about what macros can be defined
14928         in this header.
14929         (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
14930         * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
14931         here instead.
14933 2012-02-07  Richard Guenther  <rguenther@suse.de>
14935         * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
14936         newline in -alias dumps.
14938 2012-02-07  Kai Tietz  <ktietz@redhat.com>
14939             Dave Korn  <dave.korn.cygwin@gmail.com>
14941         PR target/40068
14942         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
14943         Take care that typinfo gets dllexport-attribute.
14945 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
14947         PR middle-end/52074
14948         * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
14949         if modifier < EXPAND_SUM call force_operand on the result.
14951 2012-02-07  Joern Rennecke  <joern.rennecke@embecosm.com>
14953         * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
14954         adding __forwarder_dst__ prefix if a forwarder_section attribute is
14955         present.
14956         (epiphany_function_type): Replace types for specific interrupts with
14957         EPIPHANY_FUNCTION_INTERRUPT.
14958         (EPIPHANY_INTERRUPT_P): Update.
14959         * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
14960         New static function.
14961         (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
14962         <disinterrupt>: Affects type identity.
14963         (epiphany_handle_interrupt_attribute): Handle variable number of
14964         arguments.
14965         (epiphany_compute_function_type): Update for new
14966         epiphany_function_type definition.
14967         (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
14968         handlers with a longcall forwarder.
14969         (epiphany_start_function): Handle multiple interrupt arguments and/or
14970         forwarder_section attribute.
14972         * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
14973         libgloss.
14975 2012-02-07  Alan Modra  <amodra@gmail.com>
14977         PR target/52107
14978         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
14979         subregs of TFmode.
14981 2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14983         PR tree-optimization/50969
14984         * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
14985         use vec_perm rather than vector_stmt.
14986         (vect_model_load_cost): Likewise.
14987         * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
14988         vec_perm to be the same as other vector statements.
14989         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
14990         cost of vec_perm for TARGET_VSX.
14992 2012-02-06  Richard Guenther  <rguenther@suse.de>
14994         PR tree-optimization/52115
14995         * tree-sra.c (access_has_replacements_p): New function.
14996         (sra_modify_assign): Use it to decide whether a use is uninitialized.
14998 2012-02-06  Patrick Marlier  <patrick.marlier@gmail.com>
15000         PR middle-end/52047
15001         * trans-mem.c (expand_call_tm): Add an assertion.
15002         * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
15003         functions.
15005 2012-02-06  Richard Guenther  <rguenther@suse.de>
15007         PR tree-optimization/50955
15008         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
15009         raise cost of expressions that replace an address with an
15010         expression based on a different pointer.
15012 2012-02-06  Jakub Jelinek  <jakub@redhat.com>
15014         PR target/52129
15015         * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
15016         CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
15018 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
15020         PR c++/48680
15021         * doc/invoke.texi (C++ Dialect Options): Use @option markup for
15022         -Weffc++ and specify guidelines come from second edition.
15024 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
15026         * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
15027         (sibcall_value_multiple_internal, call_split, call_internal_direct)
15028         (call_direct_split, call_value_split, call_value_internal_direct)
15029         (call_value_direct_split, call_value_multiple_split): Use jal and
15030         jal_macro attributes.
15032 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
15034         * reload1.c (reload_regs_reach_end_p): Replace with...
15035         (reload_reg_rtx_reaches_end_p): ...this function.
15036         (new_spill_reg_store): Update commentary.
15037         (emit_input_reload_insns): Don't clear new_spill_reg_store here.
15038         (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
15039         before setting new_spill_reg_store.
15040         (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
15041         Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
15042         Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
15043         for non-spill reload registers.
15045 2012-02-05  Ira Rosen  <irar@il.ibm.com>
15047         PR tree-optimization/52091
15048         * tree-vectorizer.h (vect_is_simple_use): Add an argument.
15049         (vect_is_simple_use_1): Likewise.
15050         * tree-vect-loop.c (vectorizable_reduction): Update calls
15051         to vect_is_simple_use_1 and vect_is_simple_use.
15052         (vectorizable_live_operation): Likewise.
15053         * tree-vect-patterns.c (widened_name_p,
15054         vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
15055         * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
15056         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
15057         vectorizable_shift,vectorizable_operation, vectorizable_store,
15058         vectorizable_load): Likewise.
15059         (vect_is_simple_cond): Add an argument, pass it to
15060         vect_is_simple_use_1.
15061         (vectorizable_condition): Update calls to vect_is_simple_cond,
15062         vect_is_simple_use.
15063         (vect_is_simple_use): Add an argument, the statement in which
15064         OPERAND is used.  Check that if OPERAND's def stmt is a double
15065         reduction phi node, the use is a phi node too.
15066         (vect_is_simple_use_1): Add an argument, pass it to
15067         vect_is_simple_use.
15068         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
15069         to vect_is_simple_use.
15071 2012-02-04  Jakub Jelinek  <jakub@redhat.com>
15073         PR rtl-optimization/52095
15074         * modulo-sched.c (dump_insn_locator): New function.
15075         (loop_canon_p, sms_schedule): Use it.
15077         PR rtl-optimization/52113
15078         * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
15079         even for decomposable shift/zext insns.
15081 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
15082             Zdenek Dvorak  <ook@ucw.cz>
15084         PR rtl-optimization/52092
15085         * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
15086         on get_iv_value result.
15088 2012-02-02  Andrew Pinski  <apinski@cavium.com>
15090         PR middle-end/47982
15091         PR middle-end/43967
15092         * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
15094 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
15096         PR middle-end/48071
15097         * diagnostic.c (diagnostic_finish): Remove trailing newlines.
15099 2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>
15101         PR rtl-optimization/49800
15102         * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
15103         (sched_finish): Call regstat_free_n_sets_and_refs.
15105 2012-02-02  Jia Liu  <proljc@gmail.com>
15107         * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
15108         than operand 2.
15110 2012-02-02  Jan Hubicka  <jh@suse.cz>
15111             Tom de Vries  <tom@codesourcery.com>
15113         PR middle-end/51998
15114         * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
15115         * varpool.c (varpool_analyze_pending_decls): Likewise.
15117 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
15118             Jayant R Sonar <jayant.sonar@kpitcummins.com>
15120         * config.gcc: Add cr16-* support.
15122         * doc/extend.texi: Document cr16 extensions.
15123         * doc/install.texi: Document cr16 install.
15124         * doc/invoke.texi: Document cr16 options.
15125         * doc/md.texi: Document cr16 constraints.
15127         * common/config/cr16/cr16-common.c: New file.
15128         * config/cr16/cr16.c: New file.
15129         * config/cr16/cr16.h: New file.
15130         * config/cr16/cr16.md: New file.
15131         * config/cr16/cr16.opt: New file.
15132         * config/cr16/cr16-protos.h: New file.
15133         * config/cr16/predicates.md: New file.
15134         * config/cr16/constraints.md: New file.
15135         * config/cr16/t-cr16: New file.
15137 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
15139         PR target/52086
15140         * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
15141         that operands[2] is either immediate, or q_regs_operand.
15143         PR tree-optimization/52073
15144         * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
15145         a pattern stmt for pattern uses, ignore uses outside of the loop.
15147 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
15149         * config/avr/avr.c: Resolve all AS1 and AS2 macros.
15150         * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
15151         (OUT_AS1, OUT_AS2): Remove.
15153 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
15155         PR rtl-optimization/51374
15156         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
15157         to cross other volatile_refs_p insns.
15159 2012-02-01  Richard Guenther  <rguenther@suse.de>
15161         * doc/invoke.texi (fno-inline): Clarify documentation.
15162         (finline-small-functions): Likewise.
15163         (finline-functions): Likewise.
15164         * common.opt (finline): Adjust comment and documentation.
15165         (finline-small-functions): Clarify documentation.
15166         (finline-functions): Likewise.
15167         (finline-functions-called-once): Likewise.
15169 2012-02-01  Tristan Gingold  <gingold@adacore.com>
15171         * c-typeck.c (composite_type): Keep mode for pointers.
15173 2012-01-31  Richard Sandiford  <rdsandiford@googlemail.com>
15175         * function.h (regno_reg_rtx): Adjust comment.
15176         * reginfo.c (init_reg_modes_target): Only use the previous mode
15177         if it fits within one register.  Remove MIPS comment.
15179 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
15181         PR bootstrap/52058
15182         * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
15184 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15186         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
15187         to srak instruction.
15189 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
15191         * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
15193 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
15195         PR bootstrap/52041
15196         PR bootstrap/52039
15197         PR target/51974
15198         * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
15200 2012-01-31  Richard Guenther  <rguenther@suse.de>
15202         PR tree-optimization/51528
15203         * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
15204         assigns.
15206 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
15208         PR bootstrap/52041
15209         PR bootstrap/52039
15210         PR target/51974
15211         * ree.c (add_removable_extension): Change def_map argument
15212         to unsigned *, store in def_map 1 + offset into *insn_list vector
15213         instead of pointers into the vector.
15214         (find_removable_extensions): Adjust caller.
15216 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
15218         * config/avr/avr.md: Resolve all AS1 and AS2 macros.
15219         Transform all "* quoted-c-code" to { c-code }.
15220         Remove redundant test for "optimize" in combine patterns.
15221         Move (include "avr-dimode.md") to end of file.
15223 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
15225         PR target/51835
15226         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15227         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
15229 2012-01-30  Richard Guenther  <rguenther@suse.de>
15231         PR tree-optimization/52028
15232         * tree-loop-distribution.c (ldist_gen): Properly update
15233         virtual SSA form.
15235 2012-01-30  Jakub Jelinek  <jakub@redhat.com>
15237         PR debug/52027
15238         * dwarf2out.c (dwarf2out_switch_text_section): Don't call
15239         set_cur_line_info_table if not emitting debug info.
15241         PR tree-optimization/52046
15242         * tree-vect-patterns.c (check_bool_pattern): Give up if
15243         a comparison could throw.
15245         PR debug/52048
15246         * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
15248 2012-01-30  Richard Guenther  <rguenther@suse.de>
15250         PR tree-optimization/52045
15251         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
15252         SSA form if cfgcleanup did anything.
15254 2012-01-30  Richard Guenther  <rguenther@suse.de>
15256         PR tree-optimization/52045
15257         * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
15258         before computing final todo.
15260 2012-01-30  Richard Guenther  <rguenther@suse.de>
15262         PR tree-optimization/51528
15263         * tree-sra.c (sra_modify_assign): Re-factor in preparation
15264         for PR51528 fix.
15266 2012-01-30  Paolo Bonzini  <bonzini@gnu.org>
15268         * df-problems.c (df_kill_notes): Check that the use refers
15269         to the note under examination.
15271 2012-01-30  Eric Botcazou  <ebotcazou@adacore.com>
15273         PR target/51920
15274         * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
15275         parameter and use short-lived pseudos.
15276         (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
15277         (sparc_expand_vector_init): Const-ify local variables and adjust
15278         calls to above functions.
15280 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
15282         * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
15284 2012-01-29  Sandra Loosemore  <sandra@codesourcery.com>
15286         * doc/invoke.texi: Make usage of "compile time" and
15287         "run time"/"runtime" consistent throughout the file.
15289 2012-01-29  Uros Bizjak  <ubizjak@gmail.com>
15291         * config/alpha/alpha.c (alpha_option_override): Default to
15292         full IEEE compliance mode for Go language.
15294 2012-01-29  Tijl Coosemans  <tijl@coosemans.org>
15296         * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
15297         (LINK_SSP_SPEC): Define.
15299 2012-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15301         PR target/51871
15302         * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
15303         stubs.
15305 2012-01-28  Sandra Loosemore  <sandra@codesourcery.com>
15307         * doc/invoke.texi: Correct hyphenation of "floating point",
15308         "double precision", and related terminology throughout the file.
15310 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
15312         PR target/52006
15313         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
15314         arm_general_register_operand predicate for operand 2 instead of
15315         register_operand.
15317 2012-01-27  Ian Lance Taylor  <iant@google.com>
15319         PR go/47656
15320         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
15321         * builtins.c (expand_builtin_init_trampoline): Add onstack
15322         parameter.  Change caller.
15323         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
15324         * tree.c (build_common_builtin_nodes): Declare
15325         __builtin_init_heap_trampoline.
15327 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
15329         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
15330         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
15331         * config/avr/avr.c: Ditto.
15332         (avr_regnames): Remove because unused.
15333         * config/avr/avr.md (*cpse.ne): New peephole.
15334         (*cpse.eq): New peephole from former cpse peepholes.
15336 2012-01-27  Michael Eager  <eager@eagercon.com>
15338         * config/microblaze.c (microblaze_emit_compare): Correct
15339         test after pcmp instruction.
15341 2012-01-27  Richard Guenther  <rguenther@suse.de>
15343         PR tree-optimization/52020
15344         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
15346 2012-01-27  Richard Guenther  <rguenther@suse.de>
15348         * ipa-pure-const.c (check_stmt): Clobbers do not make a
15349         function non-const/pure.
15351 2012-01-27  Richard Guenther  <rguenther@suse.de>
15353         PR tree-optimization/50444
15354         * tree-sra.c (build_ref_for_offset): Properly adjust the
15355         MEM_REF type for unaligned accesses.
15357 2012-01-27  Richard Guenther  <rguenther@suse.de>
15359         PR tree-optimization/50444
15360         * expr.c (mem_ref_refers_to_non_mem_p): New function.
15361         (expand_assignment): Use it.  Properly handle misaligned
15362         bases when expanding stores to component references.
15363         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
15364         refactor that case.
15366 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
15368         PR middle-end/51389
15369         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
15370         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
15371         * tree-data-ref.c (find_data_references_in_loop): Make static.
15372         (compute_all_dependences): Change return type to bool.  Bail out
15373         for too many datarefs in a loop.  Move the hunk resetting the data
15374         dependences vector from ...
15375         (compute_data_dependences_for_loop): ... here.  Account for
15376         compute_all_dependences returning false.
15377         (compute_data_dependences_for_bb): Likewise.
15378         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
15379         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
15381 2012-01-27  Richard Guenther  <rguenther@suse.de>
15383         PR middle-end/51959
15384         * expr.c (store_field): Use the alias-set of the scratch memory
15385         for storing to it.
15387 2012-01-27  Tom de Vries  <tom@codesourcery.com>
15389         PR tree-optimization/51990
15390         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
15391         WITH_SIZE_EXPR.
15392         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
15394 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
15396         PR debug/52001
15397         * var-tracking.c (reverse_op): Don't add any reverse operation
15398         if V already has any constant locations.
15400 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
15402         * doc/invoke.texi: Correct usage of "command line" (noun)
15403         vs "command-line" (adjective) throughout.
15405 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
15407         * doc/invoke.texi (Language Independent Options): Move
15408         -Wcoverage-mismatch blurb from here....
15409         (Warning Options): ...to here.
15411 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
15413         * config/rs6000/rs6000.c (rs6000_option_override_internal):
15414         Set rs6000_always_hint to false for 476.
15416 2012-01-27  Matthias Klose  <doko@ubuntu.com>
15418         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
15419           system root.
15420         * incpath.c (add_standard_paths): Likewise.
15422 2012-01-27  Richard Henderson  <rth@redhat.com>
15424         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15425         * config/m68k/sync.md (atomic_test_and_set): Rename from
15426         sync_test_and_setqi and adjust the operands.
15427         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
15428         and unconditionally enable.
15430 2012-01-27  Richard Henderson  <rth@redhat.com>
15432         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15433         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
15434         (ldstub): Rename from ldstubqi.
15435         (ldstub<I24MODE>): Remove.
15437 2012-01-27  Richard Henderson  <rth@redhat.com>
15439         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15440         * c-cppbuiltin.c (cpp_atomic_builtins): Define
15441         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
15442         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
15443         * doc/tm.texi: Rebuild.
15445 2012-01-27  Richard Henderson  <rth@redhat.com>
15447         * optabs.c (gen_atomic_test_and_set): Remove default.
15448         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
15450 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
15452         PR rtl-optimization/51978
15453         * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
15454         (combine_reaching_defs): Likewise.
15455         (struct re_info): Remove.
15456         (add_removable_extension): Remove x and data arguments,
15457         add insn, insn_list and def_map.  Use the arguments directly
15458         instead of using struct re_info.
15459         (find_removable_extensions): Don't call add_removable_extension
15460         through note_stores, instead just call it with single_set
15461         result if non-NULL.
15462         (find_and_remove_re): Pass curr_cand->expr instead of
15463         PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
15465 2012-01-26  Michael Matz  <matz@suse.de>
15467         PR tree-optimization/46590
15468         * cfgexpand.c: Revert last change (r183305).
15469         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
15470         regs.
15471         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
15472         checking for emptiness.
15474 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
15476         PR middle-end/51895
15477         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
15478         non-addressable non-BLKmode base correctly.
15480 2012-01-26  Michael Matz  <matz@suse.de>
15482         PR tree-optimization/48794
15483         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
15484         regions referenced from RESX/EH_DISPATCH.
15486 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15488         * config/s390/s390.h: Make BRANCH_COST an option.
15489         * config/s390/s390.opt: New option -mbranch-cost.
15491 2012-01-26  Richard Henderson  <rth@redhat.com>
15493         Revert 2012-01-24 change:
15494         * trans-mem.c (requires_barrier): Do not instrument thread local
15495         variables and emit save/restore for them.
15497 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
15499         PR middle-end/51986
15500         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
15501         for pat == 0.
15503 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
15505         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
15506         ASM_OPERANDS.
15508 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
15510         PR target/49868
15511         Rename __pgm to __flash.
15512         Rename __pgm1 to __flash1.
15513         Rename __pgm2 to __flash2.
15514         Rename __pgm3 to __flash3.
15515         Rename __pgm4 to __flash4.
15516         Rename __pgm5 to __flash5.
15517         Rename __pgmx to __memx.
15518         * doc/extend.texi (AVR Named Address Spaces)
15519         Rename address space names as indicated above.
15520         * config/avr/avr.c (avr_addrspace): Ditto.
15522         * config/avr/avr-protos.h
15523         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
15524         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
15525         * config/avr/predicates.md: Ditto.
15526         * config/avr/avr.c Ditto, and
15527         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
15528         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
15530         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
15531         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
15532         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
15533         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
15534         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
15535         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
15536         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
15537         * config/avr/avr.c: Ditto.
15538         * config/avr/avr.md: Ditto.
15540 2012-01-25  Jason Merrill  <jason@redhat.com>
15542         PR c++/51992
15543         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
15545 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
15547         PR tree-optimization/51987
15548         * tree-data-ref.c (get_references_in_stmt): Handle references in
15549         non-volatile GIMPLE_ASM.
15551 2012-01-25  Richard Guenther  <rguenther@suse.de>
15553         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
15554         bases are dereferenced.
15556 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
15558         PR rtl-optimization/48374
15559         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
15561 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
15563         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
15564         compute_data_dependences_for_loop returns false.
15565         * tree-parloops.c (loop_parallel_p): Likewise.
15567 2012-01-25  Richard Guenther  <rguenther@suse.de>
15569         * tree.h (get_pointer_alignment_1): Declare.
15570         * builtins.c (get_pointer_alignment_1): New function.
15571         (get_pointer_alignment): Use it.
15573 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15575         PR rtl-optimization/48308
15576         * combine.c (enum undo_kind): Add UNDO_LINKS.
15577         (struct undo): Add member l to other_contents and where.
15578         (do_SUBST_LINK): New.
15579         (SUBST_LINK): New.
15580         (try_combine): Handle LOG_LINKS for the dummy i1 case.
15581         (undo_all): Handle UNDO_LINKS.
15583 2012-01-25  Richard Henderson  <rth@redhat.com>
15585         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
15586         mem inputs.
15588 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
15590         * optabs.c (gen_atomic_test_and_set): Use each argument.
15592 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
15594         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
15595         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
15596         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
15597         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
15598         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
15599         TARGET_PAIRED_SINGLE_FLOAT.
15601 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
15603         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
15604         (in_struct, return_val): Remove MEM documentation.
15605         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
15606         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
15607         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
15608         and MEM_SCALAR.
15609         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15610         * cfgexpand.c (add_alias_set_conflicts): Likewise.
15611         * expr.c (store_field): Likewise.
15612         * function.c (assign_stack_temp_for_type): Likewise.
15613         * ifcvt.c (noce_try_cmove_arith): Likewise.
15614         * reload1.c (reload): Likewise.
15615         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
15616         (alpha_set_memflags): Likewise.
15617         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
15619 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
15621         * rtl.h (true_dependence, canon_true_dependence): Remove varies
15622         parameter.
15623         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
15624         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
15625         (true_dependence_1, true_dependence, canon_true_dependence): Remove
15626         varies parameter.
15627         * cselib.c (cselib_rtx_varies_p): Delete.
15628         (cselib_invalidate_mem): Update call to canon_true_dependence.
15629         * dse.c (record_store, check_mem_read_rtx): Likewise.
15630         (scan_reads_nospill): Likewise.
15631         * cse.c (check_dependence): Likewise.
15632         (cse_rtx_varies_p): Delete.
15633         * expr.c (safe_from_p): Update call to true_dependence.
15634         * ira.c (validate_equiv_mem_from_store): Likewise.
15635         (memref_referenced_p): Likewise.
15636         * postreload-gcse.c (find_mem_conflicts): Likewise.
15637         * sched-deps.c (sched_analyze_2): Likewise.
15638         * store-motion.c (load_kills_store): Likewise.
15639         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
15640         * gcse.c (mems_conflict_for_gcse_p): Likewise.
15641         (compute_transp): Update call to canon_true_dependence.
15643 2012-01-25  Richard Henderson  <rth@redhat.com>
15645         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
15646         (maybe_emit_atomic_test_and_set): New.
15647         (expand_sync_lock_test_and_set): Use it.
15648         (expand_atomic_test_and_set): Likewise.
15649         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
15650         the implementation; clarify implementation defined details.
15651         * doc/md.texi (atomic_test_and_set): Document.
15653 2012-01-25  Richard Henderson  <rth@redhat.com>
15655         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
15657 2012-01-25  Richard Henderson  <rth@redhat.com>
15659         PR target/51968
15660         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
15661         to effect no-op split.
15663 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
15665         PR lto/51698
15666         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
15667         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
15668         (BT_FN_VOID_PTR_INT_SIZE): New.
15669         (BT_FN_UINT_UINT_VAR): Remove.
15670         (BT_FN_UINT32_UINT32_VAR): New.
15671         (BT_FN_DOUBLE_VPTR): Remove.
15672         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
15674         * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
15675         (_ITM_changeTransactionMode): Same.
15676         (_ITM_memmoveRtWt): Change return type to void.
15677         (_ITM_memcpyRtWt): Same.
15678         (_ITM_memsetW): Same.
15679         (_ITM_RaRD): Change types to double.
15680         (_ITM_RD): Same.
15681         (_ITM_RaWD): Same.
15682         (_ITM_RfWD): Same.
15684         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
15686 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
15687             Patrick Marlier  <patrick.marlier@gmail.com>
15689         * trans-mem.c (requires_barrier): Do not instrument thread local
15690         variables and emit save/restore for them.
15692 2012-01-24  Jason Merrill  <jason@redhat.com>
15694         PR c++/51812
15695         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
15696         output static aliases.
15698 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
15700         PR driver/47249
15701         * common.opt (-pie, -shared, pie, shared): Change from Common to
15702         Driver.
15703         * gcc.c (display_help): Display help for -pie and -shared.
15705 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
15707         PR target/49868
15708         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
15709         Remove note on size/offset limitation.
15710         (AVR Variable Attributes): Add example how to read data located
15711         with progmem.  Refer to named address spaces.
15712         * doc/invoke.texi (AVR Options): Fix typo.
15714 2012-01-24  Richard Guenther  <rguenther@suse.de>
15716         Forward-port to trunk
15717         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
15719         PR middle-end/45678
15720         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
15721         op0 isn't sufficiently aligned and there is movmisalignM
15722         insn for mode, use it to load op0 into a temporary register.
15724 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
15726         PR target/51957
15727         * target.def (const_not_ok_for_debug_p): New hook.
15728         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
15729         documentation.
15730         * doc/tm.texi: Regenerated.
15731         * dwarf2out.c (const_ok_for_output_1): If
15732         targetm.const_not_ok_for_debug_p returns true, fail.
15733         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
15734         function.
15735         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
15737 2012-01-23  Kai Tietz  <ktietz@redhat.com>
15739         PR target/51900
15740         * config/i386/predicates.md (symbolic_operand): Allow
15741         UNSPEC_PCREL as PIC expression for lea.
15742         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
15743         * config/i386/i386.c (ix86_delegitimize_address): Handle
15744         UNSPEC_PCREL for none-MEM, too.
15746 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
15748         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
15749         (ipa_tm_create_version_alias): Same.
15751 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
15753         PR libitm/51830
15754         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
15755         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
15757 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
15758             Patrick Marlier  <patrick.marlier@gmail.com>
15759             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
15761         PR lto/51916
15762         * lto-wrapper.c (run_gcc): Pass the LTO section name to
15763         simple_object_start_read.
15765 2012-01-23  Richard Guenther  <rguenther@suse.de>
15768         PR tree-optimization/51895
15769         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
15770         parameter decomposition into BLKmode components.
15772 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
15774         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
15775         fake variables for restrict-qualified pointers whose pointed-to type
15776         contains a placeholder.
15778 2012-01-23  Richard Guenther  <rguenther@suse.de>
15780         PR tree-optimization/51949
15781         * ipa-split.c (execute_split_functions): Do not split malloc functions.
15783 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
15785         PR rtl-optimization/51933
15786         * ree.c (transform_ifelse): Return true right away if dstreg is
15787         already wider or equal to cand->mode.
15788         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
15789         (make_defs_and_copies_lists): Remove defs_list and copies_list
15790         arguments, add state argument, just truncate state->work_list
15791         instead of always allocating and freeing the vector.  Assert that
15792         get_defs succeeds instead of returning 2.  Changed return type to bool.
15793         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
15794         have ext_src_mode, see if it has been modified already with the
15795         right kind of extension and has been extended before from the
15796         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
15797         just return true.  Remember the original mode in state->modified array.
15798         (combine_reaching_defs): Add state argument.  Don't allocate and
15799         free here def_list, copied_list and vec vectors, instead just
15800         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
15801         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
15802         Add state variable, clear vectors in it, initialize state.modified
15803         if needed.  Free all the vectors at the end and state.modified too.
15804         Don't skip a candidate if the extension expression has been modified.
15806 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
15808         PR target/47096
15809         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
15810          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
15811         (extra_options) interix.opt -> i386/interix.opt"
15812         (extra_objs):Add winnt-stubs.o
15813         * configure.ac: Add interix to target_os .comm on PE check.
15814         * configure: Regenerate.
15815         * config/interix3.h: Delete and move bits to..
15816         * config/interix.h: Delete and move bits to..
15817         * config/i386/i386-interix3.h: Delete and move bits to..
15818         * config/i386/i386-interix.h: ..here.
15819         (TARGET_CPU_DEFAULT): Remove redefinition.
15820         (TARGET_ASM_CONSTRUCTOR): Undefine.
15821         (SUBTARGET_SWITCHES): Define for ms-bitfields.
15822         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
15823         (PTRDIFF_TYPE): Define.
15824         (LONG_DOUBLE_TYPE_SIZE): Define.
15825         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
15826         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
15827         (TARGET_SECTION_TYPE_FLAGS): Define.
15828         (ASM_DECLARE_FUNCTION_NAME): Define.
15829         (ASM_OUTPUT_EXTERNAL): Define.
15830         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
15831         (ASM_OUTPUT_ALIGNED_BSS): Define.
15832         (PCC_BITFIELD_TYPE_MATTERS): Define.
15833         (USE_CONST_SECTION): Define.
15834         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
15835         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
15836         (SUPPORTS_ONE_ONLY): Remove.
15837         (I386_PE_STRIP_ENCODING): Define.
15838         * config/interix.opt: Delete and move bits to..
15839         * config/i386/interix.opt: ..here. New.
15840         (mpe-aligned-commons): Add.
15841         * config/i386/t-interix: Add copyright header.
15842         (winnt-stubs.o): Add rule.
15844 2012-01-22  Jason Merrill  <jason@redhat.com>
15846         PR c++/51832
15847         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
15848         for extra name aliases.
15850 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15852         PR rtl-optimization/51924
15853         * ree.c (combine_set_extension): Improve debugging message.
15854         (combine_reaching_defs): Likewise.
15855         (get_defs): Rename confusingly named variable.
15856         (find_and_remove_re): Skip a candidate if the extension expression has
15857         been modified.
15859 2012-01-21  Robert Millan  <rmh@gnu.org>
15860             Gerald Pfeifer  <gerald@pfeifer.com>
15862         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
15863         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
15865 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
15867         PR tree-optimization/51914
15868         * tree-vect-stmts.c (vectorizable_conversion): For
15869         cvt_type && modifier == WIDEN, put temporary with cvt_type
15870         at the beginning of vec_dsts and set vec_dest to temporary
15871         with vectype_out.
15873 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15875         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
15877 2012-01-20  Tijl Coosemans  <tijl@coosemans.org>
15879         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
15880         * config/rs6000/rs6000.c: Likewise.
15882 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
15884         PR target/51915
15885         * config/arm/arm.c (arm_count_output_move_double_insns): Call
15886         output_move_double on a copy of operands array.
15888 2012-01-20  Cary Coutant  <ccoutant@google.com>
15889             Dodji Seketeli  <dodji@redhat.com>
15891         PR debug/45682
15892         * dwarf2out.c (copy_declaration_context): Return ref to parent
15893         of declaration DIE, if necessary.
15894         (remove_child_or_replace_with_skeleton): Add new parameter; update
15895         caller.  Place skeleton DIE under parent DIE of original declaration.
15896         Move call to copy_declaration_context to here ...
15897         (break_out_comdat_types): ... from here.
15899 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15901         PR rtl-optimization/51856
15902         * reload.c (find_reloads_subreg_address): Set the address_reloaded
15903         flag to reloaded.
15905 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15907         PR target/51819
15908         * config/arm/arm.c (arm_print_operand): Correct output of alignment
15909         hints for neon loads and stores.
15911 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
15913         PR target/49868
15914         PR target/50887
15915         * doc/extend.texi (Named Address Spaces): Split into subsections.
15916         (AVR Named Address Spaces): New subsection.
15917         (M32C Named Address Spaces): New subsection.
15918         (RL78 Named Address Spaces): New subsection.
15919         (SPU Named Address Spaces): New subsection.
15920         (Variable Attributes): New anchor "AVR Variable Attributes".
15921         (AVR Variable Attributes): Rewrite and avoid wording
15922         "address space" in this context.
15923         * doc/invoke.texi (AVR Options): Rewrite and add documentation
15924         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
15925         (AVR Built-in Macros): New subsubsection therein.
15926         * doc/md.texi (AVR constraints): Remove "C04", "R".
15928 2012-01-20  Richard Guenther  <rguenther@suse.de>
15930         PR tree-optimization/51903
15931         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
15932         when removing stmts.
15934 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15936         PR target/50313
15937         * config/arm/arm.c (arm_load_pic_register): Use
15938         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
15939         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
15940         (arm_pic_static_addr): Likewise.
15941         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
15942         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
15943         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
15944         (pic_load_addr_unified): New.
15946 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
15948         PR target/51106
15949         * function.c (instantiate_virtual_regs_in_insn): Use
15950         delete_insn_and_edges when removing a wrong asm insn.
15952 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
15954         PR rtl-optimization/40761
15955         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
15956         Add new member loop_num.
15957         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
15958         (ira_build): Remove the parameter.
15960         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
15961         (ira.c): Do not build CFG loops for one region allocation.  Remove
15962         argument from ira_build call.
15964         * ira-build.c (init_loop_tree_node): New function.
15965         (create_loop_tree_nodes): Use it.  Separate the case when CFG
15966         loops are not built.
15967         (more_one_region_p): Check current_loops.
15968         (finish_loop_tree_nodes): Separate the case when CFG loops are not
15969         built.
15970         (add_loop_to_tree): Process loop equal to NULL too.
15971         (form_loop_tree): Separate the case when CFG loops are not built.
15972         Use explicitly number for the root.
15973         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
15974         an assertion.
15975         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
15976         instead of loop->num.
15977         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
15978         (mark_all_loops_for_removal): Ditto.
15979         (remove_unnecessary_regions): Separate the case when CFG loops
15980         are not built.
15981         (ira_build): Remove the parameter.  Use explicit number of regions
15982         when CFG loops are not built.
15984         * ira-color.c (print_loop_title): Separate the case for the root node.
15985         Use loop_num instead of loop->num.
15986         (move_spill_restore): Use loop_num instead of loop->num.
15988         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
15989         (change_loop): Ditto.
15990         (change_loop): Use loop_num instead of loop->num.
15992         * ira-lives.c (process_bb_node_lives): Ditto.
15994         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
15996         * ira-conflicts.c (print_allocno_conflicts): Ditto.
15998 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
16000         PR libmudflap/40778
16001         * tree-mudflap.c (mf_artificial): New function.
16002         (execute_mudflap_function_ops, execute_mudflap_function_decls,
16003         mx_register_decls, mudflap_enqueue_decl): Use it.
16005         PR target/51876
16006         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
16007         numbers in the insn pattern.
16009 2012-01-19  Michael Matz  <matz@suse.de>
16011         PR tree-optimization/46590
16012         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
16013         use it in remembering which conflicts we already created.
16014         (add_scope_conflicts): Adjust call to above, (de)allocate helper
16015         bitmap.
16017 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
16019         PR lto/51280
16020         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
16021         (merge_and_complain): Same.
16023 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
16025         PR bootstrap/50237
16026         * config/initfini-array.h: Guard content of the header
16027         with #ifdef HAVE_INITFINI_ARRAY.
16028         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
16029         Add initfini-array.h to tm_file here.
16030         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
16031         * config.gcc: Don't add initfini-array.h to tm_file here.
16032         * configure: Regenerated.
16034 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
16036         PR rtl-optimization/51505
16037         * df-problems.c (df_kill_notes): New parameter live. Update comment.
16038         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
16039         (df_note_bb_compute): Update the call to df_kill_notes.
16041 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
16043         * trans-mem.c (requires_barrier): Remove call to is_global_var.
16045 2012-01-18  Richard Guenther  <rguenther@suse.de>
16047         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
16048         of conversions to void *.
16050 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16051             Richard Sandiford  <rdsandiford@googlemail.com>
16053         PR middle-end/50325
16054         PR middle-end/51192
16055         * optabs.h (simplify_expand_binop): Declare.
16056         * optabs.c (simplify_expand_binop): Make global.
16057         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
16058         endian targets if the source cannot be exactly covered by word
16059         mode chunks.
16061 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
16063         PR bootstrap/51872
16064         * hard-reg-set.h (struct hard_reg_set_container): New type.
16065         * target.h (struct hard_reg_set_container): Forward declare.
16066         * target.def (set_up_by_prologue): New target hook.
16067         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
16068         * doc/tm.texi: Regenerated.
16069         * function.c (thread_prologue_and_epilogue_insns): Change
16070         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
16071         Call targetm.set_up_by_prologue on it.
16072         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
16073         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
16075 2012-01-17  Nick Clifton  <nickc@redhat.com>
16077         * config/rx/rx.c (rx_can_use_simple_return): New function.
16078         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
16079         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
16081 2012-01-17  Richard Guenther  <rguenther@suse.de>
16083         PR middle-end/51782
16084         * expr.c (expand_assignment): Take address-space information
16085         from the address operand of MEM_REF and TARGET_MEM_REF.
16086         (expand_expr_real_1): Likewise.
16088 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16090         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
16091         reload dump is requested.
16093 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
16095         PR other/51165
16096         * trans-mem.c (requires_barrier): Call may_be_aliased.
16098 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
16100         PR tree-optimization/51877
16101         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
16102         call arguments and fndecls compare equal, instead return false if they
16103         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
16104         both SSA_NAMEs that are valueized the same, or they satisfy
16105         operand_equal_p.
16107 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16109         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
16110         Solaris 11+.
16111         * configure: Regenerate.
16113 2012-01-16  Jan Hubicka  <jh@suse.cz>
16115         PR c/12245
16116         PR c++/14179
16117         * convert.c (convert_to_integer): Use fold_convert for
16118         converting an INTEGER_CST to integer type.
16120 2012-01-16  Jason Merrill  <jason@redhat.com>
16122         PR c++/14179
16123         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
16125 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
16127         PR bootstrap/51860
16128         * config/s390/s390.c (s390_chunkify_start): Don't skip
16129         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
16130         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
16131         If insn is followed by NOTE_INSN_VAR_LOCATION or
16132         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
16133         Don't use location of note insns.
16135         PR tree-optimization/51865
16136         * tree-inline.c (tree_function_versioning): Call remap_decl
16137         on DECL_RESULT whenever it has VOID_TYPE_P type.
16139 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
16141         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
16142         for calls to locally-binding MIPS16 functions if only the return
16143         type uses float regs.
16145 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
16146             Richard Sandiford  <rdsandiford@googlemail.com>
16148         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
16149         (SYMBOL_32_HIGH): Likewise.
16150         (mips_output_tls_reloc_directive): Declare.
16151         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
16152         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
16153         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
16154         (mips_lo_relocs, mips_hi_relocs): Make extern.
16155         (mips16_stub_function): Move up file.
16156         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
16157         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
16158         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
16159         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
16160         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
16161         (mips_get_tp): Add MIPS16 support.
16162         (mips_legitimize_tls_address): Remove MIPS16 sorry().
16163         Generalize DTPREL and TPREL handling.
16164         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
16165         Add MIPS16 TLS support.
16166         (mips_output_tls_reloc_directive): New function.
16167         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
16168         * config/mips/predicates.md (symbolic_operand_with_high)
16169         (tls_reloc_operand): New predicates.
16170         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
16171         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
16172         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
16173         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
16174         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
16175         (*tls_get_tp_mips16_call_<mode>): Likewise.
16177 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
16179         PR rtl-optimization/51821
16180         * recog.c (peep2_find_free_register): Determine clobbered registers
16181         from insn pattern.
16183 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
16185         PR target/50925
16186         * config/avr/avr-protos.h: Revert change of 2012-01-09.
16187         * config/avr/avr.c: Likewise.
16188         * config/avr/avr.h: Likewise.
16190 2012-01-13  Ian Lance Taylor  <iant@google.com>
16192         PR c++/50012
16193         * tree.h (TYPE_QUALS): Add cast to int.
16194         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
16196 2012-01-13  Ian Lance Taylor  <iant@google.com>
16198         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
16199         comparing param_index to VEC_length result.
16201 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
16203         * c-decl.c: Do not include tree-mudflap.h
16204         * tree-optimize.c: Likewise.
16205         * Makefile.in: Update dependencies.
16207 2012-01-13  Richard Guenther  <rguenther@suse.de>
16209         PR middle-end/8081
16210         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
16211         variable-sized result always use RSO.
16213 2012-01-12  DJ Delorie  <dj@redhat.com>
16215         * cfgexpand.c (convert_debug_memory_address): Allow any valid
16216         pointer type, not just the default pointer type.
16218 2012-01-09  Richard Henderson  <rth@redhat.com>
16219             Denis Chertykov  <chertykov@gmail.com>
16221         PR target/50925
16222         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
16223         * config/avr/avr.c (avr_can_eliminate): Simplify.
16224         (avr_initial_elimination_offset): Likewise.
16225         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
16226         (expand_epilogue): Likewise.
16227         (avr_legitimize_address): Gut.
16228         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
16229         (avr_hard_regno_nregs): New.
16230         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
16231         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
16232         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
16233         add soft frame pointer.
16234         (CALL_USED_REGISTERS): Likewise.
16235         (REG_CLASS_CONTENTS): Likewise.
16236         (REGISTER_NAMES): Likewise.
16237         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
16238         (HARD_FRAME_POINTER_REGNUM): New.
16239         (FRAME_POINTER_REGNUM): Use soft frame pointer.
16240         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
16241         remove the HARD_FRAME_POINTER self-elimination.
16243 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
16245         PR target/51756
16246         * config/avr/avr.c (avr_encode_section_info): Test for absence of
16247         DECL_EXTERNAL when checking for initializers of progmem variables.
16249 2012-01-12  Ira Rosen  <irar@il.ibm.com>
16251         PR tree-optimization/51799
16252         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
16253         that the last operation is a type demotion.
16255 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
16257         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
16258         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
16260 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
16262         PR bootstrap/51796
16263         * combine.c (distribute_notes): If i3 is a noreturn call,
16264         allow old_size to be equal to args_size and make sure the
16265         noreturn call gets REG_ARGS_SIZE note.
16266         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
16267         on noreturn calls even when the delta is 0.
16269 2012-01-11  Nathan Sidwell  <nathan@acm.org>
16271         * gcov.c (STRING_SIZE): Remove.
16272         (generate_results): Erase annotations for source files with no
16273         coverage information.
16274         (read_line): New.
16275         (output_lines): Use it.
16277 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16279         * gimple.h (gimplify_body): Remove first argument.
16280         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
16281         pointer set here, instead just pass DATA to walk_tree.
16282         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
16283         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
16284         (unvisit_body): Likewise, but with unmark_visited.
16285         (gimplify_body): Remove BODY_P argument and adjust.
16286         (gimplify_function_tree): Adjust call to gimplify_body.
16287         * omp-low.c (finalize_task_copyfn): Likewise.
16289 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16291         * tree.h (build_function_decl_skip_args): Add boolean parameter.
16292         (build_function_type_skip_args): Delete.
16293         * tree.c (build_function_type_skip_args): Make static and add
16294         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
16295         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
16296         pass it to build_function_type_skip_args.
16297         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
16298         (tree_function_versioning): Likewise.
16299         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
16300         build_function_decl_skip_args.
16301         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
16302         and pass it to build_function_decl_skip_args/tree_function_versioning.
16303         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
16304         * ipa-inline-transform.c (save_inline_function_body): Likewise.
16305         * trans-mem.c (ipa_tm_create_version): Likewise.
16306         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
16307         * tree-inline.c (declare_return_variable): Remove always-true test.
16308         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
16309         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
16310         * ipa-split.c (split_function): Skip the return value for the split
16311         part if it doesn't return.
16313 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16315         PR tree-optimization/49642
16316         * ipa-split.c (forbidden_dominators): New variable.
16317         (check_forbidden_calls): New function.
16318         (dominated_by_forbidden): Likewise.
16319         (consider_split): Check for forbidden dominators.
16320         (execute_split_functions): Initialize and free forbidden
16321         dominators info; call check_forbidden_calls.
16323 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
16325         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
16327 2012-01-11  Nick Clifton  <nickc@redhat.com>
16329         * config/rx/rx.md (return): Define pattern.
16331 2012-01-11  Richard Guenther  <rguenther@suse.de>
16333         * doc/extend.texi (malloc attribute): Adjust according to
16334         implementation.
16336 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
16337             Patrick Marlier  <patrick.marlier@gmail.com>
16339         PR middle-end/51516
16340         * trans-mem.c (get_cg_data): Traverse aliases if requested.
16341         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
16342         (ipa_tm_note_irrevocable): Same.
16343         (ipa_tm_scan_irr_block): Same.
16344         (ipa_tm_decrement_clone_counts): Same.
16345         (ipa_tm_scan_irr_function): Same.
16346         (ipa_tm_create_version_alias): Same.
16347         (ipa_tm_create_version): Same.
16348         (ipa_tm_transform_calls_redirect): Same.
16349         (ipa_tm_transform_calls): Same.
16350         (ipa_tm_transform_transaction): Same.
16351         (ipa_tm_execute): Same.
16353 2012-01-10  Richard Guenther  <rguenther@suse.de>
16355         PR middle-end/51806
16356         * opts.c (common_handle_option): Handle -Werror.
16358 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
16360         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
16361         operand number.
16363 2012-01-10  Jason Merrill  <jason@redhat.com>
16365         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
16366         information.
16368 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16370         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
16371         supports R_386_TLS_GD_PLT reloc.
16372         (gcc_cv_as_ix86_tlsldmplt): Check if linker
16373         supports R_386_TLS_LDM_PLT reloc.
16374         * configure: Regenerate.
16375         * config.in: Regenerate.
16377 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
16379         PR target/49868
16380         Extend __pgmx semantics to linearize memory.
16381         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
16382         determine if code comes inline or from libgcc.
16383         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
16384         (movmem_qi, movmem_qi): Set constraint #2 to "n".
16385         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
16386         (movmemx_qi, movmemx_hi): New insns.
16387         (xload_<mode>_libgcc): Rewrite to new insn condition.
16388         (xload_<mode>): Remove insns.
16389         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
16390         cases that don't satisfy avr_xload_libgcc_p().
16391         (avr_addr_space_convert): Allow converting in any direction.
16392         (avr_addr_space_subset_p): Return always true.
16393         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
16394         (avr_emit_movmemhi): Ditto.
16395         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
16396         (avr_out_movmem): Ditto.
16397         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
16398         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
16399         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
16400         (avr_encode_section_info): Encode 'progmem' in symbol flags.
16401         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
16403 2012-01-10  Richard Guenther  <rguenther@suse.de>
16405         PR tree-optimization/50913
16406         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
16407         Require data-refs to be representable by Graphite with respect
16408         to any loop nest.
16410 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
16412         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
16413         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
16415 2012-01-10  Tom de Vries  <tom@codesourcery.com>
16417         PR rtl-optimization/51271
16418         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
16419         handling annulled branch.
16421 2012-01-10  Richard Henderson  <rth@redhat.com>
16423         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
16424         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
16425         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
16426         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
16427         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
16428         arm_expand_vec_perm_const): New.
16429         * config/arm/arm-protos.h: Update.
16430         * config/arm/neon.md (UNSPEC_VCONCAT): New.
16431         (*neon_vswp<VDQX>): New.
16432         (neon_vcombine<VDX>): Use neon_split_vcombine.
16433         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
16434         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
16435         (vec_perm<VE>): New.
16437 2012-01-10  Richard Henderson  <rth@redhat.com>
16439         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
16440         use it if reload_completed.
16441         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
16442         arm_output_asm_insn, arm_process_output_memory_barrier,
16443         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
16444         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
16445         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
16446         arm_process_output_sync_insn, arm_output_sync_insn,
16447         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
16448         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
16449         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
16450         (emit_unlikely_jump): New.
16451         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
16452         (arm_split_atomic_op): New.
16453         * config/arm/arm-protos.h: Update.
16454         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
16455         (struct arm_sync_generator): Remove.
16456         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
16457         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
16458         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
16459         (VUNSPEC_LL, VUNSPEC_SC): New.
16460         (sync_result, sync_memory, sync_required_value, sync_new_value,
16461         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
16462         (attr length): Don't use arm_sync_loop_insns.
16463         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
16464         (movsfcc, movdfcc): Likewise.
16465         * config/arm/constraints.md (Ua): New.
16466         * config/arm/prediates.md (mem_noofs_operand): New.
16467         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
16468         (sync_clobber, sync_t2_reqd): Remove.
16469         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
16470         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
16471         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
16472         (arm_sync_compare_and_swap<SIDI>): Remove.
16473         (arm_sync_compare_and_swap<NARROW>): Remove.
16474         (arm_sync_lock_test_and_set<SIDI>): Remove.
16475         (arm_sync_lock_test_and_set<NARROW>): Remove.
16476         (arm_sync_new_<syncop><SIDI>): Remove.
16477         (arm_sync_new_<syncop><NARROW>): Remove.
16478         (arm_sync_new_nand<SIDI>): Remove.
16479         (arm_sync_new_nand<NARROW>): Remove.
16480         (arm_sync_old_<syncop><SIDI>): Remove.
16481         (arm_sync_old_<syncop><NARROW>): Remove.
16482         (arm_sync_old_nand<SIDI>): Remove.
16483         (arm_sync_old_nand<NARROW>): Remove.
16484         (*memory_barrier): Merge arm_output_memory_barrier.
16485         (atomic_compare_and_swap<QHSD>): New.
16486         (atomic_compare_and_swap<NARROW>_1): New.
16487         (atomic_compare_and_swap<SIDI>_1): New.
16488         (atomic_exchange<QHSD>): New.
16489         (cas_cmp_operand, cas_cmp_str): New.
16490         (atomic_op_operand, atomic_op_str): New.
16491         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
16492         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
16493         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
16494         (arm_load_exclusive<NARROW>): New.
16495         (arm_load_exclusivesi, arm_load_exclusivedi): New.
16496         (arm_store_exclusive<QHSD>): New.
16498 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
16500         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
16501         reload patterns if -mvsx-scalar-memory.
16503         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
16504         generated, even -mno-vsx-scalar-double was used.
16505         (vsx_xscvdpsp_scalar): Likewise.
16506         (vsx_xscvspdp_scalar2): Likewise.
16508 2012-01-09  Tom de Vries  <tom@codesourcery.com>
16509             Andrew Pinski  <apinski@cavium.com>
16511         PR debug/51471
16512         * reorg.c (fill_slots_from_thread): Don't speculate
16513         frame-related insns.
16515 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
16517         * sched-int.h (bb_note): Move to...
16518         * basic-block.h: ...here.
16519         * haifa-sched.c (bb_note): Move to...
16520         * cfgrtl.c: ...here.
16521         * function.c (next_block_for_reg): New function.
16522         (move_insn_for_shrink_wrap): Likewise.
16523         (prepare_shrink_wrap): Rewrite to use the above.
16525 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
16527         * gimple.c (is_gimple_non_addressable): Remove.
16528         * gimple.h: Remove is_gimple_non_addressable.
16529         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
16530         is_gimple_non_addressable.
16531         * trans-mem.c (expand_assign_tm): Same.
16533 2012-01-09  Richard Guenther  <rguenther@suse.de>
16535         PR tree-optimization/51775
16536         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
16537         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
16539 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
16541         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
16542         tuning parameters.
16543         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
16545 2012-01-09  Richard Guenther  <rguenther@suse.de>
16547         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
16549 2012-01-08  Jan Hubicka  <jh@suse.cz>
16551         PR tree-optimize/51680
16552         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
16553         on when known_vals needs to be computed; cleanup.
16555 2012-01-08  Jan Hubicka  <jh@suse.cz>
16557         PR tree-optimize/51694
16558         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
16560 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
16562         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
16563         for -std=c++98 and -std=c++11 too.
16565 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
16567         * cfgloop.c (cancel_loop): Add free() of bbs array.
16569 2012-01-07  Jan Hubicka  <jh@suse.cz>
16571         PR tree-optimization/51600
16572         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
16573         that benefits small functions.
16575 2012-01-07  Jan Hubicka  <jh@suse.cz>
16577         * ipa-inline.c (want_inline_small_function_p): Fix formating.
16579 2012-01-07  Jan Hubicka  <jh@suse.cz>
16581         PR tree-optimization/51680
16582         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
16583         whose inlining reduce unit size.
16585 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
16587         PR bootstrap/51725
16588         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
16589         Add canonical node to containing_mem chain after the non-canonical
16590         one, even if there weren't any locs to propagate.
16591         (remove_useless_values): Keep only canonical values.
16592         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
16593         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
16594         canonicalize mem_chain elements that are not discarded.
16596 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
16598         PR target/47333
16599         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
16600         before emitting functions.
16602         PR gcov-profile/50127
16603         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
16604         clear_aux_for_blocks.
16606 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
16608         PR debug/51746
16609         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
16611 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
16613         * c-decl.c (ext_block): Moved up.
16614         (collect_all_refs, for_each_global_decl): Take ext_block into account.
16616 2012-01-06  Han Shen  <shenhan@google.com>
16618         Translate built-in include paths for sysroot.
16619         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
16620         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
16622         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
16623         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
16625         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
16626         control whether sysroot should be prepended to gxx include dir.
16628         * configure: Regenerate.
16630 2012-01-06  Torvald Riegel  <triegel@redhat.com>
16632         PR rtl-optimization/51771
16633         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
16634         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
16636 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16638         PR tree-optimization/51315
16639         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
16640         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
16642 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
16644         PR target/51681
16645         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
16646         for shrp pattern.  Correctly handle and fixup shift variable.
16647         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
16649 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
16651         PR debug/51762
16652         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
16653         note when !ACCUMULATE_OUTGOING_ARGS.
16655 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16657         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
16658         condition.
16659         (extract_range_from_unary_expr_1): Avoid useless computations.
16661 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
16663         PR rtl-optimization/51767
16664         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
16665         of jump_block and add an extra edge for degenerated asm gotos.
16667         PR middle-end/51768
16668         * stmt.c (check_unique_operand_names): Don't ICE during error
16669         reporting if i is from labels chain.
16671         PR middle-end/44777
16672         * profile.c (branch_prob): Split bbs that have exit edge
16673         and need a fake entry edge too.
16675 2012-01-05  Jan Hubicka  <jh@suse.cz>
16677         PR middle-end/49710
16678         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
16679         unlooping loops.
16681 2012-01-05  Richard Guenther  <rguenther@suse.de>
16683         PR lto/50490
16684         * tree-streamer-out.c (write_ts_optimization): New function.
16685         (streamer_write_tree_body): Call it.
16686         * tree-streamer-in.c (lto_input_ts_optimization): New function.
16687         (streamer_read_tree_body): Call it.
16688         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
16690 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
16692         PR middle-end/51761
16693         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
16694         * gimplify.c (gimplify_cleanup_point_expr): Save and set
16695         in_cleanup_point_expr before gimplify_stmt call and restore it
16696         afterwards.
16697         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
16698         in_cleanup_point_expr is false.
16700 2012-01-05  Richard Guenther  <rguenther@suse.de>
16702         PR middle-end/51764
16703         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
16704         to c.opt.
16705         * toplev.c (process_options): Reject combining mudflap and LTO.
16706         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
16708 2012-01-05  Richard Guenther  <rguenther@suse.de>
16710         PR tree-optimization/51760
16711         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
16712         not VARYING.
16713         (bit_value_unop): Handle UNDEFINED operands.
16714         (bit_value_binop): Likewise.
16716 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
16718         * config/avr/avr.c (avr_replace_prefix): Remove.
16719         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
16720         (avr_asm_function_rodata_section): Ditto.
16721         (avr_asm_select_section): Ditto.
16723 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16725         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
16726         insertion.
16728 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
16730         PR bootstrap/51648
16731         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
16732         calls that have any non-fake successor edges.
16734         PR debug/51746
16735         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
16737 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16739         PR tree-optimization/51624
16740         * tree-sra.c (build_ref_for_model): When replicating a chain of
16741         COMPONENT_REFs, stop as soon as the offset would become negative.
16743 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
16745         PR debug/51695
16746         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
16747         in .debug_loc on the floor.
16749 2012-01-04  Andrew Pinski  <apinski@cavium.com>
16751         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
16753 2012-01-04  Andrew Pinski  <apinski@cavium.com>
16754             Adam Nemet  <anemet@caviumnetworks.com>
16756         * config/mips/mips.md (size): Add SI and DI.
16757         (SIZE): New mode attribute.
16758         (U): New code attribute.
16759         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
16760         (mips_lbux_<mode>): Delete.
16761         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
16762         (mips_lhx): Use gen_mips_lhx_extsi.
16763         (mips_lhx_<mode>): Delete.
16764         (mips_lwx): Delete.
16765         (mips_l<size>x): New expand.
16766         (mips_lwx_<mode>): Delete.
16767         (mips_l<GPR:size>x_<P:mode>): New pattern.
16768         (*mips_lw<u>x_<P:mode>_ext): Likewise.
16769         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
16770         * config/mips/mips.c (mips_lx_address_p): New function.
16771         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
16772         (dsp64): New availability predicate.
16773         (mips_builtins): Add an entry for __builtin_mips_ldx.
16774         * config/mips/mips.h (ISA_HAS_LBX): New define.
16775         (ISA_HAS_LBUX): Likewise.
16776         (ISA_HAS_LHX): Likewise.
16777         (ISA_HAS_LHUX): Likewise.
16778         (ISA_HAS_LWX): Likewise.
16779         (ISA_HAS_LWUX): Likewise.
16780         (ISA_HAS_LDX): Likewise.
16781         * doc/extend.texi (__builtin_mips_ldx): Document.
16783 2012-01-04  Tristan Gingold  <gingold@adacore.com>
16785         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
16786         when long pointers are used.
16787         * config.build (*-*-*vms*): Handle all OpenVMS targets.
16788         (alpha64-dec-*vms*, alpha*-dec-*vms*)
16789         (ia64-hp-*vms*): Remove.
16790         * config/vms/xm-vms64.h: Delete.
16792 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
16794         PR middle-end/51472
16795         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
16797 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
16799         * opts.c (finish_options): Remove duplicate sorry.
16801 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
16803         PR middle-end/51696
16804         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
16805         correctly.
16807 2012-01-04  Richard Guenther  <rguenther@suse.de>
16809         PR middle-end/51750
16810         * tree.c (size_low_cst): New function.
16811         * tree.h (size_low_cst): Declare.
16812         * fold-const.c (fold_comparison): Use it to extract the low
16813         part of the POINTER_PLUS_EXPR offset.
16815 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
16817         Fix clearing ZERO_REG
16818         * config/avr/avr.md (cc): Add alternative "ldi".
16819         (movqi_insn): Use it in cc attribute.
16820         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
16821         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
16822         (output_reload_insisf): Use ZERO_REG to pre-clear register.
16824 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16826         * configure: Regenerate.
16828 2012-01-04  Richard Guenther  <rguenther@suse.de>
16830         PR tree-optimization/49651
16831         * tree-ssa-structalias.c (type_can_have_subvars): New function.
16832         (var_can_have_subvars): Use it.
16833         (get_constraint_for_1): Only consider subfields if there can be any.
16835 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
16837         PR bootstrap/51725
16838         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
16839         to its new canonical_cselib_val and the cselib_val was in
16840         first_containing_mem chain, but the canonical_cselib_val was not,
16841         add the latter into the chain.
16842         (cselib_invalidate_mem): Compare canonical_cselib_val of
16843         addr_list chain elt with v.
16845         PR pch/51722
16846         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
16847         dwarf2out_undef): Allocate e.info using ggc_strdup instead
16848         of xstrdup.
16849         (output_macinfo_op): Don't ggc_strdup fd->filename.
16850         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
16851         then ggc_strdup it.  Don't free inc->info or cur->info.
16852         (output_macinfo): Don't free ref->info or file->info.
16854 2012-01-03  Ira Rosen  <irar@il.ibm.com>
16856         PR tree-optimization/51269
16857         * tree-vect-loop-manip.c (set_prologue_iterations): Make
16858         first_niters a pointer.
16859         (slpeel_tree_peel_loop_to_edge): Likewise.
16860         (vect_do_peeling_for_loop_bound): Update call to
16861         slpeel_tree_peel_loop_to_edge.
16862         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
16863         here.  Remove it from the parameters list.
16864         (vect_do_peeling_for_alignment): Update calls and compute
16865         wide_prolog_niters.
16867 2012-01-03  Richard Guenther  <rguenther@suse.de>
16869         PR tree-optimization/51070
16870         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
16871         Properly handle calls.
16873 2012-01-03  Richard Guenther  <rguenther@suse.de>
16875         PR tree-optimization/51692
16876         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
16877         the LHS of allocation stmts.
16879 2012-01-03  Olivier Hainque  <hainque@adacore.com>
16881         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
16883 2012-01-03  Olivier Hainque  <hainque@adacore.com>
16885         * collect2.c (main): In AIX specific computations for vector
16886         insertions, use CONST_CAST2 to cast from char ** to const char **.
16888 2012-01-03  Richard Guenther  <rguenther@suse.de>
16890         PR debug/51650
16891         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
16892         the context of a limbo DIE when it does not already exist.
16894 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
16896         PR tree-optimization/51719
16897         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
16898         but direct call is, clear direct call's lhs and don't add fallthrough
16899         edge from dcall_bb to join_bb and PHIs.
16901 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16903         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
16904         the instructions emitted by the pattern.
16905         ("*TDC_insn_<mode>"): Add comment.
16907 2012-01-03  Richard Guenther  <rguenther@suse.de>
16909         PR middle-end/51730
16910         * fold-const.c (fold_comparison): Properly canonicalize
16911         tree offset and HOST_WIDE_INT bit position.
16913 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
16915         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
16916         operands for extzv pattern.
16918 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
16920         PR bootstrap/51725
16921         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
16922         on mem_elt first.
16924 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
16926         * doc/invoke.texi (-flto and related options): Copy-edit.
16928 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16930         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
16932 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
16934         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
16935         New patterns.
16937 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16939         * expr.h (move_by_pieces_ninsns): Declare.
16940         * expr.c (move_by_pieces_ninsns): Make external.
16941         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
16942         (mips_store_by_pieces_p): Likewise.
16943         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
16944         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
16945         * config/mips/mips.c (mips_move_by_pieces_p): New function.
16946         (mips_store_by_pieces_p): Likewise.
16948 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
16950         * passes.c (register_one_dump_file): Free full_name.
16952         * reload1.c (reload): Don't allocate reg_max_ref_width here.
16953         (calculate_elim_costs_all_insns): Free offsets_at and
16954         offsets_known_at at the end and clear the pointers.
16956 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
16958         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
16959         this option introduced in r180739.
16961 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
16963         PR target/51345
16964         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
16965         (tmake_file target=avr): Add avr/t-multilib.
16967         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
16968         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
16969         * config/avr/genmultilib.awk: New file.
16970         * config/avr/t-multilib: New auto-generated file.
16971         * config/avr/multilib.h: New auto-generated file.
16972         * config/avr/t-avr (AVR_MCUS): New variable.
16973         (genopt.sh): Use it.
16974         (s-mlib): Depend on t-multilib.
16975         (t-multilib, multilib.h): New dependencies.
16976         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
16977         (MULTILIB_OPTIONS): Remove.
16978         (MULTILIB_MATCHES): Remove.
16979         (MULTILIB_DIRNAMES): Remove.
16980         (MULTILIB_EXCEPTIONS): Remove:
16981         * config/avr/genopt.sh: Don't use hard coded file name;
16982         pass AVR_MCUS from t-avr instead.
16984 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
16986         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
16988 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
16990         Implement light-weight DImode support.
16991         * config/avr/avr-dimode.md: New file.
16992         * config/avr/avr.md: Include it.
16993         (adjust_len): Add plus64, compare64.
16994         (HIDI): Remove code iterator.
16995         (code_stdname): New code attribute.
16996         (rotx, rotsmode): Remove DI.
16997         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
16998         as code iterator.
16999         * config/avr/avr-protos.h (avr_have_dimode): New.
17000         (avr_out_plus64, avr_out_compare64): New.
17001         * config/avr/avr.c (avr_out_compare): Handle DImode.
17002         (avr_have_dimode): New variable definition and initialization.
17003         (avr_out_compare64, avr_out_plus64): New functions.
17004         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
17005         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
17006         (avr_compare_pattern): Skip DImode comparisons.
17008 2012-01-02  Revital Eres  <revital.eres@linaro.org>
17010         * ddg.c (def_has_ccmode_p): New function.
17011         (add_cross_iteration_register_deps,
17012         create_ddg_dep_from_intra_loop_link): Call it.
17014 2012-01-02  Richard Guenther  <rguenther@suse.de>
17016         PR other/51679
17017         * invoke.texi (fassociative-math): Remove spurious paranthesis.
17019 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
17021         * gcc.c (process_command): Update copyright notice dates.
17022         * gcov.c (print_version): Likewise.
17023         * gcov-dump.c (print_version): Likewise.
17024         * mips-tfile.c (main): Likewise.
17025         * mips-tdump.c (main): Likewise.
17027 2012-01-01  Ira Rosen  <irar@il.ibm.com>
17029         PR tree-optimization/51704
17030         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
17031         a use is inside the basic block or loop before accessing its vect info.
17033 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
17035         PR rtl-optimization/51069
17036         * cfgloopmanip.c (remove_path): Removing path making irreducible
17037         region unconditional makes BB part of the region.
17039 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
17041         PR tree-optimization/51683
17042         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
17043         calls with side-effects.
17044         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
17046 Copyright (C) 2012 Free Software Foundation, Inc.
17048 Copying and distribution of this file, with or without modification,
17049 are permitted in any medium without royalty provided the copyright
17050 notice and this notice are preserved.