* graphite-poly.c (print_pbb_body): Fixup dump_bb call.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2012-07-18  Steven Bosscher  <steven@gcc.gnu.org>
2
3         * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
4
5 2012-07-18  Steven Bosscher  <steven@gcc.gnu.org>
6
7         * dumpfile.h (TDF_COMMENT): New define.
8         * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
9         EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
10         EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
11         EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
12         Move to new file cfg-flags.h.
13         (enum cfg_edge_flags): New enum, using cfg-flags.h.
14         (EDGE_ALL_FLAGS): Compute value automatically.
15         (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
16         BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
17         BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
18         BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
19         BB_IN_TRANSACTION): Move to new file cfg-flags.h.
20         (enum bb_flags): Rename to cfg_bb_flags.  Use cfg-flags.h.
21         (BB_ALL_FLAGS): New, compute value automatically.
22         (dump_bb_info): Update prototype.
23         (dump_edge_info): Update prototype.
24         * cfg-flags.h: New file.
25         * cfg.c (dump_edge_info): Take flags argument.  Be verbose only if
26         TDF_DETAILS and not TDF_SLIM.  Include cfg-flags.h for bitnames.
27         Check that the edge flags are within the range of EDGE_ALL_FLAGS.
28         (debug_bb): Update dump_bb call.
29         (dump_cfg_bb_info): Remove.
30         (dump_bb_info): New function.  Use cfg-flags.h for bitnames.
31         Adjust verbosity using TDF_* flags.  Check that the basic block flags
32         are within the range of BB_ALL_FLAGS.
33         (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
34         * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
35         first for consistency with other dump functions.
36         (dump_bb): Update prototype accordingly.
37         * cfghooks.c: Include dumpfile.h.
38         (verify_flow_info): Update dump_edge_info calls.
39         (dump_bb): Take a flags argument and pass it around.
40         Use dump_bb_info to dump common information about a basic block.
41         (dump_flow_info): Moved here from cfgrtl.c.  Make IL agnostic.
42         (debug_flow_info): Moved here from cfgrtl.c.
43         * profile.c (is_edge_inconsistent): Update dump_bb calls.
44         * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
45         * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
46         print_rtl_slim_with_bb): Remove prototypes.
47         (dump_insn_slim): Adjust prototype to take a const_rtx.
48         (print_rtl_with_bb): Adjust prototype.
49         * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
50         * sched-vis.c (dump_insn_slim): Take a const_rtx.
51         (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
52         (print_rtl_slim_with_bb): Remove.
53         (print_rtl_slim): Rename to debug_rtl_slim.  Print only insn info,
54         not basic block info (print_rtl_with_bb with TDF_SLIM should be used
55         for that.  Prototype here near DEBUG_FUNCTION marker.
56         (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
57         Use dump_bb.
58         (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
59         * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
60         (remove_bb): Update dump_bb call.
61         (gimple_debug_bb): Use dump_bb.
62         (dump_function_to_file): Update gimple_dump_bb call.
63         (print_loops_bb): Likewise.
64         * tree-flow.h (gimple_dump_bb): Update prototype.
65         * gimple-pretty-print.c (dump_bb_header): Rename to
66         dump_gimple_bb_header.  Write to a stream instead of a pretty
67         printer.  Use dump_bb_info to dump basic block info.
68         (dump_bb_end): Rename to dump_gimple_bb_footer.  Write to a
69         stream instead of a pretty printer.  Use dump_bb_info.
70         (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
71         (gimple_dump_bb): Do it here with dump_gimple_bb_header and
72         dump_gimple_bb_footer.
73         * cfgrtl.c (rtl_dump_bb): Update prototype.  Only dump DF if the
74         dump flags have TDF_DETAILS.  Use dump_insn_slim if TDF_SLIM.
75         (print_rtl_with_bb): Take a flags argument and pass it around.
76         Use dump_insn_slim if TDF_SLIM.
77         (dump_bb_info): Removed and re-incarnated in cfg.c.
78         (dump_flow_info): Moved to cfghooks.c.
79         (debug_flow_info): Moved to cfghooks.c.
80         * passes.c (execute_function_dump): Unconditionally use
81         print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
82         * final.c (dump_basic_block_info): Update dump_edge_info calls.
83         * tree-vrp.c (dump_asserts_for): Likewise.
84         * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
85         * tree-if-conv.c (if_convertible_bb_p): Don't look at
86         EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
87         * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
88         for the same reason.
89         * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
90
91 2012-07-17  Richard Guenther  <rguenther@suse.de>
92
93         * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
94         vars here, use create_tmp_reg where appropriate.
95         (vect_create_addr_base_for_vector_ref): Do not add referenced
96         vars here, use create_tmp_reg where appropriate.
97         (vect_create_data_ref_ptr): Likewise.
98         (vect_create_destination_var): Likewise.
99         (vect_permute_store_chain): Likewise.
100         (vect_permute_load_chain): Likewise.
101         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
102         Likewise.
103         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
104         * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
105         (vect_handle_widen_op_by_const): Likewise.
106         * tree-vect-stmts.c (vect_init_vector): Likewise.
107         (vectorizable_load): Likewise.
108
109 2012-07-17  Tom de Vries  <tom@codesourcery.com>
110
111         * hwint.c: Fix loop range.
112
113 2012-07-17  Tom de Vries  <tom@codesourcery.com>
114
115         * double-int.h (double_int_popcount): New inline function.
116         * hwint.c (popcount_hwi): New function.
117         * hwint.h (popcount_hwi): Declare function.  New inline function.
118
119 2012-07-17  Richard Henderson  <rth@redhat.com>
120
121         * tree-vect-stmts.c (supportable_widening_operation): Remove decl
122         parameters.
123         (vectorizable_conversion): Update supportable_widening_operation call.
124         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
125         (vect_recog_widen_shift_pattern): Likewise.
126         * tree-vectorizer.h: Update decl.
127
128 2012-07-17  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
129             Ulrich Weigand  <ulrich.weigand@linaro.org>
130
131         * common/config/arm/arm-common.c (arm_option_optimization_table):
132         Enable -fsched-pressure by default while optimizing.
133         * config/arm/arm.c (arm_option_override): Use the alternate scheduler
134         pressure algorithm by default.
135
136 2012-07-16  Oleg Endo  <olegendo@gcc.gnu.org>
137
138         * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
139         (CONST_OK_FOR_I10): Move macro to ...
140         * config/sh/sh.c: ... here.
141         (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
142         CONST_OK_FOR_I06.
143
144 2012-07-16  Oleg Endo  <olegendo@gcc.gnu.org>
145
146         * config/sh/sh.md: Delete mov related define_peephole patterns.
147
148 2012-07-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
149
150         PR c++/53919
151         * doc/install.texi (Installing GCC): Refer to instructions for
152         released versions. Fix hyphenation.
153
154 2012-07-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
155
156         * config/spu/spu.c (targetm): Move to bottom of file.
157         (spu_attribute_table): Likewise.
158         (spu_option_override, spu_init_builtins, spu_builtin_decl,
159         spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
160         spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
161         adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
162         frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
163         insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
164         get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
165         spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
166         spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
167         spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
168         spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
169         spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
170         spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
171         spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
172         spu_encode_section_info, spu_legitimize_address,
173         spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
174         spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
175         spu_addr_space_pointer_mode, spu_addr_space_address_mode,
176         spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
177         spu_section_type_flags, spu_select_section, spu_unique_section,
178         spu_trampoline_init, spu_conditional_register_usage,
179         spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
180         spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
181         spu_setup_incoming_varargs): Remove prototypes.
182         (spu_legitimize_address): Add "static" to definition.
183
184 2012-07-16  Jakub Jelinek  <jakub@redhat.com>
185
186         * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
187
188 2012-07-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
189
190         * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
191         before calling gsi_stmt.
192
193 2012-07-16  Kirill Yukhin  <kirill.yukhin@intel.com>
194
195         Revert
196         2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
197
198         * config/i386/i386.md (stack_protect_set): Disable the pattern
199         for Android since Android libc (bionic) does not provide random
200         value for stack protection guard at gs:0x14. Guard value
201         will be provided from external symbol (default implementation).
202         (stack_protect_set_<mode>): Likewise.
203         (stack_protect_test): Likewise.
204         (stack_protect_test_<mode>): Likewise.
205
206 2012-07-16  H.J. Lu  <hongjiu.lu@intel.com>
207
208         PR middle-end/53959
209         PR bootstrap/53963
210         * gimple.c (gimple_types_compatible_p_1): Restore type attribute
211         comparison.
212
213 2012-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
214
215         * opts.c (default_option): Add -fvect-cost-model to default options
216         at -O3 and above.
217
218 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
219
220         * graphite-clast-to-gimple.c, graphite-dependences.c,
221         graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
222         for pass TODO flags.
223         * Makefile.in: Fix dependencies.
224
225 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
226
227         * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
228         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
229
230         * function.c (stack_protect_epilogue): Use expand_call to expand
231         targetm.stack_protect_fail.
232         * stmt.c (expand_expr_stmt): Remove now-unused function.
233         * tree.h (expand_expr_stmt): Remove prototype.
234         * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
235         hook must return a CALL_EXPR.
236         * doc/tm.texi: Regenerate.
237
238         * emit-rtl.c (emit_label_before): Do not allow the same label
239         to be emitted twice.
240         (emit_label_after): Likewise.
241         (emit_label): Likewise.
242
243         * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
244         TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
245         * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
246         TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
247
248 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
249
250         * system.h (dump_file): Do not define.
251         * tree-pass.h: Include dumpfile.h, which is a new file containing...
252         (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
253         dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
254         dump_flag_name, dump_file, dump_flags, dump_file_name,
255         get_dump_file_info, struct dump_file_info): all of this, moved to...
256         * dumpfile.h: Here, new file.
257         * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
258         (dump_stmt): Remove prototype for C++ specific function.
259         (dump_enumerated_decls): Move prototype from here...
260         * tree-flow.h (dump_enumerated_decls): ... to here.
261         (get_ref_base_and_extent) Move prototype from here ...
262         * tree.h (get_ref_base_and_extent) ... to here.
263         * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
264         gimple-pretty-print.h is enough.  Do not include tree-dump.h,
265         include timevar.h and dumpfile.h instead.
266         (struct numbered_tree_d, compare_decls_by_uid,
267         dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
268         * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
269         dump_enumerated_decls_push, dump_enumerated_decls):... to here.
270         Do not include timevar.h.
271         * tree.c: Do not include timevar.h.
272         * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
273         timevar.h.
274         (dump_cfg_stats): Use current_function_name.
275         (gimple_cfg2vcg): Likewise.
276         (dump_function_to_file): Likewise.
277         * df-scan.c: Do not include tree-pass.h and timevar.h.
278         Include dumpfile.h.
279         (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
280         use print_current_pass.
281         * df-problems.c: Include dumpfile.h.
282         Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
283         leads to errors in the code not selected.
284         (df_note_compute): Do not print_rtl_with_bb here.  Fix compilation
285         bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
286         * lcm.c: Include dumpfile.h.
287         Remove obsolete include of insn-attr.h.
288         * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
289         missing probability notes.
290         * stmt.c: Include dumpfile.h.
291         (emit_case_decision_tree): Re-enable printing expand details only
292         if TDF_DETAILS.
293         * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c, 
294         cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c, 
295         cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c, 
296         coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c, 
297         dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c, 
298         function.c, fwprop.c, gcse.c, gimple-fold.c, 
299         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, 
300         gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c, 
301         graphite-dependences.c, graphite-interchange.c, 
302         graphite-optimize-isl.c, graphite-poly.c, 
303         graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c, 
304         ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c, 
305         ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c, 
306         ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c, 
307         jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c, 
308         loop-unroll.c, loop-unswitch.c, lower-subreg.c, 
309         lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c, 
310         mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c, 
311         plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c, 
312         print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c, 
313         regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c, 
314         sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c, 
315         store-motion.c, tracer.c, trans-mem.c, tree-affine.c, 
316         tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c, 
317         tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
318         tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c, 
319         tree-mudflap.c, tree-nrv.c, tree-object-size.c, 
320         tree-optimize.c, tree-outof-ssa.c, tree-predcom.c, 
321         tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c, 
322         tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c, 
323         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c, 
324         tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c, 
325         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c, 
326         tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c, 
327         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, 
328         tree-ssa-loop-manip.c, tree-ssa-loop-niter.c, 
329         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c, 
330         tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c, 
331         tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c, 
332         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c, 
333         tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c, 
334         tree-ssa-threadedge.c, tree-ssa-threadupdate.c, 
335         tree-ssa-uncprop.c, tree-ssa-uninit.c, 
336         tree-switch-conversion.c, tree-tailcall.c, 
337         tree-vect-data-refs.c, tree-vect-loop.c, 
338         tree-vect-loop-manip.c, tree-vectorizer.c, 
339         tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c, 
340         tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
341         only if needed.  If tree-pass.h is included, do not include timevar.h
342         and dumpfile.h.  If tree-pass.h is not included but dump_file, or
343         dump_flags, or the TDF_* flags are used, include dumpfile.h.
344         If gimple-pretty-print.h is included, don't include tree-pretty-print.h.
345         Remove assorted unnecessary includes.
346
347         * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
348         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
349         config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
350         Include dumpfile.h.
351         * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
352         * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
353         spu/t-spu-elf: Fix dependencies.
354
355 2012-07-16  Dehao Chen  <dehao@google.com>
356
357         Revert
358         2012-07-10  Dehao Chen  <dehao@google.com>
359
360         * tree.h (phi_arg_d): New field.
361         * tree-flow-inline.h (gimple_phi_arg_block): New function.
362         (gimple_phi_arg_block_from_edge): New function.
363         (gimple_phi_arg_set_block): New function.
364         (gimple_phi_arg_has_block): New function.
365         (redirect_edge_var_map_block): New function.
366         * tree-flow.h (_edge_var_map): New field.
367         * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
368         * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
369         redirect_edge_var_map_add.
370         * tree-outof-ssa.c (_elim_graph): New field.
371         (insert_partition_copy_on_edge): New parameter.
372         (insert_value_copy_on_edge): New parameter.
373         (insert_rtx_to_part_on_edge): New parameter.
374         (insert_part_to_rtx_on_edge): New parameter.
375         (elim_graph_add_edge): New parameter.
376         (elim_graph_remove_succ_edge): New parameter.
377         (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
378         (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
379         (new_elim_graph): Add block debug info.
380         (clear_elim_graph): Likewise.
381         (delete_elim_graph): Likewise.
382         (elim_graph_add_node): Likewise.
383         (elim_graph_add_edge): Likewise.
384         (elim_graph_remove_succ_edge): Likewise.
385         (eliminate_build): Likewise.
386         (elim_forward): Likewise.
387         (elim_unvisited_predecessor): Likewise.
388         (elim_backward): Likewise.
389         (elim_create): Likewise.
390         (eliminate_phi): Likewise.
391         (insert_backedge_copies): Likewise.
392         * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
393         add_phi_arg.
394         (rewrite_add_phi_arguments): Likewise.
395         * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
396         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
397         * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
398         * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
399         * tree-ssa-loop-manip.c (create_iv): Likewise.
400         (add_exit_phis_edge): Likewise.
401         (split_loop_exit_edge): Likewise.
402         (copy_phi_node_args): Likewise.
403         (tree_transform_and_unroll_loop): Likewise.
404         * value-prof.c (gimple_ic): Likewise.
405         (gimple_stringop_fixed_value): Likewise.
406         * tree-tailcall.c (add_successor_phi_arg): Likewise.
407         (eliminate_tail_call): Likewise.
408         (create_tailcall_accumulator): Likewise.
409         (tree_optimize_tail_calls_1): Likewise.
410         * tree-phinodes.c (add_phi_arg): Likewise.
411         (make_phi_node): Likewise.
412         (resize_phi_node): Likewise.
413         (remove_phi_arg_num): Likewise.
414         * omp-low.c (expand_parallel_call): Likewise.
415         (expand_omp_for_static_chunk): Likewise.
416         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
417         Likewise.
418         (slpeel_update_phi_nodes_for_guard1): Likewise.
419         (slpeel_update_phi_nodes_for_guard2): Likewise.
420         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
421         (set_prologue_iterations): Likewise.
422         (slpeel_tree_peel_loop_to_edge): Likewise.
423         (vect_loop_versioning): Likewise.
424         * tree-parloops.c (create_phi_for_local_result): Likewise.
425         (transform_to_exit_first_loop): Likewise.
426         (create_parallel_loop): Likewise.
427         * ipa-split.c (split_function): Likewise.
428         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
429         (vect_create_epilog_for_reduction): Likewise.
430         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
431         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
432         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
433         (cond_if_else_store_replacement_1): Likewise.
434         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
435         (remove_forwarder_block_with_phi): Likewise.
436         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
437         * tree-predcom.c (initialize_root_vars): Likewise.
438         (initialize_root_vars_lm): Likewise.
439         * sese.c (sese_add_exit_phis_edge): Likewise.
440         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
441         * tree-ssa.c (flush_pending_stmts): Likewise.
442         (redirect_edge_var_map_add): Likewise.
443         (ssa_redirect_edge): Likewise.
444         * gimple-streamer-in.c (input_phi): Likewise.
445         * tree-vect-stmts.c (vectorizable_load): Likewise.
446         * tree-inline.c (copy_phis_for_bb): Likewise.
447         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
448         * tree-switch-conversion.c (fix_phi_nodes): Likewise.
449         * tree-cfg.c (reinstall_phi_args): Likewise.
450         (gimple_make_forwarder_block): Likewise.
451         (add_phi_args_after_copy_edge): Likewise.
452         (gimple_duplicate_sese_tail): Likewise.
453
454 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
455
456         * config/i386/i386.md (stack_protect_set): Disable the pattern
457         for Android since Android libc (bionic) does not provide random
458         value for stack protection guard at gs:0x14. Guard value
459         will be provided from external symbol (default implementation).
460         (stack_protect_set_<mode>): Likewise.
461         (stack_protect_test): Likewise.
462         (stack_protect_test_<mode>): Likewise.
463
464 2012-07-16  Hans-Peter Nilsson  <hp@axis.com>
465
466         * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
467         * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
468         CONSTANT_P and cris_legitimate_address_p.
469         * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
470         (cris_preferred_reload_class): Don't return GENERAL_REGS as
471         preferred to MOF_SRP_REGS.
472
473         * config/cris/cris.c (cris_init_libfuncs): Handle initialization
474         of library functions for basic atomic compare-and-swap.
475         * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
476         * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
477         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
478         ("cris_atomic_fetch_<atomic_op_name><mode>_1")
479         ("atomic_compare_and_swap<mode>")
480         ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
481         TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
482         * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
483         * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
484         (atomic_op_op_pred): Ditto.
485         (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
486         reflect the change to include %2 in expansion.  All callers changed.
487         (qm3): New mode_attr.
488         ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
489         as predicate for operand 2. 
490         ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME.  Use
491         "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
492         constraint for operand 2.
493         ("atomic_compare_and_swap<mode>"): Add FIXME.  Change predicate to
494         nonmemory_operand for operand 3.
495         ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
496         exclude memory.  Improve emitted sync code for v10 and v32.  Use
497         <qm3> instead of <m> for size designator for cmp.
498         ("atomic_compare_and_swap<mode>"): Change predicate to
499         nonmemory_operand for operand 3.  Add FIXME.
500         ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
501         constraints for operand 3 to exclude memory.
502         ("atomic_fetch_<atomic_op_name><mode>")
503         ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
504         calls on result of call to need_atomic_barrier_p.
505
506 2012-07-15  Richard Sandiford  <rdsandiford@googlemail.com>
507
508         * config/mips/mips.md (move_type): Replace mfhilo and mthilo
509         with mflo and mtlo.
510         (type): Split mfhilo into mfhi and mflo.  Split mthilo into mthi
511         and mtlo.  Adjust move_type->type mapping.
512         (may_clobber_hilo): Split mthilo into mthi and mtlo.
513         (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
514         (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
515         (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
516         instead of mthilo and mfhilo.
517         (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
518         (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
519         * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
520         (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
521         Use mflo instead of mfhilo.
522         * config/mips/10000.md (r10k_arith): Split mthilo.
523         (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
524         * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
525         (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
526         * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
527         mthilo and mfhilo.
528         * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
529         * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
530         Likewise.
531         * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
532         * config/mips/5400.md (ir_vr54_hilo): Likewise.
533         * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
534         * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
535         * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
536         * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
537         * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
538         * config/mips/generic.md (generic_hilo): Likewise.
539         * config/mips/loongson2ef.md (ls2_alu): Likewise.
540         * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
541         * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
542         (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
543         * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
544         * config/mips/xlr.md (xlr_hilo): Likewise.
545
546 2012-07-14  Andrew Stubbs  <ams@codesourcery.com>
547             Sandra Loosemore  <sandra@codesourcery.com>
548
549         * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
550
551 2012-07-14  Uros Bizjak  <ubizjak@gmail.com>
552
553         * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
554         for TARGET_SSE.
555
556 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
557
558         * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
559
560 2012-07-13  Bill Schmidt  <wschmidt@linux.ibm.com>
561
562         PR bootstrap/53955
563         * config/spu/spu.c (spu_init_cost): Mark static.
564         (spu_add_stmt_cost): Likewise.
565         (spu_finish_cost): Likewise.
566         (spu_destroy_cost_data): Likewise.
567         * config/i386/i386.c (ix86_init_cost): Mark static.
568         (ix86_add_stmt_cost): Likewise.
569         (ix86_finish_cost): Likewise.
570         (ix86_destroy_cost_data): Likewise.
571         * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
572         (rs6000_add_stmt_cost): Likewise.
573         (rs6000_finish_cost): Likewise.
574         (rs6000_destroy_cost_data): Likewise.
575
576 2012-07-13  Steven Bosscher  <steven@gcc.gnu.org>
577
578         * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
579         ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
580         ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
581         ATTRIBUTE_MALLOC.
582         * alloc-pool.h (pool_alloc): Likewise.
583
584         * final.c (final): Do not loop to find max_uid.
585
586 2012-07-13  Steven Bosscher  <steven@gcc.gnu.org>
587
588         * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
589         * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
590
591 2012-07-13  Richard Guenther  <rguenther@suse.de>
592
593         PR tree-optimization/53907
594         * tree-ssa-forwprop.c (associate_pointerplus): New function.
595         (ssa_forward_propagate_and_combine): Call it.
596
597 2012-07-13  Richard Guenther  <rguenther@suse.de>
598
599         PR tree-optimization/53922
600         * tree-vrp.c (value_inside_range): Change prototype to take
601         min/max instead of value-range.
602         (range_includes_zero_p): Likewise.  Return the result from
603         value_inside_range.
604         (extract_range_from_binary_expr_1): Adjust to handle dont-know
605         return value from range_includes_zero_p.
606         (extract_range_from_unary_expr_1): Likewise.
607         (compare_range_with_value): Likewise.
608         (vrp_meet_1): Likewise.
609
610 2012-07-13  Bill Schmidt  <wschmidt@linux.ibm.com>
611
612         * doc/tm.texi: Regenerate.
613         * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
614         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
615         (TARGET_VECTORIZE_FINISH_COST): Likewise.
616         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
617         * targhooks.c (default_init_cost): New function.
618         (default_add_stmt_cost): Likewise.
619         (default_finish_cost): Likewise.
620         (default_destroy_cost_data): Likewise.
621         * targhooks.h (default_init_cost): New decl.
622         (default_add_stmt_cost): Likewise.
623         (default_finish_cost): Likewise.
624         (default_destroy_cost_data): Likewise.
625         * target.def (init_cost): New DEFHOOK.
626         (add_stmt_cost): Likewise.
627         (finish_cost): Likewise.
628         (destroy_cost_data): Likewise.
629         * target.h (struct _stmt_vec_info): New extern decl.
630         (stmt_vectype): Likewise.
631         (stmt_in_inner_loop_p): Likewise.
632         * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
633         (stmt_vector_for_cost): New VEC/typedef.
634         (add_stmt_info_to_vec): New function.
635         (struct _slp_tree): Remove cost.inside_of_loop field.
636         (struct _slp_instance): Remove cost.inside_of_loop field; add
637         stmt_cost_vec field.
638         (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
639         (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
640         (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
641         (struct _vect_peel_extended_info): Add stmt_cost_vec field.
642         (struct _loop_vec_info): Add target_cost_data field.
643         (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
644         (struct _bb_vec_info): Add target_cost_data field.
645         (BB_VINFO_TARGET_COST_DATA): New accessor macro.
646         (struct _stmt_vec_info): Remove cost.inside_of_loop field.
647         (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
648         (stmt_vinfo_set_inside_of_loop_cost): Remove function.
649         (init_cost): New function.
650         (add_stmt_cost): Likewise.
651         (finish_cost): Likewise.
652         (destroy_cost_data): Likewise.
653         (vect_model_simple_cost): Change parameter list.
654         (vect_model_store_cost): Likewise.
655         (vect_model_load_cost): Likewise.
656         (record_stmt_cost): New extern decl.
657         (vect_get_load_cost): Change parameter list.
658         (vect_get_store_cost): Likewise.
659         * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
660         (destroy_loop_vec_info): Call destroy_cost_data.
661         (vect_estimate_min_profitable_iters): Remove old calculation of
662         inside costs; call finish_cost instead.
663         (vect_model_reduction_cost): Call add_stmt_cost instead of old
664         inside-costs calculation.
665         (vect_model_induction_cost): Likewise.
666         * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
667         return a stmt_vector_for_cost; modify calls to vect_get_load_cost
668         and vect_get_store_cost to obtain the value to return.
669         (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
670         vect_get_data_access_cost and store it in the minimum peeling
671         structure.
672         (vect_peeling_hash_choose_best_peeling): Change the parameter list
673         to add a (stmt_vector_for_cost *) output parameter, and set its value.
674         (vect_enhance_data_refs_alignment): Ignore the new return value from
675         calls to vect_get_data_access_cost; obtain stmt_cost_vec from
676         vect_peeling_hash_choose_best_peeling and pass its contents to the
677         target cost model.
678         * tree-vect-stmts.c (stmt_vectype): New function.
679         (stmt_in_inner_loop_p): Likewise.
680         (record_stmt_cost): Likewise.
681         (vect_model_simple_cost): Add stmt_cost_vec parameter; call
682         record_stmt_cost instead of old calculation; don't call
683         stmt_vinfo_set_inside_of_loop_cost.
684         (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
685         old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
686         (vect_model_store_cost): Add stmt_cost_vec parameter; call
687         record_stmt_cost instead of old calculation; add stmt_cost_vec
688         parameter to vect_get_store_cost call; don't call
689         stmt_vinfo_set_inside_of_loop_cost.
690         (vect_get_store_cost): Add stmt_cost_vec parameter; call
691         record_stmt_cost instead of old calculation.
692         (vect_model_load_cost): Add stmt_cost_vec parameter; call
693         record_stmt_cost instead of old calculation; add stmt_cost_vec
694         parameter to vect_get_load_cost call; don't call
695         stmt_vinfo_set_inside_of_loop_cost.
696         (vect_get_load_cost): Add stmt_cost_vec parameter; call
697         record_stmt_cost instead of old calculation.
698         (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
699         (vectorizable_conversion): Likewise.
700         (vectorizable_assignment): Likewise.
701         (vectorizable_shift): Likewise.
702         (vectorizable_operation): Likewise.
703         (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
704         (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
705         (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
706         * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
707         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
708         (TARGET_VECTORIZE_FINISH_COST): Likewise.
709         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
710         (spu_init_cost): New function.
711         (spu_add_stmt_cost): Likewise.
712         (spu_finish_cost): Likewise.
713         (spu_destroy_cost_data): Likewise.
714         * config/i386/i386.c (ix86_init_cost): New function.
715         (ix86_add_stmt_cost): Likewise.
716         (ix86_finish_cost): Likewise.
717         (ix86_destroy_cost_data): Likewise.
718         (TARGET_VECTORIZE_INIT_COST): New macro def.
719         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
720         (TARGET_VECTORIZE_FINISH_COST): Likewise.
721         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
722         * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
723         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
724         (TARGET_VECTORIZE_FINISH_COST): Likewise.
725         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
726         (rs6000_init_cost): New function.
727         (rs6000_add_stmt_cost): Likewise.
728         (rs6000_finish_cost): Likewise.
729         (rs6000_destroy_cost_data): Likewise.
730         * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
731         (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
732         (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
733         stmt_cost_vec parameter to vect_model_store_cost and
734         vect_model_simple_cost calls.
735         (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
736         parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
737         vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
738         calculating cost more than once for loads; remove inside_cost
739         parameter from recursive vect_build_slp_tree calls; call
740         record_stmt_cost instead of old calculation.
741         (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
742         the instance; free it on premature exit; remove inside_cost parameter
743         from vect_build_slp_tree call; add stmt_cost_vec parameter to
744         vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
745         (new_bb_vec_info): Call init_cost.
746         (destroy_bb_vec_info): Call destroy_cost_data.
747         (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
748         statement recorded with an SLP instance; call finish_cost instead of
749         the old calculation.
750         (vect_update_slp_costs_according_to_vf): Record statement costs from
751         SLP instances, multiplying by the appropriate number of copies; don't
752         update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
753
754 2012-07-13  Richard Guenther  <rguenther@suse.de>
755
756         PR middle-end/53937
757         * builtins.c (get_pointer_alignment_1): Handle constant
758         pointers.
759
760 2012-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
761             Steven Bosscher  <steven@gcc.gnu.org>
762             Bernd Schmidt  <bernds@codesourcery.com>
763
764         PR rtl-optimization/53908
765         * df-problems.c (can_move_insns_across): When doing
766         memory-reference book-keeping, handle call insns.
767
768 2012-07-13  Richard Guenther  <rguenther@suse.de>
769
770         * gimple.c (gimple_types_compatible_p_1): Remove redundant
771         type attribute comparisons.
772         (gimple_canonical_types_compatible_p): Likewise.
773
774 2012-07-12  Hans-Peter Nilsson  <hp@axis.com>
775
776         PR rtl-optimization/53176
777         * rtlanal.c (rtx_cost): Adjust default cost for X with a
778         UNITS_PER_WORD factor for all X according to the size of
779         its mode, not just for SUBREGs with untieable modes.
780         Handle SET.  Use factor * factor for MULT, DIV, UDIV,
781         MOD, UMOD.
782
783 2012-07-12  Uros Bizjak  <ubizjak@gmail.com>
784
785         * config/i386/i386.md (QImode and HImode cmove splitters): Merge
786         QImode and HImode splitters.  Use ix86_comparison_operator.
787         Explicitly match FLAGS_REG.
788         (DFmode cmove splitter): Explicitly match FLAGS_REG.
789
790 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
791
792         * expr.h (can_move_by_pieces): Move prototype from here ...
793         * tree.h (can_move_by_pieces): ... to here.
794         * optabs.h (set_widening_optab_handler): Use XCNEW.
795         * gimplify.c: Do not include expr.h.
796
797         * toplev.c: Do not include dwarf2out.h.
798         * config/ia64/ia64.c: Likewise.
799         * config/sparc/sparc.c: Likewise.
800         * config/sparc/t-sparc (sparc.o): Fix dependencies.
801
802         * Makefile.in (toplev.o): Fix dependencies
803         (c-family/c-gimplify.o): Likewise.
804         (c-family/c-common.o): Likewise.
805
806 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
807
808         * basic-block.h (struct edge_def): Use basic_block instead of
809         basic_block_def *.
810         * cfgloop.h (struct loop_exit, struct loop): Likewise.
811         * gengenrtl.c (type_from_format): Likewise.  Also for 'tree'
812         instead of union tree_node *.
813         * rtl.h (union rtunion_def, emit_insn_before_noloc,
814         emit_insn_after_noloc, add_insn_before, add_insn_after,
815         debug_bb_slim): Likewise.
816         * tree-inline.h (struct copy_body_data): Likewise.
817         * sched-rgn.c (dump_region_dot): Likewise.
818         * gimple.h (struct gimple_statement_base, gimple_set_bb,
819         gsi_move_to_bb_end): Likewise.
820         * sched-vis.c (debug_bb_slim): Likewise.
821         (debug_bb_n_slim): Likewise.
822         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
823         (mn10300_block_contains_call):
824
825 2012-07-11  Greta Yorsh  <Greta.Yorsh@arm.com>
826
827         PR target/53859
828         * config/arm/arm.c (arm_early_load_addr_dep): Handle new
829         epilogue patterns.
830
831 2012-07-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
832
833         * doc/extend.texi (Namespace Association): Alter cautionary text.
834
835 2012-07-10  Oleg Endo  <olegendo@gcc.gnu.org>
836
837         PR target/53911
838         * config/sh/sh.md: Remove displacement addresssing related splits.
839
840 2012-07-10  Xinliang David Li  <davidxl@google.com>
841
842         * doc/invoke.texi: New option documented.
843         * flag-types.h: New enum type.
844         * gimplify.c (gimplify_bind_expr): Control
845         clobber generation with new option.
846         (gimplify_target_expr): Ditto.
847         * common.opt: New option.
848
849 2012-07-10  Julian Brown  <julian@codesourcery.com>
850
851         * config/arm/arm.md (movsi): Don't split symbol refs here.
852         (define_split): New.
853
854 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
855
856         PR bootstrap/53913
857         * config/m68k/m68k.c (m68k_epilogue_uses): New.
858         * config/m68k/m68k.h (EPILOGUE_USES): Use it.
859         * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
860
861 2012-07-10  Richard Henderson  <rth@redhat.com>
862
863         * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
864         * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
865         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
866         * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
867         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
868         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
869         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
870         (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
871         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
872         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
873         (bdesc_args): Remove entries to match.
874         (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
875         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
876         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
877         * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
878         (rs6000_builtin_mul_widen_odd): Remove.
879         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
880         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
881         * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
882         (spu_builtin_mul_widen_odd): Remove.
883         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
884         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
885         * doc/tm.texi.in: Don't document the removed hooks.
886
887         * tree-vect-stmts.c (supportable_widening_operation): Expand
888         WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
889
890         * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
891         (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
892         * optabs.c (can_mult_highpart_p): New.
893         (expand_mult_highpart): New.
894         * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
895         * tree-vect-generic.c (expand_vector_operations_1): Don't expand
896         by pieces if can_mult_highpart_p.
897         (expand_vector_divmod): Use can_mult_highpart_p and always
898         generate MULT_HIGHPART_EXPR.
899         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
900         * tree-vect-stmts.c (vectorizable_operation): Likewise.
901
902         * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
903         (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
904         * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
905         (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
906         (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
907         (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
908         * config/spu/spu-builtins.def: Update pattern names to match.
909
910         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
911         from altivec_vmuleub.
912         (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
913         (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
914         (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
915         (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
916         (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
917         (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
918         (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
919         * config/rs6000/rs6000-builtin.def: Update pattern names to match.
920
921         * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
922         avx2_umulv4siv4di3.
923         (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
924         (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
925         (mulv4si3): Remove XOP test shadowed by SSE4 test.
926         * config/i386/i386.c (bdesc_args): Update pattern names.
927         (ix86_expand_sse2_mulvxdi3): Likewise.
928         (ix86_expand_mul_widen_evenodd): Likewise.  Remove XOP test
929         shadowed by SSE4 test.
930
931         * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
932         * cfgexpand.c (expand_debug_expr): Handle them.
933         * expr.c (expand_expr_real_2): Likewise.
934         * fold-const.c (fold_binary_loc): Likewise.
935         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
936         * optabs.c (optab_for_tree_code): Likewise.
937         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
938         * tree-inline.c (estimate_operator_cost): Likewise.
939         * tree-pretty-print.c (dump_generic_node): Likewise.
940         * tree.c (commutative_tree_code): Likewise.
941         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
942         Handle type change before looking up optab.
943         * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
944         (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
945         (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
946         (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
947         * genopinit.c (optabs): Initialize them.
948         * doc/md.texi: Document them.
949
950 2012-07-10  Dehao Chen  <dehao@google.com>
951
952         * tree.h (phi_arg_d): New field.
953         * tree-flow-inline.h (gimple_phi_arg_block): New function.
954         (gimple_phi_arg_block_from_edge): New function.
955         (gimple_phi_arg_set_block): New function.
956         (gimple_phi_arg_has_block): New function.
957         (redirect_edge_var_map_block): New function.
958         * tree-flow.h (_edge_var_map): New field.
959         * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
960         * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
961         redirect_edge_var_map_add.
962         * tree-outof-ssa.c (_elim_graph): New field.
963         (insert_partition_copy_on_edge): New parameter.
964         (insert_value_copy_on_edge): New parameter.
965         (insert_rtx_to_part_on_edge): New parameter.
966         (insert_part_to_rtx_on_edge): New parameter.
967         (elim_graph_add_edge): New parameter.
968         (elim_graph_remove_succ_edge): New parameter.
969         (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
970         (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
971         (new_elim_graph): Add block debug info.
972         (clear_elim_graph): Likewise.
973         (delete_elim_graph): Likewise.
974         (elim_graph_add_node): Likewise.
975         (elim_graph_add_edge): Likewise.
976         (elim_graph_remove_succ_edge): Likewise.
977         (eliminate_build): Likewise.
978         (elim_forward): Likewise.
979         (elim_unvisited_predecessor): Likewise.
980         (elim_backward): Likewise.
981         (elim_create): Likewise.
982         (eliminate_phi): Likewise.
983         (insert_backedge_copies): Likewise.
984         * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
985         add_phi_arg.
986         (rewrite_add_phi_arguments): Likewise.
987         * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
988         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
989         * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
990         * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
991         * tree-ssa-loop-manip.c (create_iv): Likewise.
992         (add_exit_phis_edge): Likewise.
993         (split_loop_exit_edge): Likewise.
994         (copy_phi_node_args): Likewise.
995         (tree_transform_and_unroll_loop): Likewise.
996         * value-prof.c (gimple_ic): Likewise.
997         (gimple_stringop_fixed_value): Likewise.
998         * tree-tailcall.c (add_successor_phi_arg): Likewise.
999         (eliminate_tail_call): Likewise.
1000         (create_tailcall_accumulator): Likewise.
1001         (tree_optimize_tail_calls_1): Likewise.
1002         * tree-phinodes.c (add_phi_arg): Likewise.
1003         (make_phi_node): Likewise.
1004         (resize_phi_node): Likewise.
1005         (remove_phi_arg_num): Likewise.
1006         * omp-low.c (expand_parallel_call): Likewise.
1007         (expand_omp_for_static_chunk): Likewise.
1008         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
1009         Likewise.
1010         (slpeel_update_phi_nodes_for_guard1): Likewise.
1011         (slpeel_update_phi_nodes_for_guard2): Likewise.
1012         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1013         (set_prologue_iterations): Likewise.
1014         (slpeel_tree_peel_loop_to_edge): Likewise.
1015         (vect_loop_versioning): Likewise.
1016         * tree-parloops.c (create_phi_for_local_result): Likewise.
1017         (transform_to_exit_first_loop): Likewise.
1018         (create_parallel_loop): Likewise.
1019         * ipa-split.c (split_function): Likewise.
1020         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
1021         (vect_create_epilog_for_reduction): Likewise.
1022         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1023         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
1024         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
1025         (cond_if_else_store_replacement_1): Likewise.
1026         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
1027         (remove_forwarder_block_with_phi): Likewise.
1028         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
1029         * tree-predcom.c (initialize_root_vars): Likewise.
1030         (initialize_root_vars_lm): Likewise.
1031         * sese.c (sese_add_exit_phis_edge): Likewise.
1032         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
1033         * tree-ssa.c (flush_pending_stmts): Likewise.
1034         (redirect_edge_var_map_add): Likewise.
1035         (ssa_redirect_edge): Likewise.
1036         * gimple-streamer-in.c (input_phi): Likewise.
1037         * tree-vect-stmts.c (vectorizable_load): Likewise.
1038         * tree-inline.c (copy_phis_for_bb): Likewise.
1039         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1040         * tree-switch-conversion.c (fix_phi_nodes): Likewise.
1041         * tree-cfg.c (reinstall_phi_args): Likewise.
1042         (gimple_make_forwarder_block): Likewise.
1043         (add_phi_args_after_copy_edge): Likewise.
1044         (gimple_duplicate_sese_tail): Likewise.
1045
1046 2012-07-09  Oleg Endo  <olegendo@gcc.gnu.org>
1047
1048         PR target/53886
1049         * config/sh/sh.c (sequence_insn_p): New function.
1050         (find_barrier, sh_insn_length_adjustment): Use it.
1051
1052 2012-07-09  Iain Sandoe  <iain@codesourcery.com>
1053
1054         PR target/53283
1055         * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
1056         if defined.
1057         * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
1058         SUBTARGET_FOLD_BUILTIN.
1059         * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
1060         SUBTARGET_FOLD_BUILTIN.
1061
1062 2012-07-09  Iain Sandoe  <iain@codesourcery.com>
1063
1064         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
1065         runtime exceptions model setting from here ...
1066         * config/darwin.c (darwin_override_options): ... to here.
1067
1068 2012-07-09  Steven Bosscher  <steven@gcc.gnu.org>
1069
1070         PR tree-optimization/53887
1071         * tree-cfg.c (group_case_labels_stmt): Make non-static.
1072         * tree-flow.h (group_case_labels_stmt): Add prototype.
1073         * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
1074         to pre-process every switch.
1075
1076 2012-07-09  Jason Merrill  <jason@redhat.com>
1077
1078         PR c++/53882
1079         * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
1080         (type_hash_eq): Likewise.
1081
1082 2012-07-09  Tom de Vries  <tom@codesourcery.com>
1083             Richard Guenther  <rguenther@suse.de>
1084
1085         * tree-ssa-ccp.c (optimize_unreachable): New function.
1086         (execute_fold_all_builtins): Use optimize_unreachable to optimize
1087         BUILT_IN_UNREACHABLE.  Don't optimize after BUILT_IN_UNREACHABLE.
1088
1089 2012-07-09  Richard Guenther  <rguenther@suse.de>
1090
1091         PR bootstrap/53898
1092         * graphite-optimize-isl.c: Make sure CU is not empty.
1093
1094 2012-07-09  Steven Bosscher  <steven@gcc.gnu.org>
1095
1096         * gensupport.c (init_rtx_reader_args_cb): Start counting code
1097         generating patterns from 1 to free up 0 for CODE_FOR_nothing.
1098         * gencodes.c (main): Give CODE_FOR_nothing the value 0.  Add
1099         the LAST_INSN_CODE marker at the end.
1100         * genoutput.c (nothing): New static struct data.
1101         (idata): Initialize to &nothing.
1102         (idata_end): Initialize to &nothing.next.
1103         (init_insn_for_nothing): New function to create dummy 'nothing' insn.
1104         (main): Use it.
1105         * genpeep.c (insn_code_number): Remove global variable.
1106         (gen_peephole): Take it as an argument instead.
1107         (main): Take insn_code_number from read_md_rtx.
1108         * optabs.h: Revert r161809:
1109         (optab_handlers): Change type of insn_code back to insn_code.
1110         (optab_handler, widening_optab_handler, set_optab_handler,
1111         set_widening_optab_handler, convert_optab_handler,
1112         set_convert_optab_handler, direct_optab_handler,
1113         set_direct_optab_handler): Remove int casts.
1114         Revert to treating the insn_code field as "insn_code".
1115
1116 2012-07-08  Oleg Endo  <olegendo@gcc.gnu.org>
1117
1118         * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
1119         * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
1120         * config/sh/sh-protos.h: Declare it.
1121
1122 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1123
1124         * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
1125         (dump_fixup_graph): Use current_function_name.
1126         (adjust_cfg_counts): Likewise.
1127         * ira-conflicts.c: Do not include tree.h.
1128         (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
1129
1130 2012-07-08  Oleg Endo  <olegendo@gcc.gnu.org>
1131
1132         PR target/51244
1133         * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
1134
1135 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1136
1137         * basic-block.h: Re-group most prototypes per file.
1138         (struct edge_list): Remove num_blocks field.
1139         (dump_bb_info): Adjust prototypes.
1140         (dump_reg_info): Move prototype to regs.h.
1141         * function.h: Do not include tree.h.
1142         Include vec.h, vecir.h, input.h and machmode.h to compensate.
1143         (function_name): New prototype.
1144         * gimple.h: Include tree.h to compensate for basic-block.h change.
1145         * langhooks.h: Note that tree.h is only necessary for enum tree_code.
1146         * regs.h (dump_reg_info): Prototype here.
1147         * regset.h: Adjust file reference in comment.
1148         (debug_regset): Remove prototype.
1149         * rtl.h: Include flags.h for flag_var_tracking_assignments.
1150         (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
1151         instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
1152         (dump_reg_info, dump_flow_info): Remove prototypes.
1153         * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
1154         to here, the only user.  Make static.
1155         (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
1156         * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
1157         flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
1158         tree-pass.h, cfgloop.h, and tree-flow.h.
1159         Include basic-block.h, the first header I'd expect to be included.
1160         (reg_obstack): Move to df-core.c.
1161         (free_edge): Remove bogus ATTRIBUTE_UNUSED.
1162         (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
1163         (redirect_edge_succ_nodup): Move to cfghooks.c.
1164         (dump_regset, debug_regset): Move to df-core.c.
1165         (dump_bb_info): Move to cfgrtl.c.
1166         (dump_reg_info): Move to regstat.c.
1167         (dump_flow_info): Move to cfgrtl.c.
1168         (debug_flow_info): Likewise.
1169         (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
1170         * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
1171         insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
1172         (flow_active_insn_p, forwarder_block_p, can_fallthru,
1173         could_fall_through): Move to cfgrtl.c.
1174         (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
1175         (create_edge_list): Do not set edge_list's removed num_blocks.
1176         (print_edge_list): Look at n_basic_blocks instead of num_blocks.
1177         (flow_nodes_print): Remove.
1178         (flow_edge_list_print): Remove.
1179         (inverted_post_order_compute): Use FOR_ALL_BB.
1180         *cfgrtl.c (dump_flow_info): Moved from cfg.c.
1181         Do not call dump_reg_info.
1182         (debug_flow_info): Moved from cfg.c
1183         (dump_bb_info): Moved from cfg.c.  Take 'verbose' argument
1184         to avoid looking at TDF_* flags from tree-pass.h.
1185         (flow_active_insn_p, forwarder_block_p, can_fallthru,
1186         could_fall_through): Moved from cfganal.c.
1187         (print_rtl_with_bb): Adjust dump_bb_info calls.
1188         * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
1189         (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
1190         (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
1191         * cselib.c: Include tree.h with a FIXME.
1192         * df-core.c (reg_obstack): Moved from cfg.c.
1193         (dump_regset): Likewise.
1194         (debug_regset): Likewise.  Make a DEBUG_FUNCTION.
1195         * final.c (compute_alignments): Call dump_reg_info before
1196         dump_flow_info.
1197         * function.c (function_name): New function.
1198         (current_function_name): Use it.
1199         * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
1200         dump_flow_info.
1201         * ira-conflicts.c: Include tree.h with a note.
1202         * regstat.c (dump_reg_info): Moved here from cfg.c.
1203         * loop-init.c: Include regs.h instead of hard-reg-set.h.
1204         (rtl_loop_init): Call dump_reg_info before dump_flow_info.
1205         (rtl_loop_done): Likewise.
1206         * mcf.c: Include tree.h before langhooks.h.
1207         * predict.c (maybe_hot_count_p): Assert we have cfun.
1208         (probably_never_executed_bb_p): Likewise.
1209         * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
1210         instead of dump_flow_info.
1211         * sched-deps.c: Include tree.h with a FIXME.
1212         (call_may_noreturn_p): Add FIXME note why this function has to
1213         look at function decls instead of function decl flags.
1214         * sched-vis.c: Include tree.h with a FIXME.
1215         (print_rtl_slim): Adjust dump_bb_info uses.
1216         * statistics.c (statistics_fini_pass_2): Use current_function_name
1217         to avoid including tree.h.
1218         (statistics_counter_event): Use function_name for the same reason.
1219         (statistics_histogram_event): Likewise.
1220         * tracer.c (tracer): Remove bogus gcc_assert.  Use brief_dump_cfg
1221         instead of dump_flow_info.
1222         * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
1223         before dump_flow_info.
1224         * doc/cfg.texi: Update CFG documentation.
1225         * Makefile.in (RTL_H): Depend on FLAGS_H.
1226         (GIMPLE_H): Depend on TREE_H.
1227         (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
1228         but no longer on TREE_H.
1229         (C_COMMON_H): Depend on TREE_H.
1230         (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
1231         sched-deps.o, sched-vis.o): Fixup dependencies.
1232
1233 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1234
1235         * alias.h: Do not include coretypes.h in header files.
1236         * cppbuiltin.h: Likewise.
1237         * double-int.h: Likewise.
1238         * gimple-fold.h: Likewise.
1239         * flags.h: Likewise.
1240         * tree-ssa-alias.h: Likewise.
1241         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
1242         OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
1243         * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
1244         (TREE_H): Likewise.
1245         (ALIAS_H): Do not depend on coretypes.h.
1246         (FLAGS_H): Likewise.
1247         (realmpfr.o): Depend on coretypes.h.
1248
1249 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1250
1251         * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
1252         gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
1253
1254 2012-07-07  Richard Earnshaw  <rearnsha@arm.com>
1255
1256         * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
1257         (TARGET_FPA): Delete definition.
1258         (TARGET_MAVERICK): Likewise.
1259         (TARGET_FPA_EMU2): Likewise.
1260         (arm_fp_model): Remove FPA and Maverick models.
1261         (arm_arch_cirrus): Delete declaration.
1262         (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
1263         (FIXED_REGISTERS): Remove FPA and Maverick support.  Reorganize.
1264         (CALL_USED_REGISTERS): Likewise.
1265         (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
1266         (FIRST_VFP_REGNUM): Renumbered.
1267         (D7_VFP_REGNUM): Chain definition.
1268         (LAST_LO_VFP_REGNUM): Likewise.
1269         (FIRST_HI_VFP_REGNUM): Likewise.
1270         (LAST_HI_VFP_REGNUM): Likewise.
1271         (FIRST_IWMMXT_GR_REGNUM): Likewise.
1272         (LAST_IWMMXT_GR_REGNUM): Likewise.
1273         (FIRST_IWMMXT_REGNUM): Likewise.
1274         (LAST_IWMMXT_REGNUM): Likewise.
1275         (FRAME_POINTER_REGNUM): Renumbered.
1276         (ARG_POINTER_REGNUM): Renumbered.
1277         (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
1278         (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
1279         (HARD_REGNO_REGNUM): Remove FPA support.
1280         (REG_ALLOC_ORDER): Remove FPA and Maverick registers.  Reorganize.
1281         (reg_class): Likewise.
1282         (REG_CLASS_NAMES): Likewise.
1283         (REG_CLASS_CONTENTS): Likewise.
1284         (CANNOT_CHANGE_MODE_CLASS): Never true.  Update comment.
1285         (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
1286         (CLASS_MAX_NREGS): Remove FPA and Maverick support.
1287         * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
1288         Reorganize.  Use AAPCS preferred names.
1289         (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick.  Update
1290         comments.
1291         (OVERLAPPING_REGISTER_NAMES): Update register numbering.
1292         * arm.c (FL_CIRRUS): Delete definition.
1293         (arm_arch_cirrus): Delete variable.
1294         (arm_float_words_big_endian): Delete function.
1295         (cirrus_memory_offset): Delete function.
1296         (output_mov_long_double_fpa_from_arm): Delete function.
1297         (output_mov_long_double_arm_from_fpa): Delete function.
1298         (output_mov_double_fpa_from_arm): Delete function.
1299         (output_mov_double_arm_from_fpa): Delete function.
1300         (emit_sfm): Delete function.
1301         (maybe_get_arm_condition_code): Update comment.
1302         (arm_file_start): Always use softvfp for softfloat systems.
1303         (thumb_core_reg_alloc_order): Adjust for updated register allocation.
1304         (arm_option_override): Remove FPA and Maverick support.  Always
1305         default to vfp as the fallback FPU format.
1306         (use_return_insn): Remove FPA support.
1307         (arm_get_frame_offsets): Likewise.
1308         (arm_save_coproc_regs): Likewise.
1309         (arm_canonicalize_comparison): Remove Maverick support.
1310         (arm_select_cc_mode): Likewise.
1311         (arm_gen_compare_reg): Likewise.
1312         (arm_print_operand): Likewise.
1313         (arm_libcall_value_1): Remove FPA and Maverick support.
1314         (arm_function_value_regno_p): Likewise.
1315         (arm_apply_result_size): Likewise.
1316         (arm_legitimate_index_p): Likewise.
1317         (thumb2_legitimate_index_p): Likewise.
1318         (legitimize_reload_address): Likewise.
1319         (arm_register_move_cost): Likewise.
1320         (arm_hard_regno_mode_ok): Likewise.
1321         (arm_regno_class): Likewise.
1322         (arm_dbx_register_number): Likewise.
1323         (arm_emit_unwind_sequence): Likewise.
1324         (arm_conditional_register_usage): Likewise.
1325         * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
1326         (cirrus_memory_offset): Likewise.
1327         (output_move_long_double_fpa_from_arm): Likewise.
1328         (output_move_long_double_arm_from_fpa): Likewise.
1329         (output_move_double_fpa_from_arm): Likewise.
1330         (output_move_double_arm_from_fpa): Likewise.
1331         (arm_float_words_big_endian): Likewise.
1332         * arm.md (CC_REGNUM): Renumbered.
1333         (VFPCC_REGNUM): Moved here.  Renumbered.
1334         (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
1335         (attr fpu): Remove FPA and Maverick support.
1336         * vfp.md (VFPCC_REGNUM): Delete.  Moved to arm.md.
1337         * arm-cores.def (ep9312): Remove Maverick support.
1338         * arm-arches.def (ep9312): Delete architecture.
1339         * arm-tables.opt: Regenerated.
1340
1341         * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
1342
1343 2012-07-07  Steven Bosscher  <steven@gcc.gnu.org>
1344
1345         PR tree-optimization/53881
1346         * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
1347         comparing labels to establish uniqueness of a switch case target,
1348         use the CFG instead.
1349
1350 2012-07-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
1351
1352         * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
1353         due to negative shift amount.
1354
1355 2012-07-07  Hans-Peter Nilsson  <hp@axis.com>
1356
1357         Fix configure test for "stack protector support in target C library".
1358         * configure.ac (test_prefix, test_exec_prefix): Move setting from
1359         inside sysroot handling to before and outside it.
1360         * configure: Regenerate.
1361
1362 2012-07-06  Kai Tietz  <ktietz@redhat.com>
1363
1364         PR bootstrap/52947
1365         * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
1366         as "/mingw/include".
1367
1368 2012-07-06  Alexandre Oliva  <aoliva@redhat.com>
1369
1370         PR debug/53820
1371         * var-tracking.c (vt_add_function_parameter): Convert
1372         internal_arg_pointer into arg_pointer-based address even
1373         without DRAP.
1374
1375 2012-07-06  Alexandre Oilva  <aoliva@redhat.com>
1376
1377         PR rtl-optimization/53827
1378         PR debug/53671
1379         PR debug/49888
1380         * alias.c (memrefs_conflict_p): Adjust offset and size by the
1381         same amount for alignment ANDs.
1382
1383 2012-07-06  Tom de Vries  <tom@codesourcery.com>
1384
1385         PR tree-optimization/51879
1386         * tree-ssa-sccvn.c (copy_reference_ops_from_call)
1387         (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
1388         (visit_use): Also call visit_reference_op_call for calls with a vdef.
1389
1390 2012-07-06  Tom de Vries  <tom@codesourcery.com>
1391
1392         PR tree-optimization/52009
1393         * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
1394         value numbers of gimple_vdef.
1395         * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
1396         prototype.
1397         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
1398         (vn_reference_insert): Add and handle vdef parameter.
1399         (visit_reference_op_load): Add argument to vn_reference_insert call.
1400         (visit_reference_op_store): Find value number of vdef of store.  Insert
1401         value number of vdef of store.
1402
1403 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
1404
1405         * config/i386/i386.md (simple lea to add peephole): Also transform
1406         RTXes where second PLUS operand matches output.
1407
1408 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
1409
1410         * config/i386/i386.c (construct_plt_address): Make static.
1411         * config/i386/i386-protos.h (construct_plt_address): Remove.
1412
1413 2012-07-06  Nick Clifton  <nickc@redhat.com>
1414
1415         * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
1416         default_encode_section_info.
1417
1418 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
1419
1420         PR target/53853
1421         * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
1422         emit PIC sequence for fnaddr symbol reference in advance.
1423
1424 2012-07-06  Eric Botcazou  <ebotcazou@adacore.com>
1425
1426         Revert
1427         2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
1428
1429         * dwarf2out.c (function_possibly_abstracted_p): New static function.
1430         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
1431         cgraph_function_possibly_inlined_p.
1432         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
1433         (process_scope_var): Do not emit concrete instances of abstracted
1434         nested functions from here.
1435         (gen_decl_die): Emit the abstract instance if the function is possibly
1436         abstracted and not only possibly inlined.
1437         (dwarf2out_finish): Find the first non-abstract parent instance and
1438         attach concrete instances on the limbo list to it.
1439
1440 2012-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1441             Julian Brown  <julian@codesourcery.com>
1442
1443         PR target/48941
1444         PR target/51980
1445         * config/arm/neon-gen.ml (return_by_ptr): Delete.
1446         (print_function): Handle empty strings.
1447         (return): Delete use of return_by_ptr.
1448         (mask_shape_for_shuffle): New function.
1449         (mask_elems): Likewise.
1450         (shuffle_fn): Likewise.
1451         (params): Simplify and remove use of return_by_ptr.
1452         (get_shuffle): New function.
1453         (print_variant): Update.
1454         * config/arm/neon.ml (rev_elems): New function.
1455         (permute_range): Likewise.
1456         (zip_range): Likewise.
1457         (uzip_range): Likewise.
1458         (trn_range): Likewise.
1459         (zip_elems): Likewise.
1460         (uzip_elems): Likewise.
1461         (trn_elems): Likewise.
1462         (features): New enumeration Use_shuffle. Delete ReturnPtr.
1463         (pf_su_8_16): New.
1464         (suf_32): New.
1465         (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
1466         * config/arm/arm_neon.h: Regenerate.
1467
1468 2012-07-05  Richard Guenther  <rguenther@suse.de>
1469
1470         * tree-pretty-print.c (dump_generic_node): Properly test
1471         the result of exact_log2.
1472
1473 2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1474
1475         * config/s390/s390-protos.h (s390_expand_movmem)
1476         (s390_expand_cmpmem): Add return value.
1477         * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
1478         Return FALSE to use the library function in some cases.
1479         * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
1480         helper functions.
1481
1482 2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1483
1484         * config.gcc: Enable ifunc attribute by default on s390 and s390x.
1485
1486 2012-07-05  Steven Bosscher  <steven@gcc.gnu.org>
1487
1488         * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
1489         * stmt.c (dump_case_nodes): New.
1490         (expand_case): Split out code generation parts into new functions.
1491         (expand_switch_as_decision_tree_p): Split out from expand_case.
1492         (emit_case_decision_tree): Likewise.
1493         (emit_case_dispatch_table): Likewise.
1494
1495 2012-07-05  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1496
1497         * config/arm/iterators.md (SDF): New mode iterator.
1498         (V_if_elem): Add support for SF and DF modes.
1499         (V_reg): Likewise.
1500         (F_constraint): New mode iterator attribute.
1501         (F_fma_type): Likewise.
1502         config/arm/vfp.md (fma<SDF:mode>4): New pattern.
1503         (*fmsub<SDF:mode>4): Likewise.
1504         (*fmnsub<SDF:mode>4): Likewise.
1505         (*fmnadd<SDF:mode>4): Likewise.
1506
1507 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
1508
1509         * expmed.c (expand_mult): Initialize coeff and is_neg.
1510
1511 2012-07-04  Oleg Endo  <olegendo@gcc.gnu.org>
1512
1513         * config/sh/predicates.md (zero_extend_operand): New predicate.
1514         * config/sh/sh.md (zero_extendhisi2): Simplify by using new
1515         zero_extend_operand predicate.
1516         (zero_extendqisi2): Likewise.
1517
1518 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
1519
1520         PR middle-end/53321
1521         * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
1522         to not call cgraph_propagate_frequency if something was changed.
1523
1524 2012-07-04  Richard Guenther  <rguenther@suse.de>
1525
1526         PR middle-end/53433
1527         * gimple-fold.c (get_base_constructor): Do not return an
1528         error_mark_node DECL_INITIAL.
1529
1530 2012-07-04  Richard Guenther  <rguenther@suse.de>
1531
1532         PR tree-optimization/53844
1533         * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
1534         the loop virtual PHI.
1535
1536 2012-07-04  Richard Guenther  <rguenther@suse.de>
1537
1538         PR tree-optimization/53849
1539         * tree-cfg.c (move_stmt_op): Only call add_referenced_var
1540         for duplicated locals.  Use add_referenced_var_1 to avoid
1541         pushing/popping cfun.
1542
1543 2012-07-04  Kai Tietz  <ktietz@redhat.com>
1544
1545         * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
1546         * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
1547         prototype.
1548         * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
1549         as i386_pe_reloc_rw_mask.
1550
1551 2012-07-04  Richard Guenther  <rguenther@suse.de>
1552
1553         * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
1554         as in free_lang_data_in_type.
1555
1556 2012-07-04  Tobias Grosser <tobias@grosser.es>
1557             Michael Matz  <matz@suse.de>
1558
1559         * Makefile.in (OBJS): Add graphite-optimize-isl.o.
1560         (graphite-optimize-isl.o): Add dependencies.
1561         * common.opt (floop-nest-optimize): New flag.
1562         * doc/invoke.texi (floop-nest-optimize): Document.
1563         * graphite-dependences.c (compute_deps): Export.
1564         * graphite-poly.h (compute_deps): Declare.
1565         * graphite-optimize-isl.c: New file.
1566         * graphite-poly.c (apply_poly_transforms): Run the loop
1567         nest optimizer.
1568         * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
1569         if -floop-nest-optimize is enabled.
1570
1571 2012-07-03  Oleg Endo  <olegendo@gcc.gnu.org>
1572
1573         * config/sh/predicates.md (logical_and_operand): New predicate.
1574         * config/sh/constraints.md (Jmb, Jmw): New constraints.
1575         * config/sh/sh.md (andsi3): Move expander above insns.  Add handling
1576         of 0xFFFF constant.  Use logical_and_operand predicate and
1577         satisfies_constraint_Jmb, satisfies_constraint_Jmw.
1578         (*andsi3_compact): Make it an insn_and_split.  Use
1579         logical_and_operand predicate.  Add Jmb,Jmw alternatives.
1580
1581 2012-07-03  Jason Merrill  <jason@redhat.com>
1582
1583         PR c++/53826
1584         * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
1585
1586 2012-07-03  Nick Clifton  <nickc@redhat.com>
1587
1588         * config/mep/mep.c (mep_reorg_regmove): Use
1589         next_nonnote_non_debug_insn to advance to the next insn.  Do not
1590         expect delete_insn to return an rtx.
1591
1592 2012-07-03  Richard Guenther  <rguenther@suse.de>
1593
1594         * doc/install.texi (CLooG): Clarify how CLooG needs to be
1595         configured and that it needs to be built against ISL 0.10.
1596
1597 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1598
1599         * config/i386/i386.c (ix86_option_override_internal): Fix wrong
1600         code model string in the error message.
1601
1602 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1603
1604         PR target/53811
1605         * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
1606         sibcall_insn_operand.  Move it to a temporary register if not.
1607
1608 2012-07-03  Andreas Schwab  <schwab@linux-m68k.org>
1609
1610         PR target/28896
1611         * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
1612         if !TARGET_68020.
1613
1614 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1615
1616         * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
1617
1618 2012-07-03  Roland McGrath  <mcgrathr@google.com>
1619
1620         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
1621         assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
1622         * configure: Regenerated.
1623         * config/i386/i386.md (simple_return_internal_long): Use %;
1624         (ctz<mode>2): Likewise.
1625         (*pause): Likewise.
1626
1627 2012-07-02  Oleg Endo  <olegendo@gcc.gnu.org>
1628
1629         PR target/51244
1630         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
1631         predicates.
1632         * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
1633         * config/sh/sh.c (get_t_reg_rtx): New function.  Use it when invoking
1634         gen_branch_true and gen_branch_false.
1635         * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
1636         gen_branch_false.
1637         (branch_true, branch_false): Use t_reg_operand predicate.
1638         (*branch_true, *branch_false): Delete.
1639         (movt): Use t_reg_operand predicate.
1640         (*negnegt): Use negt_reg_operand predicate and fold little and big
1641         endian variants.
1642         (*movtt): Use t_reg_operand and fold little and big endian variants.
1643         (*movt_qi): Delete.
1644
1645 2012-07-02  Steven Bosscher  <steven@gcc.gnu.org>
1646
1647         * stmt.c (emit_case_bit_tests): Remove.
1648         (expand_case): Remove expand_switch_using_bit_tests_p code.
1649         * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
1650         (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
1651         (lshift_cheap_p): Likewise.
1652         (expand_switch_using_bit_tests_p): Likewise.
1653         (struct case_bit_test): Likewise.
1654         (case_bit_test_cmp): Likewise.
1655         (emit_case_bit_tests): New implementation for GIMPLE.
1656         (gen_inbound_check): Do not release post-dominator info here.
1657         (process_switch): Reorder code.  Expand as bit tests if it
1658         looks like a win.
1659         (do_switchconv): Release post-dominator info here if something changed.
1660         (struct gimple_opt_pass): Verify more.
1661         * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
1662
1663 2012-07-02  Martin Jambor  <mjambor@suse.cz>
1664
1665         PR middle-end/38474
1666         * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
1667         dynamic type change check.
1668
1669 2012-07-02  Richard Guenther  <rguenther@suse.de>
1670             Michael Matz  <matz@suse.de>
1671             Tobias Grosser <tobias@grosser.es>
1672             Sebastian Pop <sebpop@gmail.com>
1673
1674         * Makefile.in: Remove PPL flags in favor of ISL ones.
1675         (BACKENDLIBS): Remove PPL libs.
1676         (INCLUDES): Remove PPL includes in favor of ISL ones.
1677         (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
1678         graphite-cloog-compat.h dependencies.
1679         (graphite-dependences.o): Likewise.
1680         (graphite-poly.o): Likewise.
1681         * configure.ac: Declare ISL vars instead of PPL ones.
1682         * configure: Regenerated.
1683         * doc/install.texi: Replace PPL requirement documentation with ISL one.
1684         * graphite-blocking.c: Remove PPL code, add ISL equivalent.
1685         * graphite-clast-to-gimple.c: Likewise.
1686         * graphite-dependences.c: Likewise.
1687         * graphite-interchange.c: Likewise.
1688         * graphite-poly.h: Likewise.
1689         * graphite-poly.c: Likewise.
1690         * graphite-sese-to-poly.c: Likewise.
1691         * graphite.c: Likewise.
1692         * graphite-scop-detection.c: Re-arrange includes.
1693         * graphite-cloog-util.c: Remove.
1694         * graphite-cloog-util.h: Likewise.
1695         * graphite-ppl.h: Likewise.
1696         * graphite-ppl.c: Likewise.
1697         * graphite-dependences.h: Likewise.
1698
1699 2012-07-02  Richard Guenther  <rguenther@suse.de>
1700
1701         Merge from graphite branch
1702         2011-07-21  Tobias Grosser  <tobias@grosser.es>
1703
1704         * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
1705         Remove graphite-cloog-util.h.
1706         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
1707         build_iv_mapping, translate_clast_user, translate_clast,
1708         free_scattering, initialize_cloog_names, build_cloog_prog,
1709         create_params_index): Do not use old compatibility functions.
1710         (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
1711         * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
1712         compatibility functions.
1713         (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
1714         cloog.
1715         * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
1716         * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
1717         cloog_finalize().
1718         * graphite-cloog-compat.h: Remove.
1719
1720         2011-08-09  Tobias Grosser <tobias@grosser.es>
1721
1722         * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
1723         of the string, no just a reference.
1724         (clast_name_index): Add a new field, that specifies if we need to free
1725         the name.
1726         (free_clast_name_index): If necessary, free the name string.
1727         (clast_name_index_elt_info): Calculate the hash based on the string
1728         content, not the memory location it is stored in.
1729         (clast_name_to_level): Specify that we do not need to free the name.
1730         (clast_name_to_index): Dito.
1731         (clast_name_to_lb_ub): Dito.
1732         (eq_clast_name_indexes): Compare the strings, not their base pointers.
1733         (free_scattering): Removed.
1734         (initialize_cloog_names): Renamed to add_names_to_union_domain().
1735         (add_names_to_union_domain): Changed to work on a union_domain,
1736         instead of a CloogNames structure.
1737         (build_cloog_prog): Removed.
1738         (build_cloog_union_domain): New.
1739         (generate_cloog_input): New.
1740         (scop_to_clast): Use CloogInput instead of CloogProgram.
1741         (print_generated_program): Adapt to new scop_to_clast() and do not
1742         print the CloogProgram any more.
1743         (create_params_index): Removed, functionality integrated in
1744         add_names_to_union_domain().
1745         (gloog): Adapt to new scop_to_clast().
1746         * graphite-clast-to-gimple.h (scop_to_clast): Remove.
1747
1748         2012-01-11  Tobias Grosser <tobias@grosser.es>
1749
1750         * graphite-clast-to-gimple.c (clast_name_to_index,
1751         clast_name_to_lb_ub, clast_name_to_gcc): Change types.
1752         (clast_to_gcc_expression): Add clast_expr_name as a new
1753         case. Do not assume a clast_expr_term points always to a
1754         clast_expr_name.
1755         (type_for_clast_term): Do not assume a clast_expr_term points always to
1756         a clast_expr_name.
1757         (type_for_clast_name): New.
1758         (type_for_clast_expr): Add clast_expr_name as a new case.
1759
1760         2011-08-03  Sebastian Pop <sebpop@gmail.com>
1761
1762         * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
1763         new_Cloog_Scattering_from_ppl_Polyhedron,
1764         new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
1765
1766 2012-07-02  Jakub Jelinek  <jakub@redhat.com>
1767
1768         PR tree-optimization/53645
1769         * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
1770         instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
1771
1772 2012-07-01  Wei Guozhi  <carrot@google.com>
1773
1774         PR target/53447
1775         * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
1776         * config/arm/arm.c (const_ok_for_dimode_op): New function.
1777         * config/arm/constraints.md (Dd): New constraint.
1778         * config/arm/predicates.md (arm_adddi_operand): New predicate.
1779         * config/arm/arm.md (adddi3): Extend it to handle constants.
1780         (arm_adddi3): Likewise.
1781         (addsi3_carryin_<optab>): Extend it to handle sbc case.
1782         (addsi3_carryin_alt2_<optab>): Likewise.
1783         * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
1784
1785 2012-06-30  Nathan Sidwell  <nathan@acm.org>
1786
1787         * coverage.c (bbg_file_stamp): New.
1788         (read_counts_file): Merge incoming stamp with bbg_file_stamp.
1789         (build_info): Write bbg_file_stamp.
1790         (coverage_init): Initialize bbg_file_stamp.  Read counts file
1791         before writing graph header.
1792         (coverage_finish): Don't unlink the data file if we can generate a
1793         unique file stamp.
1794         * tree.h (crc32_unsigned): Declare.
1795         * tree.c (crc32_unsigned_bits): New, broken out of ...
1796         (crc32_byte): ... here.  Use it.
1797         (crc32_unsigned): New.
1798
1799 2012-06-29  Cary Coutant  <ccoutant@google.com>
1800
1801         * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
1802         (gen_subprogram_die): Don't add pubname if want_pubnames is false.
1803         (gen_variable_die): Likewise.
1804         (gen_namespace_die): Likewise.
1805
1806 2012-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1807
1808         * tree-eh.c (lower_try_finally_switch): Really put the location of the
1809         last statement of the finally block onto the switch.
1810
1811 2012-06-29  H.J. Lu  <hongjiu.lu@intel.com>
1812
1813         PR target/53539
1814         * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
1815         TARGET_LP64.
1816
1817 2012-06-29  Sterling Augustine  <saugustine@google.com>
1818
1819         * dwarf2out.c (add_pubname): Add comment.
1820         (add_pubtype): Fix indentation.
1821         (gen_enumeration_type_die): Likewise.
1822
1823 2012-06-29  Jakub Jelinek  <jakub@redhat.com>
1824
1825         * tree-vect-generic.c (expand_vector_divmod): For even/odd
1826         widening multiply, put even always as first argument to VEC_PERM_EXPR.
1827
1828 2012-06-29  Richard Henderson  <rth@redhat.com>
1829
1830         * tree-vect-generic.c: Include target.h.
1831         (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
1832         * Makefile.in (tree-vect-generic.o): Update.
1833
1834 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1835
1836         * configure.ac: Remove special gtfiles case for C.
1837         * configure: Regenerate.
1838         * Makefile.in: Remove C front-end hooks and build hooks that
1839         will be picked up from c/Make-lang.in now.
1840         Add tree-mudflap to C_COMMON_OBJS.
1841         * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
1842         * config/vms/vms.c: Look for c-tree.h in c/.
1843         * doc/gty.texi: Remove reference to c-config-lang.in.
1844         * doc/sourcebuild.texi: Document the c/ subdirectory.
1845
1846 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1847
1848         * system.h (CASE_USE_BIT_TESTS): Poison.
1849         * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
1850         (expand_switch_using_bit_tests_p): ...here.
1851         * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
1852         * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
1853
1854 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
1855
1856         * system.h (IFCVT_EXTRA_FIELDS): Poison.
1857         (IFCVT_INIT_EXTRA_FIELDS): Poison.
1858         * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
1859         * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
1860         IFCVT_INIT_EXTRA_FIELDS.
1861         * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
1862         * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
1863         IFCVT_MACHDEP_INIT.
1864         * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
1865         frv_ifcvt_machdep_init.
1866         * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
1867         Remove documentation.
1868         (IFCVT_MACHDEP_INIT): Document.
1869         * doc/tm.texi: Regenerate.
1870
1871 2012-06-29  Nick Clifton  <nickc@redhat.com>
1872
1873         * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
1874
1875 2012-06-29  Jakub Jelinek  <jakub@redhat.com>
1876
1877         * tree-vect-stmts.c (vectorizable_operation): Check both
1878         VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
1879         Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
1880
1881 2012-06-28  Richard Henderson  <rth@redhat.com>
1882
1883         * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
1884
1885 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
1886
1887         PR tree-optimization/51581
1888         * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
1889         (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
1890         also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
1891         VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
1892         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
1893         MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
1894
1895         PR tree-optimization/53645
1896         * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
1897         instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
1898         if possible.
1899
1900 2012-06-28  Georg-Johann Lay  <avr@gjlay.de>
1901
1902         PR 53595
1903         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
1904         * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
1905         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
1906         avr_hard_regno_call_part_clobbered.
1907
1908 2012-06-28  Richard Guenther  <rguenther@suse.de>
1909
1910         PR middle-end/53790
1911         * expr.c (expand_expr_real_1): Verify if the type is complete
1912         before inspecting its size.
1913
1914 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
1915
1916         * doc/include/gpl.texi: Remove.
1917         * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
1918
1919 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
1920
1921         PR tree-optimization/53645
1922         * tree-vect-generic.c (add_rshift): New function.
1923         (expand_vector_divmod): New function.
1924         (expand_vector_operation): Use it for vector integer
1925         TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
1926         * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
1927         unused lguup variable with dummy_int.
1928
1929 2012-06-28  OLivier Hainque  <hainque@adacore.com>
1930
1931         * expr.c (convert_move): Latch mem integer inputs into a
1932         register before expanding a multi-instructions sequence.
1933
1934 2012-06-28  Alexandre Oliva  <aoliva@redhat.com>
1935             Uros Bizjak  <ubizjak@gmail.com>
1936             Jakub Jelinek  <jakub@redhat.com>
1937
1938         PR debug/53706
1939         PR debug/47624
1940         * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
1941         (vt_finalize): ... here instead, if needed.
1942
1943 2012-06-28  Alexandre Oliva  <aoliva@redhat.com>
1944
1945         PR debug/53740
1946         PR debug/52983
1947         PR debug/48866
1948         * dce.c (word_dce_process_block): Check whether inserting debug
1949         temps are needed even for needed insns.
1950         (dce_process_block): Likewise.
1951         * df-problems.c (dead_debug_add): Add comment about multi-regs.
1952         (dead_debug_insert_temp): Likewise.  Don't subreg when we're
1953         setting fewer regs than a multi-reg requires.
1954
1955 2012-06-27  Richard Henderson  <rth@redhat.com>
1956
1957         * config/alpha/alpha.c (alpha_dimode_u): New.
1958         (alpha_init_builtins): Initialize it, and use it.
1959         (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
1960         (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
1961         (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
1962         (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
1963         (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
1964         (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
1965         (alpha_fold_builtin_ctpop): Likewise.
1966         (alpha_fold_builtin_umulh): Remove.
1967         (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
1968         typo in MAX_ARGS check.
1969
1970 2012-06-27  Richard Henderson  <rth@redhat.com>
1971
1972         * tree.def (MULT_HIGHPART_EXPR): New.
1973         * cfgexpand.c (expand_debug_expr): Ignore it.
1974         * expr.c (expand_expr_real_2): Handle it.
1975         * fold-const.c (int_const_binop_1): Likewise.
1976         * optabs.c (optab_for_tree_code): Likewise.
1977         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
1978         * tree-inline.c (estimate_operator_cost): Likewise.
1979         * tree-pretty-print.c (dump_generic_node): Likewise.
1980         (op_code_prio, op_symbol_code): Likewise.
1981         * tree.c (commutative_tree_code): Likewise.  Also handle
1982         WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
1983
1984 2012-06-27  Richard Henderson  <rth@redhat.com>
1985
1986         PR target/53749
1987         * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
1988         in 2012-06-23 change.  Adjust two other DImode tests as well.
1989
1990 2012-06-27  Nick Clifton  <nickc@redhat.com>
1991
1992         * config/rx/rx.md (comparesi3_extend): Remove = modifier from
1993         input operand.
1994
1995 2012-06-27  Richard Guenther  <rguenther@suse.de>
1996
1997         PR middle-end/53676
1998         * tree-chrec.c (chrec_convert_1): Represent truncation to
1999         a type with undefined overflow as truncation to an unsigned
2000         type converted to the type with undefined overflow.
2001         * tree-scalar-evolution.c (interpret_rhs_expr): For computing
2002         the scalar evolution of a truncated widened operation avoid
2003         looking at the non-existing evolution of the widened operation
2004         result.
2005
2006 2012-06-27  Richard Guenther  <rguenther@suse.de>
2007
2008         PR tree-optimization/53774
2009         * tree-ssa-reassoc.c (get_rank): All default defs have
2010         precomputed rank.
2011         (init_reassoc): Precompute rank for all SSA default defs.
2012
2013 2012-06-27  Nick Clifton  <nickc@redhat.com>
2014
2015         * config/rx/rx.md (simple_return): Use the simple_return rtx.
2016
2017 2012-06-26  Richard Henderson  <rth@redhat.com>
2018
2019         * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
2020         and don't fall thru from standard_80387_constant_p to the memory
2021         fallback.
2022
2023 2012-06-26  Richard Henderson  <rth@redhat.com>
2024
2025         * config/i386/i386.c (bdesc_args): Update.  Change
2026         IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
2027         (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
2028         (ix86_builtin_mul_widen_even): Use it.
2029         (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
2030         (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
2031         * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
2032         for all SSE2.
2033         (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
2034         (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise.  Relax from V124_AVX2.
2035         (vec_widen_smult_even_v4si): New.
2036
2037 2012-06-26  Richard Henderson  <rth@redhat.com>
2038
2039         * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
2040         to expander; move guts to ...
2041         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here.  Add
2042         highparts before shifting up.
2043         * config/i386/i386-protos.h: Update.
2044
2045 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2046
2047         * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
2048         * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
2049         * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
2050
2051 2012-06-26  Alexandre Oliva  <aoliva@redhat.com>
2052
2053         * var-tracking.c (vt_add_function_parameter): Use a preserved
2054         VALUE for the MEM address of an incoming parameter.
2055
2056 2012-06-26  Sterling Augustine <saugustine@google.com>
2057
2058         * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
2059         (prune_unused_types): Likewise.
2060
2061 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2062
2063         * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2064         UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
2065         * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2066         UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
2067         VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
2068         VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
2069         * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
2070         UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
2071         * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
2072         documentation.
2073         * doc/tm.texi: Regenerate.
2074         * doc/cpp.texi: Make example for #error generic.
2075         * config/frv/frv.h: Fix example text to match tm.texi.
2076
2077 2012-06-26  Bill Schmidt  <wschmidt@linux.ibm.com>
2078
2079         * tree-pass.h (pass_strength_reduction): New decl.
2080         * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
2081         (finalize_costs): Likewise.
2082         * timevar.def (TV_TREE_SLSR): New timevar.
2083         * gimple-ssa-strength-reduction.c: New.
2084         * tree-flow.h (initialize_costs): New decl.
2085         (finalize_costs): Likewise.
2086         * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
2087         * passes.c (init_optimization_passes): Add pass_strength_reduction.
2088
2089 2012-06-26  Matt Turner  <mattst88@gmail.com>
2090
2091         * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
2092         (__builtin_arm_tinsrh): Likewise.
2093         (__builtin_arm_tinsrw): Likewise.
2094         (__builtin_arm_wsadb): Add missing v2si parameter.
2095         (__builtin_arm_wsadh): Likewise.
2096         (__builtin_arm_getwcx): Delete.
2097         (__builtin_arm_setwcx): Delete.
2098         (__builtin_arm_getwcgr0): Add.
2099         (__builtin_arm_getwcgr1): Add.
2100         (__builtin_arm_getwcgr2): Add.
2101         (__builtin_arm_getwcgr3): Add.
2102         (__builtin_arm_setwcgr0): Add.
2103         (__builtin_arm_setwcgr1): Add.
2104         (__builtin_arm_setwcgr2): Add.
2105         (__builtin_arm_setwcgr3): Add.
2106
2107 2012-06-26  Richard Guenther  <rguenther@suse.de>
2108
2109         Revert
2110         2012-06-21  Richard Guenther  <rguenther@suse.de>
2111
2112         * tree-inline.c (estimate_num_insns): Estimate call cost for
2113         tailcalls properly.
2114
2115 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2116
2117         PR other/33190
2118         * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
2119         * doc/tm.texi: Regenerate.
2120
2121 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2122
2123         PR other/33190
2124         * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
2125         * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
2126         * doc/tm.texi.in: Remove documentation for unused target macros
2127         ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
2128         DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
2129         REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
2130         TARGET_NARROW_VOLATILE_BITFIELDS.
2131         Document that MD_HANDLE_UNWABI is a macro in libgcc.
2132         * doc/tm.texi: Regenerate.
2133         * system.h: Poison target macros
2134         ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
2135         DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
2136         REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
2137         TARGET_NARROW_VOLATILE_BITFIELDS
2138
2139 2012-06-26  Jan Hubicka  <jh@suse.cz>
2140
2141         PR lto/53572
2142         * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
2143         used symbols.
2144
2145 2012-06-26  Dehao Chen  <dehao@google.com>
2146
2147         * tree-inline.c: (expand_call_inline): Ensure that lexical block's
2148         source location is consistant with the call stmt.
2149
2150 2012-06-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
2151
2152         PR tree-optimization/53729
2153         PR tree-optimization/53636
2154         * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
2155         vect_verify_datarefs_alignment until after statements have
2156         been marked as relevant/irrelevant.
2157         * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
2158         Skip irrelevant statements.
2159         (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
2160         instead of STMT_VINFO_RELEVANT.
2161         (vect_get_data_access_cost): Do not check for supportable
2162         alignment before calling vect_get_load_cost/vect_get_store_cost.
2163         * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
2164         handling unsupported alignment.
2165         (vect_get_load_cost): Likewise.
2166
2167 2012-06-25  Steven Bosscher  <steven@gcc.gnu.org>
2168
2169         * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
2170         Do not define JMP_BUF_SIZE.
2171
2172 2012-06-26  Jakub Jelinek  <jakub@redhat.com>
2173
2174         PR tree-optimization/53748
2175         * tree-ssa-phiopt.c (conditional_replacement): Only optimize
2176         if arg0/arg1 have integral or pointer types.
2177
2178 2012-06-25  Richard Henderson  <rth@redhat.com>
2179
2180         * config/i386/sse.md (sse2_sse4_1): Remove code attr.
2181         (<s>dot_prodv4si, <s>dot_prodv8si): Remove
2182         (sdot_prodv4si): New; handle only XOP.
2183
2184 2012-06-25  Richard Henderson  <rth@redhat.com>
2185
2186         * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
2187         (V2UDI_FUNC_V4USI_V4USI): New.
2188         (V4UDI_FUNC_V8USI_V8USI): New.
2189         * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
2190         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
2191         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
2192         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
2193         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
2194         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
2195         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
2196         (bdesc_args): Add them.
2197         (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
2198         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
2199         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
2200         (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
2201         * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
2202
2203 2012-06-25  Richard Henderson  <rth@redhat.com>
2204
2205         * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
2206
2207 2012-06-25  Richard Henderson  <rth@redhat.com>
2208
2209         * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
2210         to V16QImode.
2211         (ix86_expand_vec_interleave): New.
2212         (ix86_expand_mul_widen_evenodd): New.
2213         (ix86_expand_mul_widen_hilo): New.
2214         (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
2215         * config/i386/i386.md (u_bool) New code attr.
2216         * config/i386/predicates.md
2217         (nonimmediate_or_const_vector_operand): Remove.
2218         * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
2219         both AVX and SSE4_1.
2220         (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
2221         (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
2222         (vec_widen<s>mult_hi_v8si): Remove.
2223         (vec_widen<s>mult_lo_v8si): Remove.
2224         (vec_widen_smult_hi_v4si): Remove.
2225         (vec_widen_smult_lo_v4si): Remove.
2226         (vec_widen_umult_hi_v4si): Remove.
2227         (vec_widen_umult_lo_v4si): Remove.
2228         (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
2229         (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
2230         * config/i386/i386-protos.h: Update.
2231
2232 2012-06-25  Christophe Lyon  <christophe.lyon@st.com>
2233
2234         * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
2235         (neon_vld1_dup): Restrict to VQ operands.
2236         (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
2237
2238 2012-06-25  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2239             James Greenhalgh  <james.greenhalgh@arm.com>
2240
2241         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
2242         (TARGET_FMA): New macro.
2243         (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
2244         (TARGET_ARM_ARCH): Likewise.
2245         (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
2246         (TARGET_V6M, TARGET_V7M): Likewise.
2247         (TARGET_ARM_ARCH_PROFILE): Likewise.
2248         (TARGET_ARM_FEATURE_LDREX): Likewise.
2249         (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
2250         (ARM_MIN_ENUM_SIZE): Likewise.
2251         * config/arm/arm.c (arm_file_start): Refactor appropriately.
2252         (base_architecture): New enumeration.
2253         (arm_base_arch): New global variable.
2254         (processors): Add field base_arch.
2255         (ARM_ARCH, ARM_CORE): Adjust accordingly.
2256         (arm_option_override): Add initialization of arm_base_arch.
2257         * doc/cpp.texi (system-specific predefined macros.): Change.
2258
2259 2012-06-25  Jakub Jelinek  <jakub@redhat.com>
2260
2261         PR target/53759
2262         * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
2263         of x x x in the vmovlps load alternative.
2264
2265 2012-06-25  Richard Sandiford  <rdsandiford@googlemail.com>
2266
2267         PR debug/53740
2268         * df.h (dead_debug_add): Remove third argument.
2269         * df-problems.c (dead_debug_add): Likewise.  Use the REGNO of the
2270         REG that we want to replace instead.
2271         (dead_debug_insert_temp): Use the REGNO of the reg that we want
2272         to replace instead of DF_REF_REGNO.  Require there to always be
2273         at least one such use.  Check for cases where the same location
2274         has more than df_ref associated with it.
2275         (df_note_bb_compute): Remove third dead_debug_add argument.
2276         * dce.c (word_dce_process_block): Likewise.
2277
2278 2012-06-25  Steven Bosscher  <steven@gcc.gnu.org>
2279
2280         * config/v850/v850.c: Remove redundant extern declarations for
2281         last_assemble_variable_decl and size_directive_output.
2282
2283         * doc/tm.texi.in: Document JMP_BUF_SIZE.
2284         * doc/tm.texi: Regenerate.
2285         * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
2286         * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
2287         * config/stormy16/stormy16.h: Likewise.
2288
2289         * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
2290
2291         * doc/sourcebuild.texi: Add missing subdirectories.
2292
2293 2012-06-25  Tristan Gingold  <gingold@adacore.com>
2294
2295         * config/i386/i386.h: Fix typo.
2296
2297 2012-06-25  Tristan Gingold  <gingold@adacore.com>
2298
2299         * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
2300         (seh_cfa_adjust_cfa): ... that function.
2301         (seh_emit_stackalloc): Do not emit out of range values.
2302         * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
2303         UNSPEC_DEF_CFA constants.
2304         * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
2305         * config/i386/i386.c (ix86_frame_pointer_required): Required
2306         for very large frames on SEH target.
2307         (ix86_compute_frame_layout): Save area is before frame pointer
2308         on SEH target.  Handle very large frames.
2309         (ix86_expand_prologue): Likewise.
2310
2311 2012-06-24  Steven Bosscher  <steven@gcc.gnu.org>
2312
2313         * output.h: (current_function_is_leaf,
2314         current_function_sp_is_unchanging,
2315         current_function_uses_only_leaf_regs): Remove.
2316         * function.c (current_function_is_leaf,
2317         current_function_sp_is_unchanging,
2318         current_function_uses_only_leaf_regs): Remove.
2319         (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
2320         instead of current_function_uses_only_leaf_regs.
2321         * function.h (struct rtl_data): New fields sp_is_unchanging,
2322         is_leaf, uses_only_leaf_regs.
2323         * resource.c (init_resource_info): Replace current_function_is_leaf,
2324         current_function_sp_is_unchanging, and
2325         current_function_uses_only_leaf_regs with new crtl fields.
2326         * sdbout.c (sdbout_symbol): Likewise.
2327         * df-core.c (rest_of_handle_df_initialize): Likewise.
2328         * ira.c (ira): Likewise.
2329         * final.c (final_start_function): Likewise.
2330         * reorg.c (fill_simple_delay_slots): Likewise.
2331         * regrename.c (check_new_reg_p): Likewise.
2332         * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
2333         (notice_stack_pointer_modification): Likewise.
2334         * dbxout.c (dbxout_symbol): Likewise.
2335         (dbxout_parms): Likewise.
2336         * sel-sched.c (init_regs_for_mode): Likewise.
2337         * dwarf2out.c (dbx_reg_number): Likewise.
2338         (multiple_reg_loc_descriptor): Likewise.
2339         * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
2340         (gen_pop): Likewise.
2341         (ix86_select_alt_pic_regnum): Likewise.
2342         (ix86_compute_frame_layout): Likewise.
2343         (ix86_finalize_stack_realign_flags): Likewise.
2344         (ix86_expand_epilogue): Likewise.
2345         * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
2346         * config/h8300/h8300.c (byte_reg): Likewise.
2347         * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
2348         (c6x_save_reg): Likewise.
2349         (c6x_compute_frame_layout): Likewise.
2350         * config/pa/pa.c (pa_compute_frame_size): Likewise.
2351         (pa_output_function_prologue): Likewise.
2352         * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
2353         * config/sparc/sparc.md (attr "leaf_function"): Likewise.
2354         * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
2355         (sparc_expand_prologue): Likewise.
2356         (sparc_flat_expand_prologue): Likewise.
2357         (sparc_asm_function_prologue): Likewise.
2358         (sparc_output_mi_thunk): Likewise.
2359         (sparc_frame_pointer_required): Likewise.
2360         * config/epiphany/epiphany.c (epiphany_compute_function_type):
2361         Likewise.
2362         (epiphany_compute_frame_size): Likewise.
2363         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
2364         * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
2365         (cris_frame_pointer_required): Likewise.
2366         * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
2367         (tilepro_current_function_is_leaf): Likewise.
2368         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
2369         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
2370         * config/ia64/ia64.c (find_gr_spill): Likewise.
2371         (ia64_compute_frame_size): Likewise.
2372         (ia64_can_eliminate): Likewise.
2373         (ia64_initial_elimination_offset): Likewise.
2374         * config/m68k/m68k.c (m68k_save_reg): Likewise.
2375         (m68k_expand_epilogue): Likewise.
2376         * config/rx/rx.c (rx_get_stack_layout): Likewise.
2377         * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
2378         * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
2379         Likewise.
2380         (picochip_output_frame_debug): Likewise.
2381         * config/sh/sh.c (sh_media_register_for_return): Likewise.
2382         (sh_allocate_initial_value): Likewise.
2383         (sh_output_mi_thunk): Likewise.
2384         * config/microblaze/microblaze.c (microblaze_must_save_register):
2385         Likewise.
2386         (compute_frame_size): Likewise.
2387         (microblaze_initial_elimination_offset): Likewise.
2388         (microblaze_expand_prologue): Likewise.
2389         (microblaze_expand_epilogue): Likewise.
2390         * config/frv/frv.c (frv_expand_epilogue): Likewise.
2391         (frv_frame_pointer_required): Likewise.
2392         * config/spu/spu.c (get_pic_reg): Likewise.
2393         (direct_return): Likewise.
2394         (spu_expand_prologue): Likewise.
2395         (spu_expand_epilogue): Likewise.
2396         (spu_initial_elimination_offset): Likewise.
2397         * config/mips/mips.c (mips_global_pointer): Likewise.
2398         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2399         (mips_compute_frame_info): Likewise.
2400         * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
2401         (mep_reload_pointer): Likewise.
2402         * config/rl78/rl78.c (need_to_save): Likewise.
2403         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
2404         * config/score/score.c (score_compute_frame_size): Likewise.
2405         (score_function_prologue): Likewise.
2406         * config/bfin/bfin.c (must_save_p): Likewise.
2407         (expand_prologue_reg_save): Likewise.
2408         (expand_epilogue_reg_restore): Likewise.
2409         (bfin_frame_pointer_required): Likewise.
2410         (n_regs_saved_by_prologue): Likewise.
2411         (add_to_reg): Likewise.
2412         (expand_interrupt_handler_prologue): Likewise.
2413         (expand_interrupt_handler_epilogue): Likewise.
2414         (bfin_expand_prologue): Likewise.
2415         * config/avr/avr.c (avr_regs_to_save): Likewise.
2416         (avr_prologue_setup_frame): Likewise.
2417         (expand_epilogue): Likewise.
2418         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
2419         (s390_register_info): Likewise.
2420         (s390_frame_info): Likewise.
2421         (s390_init_frame_layout): Likewise.
2422         (s390_emit_prologue): Likewise.
2423
2424
2425 2012-06-24  Steven Bosscher  <steven@gcc.gnu.org>
2426
2427         * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
2428         * vmsdbgout: Do not undefine it if defined.
2429         Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
2430         * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
2431         * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
2432
2433 2012-06-24  Richard Sandiford  <rdsandiford@googlemail.com>
2434
2435         * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
2436
2437 2012-06-23  Richard Henderson  <rth@redhat.com>
2438
2439         PR target/53749
2440         * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
2441         V*QImode shifts and multiply.
2442         (ix86_expand_vecop_qihi): Support shifts.
2443         * config/i386/i386.md (any_shift): New code iterator.
2444         * config/i386/sse.md (ashlv16qi3): Merge ...
2445         (<any_shiftrt>v16qi3): ... into ...
2446         (<any_shift><VI1_AVX2>3): ... here.  Use ix86_expand_vecop_qihi
2447         to support SSE and AVX.
2448
2449         * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
2450         parameter into src and dest.
2451         * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
2452         (vec_unpacks_hi_<V124_AVX2>): Likewise.
2453         (vec_unpacku_lo_<V124_AVX2>): Likewise.
2454         (vec_unpacks_lo_<V124_AVX2>): Likewise.
2455         * config/i386/i386-protos.h: Update.
2456
2457         * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
2458         pure expander; move expansion code ...
2459         * config/i386/i386.c (ix86_expand_vecop_qihi): ... here.  New function.
2460         * config/i386/i386-protos.h: Update.
2461
2462 2012-06-22  Edmar Wienskoski  <edmar@freescale.com>
2463
2464         * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
2465         (popcntb<mode>2): Add attribute type popcnt.
2466         (popcntd<mode>2): Ditto.
2467         * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
2468         * config/rs6000/power5.md (define_insn_reservation): Ditto.
2469         * config/rs6000/power7.md (define_insn_reservation): Ditto.
2470         * config/rs6000/476.md (define_insn_reservation): Ditto.
2471         * config/rs6000/power6.md (define_insn_reservation): New
2472         reservation for popcnt instructions.
2473
2474 2012-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2475
2476         * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
2477
2478 2012-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2479
2480         PR target/53383
2481         * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
2482
2483         * config/i386/i386.c (ix86_option_override_internal): Allow
2484         -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
2485
2486         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
2487         if SSE is disabled.
2488
2489 2012-06-22  Bill Schmidt  <wschmidt@linux.ibm.com>
2490
2491         * double-int.c (double_int_multiple_of): New function.
2492         * double-int.h (double_int_multiple_of): New decl.
2493         * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
2494         (mbc_entry_hash): New forward decl.
2495         (mbc_entry_eq): Likewise.
2496         (zero_cost): Change to no_cost.
2497         (mult_costs): New static var.
2498         (cost_tables_exist): Likewise.
2499         (initialize_costs): New function.
2500         (finalize_costs): Likewise.
2501         (tree_ssa_iv_optimize_init): Call initialize_costs.
2502         (add_cost): Change to add_regs_cost; distinguish costs by speed.
2503         (multiply_regs_cost): New function.
2504         (add_const_cost): Likewise.
2505         (extend_or_trunc_reg_cost): Likewise.
2506         (negate_reg_cost): Likewise.
2507         (multiply_by_cost): Change to multiply_by_const_cost; distinguish
2508         costs by speed.
2509         (get_address_cost): Change add_cost to add_regs_cost; change
2510         multiply_by_cost to multiply_by_const_cost.
2511         (force_expr_to_var_cost): Change zero_cost to no_cost; change
2512         add_cost to add_regs_cost; change multiply_by_cost to
2513         multiply_by_const_cost.
2514         (split_cost): Change zero_cost to no_cost.
2515         (ptr_difference_cost): Likewise.
2516         (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
2517         to multiply_by_const_cost.
2518         (get_computation_cost_at): Change add_cost to add_regs_cost; change
2519         multiply_by_cost to multiply_by_const_cost.
2520         (determine_use_iv_cost_generic): Change zero_cost to no_cost.
2521         (determine_iv_cost): Change add_cost to add_regs_cost.
2522         (iv_ca_new): Change zero_cost to no_cost.
2523         (tree_ssa_iv_optimize_finalize): Call finalize_costs.
2524         * tree-ssa-address.c (most_expensive_mult_to_index): Change
2525         multiply_by_cost to multiply_by_const_cost.
2526         * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
2527         (add_regs_cost): New decl.
2528         (multiply_regs_cost): Likewise.
2529         (add_const_cost): Likewise.
2530         (extend_or_trunc_reg_cost): Likewise.
2531         (negate_reg_cost): Likewise.
2532
2533 2012-06-22  Richard Guenther  <rguenther@suse.de>
2534
2535         Merge from graphite branch
2536         2011-08-10  Sebastian Pop <sebpop@gmail.com>
2537
2538         * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
2539
2540         2012-01-13  Tobias Grosser  <tobias@grosser.es>
2541
2542         * tree-flow.h (parallelized_function_p): Declare.
2543         * tree-parloops.c (parallelized_function_p): Export.
2544         * graphite.c (graphite_transform_loops): Do not run graphite on
2545         already parallel functions.
2546
2547 2012-06-22  Alan Modra  <amodra@gmail.com>
2548
2549         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
2550         return mem.  Convert to indirect addressing if not indirect or
2551         indexed.  Adjust all callers.
2552
2553 2012-06-22  Richard Guenther  <rguenther@suse.de>
2554
2555         * gcov-iov.c: Include bconfig.h and system.h.
2556
2557 2012-06-22  Andreas Schwab  <schwab@linux-m68k.org>
2558
2559         * doc/include/texinfo.tex: Update to version 2012-06-05.14.
2560
2561 2012-06-22  Richard Guenther  <rguenther@suse.de>
2562
2563         PR gcov-profile/53744
2564         * gcov-iov.c (main): Treat "" and "prerelease" the same.
2565
2566 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2567
2568         PR debug/53704
2569         * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
2570         for GNU Fortran if in strict DWARF2 mode.
2571
2572 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2573
2574         * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
2575         DECL_IGNORED_P non-reg vars even if they are used.
2576
2577 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2578
2579         PR debug/53671
2580         PR debug/49888
2581         * var-tracking.c (vt_get_canonicalize_base): New.
2582         (vt_canonicalize_addr, vt_stack_offset_p): New.
2583         (vt_canon_true_dep): New.
2584         (drop_overlapping_mem_locs): Use vt_canon_true_dep.
2585         (clobber_overlaping_mems): Use vt_canonicalize_addr.
2586
2587 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2588
2589         PR debug/53671
2590         PR debug/49888
2591         * var-tracking.c (vt_initialize): Record initial offset between
2592         arg pointer and stack pointer.
2593
2594 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2595
2596         PR debug/53671
2597         PR debug/49888
2598         * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
2599         CFA base.
2600
2601 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2602
2603         PR debug/53671
2604         PR debug/49888
2605         * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
2606
2607 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2608
2609         * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
2610
2611 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
2612
2613         PR debug/53682
2614         * cselib.c (promote_debug_loc): Don't crash on NULL argument.
2615
2616 2012-06-21  Meador Inge  <meadori@codesourcery.com>
2617
2618         PR c/53702
2619         * c-decl.c (c_push_function_context): Restore the behavior to reuse
2620         the language function allocated for -Wunused-local-typedefs.
2621         (c_pop_function_context): If necessary, clear the language function
2622         created in c_push_function_context.  Always clear out the
2623         x_cur_stmt_list field of the restored language function.
2624
2625 2012-06-21  Sterling Augustine  <saugustine@google.com>
2626             Cary Coutant  <ccoutant@google.com>
2627
2628         * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
2629         add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
2630         (comdat_type_struct): New field 'skeleton_die'.
2631         (breakout_comdat_types): Update it.
2632         (add_pubname): Rework logic.  Call is_class_die, is_cu_die and
2633         is_namespace_die.  Fix minor style violation.  Call want_pubnames.
2634         (add_pubname_string): Call want_pubnames.
2635         (add_pubtype): Rework logic for calculating type name.  Call
2636         is_namespace_die.  Call want_pubnames.
2637         (output_pubnames): Move conditional logic deciding when to produce the
2638         section from dwarf2out_finish.  Use new skeleton_die field.
2639         (base_type_die): Call add_pubtype.
2640         (gen_enumeration_type_die): Unconditionally call add_pubtype.
2641         (gen_subprogram_die): Adjust calls to add_pubname.
2642         (gen_namespace_die): Call add_pubname_string.
2643         (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
2644         produce pubnames and pubtypes sections to output_pubnames.
2645         * common.opt (-gpubnames): New option.
2646         * doc/invoke.texi: Document it.
2647
2648 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
2649
2650         * config/m32c/m32c-pragma.c: Remove unnecessary includes.
2651
2652 2012-06-21  Michael Matz  <matz@suse.de>
2653
2654         PR middle-end/53688
2655         * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
2656         with correct size.
2657
2658 2012-06-21  Richard Guenther  <rguenther@suse.de>
2659
2660         * tree-inline.c (estimate_num_insns): Estimate call cost for
2661         tailcalls properly.
2662
2663 2012-06-20  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
2664
2665         * tree.h (DECL_SOURCE_COLUMN): New accessor.
2666
2667 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2668
2669         * config/i386/i386.md (SINCOS): New int iterator.
2670         (sincos): New int attribute.
2671         (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
2672         SINCOS int iterator.
2673         (*<sincos>_extend<mode>xf2_i387): Macroize insn from
2674         *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
2675
2676 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2677
2678         * config/i386/i386.md (RDFSGSBASE): New int iterator.
2679         (WRFSGSBASE): Ditto.
2680         (fsgs): New int attribute.
2681         (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
2682         RDFSGSBASE int iterator.
2683         (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
2684         WRFSGSBASE int iterator.
2685
2686 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2687
2688         * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
2689         from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
2690         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
2691         from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
2692         int iterator.
2693
2694 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
2695
2696         * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
2697
2698 2012-06-20  Richard Guenther  <rguenther@suse.de>
2699
2700         PR tree-optimization/30318
2701         * tree-vrp.c (range_int_cst_p): Do not reject overflowed
2702         constants here.
2703         (range_int_cst_singleton_p): But explicitely here.
2704         (zero_nonzero_bits_from_vr): And here.
2705         (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
2706         to cover all cases we can perform arbitrary precision
2707         arithmetic with double-ints.
2708         (intersect_ranges): Handle adjacent anti-ranges.
2709
2710 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2711
2712         * config/i386/i386.md (rounding_insn): New int attribute.
2713         (<rounding_insn>xf2): Macroize insn from
2714         {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
2715         (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
2716
2717 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
2718
2719         * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
2720         (ieee_maxmin): New int attribute.
2721         (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
2722         *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
2723
2724 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
2725
2726         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
2727         * config/arm/arm.c: Do not include c-pragma.h.
2728         (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
2729         (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
2730         to arm_emit_eabi_attribute.
2731         * arm-c.c: Do not include output.h.
2732         (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
2733         call to arm_emit_eabi_attribute.
2734         * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
2735
2736 2012-06-20  Richard Guenther  <rguenther@suse.de>
2737
2738         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
2739         Allow adjusting alignment of user-aligned decls again.
2740
2741 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
2742
2743         * config/rl78/rl78-c.c: Remove unnecessary includes.
2744
2745 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
2746
2747         * config/cris/cris.c: Include cgraph.h.
2748         (cris_option_override): Do not set non-existing flag_no_gcc_ident.
2749
2750 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
2751
2752         * emit-rtl.c (need_atomic_barrier_p): New function.
2753         * emit-rtl.h (need_atomic_barrier_p): Declare it.
2754         * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
2755         * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
2756         * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
2757         * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
2758         (mips_process_sync_loop): Use generic version instead.
2759
2760 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
2761
2762         * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
2763         it is used.
2764
2765 2012-06-19  Tom de Vries  <vries@codesourcery.com>
2766             Maxim Kuvyrkov  <maxim@codesourcery.com>
2767
2768         * config/mips/constraints.md (ZR): New constraint.
2769         * config/mips/predicates.md (mem_noofs_operand): New predicate.
2770         * config/mips/mips.c (mips_print_operand): Handle new print modifier.
2771         * config/mips/mips.h (TARGET_XLP): Define.
2772         (TARGET_SYNC_AFTER_SC): Update.
2773         (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
2774         * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
2775         XLP-specific swap and ldadd patterns.
2776         (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
2777
2778 2012-06-19  Tom de Vries  <vries@codesourcery.com>
2779             Maxim Kuvyrkov  <maxim@codesourcery.com>
2780
2781         * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
2782         (mips_emit_post_atomic_barrier_p): New static functions.
2783         (mips_process_sync_loop): Use them.  Emit sync memory barriers in
2784         accordance with memory model semantics.  Add return of CMP result for
2785         compare_and_swap.
2786         * config/mips/mips.md: Update comment.
2787         (sync_cmp): New attribute.
2788         (sync_memmodel): New attribute replacing sync_release_barrier.
2789         * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
2790         (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
2791         (sync_lock_test_and_set, test_and_set_12): Update.
2792         (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
2793         (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
2794
2795 2012-06-19  Joseph Myers  <joseph@codesourcery.com>
2796
2797         * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
2798         mov_si<mode>_e500_subreg0.
2799         (*mov_si<mode>_e500_subreg0_elf_low)
2800         (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
2801
2802 2012-06-19  Richard Henderson  <rth@redhat.com>
2803
2804         * config/alpha/alpha.c: Include params.h.
2805         (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
2806         PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
2807
2808 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2809
2810         * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
2811         TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
2812         (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
2813         Remove.
2814         * doc/tm.texi: Regenerate.
2815         * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
2816         .objc_class_name_*.
2817         * config/darwin-c.c: Include target.h.
2818         (darwin_objc_declare_unresolved_class_reference): New function.
2819         (darwin_objc_declare_class_definition): New function.
2820         (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
2821         (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
2822
2823 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2824
2825         * target.def (output_ident): New hook.
2826         * targhooks.h (default_asm_output_ident_directive): Add prototype.
2827         * varasm.c (assemble_asm): Only prefix a tab if the string does not
2828         already start with one.
2829         (default_asm_output_ident_directive): New function to emit
2830         .ident as a top-level asm node while parsing, or directly to
2831         asm_out_file after parsing.
2832         * toplev.c (compile_file): Print a GCC .ident with
2833         targetm.asm_out.output_ident.
2834         * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
2835         (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
2836         * doc/tm.texi: Update.
2837
2838         * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
2839         (TARGET_ASM_OUTPUT_IDENT): Define.
2840         * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
2841         * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
2842         * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
2843         * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
2844         (TARGET_ASM_OUTPUT_IDENT): Define.
2845         * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
2846         (TARGET_ASM_OUTPUT_IDENT): Define.
2847
2848         * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
2849         * config/cris/cris.c (cris_asm_output_ident): New function.
2850         * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
2851
2852         * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
2853         Add prototype.
2854         * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
2855         (microblaze_asm_output_ident): Rewrite to work similar to
2856         default_asm_output_ident_directive for front-end .idents.
2857         * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
2858         (TARGET_ASM_OUTPUT_IDENT): Define.
2859
2860         * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
2861         * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
2862
2863         * config/rx/rx.c: Include cgraph.h for add_asm_node.
2864         (rx_asm_output_ident): New function, similar to
2865         default_asm_output_ident_directive, but handle AS100 syntax also, so
2866         that #ident also works for rx in AS100 syntax.
2867         (TARGET_ASM_OUTPUT_IDENT): Define.
2868         * config/rx/rx.h (IDENT_ASM_OP): Remove.
2869
2870         * Makefile.in: Fix dependencies for c-family/c-lex.o.
2871
2872 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
2873
2874         * config/i386/i386.md (FIST_ROUNDING): New int iterator.
2875         (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
2876         (ROUNDING): Ditto.
2877         (*fist<mode>2_<rounding>_1): Macroize insn from
2878         *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
2879         (fistdi2_<rounding>): Macroize insn from
2880         fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
2881         (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
2882         corresponding splitters from fistdi2_{floor,ceil} and corresponding
2883         splitters using FIST_ROUNDING int iterator.
2884         (fist<mode>2_<rounding>): Macroize insn from
2885         fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
2886         (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
2887         corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
2888         splitters using FIST_ROUNDING int iterator.
2889         (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
2890         using FIST_ROUNDING int iterator.
2891
2892 2012-06-19  Richard Henderson  <rth@redhat.com>
2893
2894         * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
2895         * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
2896         * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
2897         * config/i386/sse.md (sse2_mulv4si3): Delete.
2898         (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
2899         nonimmediate_or_const_vector_operand.
2900
2901 2012-06-19  Richard Henderson  <rth@redhat.com>
2902
2903         * expmed.c (struct init_expmed_rtl): Split ...
2904         (init_expmed_one_mode): ... out of ...
2905         (init_expmed): ... here.  Initialize integer vector modes also.
2906         (synth_mult): Handle integer vector modes.
2907         (choose_mult_variant): Likewise.
2908         (expand_mult_const): Likewise.
2909         (expand_mult): Likewise.
2910         * machmode.h (GET_MODE_UNIT_BITSIZE): New.
2911
2912 2012-06-19  Richard Henderson  <rth@redhat.com>
2913
2914         * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
2915         integral vector modes.
2916
2917 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
2918
2919         * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
2920         (rounding): New int attribute.
2921         (ROUNDING): Ditto.
2922         (frndintxf2_<rounding>): Macroize insn from
2923         frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
2924         (frndintxf2_<rounding>_i387): Macroize insn from
2925         frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
2926
2927 2012-06-19  Richard Guenther  <rguenther@suse.de>
2928
2929         * tree-vrp.c (union_ranges): New function.
2930         (vrp_meet_1): Use union_ranges.
2931         (vrp_meet): Dump what we union and call vrp_meet_1.
2932
2933 2012-06-19  Richard Earnshaw  <rearnsha@arm.com>
2934
2935         * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
2936         (attr type): Remove fmul, ffmul, farith, ffarith, float_em
2937         f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
2938         (attr write_conflict, attr core_cycles): Update.
2939         * arm-generic.md (r_mem_f_wbuf): Delete reservation.
2940
2941 2012-06-19  Richard Guenther  <rguenther@suse.de>
2942
2943         * tree-vrp.c (intersect_ranges): Handle more cases.
2944         (vrp_intersect_ranges): Dump what we intersect and call ...
2945         (vrp_intersect_ranges_1): ... this.
2946
2947 2012-06-19  Richard Guenther  <rguenther@suse.de>
2948
2949         PR tree-optimization/53708
2950         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
2951         user-supplied alignment and alignment of decls with the used
2952         attribute.
2953
2954 2012-06-18  Lawrence Crowl  <crowl@google.com>
2955
2956         * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
2957         (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
2958         (TV_PHASE_STREAM_IN): New.
2959         (TV_PHASE_STREAM_OUT): New.
2960         * timevar.c (validate_phases): New.
2961         (timevar_print): Call validate_phases.
2962         * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
2963         to TV_PHASE_OPT_GEN.
2964         * langhooks.c (write_global_declarations): Rename use of
2965         TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN.  Use TV_PHASE_DBGINFO instead of
2966         TV_PHASE_CHECK_DBGINFO.
2967         * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
2968         TV_PHASE_LATE_ASM.  Move start of TV_PHASE_LATE_ASM to after call to
2969         lang_hooks.decls.final_write_globals.
2970
2971 2012-06-18  David Edelshn  <dje.gcc@gmail.com>
2972
2973         * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
2974
2975 2012-06-18  Uros Bizjak  <ubizjak@gmail.com>
2976
2977         PR target/53712
2978         * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
2979         (*sse4_2_pcmpistr_unaligned): New.
2980
2981 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
2982             Sameera Deshpande  <sameera.deshpande@arm.com>
2983             Greta Yorsh  <greta.yorsh@arm.com>
2984
2985         * config/arm/arm-protos.h (arm_output_epilogue): Remove.
2986         * config/arm/arm.c (print_multi_reg): Remove.
2987         (vfp_output_fldmd): Likewise.
2988         (arm_output_epilogue): Likewise.
2989         * config/arm/arm.md (epilogue_insns): Update condition and code.
2990
2991 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
2992             Sameera Deshpande  <sameera.deshpande@arm.com>
2993             Greta Yorsh  <greta.yorsh@arm.com>
2994
2995         * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
2996         * config/arm/arm.c (thumb2_expand_return): New function.
2997         * config/arm/arm.md (return): Update condition and code.
2998
2999 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
3000             Sameera Deshpande  <sameera.deshpande@arm.com>
3001             Greta Yorsh  <greta.yorsh@arm.com>
3002
3003         * config/arm/arm-protos.h (output_return_instruction): New parameter
3004         and int to bool change of parameter types.
3005         * config/arm/arm.c (output_return_instruction): Likewise.
3006         * config/arm/arm.md (arm_simple_return): New pattern.
3007         (arm_return, cond_return, cond_return_inverted): Add new arguments.
3008         * config/arm/thumb2.md (thumb2_return): Update condition and code.
3009
3010 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
3011             Sameera Deshpande  <sameera.deshpande@arm.com>
3012             Greta Yorsh  <greta.yorsh@arm.com>
3013
3014         * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
3015         * config/arm/arm.c (arm_expand_epilogue): New function.
3016         * config/arm/arm.md (epilogue): Update condition and code.
3017         (sibcall_epilogue): Likewise.
3018
3019 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
3020             Sameera Deshpande  <sameera.deshpande@arm.com>
3021             Greta Yorsh  <greta.yorsh@arm.com>
3022
3023         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
3024         * config/arm/arm.md (arm_addsi3) Add an alternative.
3025
3026 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
3027             Sameera Deshpande  <sameera.deshpande@arm.com>
3028             Greta Yorsh  <greta.yorsh@arm.com>
3029
3030         * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
3031         * config/arm/predicates.md (pop_multiple_fp) New special predicate.
3032         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
3033
3034 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
3035             Sameera Deshpande  <sameera.deshpande@arm.com>
3036             Greta Yorsh  <greta.yorsh@arm.com>
3037
3038         * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
3039         (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
3040         (pop_multiple_with_return, ldr_with_return) Likewise.
3041         * config/arm/predicates.md (pop_multiple_return) New special predicate.
3042         * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
3043         * config/arm/arm.c (arm_output_multireg_pop) New function.
3044         (arm_emit_multi_reg_pop): New function.
3045
3046 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3047
3048         * config/arm/arm.c (ldm_stm_operation_p): Require SP
3049         as base register for loads if SP is in the register list.
3050
3051 2012-06-18  Richard Guenther  <rguenther@suse.de>
3052
3053         PR tree-optimization/53693
3054         * tree-vect-patterns.c (vect_operation_fits_smaller_type):
3055         Reject operands with more than one use.
3056
3057 2012-06-18  Bill Schmidt  <wschmidt@linux.ibm.com>
3058
3059         PR tree-optimization/53703
3060         * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
3061         correctly set bb_for_def[12].
3062
3063 2012-06-18  Steven Bosscher  <steven@gcc.gnu.org>
3064
3065         * config/vax/vax.h (VMS_TARGET): Remove.
3066
3067 2012-06-18  Richard Guenther  <rguenther@suse.de>
3068
3069         * tree-vrp.c (extract_range_from_assert): Split out range
3070         intersecting code.
3071         (intersect_ranges): New function.
3072         (vrp_intersect_ranges): Likewise.
3073
3074 2012-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3075
3076         * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
3077         r187965.
3078
3079 2012-06-18  Tejas Belagod  <tejas.belagod@arm.com>
3080
3081         * doc/md.texi: Document int iterators.
3082         * read-rtl.c (ints): New iterator group.
3083         (find_int): Int iterator group callback.
3084         (apply_int_iterator): Likewise.
3085         (apply_iterators): Traverse int iterator table and add all the used
3086         iterators to list.
3087         (initialize_iterators): Initialize data structures and callbacks for
3088         int iterators.
3089         (read_rtx): Parse and read mappings for int iterators.
3090         (read_rtx_code): Record int iterator usage.
3091
3092 2012-06-18  Richard Sandiford  <rdsandiford@googlemail.com>
3093
3094         PR middle-end/53698
3095         * expr.c (expand_expr_addr_expr_1): Convert to tmode before
3096         performing an addition.
3097
3098 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3099
3100         * output.h (split_double): Move prototype to rtl.h.
3101         (constructor_static_from_elts_p): Move prototype to tree.c.
3102         * rtl.h (split_double): Moved here from output.h.
3103         * tree.h (constructor_static_from_elts_p): Moved here from output.h.
3104         * final.c (split_double): Move from here ...
3105         * rtlanal.c (split_double): ... to here.
3106         * expr.c: Do not include output.h.
3107
3108 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3109
3110         * cfglayout.h: Remove.
3111         * cfglayout.c: Remove.
3112         * function.h (struct function): Remove x_last_location field.
3113         * function.c: Do not include cfglayout.h.
3114         (expand_function_start): Do not call no-op force_next_line_note.
3115         (expand_function_end): Likewise.
3116         * cfgrtl.c: Do not include cfglayout.h.  Include gt-cfgrtl.h.
3117         (unlink_insn_chain): Moved here from cfglayout.c.
3118         (skip_insns_after_block, label_for_bb, record_effective_endpoints,
3119         into_cfg_layout_mode, outof_cfg_layout_mode,
3120         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
3121         relink_block_chain, fixup_reorder_chain, verify_insn_chain,
3122         fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
3123         cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
3124         cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
3125         cfg_layout_finalize): Likewise.
3126         (rtl_can_remove_branch_p): Likewise.
3127         * rtl.h (insn_scope): Move prototype from cfglayout.h here.
3128         (duplicate_insn_chain): Likewise.
3129         (force_next_line_note): Remove prototype.
3130         * emit-rtl.c: Do not include tree-flow.h, egad.  Include vecprim.h.
3131         (last_location): Remove #define to emit.x_last_location.
3132         (force_next_line_note): Remove no-op function.
3133         (init_emit): Don't set x_last_location.
3134         (block_locators_locs, block_locators_blocks, locations_locators_locs,
3135         locations_locators_vals, prologue_locator, epilogue_locator,
3136         curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3137         Move POD to here from cfglayout.c.
3138         (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
3139         set_curr_insn_source_location, get_curr_insn_source_location,
3140         set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
3141         locator_scope, insn_scope, locator_location, locator_line, insn_line,
3142         locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
3143         * cfghooks.h: Remove double-include protection.
3144         (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
3145         * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
3146         * final.c: Do not include cfglayout.h.
3147         (choose_inner_scope, change_scope): Move to here from cfglayout.c.
3148         (reemit_insn_block_notes): Likewise.  Make static.
3149         * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
3150         operation_could_trap_p, tree_could_throw_p): Move from here...
3151         * tree.h: ... to here.
3152         * gengtype.c (open_base_files): Remove cfglayout.h from the list.
3153         * profile.c: Do not include cfghooks.h.
3154         * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
3155         * modulo-sched.c: Likewise.
3156         * loop-unswitch.c: Do not include cfglayout.h.
3157         * sched-ebb.c: Likewise.
3158         * tracer.c: Likewise.
3159         * ddg.c: Likewise.
3160         * tree-vect-loop-manip.c: Likewise.
3161         * loop-init.c: Likewise.
3162         * dwarf2out.c: Likewise.
3163         * hw-doloop.c: Likewise.
3164         * loop-unroll.c: Likewise.
3165         * cfgcleanup.c: Likewise.
3166         * bb-reorder.c: Likewise.
3167         * sched-rgn.c: Likewise.
3168         * tree-cfg.c: Likewise.
3169         * config/alpha/alpha.c: Likewise.
3170         * config/spu/spu.c: Likewise.
3171         * config/sparc/sparc.c: Likewise.
3172         * config/sh/sh.c: Likewise.
3173         * config/c6x/c6x.c: Likewise.
3174         * config/ia64/ia64.c: Likewise.
3175         * config/rs6000/rs6000.c: Likewise.
3176         * config/score/score.c: Likewise.
3177         * config/mips/mips.c: Likewise.
3178         * config/bfin/bfin.c: Likewise.
3179         * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
3180         * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
3181         * config/spu/t-spu-elf (spu.o: $): Likewise.
3182         * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
3183
3184 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3185
3186         * cfgloop.h: Do not include rtl.h.
3187         (enum iv_extend_code): New.
3188         (struct rtx_iv): Use iv_extend_code instead of rtx_code.
3189         * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
3190         * loop-iv.c (iv_extend_to_rtx_code): New function to translate
3191         an IV_EXTEND_CODE to an RTX_CODE.
3192         (dump_iv_info): Update for rtx_iv field type change.
3193         (iv_constant): Likewise.
3194         (iv_subreg): Likewise.
3195         (iv_extend): Likewise.
3196         (iv_neg): Likewise.
3197         (iv_add): Likewise.
3198         (iv_mult): Likewise.
3199         (iv_shift): Likewise.
3200         (get_biv_step_1): Likewise.
3201         (get_biv_step): Likewise.
3202         (iv_analyze_biv): Likewise.
3203         (get_iv_value): Likewise.
3204         (shorten_into_mode): Likewise.
3205         (canonicalize_iv_subregs): Likewise.
3206         * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
3207         of MAY_HAVE_DEBUG_INSNS.
3208         * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
3209         * tree-ssa-loop-prefetch.c: Likewise.
3210
3211 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3212
3213         * expmed.c (ceil_log2): Move from here...
3214         * hwint.c: ... to here for older GCCs...
3215         * hwint.h: ... and here for newer GCCs.
3216         * rtl.h (ceil_log2): Remove prototype.
3217
3218         * tree-phinodes.c: Do not include rtl.h.
3219         * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
3220
3221 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3222
3223         * config/cris/cris.h (TARGET_ELF): Remove.
3224         (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
3225         (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
3226         (LOCAL_LABEL_PREFIX): Likewise.
3227         * config/cris/cris.c (cris_target_asm_named_section): Remove.
3228         (cris_option_override): Simpify using TARGET_ELF==1.
3229         (cris_file_start): Likewise.
3230         * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
3231
3232 2012-06-17  Uros Bizjak  <ubizjak@gmail.com>
3233
3234         * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
3235
3236 2012-06-16  Eric Botcazou  <ebotcazou@adacore.com>
3237
3238         PR middle-end/53590
3239         * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
3240
3241 2012-06-15  Easwaran Raman  <eraman@google.com>
3242
3243         * passes.c (init_optimization_passes): Remove pass_call_cdce
3244         from its current position and insert after pass_dce.
3245
3246 2012-06-15  Walter Lee  <walt@tilera.com>
3247
3248         * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
3249
3250 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
3251
3252         * arm.c (note_invalid_constants): Don't return a result.
3253         (arm_memory_load_p): Delete function.
3254         (arm_const_double_rtx): Delete iterator variable i;
3255         (fp_immediate_constant): Likewise.
3256         (fp_const_from_val): Likewise.
3257
3258         * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
3259
3260 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
3261
3262         PR c++/51033
3263         * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
3264         * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
3265
3266 2012-06-15  Georg-Johann Lay  <avr@gjlay.de>
3267
3268         * config/avr/avr.c (avr_default_expand_builtin): New function.
3269         (avr_expand_builtin): Use it.
3270         (avr_expand_unop_builtin): Remove.
3271         (avr_expand_binop_builtin): Remove.
3272         (avr_expand_triop_builtin): Remove.
3273
3274 2012-06-15  Michael Matz  <matz@suse.de>
3275
3276         PR middle-end/38474
3277         * cfgexpand.c (add_alias_set_conflicts): Remove.
3278         (expand_used_vars): Don't call it.
3279         (aggregate_contains_union_type): Remove.
3280         * function.c (n_temp_slots_in_use): New static data.
3281         (make_slot_available, assign_stack_temp_for_type): Update it.
3282         (init_temp_slots): Zero it.
3283         (remove_unused_temp_slot_addresses): Use it for quicker removal.
3284         (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
3285
3286 2012-06-15  Michael Matz  <matz@suse.de>
3287
3288         * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
3289         argument, don't emit assign statement if value is directly usable.
3290         (gimplify_expr): Adjust.
3291
3292 2012-06-15  Michael Matz  <matz@suse.de>
3293
3294         * gimplify.c (gimplify_modify_expr): Fold generated statements.
3295         * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
3296
3297 2012-06-15  Richard Guenther  <rguenther@suse.de>
3298
3299         * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
3300         predicates to set VR_UNDEFINED and VR_VARYING.  Drop a case
3301         we assert for in set_value_range to VR_VARYING.
3302
3303 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
3304
3305         * arm.md (addsf3, adddf3): Use s_register_operand.
3306         (subsf3, subdf3): Likewise.
3307         (mulsf3, muldf3): Likewise.
3308         (difsf3, divdf3): Likewise.
3309         (movsfcc, movdfcc): Likewise.
3310         * predicates.md (f_register_operand): Delete.
3311         (arm_float_rhs_operand): Delete.
3312         (arm_float_add_operand): Delete.
3313         (arm_float_compare_operand): Use s_register_operand when
3314         there's no VFP.
3315         (cirrus_register_operand): Delete.
3316         (cirrus_fp_register): Delete.
3317         (cirrus_shift_const): Delete.
3318         (cmpdi_operand): Remove Maverick support.
3319         * constraints.md (f, v, H): Delete constraints.
3320         (G): Update documentation.
3321         * arm.c (fp_consts_inited): Convert to bool.
3322         (strings_fp): Delete.
3323         (values_fp): Delete.
3324         (value_fp0): New variable.
3325         (init_fp_table): Simplify logic.
3326         (arm_const_double_rtx): Likewise.
3327         (fp_immediate_constant): Likewise.
3328         (fp_const_from_val): Likewise.
3329         (neg_const_double_rtx_ok_for_fpa): Delete.
3330         * doc/md.texi (ARM constraints): Update documentation.
3331
3332 2012-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
3333
3334         PR tree-optimization/53636
3335         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
3336         stride when doing basic-block vectorization.
3337
3338 2012-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3339
3340         * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
3341         into VEC_PERM_EXPR.
3342
3343 2012-06-15  Jakub Jelinek  <jakub@redhat.com>
3344
3345         * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
3346         allocate and free bbs array for the SLP case.
3347
3348         PR tree-optimization/51581
3349         * expr.h (choose_multiplier): New prototype.
3350         * expmed.c (choose_multiplier): No longer static.
3351         Change multiplier_ptr from rtx * to UHWI *.
3352         (expand_divmod): Adjust callers.
3353         * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
3354         (vect_recog_divmod_pattern): ... this.  Pass bb_vinfo as last
3355         argument to new_stmt_vec_info.  Attempt to optimize also divisions
3356         by non-pow2 constants if integer vector division isn't supported.
3357         * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
3358         don't look at pattern stmts and sequences.
3359
3360 2012-06-15  Eric Botcazou  <ebotcazou@adacore.com>
3361
3362         PR middle-end/53590
3363         * common.opt (-fdelete-dead-exceptions): New switch.
3364         * doc/invoke.texi (Code Gen Options): Document it.
3365         * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
3366         insn_could_throw_p predicate.  Do not skip an insn that could throw
3367         if dead exceptions can be deleted.
3368         (insn_live_p): Likewise, do not return true in that case.
3369         * dce.c (can_alter_cfg): New flag.
3370         (deletable_insn_p): Do not return false for an insn that can throw if
3371         the CFG can be altered and dead exceptions can be deleted.
3372         (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
3373         * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
3374         predicate. Do not preserve an insn that could throw if dead exceptions
3375         can be deleted.
3376         * function.h (struct function): Add can_delete_dead_exceptions flag.
3377         * function.c (allocate_struct_function): Set it.
3378         * lto-streamer-in.c (input_struct_function_base): Stream it.
3379         * lto-streamer-out.c (input_struct_function_base): Likewise.
3380         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
3381         statement that could throw as necessary if dead exceptions can be
3382         deleted.
3383
3384 2012-06-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
3385
3386         * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
3387
3388 2012-06-14  Oleg Endo  <olegendo@gcc.gnu.org>
3389
3390         PR target/53568
3391         * config/sh/sh.md: Add peephole for swapbsi2.
3392         (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
3393
3394 2012-06-14  Uros Bizjak  <ubizjak@gmail.com>
3395
3396         * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
3397         (*zero_extendsidi2_rex64): Ditto.  Remove isa attribute.
3398
3399 2012-06-14  Jakub Jelinek  <jakub@redhat.com>
3400
3401         PR target/53639
3402         * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
3403
3404 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
3405
3406         * arm.c (arm_cirrus_insn_p): Delete.
3407         (cirrus_reorg): Delete.
3408         (arm_reorg): Don't call cirrus_reorg.
3409         (arm_final_prescan_insn_p): Don't check for cirrus insns.
3410         * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
3411         (adddi3, subdi3): Remove Maverick support.
3412         (arm_adddi3): Likewise.
3413         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
3414         (addsf3, adddf3): Likewise.
3415         (subsf3, subdf3): Likewise.
3416         (mulsf3, muldf3): Likewise.
3417         (ashldi3, ashrdi3, lshrdi3): Likewise.
3418         (floatsisf2, floatsidf2): Likewise.
3419         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
3420         (arm_movdi, thumb1_movdi_insn): Likewise.
3421         (arm_cmpdi_insn): Likewise.
3422         (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
3423         (cirrus.md): Don't include.
3424         * cirrus.md: Delete file.
3425         * t-arm (MD_INCLUDES): Remove cirrus.md.
3426
3427 2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
3428
3429         * dwarf2out.c (function_possibly_abstracted_p): New static function.
3430         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
3431         cgraph_function_possibly_inlined_p.
3432         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
3433         (process_scope_var): Do not emit concrete instances of abstracted
3434         nested functions from here.
3435         (gen_decl_die): Emit the abstract instance if the function is possibly
3436         abstracted and not only possibly inlined.
3437         (dwarf2out_finish): Find the first non-abstract parent instance and
3438         attach concrete instances on the limbo list to it.
3439
3440 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
3441
3442         * arm.md (divsf3, divdf3): Remove FPA support.
3443         (negsf2, negdf2): Likewise.
3444         (sqrtsf2, sqrtdf2): Likewise.
3445         (movdfcc): Likewise.
3446         (modsf3, moddf3, movxf): Delete.
3447         (push_fp_multi): Delete.
3448         (fpa.md): Don't include it.
3449         * fpa.md: Delete file.
3450         * t-arm (MD_INCLUDES): Remove fpa.md.
3451
3452 2012-06-14  Bill Schmidt  <wschmidt@linux.ibm.com>
3453
3454         * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
3455         (cost_for_stmt): Remove decl.
3456         (vect_get_single_scalar_iteration_cost): Correct typo in name.
3457         * tree-vect-loop.c (vect_get_cost): Remove.
3458         (vect_get_single_scalar_iteration_cost): Correct typo in name; use
3459         vect_get_stmt_cost rather than vect_get_cost.
3460         (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
3461         vect_get_cost.
3462         (vect_estimate_min_profitable_iters): Correct typo in call to
3463         vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
3464         than vect_get_cost.
3465         (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
3466         vect_get_cost.
3467         (vect_model_induction_cost): Likewise.
3468         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
3469         typo in call to vect_get_single_scalar_iteration_cost.
3470         * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
3471         (cost_for_stmt): Remove unnecessary function.
3472         * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
3473
3474 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
3475
3476         * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
3477         * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
3478         * arm-tables.opt: Regenerated.
3479         * doc/invoke.texi: Remove references to deleted options.
3480
3481 2012-06-14  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
3482
3483         * config/h8300/genmova.sh: Modified to add offset bits of
3484         mova/Sz assembly instruction for memory access.
3485         * config/h8300/h8300.c: Likewise.
3486         * config/h8300/mova.md: Likewise.
3487
3488 2012-06-12  Christian Bruel  <christian.bruel@st.com>
3489
3490         PR target/53621
3491         * config/sh/sh.c (sh_option_override): Don't force
3492          flag_omit_frame_pointer and maccumulate_outgoing_args.
3493         * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
3494
3495 2012-06-14  Richard Guenther  <rguenther@suse.de>
3496
3497         * tree-vrp.c (VR_INITIALIZER): New define.
3498         (ranges_from_anti_range): New function.
3499         (extract_range_from_binary_expr_1): Decompose operations on
3500         VR_ANTI_RANGEs to operations on VR_RANGE.
3501         (extract_range_from_unary_expr_1): Likewise.
3502         (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
3503         extract_range_from_unary_expr_1, extract_range_from_unary_expr,
3504         extract_range_from_cond_expr, adjust_range_with_scev,
3505         vrp_visit_assignment_or_call, vrp_visit_phi_node,
3506         simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
3507
3508 2012-06-13  Richard Henderson  <rth@redhat.com>
3509
3510         * hwint.h (HOST_WIDEST_INT_C): New.
3511         (HOST_WIDE_INT_C): New.
3512         (HOST_WIDE_INT_1): Use it.
3513         * config/alpha/alpha.c (alpha_trampoline_init): Use it.
3514
3515 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
3516
3517         PR debug/49888
3518         * var-tracking.c: Include alias.h.
3519         (overlapping_mems): New struct.
3520         (drop_overlapping_mem_locs): New.
3521         (clobber_overlapping_mems): New.
3522         (var_mem_delete_and_set, var_mem_delete): Call it.
3523         (val_bind): Likewise, but only if modified.
3524         (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
3525         * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
3526
3527 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
3528
3529         PR debug/47624
3530         * var-tracking.c (loc_exp_dep_pool): New.
3531         (vt_emit_notes): Create and release the pool.
3532         (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
3533         (emit_notes_in_bb): Likewise.
3534         (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
3535         (notify_dependents_of_changed_value): Likewise.
3536         (notify_dependents_of_resolved_value): Check that NOT_ONEPART
3537         variables don't have a VAR_LOC_DEP_LST.
3538         (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
3539         VALUEs or MEMs of VALUEs.
3540
3541 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
3542
3543         PR debug/52983
3544         PR debug/48866
3545         * dce.c (word_dce_process_block): Insert debug temps only if the
3546         insn is not marked.
3547         (dce_process_block): Likewise, and if debug.used is not empty,
3548         and only after iterating over all DEFs that might mark the insn.
3549
3550 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
3551
3552         * common.opt (ftree-coalesce-inlined-vars): New.
3553         (ftree-coalesce-vars): New.
3554         * doc/invoke.texi: Document them.
3555         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
3556         Implement them.
3557
3558 2012-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
3559
3560         * read-rtl.c (mapping): Remove index field.  Add current_value field.
3561         Define heap vectors.
3562         (iterator_group): Fix long line.  Remove num_builtins field and
3563         uses_iterator fields.  Make apply_iterator take a void * parameter.
3564         (iterator_use, atttribute_use): New structures.
3565         (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
3566         (current_iterators, iterator_uses, attribute_uses): New variables.
3567         (uses_mode_iterator_p, uses_code_iterator_p): Delete.
3568         (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
3569         (map_attr_string, apply_iterator_to_string): Remove iterator
3570         and value parameters.  Look through all current iterator values
3571         for a matching attribute.
3572         (mode_attr_index, apply_mode_maps): Delete.
3573         (apply_iterator_to_rtx): Replace with...
3574         (copy_rtx_for_iterators): ...this new function.
3575         (uses_iterator_p, apply_iterator_traverse): Delete.
3576         (apply_attribute_uses, add_current_iterators, apply_iterators): New
3577         functions.
3578         (add_mapping): Remove index field.  Set current_value field.
3579         (initialize_iterators): Don't set num_builtins and uses_iterator_p
3580         fields.
3581         (find_iterator): Delete.
3582         (record_iterator_use, record_attribute_use): New functions.
3583         (record_potential_iterator_use): New function.
3584         (check_code_iterator): Remove handling of bellwether codes.
3585         (read_rtx): Remove mode maps.  Truncate iterator and attribute uses.
3586         (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
3587         parameter.  Use the first code iterator value instead of the
3588         bellwether_codes array.  Use record_potential_iterator_use for modes.
3589
3590 2012-06-13  Oleg Endo  <olegendo@gcc.gnu.org>
3591
3592         PR target/53568
3593         * config/sh/sh.md (bswapsi2): New expander.
3594         (swapbsi2): New insn.
3595
3596 2012-06-13  H.J. Lu  <hongjiu.lu@intel.com>
3597
3598         PR target/53647
3599         * config/i386/i386.c (ix86_tune_cost): New variable.
3600         (ix86_option_override_internal): Set ix86_tune_cost.  Use
3601         ix86_tune_cost for simultaneous_prefetches, prefetch_block,
3602         l1_cache_size and l2_cache_size.
3603
3604 2012-06-13  Richard Guenther  <rguenther@suse.de>
3605
3606         * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
3607         Handle meeting two VR_RANGE to an VR_ANTI_RANGE.  Implement
3608         all possible meetings of VR_RANGE with VR_ANTI_RANGE and
3609         VR_ANTI_RANGE with VR_ANTI_RANGE.
3610
3611 2012-06-13  Richard Earnshaw  <rearnsha@arm.com>
3612
3613         * config.gcc (unsupported): Move obsoleted FPA-based configurations
3614         here from ...
3615         (obsolete): ... here.
3616         (arm*-*-freebsd*): Remove.
3617         (arm*-*-linux*): Only accept EABI variants.  Simplify logic.
3618         (arm*-*-uclinux*): Likewise.
3619         (arm*-*-ecos-elf): Remove.
3620         (arm*-*-rtems*): Remove.
3621         (arm*-*-elf): Remove.
3622         (arm*-wince-pe*): Remove.
3623         (arm, --with-fpu): Remove support for fpa and Maverick variants.
3624         * arm/ecos-elf.h: Delete.
3625         * arm/t-strongarm-elf: Delete.
3626         * arm/rtems-elf.h: Delete.
3627         * arm/wince-pe.h: Delete.
3628         * arm/pe.c: Delete.
3629         * arm/pe.h: Delete.
3630         * arm/t-wince-pe: Delete.
3631
3632 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
3633
3634         PR tree-optimization/53647
3635         * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
3636         targets with no defined cache line size.
3637
3638 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
3639
3640         * targhooks.c (default_builtin_vectorized_conversion): Handle
3641         vec_construct, using vectype to base cost on subparts.
3642         * target.h (enum vect_cost_for_stmt): Add vec_construct.
3643         * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
3644         instead of scalar_to-vec.
3645         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
3646         vec_construct in same way as default for now.
3647         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
3648         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3649         Handle vec_construct, including special case for 32-bit loads.
3650
3651 2012-06-13  Xinyu Qi <xyqi@marvell.com>
3652
3653         * config/arm/arm.c (FL_IWMMXT2): New define.
3654         (arm_arch_iwmmxt2): New variable.
3655         (arm_option_override): Enable use of iWMMXt with VFP.
3656         Disable use of iWMMXt with NEON. Disable use of iWMMXt under
3657         Thumb mode. Set arm_arch_iwmmxt2.
3658         (arm_expand_binop_builtin): Accept VOIDmode op.
3659         (enum arm_builtins): Revise built-in fcode.
3660         (IWMMXT2_BUILTIN): New define.
3661         (IWMMXT2_BUILTIN2): Likewise.
3662         (iwmmx2_mbuiltin): Likewise.
3663         (builtin_description bdesc_2arg): Revise built in declaration.
3664         (builtin_description bdesc_1arg): Likewise.
3665         (arm_init_iwmmxt_builtins): Revise built in initialization.
3666         (arm_expand_builtin): Revise built in expansion.
3667         (arm_output_iwmmxt_shift_immediate): New function.
3668         (arm_output_iwmmxt_tinsr): Likewise.
3669         * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
3670         (arm_output_iwmmxt_tinsr): Likewise.
3671         * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
3672         (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
3673         (rorv4hi3, rorv2si3, rordi3): Likewise.
3674         (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
3675         (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
3676         (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
3677         (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
3678         (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
3679         (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
3680         (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
3681         (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
3682         (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
3683         (ror<mode>3, ror<mode>3_di): Likewise.
3684         (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
3685         (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
3686         (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
3687         (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
3688         (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
3689         (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
3690         (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
3691         (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
3692         (All instruction patterns): Add wtype attribute.
3693         (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
3694         (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
3695         (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
3696         (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
3697         (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
3698         (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
3699         (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
3700         (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
3701         (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
3702         (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
3703         (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
3704         (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
3705         (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
3706         (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
3707         (iwmmxt2.md): Include.
3708         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
3709         (TARGET_IWMMXT2): New define.
3710         (TARGET_REALLY_IWMMXT2): Likewise.
3711         (arm_arch_iwmmxt2): Declare.
3712         * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
3713         Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
3714         Use C name-mangling for intrinsics.
3715         (__v8qi): Redefine.
3716         (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
3717         (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
3718         (_m_from_int): Likewise.
3719         (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
3720         (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
3721         (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
3722         (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
3723         (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
3724         (_mm_tbcst_pi32): Likewise.
3725         (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
3726         (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
3727         (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
3728         (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
3729         (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
3730         (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
3731         (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
3732         (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
3733         (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
3734         (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
3735         (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
3736         (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
3737         (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
3738         (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
3739         (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
3740         (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
3741         (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
3742         (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
3743         (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
3744         (_m_to_int): New define.
3745         * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
3746         * config/arm/arm-arches.def (iwmmxt2): Likewise.
3747         * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
3748         iwmmxt2.md.
3749         * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
3750         (arch): Add "iwmmxt2".
3751         (arch_enabled): Handle "iwmmxt2".
3752         (wtype): New attribute.
3753         (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
3754         (UNSPEC_WALIGNI): New unspec.
3755         * config/arm/predicates.md (imm_or_reg_operand): New predicate.
3756         * config/arm/iterators.md (VMMX2): New mode_iterator.
3757         * config/arm/marvell-f-iwmmxt.md: New file.
3758         * config/arm/iwmmxt2.md: New file.
3759
3760 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
3761
3762         PR c/53532
3763         PR c/51034
3764         PR c/53196
3765         * c-decl.c (build_compound_literal): Call c_incomplete_type_error
3766         if type isn't complete.
3767
3768 2012-06-12  Uros Bizjak  <ubizjak@gmail.com>
3769
3770         * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
3771
3772 2012-06-12  Richard Henderson  <rth@redhat.com>
3773
3774         * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
3775         iterator instead of INT.
3776
3777 2012-06-12  Bill Schmidt  <wschmidt@linux.ibm.com>
3778
3779         * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
3780         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
3781         declaration.
3782         (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
3783         (tree_ssa_phiopt): Call gate_hoist_loads.
3784         (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
3785         (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
3786         hoist_adjacent_loads.
3787         (local_mem_dependence): New function.
3788         (hoist_adjacent_loads): Likewise.
3789         (gate_hoist_loads): Likewise.
3790         * common.opt (fhoist-adjacent-loads): New switch.
3791         * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
3792
3793 2012-06-12  Michael Matz  <matz@suse.de>
3794
3795         * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
3796         (nonoverlapping_memrefs_p): Don't call it here ...
3797         (true_dependence_1): ... but here.
3798
3799 2012-06-12  Richard Guenther  <rguenther@suse.de>
3800
3801         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
3802         * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
3803         and MEM_SIZE only refines it.  Reflect that and be less conservative
3804         if either of the latter is not known.
3805
3806 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
3807
3808         PR rtl-optimization/53589
3809         * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
3810         discovery even when e->dest != target.  If any LABEL_REF points
3811         to e->dest label, redirect it to target's label.
3812
3813 2012-06-12  Chung-Lin Tang  <cltang@codesourcery.com>
3814
3815         * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
3816         condition for generating REG_FRAME_RELATED_EXPR note.
3817         (pop): Add code for generating REG_CFA_RESTORE,
3818         REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
3819         (sh_expand_epilogue): Use frame_insn() for FP to SP move.
3820         Set 'frame_p' of calls to output_stack_adjust() to 'true'.
3821
3822 2012-06-11  Richard Henderson  <rth@redhat.com>
3823
3824         * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
3825         * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
3826
3827         * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
3828
3829 2012-06-12  Hans-Peter Nilsson  <hp@axis.com>
3830
3831         * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
3832         Mention that this hook needs to be defined for native TLS.
3833         * doc/tm.texi: Regenerate.
3834
3835 2012-06-11  Mike Stump  <mikestump@comcast.net>
3836
3837         * emit-rtl.c (init_emit_once): Iterate through the
3838         MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
3839         MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
3840         all the MIN_MODE_PARTIAL_INT modes anymore.
3841
3842 2012-06-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
3843
3844         * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
3845
3846 2012-06-11  Roland McGrath  <mcgrathr@google.com>
3847
3848         * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
3849         SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
3850         not a VAR_DECL.  Also don't limit it to UNSPECs with exactly one
3851         operand.
3852
3853 2012-06-11  Oleg Endo  <olegendo@gcc.gnu.org>
3854
3855         PR target/53511
3856         * config/sh/sh.md (fmasf4): New expander.
3857         (*macsf3): Rename to fmasf4_i.  Adapt to fma pattern.
3858         (mac_media): Rename to fmasf4_media.  Adapt to fma pattern.
3859         * config/sh/sh.opt (mfused-madd): Remove.
3860         * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
3861         (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
3862         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
3863         as extra options.
3864         * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
3865         descriptions.
3866
3867 2012-06-11  Richard Henderson  <rth@redhat.com>
3868
3869         * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
3870
3871 2012-06-11  Richard Guenther  <rguenther@suse.de>
3872
3873         PR middle-end/53470
3874         * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
3875         replace it with the first non-BLOCK context.
3876
3877 2012-06-11  Richard Guenther  <rguenther@suse.de>
3878
3879         * alias.c (aliases_everything_p): Remove.
3880         (DIFFERENT_ALIAS_SETS_P): Likewise.
3881         (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
3882         Do not use aliases_everything_p or special-case ANDs.  Do not
3883         special-case BLKmode moves.
3884         (may_alias_p): Likewise.  Handle BLKmode similar like everywhere
3885         - for SCATCH only.
3886
3887 2012-06-09  Hans-Peter Nilsson  <hp@axis.com>
3888
3889         Fix CRIS build errors with --enable-build-with-cxx.
3890         * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
3891         variable "and" to "andop".
3892         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
3893         temporary variable for memory model, passing C++-type-correct
3894         parameter type to expand_mem_thread_fence.
3895         ("atomic_compare_and_swap<mode>"): Ditto.
3896
3897 2012-06-09  Richard Henderson  <rth@redhat.com>
3898
3899         PR c++/53602
3900         * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
3901         (pass_jump): Rename from pass_jump2.
3902         (execute_jump2, pass_jump2): New.
3903         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
3904         perform cfg cleanup here.  Move the test of PUSH_ROUNDING
3905         and ACCUMULATE_OUTGOING_ARGS test...
3906         (gate_handle_stack_adjustments): ... here.
3907         * passes.c (init_optimization_passes): Update for pass_jump2 rename.
3908         Place new pass_jump2 after pass_stack_adjustments.
3909         * tree-pass.h (pass_jump): Declare.
3910
3911 2012-06-09  Kenneth Zadeck <zadeck@naturalbridge.com>
3912
3913         * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
3914         count trucation.
3915
3916 2012-06-08  Richard Henderson  <rth@redhat.com>
3917
3918         PR c++/53602
3919         * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
3920         note to a clobber insn when no other insn is available.
3921
3922 2012-06-08  Georg-Johann Lay  <avr@gjlay.de>
3923
3924         * config/avr/avr.c (avr_case_values_threshold): Return 7.
3925
3926 2012-06-07  Andreas Schwab  <schwab@linux-m68k.org>
3927
3928         * genhooks.c (main): Set progname.
3929         (emit_documentation): Remove variable found_start, always bail out
3930         when a place is missing.
3931         * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
3932
3933 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
3934
3935         PR middle-end/53580
3936         * omp-low.c (scan_omp): Change first argument to gimple_seq *,
3937         call walk_gimple_seq_mod instead of walk_gimple_seq.
3938         (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
3939         scan_omp_for, scan_omp_sections, scan_omp_single,
3940         execute_lower_omp): Adjust callers.
3941         (scan_omp_1_stmt): Likewise.  If check_omp_nesting_restrictions
3942         returns false, replace stmt with GIMPLE_NOP.
3943         (check_omp_nesting_restrictions): Instead of issuing warnings,
3944         issue errors and return false if any errors were reported.
3945
3946 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
3947
3948         * doc/invoke.texi (fconserve-space): Remove documentation.
3949
3950 2012-06-06  Edmar Wienskoski  <edmar@freescale.com>
3951
3952         * config/rs6000/rs6000-tables.opt: Regenerated.
3953
3954 2012-06-06  Richard Guenther  <rguenther@suse.de>
3955
3956         PR tree-optimization/53081
3957         * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
3958         (adjacent_dr_p): ... this and make it work for reads, too.
3959         * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
3960         (struct partition_s): Change main_stmt to main_dr, add
3961         secondary_dr member.
3962         (build_size_arg_loc): Change to date data-reference and not
3963         gimplify here.
3964         (build_addr_arg_loc): New function split out from ...
3965         (generate_memset_builtin): ... here.  Use it and simplify.
3966         (generate_memcpy_builtin): New function.
3967         (generate_code_for_partition): Adjust.
3968         (classify_partition): Streamline pattern detection.  Detect memcpy.
3969         (ldist_gen): Adjust.
3970         (tree_loop_distribution): Adjust seed statements for memcpy
3971         recognition.
3972
3973 2012-06-06  Matt Turner  <mattst88@gmail.com>
3974
3975         * config/arm/mmintrin.h (_mm_empty): New.
3976         (_m_empty): New.
3977
3978 2012-06-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
3979
3980         * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
3981         * common.opt (fsched-pressure-algorithm=): Remove.
3982         * flag-types.h (sched_pressure_algorithm): Move to...
3983         * sched-int.h (sched_pressure_algorithm): ...here.
3984         * params.def (sched-pressure-algorithm): New param.
3985         * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
3986         * common/config/s390/s390-common.c (s390_option_optimization_table):
3987         Remove OPT_fsched_pressure_algorithm_ entry.
3988         * config/s390/s390.c (s390_option_override): Set a default value for
3989         PARAM_SCHED_PRESSURE_ALGORITHM.
3990
3991 2012-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
3992
3993         PR target/53487
3994         * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
3995         doing an unsigned compare, make sure the second argument is not a
3996         negative constant.
3997         (rs6000_emit_cmove): Don't allow floating point comparisons when
3998         generating ISEL moves.
3999
4000 2012-06-05  Edmar Wienskoski  <edmar@freescale.com>
4001
4002         * config/rs6000/e5500.md: New file.
4003         * config/rs6000/e6500.md: New file.
4004         * config/rs6000/rs6000.c (processor_costs): Add new costs for
4005         e5500 and e6500.
4006         (rs6000_option_override_internal): Altivec and Spe options not
4007         allowed with e5500. Spe options not allowed with e6500. Increase
4008         move inline limit for e5500 and e6500. Disable string instructions
4009         for e5500 and e6500. Enable branch targets alignment for e5500 and
4010         e6500. Initialize rs6000_cost for e5500 and e6500.
4011         (rs6000_adjust_cost): Add extra scheduling cycles between compare
4012         and brnach for e5500 and e6500.
4013         (rs6000_issue_rate): Set issue rate for e5500 and e6500.
4014         * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
4015         e6500.
4016         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
4017         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
4018         ppce6500.
4019         Include e5500.md and e6500.md.
4020         * config/rs6000/rs6000-opt.h (processor_type): Add
4021         PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
4022         * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
4023         (powerpc*-*-*): Add new cores e5500, e6500.
4024         * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
4025
4026 2012-06-05  Richard Guenther  <rguenther@suse.de>
4027
4028         * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
4029
4030 2012-06-05  H.J. Lu  <hongjiu.lu@intel.com>
4031
4032         PR target/53575
4033         * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
4034         is used for x86_64-*-*.
4035
4036 2012-06-05  Richard Guenther  <rguenther@suse.de>
4037
4038         PR tree-optimization/30442
4039         * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
4040         vectorization stop analysis at the first stmt we cannot compute
4041         a data-reference for instead of giving up completely.
4042
4043 2012-06-05  Richard Guenther  <rguenther@suse.de>
4044
4045         * tree-loop-distribution.c (struct partition_s): Add has_writes member.
4046         (partition_alloc): Initialize it.
4047         (partition_has_writes): New function.
4048         (rdg_flag_uses): Adjust.
4049         (rdg_flag_vertex): Likewise.
4050         (rdg_flag_vertex_and_dependent): Likewise.
4051         (rdg_flag_loop_exits): Likewise.
4052         (build_rdg_partition_for_component): Likewise.
4053         (rdg_build_partitions): Likewise.
4054
4055 2012-06-05  Richard Guenther  <rguenther@suse.de>
4056
4057         PR tree-optimization/53081
4058         * tree-loop-distribution.c (generate_memset_builtin): Handle all
4059         kinds of byte-sized stores.
4060         (classify_partition): Likewise.
4061         (tree_loop_distribution): Adjust seed statements used for
4062         !flag_tree_loop_distribution.
4063
4064 2012-06-05  Alan Modra  <amodra@gmail.com>
4065
4066         * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
4067         (rs6000_emit_prologue): Ensure register used for inline saves
4068         of vector regs is not the static chain register.  Revise comment.
4069
4070 2012-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
4071
4072         * doc/md.texi (Standard Pattern Names For Generation): Document
4073         sincos pattern.
4074
4075 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4076
4077         PR bootstrap/53555
4078         * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
4079
4080 2012-06-04  Jason Merrill  <jason@redhat.com>
4081
4082         * dwarf2out.c (is_unit_die): New.
4083         (copy_declaration_context, copy_ancestor_tree): Use it.
4084         (copy_decls_walk): Likewise.
4085
4086 2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>
4087
4088         PR c++/53524
4089         * doc/invoke.texi (Wenum-compare): Update documentation.
4090
4091 2012-06-04  Dodji Seketeli  <dodji@redhat.com>
4092
4093         PR preprocessor/53463
4094         * parser.c (cp_parser_assignment_expression): Use the location
4095         for the '=' as the default location for the expression.
4096
4097 2012-06-04  Edmar Wienskoski  <edmar@freescale.com>
4098
4099         PR target/53559
4100         * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
4101         operands.
4102         (altivec_stvlxl): Ditto.
4103         (altivec_stvrx): Ditto.
4104         (altivec_stvrxl): Ditto.
4105
4106 2012-06-04  Vladimir Makarov  <vmakarov@redhat.com>
4107
4108         * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
4109         (ira_uniform_class_p): New macro.
4110
4111         * ira.c (setup_uniform_class_p): New function.
4112         (setup_allocno_and_important_classes): Call the function.
4113         (print_unform_and_important_classes): New function.
4114         (print_classes): Rename to print_translated_classes.
4115         (ira_debug_allocno_classes): Add call of
4116         print_unform_and_important_classes.
4117
4118         * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
4119         classes instead of pressure classes.
4120
4121 2012-06-04  Aldy Hernandez  <aldyh@redhat.com>
4122
4123         PR middle-end/47530
4124         * trans-mem.c (expand_block_edges): Do not skip the first
4125         statement when resetting the BB.
4126
4127 2012-06-04  Richard Guenther  <rguenther@suse.de>
4128
4129         * tree-data-ref.c (stores_from_loop): Remove.
4130         (stmt_with_adjacent_zero_store_dr_p): Likewise.
4131         (stores_zero_from_loop): Likewise.
4132         * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
4133         stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
4134         (adjacent_store_dr_p): New function.
4135         * tree-loop-distribution.c (generate_memset_builtin): Pass
4136         the RDG, use the already available data-reference.
4137         (generate_code_for_partition): Pass down RDG.
4138         (classify_partition): Inline parts of the former
4139         stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
4140         (ldist_gen): Remember if there was any detected builtin and
4141         do less work if not and flag_tree_loop_distribution is not set.
4142         (tree_loop_distribution): Inline and fuse stores_from_loop
4143         and stores_zero_from_loop here.
4144
4145 2012-06-04  Richard Guenther  <rguenther@suse.de>
4146
4147         PR middle-end/53471
4148         * dwarf2out.c (dwarf2out_finish): If generating LTO do not
4149         create new assembler names.
4150
4151 2012-06-04  Richard Guenther  <rguenther@suse.de>
4152
4153         * tree-data-ref.c (struct rdg_vertex_info): Remove.
4154         (rdg_vertex_for_stmt): Simplify using gimple_uid.
4155         (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
4156         hashtable.  Record stmt data-references.
4157         (hash_stmt_vertex_info): Remove.
4158         (eq_stmt_vertex_info): Likewise.
4159         (hash_stmt_vertex_del): Likewise.
4160         (build_empty_rdg): Simplify.
4161         (build_rdg): Adjust.
4162         (free_rdg): Likewise.
4163         (ref_base_address): Remove.
4164         (have_similar_memory_accesses): Likewise.
4165         * tree-data-ref.h (create_rdg_vertices): Remove.
4166         (struct rdg_vertex): Add datarefs member.
4167         (RDGV_DATAREFS): New define.
4168         (RDG_DATAREFS): Likewise.
4169         (have_similar_memory_accesses): Remove.
4170         (rdg_has_similar_memory_accesses): Likewise.
4171         * tree-loop-distribution.c (ref_base_address): Re-implement here.
4172         (similar_memory_accesses): Re-implement using existing data-references.
4173         (tree_loop_distribution): Initialize stmt uids for the stmt to
4174         RDG index mapping.
4175         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
4176         access stmt vinfo for stmts in loop.
4177
4178 2012-06-04  Andreas Schwab  <schwab@linux-m68k.org>
4179
4180         PR target/53461
4181         * config/m68k/m68k.md ("tablejump"): Fix check for
4182         CASE_VECTOR_PC_RELATIVE.
4183
4184 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
4185
4186         * output.h (merge_weak, assemble_alias,
4187         initializer_constant_valid_p,
4188         initializer_constant_valid_for_bitfield_p): Move protos from here...
4189         * tree.h: ... to here.
4190         * cgraphclones.c: Do not include output.h.
4191         * gimplify.c: Likewise.
4192         * reload.c: Likewise.
4193         * recog.c: Likewise.
4194         * tree-ssa-loop-ivopts.c: Likewise.
4195         * tree-switch-conversion.c: Likewise.
4196         * c-parser.c: Likewise.
4197         * c-typeck.c: Likewise.
4198         * Makefile.in: Fix dependencies.
4199
4200 2012-06-04  Georg-Johann Lay  <avr@gjlay.de>
4201
4202         PR target/46261
4203         * config/avr/avr-stdint.h: New file.
4204         * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
4205         newlib-stdint.h
4206
4207 2012-06-04  Jakub Jelinek  <jakub@redhat.com>
4208
4209         PR tree-optimization/53550
4210         * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
4211         is POINTER_TYPE_P, use sizetype as step type instead of type.
4212
4213 2012-06-04  Richard Guenther  <rguenther@suse.de>
4214
4215         * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
4216         (ref_base_address_1): Likewise.
4217         (remove_similar_memory_refs): Likewise.
4218         * tree-data-ref.h (remove_similar_memory_refs): Remove.
4219         * tree-loop-distribution.c (classify_partition): Do not classify
4220         as builtin if -ftree-loop-distribute-patterns is not enabled.
4221         (fuse_partitions_with_similar_memory_accesses): Inline ...
4222         (ldist_gen): ... here.  Fuse all non-builtin partitions if
4223         -ftree-loop-distribution is not enabled.  Properly return
4224         the number of created partitions.  Do not update SSA form here but ...
4225         (tree_loop_distribution): ... once here for the whole function.
4226         Only walk innermost loops, constrain loops we consider here
4227         further.  Do not call remove_similar_memory_refs.
4228         (distribute_loop): Do not check number of loop nodes here.
4229
4230 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
4231
4232         * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
4233
4234 2012-06-03  Martin Jambor  <mjambor@suse.cz>
4235
4236         * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
4237         (ipa_get_jf_known_type_base_type): Likewise.
4238         (ipa_get_jf_known_type_component_type): Likewise.
4239         (ipa_get_jf_constant): Likewise.
4240         (ipa_get_jf_pass_through_formal_id): Likewise.
4241         (ipa_get_jf_pass_through_operation): Likewise.
4242         (ipa_get_jf_ancestor_offset): Likewise.
4243         (ipa_get_jf_ancestor_type): Likewise.
4244         (ipa_get_jf_ancestor_formal_id): Likewise.
4245         (ipa_get_jf_member_ptr_pfn): Likewise.
4246         * ipa-prop.c (ipa_set_jf_known_type): New function.
4247         (ipa_set_jf_constant): Likewise.
4248         (ipa_set_jf_simple_pass_through): Likewise.
4249         (ipa_set_jf_arith_pass_through): Likewise.
4250         (ipa_set_ancestor_jf): Likewise.
4251         (fill_member_ptr_cst_jump_function): Moved up and renamed to
4252         ipa_set_jf_member_ptr_cst.
4253         (detect_type_change_1): Use the new jump function creation functions.
4254         (compute_complex_assign_jump_func): Likewise.
4255         (compute_complex_ancestor_jump_func): Likewise.
4256         (compute_known_type_jump_func): Likewise.
4257         (compute_scalar_jump_functions): Likewise.
4258         (compute_pass_through_member_ptrs): Likewise.
4259         (determine_cst_member_ptr): Likewise.
4260         (combine_known_type_and_ancestor_jfs): Likewise.
4261         (try_make_edge_direct_simple_call): Likewise.
4262         (try_make_edge_direct_virtual_call): Likewise.
4263         (update_indirect_edges_after_inlining): Likewise.
4264         * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
4265         access functions.  Incorporat NOP_EXPR and BINFO handling from its
4266         callers.
4267         (ipa_get_jf_ancestor_result): Likewise.  Incorporate handling BINFOs
4268         which was in its callers.
4269         (ipa_value_from_jfunc): Use jump function access functions.  Some
4270         functionality moved to functions above.
4271         (propagate_vals_accross_ancestor): Likewise.
4272         (propagate_vals_accross_pass_through): Use jump function access
4273         functions.
4274         (propagate_accross_jump_function): Likewise.
4275         * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
4276         access functions.
4277         (inline_merge_summary): Likewise.
4278
4279 2012-06-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4280
4281         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
4282         * config/pa/pa.c (pa_attr_length_millicode_call): Use
4283         MAX_PCREL17F_OFFSET instead of fixed offset.
4284         (pa_attr_length_call): Likewise.
4285         (pa_attr_length_indirect_call): Likewise.
4286
4287 2012-06-03  Oleg Endo  <olegendo@gcc.gnu.org>
4288
4289         PR target/53512
4290         * config/sh/sh.opt (mfsca, mfsrra): New options.
4291         * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
4292         condition.
4293         (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
4294         (sinssf2, cossf2): Fold expanders to ...
4295         (sincossf3): ... this new expander.  Use TARGET_FPU_ANY and
4296         TARGET_FSCA condition.
4297         * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
4298         TARGET_FSCA.
4299         * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
4300         -mno-fsca, -mfsrra, -mno-fsrra.
4301
4302 2012-06-03  Matt Turner  <mattst88@gmail.com>
4303
4304         * config/mips/4600.md (r4700_imul_si): New.
4305         (r4700_imul_di): New.
4306         (r4700_fmul_single): New.
4307         (r4700_fmul_double): New.
4308         * config/mips/mips-cpus.def: Add r4700.
4309         * config/mips/mips.c: Likewise.
4310         * config/mips/mips.md: Likewise.
4311         * config/mips/mips-tables.opt: Regenerate.
4312
4313 2012-06-02  Steven Bosscher  <steven@gcc.gnu.org>
4314
4315         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
4316         new function sparc_initial_elimination_offset.
4317         * config/sparc/sparc.c (sparc_initial_elimination_offset): New
4318         function.
4319         * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
4320         Prototype it.
4321
4322 2012-06-02  Kenneth Zadeck <zadeck@naturalbridge.com>
4323
4324         * expmed.c (expand_mult, choose_multiplier): Change
4325         "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
4326         * expr.c (convert_modes): Likewise.
4327         * explow.c (plus_constant): Likewise.
4328         * fixed-value.c (fixed_saturate1, fixed_saturate2)
4329         (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
4330         (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
4331         (do_fixed_divide, do_fixed_divide, do_fixed_divide)
4332         (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
4333         (do_fixed_shift, fixed_convert, fixed_convert)
4334         (fixed_convert_from_int, fixed_convert_from_int)
4335         (fixed_convert_from_real): Likewise.
4336         * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
4337         (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
4338         * varasm.c (output_constructor_bitfield): Likewise.
4339         * tree-vrp.c (register_edge_assert_for_2): Likewise.
4340         * double-int.c (rshift_double, lshift_double): Likewise.
4341         * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
4342         Likewise.
4343         * simplify-rtx.c (mode_signbit_p)
4344         (simplify_const_unary_operation, simplify_binary_operation_1)
4345         (simplify_immed_subreg): Likewise.
4346         * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
4347         * tree-vect-generic.c (build_replicated_const): Likewise.
4348         * dbxout.c (stabstr_O): Likewise.
4349         * emit-rtl.c (immed_double_int_const, immed_double_const)
4350         (gen_lowpart_common, init_emit_once): Likewise.
4351         * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
4352         (widest_int_cst_value, upper_bound_in_type): Likewise.
4353         * stor-layout.c (initialize_sizetypes, fixup_signed_type)
4354         (fixup_unsigned_type): Likewise.
4355         * real.c (real_to_integer2, real_from_integer): Likewise.
4356         * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
4357         (clz_loc_descriptor, mem_loc_descriptor): Likewise.
4358
4359 2012-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4360
4361         PR middle-end/53501
4362         * fold-const.c (fold_binary_loc): Refine previous change.
4363
4364 2012-06-01  Olivier Hainque  <hainque@adacore.com>
4365
4366         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
4367         the "do {" part of the do-while(0) loop.
4368
4369 2012-06-01  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
4370
4371         * config/i386/i386.c (x86_sched_reorder): New function.
4372         Added new function x86_sched_reorder.
4373
4374 2012-06-01  Richard Guenther  <rguenther@suse.de>
4375
4376         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
4377         Handle PHIs.
4378         (classify_partition): Likewise.
4379
4380 2012-06-01  Richard Guenther  <rguenther@suse.de>
4381
4382         * tree-loop-distribution.c (enum partition_kind): New enum.
4383         (struct partition_s): Add kind and main_stmt members.
4384         (partition_alloc): Initialize kind to PKIND_NORMAL.
4385         (partition_builtin_p): New function.
4386         (copy_loop_before): Remove failure path and assert instead.
4387         (generate_loops_for_partition): Likewise.
4388         (generate_memset_zero): Fold into ...
4389         (generate_memset_builtin): ... this.
4390         (classify_partition): New function with code from
4391         can_generate_builtin and generate_builtin.
4392         (generate_builtin): Remove.
4393         (can_generate_builtin): Likewise.
4394         (fuse_partitions_with_similar_memory_accesses): Call
4395         partition_builtin_p instead of can_generate_builtin.
4396         (rdg_build_partitions): Do not call
4397         fuse_partitions_with_similar_memory_accesses here...
4398         (ldist_gen): ... but here after classifying all partitions.
4399         Remove failure path of generate_code_for_partition.
4400         (generate_code_for_partition): Generate code according
4401         to partition classification.
4402
4403 2012-06-01  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4404             Jonathan Wakely  <jwakely.gcc@gmail.com>
4405
4406         PR c++/50134
4407         * doc/invoke.texi (Warning Options): Explain purpose and differences
4408         between -Wmissing-prototypes and -Wmissing-declarations.
4409
4410 2012-06-01  Christian Bruel  <christian.bruel@st.com>
4411
4412         * gcc.c (save_switch): Add user_p parameter.
4413         (read_specs): Likewise.
4414         (set_specs): Likewise.
4415         (validate_switches): Likewise.
4416         (validate_switches_from_spec): Likewise.
4417         (validate_all_switches): Pass on user_p parameter.
4418         (struct spec_list): Add user_p field.
4419         (struct switchstr): Add known field.
4420         (save_switch): Add known parameter.
4421         (INIT_STATIC_SPEC): Initialize user_p;
4422         (driver_unknown_option_callbac): call save_switch if
4423         OPT_SPECIAL_unknown.
4424         (driver_handle_option): Propagate OPT_specs.
4425         (do_spec_1): Set validated only if known.
4426         (check_live_switch): Likewise.
4427         (validate_switches): Set validated if known or user_spec.
4428
4429 2012-06-01  Hans-Peter Nilsson  <hp@axis.com>
4430
4431         Add CRIS atomic patterns for 1, 2, and 4 bytes.
4432         * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
4433         * config/cris/cris-protos.h: Declare it.
4434         * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
4435         (TARGET_DEFAULT): Add alignment by 32.
4436         [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
4437         case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
4438         TARGET_CPU_DEFAULT == 32.
4439         (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
4440         * config/cris/cris.md: Include sync.md.  Avoid allocating specific
4441         numbers by replacing the define_constants for all UNSPECs with the
4442         equivalent define_c_enum construct.
4443         * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
4444         * config/cris/sync.md: New file.
4445
4446 2012-05-31  Matt Turner  <mattst88@gmail.com>
4447
4448         * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
4449         (r4600_imul_di): New.
4450         (r4600_idiv_si): Rename from r4600_idiv.
4451         (r4600_idiv_di): New.
4452
4453 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
4454
4455         * output.h (__gcc_host_wide_int__): Move to hwint.h.
4456         (decl_default_tls_model): Move to tree.h
4457         (dump_file): Move to system.h.
4458         (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
4459         dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
4460         dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
4461         dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
4462         dbxout_stab_value_zero, dbxout_stab_value_label_diff,
4463         dbxout_stab_value_internal_label,
4464         dbxout_stab_value_internal_label_diff): Move from here ...
4465         * dbxout.h: ... to here.
4466         * system.h (dump_file): Moved here from output.h.
4467         * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
4468         * tree.h (decl_default_tls_model): Moved here from output.h.
4469         * varasm.c (default_stabs_asm_out_destructor,
4470         default_stabs_asm_out_constructor): Move from here ...
4471         * dbxout.c: ... to here.
4472
4473         * gcov-dump.c (dump_file): Rename to dump_gcov_file.  Update callers.
4474
4475         * collect2.h (dump_file): Rename to dump_ld_file.
4476         * collect2.c: Likewise.
4477         * tlink.c: Likewise.
4478
4479         * alias.c: Do not include output.h.
4480         * auto-inc-dec.c: Likewise.
4481         * bt-load.c: Likewise.
4482         * caller-save.c: Likewise.
4483         * cfg.c: Likewise.
4484         * cfgbuild.c: Likewise.
4485         * cfgcleanup.c: Likewise.
4486         * cfglayout.c: Likewise.
4487         * cfgloop.c: Likewise.
4488         * cfgloopanal.c: Likewise.
4489         * cfgloopmanip.c: Likewise.
4490         * cfgrtl.c: Likewise.
4491         * cgraph.c: Likewise.
4492         * cgraphclones.c: Likewise.
4493         * combine-stack-adj.c: Likewise.
4494         * combine.c: Likewise.
4495         * cprop.c: Likewise.
4496         * cse.c: Likewise.
4497         * cselib.c: Likewise.
4498         * dbgcnt.c: Likewise.
4499         * df-problems.c: Likewise.
4500         * df-scan.c: Likewise.
4501         * dojump.c: Likewise.
4502         * fwprop.c: Likewise.
4503         * gcse.c: Likewise.
4504         * graph.c: Likewise.
4505         * haifa-sched.c: Likewise.
4506         * hw-doloop.c: Likewise.
4507         * ipa-inline-transform.c: Likewise.
4508         * ipa-pure-const.c: Likewise.
4509         * ipa-reference.c: Likewise.
4510         * ipa-utils.c: Likewise.
4511         * ira-build.c: Likewise.
4512         * ira-emit.c: Likewise.
4513         * lcm.c: Likewise.
4514         * loop-doloop.c: Likewise.
4515         * loop-invariant.c: Likewise.
4516         * loop-iv.c: Likewise.
4517         * loop-unroll.c: Likewise.
4518         * loop-unswitch.c: Likewise.
4519         * lto-cgraph.c: Likewise.
4520         * lto-section-in.c: Likewise.
4521         * lto-streamer-in.c: Likewise.
4522         * mcf.c: Likewise.
4523         * mode-switching.c: Likewise.
4524         * postreload-gcse.c: Likewise.
4525         * postreload.c: Likewise.
4526         * predict.c: Likewise.
4527         * profile.c: Likewise.
4528         * ree.c: Likewise.
4529         * reg-stack.c: Likewise.
4530         * regcprop.c: Likewise.
4531         * regmove.c: Likewise.
4532         * regstat.c: Likewise.
4533         * reload1.c: Likewise.
4534         * sched-ebb.c: Likewise.
4535         * sel-sched-dump.c: Likewise.
4536         * simplify-rtx.c: Likewise.
4537         * stor-layout.c: Likewise.
4538         * store-motion.c: Likewise.
4539         * tracer.c: Likewise.
4540         * tree-affine.c: Likewise.
4541         * tree-cfg.c: Likewise.
4542         * tree-cfgcleanup.c: Likewise.
4543         * tree-dfa.c: Likewise.
4544         * tree-into-ssa.c: Likewise.
4545         * tree-nomudflap.c: Likewise.
4546         * tree-optimize.c: Likewise.
4547         * tree-pretty-print.c: Likewise.
4548         * tree-profile.c: Likewise.
4549         * tree-ssa-address.c: Likewise.
4550         * tree-ssa-ccp.c: Likewise.
4551         * tree-ssa-copy.c: Likewise.
4552         * tree-ssa-dom.c: Likewise.
4553         * tree-ssa-loop-ch.c: Likewise.
4554         * tree-ssa-loop-im.c: Likewise.
4555         * tree-ssa-loop-manip.c: Likewise.
4556         * tree-ssa-loop-niter.c: Likewise.
4557         * tree-ssa-loop-prefetch.c: Likewise.
4558         * tree-ssa-loop-unswitch.c: Likewise.
4559         * tree-ssa-loop.c: Likewise.
4560         * tree-ssa-propagate.c: Likewise.
4561         * tree-ssa-structalias.c: Likewise.
4562         * tree-ssa-tail-merge.c: Likewise.
4563         * tree-ssa-threadedge.c: Likewise.
4564         * tree-ssa-threadupdate.c: Likewise.
4565         * tree-ssa-uncprop.c: Likewise.
4566         * tree-ssa-uninit.c: Likewise.
4567         * tree-ssa.c: Likewise.
4568         * value-prof.c: Likewise.
4569         * var-tracking.c: Likewise.
4570         * web.c: Likewise.
4571
4572         * config/m32r/m32r.c: Include dbxout.h.
4573         * config/pa/pa.c: Likewise.
4574         * config/rs6000/rs6000.c: Likewise.
4575
4576         * Makefile.in: Fix dependencies.
4577         * config/rs6000/t-rs5000: Likewise.
4578
4579 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
4580
4581         * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
4582         * gimple.h (block_in_transaction): Check for flag_tm.
4583
4584 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
4585
4586         PR tree-optimization/52558
4587         * cfg.c (alloc_aux_for_edge): Fix comment.
4588         (alloc_aux_for_edge): Remove static.
4589         * basic-block.h (alloc_aux_for_edge): Protoize.
4590         * tree-ssa-loop-im.c (execute_sm_if_changed): New.
4591         (execute_sm_if_changed_flag): New.
4592         (execute_sm_if_changed_flag_set): New.
4593         (execute_sm): Do not generate data races unless requested.
4594         (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
4595         (tree_ssa_lim_finalize): Call free_aux_for_edges.
4596         * gimple.h (block_in_transaction): New.
4597         (gimple_in_transaction): Use block_in_transaction.
4598
4599 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
4600
4601         PR target/51345
4602         * config/avr/avr.opt (-msp8): Document it.
4603         * doc/invoke.texi (AVR Options): Ditto.  And document related
4604         built-in macros.
4605
4606 2012-05-31  Diego Novillo  <dnovillo@google.com>
4607
4608         * configure.ac (CXX_FOR_BUILD): Define and substitute.
4609         (BUILD_CXXFLAGS): Define and substitute.
4610         * Makefile.in (BUILD_CXXFLAGS): Define.
4611         (CXX_FOR_BUILD): Define.
4612         (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
4613         (LINKER_FOR_BUILD): Likewise.
4614         (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
4615         (BUILD_LINKERFLAGS): Likewise.
4616         * configure: Regenerate.
4617
4618 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
4619
4620         * Makefile.in: Fix many dependencies.
4621         * tree-profile.c: Don't include regs.h.
4622         * tree-vectorizer.c: Don't include cfglayout.h.
4623         * tree-vect-stmts.c: Likewise.
4624         * tree-vect-slp.c: Likewise.
4625         * tree-vect-loop.c: Likewise.
4626         * reg-stack.c: Likewise.
4627         * tree-ssa-loop-manip.c: Likewise.
4628         * toplev.c: Likewise.
4629         * varasm.c: Don't include cfglayout.h, basic-block.h,
4630         and tree-iterator.h.
4631         * tree-cfgcleanup.c: Don't include cfglayout.h.
4632         * passes.c: Don't include cfglayout.h, dwarf2asm.h,
4633         dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
4634         * cgraphclones.c: Don't include plugin.h.
4635
4636 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
4637
4638         * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
4639         (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
4640         * doc/avr-mmcu.texi (svn:eol-style): Set to native.
4641
4642 2012-05-31  Richard Guenther  <rguenther@suse.de>
4643
4644         * tree-loop-distribution.c (struct partition_s): New struct,
4645         typedef and vector type.
4646         (partition_alloc, partition_free): New functions.
4647         (generate_loops_for_partition, generate_builtin,
4648         generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
4649         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
4650         build_rdg_partition_for_component, can_generate_builtin,
4651         similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
4652         rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
4653         number_of_rw_in_partition, partition_contains_all_rw,
4654         ldist_gen): Use partition_t instead of bitmap.
4655
4656 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
4657
4658         * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
4659         * doc/avr-mmcu.texi: Regenerate.
4660
4661 2012-05-31  Richard Guenther  <rguenther@suse.de>
4662
4663         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
4664         Use FOR_EACH_SSA_DEF_OPERAND.
4665         (generate_builtin): Adjust.
4666         (stmt_generated_in_another_partition): Remove.
4667         (add_scalar_computations_to_partition): Likewise.
4668         (rdg_build_partitions): Do not call
4669         add_scalar_computations_to_partition.
4670
4671 2012-05-31  Eric Botcazou  <ebotcazou@adacore.com>
4672
4673         * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
4674         double ints throughout.
4675         * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
4676         Check that the position of the field is representable as an integer.
4677
4678 2012-05-31  Richard Guenther  <rguenther@suse.de>
4679
4680         * tree-data-ref.c (dr_analyze_innermost): Properly convert
4681         the MEM_REF offset to sizetype.
4682
4683 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
4684
4685         * doc/invoke.texi (AVR Options): Fix typos.
4686
4687 2012-05-31  Hans-Peter Nilsson  <hp@axis.com>
4688
4689         * config/cris/cris.h (CC1_SPEC): Pass through all -march=
4690         and -mcpu= options.
4691         (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
4692         non-v32 into --march=v0_v10.
4693
4694 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4695
4696         * ira-int.h (target_ira_int): Rename x_move_cost to
4697         x_ira_register_move_cost, x_may_move_in_cost to
4698         x_ira_may_move_in_cost and x_may_move_out_cost to
4699         x_ira_may_move_out_cost.  Delete the old fields with
4700         those names and also x_ira_max_register_move_cost,
4701         x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
4702         (move_cost, may_move_in_cost, may_move_out_cost)
4703         (ira_max_register_move_cost, ira_max_may_move_in_cost)
4704         (ira_max_may_move_out_cost): Delete.
4705         * ira.c (init_move_cost): Rename to...
4706         (ira_init_register_move_cost): ...this, deleting the old
4707         function with that name.  Apply above variable renamings.
4708         Retain asserts for null fields.
4709         (ira_init_once): Don't initialize register move costs here.
4710         (free_register_move_costs): Apply above variable renamings.
4711         Remove code for deleted fields.
4712
4713 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4714
4715         * ira.c (init_move_cost): Adjust choice of subclasses to match
4716         the current ira_init_register_move_cost choice.  Use
4717         ira_class_subset_p instead of reg_class_subset_p.
4718         (ira_init_register_move_cost): Assert that move_cost,
4719         may_move_in_cost and may_move_out_cost already hold the desired
4720         values for their ira_* equivalents.  For the latter two,
4721         ignore classes that can't store a register of the given mode.
4722
4723 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4724
4725         * ira.c (setup_allocno_and_important_classes): Use
4726         ira_class_hard_regs_num to check whether a class has any
4727         allocatable registers.
4728         (ira_init_register_move_cost): Likewise.
4729
4730 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4731
4732         * ira.c (init_move_cost): Adjust local variable names to match
4733         file conventions.  Use ira_assert instead of gcc_assert.
4734
4735 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4736
4737         * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
4738         Move these definitions and associated target_globals fields to...
4739         * ira-int.h: ...here.
4740         * rtl.h (init_move_cost): Delete.
4741         * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
4742         * ira.c: ...here, making the latter static.
4743
4744 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4745
4746         * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
4747         and ira_register_move_cost instead of init_move_cost and move_cost.
4748
4749 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
4750
4751         * ira.h (target_ira): Delete x_ira_available_class_regs.
4752         (ira_available_class_regs): Delete.
4753         * ira.c (setup_available_class_regs): Delete.
4754         (setup_alloc_classes): Don't call it.
4755         (setup_pressure_classes): Use ira_class_hard_regs_num instead of
4756         ira_available_class_regs.
4757         * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
4758         (model_spill_cost): Likewise.
4759         * ira-build.c (low_pressure_loop_node_p): Likewise.
4760         * ira-color.c (color_pass): Likewise.
4761         * ira-emit.c (change_loop): Likewise.
4762         * ira-lives.c (inc_register_pressure, dec_register_pressure)
4763         (single_reg_class, ira_implicitly_set_insn_hard_regs)
4764         (process_bb_node_lives): Likewise.
4765         * loop-invariant.c (gain_for_invariant): Likewise.
4766
4767 2012-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4768
4769         PR target/52999
4770         * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
4771         (pa_section_type_flags): New.
4772         (pa_legitimate_constant_p): Revert previous change.
4773
4774 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
4775
4776         * ira.c (allocate_initial_values): Make static.
4777
4778 2012-05-30  Uros Bizjak  <ubizjak@gmail.com>
4779
4780         * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
4781         Generate tls_initial_exec_64_sun only when !TARGET_X32.
4782
4783 2012-05-30  Richard Guenther  <rguenther@suse.de>
4784
4785         PR middle-end/53501
4786         * fold-const.c (fold_binary_loc): Make sure to call
4787         fold_plusminus_mult_expr with the original sign of operands.
4788
4789 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
4790
4791         * Makefile.in: Fix many dependencies.
4792         (DWARF2_H): Depend on dwarf2.def.
4793         (RTL_ERROR_H): Depend on rtl-error.h.
4794         (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New.  Replace
4795         all gimple-pretty-print.h and tree-pretty-print.h references.
4796
4797 2012-05-30  Marc Glisse  <marc.glisse@inria.fr>
4798
4799         * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
4800         concatenations.
4801
4802 2012-05-30  Richard Guenther  <rguenther@suse.de>
4803
4804         PR middle-end/53522
4805         * tree-emutls.c (gen_emutls_addr): Do not add globals to
4806         referenced-vars.
4807
4808 2012-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4809
4810         * explow.c (probe_stack_range): Restore simple control flow and stop
4811         again when the probe cannot be generated if HAVE_check_stack.
4812
4813 2012-05-30  Jakub Jelinek  <jakub@redhat.com>
4814
4815         PR rtl-optimization/53519
4816         * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
4817         instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
4818
4819 2012-05-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4820
4821         * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
4822
4823 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
4824
4825         PR debug/53453
4826         * doc/tm.texi: Update.
4827         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
4828         * target.def (force_at_comp_dir): New hook.
4829         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
4830         * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
4831
4832 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
4833
4834         * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
4835         Darwin >= 10.
4836         (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
4837         (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
4838
4839 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
4840
4841         PR target/51340
4842         * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
4843         flag_unsafe_math_optimizations is set.
4844         * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
4845         Update description of -mfused-madd.
4846
4847 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
4848
4849         PR target/52941
4850         * config/sh/predicates.md (atomic_arith_operand,
4851         atomic_logical_operand): New predicates.
4852         * config/sh/sh.c (sh_option_override): Check atomic options.
4853         * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
4854         UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
4855         (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
4856         UNSUPPORTED_HARD_ATOMIC_CPU.
4857         * config/sh/sync.md: Update description comments.
4858         (I12): New mode iterator.
4859         (fetchop_predicate, fetchop_constraint): New code attributes.
4860         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
4861         atomic_exchangesi_hard, atomic_exchange<mode>_hard,
4862         atomic_fetch_<fetchop_name>si_hard,
4863         atomic_fetch_<fetchop_name><mode>_hard,
4864         atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
4865         atomic_<fetchop_name>_fetchsi_hard,
4866         atomic_<fetchop_name>_fetch<mode>_hard,
4867         atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
4868         atomic_test_and_set_hard): New insns.
4869         (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
4870         atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
4871         atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
4872         atomic_test_and_set_soft): Use same formatting for the first line of
4873         the asm block as in new insns above.
4874         (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
4875         atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
4876         atomic_test_and_set): Integrate new *_hard insns into expanders.
4877         * config/sh/sh.opt (mhard-atomic): New option.
4878         * doc/invoke.texi (SH Options): Document it.
4879
4880 2012-05-29  Meador Inge  <meadori@codesourcery.com>
4881
4882         * c-decl.c (c_push_function_context): Always create a new language
4883         function.
4884         (c_pop_function_context): Clear the language function created in
4885         c_push_function_context.
4886
4887 2012-05-29  Matt Turner  <mattst88@gmail.com>
4888
4889         * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
4890         (define_bypass "ev6_fcmov"): New.
4891
4892 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
4893
4894         * integrate.c: Remove.
4895         * integrate.h: Remove.
4896         * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
4897         * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
4898         * config/rs6000/t-rs6000: Likewise
4899         * config/spu/t-spu-elf: Likewise.
4900         * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
4901         get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
4902         from integrate.h to here.
4903         (initial_value_entry): New prototype.
4904         * reload.h (allocate_initial_values): Remove prototype.
4905         * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
4906         * cse.c (fixed_base_plus_p): Don't handle virtual registers for
4907         integrate.c.
4908         * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
4909         set_decl_abstract_flags, set_block_abstract_flags): Move from
4910         integrate.c to here, the only user.
4911         * expmed.c (extract_fixed_bit_field): Remove outdated comment
4912         about integrate.c.
4913         * function.c: Don't include integrate.h.
4914         (struct initial_value_pair, struct initial_value_struct,
4915         get_hard_reg_initial_val, has_hard_reg_initial_val,
4916         get_hard_reg_initial_reg, emit_initial_value_sets): Move from
4917         integrate.c to here.
4918         (initial_value_entry): New function.
4919         * genemit.c (main): Don't print integrate.h include line.
4920         * ira.c: Don't include integrate.h.
4921         (allocate_initial_values): Move from integrate.c to here.
4922         (ira): Update allocate_initial_values call.
4923         * tree-inline.c: Don't include integrate.h.
4924         (function_attribute_inlinable_p): Moved from integrate.c to here.
4925         * cfgexpand.c: Don't include integrate.h.
4926         * except.c: Likewise.
4927         * langhooks.c: Likewise.
4928         * passes.c: Likewise.
4929         * toplev.c: Likewise.
4930         * config/frv/frv.c: Likewise.
4931         * config/pa/pa.c: Likewise.
4932         * config/spu/spu.c: Likewise.
4933         * config/epiphany/epiphany.c: Likewise.
4934         * config/mep/mep.c: Likewise.
4935         * config/score/score.c: Likewise.
4936         * config/picochip/picochip.c: Likewise.
4937         * config/sh/sh.c: Likewise.
4938         * config/alpha/alpha.c: Likewise.
4939         * config/microblaze/microblaze.c: Likewise.
4940         * config/mips/mips.c: Likewise.
4941         * config/v850/v850.c: Likewise.
4942         * config/mmix/mmix.c: Likewise.
4943         * config/bfin/bfin.c: Likewise.
4944         * config/arm/arm.c: Likewise.
4945         * config/s390/s390.c: Likewise.
4946         * config/m32r/m32r.c: Likewise.
4947         * config/rs6000/rs6000.c: Likewise.
4948         * config/c6x/c6x.c: Include function.h instead of integrate.h.
4949         * config/tilegx/tilegx.c: Likewise.
4950         * config/tilepro/tilepro.c: Likewise.
4951
4952 2012-05-29  Georg-Johann Lay  <avr@gjlay.de>
4953
4954         * config/avr/t-avr (s-avr-mmcu-texi): Call
4955         gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
4956
4957 2012-05-29  Michael Matz  <matz@suse.de>
4958
4959         * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
4960         assign_temp): Remove 'keep' argument.
4961         (mark_temp_addr_taken): Remove prototype.
4962         * tree.h (expand_decl): Remove prototype.
4963         * function.c (struct temp_slot): Remove addr_taken and keep member.
4964         (assign_stack_temp_for_type) Don't initialize above, remove
4965         keep argument.
4966         (assign_stack_temp, assign_temp): Remove keep argument.
4967         (mark_temp_addr_taken): Remove.
4968         (preserve_temp_slots): Remove handling of addr_taken and keep members.
4969         (free_temp_slots): Ditto.
4970         * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
4971         dead code.
4972         * stmt.c (expand_asm_operands): Remove dead code.
4973         (expand_decl): Remove.
4974         * c-decl.c (finish_struct): Don't call expand_decl.
4975         * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
4976         and assign_stack_temp.
4977         * calls.c (save_fixed_argument_area, initialize_argument_information,
4978         expand_call, emit_library_call_value_1, store_one_arg): Ditto.
4979         * expmed.c (extract_bit_field_1): Ditto.
4980         * expr.c (emit_group_load_1, emit_group_store,
4981         copy_blkmode_from_reg, emit_push_insn, expand_assignment,
4982         store_field, expand_constructor, expand_cond_expr_using_cmove,
4983         expand_expr_real_2, expand_expr_real_1): Ditto.
4984         * stmt.c (expand_asm_operands, expand_return): Ditto.
4985
4986         * function.c (pop_temp_slots): Call free_temp_slots.
4987         * calls.c (store_one_arg): Don't call preserve_temp_slots or
4988         free_temp_slots.
4989         * expr.c (expand_assignment): Don't call free_temp_slots.
4990
4991         * config/arm/arm.c (neon_expand_vector_init): Ditto.
4992         * config/i386/i386.c (ix86_expand_vector_set): Ditto.
4993         (ix86_expand_vector_extract): Ditto.
4994         * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
4995         ia64_expand_movxf_movrf): Ditto.
4996         * config/mips/mips.c (mips_expand_vi_general): Ditto.
4997         * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
4998         extendsfdf2): Ditto.
4999         * config/rs6000/rs6000.c (rs6000_expand_vector_init,
5000         rs6000_expand_vector_set, rs6000_expand_vector_extract,
5001         rs6000_allocate_stack_temp): Ditto.
5002         * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
5003         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5004         sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
5005         sparc_expand_vector_init): Ditto.
5006
5007 2012-05-29  Michael Matz  <matz@suse.de>
5008
5009         * c-tree.h (c_expand_decl): Remove prototype.
5010
5011         * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
5012         a kept temp.
5013         (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
5014         * gimple-fold.c (canonicalize_constructor_val): Canonicalize
5015         COMPOUND_LITERAL_EXPR.
5016         * function.c (expand_function_start): Don't call expand_decl,
5017         instead assert that we have RTL assigned.
5018         * tree-ssa-live.c (remove_unused_locals): Clear
5019         nonlocal_goto_save_area if its backing variable is removed.
5020         * stmt.c (expand_asm_operands): Remove handling of non-lvalues
5021         as mem inputs.
5022         (expand_decl): Assert that this does nothing.
5023         * calls.c (expand_call): Don't call mark_temp_addr_taken.
5024
5025 2012-05-29  Richard Guenther  <rguenther@suse.de>
5026
5027         PR tree-optimization/53516
5028         * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
5029         bitfield accesses.
5030         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5031
5032 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
5033
5034         * LANGUAGES: Fix typos.
5035         * Makefile.in: Fix typos.
5036         * alias.c: Fix typos.
5037         * auto-inc-dec.c: Fix typos.
5038         * bb-reorder.c: Fix typos.
5039         * cfgcleanup.c: Fix typos.
5040         * cgraph.c: Fix typos.
5041         * cgraph.h: Fix typos.
5042         * cgraphunit.c: Fix typos.
5043         * collect2-aix.h: Fix typos.
5044         * collect2.c: Fix typos.
5045         * compare-elim.c: Fix typos.
5046         * config/alpha/vms.h: Fix typos.
5047         * config/arm/README-interworking: Fix typos.
5048         * config/arm/arm.c: Fix typos.
5049         * config/arm/iterators.md: Fix typos.
5050         * config/arm/vxworks.h: Fix typos.
5051         * config/avr/avr.c: Fix typos.
5052         * config/avr/avr.h: Fix typos.
5053         * config/avr/avr.md: Fix typos.
5054         * config/avr/builtins.def: Fix typos.
5055         * config/c6x/c6x.c: Fix typos.
5056         * config/cr16/cr16.c: Fix typos.
5057         * config/cr16/cr16.md: Fix typos.
5058         * config/cris/cris.md: Fix typos.
5059         * config/darwin.c: Fix typos.
5060         * config/darwin.opt: Fix typos.
5061         * config/i386/i386-c.c: Fix typos.
5062         * config/i386/i386.c: Fix typos.
5063         * config/ia64/ia64.c: Fix typos.
5064         * config/m68k/cf.md: Fix typos.
5065         * config/mep/mep.c: Fix typos.
5066         * config/microblaze/microblaze.c: Fix typos.
5067         * config/microblaze/microblaze.h: Fix typos.
5068         * config/mn10300/mn10300.c: Fix typos.
5069         * config/mn10300/mn10300.md: Fix typos.
5070         * config/pa/pa.c: Fix typos.
5071         * config/picochip/picochip.h: Fix typos.
5072         * config/rs6000/a2.md: Fix typos.
5073         * config/rs6000/rs6000.c: Fix typos.
5074         * config/rs6000/vector.md: Fix typos.
5075         * config/rx/rx.md: Fix typos.
5076         * config/rx/rx.opt: Fix typos.
5077         * config/s390/2097.md: Fix typos.
5078         * config/s390/s390.c: Fix typos.
5079         * config/s390/s390.h: Fix typos.
5080         * config/sh/sh.c: Fix typos.
5081         * config/sh/sh.md: Fix typos.
5082         * config/sparc/sync.md: Fix typos.
5083         * config/spu/spu.c: Fix typos.
5084         * config/spu/spu.md: Fix typos.
5085         * config/vms/vms.c: Fix typos.
5086         * config/vxworks-dummy.h: Fix typos.
5087         * config/vxworks.h: Fix typos.
5088         * cselib.c: Fix typos.
5089         * df-scan.c: Fix typos.
5090         * df.h: Fix typos.
5091         * doc/extend.texi: Fix typos.
5092         * doc/install.texi: Fix typos.
5093         * doc/invoke.texi: Fix typos.
5094         * doc/md.texi: Fix typos.
5095         * doc/plugins.texi: Fix typos.
5096         * doc/rtl.texi: Fix typos.
5097         * dse.c: Fix typos.
5098         * dwarf2asm.c: Fix typos.
5099         * dwarf2out.c: Fix typos.
5100         * except.h: Fix typos.
5101         * expr.c: Fix typos.
5102         * fold-const.c: Fix typos.
5103         * gcc.c: Fix typos.
5104         * gcse.c: Fix typos.
5105         * genautomata.c: Fix typos.
5106         * gengtype-state.c: Fix typos.
5107         * gengtype.c: Fix typos.
5108         * genhooks.c: Fix typos.
5109         * gimple-fold.c: Fix typos.
5110         * gimple-pretty-print.c: Fix typos.
5111         * gimple.c: Fix typos.
5112         * gimple.h: Fix typos.
5113         * gimplify.c: Fix typos.
5114         * graphite-interchange.c: Fix typos.
5115         * graphite-sese-to-poly.c: Fix typos.
5116         * ifcvt.c: Fix typos.
5117         * input.c: Fix typos.
5118         * ipa-cp.c: Fix typos.
5119         * ipa-inline-analysis.c: Fix typos.
5120         * ipa-inline-transform.c: Fix typos.
5121         * ipa-inline.c: Fix typos.
5122         * ipa-pure-const.c: Fix typos.
5123         * ipa-ref.h: Fix typos.
5124         * ipa-reference.c: Fix typos.
5125         * ipa-utils.c: Fix typos.
5126         * ipa.c: Fix typos.
5127         * ira-emit.c: Fix typos.
5128         * ira-lives.c: Fix typos.
5129         * lto-streamer.c: Fix typos.
5130         * lto-streamer.h: Fix typos.
5131         * lto-wrapper.c: Fix typos.
5132         * mcf.c: Fix typos.
5133         * mode-switching.c: Fix typos.
5134         * modulo-sched.c: Fix typos.
5135         * plugin.c: Fix typos.
5136         * postreload.c: Fix typos.
5137         * sched-deps.c: Fix typos.
5138         * sel-sched-ir.c: Fix typos.
5139         * sel-sched-ir.h: Fix typos.
5140         * sel-sched.c: Fix typos.
5141         * sese.c: Fix typos.
5142         * stor-layout.c: Fix typos.
5143         * target-hooks-macros.h: Fix typos.
5144         * target.def: Fix typos.
5145         * trans-mem.c: Fix typos.
5146         * tree-eh.c: Fix typos.
5147         * tree-predcom.c: Fix typos.
5148         * tree-sra.c: Fix typos.
5149         * tree-ssa-address.c: Fix typos.
5150         * tree-ssa-loop-ivopts.c: Fix typos.
5151         * tree-ssa-loop-niter.c: Fix typos.
5152         * tree-ssa-math-opts.c: Fix typos.
5153         * tree-ssa-pre.c: Fix typos.
5154         * tree-ssa-propagate.c: Fix typos.
5155         * tree-ssa-reassoc.c: Fix typos.
5156         * tree-ssa-sccvn.c: Fix typos.
5157         * tree-ssa-ter.c: Fix typos.
5158         * tree-ssa-uninit.c: Fix typos.
5159         * tree-ssanames.c: Fix typos.
5160         * tree-vect-generic.c: Fix typos.
5161         * tree-vect-slp.c: Fix typos.
5162         * tree.c: Fix typos.
5163         * tree.h: Fix typos.
5164         * varasm.c: Fix typos.
5165         * varpool.c: Fix typos.
5166
5167 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
5168
5169         * doc/include/texinfo.tex: Update to version 2012-05-16.16.
5170
5171 2012-05-29  Richard Guenther  <rguenther@suse.de>
5172
5173         * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
5174         for globals.
5175         (add_referenced_var_1): Re-organize.  Assert we are not
5176         called for globals.
5177         (remove_referenced_var): Likewise.
5178         * varpool.c (add_new_static_var): Use create_tmp_var_raw.
5179         * tree-mudflap.c (execute_mudflap_function_ops): Do not
5180         call add_referenced_var on globals.
5181         * matrix-reorg.c (transform_access_sites): Likewise.
5182
5183 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
5184
5185         * alias.c (reg_known_value): Make this a VEC.
5186         (reg_known_equiv_p): Make this an sbitmap.
5187         (reg_known_value_size): Remove.
5188         (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
5189         set_reg_known_equiv_p): Update for reg_known_value and
5190         reg_known_value_size data structure change.
5191         (init_alias_analysis, end_alias_analysis): Likewise.
5192
5193 2012-05-29  Jakub Jelinek  <jakub@redhat.com>
5194
5195         PR middle-end/53510
5196         * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
5197         to avoid leaking memory.  No need to handle memory allocation
5198         failure.  Double string_len on each reallocation instead of adding 2.
5199         * gcov.c (read_line): Likewise.
5200
5201 2012-05-29  Hans-Peter Nilsson  <hp@axis.com>
5202
5203         * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
5204         New macros.
5205         * config/cris/cris.md ("trap"): Define, enabled for
5206         TARGET_TRAP_USING_BREAK8.
5207         * config/cris/cris.opt (mtrap-using-break8): New option.
5208
5209 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
5210
5211         PR c++/25137
5212         * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
5213         for C++.
5214
5215 2012-05-28  Hans-Peter Nilsson  <hp@axis.com>
5216
5217         * doc/md.texi (stack_protect_test): Remove negation of branch to label.
5218         (Standard Names): Fix typos in documentation of atomic patterns.
5219
5220 2012-05-27  Nathan Sidwell  <nathan@acm.org>
5221
5222         * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
5223
5224 2012-05-26  Jason Merrill  <jason@redhat.com>
5225
5226         PR c++/53220
5227         * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
5228         about array compound literals.
5229
5230 2012-05-26  Eric Botcazou  <ebotcazou@adacore.com>
5231
5232         * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
5233         if CLEANUP_NO_INSN_DEL.
5234         * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
5235         from cfg_layout_merge_blocks.
5236         (emit_nop_for_unique_locus_between): New function.
5237         (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
5238         (cfg_layout_merge_blocks): Likewise.
5239
5240 2012-05-26  Dimitrios Apostolou  <jimis@gmx.net>
5241             Paolo Bonzini  <bonzini@gnu.org>
5242
5243         * df-scan.c (df_def_record_1): Assert a parallel must contain an
5244         EXPR_LIST at this point.  Receive the LOC and move its extraction...
5245         (df_defs_record): ... here. Change if-else to a switch statement.
5246         (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
5247         (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
5248         and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
5249         DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
5250         regs_invalidated_by_call.
5251         (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
5252         df_get_call_refs().
5253
5254 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5255
5256         PR lto/52178
5257         * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
5258         * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
5259
5260 2012-05-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
5261
5262         * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
5263         software floating point emulation.  No longer build the multilibs
5264         with -mstrict-align.
5265
5266 2012-05-25  Aldy Hernandez  <aldyh@redhat.com>
5267
5268         PR middle-end/53008
5269         * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
5270         accessed indirectly.
5271         (ipa_tm_create_version): Same.
5272
5273 2012-05-25  Uros Bizjak  <ubizjak@gmail.com>
5274
5275         PR target/53474
5276         * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
5277         <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
5278
5279 2012-05-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5280
5281         PR target/53435
5282         * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
5283         (ix86_expand_vec_perm): Use int mode instead of float.
5284         (expand_vec_perm_pshufb): Remove handling of useseless type
5285         conversion.
5286
5287 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5288
5289         PR ada/52362
5290         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
5291         gnu_ld variables to yes.
5292         * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
5293         (HAVE_GNU_AS): Likewise.
5294         * config.in: Regenerate.
5295         * configure: Likewise.
5296
5297 2012-05-25  Tristan Gingold  <gingold@adacore.com>
5298
5299         * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
5300         (ix86_compute_frame_layout): Fix type of stack_alignment_needed
5301         and preferred_alignment.
5302
5303 2012-05-25  Tristan Gingold  <gingold@adacore.com>
5304
5305         * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
5306
5307 2012-05-25  Thomas Schwinge  <thomas@codesourcery.com>
5308
5309         * fold-const.c (optimize_bit_field_compare): Abort early in the strict
5310         volatile bitfields case.
5311
5312 2012-05-24  Pat Haugen  <pthaugen@us.ibm.com>
5313
5314         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
5315         rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
5316         (adjacent_mem_locations): Move some code to and call...
5317         (get_memref_parts): ...new function.
5318         (mem_locations_overlap): New function.
5319         (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
5320         (is_mem_ref): Rename to...
5321         (find_mem_ref): ...this. Return MEM rtx.
5322         (get_store_dest): Remove function.
5323         (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
5324         new parameter and adjust calls.
5325         (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
5326         mem refs overlap for true_store_to_load_dep_costly.
5327         (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
5328         passed to adjacent_mem_locations.
5329         (is_costly_group): Walk resolved dependency list.
5330         (force_new_group): Emit group ending nop for Power6/Power7.
5331         * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
5332         (group_ending_nop): New define_insn.
5333
5334 2012-05-24  Dodji Seketeli  <dodji@redhat.com>
5335
5336         Make unwound macro expansion trace less redundant
5337         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
5338         context of macro definition in the trace, when it's redundant.
5339         Update comments.
5340
5341 2012-05-24  Richard Guenther  <rguenther@suse.de>
5342
5343         PR middle-end/53460
5344         * tree-profile.c (tree_profiling): Cleanup the CFG if
5345         execute_fixup_cfg requests it.
5346
5347 2012-05-24  Richard Guenther  <rguenther@suse.de>
5348
5349         * tree-flow.h (create_var_ann): Remove.
5350         * tree-dfa.c (create_var_ann): Remove and inline into its
5351         single caller ...
5352         (add_referenced_var_1): ... here.
5353         * varpool.c (add_new_static_var): Do not call add_referenced_var
5354         for global vars.
5355         * gimple-fold.c (canonicalize_constructor_val): Likewise.
5356         * tree-switch-conversion.c (build_one_array): Likewise.
5357         * tree-profile.c (gimple_gen_ic_profiler): Likewise.
5358         * tree-flow-inline.h (gimple_referenced_vars): Guard against
5359         NULL fn argument.
5360         * tree-inline.c (remap_gimple_op_r): Likewise.  Check
5361         gimple_referenced_vars instead of gimple_in_ssa_p.
5362         (copy_tree_body_r): Likewise.
5363         (setup_one_parameter): Likewise.
5364         (declare_return_variable): Likewise.
5365         (tree_function_versioning): Likewise.
5366
5367 2012-05-24  Jakub Jelinek  <jakub@redhat.com>
5368
5369         PR tree-optimization/53465
5370         * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
5371         vr0 into *vr, then vrp_meet that.
5372         (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
5373         have any equivalences.
5374         (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
5375         first time.
5376
5377 2012-05-24  Jim MacArthur  <jim.macarthur@arm.com>
5378
5379         * recog.c (reg_fits_class_p): Check both regno and regno + offset are
5380         hard registers.
5381         * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
5382         check end_regno - 1 is a hard register.
5383
5384 2012-05-24  Richard Guenther  <rguenther@suse.de>
5385
5386         * varpool.c (add_new_static_var): Remove call to create_var_ann.
5387         * tree-ssa-operands.c (create_vop_var): Likewise.
5388
5389 2012-05-24  Richard Guenther  <rguenther@suse.de>
5390
5391         PR bootstrap/53466
5392         * tree-ssa-live.c (remove_unused_scope_block_p): Properly
5393         handle globals.
5394         (remove_unused_locals): Pass global_unused_vars to
5395         remove_unused_scope_block_p.  Restore code walking all
5396         referenced vars and pruning them.
5397
5398 2012-05-23  Jan Hubicka  <jh@suse.cz>
5399
5400         * tree.h (alias_diag_flags): Remove.
5401         (alias_pair): Remove emitted_diags.
5402         (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
5403         symbol_alias_set_t, symbol_alias_set_destroy,
5404         symbol_alias_set_contains, propagate_aliases_backward): Remove.
5405         * toplev.c (compile_file): Do not call finish_aliases_2
5406         * cgraphunit.c (cgraph_process_new_functions): Do not call
5407         finish_aliases_1.
5408         (handle_alias_pairs): Output diagnostics about aliases to externals.
5409         (assemble_thunks_and_aliases): Use do_assemble_alias.
5410         (output_weakrefs): Likewise.
5411         (finalize_compilation_unit): Do not call finish_aliases_1.
5412         * ipa.c (symtab_remove_unreachable_nodes): De not call
5413         remove_unreachable_alias_pairs.
5414         * varasm.c (do_assemble_alias): Export.
5415         (symbol_alias_set_create, symbol_alias_set_destroy,
5416         symbol_alias_set_contains, symbol_alias_set_insert,
5417         propagate_aliases_forward, propagate_aliases_backward,
5418         propagate_aliases_backward, trivially_visible_alias,
5419         trivially_defined_alias, remove_unreachable_alias_pairs,
5420         finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
5421         * output.h (do_assemble_alias): Declare.
5422         * varpool.c (varpool_remove_unreferenced_decls): Do not call
5423         finish_aliases_1.
5424
5425 2012-05-23  Martin Jambor  <mjambor@suse.cz>
5426
5427         * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
5428
5429 2012-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5430
5431         * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
5432         size handling.
5433         (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
5434         (iterative_hash_gimple_type): Adjust comment.
5435         (iterative_hash_canonical_type): Likewise.  Hash the bounds of the
5436         domain for an array type instead of the domain type itself.
5437
5438 2012-05-23  Richard Guenther  <rguenther@suse.de>
5439
5440         PR tree-optimization/53438
5441         * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
5442
5443 2012-05-23  Georg-Johann Lay  <avr@gjlay.de>
5444
5445         PR target/53448
5446         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
5447         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
5448         ASM_OUTPUT_ALIGN.
5449
5450 2012-05-23  Richard Guenther  <rguenther@suse.de>
5451
5452         * tree-dfa.c (add_referenced_var_1): Do not add global vars.
5453         * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
5454         via the global_unused_vars bitmap.
5455         (remove_unused_locals): Handle global vars in local-decls via
5456         a global_unused_vars bitmap instead of the used flag in the
5457         var annotation.  Simplify global variable handling and removal.
5458
5459 2012-05-22  Jan Hubicka  <jh@suse.cz>
5460
5461         PR middle-end/53426
5462         * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
5463         from other partitions.
5464
5465 2012-05-22  Jan Hubicka  <jh@suse.cz>
5466
5467         PR middle-end/53161
5468         * symtab.c (symtab_register_node): Fix ordering issue.
5469
5470 2012-05-22  Steven Drake <sbd@NetBSD.org>
5471
5472         * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
5473
5474 2012-05-22  David Edelsohn  <dje.gcc@gmail.com>
5475
5476         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
5477         Use strip_name_encoding target hook.
5478
5479 2012-05-22  Richard Guenther  <rguenther@suse.de>
5480
5481         * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
5482         (init_function_for_compilation): Remove.
5483         * tree-dfa.c (find_vars_r): Take struct function argument.
5484         (find_referenced_vars_in): Adjust.
5485         * tree-ssa-operands.c (clobber_stats): Remove.
5486         (create_vop_var): Take struct function argument.  Mark
5487         virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
5488         (init_ssa_operands): Take struct function argument.
5489         (fini_ssa_operands): Do not dump dead stats.
5490         * tree-ssa-operands.h (init_ssa_operands): Take struct function
5491         argument.
5492         * cgraphunit.c (init_lowered_empty_function): Adjust.
5493         * lto-streamer-in.c (input_cfg): Likewise.
5494         * tree-inline.c (initialize_cfun): Likewise.
5495         * tree-into-ssa.c (rewrite_into_ssa): Likewise.
5496         * omp-low.c (expand_omp_taskreg): Likewise.  Avoid switching cfun.
5497         * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
5498         virtual operands are not registers.
5499
5500 2012-05-22  Richard Guenther  <rguenther@suse.de>
5501
5502         * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
5503
5504 2012-05-22  Richard Guenther  <rguenther@suse.de>
5505
5506         PR middle-end/53437
5507         * tree-inline.c (setup_one_parameter): Create a dummy init
5508         statement for unused parameters when not optimizing.
5509
5510 2012-05-22  Richard Guenther  <rguenther@suse.de>
5511
5512         * tree-flow.h (add_referenced_var_1): Declare.
5513         (add_referenced_var): Define.
5514         * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
5515         (add_referenced_var): Rename to ...
5516         (add_referenced_var_1): ... this.  Take struct function argument.
5517
5518 2012-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5519
5520         PR target/53334
5521         * config/arm/arm-protos.h (arm_validize_comparison): Declare.
5522         * config/arm/arm.c (arm_validize_comparison): Define.
5523         * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
5524         arm_validize_comparison.
5525         ("cbranchdi4"): Likewise.
5526         ("cstoredi4"): Likewise.
5527         ("movsicc"): Likewise.
5528         ("movsfcc"): Likewise.
5529         ("movdfcc"): Likewise.
5530
5531 2012-05-22  Dimitrios Apostolou  <jimis@gmx.net>
5532
5533         * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
5534         the mw_reg_pool size.
5535
5536 2012-05-22  Paolo Bonzini  <bonzini@gnu.org>
5537
5538         PR tree-optimization/53336
5539         * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
5540         non-integer integral types to offset type and vice versa.
5541
5542 2012-05-22  Alan Modra  <amodra@gmail.com>
5543
5544         * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
5545         * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
5546         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
5547         V_SAVE_INLINE): Delete.
5548         * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
5549         (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
5550         For ELF targets, use out-of-line restores for -Os and any number
5551         of regs if the restore exits, and out-of-line gp save for two or
5552         more regs.  Use save_reg_p to test for holes in reg restore set.
5553         Replace "#if" with "if".
5554
5555 2012-05-22  Alan Modra  <amodra@gmail.com>
5556
5557         * config/rs6000/rs6000.c (save_reg_p): New function.
5558         (first_reg_to_save, first_fp_reg_to_save): Use it here.
5559         (first_altivec_reg_to_save, restore_saved_cr): Likewise.
5560         (emit_frame_save): Use gen_frame_store.
5561         (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
5562         (rs6000_emit_prologue): Use save_reg_p.  Use gen_frame_store for
5563         vrsave and toc.
5564         (rs6000_emit_epilogue): Use save_reg_p.  Use gen_frame_load for
5565         vrsave, toc, gp and fp restores.
5566
5567 2012-05-22  Alan Modra  <amodra@gmail.com>
5568
5569         * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
5570         Move those with ATTRIBUTE_UNUSED to immediately before definitions.
5571         Move function pointer variables after forward declarations.
5572         (rs6000_builtin_support_vector_misalignment): Make static.
5573         (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
5574         (rs6000_function_value, rs6000_can_eliminate): Likewise.
5575
5576 2012-05-21  Bernd Schmidt  <bernds@codesourcery.com>
5577
5578         PR rtl-optimization/53373
5579         * caller-save.c (save_call_clobbered_regs): Look into a possible
5580         PARALLEL manually rather than using single_set on a call insn.
5581
5582 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
5583
5584         PR tree-optimization/53436
5585         * omp-low.c (omp_build_component_ref): New function.
5586         (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
5587
5588 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
5589
5590         * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
5591         arguments to bool.
5592         (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
5593         Do not print '.' here.  Output operand lossage error for unhandled
5594         sizes.  Move.
5595         <case '*'>: Move.
5596         <case '&'>: Ditto.
5597         <case 'Y'>: Ditto.
5598         <case 'z'>: Hardcode "code" argument into error strings.
5599         <case 'Z'>: Ditto.
5600         <case 'D'>: Merge AVX and non-AVX codes.
5601         <case 'C', case 'c', case 'F', case 'f'>: Merge.  Fix error string.
5602         Update call to put_condition_code.
5603
5604 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
5605
5606         * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2.  Call
5607         CC_STATUS_INIT.
5608         (clzsi2): New expander.
5609         (*clzsi2_68k): New insn.
5610         * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
5611
5612 2012-05-21  Aldy Hernandez  <aldyh@redhat.com>
5613
5614         * gimple.h (gimple_set_in_transaction): Remove.
5615         (gimple_in_transaction): Look in BB instead.
5616         (gimple_statement_base): Remove in_transaction field.
5617         * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
5618         * trans-mem.c (compute_transaction_bits): Place transaction bit
5619         information into basic blocks.
5620
5621 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
5622
5623         * expr.c (get_def_for_expr_class): Define only if
5624         HAVE_conditional_move.
5625         (convert_tree_comp_to_rtx): Likewise.
5626
5627 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
5628
5629         PR target/53399
5630         * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
5631         for TARGET_BMI.
5632         (ffssi2_no_cmove): Ditto.
5633         (*ffs<mode>_1): Remove insn pattern.
5634         (*tzcnt<mode>_1): New insn pattern.
5635         (*bsf<mode>1): Ditto.
5636
5637 2012-05-21  Richard Guenther  <rguenther@suse.de>
5638
5639         * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
5640         more referenced vars.
5641         * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
5642         flag on variables that have a var-annotation.
5643
5644 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5645
5646         PR c/53418
5647         * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
5648         from folded operands before wrapping another around the
5649         conditional expression.
5650
5651 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
5652
5653         PR tree-optimization/53366
5654         * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
5655         tests if complex_numbers == 2, but there are non-complex number loads
5656         too.
5657
5658         PR tree-optimization/53409
5659         * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
5660         vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
5661
5662         PR tree-optimization/53410
5663         * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
5664         instead of build_int_cst (type, 0) where vector types might be
5665         involved. Instead of build_int_cst (type, 1) convert the original
5666         integer_onep argument to the desired type.
5667
5668 2012-05-21  Michael Matz  <matz@suse.de>
5669
5670         * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
5671         (simplify_test_exp): Handle one more case of distributive law,
5672         decrease cost threshold.
5673         (tests_attr_p, get_attr_order): New functions.
5674         (optimize_attrs): Use topological order, inline only cheap values.
5675         (write_attr_set): Reset our_known_true after some time.
5676
5677 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5678
5679         PR target/53425
5680         * config/i386/i386.c (type_natural_mode): Warn passing SSE
5681         vector argument without SSE enabled changes the ABI.
5682
5683 2012-05-21  Richard Guenther  <rguenther@suse.de>
5684
5685         PR tree-optimization/53408
5686         * tree-vect-loop.c (vectorizable_induction): Properly check
5687         the restriction that we cannot handle induction results from
5688         the inner loop outside of the outer loop.
5689
5690 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5691
5692         PR target/53416
5693         * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
5694         (UNSPECV_RDRAND): This.
5695         (rdrand<mode>_1): Updated.
5696
5697 2012-05-21  Richard Guenther  <rguenther@suse.de>
5698
5699         * tree-loop-distribution.c (can_generate_builtin): Reject
5700         volatile stmts.
5701
5702 2012-05-21  Chung-Lin Tang  <cltang@codesourcery.com>
5703
5704         * Makefile.in (options.c): Add options.h to included header
5705         files, before tm.h.
5706
5707 2012-05-21  Razya Ladelsky  <razya@il.ibm.com>
5708
5709         * tree-parloops.c : Add myself to contributors, update
5710         TODO list, add link to wiki.
5711
5712 2012-05-21  Alan Modra  <amodra@gmail.com>
5713
5714         * config/rs6000/predicates.md (input_operand): Don't match
5715         constant pool addresses.  Remove label_ref, high and plus from
5716         match_code list.  Remove redundant CONSTANT_P test.
5717         (splat_input_operand): Similarly update match_code list.
5718         (small_toc_ref): New predicate.
5719         * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
5720         * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
5721         (legitimate_constant_pool_address_p): Move TARGET_TOC test and
5722         register checks to..
5723         (toc_relative_expr_p): ..here.  Add "strict" param.  Match new rtl
5724         generated by create_TOC_reference.
5725         (rs6000_legitimize_address): Update cerate_TOC_reference call.
5726         (rs6000_delegitimize_address): Handle new rtl for toc refs.
5727         (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
5728         (use_toc_relative_ref): New function, split out from..
5729         (rs6000_emit_move): ..here.  Remove redundant tests.  Update
5730         create_TOC_reference calls.
5731         (rs6000_legitimize_reload_address): Formatting.  Handle splitting
5732         of medium/large model toc addresses.  Use use_toc_relative_ref.
5733         (print_operand): Formatting, style.  Adjust for toc changes.
5734         (print_operand_address): Likewise.
5735         (rs6000_output_addr_const_extra): Likewise.
5736         (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
5737         than a PLUS.  Use this formulation for both high and low part
5738         of -mcmodel=medium/large toc reference too.  Before reload,
5739         always use the small model formulation.
5740         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
5741         a PLUS in high part of addresses here.
5742         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
5743         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
5744         (largetoc_high, largetoc_low): Move earlier.  Cope when no
5745         base reg available.
5746         (largetoc_high_plus): New insn.
5747         (movsi_internal1, movsi_internal1_single, movsf_softfloat,
5748         movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
5749         (tocref): ..instead do so here, new insn and split.
5750
5751 2012-05-20  H.J. Lu  <hongjiu.lu@intel.com>
5752
5753         * config/i386/driver-i386.c (host_detect_local_cpu): Support
5754         RDRND, F16C and FSGSBASE.
5755
5756 2012-05-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5757
5758         PR rtl-optimzation/53373
5759         * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
5760         call pattern.  Update split patterns.
5761         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
5762         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
5763
5764 2012-05-20  Razya Ladelsky  <razya@il.ibm.com>
5765
5766         * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
5767         for outer loops.
5768
5769 2012-05-18  Jan Hubicka  <jh@suse.cz>
5770
5771         * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
5772         (cgraph_process_new_functions): Process also aliases.
5773         * lto-streamer-out.c (struct sets): Remove.
5774         (trivally_defined_alias): Remove.
5775         (output_alias_pair_p): Remove.
5776         (output_unreferenced_globals): Remove.
5777         (produce_symtab); Do not handle alias pairs.
5778         (produce_asm_for_decls): Likewise.
5779         * lto-streamer-in.c (input_alias_pairs): Remove.
5780         (lto_read_body): Do not input alias pairs.
5781         (lto_input_constructors_and_inits): Remove.
5782
5783 2012-05-18  Jan Hubicka  <jh@suse.cz>
5784
5785         * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
5786         aliases.
5787
5788 2012-05-18  Jan Hubicka  <jh@suse.cz>
5789
5790         * cgraphbuild.c (record_reference): Update.
5791         * lto-cgraph.c (lto_output_varpool_node): External vars
5792         are not in other partition even if they are not output
5793         in current partition.
5794         * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
5795         argument; fix.
5796         (canonicalize_constructor_val): Take FROM_DECL argument.
5797         (fold_ctor_reference, fold_string_cst_ctor_reference,
5798         fold_array_ctor_reference, fold_nonarray_ctor_reference,
5799         fold_ctor_reference): Likewise.
5800         (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
5801         * gimple.h (gimple_fold_builtin): Likewise.
5802
5803 2012-05-18  Olivier Hainque  <hainque@adacore.com>
5804
5805         * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
5806         $(libsubdir) as libexecsubdir.
5807
5808 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5809
5810         * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
5811         relied on signed overflow behavior.
5812
5813 2012-05-18  Richard Guenther  <rguenther@suse.de>
5814
5815         PR tree-optimization/53346
5816         * tree-loop-distribution.c (ldist_gen): Make sure to apply
5817         builtin transform even when only a single partition with
5818         all reads/writes exists.
5819
5820 2012-05-18  Richard Guenther  <rguenther@suse.de>
5821
5822         PR tree-optimization/53390
5823         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
5824         strided loads.
5825
5826 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5827
5828         * tree-ssa-reassoc.c (bip_map): Remove decl.
5829         (completely_remove_stmt): Remove function.
5830         (remove_def_if_absorbed_call): Remove function.
5831         (remove_visited_stmt_chain): Remove __builtin_powi handling.
5832         (possibly_move_powi): Remove function.
5833         (rewrite_expr_tree): Remove calls to possibly_move_powi.
5834         (rewrite_expr_tree_parallel): Likewise.
5835         (attempt_builtin_powi): Build multiplies explicitly rather than
5836         relying on the ops vector and rank system.
5837         (transform_stmt_to_copy): New function.
5838         (transform_stmt_to_multiply): Likewise.
5839         (reassociate_bb): Handle leftover operations after __builtin_powi
5840         optimization; build a final multiply if necessary.
5841
5842 2012-05-18  Jan Hubicka  <jh@suse.cz>
5843
5844         * cgraphunit.c (varpool_finalize_decl): Allow external decls.
5845         (mark_functions_to_output): Fix sanity check.
5846         * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
5847
5848 2012-05-18  Richard Guenther  <rguenther@suse.de>
5849
5850         * tree-flow.h (mark_symbols_for_renaming): Remove.
5851         * tree-dfa.c (mark_symbols_for_renaming): Likewise.
5852         * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
5853         (copy_debug_stmt): Likewise.
5854         (expand_call_inline): Likewise.
5855         (declare_return_variable): Mark the return variable for renaming
5856         if necessary.
5857
5858 2012-05-18  Andrew Stubbs  <ams@codesourcery.com>
5859
5860         * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
5861         prototype.
5862         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
5863         * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
5864         (ashrdi3,lshrdi3): Likewise.
5865         (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
5866
5867 2012-05-18  Meador Inge  <meadori@codesourcery.com>
5868
5869         PR rtl-optimization/53352
5870         * cse.c (equiv_constant): Ignore paradoxical subregs.
5871
5872 2012-05-17  Steven Bosscher  <steven@gcc.gnu.org>
5873
5874         PR rtl-optimization/53125
5875         * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
5876         argument.  Simplify calculation of REG_LIVE_LENGTH for regnos that
5877         die in the basic block.  Correctly top off REG_FREQ and
5878         REG_FREQ_CALLS_CROSSED.
5879         Remove do_not_gen.
5880         (regstat_compute_ri): Allocate and free local_live_last_luid.
5881         Remove do_not_gen.
5882         (regstat_bb_compute_calls_crossed): Correctly top off
5883         REG_FREQ_CALLS_CROSSED.
5884
5885 2012-05-17  Jan Hubicka  <jh@suse.cz>
5886
5887         * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
5888         constructor over decl without.
5889         * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
5890         * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
5891         * cgraphunit.c (process_function_and_variable_attributes): Finalize
5892         extrnal decls.
5893         (mark_functions_to_output): Also accept bodies for functions with
5894         clones.
5895         (output_in_order): Skip external vars.
5896         * lto-cgraph.c (lto_output_node): External functions are never in other
5897         partition.
5898         (lto_output_varpool_node): Likewise.
5899         * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
5900         forgotten initializers.
5901         * ipa.c (process_references): Handle external vars.
5902         (symtab_remove_unreachable_nodes): Update to handle external vars.
5903         (varpool_externally_visible_p): External vars are externally visible.
5904         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
5905         * varpool.c (varpool_remove_node): Remove constructor.
5906         (decide_is_variable_needed): Handle externals.
5907         (varpool_remove_unreferenced_decls): Likewise.
5908
5909 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5910
5911         * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
5912         (enable_warning_as_error): Do not special case Wuninitialized.
5913         * optc-gen.awk: Add sanity checks.
5914
5915 2012-05-17  Jan Hubicka  <jh@suse.cz>
5916
5917         * ipa-reference.c (is_proper_for_analysis): Do not check flags
5918         that might change as result of global optimization.
5919         (analyze_function): Do not check analyzed and externally_visible
5920         flags; be happy about address dereferences.
5921         (propagate): Prune all_module_statics so it really contains just
5922         statics; prune all the local summaries.
5923         (ipa_reference_write_optimization_summary): Simplify.
5924
5925 2012-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
5926
5927         * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
5928         * config/m68k/m68k-tables.opt: Regenerated.
5929         * doc/invoke.texi (M680x0 Options): Document.
5930
5931 2012-05-16  Dave Boutcher  <daveboutcher@gmail.com>
5932             Patrick Marlier  <patrick.marlier@gmail.com>
5933
5934         * trans-mem.c (ipa_tm_transform_clone): Transform functions with
5935         indirect calls.
5936
5937 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5938
5939         * configure: Regenerated.
5940
5941 2012-05-16  Andrew Pinski  <apinski@cavium.com>
5942
5943         * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
5944         GIMPLE_ASSIGN.
5945
5946 2012-05-16  David S. Miller  <davem@davemloft.net>
5947
5948         * jump.c (delete_related_insns): If we remove a CALL, make sure
5949         we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
5950
5951 2012-05-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5952
5953         PR tree-optimization/53217
5954         * tree-ssa-reassoc.c (bip_map): New static variable.
5955         (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
5956         (attempt_builtin_powi): Save feeding multiplies on a stack.
5957         (reassociate_bb): Create and destroy bip_map.
5958
5959 2012-05-16  Olivier Hainque  <hainque@adacore.com>
5960
5961         * Makefile.in (install-no-fixedincludes): New target, former toplevel
5962         gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
5963         Add comments and improve stamp preservation across the whole sequence.
5964         (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
5965
5966 2012-05-16  Richard Guenther  <rguenther@suse.de>
5967
5968         * tree-inline.c (insert_init_stmt): Do not call
5969         mark_symbols_for_renaming.
5970         (setup_one_parameter): Avoid initializing unused parameters.
5971         (declare_return_variable): Properly handle DECL_BY_REFERENCE
5972         return vars in SSA form.
5973
5974 2012-05-16  Richard Guenther  <rguenther@suse.de>
5975
5976         * tree-flow.h (get_virtual_var): Remove.
5977         * tree-dfa.c (get_virtual_var): Likewise.
5978
5979 2012-05-16  Richard Guenther  <rguenther@suse.de>
5980
5981         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
5982         Remove set-only bitmap of new names.
5983         (slpeel_tree_peel_loop_to_edge): Likewise.  Do not set
5984         CFG hooks.
5985         * tree-flow.h (ssa_names_to_replace): Remove.
5986         * tree-into-ssa.c (ssa_names_to_replace): Likewise.
5987
5988 2012-05-16  Richard Guenther  <rguenther@suse.de>
5989
5990         PR tree-optimization/53364
5991         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
5992         detect a view-conversion of the decl.
5993
5994 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
5995
5996         PR preprocessor/7263
5997         * c-tree.h (enum c_declspec_word): Declare new enum.
5998         (struct c_declspecs::locations): New member.
5999         (declspecs_add_qual, declspecs_add_scspec)
6000         (declspecs_add_addrspace, declspecs_add_alignas): Take a new
6001         location parameter.
6002         * c-decl.c (build_null_declspecs): Initialize the new struct
6003         c_declspecs::locations member.
6004         (declspecs_add_addrspace): Take a location parameter for the
6005         address space.  Store it onto declaration specifiers.
6006         (declspecs_add_qual): Likewise, take a location parameter for the
6007         qualifier.
6008         (declspecs_add_type): Likewise, take a location parameter for the
6009         type specifier.
6010         (declspecs_add_scspec): Likewise, take a location parameter for
6011         the storage class specifier.
6012         (declspecs_add_attrs): Likewise, take a location parameter for the
6013         first attribute.
6014         (declspecs_add_alignas): Likewise, take a location parameter for
6015         the alignas token.
6016         (finish_declspecs): For diagnostics, use the location of the
6017         relevant declspec, instead of the global input_location.
6018         * c-parser.c (c_parser_parameter_declaration): Pass the precise
6019         virtual location of the declspec to the declspecs-setters.
6020         (c_parser_declspecs): Likewise.  Avoid calling c_parser_peek_token
6021         repeatedly.
6022
6023 2012-05-16  Igor Zamyatin  <igor.zamyatin@intel.com>
6024
6025         * configure.ac: Stack protector enabling for Android targets.
6026         * configure: Regenerate.
6027
6028 2012-05-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
6029
6030         * ira.c (pseudo_move_insn): Delete.
6031         (find_moveable_pseudos): Don't set it.
6032         (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
6033         the definitions of the original pseudo.  Delete all of them.
6034
6035 2012-05-16  Olivier Hainque  <hainque@adacore.com>
6036
6037         * config/rs6000/rs6000-opts.h (enum processor_type): Add
6038         PROCESSOR_PPC8548.
6039         * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
6040         * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
6041         * config/rs6000/8540.md: indicate that the units/patterns apply to
6042         ppc8548 as well.
6043
6044         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
6045         default_cpu into implicit_cpu, conveying what --with-cpu was passed at
6046         configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
6047         related flags,  check that what is queried is supported by the selected
6048         configuration. Rework the single/double_float and MASK_STRING resets to
6049         hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
6050         costs for PROCESSOR_PPC8548 as well.
6051         (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
6052         (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
6053         statement instead of a sequence of ifs.
6054
6055         * config/rs6000/rs6000.h (TARGET_E500): Remove.
6056         (TARGET_NO_LWSYNC): Adjust accordingly.
6057         * config/rs6000/e500.h (TARGET_E500): Remove.
6058         (CHECK_E500_OPTIONS): Adjust accordingly.
6059         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
6060         (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
6061         * config/rs6000/linuxspe.h: Likewise.
6062         * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
6063         superfluous comments.
6064         * config/rs6000/e500-double.h: Remove.
6065
6066         * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
6067         default to with_cpu=8548 if --enable-e500-double, and to 8540
6068         otherwise.
6069         (set misc flags section): For powerpc*|rs6000*, remove inclusion
6070         of e500-double.h for --enable-e500-double.
6071
6072 2012-05-16  Olivier Hainque  <hainque@adacore.com>
6073
6074         * Makefile.in (s-header-vars): Resort to -n instead of trailing
6075         -e d in sed invocation.
6076
6077 2012-05-16  Hans-Peter Nilsson  <hp@axis.com>
6078
6079         * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
6080         source-code.
6081         * doc/tm.texi: Regenerate.
6082
6083 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
6084
6085         * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
6086
6087 2012-05-15  Jakub Jelinek  <jakub@redhat.com>
6088
6089         PR target/53358
6090         * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
6091         that operands[2] is either immediate, or q_regs_operand.
6092
6093 2012-05-15  Richard Guenther  <rguenther@suse.de>
6094
6095         * cgraphunit.c (thunk_adjust): Use make_rename_temp.
6096         (assemble_thunk): Likewise.  Manually rename and register
6097         function arguments.
6098
6099 2012-05-15  Richard Guenther  <rguenther@suse.de>
6100
6101         PR tree-optimization/53355
6102         * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
6103         by constants.
6104
6105 2012-05-15  Tristan Gingold  <gingold@adacore.com>
6106
6107         * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
6108
6109 2012-05-15  Richard Guenther  <rguenther@suse.de>
6110
6111         * gimple.c (gimple_set_modified): Move ...
6112         * gimple.h (gimple_set_modified): ... here.
6113
6114 2012-05-15  Tristan Gingold  <gingold@adacore.com>
6115
6116         * ira-color.c (move_spill_restore): Add a guard.
6117
6118 2012-05-15  Tristan Gingold  <gingold@adacore.com>
6119
6120         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
6121         plus_constant.
6122
6123 2012-05-15  Eric Botcazou  <ebotcazou@adacore.com>
6124
6125         * gimplify.c (gimplify_init_constructor): Do a block move for very
6126         small objects as well.
6127
6128 2012-05-15  Bernd Schmidt  <bernds@codesourcery.com>
6129
6130         * ira.c (find_moveable_pseudos): Skip registers whose
6131         DF_REG_EQ_USE_COUNT is nonzero.
6132
6133 2012-05-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
6134
6135         * doc/md.texi (fma): Define to only be applicable for single rounding.
6136
6137 2012-05-14  Uros Bizjak  <ubizjak@gmail.com>
6138
6139         PR target/46098
6140         * config/i386/i386.c (ix86_expand_special_args_builtin): Always
6141         generate target register for "load" class builtins.
6142
6143         Revert:
6144         2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
6145
6146         PR target/46098
6147         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
6148         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
6149         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
6150         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
6151         (<sse>_movu<ssemodesuffix>): New expander.
6152         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
6153         (avx_movdqu<avxmodesuffix>): New expander.
6154         (*sse2_movdqu): Rename from sse2_movdqu.
6155         (sse2_movdqu): New expander.
6156
6157 2012-05-14  Marc Glisse  <marc.glisse@inria.fr>
6158
6159         PR target/52607
6160         * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
6161         (canonicalize_perm): ... new function.
6162         (expand_vec_perm_2vperm2f128_vshuf): New function.
6163         (ix86_expand_vec_perm_const_1): Call it.
6164
6165 2012-05-14  Andrew Pinski  <apinski@cavium.com>
6166             H.J. Lu  <hongjiu.lu@intel.com>
6167             Jakub Jelinek  <jakub@redhat.com>
6168
6169         PR target/53315
6170         * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
6171         (xbegin): Updated.
6172
6173 2012-05-14  Jakub Jelinek  <jakub@redhat.com>
6174
6175         * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
6176         lineno 1 the same as lineno 0 before first start file directive.
6177         (optimize_macinfo_range): Likewise.
6178
6179         * dwarf2out.c (have_macinfo): Define.
6180         (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
6181         attribute, don't force empty compilation unit and don't emit any
6182         .debug_macinfo/.debug_macro section if macinfo_table is empty.
6183
6184 2012-05-14  Georg-Johann Lay  <avr@gjlay.de>
6185
6186         PR target/53344
6187         * config/avr/avr.c (avr_const_address_lo16): Remove.
6188         (avr_assemble_integer):  Print ".byte lo8(x)",
6189         ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
6190         .warning if 3-byte address is assembled.
6191         * doc/extend.texi (AVR Named Address Spaces): Document that
6192         binutils 2.23 is needed to assemble 3-byte addresses.
6193
6194 2012-05-14  Richard Guenther  <rguenther@suse.de>
6195
6196         * tree-vect-data-refs.c (vect_setup_realignment): Remove
6197         call to mark_symbols_for_renaming.
6198         (vect_permute_load_chain): Likewise.
6199         * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
6200         instead of calling mark_symbols_for_renaming.
6201         * tree-vect-stmts.c (read_vector_array): Remove call to
6202         mark_symbols_for_renaming.
6203         (write_vector_array): Likewise.
6204         (vectorizable_call): Likewise.
6205         (vectorizable_store): Likewise.
6206         (vectorizable_load): Likewise.
6207         * matrix-reorg.c (transform_allocation_sites): Likewise.
6208         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
6209         (create_expression_by_pieces): Likewise.
6210
6211 2012-05-14  Richard Guenther  <rguenther@suse.de>
6212
6213         * gimplify.c (gimple_regimplify_operands): Only mark the LHS
6214         of statements for renaming.
6215         (force_gimple_operand_1): Likewise, consistently for both
6216         calls to force_gimple_operand and force_gimple_operand_gsi.
6217
6218 2012-05-14  Richard Guenther  <rguenther@suse.de>
6219
6220         * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
6221         * omp-low.c (expand_omp_taskreg): Properly conditionalize call
6222         to update_ssa.
6223         (expand_omp_for): Likewise.
6224         (expand_omp_for_generic): Adjust conditional add to referenced vars.
6225         Use make_rename_temp for temporaries that should be rewritten into
6226         SSA form.
6227         (expand_omp_for_static_nochunk): Likewise.
6228         (expand_omp_atomic_pipeline): Likewise.
6229
6230 2012-05-14  Richard Guenther  <rguenther@suse.de>
6231
6232         PR tree-optimization/53331
6233         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
6234         strided loads.
6235         * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
6236
6237 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6238
6239         PR 53063
6240         * doc/options.texi: (LangEnabledBy): Document it.
6241         * optc-gen.awk: Handle LangEnabledBy.
6242         * opth-gen.awk: Generate declaration for lang-specific functions.
6243         * opt-read.awk: Record lang numbers.
6244         * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
6245         (lang_sanitized_name): New.
6246
6247 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
6248
6249         * attribs.c (decl_attributes): Avoid emitting a warning if
6250         ATTR_FLAG_BUILT_IN.
6251         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
6252         codes.  Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
6253         * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define.  Use it to
6254         define a string "1".
6255         (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
6256         * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
6257         BUILT_IN_STRCPY): Use it for these functions.
6258         * postreload.c (reload_combine): Deal with SETs inside
6259         CALL_INSN_FUNCTION_USAGE.
6260         * caller-save.c (setup_save_areas, save_call_clobbered_regs):
6261         Look for REG_RETURNED notes and use a cheap restore if possible.
6262         * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
6263         (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
6264         * ira-build.c (ira_create_allocno, create_cap_allocno,
6265         propagate_allocno_info, propagate_some_info_from_allocno,
6266         copy_info_to_removed_store_destination, ira_flattening): Handle it.
6267         * ira-lives.c (pseudo_regno_single_word_and_live_p,
6268         find_call_crossed_cheap_reg): New static functions.
6269         (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
6270         and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible.  Also make
6271         a REG_RETURNED note in that case.
6272         * ira.c (setup_reg_renumber): Change assert to allow cases where
6273         allocnos only cross calls for which they are cheap to restore.
6274         * ira-costs.c (ira_tune_allocno_costs): Compare
6275         ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
6276         than 0.
6277         * reg-notes.def (REG_RETURNED): New note.
6278         * cse.c (cse_insn): Likewise.
6279         * sched-deps.c (sched_analyze_insn): Likewise.
6280         * expr.c (init_block_move_fn): Set a "fn spec" attribute.
6281         * calls.c (decl_return_flags): New static function.
6282         (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
6283         functions that return one of their arguments.
6284         * regcprop.c (struct kill_set_value_data): New.
6285         (kill_set_value): Interpret data as a pointer to such a struct.
6286         Do nothing if the caller wants the register to be ignored.
6287         (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
6288
6289 2012-05-14  Richard Guenther  <rguenther@suse.de>
6290
6291         PR tree-optimization/53340
6292         * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
6293
6294 2012-05-14  Richard Guenther  <rguenther@suse.de>
6295
6296         * gimplify.c (gimplify_expr): Remove odd code.
6297
6298 2012-05-14  Eric Botcazou  <ebotcazou@adacore.com>
6299
6300         * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
6301         into a PLUS_EXPR byte offset.
6302
6303         * tree-ssa-pre.c (can_value_number_call): Delete.
6304         (compute_avail): Skip all statements with side effects.
6305         <GIMPLE_CALL>: Skip calls to internal functions.
6306
6307 2012-05-13  Steven Bosscher  <steven@gcc.gnu.org>
6308
6309         * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
6310
6311 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6312
6313         * common.opt (Wtype-limits): Use EnabledBy.
6314
6315 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
6316
6317         * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
6318         (pushtf splitter): Ditto.
6319         (movtf): Ditto.
6320         (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
6321         (<code>tf2): Enable for TARGET_SSE.
6322         (*absnegtf2_sse): Ditto.
6323         (copysign<mode>3): Enable TFmode for TARGET_SSE.
6324         (copysign<mode>3_const): Ditto.
6325         (copysign<mode>3_var): Ditto.
6326         * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
6327         (*andnottf3): Ditto.  Use V4SFmode for !TARGET_SSE2.
6328         (*<code>tf3): Ditto.
6329         * config/i386/i386.c (struct builtin_description bdesc_args)
6330         <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
6331         <IX86_BUILTIN_COPYSIGNQ>: Ditto.
6332         (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
6333         Emit a normal call if SSE isn't available.
6334
6335 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
6336
6337         * config/i386/sse.md (<sse>_andnot<mode>3): Handle
6338         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6339         (<code><mode>3): Ditto.
6340         (*andnot<mode>3): Ditto.
6341         (*andnottf3): Ditto.
6342         (*<code><mode>3): Ditto.
6343         (<code>tf3): Ditto.
6344
6345 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6346
6347         * optc-gen.awk: Error instead of warning for conflicting help.
6348
6349 2012-05-12  Jason Merrill  <jason@redhat.com>
6350
6351         PR debug/53235
6352         * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
6353         comdat types.
6354
6355 2012-05-12  Eric Botcazou  <ebotcazou@adacore.com>
6356
6357         * function.c (requires_stack_frame_p): If the function can throw
6358         non-call exceptions, return true if the insn can throw internally.
6359
6360 2012-05-12  Paolo Carlini  <paolo.carlini@oracle.com>
6361
6362         * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
6363
6364 2012-05-12  Uros Bizjak  <ubizjak@gmail.com>
6365
6366         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
6367         ORDERED and UNORDERED conditions.
6368
6369 2012-05-11  Richard Guenther  <rguenther@suse.de>
6370
6371         * tree-flow.h (referenced_var_check_and_insert): Remove.
6372         (find_new_referenced_vars): Likewise.
6373         * tree-dfa.c (referenced_var_check_and_insert): Make static.
6374         (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
6375         * tree-inline.c (copy_bb): Use find_referenced_vars_in
6376         instead of find_new_referenced_vars.
6377         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
6378
6379 2012-05-11  Richard Guenther  <rguenther@suse.de>
6380
6381         * tree-pass.h (pass_rest_of_compilation,
6382         pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
6383         Remove.
6384         * passes.c (pass_all_optimizations, pass_postreload,
6385         pass_all_early_optimizations): Make static.
6386         (pass_rest_of_compilation): Likewise.  Make it an RTL_PASS.
6387         * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
6388         * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
6389         (delete_tree_ssa): Do not call fini_phinodes.
6390         * tree-flow.h (init_phinodes, fini_phinodes): Remove.
6391
6392 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6393
6394         PR 53063
6395         * doc/options.texi (EnabledBy): Document
6396         * opts.c: Include opts.h and options.h before tm.h.
6397         (finish_options): Do not handle some sub-options here...
6398         (common_handle_option): ... instead call common_handle_option_auto
6399         here.
6400         * optc-gen.awk: Handle EnabledBy.
6401         * opth-gen.awk: Declare common_handle_option_auto.
6402         * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
6403         (Wmaybe-uninitialized): Likewise.
6404         (Wunused-but-set-variable): Likewise.
6405         (Wunused-function): Likewise.
6406         (Wunused-label): Likewise.
6407         (Wunused-value): Likewise.
6408         (Wunused-variable): Likewise.
6409         * opt-read.awk: Create opt_numbers array.
6410
6411 2012-05-11  Richard Guenther  <rguenther@suse.de>
6412
6413         PR tree-optimization/53295
6414         * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
6415         strides.
6416         * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
6417         strides when analyzing data-references in a loop context.
6418         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
6419         non-constant strides for now.
6420         (vect_enhance_data_refs_alignment): Ignore data references
6421         that are strided loads.
6422         (vect_analyze_data_ref_access): Handle non-constant strides.
6423         (vect_check_strided_load): Verify the data-reference is a load.
6424         (vect_analyze_data_refs): Restructure to make strided load
6425         support not dependent on gather support.
6426         * tree-vect-stmts.c (vectorizable_load): Avoid useless work
6427         when doing strided or gather loads.
6428         * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
6429         integer_zerop to compare stride with zero.
6430
6431 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6432
6433         * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
6434
6435 2012-05-11  Jan Hubicka  <jh@suse.cz>
6436
6437         PR bootstrap/53300
6438         * varpool.c (varpool_assemble_decl): Also output constat pool entries
6439         that output_constant_pool missed.
6440
6441 2012-05-11  Mingjie Xing  <mingjie.xing@gmail.com>
6442
6443         * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
6444         MULTILIB_EXTRA_OPTS.
6445
6446 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
6447
6448         PR target/53291
6449         * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
6450
6451 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
6452
6453         * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
6454         optimization for TARGET_AVX.
6455         (*movti_internal_sse): Ditto.
6456         (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6457         (*movdi_internal): Ditto.
6458         (*movsi_internal): Ditto.
6459         (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
6460         (*movdf_internal_rex64): Ditto.
6461         (*movfd_internal): Ditto.
6462         (*movsf_internal): Ditto.
6463         * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
6464
6465 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
6466
6467         * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
6468         reference as size attribute.
6469
6470 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
6471             Tristan Gingold  <gingold@adacore.com>
6472
6473         * doc/md.texi (Standard Names): Document probe_stack_address.
6474         * explow.c (emit_stack_probe): Handle probe_stack_address.
6475         * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
6476         (UNSPECV_PROBE_STACK_RANGE): Likewise.
6477         (probe_stack_address): New insn.
6478         (probe_stack_range): Likewise.
6479         * config/ia64/ia64.c: Include common/common-target.h.
6480         (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
6481         checking is enabled.
6482         (ia64_emit_probe_stack_range): New function.
6483         (output_probe_stack_range): Likewise.
6484         (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
6485         builtin stack checking is enabled.
6486         (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
6487         and UNSPECV_PROBE_STACK_ADDRESS.
6488         (unknown_for_bundling_p): New predicate.
6489         (group_barrier_needed): Use important_for_bundling_p.
6490         (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
6491         (issue_nops_and_insn): Likewise.
6492         (bundling): Likewise.
6493         (final_emit_insn_group_barriers): Likewise.
6494         * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
6495         * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
6496         (STACK_CHECK_PROTECT): Likewise.
6497         * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6498
6499 2012-05-10  Jan Hubicka  <jh@suse.cz>
6500
6501         * ipa-inline.c (update_all_callee_keys): Remove.
6502         (inline_small_functions): Simplify priority updating.
6503
6504 2012-05-10  Jan Hubicka  <jh@suse.cz>
6505
6506         * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
6507
6508 2012-05-10  Jan Hubicka  <jh@suse.cz>
6509
6510         * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
6511         (symtab_remove_unreachable_nodes): ... this one.
6512         * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
6513         * cgraphunit.c (ipa_passes): Update.
6514         * cgraphclones.c (cgraph_materialize_all_clones): Update.
6515         * cgraph.c (cgraph_release_function_body): Only turn initial
6516         into error mark when initial was previously set.
6517         * ipa-inline.c (ipa_inline): Update.
6518         * ipa.c: Include ipa-inline.h
6519         (enqueue_cgraph_node, enqueue_varpool_node): Remove.
6520         (enqueue_node): New function.
6521         (process_references): Update.
6522         (symtab_remove_unreachable_nodes): Cleanup.
6523         * passes.c (execute_todo, execute_one_pass): Update.
6524
6525 2012-05-10  Vladimir Makarov  <vmakarov@redhat.com>
6526
6527         PR rtl-optimization/53125
6528         * ira.c (ira): Call find_moveable_pseudos and
6529         move_unallocated_pseudos if only ira_conflicts_p is true.
6530
6531 2012-05-10  Uros Bizjak  <ubizjak@gmail.com>
6532
6533         * config/i386/i386.md (*movoi_internal_avx): Handle
6534         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
6535         (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6536         (*movti_internal_sse): Ditto.
6537         (*movtf_internal): Ditto.
6538         * config/i386/sse.md (ssePSmode): New mode attribute.
6539         (*move<mode>_internal): Use ssePSmode.
6540         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
6541         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
6542         * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
6543         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
6544
6545 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
6546
6547         * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
6548         DECL_ORIGINAL_TYPE if it is present.
6549
6550 2012-05-10  Nick Clifton  <nickc@redhat.com>
6551
6552         PR target/53120
6553         * config/m32c/bitops.md (bset_qi): Change operand 2 from having
6554         a "0" constraint to being a (match_dup 0).
6555
6556 2012-05-10  Richard Guenther  <rguenther@suse.de>
6557
6558         * stor-layout.c (byte_from_pos): Amend comment.
6559
6560 2012-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6561
6562         * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
6563         Document requirement to call in constructors.
6564
6565         * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
6566
6567 2012-05-10  Richard Guenther  <rguenther@suse.de>
6568
6569         * tree.h (TYPE_IS_SIZETYPE): Remove.
6570         * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
6571         (extract_muldiv_1): Likewise.
6572         * gimple.c (gtc_visit): Likewise.
6573         (gimple_types_compatible_p): Likewise.
6574         (iterative_hash_canonical_type): Likewise.
6575         (gimple_canonical_types_compatible_p): Likewise.
6576         * gimplify.c (gimplify_one_sizepos): Likewise.
6577         * print-tree.c (print_node): Likewise.
6578         * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
6579
6580 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
6581
6582         PR target/52908
6583         * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
6584         xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
6585         (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
6586         instead of xop_mulv2div2di3_low.
6587         (xop_p<macs>dql): Fix vec_select selector.
6588         (xop_p<macs>dqh): Ditto.
6589         (xop_mulv2div2di3_low): Remove insn_and_split pattern.
6590         (xop_mulv2div2di3_high): Ditto.
6591
6592 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6593
6594         PR c++/53289
6595         * diagnostic.h (diagnostic_context): Add last_location.
6596         * diagnostic.c (diagnostic_initialize): Initialize it.
6597         (diagnostic_show_locus): Use it.
6598
6599 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6600
6601         * doc/extend.texi (Function Attributes): Point xref to section
6602         about Pragmas.
6603
6604 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
6605
6606         * config/i386/i386.c (*movdf_internal_rex64): Remove
6607         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
6608         Calculate "mode" attribute according to
6609         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
6610         (*movdf_internal): Ditto.
6611
6612 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
6613
6614         PR target/44141
6615         * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
6616         128 bit vectors specially for TARGET_AVX.  Emit sse2_movupd and
6617         sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
6618         or when optimizing for size.
6619         * config/i386/sse.md (*mov<mode>_internal): Remove
6620         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
6621         Calculate "mode" attribute according to optimize_function_for_size_p
6622         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
6623         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
6624         depending on the mode of the instruction.  Calculate "mode" attribute
6625         according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
6626         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
6627         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
6628
6629 2012-05-09  Georg-Johann Lay  <avr@gjlay.de>
6630
6631         PR target/53256
6632         * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
6633         * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
6634         * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
6635         * config/avr/avr.c (avr_asm_declare_function_name): Remove.
6636         (expand_prologue): Move initialization of cfun->machine->is_naked,
6637         is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
6638         (avr_set_current_function): ...this new static function.
6639         (TARGET_SET_CURRENT_FUNCTION): New define.
6640         (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
6641         checking attributes of current_function_decl.
6642         (avr_regs_to_save): Ditto.
6643         (signal_function_p): Rename to avr_signal_function_p.
6644         (interrupt_function_p): Rename to avr_interrupt_function_p.
6645
6646         * doc/extend.texi (Function Attributes): Better explanation of
6647         'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
6648         alphabetical order.
6649
6650 2012-05-09  Michael Matz  <matz@suse.de>
6651
6652         PR tree-optimization/53185
6653         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
6654         peeling when we see strided loads.
6655
6656 2012-05-09  Matthias Klose  <doko@ubuntu.com>
6657
6658         * gcc-ar.c (main): Don't check for execute bits for the plugin.
6659
6660 2012-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6661
6662         * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
6663         Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
6664         USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
6665         * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
6666         (USE_LOAD_POST_INCREMENT): Define.
6667         (USE_LOAD_PRE_INCREMENT): Define.
6668         (USE_LOAD_POST_DECREMENT): Define.
6669         (USE_LOAD_PRE_DECREMENT): Define.
6670         (USE_STORE_PRE_DECREMENT): Define.
6671         (USE_STORE_PRE_INCREMENT): Define.
6672         (USE_STORE_POST_DECREMENT): Define.
6673         (USE_STORE_POST_INCREMENT): Define.
6674         (arm_auto_incmodes): Add enumeration.
6675         * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
6676         * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
6677
6678 2012-05-09  Jakub Jelinek  <jakub@redhat.com>
6679
6680         PR tree-optimization/53226
6681         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
6682         prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
6683         before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
6684         doesn't need to be revisited, look for earliest stmt with
6685         !gimple_plf (stmt, GF_PLF_1) if something changed.
6686
6687 2012-05-09  Terry Guo  <terry.guo@arm.com>
6688
6689         * genmultilib: Update copyright dates.
6690         * doc/fragments.texi: Ditto.
6691
6692 2012-05-09  Terry Guo  <terry.guo@arm.com>
6693
6694         * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
6695         * genmultilib (MULTILIB_REQUIRED): New.
6696         * doc/fragments.texi: Document the MULTILIB_REQUIRED.
6697
6698 2012-05-09  Richard Guenther  <rguenther@suse.de>
6699
6700         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6701         (vect_do_peeling_for_loop_bound): Likewise.
6702         (vect_do_peeling_for_alignment): Likewise.
6703         * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
6704         (vect_do_peeling_for_loop_bound): Get check_profitability and
6705         threshold as parameters.
6706         (vect_do_peeling_for_alignment): Likewise.
6707         (vect_loop_versioning): Likewise.
6708         * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
6709         and threshold here.  Control where to put the check here.
6710
6711 2012-05-09  Richard Sandiford  <rdsandiford@googlemail.com>
6712
6713         PR middle-end/53249
6714         * dwarf2out.h (get_address_mode): Move declaration to...
6715         * rtl.h: ...here.
6716         * dwarf2out.c (get_address_mode): Move definition to...
6717         * rtlanal.c: ...here.
6718         * var-tracking.c (get_address_mode): Delete.
6719         * combine.c (find_split_point): Use get_address_mode instead of
6720         targetm.addr_space.address_mode.
6721         * cselib.c (cselib_record_sets): Likewise.
6722         * dse.c (canon_address, record_store): Likewise.
6723         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
6724         * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
6725         (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
6726         (expand_expr_real_1): Likewise.
6727         * ifcvt.c (noce_try_cmove_arith): Likewise.
6728         * optabs.c (maybe_legitimize_operand_same_code): Likewise.
6729         * reload.c (find_reloads): Likewise.
6730         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
6731         * sel-sched-dump.c (debug_mem_addr_value): Likewise.
6732
6733 2012-05-09  Maciej W. Rozycki  <macro@codesourcery.com>
6734
6735         * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
6736         information from the instruction produced.
6737
6738 2012-05-09  Richard Guenther  <rguenther@suse.de>
6739
6740         * stor-layout.c (bit_from_pos): Document.
6741         (byte_from_pos): Likewise.  Optimize.
6742         (pos_from_bit): Likewise.
6743         (normalize_offset): Use pos_from_bit instead of replicating it.
6744
6745 2012-05-09  Alan Modra  <amodra@gmail.com>
6746
6747         PR target/53271
6748         * config/rs6000/rs6000.c (gen_frame_set): New function.
6749         (gen_frame_load, gen_frame_store): New functions.
6750         (rs6000_savres_rtx): Use the above.
6751         (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
6752         Correct mode used for CR2 in save/restore_world patterns.
6753         Don't emit instructions for eh_return frame unwind reg info.
6754
6755 2012-05-08  Jan Hubicka  <jh@suse.cz>
6756
6757         * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
6758         with VALUE_EXPR.
6759         * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
6760         are removable.
6761         * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
6762         need to wrapup.
6763         (compile_file): Do not output variables.
6764         * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
6765         output it.
6766         * langhooks.c: Include timevar.h
6767         (write_global_declarations): Finalize compilation unit after wrapup;
6768         set timevars correctly.
6769         * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
6770         not to be added to varpool.
6771         * varpool.c (varpool_assemble_decl): Sanity check that we are called
6772         only on cases where it makes sense; skip constant pool and value expr
6773         vars.
6774
6775 2012-05-08  David S. Miller  <davem@davemloft.net>
6776
6777         * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
6778         * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
6779         * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
6780
6781 2012-05-08  Richard Sandiford  <rdsandiford@googlemail.com>
6782
6783         PR rtl-optimization/53278
6784         * lower-subreg.c (decompose_multiword_subregs): Remove left-over
6785         speed_p code from earlier patch.
6786
6787 2012-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
6788
6789         PR target/51244
6790         * config/sh/sh.md (*branch_true, *branch_false): New insns.
6791
6792 2012-05-08  Teresa Johnson  <tejohnson@google.com>
6793
6794         * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
6795         * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
6796
6797 2012-05-08  Jan Hubicka  <jh@suse.cz>
6798
6799         * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
6800         (cgraph_create_node_1): Rename to ...
6801         (cgraph_create_empty_node): ... this one; export.
6802         (cgraph_create_node): Update.
6803         (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
6804         (cgraph_create_edge_including_clones): Likewise.
6805         (cgraph_find_replacement_node): Likewise.
6806         (cgraph_clone_edge): Likewise.
6807         (cgraph_clone_node): Likewise.
6808         (clone_function_name): Likewise.
6809         (cgraph_create_virtual_clone): Likewise.
6810         (cgraph_remove_node_and_inline_clones): Likewise.
6811         (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
6812         * cgraph.h: Reorder declarations so they match file of origin.
6813         (cgraph_create_empty_node): Declare.
6814         * cgraphunit.c (update_call_expr): Move to cgraphclones.c
6815         (cgraph_copy_node_for_versioning): Likewise.
6816         (cgraph_function_versioning): Likewise.
6817         (cgraph_materialize_clone): Likewise.
6818         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
6819         (cgraph_materialize_all_clones): Likewise.
6820         * cgraphclones.c: New file.
6821         * Makefile.in: Update for cgraphclones.
6822
6823 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
6824
6825         PR target/53176
6826         * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
6827         (ix86_rtx_costs): Handle SET.
6828
6829 2012-05-08  Michael Matz  <matz@suse.de>
6830
6831         * basic-block.h (struct rtl_bb_info): Remove visited member and
6832         move head_ member to ...
6833         (struct basic_block_def.basic_block_il_dependent): ... the new
6834         member x, replacing but containing old member rtl.
6835         (enum bb_flags): New BB_VISITED flag.
6836         (BB_HEADER, BB_FOOTER): New macros.
6837
6838         * jump.c (mark_all_labels): Adjust.
6839         * cfgcleanup.c (try_optimize_cfg): Adjust.
6840         * cfglayout.c (record_effective_endpoints): Adjust.
6841         (relink_block_chain): Ditto (and don't fiddle with visited).
6842         (fixup_reorder_chain): Adjust.
6843         (fixup_fallthru_exit_predecessor): Ditto.
6844         (cfg_layout_duplicate_bb): Ditto.
6845         * combine.c (update_cfg_for_uncondjump): Adjust.
6846         * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
6847         (bb_visited_trace): New accessor.
6848         (mark_bb_visited): Move in front.
6849         (rotate_loop): Use bb_visited_trace.
6850         (find_traces_1_round): Ditto.
6851         (emit_barrier_after): Ditto.
6852         (copy_bb): Ditto, and initialize visited on resize.
6853         (reorder_basic_blocks): Initize visited member.
6854         (duplicate_computed_gotos): Clear bb flags at start, use
6855         BB_VISITED flags.
6856
6857         * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
6858         (rtl_verify_flow_info_1): Ditto.
6859         (cfg_layout_split_block): Ditto.
6860         (cfg_layout_delete_block): Ditto.
6861         (cfg_layout_merge_blocks): Ditto.
6862         (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
6863
6864 2012-05-08  Hans-Peter Nilsson  <hp@axis.com>
6865
6866         PR target/53272
6867         * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
6868         when a constant source operand matches an "I" constraint, the "no
6869         CC0 change" applies to a register-destination only, not a
6870         strict_low_part-destination.
6871
6872 2012-05-08  Richard Guenther  <rguenther@suse.de>
6873
6874         * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
6875         to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
6876
6877 2012-05-08  Georg-Johann Lay  <avr@gjlay.de>
6878
6879         * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
6880
6881         * doc/avr-mmcu.texi: New auto-generated file.
6882         * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
6883         to document all valid -mmcu= arguments.
6884
6885         * config/avr/avr.h (arch_info_s): New struct definition.
6886         * config/avr/avr-devices.c (avr_texinfo): New variable.
6887         * config/avr/gen-avr-mmcu-texi.c: New file.
6888         * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
6889
6890 2012-05-08  Dehao Chen  <dehao@google.com>
6891
6892         * predict.c (find_qualified_ssa_name): New.
6893         (find_ssa_name_in_expr): New.
6894         (find_ssa_name_in_assign_stmt): New.
6895         (is_comparison_with_loop_invariant_p): New.
6896         (is_bound_expr_similar): New.
6897         (predict_iv_comparison): New.
6898         (predict_loops): Add heuristic for loop-nested branches that compare an
6899         induction variable to a loop bound variable.
6900         * predict.def (PRED_LOOP_IV_COMPARE): New macro.
6901
6902 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
6903
6904         * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
6905         TARGET_BDVER2 defines where appropriate.
6906
6907 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6908
6909         * configure.ac (PLUGIN_LD): Rename into...
6910         (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
6911         * config.in: Regenerate.
6912         * configure: Likewise.
6913         * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
6914
6915 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6916
6917         * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
6918         computation using the precision of the index type.
6919         * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
6920         (fold_array_ctor_reference): Do index computations in the index type.
6921
6922 2012-05-07  Georg-Johann Lay  <avr@gjlay.de>
6923
6924         * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
6925         down to plus_constant.
6926         (expand_epilogue): Ditto.
6927
6928 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6929
6930         * postreload.c (reload_cse_regs): Make static.
6931         * reload.h (reload_cse_regs): Remove prototype.
6932
6933 2012-05-07  Richard Henderson  <rth@redhat.com>
6934
6935         * config/alpha/alpha.md (clear_cache): New pattern.
6936
6937 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6938
6939         PR middle-end/53245
6940         * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
6941         is folded to a type boundary value, verify that the resulting case
6942         label is still a care range.
6943
6944 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
6945
6946         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
6947         only for TARGET_GENERIC, when not optimizing for size.
6948         (*ffs<mode>_1): Ditto.
6949
6950 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6951
6952         * tree-cfg.c (verify_gimple_switch): Tighten checks.
6953
6954 2012-05-07  Jakub Jelinek  <jakub@redhat.com>
6955
6956         PR tree-optimization/53239
6957         * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
6958         of DECL_BY_REFERENCE RESULT_DECL to nonnull.
6959
6960 2012-05-07  Richard Guenther  <rguenther@suse.de>
6961
6962         PR tree-optimization/53195
6963         * tree-inline.c (setup_one_parameter): Properly add referenced
6964         vars from the parameters new known value.
6965
6966 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6967
6968         * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
6969         (sched_branch_type): Remove.
6970         (m68k_sched_md_init_global): Don't allocate it.
6971         (m68k_sched_md_finish_global): Don't free it.
6972         * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
6973         * config/m68k/m68k.md: Set the type of insns using
6974         m68k_sched_branch_type to bcc directly.
6975
6976 2012-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6977
6978         * config/sol2.c (solaris_override_options): New function.
6979         * config/sol2-protos.h (solaris_override_options): Declare.
6980         * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
6981
6982 2012-05-07  Richard Guenther  <rguenther@suse.de>
6983
6984         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
6985         whether we failed to compute data dependences.
6986         (loop_prefetch_arrays): Fail if we failed.
6987
6988 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
6989             Paolo Bonzini  <bonzini@gnu.org>
6990
6991         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
6992         Emit bsf when optimizing for size.
6993         (*ffs<mode>_1): Ditto.
6994
6995 2012-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
6996
6997         PR target/53250
6998         * config/sh/sh.c (sh_rtx_costs): Handle SET.
6999
7000 2012-05-06  Uros Bizjak  <ubizjak@gmail.com>
7001
7002         PR target/53227
7003         * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
7004         (bswapdi2): Split from bswap<mode>2.  Use nonnimediate_operand
7005         predicate for operand 1.  Force operand 1 to register for TARGET_BSWAP.
7006         (bswapsi2): Ditto.
7007         (*bswapdi2_doubleword): New insn pattern.
7008         (*bswap<mode>2): Rename from *bswap<mode>2_1.
7009
7010 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
7011
7012         * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
7013         (mips_set_reg_reg_cost): Likewise.
7014         (mips_rtx_costs): Handle SET.
7015
7016 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
7017
7018         * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
7019         (compute_costs): Likewise for the zero extension.  Use set_rtx_cost
7020         to compute the cost of moves.  Set the mode of the target register.
7021
7022 2012-05-05  Richard Sandiford  <rdsandiford@googlemail.com>
7023
7024         * rtl.h (plus_constant, plus_constant_mode): Merge into a single
7025         plus_constant function.
7026         * explow.c (plus_constant, plus_constant_mode): Likewise.  Assert
7027         that the mode is sensible.
7028         (use_anchored_address, round_push, allocate_dynamic_stack_space)
7029         (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
7030         plus_constant.
7031
7032         * alias.c (canon_rtx): Likewise.
7033         (init_alias_analysis): Likewise.
7034         * builtins.c (expand_builtin_return_addr)
7035         (expand_builtin_setjmp_setup, expand_builtin_longjmp)
7036         (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
7037         (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
7038         (expand_builtin_stpcpy): Likewise.
7039         * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
7040         (compute_argument_addresses, internal_arg_pointer_based_exp)
7041         (expand_call, emit_library_call_value_1): Likewise.
7042         * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
7043         * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
7044         * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
7045         * cse.c (insert_const_anchor, find_reg_offset_for_const)
7046         (use_related_value, fold_rtx): Likewise.
7047         * cselib.c (cselib_subst_to_values): Likewise.
7048         * dse.c (record_store, check_mem_read_rtx): Likewise.
7049         * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
7050         * emit-rtl.c (adjust_address_1): Likewise.
7051         * except.c (sjlj_emit_function_enter)
7052         (expand_builtin_extract_return_addr)
7053         (expand_builtin_frob_return_addr): Likewise.
7054         * expmed.c (expand_divmod): Likewise.
7055         * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
7056         (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
7057         (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
7058         * function.c (assign_stack_local_1)
7059         (instantiate_virtual_regs_in_rtx): Likewise.
7060         * optabs.c (prepare_cmp_insn): Likewise.
7061         * recog.c (offsettable_address_addr_space_p): Likewise.
7062         * reload.c (find_reloads_address, form_sum)
7063         (find_reloads_subreg_address): Likewise.
7064         * reload1.c (init_reload, eliminate_regs_1)
7065         (eliminate_regs_in_insn): Likewise.
7066         * simplify-rtx.c (simplify_unary_operation_1)
7067         (simplify_binary_operation_1, simplify_plus_minus): Likewise.
7068         * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
7069         (vt_add_function_parameter): Likewise.
7070
7071         * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
7072         * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
7073         * config/alpha/alpha.c (alpha_legitimize_address_1)
7074         (get_unaligned_address, alpha_expand_unaligned_load)
7075         (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
7076         (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
7077         (alpha_expand_builtin_establish_vms_condition_handler)
7078         (alpha_setup_incoming_varargs, emit_frame_store_1)
7079         (alpha_expand_prologue, alpha_expand_epilogue)
7080         (alpha_use_linkage): Likewise.
7081         * config/alpha/alpha.md: Likewise.
7082
7083         * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
7084         (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
7085         (thumb_legitimize_address, arm_gen_load_multiple_1)
7086         (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
7087         (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
7088         (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
7089         (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
7090         (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
7091         (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
7092         (thumb_expand_movmemqi, arm_set_return_address)
7093         (thumb_set_return_address): Likewise.
7094         * config/arm/arm.md: Likewise.
7095
7096         * config/avr/avr.c (avr_incoming_return_addr_rtx)
7097         (avr_prologue_setup_frame, expand_epilogue)
7098         (avr_const_address_lo16): Likewise.
7099
7100         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
7101         * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
7102         (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
7103         (bfin_output_mi_thunk): Likewise.
7104
7105         * config/c6x/c6x.c (c6x_initialize_trampoline)
7106         (c6x_output_mi_thunk): Likewise.
7107
7108         * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
7109         * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
7110
7111         * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
7112         (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
7113         (cris_emit_movem_store, cris_trampoline_init): Likewise.
7114         * config/cris/cris.md: Likewise.
7115
7116         * config/darwin.c (machopic_indirect_data_reference)
7117         (machopic_legitimize_pic_address): Likewise.
7118
7119         * config/epiphany/epiphany.c (epiphany_emit_save_restore)
7120         (epiphany_expand_prologue, epiphany_expand_epilogue)
7121         (epiphany_trampoline_init): Likewise.
7122         * config/epiphany/epiphany.md: Likewise.
7123
7124         * config/fr30/fr30.c (fr30_move_double): Likewise.
7125
7126         * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
7127         (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
7128         (frv_index_memory, unspec_got_name, frv_find_base_term)
7129         (frv_output_dwarf_dtprel): Likewise.
7130
7131         * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
7132         (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
7133
7134         * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
7135         * config/i386/i386.c (setup_incoming_varargs_64)
7136         (setup_incoming_varargs_ms_64, choose_baseaddr)
7137         (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
7138         (ix86_emit_probe_stack_range, ix86_expand_prologue)
7139         (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
7140         (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
7141         (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
7142         (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
7143         (x86_output_mi_thunk): Likewise.
7144         * config/i386/i386.md: Likewise.
7145
7146         * config/ia64/ia64.c (ia64_expand_load_address)
7147         (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
7148         (do_spill, ia64_trampoline_init): Likewise.
7149
7150         * config/iq2000/iq2000.c (iq2000_va_start)
7151         (iq2000_emit_frame_related_store, iq2000_expand_prologue)
7152         (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
7153         (iq2000_print_operand, iq2000_legitimize_address): Likewise.
7154
7155         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7156
7157         * config/m32c/m32c.c (m32c_return_addr_rtx)
7158         (m32c_expand_insv): Likewise.
7159
7160         * config/m32r/m32r.c (m32r_setup_incoming_varargs)
7161         (m32r_legitimize_pic_address, m32r_print_operand)
7162         (m32r_print_operand_address): Likewise.
7163
7164         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
7165         * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
7166         (EH_RETURN_HANDLER_RTX): Likewise.
7167         * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
7168         (m68k_expand_epilogue, legitimize_pic_address)
7169         (m68k_output_mi_thunk): Likewise.
7170         * config/m68k/m68k.md: Likewise.
7171
7172         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7173         (mcore_expand_epilog): Likewise.
7174         * config/mcore/mcore.md: Likewise.
7175
7176         * config/mep/mep.c (mep_allocate_initial_value)
7177         (mep_expand_prologue, mep_expand_epilogue): Likewise.
7178
7179         * config/microblaze/microblaze.c (double_memory_operand)
7180         (microblaze_block_move_loop): Likewise.
7181
7182         * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
7183         (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
7184         (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
7185         (mips_expand_prologue, mips_epilogue_set_cfa)
7186         (mips_expand_epilogue): Likewise.
7187         * config/mips/mips.md: Likewise.
7188
7189         * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
7190         (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
7191
7192         * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
7193         (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
7194
7195         * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
7196         (EH_RETURN_HANDLER_RTX): Likewise.
7197         * config/moxie/moxie.c (moxie_static_chain): Likewise.
7198
7199         * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
7200         (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
7201         (pa_return_addr_rtx, hppa_builtin_saveregs)
7202         (pa_trampoline_init): Likewise.
7203         * config/pa/pa.md: Likewise.
7204
7205         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
7206
7207         * config/picochip/picochip.c (picochip_static_chain): Likewise.
7208
7209         * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
7210         * config/rs6000/rs6000.c (rs6000_legitimize_address)
7211         (setup_incoming_varargs, print_operand, rs6000_return_addr)
7212         (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
7213         (rs6000_emit_epilogue)
7214         (rs6000_machopic_legitimize_pic_address): Likewise.
7215
7216         * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7217
7218         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
7219         (DYNAMIC_CHAIN_ADDRESS): Likewise.
7220         * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
7221         (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
7222         (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
7223         (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
7224         (s390_emit_epilogue, s390_function_profiler): Likewise.
7225         * config/s390/s390.md: Likewise.
7226
7227         * config/score/score.c (score_add_offset, score_prologue): Likewise.
7228
7229         * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
7230         (sh_output_mi_thunk): Likewise.
7231         * config/sh/sh.md: Likewise.
7232
7233         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
7234         (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
7235         * config/sparc/sparc.c (sparc_legitimize_pic_address)
7236         (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
7237         (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
7238         (emit_and_preserve): Likewise.
7239         * config/sparc/sparc.md: Likewise.
7240
7241         * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7242         * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
7243         (spu_setup_incoming_varargs, ea_load_store_inline)
7244         (spu_expand_load): Likewise.
7245
7246         * config/stormy16/stormy16.c (xstormy16_expand_prologue)
7247         (combine_bnp): Likewise.
7248
7249         * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7250         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
7251         (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
7252
7253         * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7254         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
7255         (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
7256
7257         * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
7258         * config/v850/v850.md: Likewise.
7259
7260         * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
7261         (EH_RETURN_HANDLER_RTX): Likewise.
7262         * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
7263         * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
7264         (print_operand_address, vax_trampoline_init): Likewise.
7265
7266         * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
7267         (xtensa_function_value_regno_p): Likewise.
7268
7269 2012-05-04  Andrew Pinski  <apinski@cavium.com>
7270
7271         * expr.c (get_def_for_expr_class): New function.
7272         (convert_tree_comp_to_rtx): New function.
7273         (expand_cond_expr_using_cmove): New function.
7274         (expand_expr_real_2 <case COND_EXPR>): Call
7275         expand_cond_expr_using_cmove first and return if it succeeds.
7276         Remove the check for HAVE_conditional_move since we should have
7277         already converted it to a conditional move.
7278         * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
7279         modes of DImode for 32bits and TImode.
7280
7281 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
7282
7283         PR other/29442
7284         * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
7285         (print_md_ptr_loc, print_c_condition): Use them.
7286         * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
7287         * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
7288         attr_file, dfa_file, latency_file): New global variables.
7289         (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
7290         write_upcase, write_indent, write_length_unit_log, write_test_expr,
7291         write_attr_get, write_insn_cases, write_eligible_delay,
7292         write_const_num_delay_slots): Accept FILE pointer and toss it around.
7293         Update all callers.
7294         (write_header, open_outfile, handle_arg): New funcions.
7295         (make_automaton_attrs): Write prototypes as extern to the output
7296         files.
7297         (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
7298         names from the command line.  Open the output files and write out
7299         internal functions for DFA functions to dfa_file_name, insn latency
7300         functions to latency_file_name, and everything else to attr_file.
7301         * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
7302         (BACKEND): Build libbackend first.
7303         (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
7304         (.PRECIOUS): Likewise.
7305         (insn-dfatab.o): New rule.
7306         (insn-latencytab.o): New rule.
7307         (simple_rtl_generated_c): Do not include insn-attrtab.c.
7308         (s-attrtab): New rule.
7309
7310 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
7311
7312         * rtl.def (ATTR_FLAG): Remove probability indicating flags.
7313         * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
7314         ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
7315         * reorg.c (get_jump_flags): Do not set the removed flags.
7316
7317         * doc/md.texi (attr_flag): Update for abovementioned changes.
7318
7319 2012-05-04  Uros Bizjak  <ubizjak@gmail.com>
7320
7321         PR target/53228
7322         * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
7323         (TARGET_CMOV): Rename from TARGET_CMOVE.
7324         (TARGET_CMOVE): New define.
7325         * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
7326         Do not set TARGET_CMOVE here.
7327
7328 2012-05-04  Dodji Seketeli  <dodji@redhat.com>
7329
7330         Enable -Wunused-local-typedefs when -Wall or -Wunused is on
7331         * opts.c (finish_options): Activate -Wunused-local-typedefs if
7332         -Wunused is activated.
7333         * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
7334
7335 2012-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7336
7337         * config/s390/s390.md (*movmem_short, *clrmem_short)
7338         (*cmpmem_short): Move the mode check from the insn condition to
7339         the match_scratch.
7340
7341 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
7342
7343         PR tree-optimization/52633
7344         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
7345         vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
7346         (vect_recog_over_widening_pattern): Remove handling of code that was
7347         already detected as over-widening pattern.  Remove special handling
7348         of "unsigned" cases.  Instead, support general case of conversion
7349         of the shift result to another type.
7350
7351 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
7352
7353         * tree-vect-patterns.c (vect_single_imm_use): New function.
7354         (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
7355         (vect_recog_over_widening_pattern): Likewise.
7356         (vect_recog_widen_shift_pattern): Likewise.
7357
7358 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
7359
7360         * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
7361         (vect_handle_widen_op_by_const): Use it instead of open-coding test.
7362         (vect_recog_widen_mult_pattern): Likewise.
7363         (vect_operation_fits_smaller_type): Likewise.
7364         (vect_recog_over_widening_pattern): Likewise.
7365         (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
7366
7367 2012-05-04  Richard Guenther  <rguenther@suse.de>
7368
7369         PR lto/50602
7370         * lto-wrapper.c (merge_and_complain): Complain about mismatches
7371         of -freg-struct-return and -fpcc-struct-return.
7372         (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
7373         from the input file options and ignore those from the link
7374         command line.
7375
7376 2012-05-04  Richard Guenther  <rguenther@suse.de>
7377
7378         PR tree-optimization/53168
7379         * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
7380         memory reads when the result is a constant we can pun.
7381
7382 2012-05-04  Richard Guenther  <rguenther@suse.de>
7383
7384         * common.opt (flto-report): Do not mark as Optimization.
7385
7386 2012-05-04  Eric Botcazou  <ebotcazou@adacore.com>
7387
7388         PR target/48496
7389         * recog.c (constrain_operands): If extra constraints are present, also
7390         accept pseudo-registers with equivalent memory locations during reload.
7391
7392 2012-05-04  Olivier Hainque  <hainque@adacore.com>
7393
7394         * collect2.c (may_unlink_output_file): New global.
7395         (maybe_unlink): Honor it.
7396         * collect2.h: Add extern for it.
7397         * tlink.c (do_tlink): Set it to true if the link succeeded.
7398
7399 2012-05-04  Olivier Hainque  <hainque@adacore.com>
7400
7401         * gcc.c (eval_spec_function): Finalize/restore the current string
7402         obstack state as part of the context push/pop operations.
7403
7404 2012-05-04  Bin Cheng  <bin.cheng@arm.com>
7405
7406         PR rtl-optimization/52804
7407         * reload1.c (reload_reg_reaches_end_p): Check whether successor
7408         reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
7409         of current one with type RELOAD_FOR_INPADDR_ADDRESS.
7410         Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
7411         RELOAD_FOR_OUTADDR_ADDRESS.
7412
7413 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7414
7415         PR c++/24985
7416         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
7417         for macro expansion.
7418
7419 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7420
7421         * flags.h (flag_permissive): Do not declare.
7422         * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
7423         option specially.
7424         * toplev.c (flag_permissive): Do not define.
7425         * c-tree.h (system_header_p): Delete unused.
7426
7427 2012-05-03  David S. Miller  <davem@davemloft.net>
7428
7429         PR target/52684
7430         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
7431         MEM directly into a libcall, mark it's MEM_EXPR as addressable.
7432         (sparc_emit_float_lib_cmp): Likewise.
7433
7434 2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
7435
7436         PR target/53199
7437         * config/rs6000/rs6000.md (bswapdi splitters): If
7438         -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
7439         default) is used, generate an alternate sequence that does not
7440         depend on using indexed addressing.
7441
7442 2012-05-03  Jason Merrill  <jason@redhat.com>
7443
7444         * gengtype.c (write_types): Fix warning message.
7445         (write_local): Likewise.
7446
7447 2012-05-02  Jason Merrill  <jason@redhat.com>
7448
7449         * dwarf2out.c (struct external_ref, build_local_stub): New.
7450         (hash_external_ref, external_ref_eq, lookup_external_ref): New.
7451         (optimize_external_refs, optimize_external_refs_1): New.
7452         (change_AT_die_ref): New.
7453         (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
7454         (build_abbrev_table): Take the external refs hashtable.
7455         (output_comp_unit): Get it from optimize_external_refs and pass it in.
7456
7457 2012-05-03  Jan Hubicka  <jh@suse.cz>
7458
7459         PR middle-end/53093
7460         * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
7461
7462 2012-05-03  Jan Hubicka  <jh@suse.cz>
7463
7464         PR middle-end/53106
7465         * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
7466
7467 2012-05-03  Jason Merrill  <jason@redhat.com>
7468
7469         * dwarf2out.c (die_struct): Add comdat_type_p flag.  Use it instead of
7470         use_debug_types to discriminate the die_id union.
7471         (print_die, assign_symbol_names, copy_decls_walk): Likewise.
7472         (build_abbrev_table, output_die): Likewise.
7473         (prune_unused_types_walk_attribs): Likewise.
7474         (generate_type_signature, copy_declaration_context): Set it.
7475         (remove_child_or_replace_with_skeleton): Set it.
7476         (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
7477         check use_debug_types.
7478         (dwarf2out_finish): Do break_out_includes after .debug_types.
7479
7480 2012-05-03  Jason Merrill  <jason@redhat.com>
7481
7482         * dwarf2out.c (modified_type_die): Use scope_die_for.
7483         (gen_type_die_with_usage, dwarf2out_finish): Likewise.
7484         (uses_local_type_r, uses_local_type): New.
7485         (scope_die_for): Keep a type that uses a local type in local scope.
7486         Use get_context_die for namespace and type scope.
7487
7488 2012-05-03  Jason Merrill  <jason@redhat.com>
7489
7490         * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
7491         pc thunk.
7492         * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
7493         (dwarf2out_finish): Likewise.
7494
7495 2012-05-03  Martin Jambor  <mjambor@suse.cz>
7496
7497         * builtins.c (get_object_alignment_1): Return whether we can determine
7498         the alignment or conservatively assume byte alignment.  Return the
7499         alignment by reference.  Use get_pointer_alignment_1 for dereference
7500         alignment.
7501         (get_pointer_alignment_1): Return whether we can determine the
7502         alignment or conservatively assume byte alignment.  Return the
7503         alignment by reference.  Use get_ptr_info_alignment to get SSA name
7504         alignment.
7505         (get_object_alignment): Update call to get_object_alignment_1.
7506         (get_object_or_type_alignment): Likewise, fall back to type alignment
7507         only when it returned false.
7508         (get_pointer_alignment): Update call to get_pointer_alignment_1.
7509         * fold-const.c (get_pointer_modulus_and_residue): Update call to
7510         get_object_alignment_1.
7511         * ipa-prop.c (ipa_modify_call_arguments): Update call to
7512         get_pointer_alignment_1.
7513         * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
7514         of MEM_REF or TARGET_MEM_REF only when it returns false.
7515         * tree-ssa-ccp.c (get_value_from_alignment): Update call to
7516         get_object_alignment_1.
7517         (ccp_finalize): Use set_ptr_info_alignment.
7518         * tree.h (get_object_alignment_1): Update declaration.
7519         (get_pointer_alignment_1): Likewise.
7520         * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
7521         (dump_gimple_stmt): Likewise.
7522         * tree-flow.h (ptr_info_def): Updated comments of fields align and
7523         misalign.
7524         (get_ptr_info_alignment): Declared.
7525         (mark_ptr_info_alignment_unknown): Likewise.
7526         (set_ptr_info_alignment): Likewise.
7527         (adjust_ptr_info_misalignment): Likewise.
7528         * tree-ssa-address.c (copy_ref_info): Use new access functions to get
7529         and set alignment of SSA names.
7530         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
7531         mark_ptr_info_alignment_unknown.
7532         * tree-ssanames.c (get_ptr_info_alignment): New function.
7533         (mark_ptr_info_alignment_unknown): Likewise.
7534         (set_ptr_info_alignment): Likewise.
7535         (adjust_ptr_info_misalignment): Likewise.
7536         (get_ptr_info): Call mark_ptr_info_alignment_unknown.
7537         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7538         Likewise.
7539         (bump_vector_ptr): Likewise.
7540         * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
7541         (vectorizable_store): Likewise.
7542         (vectorizable_load): Likewise.
7543
7544 2012-05-03  Michael Matz  <matz@suse.de>
7545
7546         * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
7547         in front of basic_block_def.
7548         (struct basic_block_def): Make il.gimple the full struct, not a
7549         pointer.
7550         (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
7551
7552         * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
7553         * gimple-iterator.c (gimple_stmt_iterator): Don't special case
7554         NULL il.gimple, which can't happen anymore.
7555         * gimple.h (bb_seq): il.gimple can't be NULL.
7556         (bb_seq_add): Ditto.
7557         (set_bb_seq): Adjust.
7558         (gsi_start_bb, gsi_last_bb): Tidy.
7559         * lto-streamer-in.c (make_new_block): Don't zero members that
7560         are zeroed already, don't allocate a gimple_bb_info.
7561         * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
7562         (remove_bb): Clear all il.gimple members.
7563         (gimple_verify_flow_info): Adjust for flat il.gimple.
7564         * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
7565
7566         * coretypes.h (const_gimple_seq): Remove typedef.
7567         * gimple.h (gimple_seq_first): Take gimple_seq.
7568         (gimple_seq_first_stmt): Ditto.
7569         (gimple_seq_last): Ditto.
7570         (gimple_seq_last_stmt): Ditto.
7571         (gimple_seq_empty_p): Ditto.
7572
7573 2012-05-03  Richard Guenther  <rguenther@suse.de>
7574
7575         * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
7576         operations.
7577         (prune_clobbered_mems): Do it here.  Do not uselessly sort expressions.
7578         (compute_avail): Do not add possibly trapping operations to
7579         EXP_GEN if they might not be executed in the block.
7580
7581 2012-05-03  Uros Bizjak  <ubizjak@gmail.com>
7582
7583         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
7584
7585 2012-05-03  Steven Bosscher  <steven@gcc.gnu.org>
7586
7587         * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
7588         information as early as possible.  Update dominance info instead of
7589         discarding it.
7590
7591 2012-05-03  Richard Guenther  <rguenther@suse.de>
7592
7593         * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
7594         (union_contains_value): Remove.
7595         (vro_valid_in_sets): Likewise.
7596         (op_valid_in_sets): New function.
7597         (valid_in_sets): Use op_valid_in_sets.
7598         (insert_into_preds_of_block): Move dumping ...
7599         (do_regular_insertion): ... here.
7600         (do_partial_partial_insertion): ... and here.  Dump that
7601         we've found a partial partial redundancy.
7602         (insert): Dump the current insert iteration.
7603
7604 2012-05-03  Jakub Jelinek  <jakub@redhat.com>
7605
7606         PR plugins/53126
7607         * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
7608         append program name to it and pass that as first argument
7609         to make_relative_prefix.  Always pass standard_libexec_prefix
7610         as last argument to make_relative_prefix.  If
7611         make_relative_prefix returns NULL, fall back to
7612         standard_libexec_prefix.
7613
7614         PR debug/53174
7615         * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
7616         removed.
7617
7618         PR target/53187
7619         * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
7620         mode, return that mode.
7621
7622         PR target/53194
7623         * config/i386/i386-c.c (ix86_target_macros_internal): Don't
7624         define __ATOMIC_HLE_* macros here.
7625         (ix86_target_macros): But here, using cpp_define_formatted.
7626
7627 2012-05-03  Richard Guenther  <rguenther@suse.de>
7628
7629         PR tree-optimization/53144
7630         * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
7631         Rename to ...
7632         (vn_reference_lookup_or_insert_for_pieces): ... this.  Properly deal
7633         with SSA name values.
7634         (vn_reference_lookup_3): Adjust callers.
7635
7636 2012-05-03  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
7637
7638         * config/i386/driver-i386.c (host_detect_local_cpu): Reset
7639         has_fma4 for AMD processors with both fma3 and fma4 support.
7640
7641 2012-05-03  Kirill Yukhin  <kirill.yukhin@intel.com>
7642
7643         PR target/53201
7644         * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
7645         "-mno-hle".
7646
7647 2012-05-03  Michael Matz  <matz@suse.de>
7648
7649         PR bootstrap/53197
7650         * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
7651         (dse_enter_block): Properly iterate the whole sequence even
7652         if the last statement was removed.
7653
7654 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
7655
7656         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
7657         unset flag_jump_tables.
7658         * stmt.c (expand_case): Remove special flag_pic case conditional
7659         on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
7660
7661 2012-05-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
7662
7663         * common/config/s390/s390-common.c (s390_option_optimization_table):
7664         Enable -fsched-pressure using -fsched-pressure-algorithm=model by
7665         default when optimizing.
7666
7667 2012-05-02  Martin Jambor  <mjambor@suse.cz>
7668
7669         PR lto/52605
7670         * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
7671         of a variable when the contect is a function.
7672
7673 2012-05-02  Michael Matz  <matz@suse.de>
7674
7675         * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
7676         * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
7677         (const_gimple_seq_node): Remove.
7678         (gimple_seq_node): Typedef as gimple.
7679         (struct gimple_statement_base): Add next and prev members,
7680         adjust all WORD markers in using structs.
7681         (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
7682         (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
7683         gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
7684         gimple are the same.
7685         (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
7686         gimple_seq, adjust.
7687         (gimple_init_singleton): New function.
7688         (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
7689         (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
7690         (gsi_stmt): Adjust.
7691         (gsi_stmt_ptr): Remove.
7692         (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
7693
7694         * gimple-iterator.c (update_bb_for_stmts): Take last parameter
7695         again, adjust for above changes.
7696         (update_call_edge_frequencies): Adjust for above changes.
7697         (gsi_insert_seq_nodes_before): Rewrite for new data structure.
7698         (gsi_insert_seq_nodes_after): Ditto.
7699         (gsi_split_seq_after): Ditto.
7700         (gsi_set_stmt): Ditto.
7701         (gsi_split_seq_before): Ditto.
7702         (gsi_remove): Ditto.
7703         (gsi_insert_seq_before_without_update): Don't free sequence.
7704         (gsi_insert_seq_after_without_update): Ditto.
7705         (gsi_replace): Assert some more invariants.
7706         (gsi_insert_before_without_update, gsi_insert_after_without_update):
7707         Tidy.
7708         (gsi_for_stmt): Don't search for stmt.
7709         (gsi_insert_on_edge_immediate): Tidy.
7710
7711         * gimple.c (gimple_alloc_k): Remove "sequences".
7712         (gimple_seq_cache): Remove.
7713         (gimple_alloc_stat): Make stmt a singleton sequence.
7714         (gimple_seq_alloc, gimple_seq_free): Remove.
7715         (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
7716         (gimple_copy): Ditto.
7717         * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
7718         create iterator from correct sequence.
7719         * tree-phinodes.c (make_phi_node): Make stmt a singleton.
7720
7721 2012-05-02  Michael Matz  <matz@suse.de>
7722
7723         * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
7724         gimple_seq.
7725         (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
7726         sequence, lazily allocate it.
7727         (bb_seq_addr): New function.
7728         (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
7729         (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
7730         (gsi_none): New function.
7731         (gsi_start_bb): Adjust.
7732         (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
7733         (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
7734         (gsi_last_bb): Adjust.
7735         (gsi_seq): Adjust.
7736         * tree-flow-inline.h (phi_nodes_ptr): New function.
7737
7738         * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
7739         datastructure and interface change.
7740         (gsi_insert_seq_before_without_update): Ditto.
7741         (gsi_insert_seq_nodes_after): Ditto.
7742         (gsi_insert_seq_after_without_update): Ditto.
7743         (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
7744         (gsi_split_seq_before): Ditto.
7745         (gsi_start_phis): Adjust.
7746         * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
7747         (vect_transform_loop): Ditto.
7748         * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
7749         gimple_seq_copy): Don't use gimple_seq_alloc.
7750         * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
7751         (gimplify_seq_add_seq): Ditto.
7752         * lto-streamer-in.c (make_new_block): Ditto.
7753         * tree-cfg.c (create_bb): Ditto.
7754         * tree-sra.c (initialize_parameter_reductions): Ditto.
7755
7756 2012-05-02  Michael Matz  <matz@suse.de>
7757
7758         * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
7759         gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
7760         gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
7761         set_bb_seq): Move down to after gimple_statement_d definition.
7762
7763 2012-05-02  Michael Matz  <matz@suse.de>
7764
7765         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
7766         gsi_replace_with_seq, instead of inserting itself.
7767         * gimple-iterator.c (gsi_replace_with_seq): New function.
7768         * tree-ssa-forwprop.c (forward_propagate_comparison): Take
7769         iterator instead of statement, advance it.
7770         (ssa_forward_propagate_and_combine): Adjust call to above.
7771
7772 2012-05-02  Michael Matz  <matz@suse.de>
7773
7774         * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
7775         gimple_seq_alloc.
7776         * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
7777         * tree-nested.c (walk_gimple_omp_for): Ditto.
7778         * trans-mem.c (lower_transaction): Ditto.
7779         * tree-eh.c (do_return_redirection): Ditto.
7780         (do_goto_redirection): Ditto.
7781         (lower_try_finally_switch): Ditto.
7782         * gimplify.c (gimplify_stmt): Ditto.
7783         (gimplify_scan_omp_clauses): Ditto.
7784         (gimplify_omp_for): Ditto.
7785         (gimplify_function_tree): Ditto.
7786         * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
7787         * tree-mudflap.c (mf_decl_cache_locals): Ditto.
7788         (mf_build_check_statement_for): Ditto.
7789         (mx_register_decls): Ditto.
7790         * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
7791         and don't use itertors to append.
7792         (insert_stmts): Ditto.
7793         (insert_out_of_ssa_copy): Ditto.
7794         (insert_out_of_ssa_copy_on_edge): Ditto.
7795
7796 2012-05-02  Michael Matz  <matz@suse.de>
7797
7798         * gimple.h (gimple_bind_body_ptr): New function.
7799         (gimple_bind_body): Use it.
7800         (gimple_catch_handler): Use gimple_catch_handler_ptr.
7801         (gimple_eh_filter_failure_ptr): New function.
7802         (gimple_eh_filter_failure): Use it.
7803         (gimple_eh_else_n_body_ptr): New function.
7804         (gimple_eh_else_n_body): Use it.
7805         (gimple_eh_else_e_body_ptr): New function.
7806         (gimple_eh_else_e_body): Use it.
7807         (gimple_try_eval_ptr): New function.
7808         (gimple_try_eval): Use it.
7809         (gimple_try_cleanup_ptr): New function.
7810         (gimple_try_cleanup): Use it.
7811         (gimple_wce_cleanup_ptr): New function.
7812         (gimple_wce_cleanup): Use it.
7813         (gimple_omp_body_ptr): New function.
7814         (gimple_omp_body): Use it.
7815         (gimple_omp_for_pre_body_ptr): New function.
7816         (gimple_omp_for_pre_body): Use it.
7817         (gimple_transaction_body_ptr): New function.
7818         (gimple_transaction_body): Use it.
7819         (gsi_split_seq_before): Adjust to return nothing and take pointer
7820         to sequence.
7821         (gsi_set_stmt): Declare.
7822         (gsi_replace_with_seq): Declare.
7823         (walk_gimple_seq_mod): Declare.
7824         * function.h (struct function <gimple_body>): Use typedef gimple_seq.
7825
7826         * gimple-iterator.c (gsi_set_stmt): New function.
7827         (gsi_split_seq_before): Return new sequence via pointer argument.
7828         (gsi_replace): Use gsi_set_stmt.
7829
7830         * tree-ssa-loop-im.c (move_computations_stmt): First remove
7831         then insert stmt.
7832         * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
7833         * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
7834         return new stmt.
7835         (reserve_phi_args_for_new_edge): Change call to above,
7836         use gsi_set_stmt.
7837
7838         * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
7839         (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
7840         iterators.  Adjust call to lower_omp.
7841         (lower_lastprivate_clauses): Adjust call to lower_omp.
7842         (lower_reduction_clauses): Ditto.
7843         (expand_omp_taskreg): Nullify non-cfg body of child_fn.
7844         (lower_omp_sections): Don't explicitely count sequence length,
7845         nullify lowered bodies earlier, ensure stmts are part of only
7846         one sequence, adjust call to lower_omp.
7847         (lower_omp_single): Ensure stmts are part of only one sequence,
7848         adjust call to lower_omp.
7849         (lower_omp_master): Ditto.
7850         (lower_omp_ordered): Ditto.
7851         (lower_omp_critical): Ditto.
7852         (lower_omp_for): Ditto.
7853         (lower_omp_taskreg): Ditto, tidy.
7854         (lower_omp_1): Adjust calls to lower_omp.
7855         (execute_lower_omp): Ditto.
7856         (lower_omp): Adjust to take pointer to sequence.
7857         (diagnose_sb_2): Use walk_gimple_seq_mod.
7858         (diagnose_omp_structured_block_errors): Ditto and set possibly
7859         changed function body.
7860         * gimple-low.c (lower_function_body): Set function body after
7861         it stabilizes.
7862         (lower_sequence): Adjust to take pointer to sequence.
7863         (lower_omp_directive): Ensure stmt isn't put twice into the
7864         sequence, adjust call to lower_sequence.
7865         (lower_stmt): Adjust calls to lower_sequence.
7866         (lower_gimple_bind): Ditto.
7867         (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
7868         * tree-nested.c (walk_body): Take pointer to sequence, use
7869         walk_gimple_seq_mod.
7870         (walk_function): Adjust call to walk_body, set possibly changed body.
7871         (walk_gimple_omp_for): Adjust calls to walk_body.
7872         (convert_nonlocal_omp_clauses): Ditto.
7873         (convert_nonlocal_reference_stmt): Ditto.
7874         (convert_local_omp_clauses): Ditto.
7875         (convert_local_reference_stmt): Ditto.
7876         (convert_tramp_reference_stmt): Ditto.
7877         (convert_gimple_call): Ditto.
7878         (convert_nl_goto_reference): Use local iterator copy.
7879         * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
7880         but taking pointer to sequence, ensure gsi_start is called with
7881         callers lvalue.
7882         (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
7883         asserting that the sequence head didn't change.
7884         (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
7885         walk_gimple_seq_mod.
7886         * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
7887         (execute_lower_tm): Ditto, and set possibly changed body.
7888         * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
7889         call gsi_start with that lvalue.
7890         (replace_goto_queue_stmt_list): Ditto.
7891         (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
7892         (replace_goto_queue): Ditto.
7893         (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
7894         (lower_try_finally_onedest): Ditto.
7895         (lower_try_finally_copy): Ditto.
7896         (lower_try_finally_switch): Ditto.
7897         (lower_try_finally): Ditto.
7898         (lower_eh_filter): Ditto.
7899         (lower_eh_must_not_throw): Ditto.
7900         (lower_cleanup): Ditto.
7901         (lower_eh_constructs_2): Ditto.
7902         (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
7903         (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
7904         set possibly changed body.
7905         (optimize_double_finally): Call gsi_start with lvalue.
7906
7907         * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
7908         (gimple_split_block): Ditto.
7909         (gimple_merge_blocks): Use gsi_start_phis.
7910         (move_stmt_r): Use walk_gimple_seq_mod.
7911         * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
7912         * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
7913         (rebuild_cgraph_edges): Ditto.
7914         (cgraph_rebuild_references): Ditto.
7915         * ipa-prop.c (ipa_analyze_params_uses): Ditto.
7916         * tree-inline.c (copy_phis_for_bb): Ditto.
7917         * tree-ssa-dce.c: Ditto.
7918
7919         * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
7920
7921 2012-05-02  Kirill Yukhin  <kirill.yukhin@intel.com>
7922             Andi Kleen <ak@linux.intel.com>
7923
7924         * coretypes.h (MEMMODEL_MASK): New.
7925         * builtins.c (get_memmodel): Add val. Call target.memmodel_check
7926         and return new variable.
7927         (expand_builtin_atomic_exchange):  Mask memmodel values.
7928         (expand_builtin_atomic_compare_exchange): Ditto.
7929         (expand_builtin_atomic_load): Ditto.
7930         (expand_builtin_atomic_store): Ditto.
7931         (expand_builtin_atomic_clear): Ditto.
7932         * doc/extend.texi: Mention port-dependent memory model flags.
7933         * config/i386/cpuid.h (bit_HLE): New.
7934         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7935         HLE support.
7936         * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
7937         * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
7938         (ix86_target_string)<-mhle>: New.
7939         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
7940         * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
7941         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
7942         (ix86_option_override_internal) <PTA_HLE>: New switch, set it
7943         enabled for generic, generic64 and core-avx2.
7944         (ix86_print_operand): Generate HLE lock prefixes.
7945         (ix86_memmodel_check): New.
7946         (TARGET_MEMMODEL_CHECK): Ditto.
7947         * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
7948         (IX86_HLE_ACQUIRE): Ditto.
7949         (IX86_HLE_RELEASE): Ditto.
7950         * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
7951         * config/i386/i386.opt (mhle): Ditto.
7952         * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
7953         success model to instruction emitter.
7954         (atomic_fetch_add<mode>): Ditto.
7955         (atomic_exchange<mode>): Ditto.
7956         (atomic_add<mode>): Ditto.
7957         (atomic_sub<mode>): Ditto.
7958         (atomic_<code><mode>): Ditto.
7959         (*atomic_compare_and_swap_doubledi_pic): Ditto.
7960         (atomic_compare_and_swap_single<mode>): Define and use argument
7961         for success model.
7962         (atomic_compare_and_swap_double<mode>): Ditto.
7963         * configure.ac: Check if assembler support HLE prefixes.
7964         * configure: Regenerate.
7965         * config.in: Ditto.
7966
7967 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
7968
7969         PR middle-end/53153
7970         * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
7971         split out from ...
7972         (gimplify_switch_expr): ... here.
7973         * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
7974         * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
7975         to clean up case labels with values outside the index type range.
7976         (simplify_gimple_switch): Call it if something changed.
7977         Remove strange and unnecessary assert.
7978
7979 2012-05-02  Richard Guenther  <rguenther@suse.de>
7980
7981         * fold-const.c (div_if_zero_remainder): sizetypes no longer
7982         sign-extend.
7983         (int_const_binop_1): New worker for int_const_binop with
7984         overflowable parameter.  Pass it through to force_fit_type_double.
7985         (int_const_binop): Wrap around int_const_binop_1 with overflowable
7986         equal to one.
7987         (size_binop_loc): Call int_const_binop_1 with overflowable equal
7988         to minus one, forcing overflow detection for even unsigned types.
7989         (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
7990         (fold_binary_loc): Call try_move_mult_to_index with signed offset.
7991         * stor-layout.c (initialize_sizetypes): sizetypes no longer
7992         sign-extend.
7993         (layout_type): For zero-sized arrays ignore overflow on the
7994         size calculations.
7995         * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
7996         (bit_value_binop_1): Likewise.
7997         * tree.c (double_int_to_tree): Likewise.
7998         (double_int_fits_to_tree_p): Likewise.
7999         (force_fit_type_double): Likewise.
8000         (host_integerp): Likewise.
8001         (int_fits_type_p): Likewise.
8002         * varasm.c (output_constructor_regular_field): Sign-extend the
8003         field-offset to cater for negative offsets produced by the Ada
8004         frontend.
8005         * omp-low.c (extract_omp_for_data): Convert the loop step to
8006         signed for pointer adjustments.
8007
8008 2012-05-02  Richard Guenther  <rguenther@suse.de>
8009
8010         * tree.c (valid_constant_size_p): New function.
8011         * tree.h (valid_constant_size_p): Declare.
8012         * cfgexpand.c (expand_one_var): Adjust check for too large
8013         variables by using valid_constant_size_p.
8014         * varasm.c (assemble_variable): Likewise.
8015
8016         * c-decl.c (grokdeclarator): Properly check for sizes that
8017         cover more than half of the address-space.
8018
8019 2012-05-02  Jakub Jelinek  <jakub@redhat.com>
8020
8021         PR tree-optimization/53163
8022         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
8023         return value from compute_all_dependences.
8024
8025         PR rtl-optimization/53160
8026         * ree.c (combine_reaching_defs): Handle the case where cand->insn
8027         has been modified by ree pass already.
8028
8029 2012-05-01  Ian Lance Taylor  <iant@google.com>
8030
8031         PR c/37303
8032         * c-decl.c (build_compound_literal): Make the decl readonly if it
8033         an array of a readonly type.
8034         * gimplify.c (gimplify_compound_literal_expr): Add fallback
8035         parameter.  Change all callers.  If the decl is not addressable
8036         and is not an l-value, make it readonly.
8037
8038 2012-05-01  Bernd Schmidt  <bernds@codesourcery.com>
8039
8040         * ira.c (allocated_reg_info_size): New static variable.
8041         (expand_reg_info): Manage it. Call
8042         setup_preferred_alternate_classes_for_new_pseudos.
8043         (ira): Don't do it here.  Remove local allocated_reg_info_size,
8044         set the global before calling find_moveable_pseudos.
8045         (find_moveable_pseudos): Call expand_reg_info rather than
8046         resize_reg_info.
8047
8048 2012-05-01  Richard Henderson  <rth@redhat.com>
8049
8050         * common.opt (fsync-libcalls): New.
8051         * doc/invoke.texi: Document it.
8052         * optabs.c (init_sync_libfuncs): Honor it.
8053
8054 2012-05-01  Kenneth Zadeck  <zadeck@naturalbridge.com>
8055             Richard Sandiford  <r.sandiford@uk.ibm.com>
8056
8057         PR rtl-optimization/52543
8058         * Makefile.in (lower-subreg.o, target-globals.o): Depend on
8059         lower-subreg.h.
8060         * lower-subreg.h: New file.
8061         * target-globals.h (this_target_lower_subreg): Declare.
8062         (target_globals): Add lower_subreg;
8063         (restore_target_globals): Restore this_target_lower_subreg.
8064         * target-globals.c: Include it.
8065         (default_target_globals): Add default_target_lower_subreg.
8066         (save_target_globals): Initialize target_lower_subreg.
8067         * rtl.h (init_lower_subreg): Added declaration.
8068         * toplev.c (backend_init_target): Call initializer for lower-subreg
8069         pass.
8070         * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
8071         (default_target_lower_subreg): New variable.
8072         (this_target_lower_subreg): Likewise.
8073         (twice_word_mode, choices): New macros.
8074         (shift_cost, compute_splitting_shift, compute_costs)
8075         (init_lower_subreg): New functions.
8076         (resolve_simple_move): Add speed_p argument.  Check choices.
8077         (find_pseudo_copy): Don't check the mode size here.
8078         (resolve_simple_move): Assert the mode size.
8079         (find_decomposable_shift_zext): Add speed_p argument and return
8080         a bool.  Check choices.
8081         (resolve_shift_zext): Add comment.
8082         (dump_shift_choices, dump_choices): New functions.
8083         (decompose_multiword_subregs): Dump list of profitable
8084         transformations.  Add code to skip non profitable transformations.
8085         Update calls to simple_move and find_decomposable_shift_zext.
8086
8087 2012-05-01  Ian Bolton  <ian.bolton@arm.com>
8088             Sameera Deshpande  <sameera.deshpande@arm.com>
8089             Greta Yorsh  <greta.yorsh@arm.com>
8090
8091         * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
8092         (thumb1_unexpanded_epilogue): ...this.
8093         * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
8094         (thumb1_unexpanded_epilogue): ...this.
8095         * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
8096         (thumb1_unexpanded_epilogue): ...this.
8097
8098 2012-05-01  Richard Earnshaw  <rearnsha@arm.com>
8099
8100         * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
8101         comparing enumeration values.  Update comments.
8102
8103 2012-05-01  Alan Modra  <amodra@gmail.com>
8104
8105         PR target/53038
8106         * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
8107         load_cr_save, add_crlr_cfa_restore): New functions.
8108         (rs6000_restore_saved_cr): Rename to..
8109         (restore_saved_cr): ..this.  Add cfa_restore notes for cr.
8110         (rs6000_emit_epilogue): Use new functions.  Adjust condition
8111         for emitting lr and cr cfa_restore.  Emit cfa_restores for fp
8112         regs when using out-of-line restore only when shrink wrapping.
8113
8114 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
8115
8116         PR middle-end/53136
8117         * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
8118         calls to cgraph_node_name in xstrdup.
8119         (ipa_make_edge_direct_to_target): Ditto.
8120         * cgraph.c (dump_cgraph_node): Ditto.
8121         * tree-sra.c (convert_callers_for_node): Ditto.
8122         * lto-symtab.c (lto_cgraph_replace_node): Ditto.
8123         * ipa-cp.c (perhaps_add_new_callers): Ditto.
8124         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
8125         (cgraph_materialize_all_clones): Ditto.
8126         * ipa-inline.c (report_inline_failed_reason): Ditto.
8127         (want_early_inline_function_p): Ditto.
8128         (edge_badness): Ditto.
8129         (update_edge_key): Ditto.
8130         (flatten_function): Ditto.
8131         (ipa_inline): Ditto.
8132         (inline_always_inline_functions): Ditto.
8133         (early_inline_small_functions): Ditto.
8134
8135 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
8136
8137         PR target/53141
8138         * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
8139         constraints 0 and 1.
8140
8141 012-04-30  Jan Hubicka  <jh@suse.cz>
8142
8143         * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
8144         (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
8145         (cgraph_add_to_same_comdat_group): Remove.
8146         (cgraph_add_asm_node): Move to cgraphunit.c.
8147         (cgraph_make_decl_local): Move to symtab.c
8148         (cgraph_make_node_local_1): Update.
8149         (cgraph_can_remove_if_no_direct_calls_and): Update.
8150         (used_from_object_file_p): Update.
8151         (resolution_used_from_other_file_p): Move to symtab.c
8152         (cgraph_used_from_object_file_p): move to symtab.c
8153         (verify_cgraph_node): Verify same comdat groups.
8154         * cgraph.h (cgraph_asm_node): Rename to ...
8155         (asm_node): ... this one.
8156         (cgraph_asm_nodes): Rename to ...
8157         (asm_nodes): ... this one.
8158         (symtab_add_to_same_comdat_group): New function.
8159         (symtab_dissolve_same_comdat_group_list): New function.
8160         (symtab_used_from_object_file_p): Declare.
8161         (symtab_make_decl_local): Declare.
8162         (cgraph_add_to_same_comdat_group): Remove.
8163         (cgraph_add_asm_node): Remove.
8164         (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
8165         Remove.
8166         (cgraph_finalize_compilation_unit): Rename to ...
8167         (finalize_compilation_unit): ... this one.
8168         (cgraph_optimize): Rename to ....
8169         (compile): ... this one.
8170         (add_asm_node): Declare.
8171         (fixup_same_cpp_alias_visibility): Declare.
8172         (cgraph_make_decl_local): Remove.
8173         (varpool_assemble_pending_decls): Rename to ...
8174         (varpool_output_variables): ... this one.
8175         (varpool_remove_unreferenced_decls): Remove.
8176         * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
8177         (preserve_function_body_p): Make static.
8178         * toplev.c (compile_file): Update comments; update.
8179         * cgraphunit.c: Update comments.
8180         (cgraph_expand_all_functions): Rename to ...
8181         (expand_all_functions): ... this one; update.
8182         (cgraph_mark_functions_to_output): Rename to ...
8183         (mark_functions_to_output): ... this one; cleanup.
8184         (cgraph_output_pending_asms): Remove prototype.
8185         (asm_nodes, asm_last_node): New static vars.
8186         (cgraph_process_new_functions): Update.
8187         (cgraph_reset_node): Cleanup; add comment.
8188         (cgraph_add_new_function): Update.
8189         (cgraph_output_pending_asms): Rename to ...
8190         (output_asm_statements): ... this one.
8191         (add_asm_node): New function.
8192         (fixup_same_cpp_alias_visibility): New function based on code
8193         in cgraph_analyze_function.
8194         (cgraph_analyze_function): Use it.
8195         (cgraph_order_sort): Update.
8196         (cgraph_output_in_order): Update.
8197         (cgraph_function_versioning): Update.
8198         (cgraph_optimize): Rename to ...
8199         (compile): ... this one; initialize streamer hooks here.
8200         (cgraph_finalize_compilation_unit): Rename to ...
8201         (finalize_compilation_unit): ... this one; do not initialize streamer
8202         hook here.
8203         * lto-streamer-out.c (lto_output_toplevel_asms): Update.
8204         * dwarf2out.c: Update ocmment.
8205         * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
8206         * method.c (use_thunk): Likewise.
8207         * semantics.c (maybe_add_lambda_conv_op): Likewise.
8208         * decl2.c (maybe_emit_vtables): Likewise.
8209         (cp_write_global_declarations): Use finalize_compilation_unit.
8210         * parser.c (cp_parser_asm_definition): Use add_asm_node.
8211         * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
8212         * c-decl.c (c_write_global_declarations): Use
8213         finalize_compilation_unit.
8214         * langhooks.c (write_global_declarations): Update.
8215         * ipa.c (cgraph_externally_visible_p): Update.
8216         (dissolve_same_comdat_group_list): Remove.
8217         (function_and_variable_visibility): Update.
8218         * symtab.c: Inlcude lto-streamer.h and rtl.h
8219         (ld_plugin_symbol_resolution_names): New.
8220         (symtab_add_to_same_comdat_group): New.
8221         (symtab_dissolve_same_comdat_group_list): New.
8222         (resolution_used_from_other_file_p): Move here from cgraph.c
8223         (symtab_used_from_object_file_p): New.
8224         (symtab_make_decl_local): New.
8225         * passes.c (register_pass): Update comments.
8226         * c-parser.c (c_parser_asm_definition): Update.
8227         * varpool.c (varpool_analyze_node): Use
8228         fixup_same_cpp_alias_visibility.
8229         (varpool_remove_unreferenced_decls): Make static.
8230         (varpool_assemble_pending_decls): Rename to ...
8231         (varpool_output_variables): ... this one; call
8232         varpool_remove_unreferenced_decls.
8233         (varpool_used_from_object_file_p): Remove.
8234
8235 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
8236
8237         PR c++/51033
8238         * c-typeck.c (build_array_ref): Call
8239         convert_vector_to_pointer_for_subscript.
8240         * doc/extend.texi (Vector Extensions): Subscripting not just for C.
8241
8242 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
8243
8244         * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
8245         to compile-time "mode == <MODE>mode" checks.
8246         (and splitter): Ditto.
8247
8248 2012-04-30  Richard Henderson  <rth@redhat.com>
8249
8250         * config/arm/arm.md (UNSPEC_LL): New.
8251         * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
8252         (arm_load_exclusivedi): Use %H0.
8253
8254 2012-04-30  Jason Merrill  <jason@redhat.com>
8255
8256         * dwarf2out.c (comdat_symbol_id): Add const.
8257         (union die_symbol_or_type_node): Add const to die_symbol.
8258         (output_die_symbol, output_die, output_comp_unit): Adjust.
8259
8260 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
8261
8262         * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
8263         * config/arm/neon.md (negdi2_neon): New insn.
8264         Also add splitters for core and NEON registers.
8265
8266 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
8267
8268         * config/arm/arm.c (neon_valid_immediate): Allow const_int.
8269         (arm_print_operand): Add 'x' format.
8270         * config/arm/constraints.md (Dn): Allow const_int.
8271         * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
8272         Use 'x' format to print constants.
8273         * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
8274         * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
8275         is enabled.
8276         (movdi_vfp_cortexa8): Likewise.
8277
8278 2012-04-30  Ian Bolton  <ian.bolton@arm.com>
8279             Sameera Deshpande  <sameera.deshpande@arm.com>
8280             Greta Yorsh  <greta.yorsh@arm.com>
8281
8282         * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
8283         * config/arm/arm.c (ldm_stm_operation_p): New function.
8284         * config/arm/predicates.md (load_multiple_operation): Update predicate.
8285         (store_multiple_operation): Likewise.
8286
8287         * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
8288         * config/arm/arm.c (ldm_stm_operation_p): New parameters.
8289         * config/arm/predicates.md (load_multiple_operation): Add arguments.
8290         (store_multiple_operation): Likewise.
8291
8292 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
8293
8294         * config/i386/i386.md (and<mode>3): Expand masking operations with
8295         0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
8296         (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
8297
8298 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
8299
8300         Add -Wvarargs option
8301         * builtins.c (fold_builtin_next_arg):  Use OPT_Wvarargs as an
8302         argument for the various warning_at calls.
8303         * docs/invoke.texi: Update the documentation.
8304
8305 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
8306
8307         Switch -ftrack-macro-expansion=2 on by default.
8308         * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
8309         by default.
8310
8311         Fix va_start related location
8312         * builtins.c (fold_builtin_next_arg): Unwinds to the first
8313         location in real source code.
8314
8315         Make conversion warnings work on NULL with -ftrack-macro-expansion
8316         * input.h (expansion_point_location_if_in_system_header): Declare
8317         new function.
8318         * input.c (expansion_point_location_if_in_system_header): Define it.
8319
8320         Fix -Wuninitialized for -ftrack-macro-expansion
8321         * tree-ssa.c (warn_uninit): Use the spelling location of the variable
8322         declaration.  Use linemap_location_before_p for source locations.
8323
8324         Strip "<built-in>" loc from displayed expansion context
8325         * input.c (expand_location_1): When expanding to spelling location
8326         in a context of a macro expansion, skip reserved system header
8327         locations.  Update comments.  * tree-diagnostic.c
8328         (maybe_unwind_expanded_macro_loc): Likewise.
8329
8330         Make expand_location resolve to locus in main source file
8331         * input.c (expand_location_1): New.  Takes a parameter to choose
8332         whether to resolve the location to spelling or expansion point.
8333         Was factorized from ...
8334         (expand_location): ... here.
8335         (expand_location_to_spelling_point): New.  Implemented in terms of
8336         expand_location_1.
8337         * diagnostic.c (diagnostic_build_prefix): Use the new
8338         expand_location_to_spelling_point instead of expand_location.
8339
8340         Fix PCH crash on GTYed pointer-to-scalar field of a struct
8341         * gengtype.c (write_types_process_field): Force second argument of
8342         the call to the PCH object hierarchy walker to be 'x'.
8343
8344 2012-04-30  Eric Botcazou  <ebotcazou@adacore.com>
8345
8346         * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
8347         predicate to discriminate types.
8348
8349 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8350
8351         * doc/invoke.texi (Wmissing-format-attribute): Document as an
8352         alias of Wsuggest-attribute=format.
8353         * c-typeck.c (convert_for_assignment): Replace
8354         Wmissing-format-attribute with Wsuggest-attribute=format.
8355         (digest_init): Likewise.
8356
8357 2012-04-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8358
8359         * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
8360         * common.opt (Wmissing-noreturn): Alias of
8361         -Wsuggest-attribute=noreturn.
8362
8363 2012-04-29  Hans-Peter Nilsson  <hp@axis.com>
8364
8365         PR target/53156
8366         * config/cris/cris.md (andqu): New peephole2.
8367         (andu): Tweak head comment.
8368
8369 2012-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8370             Steven Bosscher  <steven@gcc.gnu.org>
8371             Maxim Kuvyrkov  <maxim@codesourcery.com>
8372
8373         PR tree-optimization/38785
8374         * common.opt (ftree-partial-pre): New option.
8375         * doc/invoke.texi: Document it.
8376         * opts.c (default_options_table): Initialize flag_tree_partial_pre.
8377         * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
8378         benefit speed path.
8379         (execute_pre): Use flag_tree_partial_pre.
8380
8381 2012-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8382
8383         PR target/52999
8384         * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
8385         in constant pool.
8386
8387 2012-04-27  Ollie Wild  <aaw@google.com>
8388
8389         * doc/invoke.texi (Wliteral-suffix): Document new option.
8390
8391 2012-04-27  Tom Tromey  <tromey@redhat.com>
8392
8393         * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
8394         (dwarf_tag_name): Use get_DW_TAG_name.
8395         (dwarf_attr_name): Use get_DW_AT_name.
8396         (dwarf_form_name): Use get_DW_FORM_name.
8397         * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
8398
8399 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
8400
8401         * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
8402         arguments are -1 and 0, by negating the result of the conditional.
8403
8404 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
8405
8406         PR target/53138
8407         * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
8408
8409 2012-04-27  Richard Guenther  <rguenther@suse.de>
8410
8411         * tree-flow.h (is_hidden_global_store): Remove.
8412         * tree-ssa-sink.c (is_hidden_global_store): Likewise.
8413         * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
8414         (stmt_may_clobber_global_p): Likewise.
8415         * tree-ssa-alias.c (ref_may_alias_global_p): New function.
8416         (stmt_may_clobber_global_p): Likewise.
8417         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
8418         stmt_may_clobber_global_p.
8419         * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
8420
8421 2012-04-27  Steven Bosscher  <steven@gcc.gnu.org>
8422
8423         * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
8424         place.
8425
8426         * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
8427         reorganize some fields and update comments.  Rename bit_test_uniq
8428         and bit_test_count to uniq resp. count.  Remove bit_test_bb.
8429         (collect_switch_conv_info): New function, collects info about a
8430         GIMPLE_SWITCH into a struct switch_conv_info.
8431         (check_range): Simplify to use pre-recorded info.  Fix think-o in
8432         range-branch ratio check.
8433         (check_process_case): Remove function.
8434         (check_all_empty_except_final): New function, verifies that all
8435         non-final basic blocks are empty.
8436         (process_switch): Simplify to use pre-recorded info.  Call
8437         collect_switch_conv_info to do that.  Assert that degenerate switch
8438         statements have been cleaned up.
8439
8440 2012-04-27  Marc Glisse  <marc.glisse@inria.fr>
8441
8442         PR middle-end/27139
8443         * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
8444
8445 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8446
8447         PR c/53130
8448         * c-typeck.c (pop_init_level): Use %qD instead of %qT.
8449
8450 2012-04-27  Tom de Vries  <tom@codesourcery.com>
8451
8452         PR tree-optimization/51879
8453         * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
8454         * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
8455         of ...
8456         (defs_to_varying): ... here.  Don't set use_processed.
8457         (visit_reference_op_call): Handle gimple_vdef.
8458         Handle case that lhs is NULL_TREE.
8459         (visit_use): Use mark_use_processed.  Handle calls with side-effect
8460         using visit_reference_op_call.
8461
8462 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
8463
8464         * sched-deps.c (fixup_sched_groups): Rename to...
8465         (chain_to_prev_insn): ...this.
8466         (chain_to_prev_insn_p): New function.
8467         (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
8468
8469 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
8470
8471         * sched-int.h (_haifa_insn_data): Move priority_status.
8472         Add model_index.
8473         (INSN_MODEL_INDEX): New macro.
8474         * haifa-sched.c (insn_delay): New function.
8475         (sched_regno_pressure_class): Update commentary.
8476         (mark_regno_birth_or_death): Pass the liveness bitmap and
8477         pressure array as arguments, instead of using curr_reg_live and
8478         curr_reg_pressure.  Only update the pressure if the bit in the
8479         liveness set has changed.
8480         (initiate_reg_pressure_info): Always trust the live-in set for
8481         SCHED_PRESSURE_MODEL.
8482         (initiate_bb_reg_pressure_info): Update call to
8483         mark_regno_birth_or_death.
8484         (dep_list_size): Take the list as argument.
8485         (calculate_reg_deaths): New function, extracted from...
8486         (setup_insn_reg_pressure_info): ...here.
8487         (MODEL_BAR): New macro.
8488         (model_pressure_data, model_insn_info, model_pressure_limit)
8489         (model_pressure_group): New structures.
8490         (model_schedule, model_worklist, model_insns, model_num_insns)
8491         (model_curr_point, model_before_pressure, model_next_priority):
8492         New variables.
8493         (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
8494         (MODEL_INSN_INFO, MODEL_INSN): New macros.
8495         (model_index, model_update_limit_points_in_group): New functions.
8496         (model_update_limit_points, model_last_use_except): Likewise.
8497         (model_start_update_pressure, model_update_pressure): Likewise.
8498         (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
8499         (model_excess_cost, model_dump_pressure_points): Likewise.
8500         (model_set_excess_costs): Likewise.
8501         (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
8502         SCHED_PRIORITY_MODEL.  Use insn_delay.  Use the order in the model
8503         schedule as an alternative tie-breaker.  Update the call to
8504         dep_list_size.
8505         (ready_sort): Call model_set_excess_costs.
8506         (update_register_pressure): Update call to mark_regno_birth_or_death.
8507         Rely on that function to check liveness rather than doing it here.
8508         (model_classify_pressure, model_order_p, model_add_to_worklist_at)
8509         (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
8510         (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
8511         (model_record_pressure, model_record_pressures): New functions.
8512         (model_record_final_pressures, model_add_successors_to_worklist)
8513         (model_promote_predecessors, model_choose_insn): Likewise.
8514         (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
8515         (model_start_schedule, model_finalize_pressure_group): Likewise.
8516         (model_end_schedule): Likewise.
8517         (schedule_insn): Say when we're scheduling the next instruction
8518         in the model schedule.
8519         (schedule_insn): Handle SCHED_PRESSURE_MODEL.
8520         (queue_to_ready): Do not add instructions that are
8521         MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
8522         Always allow the next instruction in the model schedule to be added.
8523         (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
8524         and delay for SCHED_PRESSURE_MODEL too.
8525         (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
8526         SCHED_PRIORITY_MODEL, but also take the DFA into account.
8527         (schedule_block): Call model_start_schedule and model_end_schedule.
8528         Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
8529         (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8530         to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
8531         region_ref_regs.
8532         (sched_finish): Update accordingly.
8533         (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8534         to SCHED_PRESSURE_MODEL.
8535         (add_jump_dependencies): Update call to dep_list_size.
8536         (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
8537         (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8538         to SCHED_PRESSURE_MODEL.
8539         * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
8540         allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
8541         (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
8542         handling to SCHED_PRESSURE_MODEL.
8543
8544 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
8545
8546         * common.opt (fsched-pressure-algorithm=): New option.
8547         * flag-types.h (sched_pressure_algorithm): New enum.
8548         * sched-int.h (sched_pressure_p): Replace with...
8549         (sched_pressure): ...this new variable.
8550         * haifa-sched.c (sched_pressure_p): Replace with...
8551         (sched_pressure): ...this new variable.
8552         (sched_regno_pressure_class, rank_for_schedule, ready_sort)
8553         (update_reg_and_insn_max_reg_pressure, schedule_insn)
8554         (debug_ready_list, prune_ready_list, schedule_block, sched_init)
8555         (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
8556         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8557         (sched_analyze_insn): Likewise.
8558         * sched-rgn.c (schedule_region): Likewise.
8559         * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
8560
8561 2012-04-26  Bernd Schmidt  <bernds@codesourcery.com>
8562
8563         * PR middle-end/52997
8564         * ira.c (find_moveable_pseudos): Call resize_reg_info.
8565
8566         PR middle-end/52940
8567         * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
8568         * expr.c (convert_move): Honor unsignedp when extending partial int
8569         modes.
8570         * genmodes.c (complete_mode): Don't clear component field of partial
8571         int modes.
8572         (emit_mode_inner): Don't emit it however.
8573         (calc_wider_mode): Partial int modes widen to their component.
8574
8575 2012-04-26  David S. Miller  <davem@davemloft.net>
8576
8577         * config/sparc/niagara4.md: New file.
8578         * config/sparc/sparc.md: Include it.
8579         * config/sparc/sparc.c (niagara4_costs): New processor costs.
8580         (sparc_option_override): Use it.
8581         (sparc_use_sched_lookahead): Return 2 for niagara4.
8582         (sparc_issue_rate): Likewise.
8583
8584         * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
8585         (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
8586         (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
8587         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
8588         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
8589         alignaddrldi_vis): Set type to gsr.
8590         (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
8591         (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
8592         cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
8593         v<vis3_shift_patname><mode>3, fmean16_vis,
8594         fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
8595         fucmp<code>8<P:mode>_vis): Set type to fga.
8596         * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
8597         * config/sparc/niagara.md: Likewise.
8598         * config/sparc/niagara2.md: Likewise.
8599         * config/sparc/ultra3.md: Likewise, and fix type matching for
8600         us3_ialuX reservation.
8601
8602 2012-04-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8603
8604         * reload.c (find_reloads): Change the loop nesting when trying an
8605         alternative with swapped operands.
8606
8607 2012-04-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8608
8609         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
8610         comment. Delete unused parameter first_exp_point_map.
8611         (virt_loc_aware_diagnostic_finalizer): Update call.
8612
8613 2012-04-26  Michael Hope  <michael.hope@linaro.org>
8614             Richard Earnshaw  <rearnsha@arm.com>
8615
8616         * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
8617         (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
8618         (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
8619         (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
8620
8621 2012-04-25  Sriraman Tallam  <tmsriram@google.com>
8622
8623         * doc/extend.texi: Document avx2 support.
8624         * config/i386/i386.c (fold_builtin_cpu): Add avx2.
8625
8626 2012-04-26  Hans-Peter Nilsson  <hp@axis.com>
8627
8628         PR target/53120
8629         * config/cris/cris.md ("*andhi_lowpart_v32")
8630         ("*andqi_lowpart_v32"): Change first input-only operand from
8631         a (match_operand ...) to (match_dup 0).  Drop alternatives with
8632         const_int-matching constraints for redundancy.
8633         ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
8634         three-operand alternative.
8635
8636 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
8637
8638         PR target/53110
8639         * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
8640         instead expand it as zero extension.
8641
8642 2012-04-25  H.J. Lu  <hongjiu.lu@intel.com>
8643
8644         PR debug/52857
8645         * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
8646
8647 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
8648
8649         * common.opt (flag_debug_types_section): Default to 0.
8650         (dwarf_version): Default to 4.
8651         (dwarf_record_gcc_switches): Default to 1.
8652         (dwarf_strict): Default to 0.
8653         * toplev.c (process_options): Don't handle dwarf_strict
8654         or dwarf_version here.
8655         * config/vxworks.c (vxworks_override_options): Don't
8656         test whether dwarf_strict or dwarf_version are negative,
8657         instead test !global_options_set.x_dwarf_*.
8658         * config/darwin.c (darwin_override_options): Default to
8659         dwarf_version 2.
8660         * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
8661         and -fno-debug-types-section are now the default.
8662
8663 2012-04-25  Jan Hubicka  <jh@suse.cz>
8664
8665         * cgraphunit.c: Update toplevel comment.
8666         (tree_rest_of_compilation): Merge into cgraph_expand_function.
8667         (cgraph_analyze_function): Make static.
8668         (cgraph_decide_is_function_needed): Make static.
8669         (cgraph_add_new_function): Use expand_function instead of
8670         rest_of_compilation.
8671         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
8672         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
8673         Move to cgraph.c
8674         (cgraph_inline_p): Remove.
8675         (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
8676         (init_cgraph): Add comment.
8677         * cgraphbuild.c (record_reference, mark_address, mark_load,
8678         mark_store): Do not call analyze_expr hook.
8679         * cgraph.c: Update toplevel comment.
8680         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
8681         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
8682         Move fere from cgraphunit.c
8683         (cgraph_mark_force_output_node): Move to cgraph.h
8684         * cgraph.h: Reorder so the comments match the function placement.
8685         (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
8686         (cgraph_mark_force_output_node): Move here from cgraph.c
8687         * tree.c (free_lang_data): Do not clear analyze_expr hook.
8688         * ipa-inline-transform.c (preserve_function_body_p): New function.
8689         (inline_transform): Update.
8690         * langhooks.c (lhd_callgraph_analyze_expr): Remove.
8691         * langhooks.h (lang_hooks_for_callgraph): Remove.
8692         (lang_hooks): Remove callgraph.
8693         * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
8694         * varpool.c: Remove out of date comment.
8695         * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
8696         (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
8697
8698 2012-04-25  Jan Hubicka  <jh@suse.cz>
8699
8700         PR middle-end/53089
8701         * cgraphunit.c (referred_to_p): Move ahead in file to avoid
8702         forward declaration.
8703         (cgraph_finalize_function): Finalize them here.
8704         * symtab.c (dump_symtab): Dump ctors and dtors.
8705
8706 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
8707
8708         PR middle-end/52979
8709         * stor-layout.c (get_best_mode): Don't return mode with bitsize
8710         larger than maxbits.  Don't compute maxbits modulo align.
8711         Also check that unit bytes long store at bitpos / unit * unit
8712         doesn't affect bits beyond bitregion_end.
8713         * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
8714         would not fit into bitregion_start ... bitregion_end + 1 bit region.
8715         (store_split_bit_field): Decrease unit close to end of bitregion_end
8716         if access is restricted in order to avoid mutual recursion.
8717
8718         PR tree-optimization/53058
8719         * double-int.h (double_int_max_value, double_int_min_value): New
8720         prototypes.
8721         * double-int.c (double_int_max_value, double_int_min_value): New
8722         functions.
8723         * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
8724         or GT_EXPR with double_int_max_value instead of double_int_mask.
8725
8726 2012-04-25  Richard Guenther  <rguenther@suse.de>
8727
8728         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
8729         * tree-vect-loop.c (vect_transform_loop): Adjust.
8730         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
8731         the maximum number of iterations for the epilogue loop.
8732         (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
8733
8734 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
8735
8736         PR c/52880
8737         * c-typeck.c (set_nonincremental_init,
8738         set_nonincremental_init_from_string): Pass true instead of false
8739         as IMPLICIT to add_pending_init.
8740
8741 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8742
8743         * c-typeck.c (pop_init_level): Improve diagnostics.
8744
8745 2012-04-25  Uros Bizjak  <ubizjak@gmail.com>
8746
8747         * compare-elim.c (try_eliminate_compare): Also handle operands with
8748         implicit extensions.
8749
8750 2012-04-25  Alan Modra  <amodra@gmail.com>
8751
8752         * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
8753         V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
8754         SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
8755         (no_global_regs_above): Delete.
8756         (no_global_regs): New function.
8757         (rs6000_savres_strategy): Handle vector regs.  Use proper lr_save_p
8758         value for load multiple test.
8759         (savres_routine_syms): Increase size.
8760         (rs6000_savres_routine_name, rs6000_savres_routine_sym,
8761         ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
8762         rather than a number of boolean flags.  Update all callers.
8763         (rs6000_savres_routine_name): Generate vector save/restore names.
8764         (rs6000_savres_routine_sym): Handle vector regs.  Delete forward decl.
8765         (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
8766         (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
8767         and using_store_multiple.  Expand uses.  Don't always use r11 as
8768         frame reg when needed for out-of-line saves.  Set up initial offset
8769         for out-of-line vector saves when buying stack frame.  Handle pointer
8770         reg setup for out-of-line fp save.  Emit call to out-of-line vector
8771         save function.  Choose r11 or r12 for vrsave reg when available for
8772         better scheduling.
8773         (rs6000_output_function_prologue): Don't emit .extern for ELF.
8774         (rs6000_emit_epilogue): Choose a better frame reg when restoring
8775         from back-chain to suit out-of-line vector restore functions.  Emit
8776         call to out-of-line vector restore function.  Adjust register used
8777         for cr restore.  Tweak pointer register setup for gpr restore.
8778         * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
8779         FIXED_R13.
8780         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
8781         (V_SAVE_INLINE): Define.
8782         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
8783
8784 2012-04-25  Alan Modra  <amodra@gmail.com>
8785
8786         * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
8787         out-of-line save/restore for large frames.  Don't disable
8788         out-of-line saves on ABI_AIX when using static chain reg.
8789         (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
8790         clobber static chain reg, and tweak for out-of-line gpr saves
8791         that use r1.
8792
8793 2012-04-25  Alan Modra  <amodra@gmail.com>
8794
8795         * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
8796         (rs6000_emit_prologue): Use the above to catch register overlap.
8797
8798 2012-04-25  Alan Modra  <amodra@gmail.com>
8799
8800         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
8801         decl.  Move logic selecting update reg to callers.  Update all callers.
8802         (rs6000_emit_allocate_stack): Add copy_off param.
8803         (emit_frame_save): Don't handle reg+reg addressing.
8804         (ptr_regno_for_savres): New function, extracted from..
8805         (rs6000_emit_savres_rtx): ..here.  Add lr_offset param.
8806         (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
8807         Set frame_reg_rtx to r11 whenever r11 is needed, and merge
8808         frame offset adjustment for out-of-line save with copy from sp.
8809         Simplify condition controlling whether cr is saved early or
8810         late.  Use ptr_regno_for_savres to verify correct reg is set
8811         up for out-of-line saves.  Pass the actual pointer reg used to
8812         rs6000_emit_savres_rtx so rtl matches insns in out-of-line
8813         function.  Rearrange spe vars so code is similar to that
8814         elsewhere in this function.  Don't update frame_off when spe
8815         save code will restore r11.  Use emit_frame_save for spe and
8816         gpr saves.  Consolidate darwin out-of-line gpr setup with that
8817         for other abis.  Don't assume frame_offset is zero and frame
8818         reg is sp when setting up altivec reg saves, and calculate
8819         exact offset requirement.
8820         (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off.  Tidy
8821         spe restore code.  Consolidate darwin out-of-line gpr setup
8822         with that for other abis.
8823
8824 2012-04-25  Alan Modra  <amodra@gmail.com>
8825
8826         * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
8827         REG_FRAME_RELATED_EXPR note when the instruction exactly matches
8828         the replacement.
8829         (emit_frame_save): Delete frame_ptr param.  Rename total_size to
8830         frame_reg_to_sp.
8831         (rs6000_emit_prologue): Add sp_off.  Update rs6000_frame_related
8832         and emit_frame_save calls.  Cope with possibly missing note.
8833
8834 2012-04-24  Sriraman Tallam  <tmsriram@google.com>
8835
8836         * config/i386/i386.c (build_processor_model_struct): New function.
8837         (make_var_decl): New function.
8838         (fold_builtin_cpu): New function.
8839         (ix86_fold_builtin): New function.
8840         (make_cpu_type_builtin): New function.
8841         (ix86_init_platform_type_builtins): New function.
8842         (ix86_expand_builtin): Expand new builtins by folding them.
8843         (ix86_init_builtins): Make new builtins to detect CPU type.
8844         (TARGET_FOLD_BUILTIN): New macro.
8845         (IX86_BUILTIN_CPU_INIT): New enum value.
8846         (IX86_BUILTIN_CPU_IS): New enum value.
8847         (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
8848         * config/i386/i386-builtin-types.def: New function type.
8849         * testsuite/gcc.target/builtin_target.c: New testcase.
8850         * doc/extend.texi: Document builtins.
8851
8852 2012-04-24  Olivier Hainque  <hainque@adacore.com>
8853
8854         * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
8855         * toplev.c (process_options): Default to dwarf_version 2.
8856         * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
8857         and dwarf_version 2.
8858
8859 2012-04-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8860
8861         * tree-pretty-print.h (default_tree_printer): Do not declare.
8862         * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
8863         intl.h.
8864         (default_tree_diagnostic_starter): Make static.
8865         (default_tree_printer): Move to here. Make static.
8866         (tree_diagnostics_defaults): New.
8867         * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
8868         * tree.c (free_lang_data): Use tree_diagnostics_defaults.
8869         * toplev.c: Do not include tree-pass.h.
8870         (default_tree_printer): Move from here.
8871         (general_init): Use tree_diagnostics_defaults.
8872
8873 2012-04-24  Chao-ying Fu  <fu@mips.com>
8874
8875         * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
8876         (mips*-*-linux*): Append mips/linux-common.h to tm_file.
8877         * config/mips/gnu-user.h
8878         (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
8879         (GNU_USER_TARGET_LINK_SPEC): New define.
8880         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
8881         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
8882         (GNU_USER_TARGET_MATHFILE_SPEC): New define.
8883         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
8884         GNU_USER_TARGET_ENDFILE_SPEC.
8885         * config/mips/gnu-user64.h (LIB_SPEC): Remove.
8886         (GNU_USER_TARGET_LINK_SPEC): New define.
8887         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
8888         * config/mips/linux-common.h: New file.
8889
8890 2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8891
8892         PR target/47197
8893         * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
8894         (altivec_build_resolved_builtin): Call fully_fold_convert.
8895
8896 2012-04-24  Georg-Johann Lay  <avr@gjlay.de>
8897
8898         PR target/53065
8899         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
8900
8901 2012-04-24  Richard Guenther  <rguenther@suse.de>
8902
8903         PR tree-optimization/53085
8904         * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
8905         stores.
8906
8907 2012-04-24  Richard Guenther  <rguenther@suse.de>
8908
8909         * tree-if-conv.c (main_tree_if_conversion): Move bb under
8910         ENABLE_CHECKING.
8911
8912 2012-04-24  Jim Meyering  <meyering@redhat.com>
8913
8914         * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
8915         absence of an define_enum call.
8916
8917 2012-04-24  Richard Guenther  <rguenther@suse.de>
8918
8919         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
8920         the epilogue loop is not re-used as unvectorized version
8921         record the its maximum number of iterations.
8922
8923 2012-04-24  Andrew Pinski  <apinski@cavium.com>
8924
8925         * tree-ssa-forwprop.c (simplify_bitwise_binary):
8926         Don't directly use def1/def2.
8927
8928 2012-04-24  Richard Guenther  <rguenther@suse.de>
8929
8930         PR tree-optimization/53098
8931         * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
8932         comparison sign.
8933
8934 2012-04-24  Andrew Pinski  <apinski@cavium.com>
8935
8936         PR tree-opt/33512
8937         * tree-ssa-forwprop.c (defcodefor_name): New function.
8938         (simplify_bitwise_binary): Use defcodefor_name instead of manually
8939         Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
8940         Simplify "(~X | Y) & X" to "X & Y" and
8941         "(~X & Y) | X" to "X | Y".
8942
8943 2012-04-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8944
8945         * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
8946         validate_change to add clobbers if IN_GROUP is nonzero.
8947         (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
8948         * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
8949         prototype.
8950         * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
8951         set to false.
8952         * config/s390/s390.c (insn_invalid_p): Likewise.
8953
8954 2012-04-24  Jakub Jelinek  <jakub@redhat.com>
8955
8956         PR middle-end/53084
8957         * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
8958         (output_addressed_constants): Likewise.
8959
8960         PR middle-end/52999
8961         * varasm.c (get_section): Don't ICE for section conflicts with
8962         built-in section kinds.
8963
8964 2012-04-23  DJ Delorie  <dj@redhat.com>
8965
8966         * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
8967         (LIBSTDCXX): Change to CPP2.
8968
8969 2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>
8970
8971         PR bootstrap/52878
8972         * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
8973         extra_masks.
8974
8975 2012-04-23  Uros Bizjak  <ubizjak@gmail.com>
8976
8977         * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
8978         (*addsi_2_zext): Ditto.
8979         (*add<mode>_3): Ditto.
8980         (*addsi_3_zext): Ditto.
8981         (*add<mode>_5): Ditto.
8982
8983 2012-04-23  Andrew Pinski  <apinski@cavium.com>
8984
8985         * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
8986         (C & B) to (A OP0) & B.
8987
8988 2012-04-23  Martin Jambor  <mjambor@suse.cz>
8989
8990         * expr.c (expand_expr_real_1): Remove setting parent's alias set for
8991         temporaries created for a bitfield (reverting revision 122014).
8992
8993 2012-04-23  Richard Guenther  <rguenther@suse.de>
8994
8995         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
8996         the condition using is_gimple_condexpr and avoid the not necessary
8997         boolification.
8998         (set_prologue_iterations): Likewise.
8999         (vect_loop_versioning): Likewise.
9000
9001 2012-04-23  Richard Guenther  <rguenther@suse.de>
9002
9003         PR tree-optimization/53070
9004         * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
9005         (main_tree_if_conversion): Verify we succeeded in that.
9006
9007 2012-04-23  Jan Hubicka  <jh@suse.cz>
9008
9009         * lto-symtab.c (lto_cgraph_replace_node): Do not call
9010         mark_reahcable_node.
9011         * cgraph.c (cgraph_remove_node): Do not clear reachable.
9012         (cgraph_mark_reachable_node): Remove.
9013         (cgraph_mark_force_output_node): Do not set reachable.
9014         (dump_cgraph_node): Do not dump reachable.
9015         (cgraph_create_virtual_clone): Do not set reachable.
9016         * cgraph.h (cgraph_node): Remove reachable flag.
9017         (varpool_node): Remove reachable flag.
9018         (cgraph_mark_if_needed): Remove.
9019         (cgraph_mark_reachable_node): Remove.
9020         * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
9021         * cgraphunit.c (cgraph_finalize_function): Do not mark node as
9022         reachable.
9023         (cgraph_add_new_function): Likewise.
9024         (cgraph_mark_if_needed): Remove.
9025         (cgraph_analyze_function): Do not set target as reachable.
9026         (process_function_and_variable_attributes): Do not care about
9027         dllexport.
9028         (cgraph_analyze_functions): Do not set reachable flags.
9029         (cgraph_mark_functions_to_output): Do not check reachability.
9030         (cgraph_copy_node_for_versioning): Do not set reachable flag.
9031         (dbxout_expand_expr): Update.
9032         * c-decl.c (merge_decls): Do not track changed externs.
9033         * ipa.c: Include pointer-set.h
9034         (enqueue_cgraph_node): Use reachable pointer set.
9035         (process_references): Likewise.
9036         (cgraph_remove_unreachable_nodes): Likewise.
9037         (whole_program_function_and_variable_visibility): Do not recompute
9038         reachable.
9039         * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
9040
9041 2012-04-23  Georg-Johann Lay  <avr@gjlay.de>
9042
9043         * doc/extend.texi (AVR Named Address Spaces): Fix typos.
9044
9045 2012-04-23  Richard Guenther  <rguenther@suse.de>
9046
9047         PR c/53060
9048         * c-typeck.c (build_binary_op): Fix typo.
9049
9050 2012-04-23  Jakub Jelinek  <jakub@redhat.com>
9051
9052         PR tree-optimizations/52891
9053         * tree-vect-patterns.c (adjust_bool_pattern): Use
9054         build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
9055         but with non-standard precision.
9056
9057 2012-04-22  Jan Hubicka  <jh@suse.cz>
9058
9059         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
9060         tree refs.
9061
9062 2012-04-22  Jan Hubicka  <jh@suse.cz>
9063
9064         * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
9065         * cgraphbuild.c (record_reference, record_type_list, mark_address,
9066         mark_load, mark_store): Do not mark varpool nodes as needed.
9067         * cgraph.c (cgraph_new_nodes): Remove.
9068         (cgraph_create_function_alias): Do not mark nodes as reachable.
9069         (cgraph_add_thunk): Likewise.
9070         (cgraph_mark_reachable_node): Do not manage the queue.
9071         * cgraph.h (cgraph_node): Remove next_needed.
9072         (varpool_nodes_queue): Remove next_needed and prev_needed.
9073         (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
9074         (cgraph_new_nodes): Declare.
9075         (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
9076         (varpool_analyze_pending_decls): Remove.
9077         (varpool_analyze_node): New.
9078         (varpool_mark_needed_node): Remove.
9079         (varpool_first_variable, varpool_next_variable): New inlines.
9080         (varpool_first_static_initializer, varpool_next_static_initializer):
9081         Update.
9082         (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
9083         (varpool_first_defined_variable): New inline.
9084         (varpool_next_defined_variable): New inline
9085         (FOR_EACH_VARIABLE): Reimplement.
9086         (FOR_EACH_DEFINED_VARIABLE): Reimplement.
9087         * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
9088         needed flag.
9089         * cgraphunit.c (cgraph_new_nodes): Declare here.
9090         (enqueue_node): New function.
9091         (cgraph_process_new_functions): update for new
9092         node set; when constructing cgraph enqueue node for processing.
9093         (cgraph_add_new_function): Use new node set.
9094         (process_function_and_variable_attributes): Do not set varpool needed
9095         flags.
9096         (referred_to_p): New function.
9097         (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
9098         when varpool is in construction.
9099         (cgraph_analyze_functions): Rewrite.
9100         (cgraph_expand_all_functions): Update.
9101         (cgraph_output_in_order): Do not analyze pending decls; do not set
9102         needed flags.
9103         (cgraph_optimize): Do not analyze pending decls.
9104         * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
9105         in other partition; do not mark node as needed.
9106         * dwarf2out.c (reference_to_unused): Use analyzed flag.
9107         (premark_types_used_by_global_vars_helper): Likewise.
9108         * ipa.c (process_references): Do not call varpool_mark_needed_node.
9109         (cgraph_remove_unreachable_nodes): Do not rely on varpool and
9110         cgrpah queues.
9111         (function_and_variable_visibility): Do not mark node as needed.
9112         (whole_program_function_and_variable_visibility): Likewise.
9113         * Makefile.in (gt-varpool.h): No longer needed.
9114         * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
9115         (ipa_write_summaries): Do not use needed flag.
9116         * varpool.c: Do not include gt-varpool.h
9117         (x_varpool_nodes_queue, x_varpool_last_needed_node,
9118         x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
9119         x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
9120         Remove.
9121         (varpool_remove_node): Do not update the lists.
9122         (dump_varpool_node): Do not dump needed flag.
9123         (varpool_enqueue_needed_node): Remove.
9124         (varpool_mark_needed_node): Remove.
9125         (varpool_reset_queue): Remove.
9126         (varpool_finalize_decl): Move to cgraphunit.c
9127         (varpool_analyze_node): New functions based on former
9128         varpool_analyze_pending_decls.
9129         (varpool_analyze_pending_decls): Remove.
9130         (varpool_assemble_decl): Do not update the lists.
9131         (enqueue_node): New function.
9132         (varpool_remove_unreferenced_decls): Rewrite.
9133         (varpool_empty_needed_queue): Remove.
9134         (add_new_static_var): Do not mark node as needed.
9135         (varpool_create_variable_alias): Handle expansion state
9136         creation.
9137         * except.c (output_ttype): Do not mark node as needed.
9138         * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
9139         * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
9140         Likewise.
9141         * tree-switch-conversion.c (build_one_array): Likewise.
9142
9143 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9144
9145         PR c/44774
9146         * doc/invoke.texi (pedantic): Rename to Wpedantic.
9147         * common.opt (Wpedantic): New.
9148         (pedantic): Alias Wpedantic.
9149         * diagnostic.c (warning_at): Likewise.
9150         * c-decl.c (diagnose_mismatched_decls): Likewise.
9151         (build_array_declarator): Likewise.
9152         (mark_forward_parm_decls):
9153         (check_bitfield_type_and_width): Likewise.
9154         (grokdeclarator): Likewise.
9155         (grokfield): Likewise.
9156         (finish_struct): Likewise.
9157         (build_enumerator): Likewise.
9158         (store_parm_decls_oldstyle): Likewise.
9159         (declspecs_add_qual): Likewise.
9160         (declspecs_add_type): Likewise.
9161         (finish_declspecs): Likewise.
9162         * c-typeck.c (composite_type): Likewise.
9163         (comp_target_types): Likewise.
9164         (build_array_ref): Likewise.
9165         (pointer_diff): Likewise.
9166         (build_unary_op): Likewise.
9167         (build_conditional_expr): Likewise.
9168         (build_c_cast): Likewise.
9169         (convert_for_assignment): Likewise.
9170         (maybe_warn_string_init): Likewise.
9171         (digest_init): Likewise.
9172         (pop_init_level): Likewise.
9173         (set_init_index): Likewise.
9174         (c_finish_goto_label): Likewise.
9175         (c_finish_return): Likewise.
9176         (do_case): Likewise.
9177         (build_binary_op): Likewise.
9178         * c-parser.c (static): Likewise.
9179         (c_parser_external_declaration): Likewise.
9180         (c_parser_declaration_or_fndef): Likewise.
9181         (c_parser_static_assert_declaration_no_se): Likewise.
9182         (c_parser_enum_specifier): Likewise.
9183         (c_parser_struct_or_union_specifier): Likewise.
9184         (c_parser_struct_declaration): Likewise.
9185         (c_parser_alignas_specifier): Likewise.
9186         (c_parser_braced_init): Likewise.
9187         (c_parser_initelt): Likewise.
9188         (c_parser_compound_statement_nostart): Likewise.
9189         (c_parser_conditional_expression): Likewise.
9190         (c_parser_alignof_expression): Likewise.
9191         (c_parser_postfix_expression): Likewise.
9192         (c_parser_postfix_expression_after_paren_): Likewise.
9193         (c_parser_objc_class_instance_variables): Likewise.
9194         (c_parser_objc_method_definition): Likewise.
9195         (c_parser_objc_methodprotolist): Likewise.
9196
9197 2012-04-22  Ian Lance Taylor  <iant@google.com>
9198
9199         * godump.c (go_output_typedef): Dump size of structs.
9200
9201 2012-04-22  Razya Ladelsky  <razya@il.ibm.com>
9202
9203         Correcting transform_to_exit_first_loop + fix to PR46886
9204         * tree-parloops.c (transform_to_exit_first_loop): Remove
9205         setting of number of iterations according to the loop pattern.
9206         Duplicate from entry to exit->src instead of loop->latch.
9207         (pallelize_loops): Remove the condition preventing do-while loops.
9208         * tree-cfg.c (bool bb_in_region_p): New.
9209         (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
9210         Adjust redirection of the duplicated iteration.
9211
9212 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
9213
9214         PR bootstrap/53021
9215         * rtl.def (ADDRESS): Use "i" rather than "w".
9216         * rtl.h (find_base_term): Delete.
9217         (may_be_sp_based_p): Declare.
9218         * rtl.c (rtx_code_size): Remove ADDRESS special case.
9219         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
9220         (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
9221         * alias.c: ...here.
9222         (find_base_term): Make static.
9223         (may_be_sp_based_p): New function.
9224         * dse.c (record_store): Use it.
9225         * store-motion.c (store_killed_in_insn): Likewise.
9226
9227 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
9228
9229         * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
9230
9231 2012-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9232
9233         PR 35441
9234         * c-typeck.c (inform_declaration): New.
9235         (build_function_call_vec):  Do not pretty-print
9236         expressions when caret is enabled.
9237         (convert_arguments): Use inform_declaration.
9238
9239 2012-04-20  Jim Meyering  <meyering@redhat.com>
9240
9241         * genmodes.c (make_complex_modes): Don't truncate a mode name of
9242         length 7 or more when prepending a "C".  Suggested by Richard Guenther.
9243
9244 2012-04-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9245
9246         PR rtl-optimization/44214
9247         * fold-const.c (exact_inverse): New function.
9248         (fold_binary_loc): Fold vector and complex division by constant into
9249         multiply by recripocal with flag_reciprocal_math; fold vector division
9250         by constant into multiply by reciprocal with exact inverse.
9251
9252 2012-04-20  Jan Hubicka  <jh@suse.cz>
9253
9254         * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
9255         force flags.
9256         * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
9257         (cgraph_remove_node): Update.
9258         (cgraph_mark_needed_node): Remove.
9259         (cgraph_mark_force_output_node): New.
9260         (dump_cgraph_node): Do not dump needed flag.
9261         (cgraph_node_cannot_be_local_p_1): Update.
9262         (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
9263         * cgraph.h (symtab_node_base): Add force_output flag.
9264         (cgraph_node): Remove needed flag.
9265         (varpool_node): Remove force_output flag.
9266         (cgraph_mark_needed_node): Remove.
9267         (cgraph_mark_force_output_node): New.
9268         (cgraph_only_called_directly_or_aliased_p,
9269         varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
9270         * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
9271         * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
9272         (cgraph_add_new_function): Update.
9273         (cgraph_mark_if_needed): Update.
9274         (verify_cgraph_node): Update.
9275         (cgraph_analyze_function): Alias target is reachable.
9276         (process_function_and_variable_attributes): Update: externally_visible
9277         flag makes function reachable.
9278         (cgraph_analyze_functions): Update dumping.
9279         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9280         input_overwrite_node, input_varpool_node): Update streaming.
9281         * lto-streamer-out.c (produce_symtab): Use force_output.
9282         * ipa.c (process_references): Weakrefs must be processed.
9283         (cgraph_remove_unreachable_nodes): Likewise; update for new
9284         force_output flag.
9285         (varpool_externally_visible_p): Weakrefs are externally visible
9286         even if they are not.
9287         (function_and_variable_visibility): Update; when processing alias
9288         pair force the targets to be output.
9289         (whole_program_function_and_variable_visility): Use
9290         mark_reachable_node.
9291         * trans-mem.c (ipa_tm_mark_needed_node): Remove
9292         (ipa_tm_mark_force_output_node): New function.
9293         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
9294         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
9295         aliases.
9296         * varasm.c (mark_decl_referenced): Update.
9297         (find_decl_and_mark_needed): Remove.
9298         (find_decl): New function.
9299         (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
9300         alias targets as needed.
9301         (dump_tm_clone_pairs): Update.
9302         * tree-inline.c (copy_bb): Update check.
9303         * symtab.c (dump_symtab_base): Dump force_output.
9304         * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
9305         * passes.c (execute_todo): Fix dumping.
9306         * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
9307         (varpool_analyze_pending_decls): Alias target is reachable.
9308         (varpool_create_variable_alias): Finalize weakrefs.
9309
9310 2012-04-20  Jakub Jelinek  <jakub@redhat.com>
9311
9312         PR bootstrap/53021
9313         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
9314         UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
9315         * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
9316         macros instead of constants.
9317         * dse.c (record_store): Check for SP ADDRESS by comparing
9318         XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
9319         XEXP to be stack_pointer_rtx.
9320
9321 2012-04-20  Richard Guenther  <rguenther@suse.de>
9322
9323         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
9324         update_call_from_tree when propagating into a call.
9325
9326 2012-04-20  Alan Modra  <amodra@gmail.com>
9327
9328         * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
9329         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.  Rename
9330         sp_offset to frame_off.  Move world save code earlier.
9331
9332 2012-04-20  Richard Guenther  <rguenther@suse.de>
9333
9334         PR tree-optimization/53050
9335         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
9336         Do only one transform on COND_EXPRs at the same time.
9337
9338 2012-04-19  Jan Hubicka  <jh@suse.cz>
9339
9340         * symtab.c (dump_symtab_base): Revert accidental checkin.
9341
9342 2012-04-20  Alan Modra  <amodra@gmail.com>
9343
9344         PR target/53040
9345         * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
9346         static chain, set REST_INLINE_FPRS too.
9347
9348 2012-04-20  Thomas Schwinge  <thomas@codesourcery.com>
9349
9350         * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
9351         nodes.
9352
9353 2012-04-20  Richard Guenther  <rguenther@suse.de>
9354
9355         * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
9356         loops that can never run more often than the vectorization factor.
9357
9358 2012-04-19  Jan Hubicka  <jh@suse.cz>
9359
9360         * symtab.c (dump_symtab_base): Fix dumping of asm lists.
9361
9362 2012-04-19  David Edelsohn  <dje.gcc@gmail.com>
9363
9364         * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
9365
9366 2012-04-19  Jim Meyering  <meyering@redhat.com>
9367
9368         * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
9369         We verified above that the string(including trailing NUL) fits in buf,
9370         so just use memcpy.
9371
9372 2012-04-19  Richard Guenther  <rguenther@suse.de>
9373
9374         * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
9375         for dumping DECL_SECTION_NAME.
9376
9377 2012-04-19  Michael Matz  <matz@suse.de>
9378
9379         PR middle-end/52977
9380         * tree.h (VECTOR_CST_NELTS): Use part number of types again.
9381         (struct tree_vector): Adjust GTY length.
9382         * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
9383
9384         * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
9385         members.
9386         (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
9387         caller emitted the length calulation already.
9388         (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
9389         before handling any of the fields for structs.
9390
9391 2012-04-19  Richard Guenther  <rguenther@suse.de>
9392
9393         PR tree-optimization/53031
9394         * tree-vrp.c (adjust_range_with_scev): Revert back to
9395         using max_loop_iterations.
9396
9397 2012-04-19  Michael Matz  <matz@suse.de>
9398
9399         * diagnostic.c (emit_diagnostic): Move va_end call after user
9400         of the va_list.
9401         (warning, warning_at, pedwarn, permerror): Ditto.
9402
9403 2012-04-19  Richard Guenther  <rguenther@suse.de>
9404
9405         * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
9406         array access.
9407
9408 2012-04-19  Georg-Johann Lay  <avr@gjlay.de>
9409
9410         PR target/53033
9411         * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
9412         the case *(X+const).
9413
9414 2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9415
9416         * config/arm/sync.md (sync_optab): Change ior attribute to "or".
9417
9418 2012-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9419
9420         PR c/52283/37985
9421         * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
9422         * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
9423
9424 2012-04-19  Richard Guenther  <rguenther@suse.de>
9425
9426         PR rtl-optimization/44688
9427         * loop-iv.c (determine_max_iter): Only return max_iter.
9428         (iv_number_of_iterations): Also use the recorded loop bound
9429         on the maximum number of iterations.
9430         * loop-unroll.c (decide_unroll_runtime_iterations): Use
9431         max_iter to avoid unrolling loops that do not roll.
9432         (decide_unroll_stupid): Likewise.
9433
9434 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
9435
9436         * targhooks.c (default_case_values_threshold): Fix code style nit.
9437
9438         * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
9439         case range and type folding from here...
9440         * gimplify.c (gimplify_switch_expr): ... to here.  Expect NULL_TREE
9441         type, as documented in tree.def.
9442
9443 2012-04-18  Jan Hubicka  <jh@suse.cz>
9444
9445         * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
9446         Declare.
9447         * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
9448         cgraph hash and same comdat groups.
9449         (cgraph_optimize): Verify symbol table.
9450         * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
9451         (dissolve_same_comdat_group_list): Work on symtab nodes.
9452         (function_and_variable_visibility): Dissolve variable same comdat group
9453         lists, too.
9454         * symtab.c: Include timevar.h
9455         (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
9456
9457 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
9458
9459         * tree-switch-conversion.c (info): Remove global pass info.
9460         (check_range, check_process_case, check_final_bb, create_temp_arrays,
9461         free_temp_arrays, gather_default_values, build_constructors,
9462         array_value_type, build_one_array, build_arrays, gen_def_assigns,
9463         fix_phi_nodes, gen_inbound_check): Pass info around from ...
9464         (process_switch): ... here.  Unify message format.  Return a const
9465         char pointer to the failure reason message.
9466         (do_switchconv): Unify message format.  Update process_switch usage.
9467
9468         * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
9469         * tree-cfg.c (edge_to_cases): Fix documentation.
9470
9471 2012-04-18  Uros Bizjak  <ubizjak@gmail.com>
9472
9473         * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
9474
9475 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9476
9477         PR tree-optimization/52976
9478         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
9479         (possibly_move_powi): New function.
9480         (rewrite_expr_tree): Call possibly_move_powi.
9481         (rewrite_expr_tree_parallel): Likewise.
9482         (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
9483         call add_to_ops_vec instead.
9484
9485 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9486
9487         PR tree-optimization/52976
9488         * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
9489         (decrement_power): Likewise.
9490         (propagate_op_to_single_use): Likewise.
9491         (zero_one_operation): Handle __builtin_pow* calls in linearized
9492         expression trees; factor logic into propagate_op_to_single_use.
9493         (undistribute_ops_list): Allow operands with repeat counts > 1.
9494
9495 2012-04-18  Richard Guenther  <rguenther@suse.de>
9496
9497         PR tree-optimization/44688
9498         * cfgloop.h (record_niter_bound): Declare.
9499         * tree-ssa-loop-niter.c (record_niter_bound): Export.
9500         Update the estimation with the upper bound here...
9501         (estimate_numbers_of_iterations_loop): ... instead of here.
9502         Do not forcefully reset a recorded upper bound.
9503         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
9504         Record the maximum number of loop iterations of the prologue loop.
9505
9506 2012-04-18  Jan Hubicka  <jh@suse.cz>
9507
9508         * lto-symtab.c (lto_cgraph_replace_node): Update.
9509         * cgraphbuild.c (record_reference, record_type_list,
9510         record_eh_tables, mark_address, mark_load, mark_store): Update.
9511         * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
9512         cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
9513         Update.
9514         * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
9515         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
9516         * reload.c: Fix typo in comment.
9517         * rtlanal.c: Likewise.
9518         * tree-emultls.c (gen_emutls_addr): Update.
9519         * ipa-reference.c (analyze_function): Update.
9520         * cgraphunit.c (cgraph_analyze_function,
9521         cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
9522         Update.
9523         * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
9524         (ipa_remove_reference): Likewise.
9525         (ipa_remove_all_refering): Rename to ...
9526         (ipa_remove_all_referring): ... this one; update.
9527         (ipa_dump_references): Update.
9528         (ipa_dump_referring): Update.
9529         (ipa_clone_references): Update.
9530         (ipa_clone_refering): Rename to ...
9531         (ipa_clone_referring): ... this one; update.
9532         (ipa_ref_cannot_lead_to_return): Update.
9533         (ipa_ref_has_aliases_p): Update.
9534         * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
9535         forward typedefs.
9536         (ipa_ref_type): Remove.
9537         (ipa_ref_ptr_u): Remove.
9538         (ipa_ref): Remove referencing, refered, refered_index, refering_type
9539         and refered_type; add referring, referred and referred_index.
9540         (ipa_ref_list): Rename refering to referring.
9541         (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
9542         ipa_clone_references, ipa_clone_referring): Update prototypes.
9543         * lto-cgraph.c (referenced_from_other_partition_p): Update.
9544         (lto_output_ref): Update.
9545         (add_references): Update.
9546         (input_varpool_node): Update.
9547         (input_refs): Update.
9548         * ipa-ref-inline.h (ipa_ref_node): Update.
9549         (ipa_ref_varpool_node): Update.
9550         (ipa_ref_referring_node): Update.
9551         (ipa_ref_referring_varpool_node): Update.
9552         (ipa_ref_referring_ref_list): Update.
9553         (ipa_ref_referred_ref_list): Update.
9554         (ipa_ref_list_first_referring): Update.
9555         (ipa_empty_ref_list): Update.
9556         (ipa_ref_list_refering_iterate): Rename to ...
9557         (ipa_ref_list_referring_iterate): ... this one.
9558         * cse.c: Update comment.
9559         * ipa-utils.c (ipa_reverse_postorder): Update.
9560         * tree-ssa-alias.c: Update.
9561         * ipa-inline.c (reset_edge_caches): Update.
9562         (update_caller_keys): Update.
9563         * ipa-inline.h: Update comments.
9564         * jump.c: Update comment.
9565         * alias.c: Likewise.
9566         * ipa.c (process_references): Update.
9567         (cgraph_remove_unreachable_nodes): Likewise.
9568         (ipa_discover_readonly_nonaddressable_var): Likewise.
9569         (cgraph_address_taken_from_non_vtable_p): Likewise.
9570         * trans-mem.c (ipa_tm_execute): Update.
9571         * simplify-rtx.c: Fix comment.
9572         * rtl.c: Fix comment.
9573         * symtab.c (symtab_unregister_node): Update.
9574         * varpool.c (dump_varpool_node): Update.
9575         (varpool_analyze_pending_decls): Update.
9576         (assemble_aliases): Update.
9577         (varpool_for_node_and_aliases): Update.
9578
9579 2012-04-18  Richard Guenther  <rguenther@suse.de>
9580
9581         * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
9582         use_undefined_p parameter.
9583         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
9584         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
9585         Likewise.
9586         (estimate_numbers_of_iterations): Likewise.
9587         (estimated_loop_iterations): Adjust.
9588         (max_loop_iterations): Likewise.
9589         (scev_probably_wraps_p): Likewise.
9590         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
9591         * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
9592         not max_loop_iterations.
9593         (execute_vrp): Remove explicit number of iterations estimation.
9594
9595 2012-04-18  Enkovich Ilya  <ilya.enkovich@intel.com>
9596
9597         * config/i386/linux-common.h: New.
9598
9599         * config.gcc: Add i386/linux-common.h before
9600         all i386/linux.h and i386/linux64.h usages.
9601
9602         * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
9603         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
9604         * config/i386/gnu-user64.h: Likewise.
9605
9606         * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
9607         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
9608         (GNU_USER_TARGET_MATHFILE_SPEC): New.
9609         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
9610
9611 2012-04-18  Jan Hubicka  <jh@suse.cz>
9612
9613         * cgraph.c (cgraph_node_name): Remove.
9614         (dump_cgraph_node): Use dump_symtab_base; reformat.
9615         * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
9616         debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
9617         Declare.
9618         (cgraph_node_name, varpool_node_name): Remove.
9619         (cgraph_node_asm_name, varpool_node_asm_name,
9620         cgraph_node_name, varpool_node_name): New.
9621         * tree-pass.h (TODO_dump_cgraph): Rename to ...
9622         (TODO_dump_symtab): ... this one.
9623         * ipa-cp (pass_ipa_cp): Update.
9624         * ia-reference.c (generate_summary, read_write_all_from_decl,
9625         propagate, ipa_reference_read_optimization_summary): Update.
9626         * cgraphunit.c (cgraph_analyze_functions): Update.
9627         (cgraph_optimize): Update.
9628         * ipa-ref.c (ipa_dump_references): Update.
9629         (ipa_dump_refering): Update.
9630         * ipa-inline.c (pass_ipa_inline): Update.
9631         * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
9632         * ipa.c (pass_ipa_function_visibility,
9633         pass_ipa_whole_program_visibility): Update.
9634         * tree-sra.c (pass_early_ipa_sra): Update.
9635         * symtab.c: Include langhooks.h
9636         (symtab_node_asm_name): New.
9637         (symtab_node_name): New.
9638         (symtab_type_names): New static var.
9639         (dump_symtab_base): New.
9640         (dump_symtab_node, dump_symtab): New.
9641         (debug_symtab_node,  debug_symtab): New.
9642         * tree-ssa-structalias.c: Dump symbol table.
9643         * pases.c (execute_todo): Handle TODO_dump_symtab instead
9644         of TODO_dump_cgraph.
9645         * varpoo.c (varpool_node_name): Remove.
9646         (dump_varpool_node): Use dump_symtab_base; reformat.
9647
9648 2012-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9649
9650         * doc/invoke.texi (Language Independent Options): @item should be
9651         before @opindex.
9652
9653 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
9654
9655         PR bootstrap/53021
9656         * rtl.c (rtx_code_size): Handle ADDRESS.
9657
9658 2012-04-17  Tom de Vries  <tom@codesourcery.com>
9659
9660         * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
9661         is not a STMT_LIST.
9662
9663 2012-04-17  Uros Bizjak  <ubizjak@gmail.com>
9664
9665         PR target/53020
9666         * config/i386/sync.md (atomic_<code><mode>): Rename to
9667         atomic_<logic><mode>.
9668
9669 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
9670
9671         * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
9672         * alias.c (reg_base_value): Expand and update comment.
9673         (arg_base_value): New variable.
9674         (unique_id): Move up file.
9675         (unique_base_value, unique_base_value_p, known_base_value_p): New.
9676         (find_base_value): Use arg_base_value and known_base_value_p.
9677         (record_set): Document REG_NOALIAS handling.  Use unique_base_value.
9678         (find_base_term): Use known_base_value_p.
9679         (base_alias_check): Use unique_base_value_p.
9680         (init_alias_target): Initialize arg_base_value.  Use unique_base_value.
9681         (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
9682
9683 2012-04-17  Pat Haugen <pthaugen@us.ibm.com>
9684
9685         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
9686
9687 2012-04-17  Michael Matz  <matz@suse.de>
9688
9689         PR tree-optimization/18437
9690         * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
9691         (STMT_VINFO_STRIDE_LOAD_P): New accessor.
9692         (vect_check_strided_load): Declare.
9693         * tree-vect-data-refs.c (vect_check_strided_load): New function.
9694         (vect_analyze_data_refs): Use it to accept strided loads.
9695         * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
9696
9697 2012-04-17  Richard Guenther  <rguenther@suse.de>
9698
9699         PR middle-end/53011
9700         * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
9701         loops when redirecting an entry or latch edge.
9702
9703 2012-04-17  Bernd Schmidt  <bernds@codesourcery.com>
9704
9705         * sel-sched.c (sel_global_init): Revert previous change.
9706
9707 2012-04-17  Richard Guenther  <rguenther@suse.de>
9708
9709         * tree-flow.h (array_at_struct_end_p): Move declaration ...
9710         * tree.h (array_at_struct_end_p): ... here.
9711         * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
9712         * expr.c (array_at_struct_end_p): ... here.  Rewrite.
9713
9714 2012-04-17  Steven Bosscher  <steven@gcc.gnu.org>
9715
9716         * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
9717         COST_TABLE): Remove.
9718         (estimate_case_costs): Remove.
9719         (expand_case): Do not call estimate_case_costs
9720         to set use_cost_table.
9721         (balance_case_nodes): Do not use use_cost_table.
9722
9723 2012-04-16  Jan Hubicka  <jh@suse.cz>
9724
9725         * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
9726         (hash_node, eq_node): Remove.
9727         (cgraph_create_node): Do not handle hashtable.
9728         (cgraph_get_node): Remove.
9729         (cgraph_insert_node_to_hashtable): Remove.
9730         (hash_node_by_assembler_name): Remove.
9731         (eq_assembler_name): Remove.
9732         (cgraph_node_for_asm): Rewrite.
9733         (cgraph_find_replacement_node): Break out from ...
9734         (cgraph_remove_node): ... here; do not maintain hashtables.
9735         (change_decl_assembler_name): Remove.
9736         (cgraph_clone_node): Do not maintain hashtables.
9737         * cgraph.h (const_symtab_node): New typedef.
9738         (cgraph_insert_node_to_hashtable): Remove.
9739         (symtab_get_node, symtab_node_for_asm,
9740         symtab_insert_node_to_hashtable): Declare.
9741         (cgraph_find_replacement_node): Declare.
9742         (cgraph_get_node, varpool_get_node): Turn into inlines.
9743         (cgraph, varpool): Work sanely on NULL pointers.
9744         (FOR_EACH_SYMBOL): New walker.
9745         * ipa-inline-transform.c (save_inline_function_body): Use
9746         symtab_insert_node_to_hashtable.
9747         * symtab.c: Include ggc.h and diagnostics.h
9748         (symtab_hash, assembler_name_hash): New static vars;
9749         (hash_node, eq_node, hash_node_by_assembler_name,
9750         eq_assembler_name, insert_to_assembler_name_hash,
9751         unlink_from_assembler_name_hash): New.
9752         (symtab_register_node): Update hashtables.
9753         (symtab_insert_node_to_hashtable): New.
9754         (symtab_unregister_node): Update hashtables.
9755         (symtab_get_node): New.
9756         (symtab_node_for_asm): New.
9757         (change_decl_assembler_name): New.
9758         * Makefile.in (symtab.o): Needs GTY.
9759         * varpool.c (varpool_hash): Remove.
9760         (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
9761         (varpool_node): Rewrite using varpool_get_node.
9762         (varpool_remove_node): DO not maintain hashtables.
9763         (varpool_node_for_asm): Rewrite.
9764
9765 2012-04-16  Sandra Loosemore  <sandra@codesourcery.com>
9766
9767         * doc/invoke.texi:  Copy-edit to put verbs in the present tense
9768         when describing the current behavior of GCC.
9769
9770 2012-04-16  Richard Sandiford  <rdsandiford@googlemail.com>
9771
9772         * genemit.c (gen_exp): Remove ADDRESS handling.
9773         * genoutput.c (scan_operands): Likewise.
9774         * genpeep.c (match_rtx): Likewise.
9775         * genrecog.c (add_to_sequence): Likewise.
9776
9777 2012-04-16  David Edelsohn  <dje.gcc@gmail.com>
9778
9779         * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
9780
9781 2012-04-16  Martin Jambor  <mjambor@suse.cz>
9782
9783         * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
9784         bit-fields.
9785
9786 2012-04-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
9787
9788         PR target/51819
9789         * config/arm/arm.c (arm_print_operand): Fix invalid alignment
9790         hints for 'A' operand types.
9791
9792 2012-04-16  Jan Hubicka  <jh@suse.cz>
9793
9794         * cgraph.h (symtab_node_base): Add next and previous pointers.
9795         (cgraph_node): Remove next and preivous pointers.
9796         (varpool_node): Likewise; remove next/previous GTY marker;
9797         it is not type safe.
9798         (symtab_node_def): Update GTY marker
9799         (x_cgraph_nodes, cgraph_nodes): Remove.
9800         (symtab_nodes): New function.
9801         (cgraph_order): Rename to ...
9802         (symtab_order): ... this one.
9803         (symtab_register_node, symtab_unregister_node, symtab_remove_node):
9804         Declare.
9805         (x_varpool_nodes, varpool_nodes): Remove.
9806         (FOR_EACH_STATIC_VARIABLE): Update.
9807         (symtab_function_p, symtab_variable_p): New function.
9808         (FOR_EACH_VARIABLE): Update.
9809         (varpool_first_variable, varpool_next_variable): New functions.
9810         (FOR_EACH_VARIABLE): Update.
9811         (cgraph_first_defined_function): Update.
9812         (cgraph_next_defined_function, cgraph_next_defined_function): Update.
9813         (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
9814         (cgraph_first_function, cgraph_next_function): New.
9815         (FOR_EACH_FUNCTION): Update.
9816         (cgraph_first_function_with_gimple_body,
9817         cgraph_next_function_with_gimple_body): Update.
9818         * symtab.c: New file.
9819         * cgraph.c: Update copyright dates.
9820         (x_cgraph_nodes, cgraph_order): Remove.
9821         (NEXT_FREE_NODE): Update.
9822         (SET_NEXT_FREE_NODE): New.
9823         (cgraph_create_node_1): Remove common code.
9824         (cgraph_create_node): Remove common code; call symtab_register_node.
9825         (cgraph_remove_node): Remove common code; call symtab_unregister-node.
9826         (cgraph_add_asm_node): Update.
9827         (cgraph_clone_node): Register new node.
9828         * cgraphunit.c (process_function_and_variable_attributes): Update.
9829         (cgraph_analyze_functions): Update.
9830         (cgraph_analyze_functions): Update.
9831         (cgraph_output_in_order): Update.
9832         * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
9833         Update.
9834         * ipa-inline.c (recursive_inlining): Update.
9835         * lto-streamer-in.c (lto_input_toplevel_asms): Update.
9836         * ipa.c (cgraph_remove_unreachable_nodes): Update.
9837         * Makefile.in: Add symtab.o
9838         * varpool.c (x_varpool_nodes): Remove
9839         (varpool_node): Remove common code; call symtab_register_node.
9840         (varpool_remove_node): Remove common code; call symtab_unregister_node.
9841
9842 2012-04-16  Richard Guenther  <rguenther@suse.de>
9843
9844         PR middle-end/52977
9845         * tree.h (VECTOR_CST_NELTS): Adjust.
9846         (struct tree_vector): Add explicit length field.
9847         (make_vector_stat): Declare.
9848         (make_vector): Define.
9849         * tree.c (make_vector_stat): New function.
9850         (build_vector_stat): Use it.
9851         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
9852
9853 2012-04-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9854
9855         PR tree-optimization/52976
9856         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
9857         (undistribute_ops_list): Ops with repeat counts aren't eligible for
9858         undistribution.
9859         (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
9860
9861 2012-04-16  Jan Hubicka  <jh@suse.cz>
9862
9863         * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
9864         New macros.
9865         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
9866         walkers to walk cgraph and varpool.
9867         * cgraph.c (cgraph_node_for_asm): Likewise.
9868         (dump_cgraph): Likewise.
9869         * value-prof.c (init_node_map): Likewise.
9870         * tree.c (free_lang_data_in_cgraph): Likewise.
9871         * tree-emutls.c: (ipa_lower_emutls): Likewise.
9872         * ipa-reference.c (generate_summary, propagate): Likewise.
9873         * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
9874         cgraph_mark_functions_to_output, cgraph_output_in_order,
9875         output_weakrefs, cgraph_materialize_all_clones,
9876         cgraph_optimize): Likewise.
9877         * lto-cgraph.c (merge_profile_summaries): Likewise.
9878         (input_cgraph): Likewise.
9879         * ipa-pure-const.c (generate_summary): Likewise.
9880         (propagate): Likwise.
9881         * ipa-utils.c (ipa_reduced_postorder): Likewise.
9882         (ipa_free_postorder_info): Likewise.
9883         (ipa_reverse_postorder): Likewise.
9884         * ipa-inline.c (ipa_inline): Likewise.
9885         * matrix-reorg.c (find_matrices_decl): Likewise.
9886         (matrix_reorg): Likewise.
9887         * tree-vectorizer.c (increase_alignment): Likewise.
9888         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
9889         (function_and_variable_visibility): Likewise.
9890         (whole_program_function_and_variable_visibility): Likewise.
9891         (ipa_cdtor_merge): Likewise.
9892         * trans-mem.c (ipa_tm_execute): Likewise.
9893         * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
9894         * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
9895         (ipa_print_all_params): Likewise.
9896         (ipa_update_after_lto_read): Likewise.
9897         * tree-profie.c (tree_profiling): Likewise.
9898         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
9899         * passes.c (dump_passes): Likewise.
9900         (do_per_function): Likewise.
9901         (ipa_write_summaries): Likewise.
9902         * varpool.c (dump_varpool): Likewise.
9903         (varpool_node_for_asm): Likewise.
9904         (varpool_assemble_pending_decls): Likewise.
9905
9906 2012-04-16  Richard Guenther  <rguenther@suse.de>
9907
9908         PR tree-optimization/52975
9909         * tree-if-conv.c (predicate_bbs): Do not simplify inverted
9910         condition but always mark it with TRUTH_NOT_EXPR.
9911
9912 2012-04-16  Richard Guenther  <rguenther@suse.de>
9913
9914         PR tree-optimization/52975
9915         * tree-ssa-forwprop.c (combine_cond_exprs): New function.
9916         (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
9917         and VEC_COND_EXPRs.  Also combine into VEC_COND_EXPRs condition.
9918         * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
9919
9920 2012-04-14  Uros Bizjak  <ubizjak@gmail.com>
9921
9922         * config/i386/sse.md (ssse3_plusminus): New code iterator.
9923         (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
9924         avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
9925         (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
9926         ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
9927         (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
9928         ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
9929
9930         (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
9931         avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
9932         (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
9933         ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
9934         (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
9935         ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
9936
9937         (xop_plus): New code iterator.
9938         (macs): New code attribute.
9939         (macds): Ditto.
9940         (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
9941         xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
9942         iterator.
9943         (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
9944         xop_plus code iterator.
9945         (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
9946         xop_plus code iterator.
9947         (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
9948         xop_plus code iterator.
9949         (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
9950         xop_plus code iterator.
9951
9952         (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
9953         any_extend code iterator.
9954         (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
9955         any_extend code iterator.
9956         (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
9957         any_extend code iterator.
9958         (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
9959         any_extend code iterator.
9960         (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
9961         any_extend code iterator.
9962         (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
9963         any_extend code iterator.
9964
9965 2012-04-14  Tom de Vries  <tom@codesourcery.com>
9966
9967         * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
9968         call to delete_insn.  Remove code to reorder BASIC_BLOCK note and
9969         DELETED_LABEL note, and move it to ...
9970         * cfgrtl.c (delete_insn): ... here.  Change return type to void.
9971         (delete_insn_and_edges): Likewise.
9972         (delete_insn_chain): Handle new return type of delete_insn.  Delete
9973         chain backwards rather than forwards.
9974         * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
9975         void.
9976         * cfglayout.c (fixup_reorder_chain): Delete unused label.
9977
9978 2012-04-14  Jan Hubicka  <jh@suse.cz>
9979
9980         * cgraph.h: Update copyrights;
9981         (symtab_node): Turn to union typedef.
9982         (symtab_node_base): New structure.
9983         (symtab_type): Add SYMTAB_SYMBOL tag.
9984         (cgraph_node): Annotate some pinters with nested_ptr.
9985         (varpool_node): Likewise.
9986         (cgraph_local_info): Remove lto_file_data
9987         and externally_visible.
9988         (cgraph_node): Remove decl; same_comdat_group list;
9989         aux; ref_list; order; address_taken; reachable_from_other_parittion,
9990         in_other_partition; resolution.
9991         (varpool_node): Remove decl; same_comdat_group;
9992         ref_list; lto_file_data; aux; order; resolution; externally_visible;
9993         used_from_other_partition; in_other_partition.
9994         (symtab_node_def): New union.
9995         (cgraph, varpool): Update.
9996         (varpool_first_static_initializer, varpool_next_static_initializer,
9997         cgraph_only_called_directly_or_aliased_p,
9998         varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
9999         varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
10000         varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
10001         field references.
10002         * cgraph.c: Likewise.
10003         (cgraph_hash, assembler_name_hash): Turn into symtab_node.
10004         * cgraphbuild.c: Likewise.
10005         * lto-symtab.c: Likewise.
10006         * c-gimplify.c: Likewise.
10007         * value-prof.c: Likewise.
10008         * tree.c: Likewise.
10009         * ipa-cp.c: Likewise.
10010         * tree-emutls.c: Likewise.
10011         * ipa-inline-transform.c: Likwise.
10012         * ipa-reference.c: Likewise.
10013         * cgraphunit.c: Likewise.
10014         * ipa-ref.c: Likewise.
10015         * lto-cgraph.c: Likewise.
10016         * ipa-ref-inline.h: Likewise.
10017         * ipa-pure-const.c: Likewise.
10018         * lto-streamer-out.c: Likewise.
10019         * ipa-utils.c: Likewise.
10020         * ipa-inline.c: Likewise.
10021         * matrix-reorg.c: Likewise.
10022         * tree-eh.c: Likewise.
10023         * tree-vectorizer.c: Likewise.
10024         * ipa-split.c: Likewise.
10025         * ipa.c: Likewise.
10026         * trans-mem.c: Likewise.
10027         * ipa-inline-analysis.c: Likewise.
10028         * gimplify.c: Likewise.
10029         * cfgexpand.c: Likewise.
10030         * tree-sra.c: Likewise.
10031         * ipa-prop.c: Likewise.
10032         * varasm.c: Likewise.
10033         * tree-nested.c: Likewise.
10034         * tree-inline.c: Likewise.
10035         * tree-profile.c: Likewise.
10036         * tree-ssa-structalias.c: Likewise.
10037         * passes.c: Likewise.
10038         * varpool.c: Likewise.
10039
10040 2012-04-14  Tom de Vries  <tom@codesourcery.com>
10041
10042         * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
10043         same_succ_hash, with local_def inlined.  Use SINGLE_SSA_DEF_OPERAND.
10044         Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT.  Remove use
10045         of find_edge.
10046         (gsi_advance_fw_nondebug_nonlocal): New function.
10047         (local_def): Removed function.
10048         (same_succ_hash): Use stmt_local_def.
10049         (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
10050         (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
10051
10052 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10053
10054         * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
10055         and __ILP32__ for x32.
10056
10057 2012-04-13  Martin Jambor  <mjambor@suse.cz>
10058
10059         PR middle-end/52939
10060         * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
10061         fold_ctor_reference returns a zero constant.
10062
10063 2012-04-13  Enkovich Ilya  <ilya.enkovich@intel.com>
10064
10065         * config.gcc: Add i386/gnu-user-common.h before all
10066         i386/gnu-user.h and i386/gnu-user64.h usages.
10067
10068         * config/i386/gnu-user-common.h: New.
10069
10070         * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
10071         (CC1_SPEC): Likewise.
10072         (ENDFILE_SPEC): Likewise.
10073         (DEFAULT_PCC_STRUCT_RETURN): Likewise.
10074         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
10075         (TARGET_OS_CPP_BUILTINS): Likewise.
10076         (LIBGCC2_HAS_TF_MODE): Likewise.
10077         (LIBGCC2_TF_CEXT): Likewise.
10078         (TF_SIZE): Likewise.
10079         (TARGET_ASM_FILE_END): Likewise.
10080         (STACK_CHECK_MOVING_SP): Likewise.
10081         (STACK_CHECK_STATIC_BUILTIN): Likewise.
10082         * config/i386/gnu-user64.h: Likewise.
10083
10084 2012-04-13  Martin Jambor  <mjambor@suse.cz>
10085
10086         * expr.c (expand_expr_real_1): Pass type, not the expression, to
10087         set_mem_attributes for a memory temporary. Do not call the function
10088         for the memory temporary created for a bitfield.
10089
10090 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
10091
10092         PR debug/48866
10093         * df.h (enum debug_temp_where): New.
10094         (dead_debug_init, dead_debug_finish) Declare.
10095         (dead_debug_add, dead_debug_insert_temp): Declare.
10096         (struct dead_debug_use, struct dead_debug): Moved from...
10097         * df-problems.c: ... here.
10098         (df_set_unused_notes_for_mw): Bind debug uses of unused regno
10099         to a debug temp.
10100         (df_create_unused_note): Likewise.
10101         (df_set_dead_notes_for_mw): Move comment where it belongs.
10102         (dead_debug_init): Export.
10103         (dead_debug_reset_uses): New, factored out of...
10104         (dead_debug_finish): ...this.  Export.
10105         (dead_debug_reset): Remove.
10106         (dead_debug_add): Export.
10107         (dead_debug_insert_before): Rename to...
10108         (dead_debug_insert_temp): ... this.  Add where argument.  Export.
10109         Locate stored value for BEFORE_WITH_VALUE.  Avoid repeat inserts.
10110         Return insertion count.
10111         (df_note_bb_compute): Adjust.
10112         * dce.c (word_dce_process_block): Adjust dead debug uses.
10113         (dce_process_block): Likewise.
10114
10115 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
10116
10117         * df-problems.c (df_note_bb_compute): Do not take note of
10118         debug uses for whose REGs we won't emit DEAD or UNUSED notes.
10119
10120 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
10121
10122         PR debug/51570
10123         * var-tracking.c (expand_depth): New type.
10124         (onepart_aux, expand_loc_callback_data): Change depth type to it.
10125         (loc_exp_dep_alloc): Adjust initializer.
10126         (update_depth): Use new type.  Add entryvals.
10127         (vt_expand_var_loc_chain): Take note of expansions with
10128         ENTRY_VALUEs, but don't accept them right away.  Run an optional
10129         second pass accepting the minimum ENTRY_VALUE count found in the
10130         first pass.
10131         (vt_expand_loc_callback, INIT_ELCD): Adjust.
10132
10133 2012-04-13  Tom de Vries  <tom@codesourcery.com>
10134
10135         * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
10136         parameters vuse and vuse_escaped.
10137         (find_duplicate): Init vuse1, vuse2 and vuse_escaped.  Pass to
10138         gsi_advance_bw_nondebug_nonlocal.  Return if vuse_escaped and
10139         vuse1 != vuse2.
10140
10141 2012-04-13  Richard Guenther  <rguenther@suse.de>
10142
10143         PR tree-optimization/52969
10144         * tree-if-conv.c (predicate_mem_writes): Properly gimplify
10145         the condition for the COND_EXPR and handle predicate negation
10146         by swapping the COND_EXPR arms.
10147
10148 2012-04-13  Nick Clifton  <nickc@redhat.com>
10149
10150         * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
10151         TODO_dump_func flag.
10152
10153 2012-04-13  Andrey Belevantsev  <abel@ispras.ru>
10154
10155         PR rtl-optimization/52203
10156         PR rtl-optimization/52715
10157
10158         Revert the 2012-03-07 fix for PR 52203.
10159         * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
10160         the insn does not modify DFA right before issuing, adjust
10161         issue_rate accordingly.
10162
10163 2012-04-13  Richard Guenther  <rguenther@suse.de>
10164
10165         PR c/52549
10166         * c-typeck.c (pointer_diff): Remove bogus assert.
10167
10168 2012-04-13  Richard Guenther  <rguenther@suse.de>
10169
10170         PR c/52862
10171         * convert.c (convert_to_pointer): Remove special-casing of zero.
10172
10173 2012-04-13  Joey Ye  <joey.ye@arm.com>
10174
10175         * config/arm/constraints.md (Pe): New constraint.
10176         * config/arm/arm.md: New split for imm 256-510.
10177
10178 2012-04-13  Terry Guo  <terry.guo@arm.com>
10179
10180         * config/arm/arm-cores.def: Added core cortex-m0plus.
10181         * config/arm/arm-tune.md: Regenerated.
10182         * config/arm/arm-tables.opt: Regenerated.
10183         * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
10184
10185 2012-04-13  Alan Modra  <amodra@gmail.com>
10186
10187         PR target/52828
10188         * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
10189         tie regs on destination of sets.  Delete forward declaration.
10190         (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
10191         (rs6000_emit_prologue): Likewise.
10192         (rs6000_emit_epilogue): Likewise.  Use in place of gen_frame_tie
10193         and gen_stack_tie.
10194         (is_mem_ref): Use tie_operand to recognise stack ties.
10195         * config/rs6000/predicates.md (tie_operand): New.
10196         * config/rs6000/rs6000.md (restore_stack_block): Generate new
10197         stack tie rtl.
10198         (restore_stack_nonlocal): Likewise.
10199         (stack_tie): Update.
10200         (frame_tie): Delete.
10201
10202 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10203
10204         * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
10205         HOST_WIDE_INT_PRINT_DEC in format strings.
10206
10207 2012-04-12  Uros Bizjak  <ubizjak@gmail.com>
10208
10209         PR target/52932
10210         * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
10211         argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
10212         * config/i386/sse.md (UNSPEC_VPERMVAR): New.
10213         (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
10214         (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
10215         (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
10216         avx2_permvarv8si using VI4F_256 mode iterator.
10217         * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
10218         Update builtin type to V8SF_FTYPE_V8SF_V8SI.
10219         (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
10220         gen_avx2_permvarv8sf.
10221         (expand_vec_perm_pshufb): Ditto.
10222
10223 2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10224
10225         PR target/52775
10226         * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
10227         the list of options to enable the FCFID instruction.
10228         (TARGET_EXTRA_BUILTINS): Adjust comment.
10229
10230 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10231
10232         PR tree-optimization/18589
10233         * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
10234         (operand_entry): Add count field.
10235         (add_repeat_to_ops_vec): New function.
10236         (completely_remove_stmt): Likewise.
10237         (remove_def_if_absorbed_call): Likewise.
10238         (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
10239         (acceptable_pow_call): New function.
10240         (linearize_expr_tree): Look for builtin pow/powi calls and add operand
10241         entries with repeat counts when found.
10242         (repeat_factor_d): New struct and associated typedefs.
10243         (repeat_factor_vec): New static vector variable.
10244         (compare_repeat_factors): New function.
10245         (get_reassoc_pow_ssa_name): Likewise.
10246         (attempt_builtin_powi): Likewise.
10247         (reassociate_bb): Call attempt_builtin_powi.
10248         (fini_reassoc): Two new calls to statistics_counter_event.
10249
10250 2012-04-12  Richard Guenther  <rguenther@suse.de>
10251
10252         * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
10253         * cgraph.h (tree_rest_of_compilation): Remove.
10254         * cgraph.c (cgraph_add_new_function): Move ...
10255         * cgraphunit.c (cgraph_add_new_function): ... here.
10256         (tree_rest_of_compilation): Make static.
10257         (cgraph_expand_function): Do not set cgraph_function_flags_ready.
10258         * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
10259         gate_all_early_local_passes, execute_all_early_local_passes,
10260         pass_early_local_passes, gate_all_early_optimizations,
10261         pass_all_early_optimizations): Move ...
10262         * passes.c (gate_all_optimizations, pass_all_optimizations,
10263         gate_all_early_local_passes, execute_all_early_local_passes,
10264         pass_early_local_passes, gate_all_early_optimizations,
10265         pass_all_early_optimizations): ... here.
10266         * tree-optimize.c (execute_free_datastructures): Remove.
10267         * tree-flow.h (execute_free_datastructures): Remove.
10268         * tree-optimize.c (execute_init_datastructures,
10269         pass_init_datastructures): Move ...
10270         * tree-ssa.c (execute_init_datastructures,
10271         pass_init_datastructures): ... here.
10272         * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
10273         execute_free_datastructures.
10274
10275 2012-04-12  Bernd Schmidt  <bernds@codesourcery.com>
10276
10277         * dbgcnt.def (ira_move): New counter.
10278         * ira-int.h (ira_create_new_reg): Declare function.
10279         (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
10280         * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
10281         no longer static.  All callers changed.
10282         * ira.c: Include "dbgcnt.h".
10283         (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
10284         move_unallocated_pseudos): New static functions.
10285         (first_moveable_pseudo, last_moveable_pseudo): New global variables.
10286         (pseudo_replaced_reg, pseudo_move_insn): New static variables.
10287         (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
10288         * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
10289         to the pseudos generated in find_moveable_pseudos.
10290         * Makefile.in (ira.o): Add $(DBGCNT_H).
10291
10292 2012-04-12  Richard Guenther  <rguenther@suse.de>
10293
10294         PR tree-optimization/52943
10295         * tree-chrec.h (chrec_is_positive): Remove.
10296         * tree-scalar-evolution.c (chrec_is_positive): Move ...
10297         * tree-data-ref.c (chrec_is_positive): ... here.  Make static.
10298         Return false for a constant zero instead of negative.
10299         (analyze_siv_subscript_cst_affine): Handle zero difference
10300         in the initial condition explicitely.
10301
10302 2012-04-12  Richard Guenther  <rguenther@suse.de>
10303
10304         * tree-parloops.c (parallelize_loops): Also consult the upper
10305         bound for the number of iterations.
10306         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10307         (loop_prefetch_arrays): Likewise.
10308
10309 2012-04-12  Richard Guenther  <rguenther@suse.de>
10310
10311         * cfgloop.h (estimated_loop_iterations_int): Ditch
10312         'conservative' parameter.
10313         (max_stmt_executions_int): Likewise.
10314         (estimated_loop_iterations): Likewise.
10315         (max_stmt_executions): Likewise.
10316         (max_loop_iterations): Declare.
10317         (max_loop_iterations_int): Likewise.
10318         (estimated_stmt_executions): Likewise.
10319         (estimated_stmt_executions_int): Likewise.
10320         * tree-ssa-loop-niter.c (estimated_loop_iterations):
10321         Split parts to ...
10322         (max_loop_iterations): ... this.
10323         (estimated_loop_iterations_int): Split parts to ...
10324         (max_loop_iterations_int): ... this.
10325         (max_stmt_executions_int): Split parts to ...
10326         (estimated_stmt_executions_int): ... this.
10327         (max_stmt_executions): Split parts to ...
10328         (estimated_stmt_executions): ... this.
10329         * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
10330         * predict.c (predict_loops): Likewise.
10331         * tree-data-ref.c (max_stmt_executions_tree): Likewise.
10332         (analyze_siv_subscript_cst_affine): Likewise.
10333         (compute_overlap_steps_for_affine_1_2): Likewise.
10334         (analyze_subscript_affine_affine): Likewise.
10335         (init_omega_for_ddr_1): Likewise.
10336         * tree-parloops.c (parallelize_loops): Likewise.
10337         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10338         (may_eliminate_iv): Likewise.
10339         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10340         (loop_prefetch_arrays): Likewise.
10341         * tree-vrp.c (adjust_range_with_scev): Likewise.
10342
10343 2012-04-12  Oleg Endo  <olegendo@gcc.gnu.org>
10344
10345         * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
10346         * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
10347         Fix line width.
10348         (dump_table): Use bool type for need_align and have_df variables.
10349         (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
10350         (regs_used): Remove register modifier.
10351         (barrier_align): Move variables slot, credit, jump_to_next
10352         into if block above for loop.  Use bool type for jump_to_next.
10353         (sh_function_arg): Use NULL_RTX instead of 0.
10354
10355 2012-04-11  Andreas Schwab  <schwab@linux-m68k.org>
10356
10357         * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
10358         (bswapsi2): New expander.
10359
10360 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10361
10362         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
10363         0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
10364
10365 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10366
10367         PR rtl-optimization/52876
10368         * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
10369         Don't call mark_reg_pointer for incompatible pointer sign extension.
10370
10371         * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
10372         directly.
10373
10374 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
10375
10376         * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
10377         comparisons against TYPE_PRECISION.
10378         * tree-ssa-forwprop.c (combine_conversions): Likewise.
10379
10380 2012-04-11  Xinliang David Li  <davidxl@google.com>
10381
10382         * tree-passes.h: Remove TODO_dump_func.
10383         * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
10384         * trans-mem.c: Remove TODO_dump_func.
10385         * ira.c: Remove TODO_dump_func.
10386
10387 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10388
10389         * config/i386/i386.c (ix86_option_override_internal): Check
10390         SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
10391         after TARGET_64BIT is updated.
10392
10393 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
10394
10395         * config/sh/sh.h: Remove old secondary reload code.
10396
10397 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
10398
10399         * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
10400         (ready_reorder): ... this function.
10401
10402 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
10403
10404         * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
10405         sched_init calls.
10406
10407         * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
10408         insns so that no other insn is queued for a time before them.
10409
10410         * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
10411         unknown.
10412
10413 2012-04-11  Richard Guenther  <rguenther@suse.de>
10414
10415         PR middle-end/52621
10416         * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
10417         consider loop nesting.
10418         (evolution_function_is_univariate_p): Properly check the remainder
10419         for chrecs.
10420
10421 2012-04-11  Richard Guenther  <rguenther@suse.de>
10422
10423         PR middle-end/52918
10424         * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
10425
10426 2012-04-11  Nick Clifton  <nickc@redhat.com>
10427
10428         * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
10429         information, if requested.
10430
10431         * config/rx/rx.c (rx_expand_prologue): Likewise.
10432
10433 2012-04-11  Peter Bergner  <bergner@vnet.ibm.com>
10434             Michael Matz  <matz@suse.de>
10435
10436         PR target/16458
10437         * rtlanal.c (unsigned_reg_p): New function.
10438         Update copyright notice dates.
10439         * rtl.h (unsigned_reg_p): Prototype it.
10440         Update copyright notice dates.
10441         * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
10442         Update comment.
10443         * expr.c (expand_expr_real_1): Set register attributes.
10444         * stmt.c (expand_case): Likewise.
10445
10446 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
10447
10448         PR target/50751
10449         * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
10450         consider_sh2a and allow_zero.
10451         * config/sh/sh.c (sh_legitimate_index_p): Likewise.
10452         (disp_addr_displacement): New function.
10453         (sh_address_cost): Use disp_addr_displacement function instead
10454         of DISP_ADDR_OFFSET.
10455         (sh_legitimate_address_p): Adapt to changed
10456         sh_legitimate_index_p declaration.
10457         (sh_find_mov_disp_adjust): Remove HImode check.
10458         (sh_secondary_reload): Add HImode case.  Use satisfies_constraint_Sdd,
10459         disp_addr_displacement and max_mov_insn_displacement.
10460         (max_mov_insn_displacement): Remove HImode check.
10461         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
10462         DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
10463         * config/sh/constraints.md (K05, K13): New constraints.
10464         (K12): Correct comment.
10465         (Sdd): Do not use DISP_ADDR_P macro.
10466         (Snd, Sbw): Use satisfies_constraint_Sdd.
10467         * config/sh/sh.md (extendhisi2): Remove constraints from expander.
10468         (*extendhisi2_compact, movhi_i): Remove.
10469         (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
10470         *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
10471         *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
10472         *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
10473         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
10474         *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
10475         *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
10476         CONST_OK_FOR_Kxx.
10477         Add new peepholes for HImode displacement addressing.
10478
10479 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
10480
10481         * config/sh/sh.h (SIDI_OFF): Remove.
10482         * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
10483         DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
10484         or operand_subword.
10485
10486 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
10487
10488         PR target/52624
10489         * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
10490         (PowerPC AltiVec/VSX Built-in Functions): Remove it.
10491         * doc/md.texi (Standard Names): Add bswap.
10492         * builtin-types.def (BT_UINT16): New primitive type.
10493         (BT_FN_UINT16_UINT16): New function type.
10494         * builtins.def (BUILT_IN_BSWAP16): New.
10495         * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
10496         (expand_builtin) <BUILT_IN_BSWAP16>: New case.  Pass TARGET_MODE to
10497         expand_builtin_bswap.
10498         (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
10499         (fold_builtin_1): Likewise.
10500         (is_inexpensive_builtin): Likewise.
10501         * optabs.c (expand_unop): Deal with bswap in HImode specially.  Add
10502         missing bits for bswap to libcall code.
10503         * tree.c (build_common_tree_nodes): Build uint16_type_node.
10504         * tree.h (enum tree_index): Add TI_UINT16_TYPE.
10505         (uint16_type_node): New define.
10506         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
10507         * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
10508         above builtin.
10509         (rs6000_init_builtins): Likewise.
10510         * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
10511
10512 2012-04-11  Tristan Gingold  <gingold@adacore.com>
10513
10514         * doc/extend.texi (Type Attributes): Move paragraph.
10515
10516 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10517
10518         PR 24985
10519         * diagnostic.h (show_caret): Declare.
10520         (caret_max_width): Declare.
10521         (diagnostic_show_locus): Declare.
10522         * diagnostic.c (diagnostic_initialize): Initialize to false.
10523         (diagnostic_show_locus): New.
10524         (diagnostic_report_diagnostic): Call it.
10525         (getenv_columns): New.
10526         (adjust_line): New.
10527         (diagnostic_set_caret_max_width): New.
10528         * input.c (read_line): New.
10529         (location_get_source_line): New.
10530         * input.h (location_get_source_line): Declare.
10531         * toplev.c (general_init): Initialize show_caret from options.
10532         * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
10533         * opts.c (common_handle_option): Likewise.
10534         * pretty-print.h (pp_get_prefix): New.
10535         (pp_base_get_prefix): New.
10536         * common.opt (fdiagnostics-show-caret): New option.
10537         * doc/invoke.texi (fdiagnostics-show-caret): Document it.
10538
10539 2012-04-11  Richard Guenther  <rguenther@suse.de>
10540
10541         PR rtl-optimization/52881
10542         * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
10543
10544 2012-04-11  Richard Guenther  <rguenther@suse.de>
10545
10546         PR tree-optimization/52912
10547         * tree-ssa-threadupdate.c (thread_block): Tell the cfg
10548         manipulation code we are threading through a loop header
10549         to an exit destination.
10550
10551 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10552
10553         * tree.h (warn_if_unused_value): Move declaration from here.
10554         * stmt.c (warn_if_unused_value): Move definition from here.
10555
10556 2012-04-10  Michael Matz  <matz@suse.de>
10557
10558         * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
10559         grouped_stores.
10560         (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
10561         (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
10562         (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
10563         (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
10564         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
10565         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
10566         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
10567         (vect_record_strided_load_vectors): Rename to
10568         vect_record_grouped_load_vectors.
10569         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
10570         Rename use of above macros.
10571         (vect_verify_datarefs_alignment): Ditto.
10572         (vector_alignment_reachable_p): Ditto.
10573         (vect_peeling_hash_get_lowest_cost): Ditto.
10574         (vect_enhance_data_refs_alignment): Ditto.
10575         (vect_analyze_group_access): Ditto and rename stride to groupsize.
10576         (vect_analyze_data_ref_access): Rename "strided" to "grouped".
10577         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
10578         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
10579         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
10580         (vect_record_strided_load_vectors): Rename to
10581         vect_record_grouped_load_vectors.
10582         * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
10583         (destroy_loop_vec_info): Ditto.
10584         (vect_transform_loop): Ditto and rename strided_store to grouped_store.
10585         * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
10586         (vect_analyze_slp): Ditto.
10587         (new_bb_vec_info): Ditto.
10588         (destroy_bb_vec_info): Ditto.
10589         (vect_schedule_slp_instance): Ditto and rename strided_store to
10590         grouped_store.
10591         * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
10592         vect_cost_group_size.
10593         (vect_model_store_cost): Rename use of above macros and call
10594         to vect_cost_strided_group_size.
10595         (vect_model_load_cost): Ditto.
10596         (vectorizable_store): Ditto, rename strided_store to grouped_store
10597         and calls to renamed tree-vectorizer.h functions.
10598         (vectorizable_load): Ditto.
10599         (vect_transform_stmt): Rename use of above macros and strided_store
10600         to grouped_store.
10601
10602 2012-04-10  Jan Hubicka  <jh@suse.cz>
10603
10604         * cgraph.h: Remove misledaing comment on ipa-ref.h.
10605         (symtab_type): New enum.
10606         (symtab_node): New structure.
10607         (cgraph_node, varpool_node): Add symbol base type.
10608         (cgraph, varpool): New accestor functions.
10609         * cgraph.c (cgraph_create_node_1): Set symbol type.
10610         * varpool.c (varpool_node): Set symbol type.
10611
10612 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
10613             Richard Sandiford  <rdsandiford@googlemail.com>
10614
10615         * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
10616
10617 2012-04-10  Richard Guenther  <rguenther@suse.de>
10618
10619         PR middle-end/52888
10620         * gimple-low.c (gimple_check_call_args): Properly account for
10621         compatible aggregate types.
10622
10623 2012-04-10  Richard Guenther  <rguenther@suse.de>
10624
10625         * toplev.h (tree_rest_of_compilation): Remove.
10626         * tree-optimize.c (tree_rest_of_compilation): Likewise.
10627         * cgraph.h (tree_rest_of_compilation): Declare.
10628         * tree-optimize.c (tree_rest_of_compilation): Move ...
10629         * cgraphunit.c (tree_rest_of_compilation): ... here.
10630         * cgraph.c (cgraph_add_new_function): Adjust.
10631         * Makefile.in (tree-optimize.o): Adjust.
10632         (cgraphunit.o): Likewise.
10633
10634 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
10635
10636         PR tree-optimization/52870
10637         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
10638         presumed pattern statement is within the same loop or basic block.
10639
10640 2012-04-10  Tristan Gingold  <gingold@adacore.com>
10641
10642         * gengtype.c (main): Make uintptr_t a known type.
10643
10644 2012-04-10  Richard Guenther  <rguenther@suse.de>
10645
10646         * tree-pass.h (tree_lowering_passes): Remove.
10647         * tree-optimize.c (tree_lowering_passes): Remove.
10648         * cgraph.c (cgraph_add_new_function): Inline relevant parts
10649         of tree_lowering_passes, avoid redundant call of early local passes.
10650         * cgraphunit.c (cgraph_lower_function): Fold into ...
10651         (cgraph_analyze_function): ... its single caller.  Inline
10652         relevant parts of tree_lowering_passes.
10653
10654 2012-04-09  H.J. Lu  <hongjiu.lu@intel.com>
10655
10656         PR other/52777
10657         * config/pa/pa.opt: Remove SIO and GNU_LD.
10658
10659 2012-04-09  Jan Hubicka  <jh@suse.cz>
10660
10661         PR lto/52722
10662         PR lto/51765
10663         PR lto/52634
10664         * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
10665         boundary, add its target too.
10666         * lto.c (add_references_to_partition): Add also aliased nodes.
10667         (add_cgraph_node_to_partition,
10668         add_varpool_node_to_partition): Work on nodes, not functions/variables;
10669         when adding alias, add also the aliased object.
10670
10671 2012-04-09  Uros Bizjak  <ubizjak@gmail.com>
10672
10673         PR target/52883
10674         * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
10675         VOIDmode immediate operands.
10676         * config/i386/constraints.md (Wz): New constraint.
10677         * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
10678
10679 2012-04-09  Eric Botcazou  <ebotcazou@adacore.com>
10680
10681         PR target/52717
10682         * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
10683         the DECL generated for the special GOT helper.
10684
10685 2012-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
10686
10687         * config/sh/constraints.md: Update list of constraints in
10688         comment block.
10689         (Sr0): Remove unused memory constraint.
10690
10691 2012-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10692
10693         * tree-pretty-print.h: Update comment.
10694
10695 2012-04-08  Oleg Endo  <olegendo@gcc.gnu.org>
10696
10697         * config/sh/sh.md: Use braced string notation where applicable.
10698         (*prefetch_i4, prefetch_m2a): Merge into ...
10699         (*prefetch): ... this new insn.
10700
10701 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
10702
10703         * config/sh/sh.h (high_life_started): Remove
10704         * config/sh/predicates.md (general_movdst_operand): Use
10705         'reload_in_progress' instead of 'high_life_started'.
10706         * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
10707         divsi_inv_fp): Likewise.
10708
10709 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
10710
10711         * config/sh/sh-protos.h (prepare_move_operands): Return void
10712         instead of int.
10713         * config/sh/sh.c (prepare_move_operands): Likewise.
10714         * config/sh/sh.md: Remove return value checks of prepare_move_operands.
10715
10716 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
10717
10718         * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
10719         general_movsrc_operand, general_movdst_operand, arith_reg_operand,
10720         fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
10721         logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
10722         commutative_float_operator, noncommutative_float_operator,
10723         sh_handle_pragma): Remove.
10724
10725 2012-04-06  Sandra Loosemore  <sandra@codesourcery.com>
10726
10727         * doc/invoke.texi:  Clean up Texinfo markup throughout the file.
10728         Use @option markup on command-line options.  Use @samp markup on
10729         literal keywords to options.  Use @code markup on code fragments.
10730         Use other markup in preference to quotation marks in the text.
10731         Add markup to some passages without any.
10732
10733 2012-04-06  Mike Stump  <mikestump@comcast.net>
10734
10735         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
10736
10737 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
10738
10739         * config/sh/sh.c (hi_const): Remove.
10740         (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
10741         of hi_const.
10742
10743 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
10744
10745         * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
10746         to bool.
10747         * config/sh/sh.c (sh_expand_t_scc): Likewise.
10748         * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
10749         calling sh_expand_t_scc.
10750
10751 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
10752
10753         * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
10754         nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
10755         sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
10756         reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
10757         sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
10758         sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
10759         check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
10760         sh2a_is_function_vector_call): Use bool as return type.
10761         (sh_pass_in_reg_p): Remove.
10762         * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
10763         flow_dependent_p, sh2a_function_vector_p, expand_block_move,
10764         expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
10765         sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
10766         sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
10767         sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
10768         fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
10769         sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
10770         sh_loads_bankedreg_p): Use bool as return type.
10771         (nonpic_symbol_mentioned_p): Use bool as return type.  Remove
10772         'register' modifier.
10773
10774 2012-04-06  Matt Turner  <mattst88@gmail.com>
10775
10776         * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
10777
10778 2012-04-06  Eric Botcazou  <ebotcazou@adacore.com>
10779
10780         * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
10781         of the destination isn't also a FP_REGS register.
10782
10783 2012-04-05  Teresa Johnson  <tejohnson@google.com>
10784             H.J. Lu  <hongjiu.lu@intel.com>
10785
10786         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
10787         * config/i386/i386.md (move immediate to memory peephole2):
10788         Add cases for HImode move when LCP stall avoidance is needed.
10789         * config/i386/i386.c (initial_ix86_tune_features): Initialize
10790         X86_TUNE_LCP_STALL entry.
10791
10792 2012-04-05  Uros Bizjak  <ubizjak@gmail.com>
10793
10794         PR target/52882
10795         * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
10796         CONST_INT operands, zero-extended with AND.
10797
10798 2012-04-05  Oleg Endo  <olegendo@gcc.gnu.org>
10799
10800         PR target/50751
10801         * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
10802         first argument instead of mode size.  Move displacement calculations
10803         to ...
10804         (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
10805         ... these new functions.
10806         (disp_adjust): Remove max_mov_disp field.
10807         (sh_legitimate_index_p): Use max_mov_insn_displacement and
10808         mov_insn_alignment_mask.
10809         (sh_address_cost): Use max_mov_insn_displacement.
10810
10811 2012-04-05  Andrew Stubbs  <ams@codesourcery.com>
10812
10813         * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
10814         (arch_enabled): Handle new arch types.
10815         (one_cmpldi2): Add NEON support.
10816
10817 2012-04-05  Richard Guenther  <rguenther@suse.de>
10818
10819         * gimple.c (walk_gimple_op): Compute val_only for the LHS
10820         of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
10821         (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
10822         * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
10823         ... here and make static.
10824         * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
10825         Remove.
10826
10827 2012-04-05  Richard Guenther  <rguenther@suse.de>
10828
10829         * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
10830         basic-block before removing it.
10831
10832 2012-04-05  Richard Guenther  <rguenther@suse.de>
10833
10834         * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
10835         version namespace as we release the freelist.
10836
10837 2012-04-05  Richard Guenther  <rguenther@suse.de>
10838
10839         * tree-nrv.c (tree_nrv): Release VDEFs.
10840         * tree-sra.c (sra_modify_constructor_assign): Likewise.
10841         (sra_modify_assign): Likewise.
10842         * tree-vect-stmts.c (vect_remove_stores): Likewise.
10843         * tree-vect-loop.c (vect_transform_loop): Likewise.
10844         * tree-ssa-dom.c (optimize_stmt): Likewise.
10845         * tree-vect-slp.c (vect_schedule_slp): Likewise.
10846         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
10847
10848 2012-04-05  Richard Guenther  <rguenther@suse.de>
10849
10850         * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
10851         cleanup.
10852         * gimple.h (gsi_remove): Adjust.
10853         * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
10854         * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
10855         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
10856         * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
10857         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
10858         * tree-ssa-pre.c (eliminate): Likewise.
10859
10860 2012-04-04  Mike Stump  <mikestump@comcast.net>
10861
10862         * doc/rtl.texi (const_double): Document as sign-extending.
10863         * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
10864         * emit-rtl.c (immed_double_int_const): Refine to state the
10865         value is signed.
10866         * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
10867         CONST_DOUBLE integers.
10868         (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
10869         negative values are converted.  Fix conversions bigger than
10870         HOST_BITS_PER_WIDE_INT.
10871         (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
10872         (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
10873         * explow.c (plus_constant_mode): Add.
10874         (plus_constant): Implement with plus_constant_mode.
10875         * rtl.h (plus_constant_mode): Add.
10876
10877 2012-04-04  Richard Guenther  <rguenther@suse.de>
10878
10879         PR tree-optimization/52808
10880         * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
10881         * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
10882
10883 2012-04-04  Tristan Gingold  <gingold@adacore.com>
10884
10885         * expr.c (expand_expr_real_2): Handle larger sizetype in
10886         POINTER_PLUS_EXPR.
10887
10888 2012-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10889
10890         * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
10891         to m2a-single instead of m2e.
10892
10893 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
10894
10895         * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
10896         Change type of BITOFFSET to signed.  Make sure the lower bound of
10897         the computed range is non-negative by adjusting OFFSET and BITPOS.
10898         (expand_assignment): Adjust call to get_bit_range.
10899
10900 2012-04-03  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
10901
10902         * h8300/h8300.c (h8300_current_function_monitor_function_p):
10903         New function. Added to check monitor functions.
10904         (h8300_option_override): Modified to generate error/warning
10905         messages for invalid combinations of different command line
10906         options.
10907         * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
10908         save EXR on stack for monitor function in case of H8S target
10909         when "-mno-exr" is passed.
10910         * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
10911         Add prototype.
10912         * doc/invoke.texi: Document H8S options.
10913
10914 2012-04-03  Tristan Gingold  <gingold@adacore.com>
10915
10916         * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
10917         of gcc_AC_FUNC_MMAP_BLACKLIST.
10918         * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
10919         * Makefile.in (aclocal_deps): Add mmap.m4.
10920         * configure: Regenerate.
10921         * aclocal.m4: Regenerate.
10922
10923 2012-04-03  Richard Guenther  <rguenther@suse.de>
10924
10925         PR tree-optimization/52808
10926         * tracer.c (tail_duplicate): Return whether we have duplicated
10927         any block.
10928         (tracer): If we have duplicated any block, cleanup the CFG.
10929         * cfghooks.c (duplicate_block): If we duplicated a loop
10930         header but not its loop, destroy the loop because it now has
10931         multiple entries.
10932         * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
10933         the cfg manipulation routines we are not creating a multiple
10934         entry loop.
10935
10936 2012-04-03  Tristan Gingold  <gingold@adacore.com>
10937
10938         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
10939         'byte' alignment.
10940         (vms_c_common_override_options): Allow parameterless variadic
10941         functions.
10942
10943 2012-04-03  Jakub Jelinek  <jakub@redhat.com>
10944
10945         PR tree-optimization/52835
10946         * tree-data-ref.c (build_rdg): Return NULL if
10947         compute_data_dependences_for_loop failed.
10948
10949 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
10950
10951         * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
10952         for REAL_CST as well.
10953         (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
10954         In the bitfield case, if the value is a REAL_CST, convert it first to
10955         an INTEGER_CST.
10956
10957 2012-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10958
10959         * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
10960         for --with-abi={x32|mx32} or --with-multilib-list=mx32.
10961         (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
10962
10963         * config/i386/biarchx32.h: New.
10964
10965 2012-04-02  Anatoly Sokolov  <aesok@post.ru>
10966
10967         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
10968         * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10969         (arm_preferred_reload_class): New function.
10970
10971 2012-04-02  Richard Guenther  <rguenther@suse.de>
10972
10973         PR tree-optimization/52756
10974         * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
10975         (thread_through_loop_header): After threading through the loop latch
10976         remove the split part from the loop and clear further threading
10977         opportunities that would create a multiple entry loop.
10978
10979 2012-04-02  Richard Guenther  <rguenther@suse.de>
10980
10981         PR rtl-optimization/52800
10982         * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
10983         CLEANUP_CFG_CHANGED.
10984
10985 2012-04-02  Richard Guenther  <rguenther@suse.de>
10986
10987         PR middle-end/52803
10988         * loop-init.c (gate_handle_loop2): Destroy loops here if
10989         we don't enter RTL loop optimizers.
10990
10991 2012-04-02  Uros Bizjak  <ubizjak@gmail.com>
10992
10993         Partially revert:
10994         2012-03-29  Richard Guenther  <rguenther@suse.de>
10995
10996         * rtl.h (extended_count): Remove.
10997         * combine.c (extended_count): Remove.
10998
10999 2012-04-02  Dodji Seketeli  <dodji@redhat.com>
11000
11001         PR c++/40942
11002         * pt.c (more_specialized_fn):  Don't apply decay conversion to
11003         types of function parameters.
11004
11005 2012-04-02  Tristan Gingold  <gingold@adacore.com>
11006
11007         * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
11008         (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
11009         (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
11010         (ggc_pch_this_base): Use uintptr_t instead of size_t.
11011
11012 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11013
11014         PR bootstrap/52784
11015         * config/i386/i386.c (ix86_option_override_internal): Don't
11016         check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
11017
11018 2012-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11019
11020         * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
11021         (stmt_can_make_abnormal_goto): Use it.
11022         (is_ctrl_altering_stmt): Likewise.
11023
11024 2012-03-30  Naveen H.S  <naveen.S@kpitcummins.com>
11025             Kaz Kojima  <kkojima@gcc.gnu.org>
11026
11027         * config/sh/sh.c (push_regs): Skip banked registers when
11028         resbank attribute is specified.
11029         (sh_expand_epilogue): Likewise.
11030
11031 2012-03-30  Richard Henderson  <rth@redhat.com>
11032
11033         PR debug/52727
11034         * combine-stack-adj.c (prev_active_insn_bb): New.
11035         (next_active_insn_bb): New.
11036         (force_move_args_size_note): New.
11037         (combine_stack_adjustments_for_block): Use it.
11038
11039 2012-03-30  Richard Henderson  <rth@redhat.com>
11040
11041         * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
11042         (ix86_expand_vector_init_duplicate): Initialize it.
11043         (expand_vec_perm_palignr): Likewise.
11044         (ix86_expand_vec_perm_const): Likewise.
11045         (ix86_vectorize_vec_perm_const_ok): Likewise.
11046         (expand_vec_perm_blend): Use it.
11047         (expand_vec_perm_vpermil): Likewise.
11048         (expand_vec_perm_pshufb): Likewise.
11049         (expand_vec_perm_1): Likewise.
11050         (expand_vec_perm_pshuflw_pshufhw): Likewise.
11051         (expand_vec_perm_interleave2): Likewise.
11052         (expand_vec_perm_vpermq_perm_1): Likewise.
11053         (expand_vec_perm_vperm2f128): Likewise.
11054         (expand_vec_perm_interleave3): Likewise.
11055         (expand_vec_perm_vperm2f128_vblend): Likewise.
11056         (expand_vec_perm_vpshufb2_vpermq): Likewise.
11057         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
11058         (expand_vec_perm_broadcast): Likewise.
11059         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
11060
11061 2012-03-30  Richard Henderson  <rth@redhat.com>
11062
11063         * dwarf2out.c (gen_variable_die): Initialize off.
11064
11065 2012-03-30  Tristan Gingold  <gingold@adacore.com>
11066
11067         * config/vms/vms-f.c: New file.
11068         * config/vms/t-vms (vms-f.o): New rule.
11069         * config.gcc (*-*-*vms*): Define fortran_target_objs.
11070
11071 2012-03-30  Richard Guenther  <rguenther@suse.de>
11072
11073         PR tree-optimization/52754
11074         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
11075         propagate arbitrary addresses into really plain dereferences.
11076
11077 2012-03-30  Richard Guenther <rguenther@suse.de>
11078
11079         PR middle-end/52772
11080         * except.c (emit_to_new_bb_before): Move loop updating ...
11081         (dw2_build_landing_pads): ... here.  Use a proper block for
11082         querying the loop father.
11083
11084 2012-03-30  Tristan Gingold  <gingold@adacore.com>
11085
11086         * config/ia64/ia64.c (ia64_section_type_flags): Remove
11087         common_object attribute handling.
11088         (SECTION_VMS_OVERLAY): Remove
11089         (ia64_vms_common_object_attribute): Replace abort with an assert.
11090         Do not set DECL_SECTION_NAME.
11091         (ia64_vms_output_aligned_decl_common): Handle common_object
11092         attribute.
11093         (ia64_vms_elf_asm_named_section): Remove.
11094         * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
11095
11096 2012-03-30  Richard Guenther  <rguenther@suse.de>
11097
11098         PR middle-end/52786
11099         * double-int.c (rshift_double): Remove not needed cast.
11100
11101 2012-03-30  Richard Guenther  <rguenther@suse.de>
11102
11103         * tree-affine.h (print_aff): Remove.
11104         * tree-affine.c (print_aff): Make static.
11105         * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
11106         (get_references_in_stmt): Likewise.
11107         (print_direction_vector): Likewise.
11108         (print_dir_vectors): Likewise.
11109         (print_dist_vectors): Likewise.
11110         (dump_subscript): Likewise.
11111         (dump_ddrs): Likewise.
11112         (dump_dist_dir_vectors): Likewise.
11113         (dump_data_references): Likewise.
11114         (dump_data_dependence_relation): Likewise.
11115         (dump_data_dependence_direction): Likewise.
11116         (dump_rdg_vertex): Likewise.
11117         (dump_rdg_component): Likewise.
11118         (debug_ddrs): Declare.
11119         (struct data_ref_loc_d): Move ...
11120         * tree-data-ref.c (struct data_ref_loc_d): ... here.
11121         (get_references_in_stmt): Make static.
11122         (dump_data_references): Likewise.
11123         (dump_subscript): Likewise.
11124         (print_direction_vector): Likewise.
11125         (print_dir_vectors): Likewise.
11126         (print_dist_vectors): Likewise.
11127         (dump_data_dependence_relation): Likewise.
11128         (dump_dist_dir_vectors): Likewise.
11129         (dump_ddrs): Likewise.
11130         (dump_rdg_vertex): Likewise.
11131         (dump_rdg_component): Likewise.
11132         (debug_ddrs): New function.
11133         (access_matrix_get_index_for_parameter): Remove.
11134
11135 2012-03-30  Tristan Gingold  <gingold@adacore.com>
11136
11137         * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
11138         (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
11139         (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
11140         (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
11141         (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
11142         (vms_patch_builtins): Handle new flags
11143         * config/vms/vms-crtlmap.map: Completed using nm on
11144         c and math system libraries.
11145         * config/vms/make-crtlmap.awk: Handle any number of flags.
11146
11147 2012-03-30  Martin Jambor  <mjambor@suse.cz>
11148
11149         * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
11150         is a builtin_stack_save in a dominating BB.
11151
11152 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
11153
11154         * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
11155         crossing 128bit lane boundary.
11156
11157 2012-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11158
11159         * ira-color.c (setup_left_conflict_sizes_p): Process all
11160         conflicting objects.
11161
11162 2012-03-29  Jakub Jelinek  <jakub@redhat.com>
11163
11164         PR tree-optimization/52760
11165         * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
11166         shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
11167
11168 2012-03-29  Richard Guenther  <rguenther@suse.de>
11169
11170         * cgraph.h (cgraph_materialize_all_clones): Remove.
11171         (reset_inline_failed): Likewise.
11172         * cgraphunit.c (cgraph_materialize_all_clones): Make static.
11173         * cgraphbuild.c (reset_inline_failed): Remove.
11174         * rtl.h (cse_main): Remove.
11175         (extended_count): Likewise.
11176         * cse.c (dump_class): Mark as DEBUG_FUNCTION.
11177         (cse_main): Make static.
11178         * combine.c (extended_count): Remove.
11179         (dump_combine_stats): Mark as DEBUG_FUNCTION.
11180         * basic-block.h (reorder_basic_blocks): Remove.
11181         * bb-reorder.c (reorder_basic_blocks): Make static.
11182         * Makefile.in (dse.o): Remove dse.h dependency.
11183         * dse.h: Remove.
11184         * dse.c (gate_dse): Remove.
11185         (clear_alias_mode_eq): Likewise.
11186         (clear_alias_mode_hash): Likewise.
11187         (dse_record_singleton_alias_set): Likewise.
11188         (dse_invalidate_singleton_alias_set): Likewise.
11189
11190 2012-03-29  H.J. Lu  <hongjiu.lu@intel.com>
11191
11192         * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
11193         crtbegin_so%O%s for -shared.
11194         (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
11195
11196 2012-03-29  Richard Guenther  <rguenther@suse.de>
11197
11198         * tree-flow.h (struct pre_expr_d): Remove forward declaration.
11199         (add_to_value): Remove.
11200         (print_value_expressions): Likewise.
11201         * tree-ssa-pre.c (add_to_value): Make static.
11202         (print_value_expressions): Likewise.
11203         * gimple.h (gimple_adjust_this_by_delta): Remove.
11204         * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
11205
11206 2012-03-29  Richard Guenther  <rguenther@suse.de>
11207
11208         PR middle-end/50708
11209         * double-int.h (rshift_double): Remove.
11210         * double-int.c (lshift_double): Use absu_hwi to make count positive.
11211         (rshift_double): Make static, take unsigned count argument,
11212         remove handling of negative count argument.
11213         (double_int_rshift): Dispatch to lshift_double.
11214
11215 2012-03-28  H.J. Lu  <hongjiu.lu@intel.com>
11216
11217         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
11218         OPTION_MASK_ABI_64.
11219
11220         * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
11221         (SPEC_X32): Likewise.
11222         (MULTILIB_DEFAULTS): Likewise.
11223
11224         * config/i386/i386.c (isa_opts): Remove -m64.
11225         (ix86_target_string): Properly handle -m32/-m64/-mx32.
11226         (ix86_option_override_internal): Properly
11227         set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
11228         handle -m32, -m64 and -mx32.
11229
11230         * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
11231         with OPTION_ABI_X32.  Moved after TARGET_LP64.
11232         (TARGET_LP64): Changed to OPTION_ABI_64.
11233
11234         * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
11235         (mx32): Replace ISA_X32 with ABI_X32.
11236
11237 2012-03-28  Eric Botcazou  <ebotcazou@adacore.com>
11238
11239         * tree.c (tree_size) <VECTOR_CST>: New case.
11240
11241 2012-03-28  Uros Bizjak  <ubizjak@gmail.com>
11242
11243         * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
11244         (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
11245
11246 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
11247
11248         PR middle-end/52691
11249         * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
11250         __builtin_va_start to __builtin_next_arg if the latter is
11251         builtin_decl_explicit_p rather than when it is not.
11252
11253         PR middle-end/52750
11254         * tree-vect-generic.c (vector_element): Perform multiplication
11255         for pos in bitsizetype type instead of idx type.
11256
11257 2012-03-28  Richard Guenther  <rguenther@suse.de>
11258
11259         * loop-init.c (loop_optimizer_init): If loops are preserved
11260         perform incremental initialization of required loop features.
11261         (loop_optimizer_finalize): If loops are to be preserved only
11262         clean up optional loop features.
11263         (rtl_loop_done): Forcefully free loops here.
11264         * cgraph.c (cgraph_release_function_body): Forcefully free loops.
11265         * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
11266         to existing loops.
11267         (construct_init_block): Likewise.
11268         (construct_exit_block): Likewise.
11269         (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state.  Cleanup
11270         the CFG after expanding.
11271         * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
11272         If we needed to calculate them, free them afterwards.
11273         * tree-pass.h (PROP_loops): New define.
11274         * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
11275         * basic-block.h (CLEANUP_CFG_CHANGED): New.
11276         * cfgcleanup.c (merge_blocks_move): Protect loop latches.
11277         (cleanup_cfg): If we did something and have loops around, fix them up.
11278         * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
11279         with CLEANUP_CFG_CHANGED.
11280         * cfghooks.c (merge_blocks): If we merge a loop header into
11281         its predecessor, update the loop structure.
11282         (duplicate_block): If we copy a loop latch, adjust loop state
11283         to note we may have multiple latches.
11284         (delete_basic_block): Mark loops for fixup if we remove a loop.
11285         * cfganal.c (forwarder_block_p): Protect loop latches, headers
11286         and preheaders.
11287         * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
11288         (cfg_layout_can_merge_blocks_p): Likewise.
11289         * cprop.c (bypass_block): If we create a loop with multiple
11290         entries, mark it for removal.
11291         * except.c (emit_to_new_bb_before): Add the new basic-block
11292         to existing loops.
11293         * tree-eh.c (lower_resx): Likewise.
11294         * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
11295         (expand_omp_taskreg): Likewise.
11296         * tree-inline.c (initialize_cfun): Likewise.
11297         * tree-mudflap.c (add_bb_to_loop): Prototype.
11298         (mf_build_check_statement_for): Properly add new basic-blocks
11299         to existing loops.
11300         * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
11301         if we remove a loop.
11302         (thread_through_loop_header): Likewise.
11303         * trans-mem.c (tm_log_emit_save_or_restores): Properly add
11304         new basic-blocks to existing loops.
11305         (expand_transaction): Likewise.
11306         * Makefile.in (except.o): Add $(CFGLOOP_H).
11307         (expr.o): Likewise.
11308         (cgraph.o): Likewise.
11309         (cprop.o): Likewise.
11310         (cfgexpand.o): Likewise.
11311         (cfganal.o): Likewise.
11312         (trans-mem.o): Likewise.
11313         (tree-eh.o): Likewise.
11314
11315 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
11316
11317         PR target/52692
11318         * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
11319         (avr_builtin_decl): New static function.
11320         (struct avr_builtin_description, avr_bdesc): Move up.
11321         Add GTY marker. Add field fndecl. Remove redundant field id.
11322         (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
11323         (avr_expand_builtin): Code cleanup because .id is removed.
11324
11325 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
11326
11327         PR target/52737
11328         * config.gcc (tm_file): Remove avr/multilib.h.
11329
11330         * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
11331
11332         * config/avr/genmultilib.awk: Remove code to generate multilib.h.
11333         (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
11334         * config/avr/t-avr: Remove generation of multilib.h.
11335         * config/avr/t-multilib: Regenerate.
11336         * config/avr/multilib.h: Remove.
11337         * config/avr/avr.opt (-msp8): New option.
11338         (avr_sp8): New variable.
11339         * config/avr/driver-avr.c (avr_device_to_sp8): New function.
11340         * config/avr/avr.h (AVR_HAVE_SPH): New define.
11341         (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
11342         (avr_device_to_sp8): New prototype.
11343         (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
11344         (DRIVER_SELF_SPECS): New define.
11345         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
11346         __AVR_SP8__, __AVR_HAVE_SPH__.
11347         * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
11348         AVR_HAVE_8BIT_SP to decide if SP_H is present.
11349         (avr_file_start): Ditto.
11350
11351 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
11352
11353         PR target/52736
11354         * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
11355         instead of 8 in adjust_address.
11356
11357 2012-03-27  Aurelien Buhrig  <aurelien.buhrig.gcc@gmail.com>
11358
11359         PR middle-end/51893
11360         * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
11361         targets.
11362
11363 2012-03-27  Oleg Endo  <olegendo@gcc.gnu.org>
11364
11365         PR target/50751
11366         * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
11367         Rearrange conditional logic.  Move displacement address calculations
11368         to ...
11369         (sh_find_mov_disp_adjust): ... this new function.
11370
11371 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11372
11373         * config/arm/arm.opt (mapcs): Remove MaskExists.
11374         * config/cris/linux.opt (mno-gotplt): Likewise.
11375         * config/i386/i386.opt (mhard-float): Likewise.
11376         (msse4): Likewise.
11377         (mno-sse4): Likewise.
11378         * config/m68k/m68k.opt (mhard-float): Likewise.
11379         * config/mep/mep.op (mcop32): Likewise.
11380         * config/pa/pa-hpux.opt (msio): Likewise.
11381         * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
11382         * config/picochip/picochip.opt (mlittle): Likewise.
11383         * config/sh/sh.opt (mrenesas): Likewise.
11384         * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
11385         * config/sparc/sparc.opt (mhard-float): Likewise.
11386         * config/v850/v850.opt (mv850es): Likewise.
11387         * config/vax/vax.opt (mg-float): Likewise.
11388
11389 2012-03-27  Martin Jambor  <mjambor@suse.cz>
11390
11391         PR middle-end/52693
11392         * tree-sra.c (sra_modify_assign): Do not call
11393         load_assign_lhs_subreplacements when working with an unscalarizable
11394         region.
11395
11396 2012-03-27  Uros Bizjak  <ubizjak@gmail.com>
11397
11398         PR target/52698
11399         * config/i386/i386-protos.h (ix86_legitimize_reload_address):
11400         New prototype.
11401         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
11402         * config/i386/i386.c: Include reload.h.
11403         (ix86_legitimize_reload_address): New function.
11404
11405 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11406
11407         * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
11408         hasn't been allocated.  Define a target macro for Mask and
11409         InverseMask if it hasn't been defined.  Remove MaskExists handling.
11410
11411         * doc/options.texi: Remove MaskExists.
11412
11413 2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>
11414
11415         PR target/52667
11416         * config/sh/sh.c (find_barrier): Add equality check of last_got
11417         to avoid going above orig insn. Update comments.
11418
11419 2012-03-27  Richard Guenther  <rguenther@suse.de>
11420
11421         PR middle-end/52720
11422         * fold-const.c (try_move_mult_to_index): Handle &x.array more
11423         explicitely.
11424
11425 2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>
11426
11427         * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
11428         of a unit before computing the offset in units.
11429         * expr.c (get_bit_range): Return the null range if the enclosing record
11430         is part of a larger bit field.
11431
11432 2012-03-27  Tristan Gingold  <gingold@adacore.com>
11433
11434         * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
11435         * config/ia64/ia64.md: Remove mode in template.
11436         Sign extend operand in expand_simple_binop.
11437         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
11438         CASE_VECTOR_MODE instead of TARGET_ILP32.
11439         (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
11440
11441 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
11442
11443         * varasm.c (assemble_external): #if 0 out the new assert from the
11444         previous commit, it breaks the Java and Go front ends.
11445
11446 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
11447
11448         * toplev.c (check_global_declaration_1): Do not call assemble_external.
11449         * expr.c (emit_block_move_libcall_fn): Likewise.
11450         (clear_storage_libcall_fn): Likewise.
11451         (expand_expr_addr_expr_1): Likewise.
11452         (expand_expr_real_1): Likewise.
11453         * calls.c (rtx_for_function_call): Likewise.
11454
11455         * varasm.c (assemble_external): Assert this function is only called
11456         during or after expanding to RTL.
11457
11458 2012-03-26  Martin Jambor  <mjambor@suse.cz>
11459
11460         PR tree-optimization/50052
11461         * tree-sra.c (tree_non_aligned_mem_p): Removed.
11462         (tree_non_aligned_mem_for_access_p): Likewise.
11463         (build_accesses_from_assign): Removed strict alignment requirements
11464         checks.
11465         (access_precludes_ipa_sra_p): Likewise.
11466
11467 2012-03-26  Richard Guenther  <rguenther@suse.de>
11468
11469         PR tree-optimization/52701
11470         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
11471         compute and set the evolution part of PHI nodes.
11472
11473 2012-03-26  Richard Guenther  <rguenther@suse.de>
11474
11475         PR tree-optimization/52721
11476         * tree-vect-stmts.c (vect_init_vector): Handle scalars.
11477
11478 2012-03-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
11479
11480         PR tree-optimization/52686
11481         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
11482         WIDEN_LSHIFT_EXPR.
11483
11484 2012-03-26  Tristan Gingold  <gingold@adacore.com>
11485
11486         * config/alpha/vms.h (LINK_SPEC): Simplify.
11487         (STARTFILE_SPEC): Remove -mvms-return-codes handling.
11488         (NAME__MAIN, SYMBOL__MAIN): Remove.
11489         (VMS_DEBUG_MAIN_POINTER): Remove.
11490         * config/ia64/vms.h: Likewise.
11491         * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
11492         code to vms.c.  Call vms_start_function.
11493         * config/ia64/ia64.c (ia64_start_function): Likewise.
11494         * config/vms/vms-protos.h (vms_start_function): Declare.
11495         * config/vms/vms.c (vms_start_function): New function.
11496         * config/vms/vms.h (MATH_LIBRARY): Define.
11497         (VMS_DEBUG_MAIN_POINTER): Define.
11498
11499 2012-03-26  Eric Botcazou  <ebotcazou@adacore.com>
11500
11501         PR rtl-optimization/52629
11502         * reload1.c (count_pseudo): Short-circuit common case.
11503         (count_spilled_pseudo): Return early for pseudos without hard regs.
11504         Assert that the pseudo has got a hard reg before manipulating it.
11505
11506 2012-03-24  Jan Hubicka  <jh@suse.cz>
11507
11508         PR lto/51663
11509         * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
11510         (decide_is_variable_needed): Do not handle toplevel reorder here.
11511         * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
11512         * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
11513         even at -O0.
11514
11515 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11516
11517         * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
11518         and str_bitsize instead of more convoluted expressions.
11519
11520 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11521
11522         PR target/52610
11523         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
11524
11525 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11526
11527         PR target/52656
11528         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
11529
11530 2012-03-23  Martin Jambor  <mjambor@suse.cz>
11531
11532         * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
11533
11534 2012-03-23  Richard Guenther  <rguenther@suse.de>
11535
11536         PR tree-optimization/52678
11537         * tree-vectorizer.h (struct _stmt_vec_info): Add
11538         loop_phi_evolution_part member.
11539         (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
11540         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
11541         STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
11542         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
11543         Use the cached evolution part and the PHI nodes value from
11544         the loop preheader edge instead of re-analyzing the evolution.
11545
11546 2012-03-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
11547
11548         * config/mips/mips-tables.opt: Update.
11549         * config/mips/mips.md (processor): Add xlp.
11550         * config/mips/mips-cpus.def: Add xlp.
11551         * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
11552         5KF for now.
11553         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
11554         * doc/invoke.texi: Mention XLP.
11555
11556 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
11557
11558         PR middle-end/52547
11559         * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
11560         on any new_local_var_chain vars declared during recursing on
11561         GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
11562
11563 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
11564
11565         * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
11566         (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
11567         (ASM_OUTPUT_LOCAL): Ditto.
11568         (ASM_OUTPUT_COMMON): Remove.
11569         * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
11570         * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
11571
11572 2012-03-22  Jan Hubicka  <jh@suse.cz>
11573
11574         PR middle-end/51737
11575         * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
11576         parameter.
11577         * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
11578         * ipa-inline-transform.c (save_inline_function_body): Remove
11579         copied clone if needed.
11580         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
11581
11582 2012-03-22  Richard Guenther  <rguenther@suse.de>
11583
11584         PR middle-end/52666
11585         * fold-const.c (fold_ternary_loc): Fix typo.
11586
11587 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
11588
11589         PR target/52496
11590         * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
11591         (unspecv): Add UNSPECV_MEMORY_BARRIER.
11592         (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
11593         (delay_cycles_1, delay_cycles_2): Ditto.
11594         (delay_cycles_3, delay_cycles_4): Ditto.
11595         (nopv, *nopv): Ditto.
11596         (sleep, *sleep): Ditto.
11597         (wdr, *wdr): Ditto.
11598
11599 2012-03-22  Richard Guenther  <rguenther@suse.de>
11600
11601         PR tree-optimization/52548
11602         * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
11603         because of clobbers.
11604         (prune_clobbered_mems): New function.
11605         (compute_antic_aux): Use it to prune ANTIC_OUT.
11606         (compute_partial_antic_aux): Use it to prune PA_IN.
11607         (compute_avail): Only insert expressions into EXP_GEN that are not
11608         invalidated when translated up to the beginning of the block.
11609
11610 2012-03-22  Richard Guenther  <rguenther@suse.de>
11611
11612         PR tree-optimization/52638
11613         * tree-vect-stmts.c (vect_init_vector_1): New function, split
11614         out from ...
11615         (vect_init_vector): ... here.  Handle scalar vector inits.
11616         (vect_get_vec_def_for_operand): Adjust.
11617         (vectorizable_load): Likewise.
11618
11619 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
11620
11621         * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
11622         (alpha*-*-freebsd*): Ditto.
11623         (alpha*-*-netbsd*): Ditto.
11624         (alpha*-*-openbsd*): Ditto.
11625         * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
11626         (DWARF2_DEBUGGING_INFO): Remove.
11627         (PREFERRED_DEBUGGING_TYPE): Remove.
11628         (ASM_FINAL_SPEC): Remove.
11629         (IDENT_ASM_OP): Remove.
11630         (ASM_OUTPUT_IDENT): Remove.
11631         (SKIP_ASM_OP): Remove.
11632         (ASM_OUTPUT_SKIP): Remove.
11633         (ALIGN_ASM_OP): Remove.
11634         (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
11635         (ASM_OUTPUT_CASE_LABEL): Remove.
11636         (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
11637         (COMMON_ASM_OP): Remove.
11638         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
11639         (ASCII_DATA_ASM_OP): Remove.
11640         (READONLY_DATA_SECTION_ASM_OP): Remove.
11641         (INIT_SECTION_ASM_OP): Remove.
11642         (FINI_SECTION_ASM_OP): Remove.
11643         (ASM_SECTION_START_OP): Remove.
11644         (ASM_OUTPUT_SECTION_START_FILE): Remove.
11645         (TARGET_ASM_NAMED_SECTION): Remove.
11646         (TARGET_ASM_SELECT_SECTION): Remove.
11647         (MAKE_DECL_ONE_ONLY): Remove.
11648         (TYPE_ASM_OP): Remove.
11649         (SIZE_ASM_OP): Remove.
11650         (ASM_WEAKEN_LABEL): Remove.
11651         (TYPE_OPERAND_FMT): Remove.
11652         (ASM_DECLARE_RESULT): Remove.
11653         (ASM_DECLARE_OBJECT_NAME): Remove.
11654         (ASM_FINISH_DECLARE_OBJECT): Remove.
11655         (ELF_ASCII_ESCAPES): Remove.
11656         (ELF_STRING_LIMIT): Remove.
11657         (STRING_ASM_OP): Remove.
11658         (ASM_OUTPUT_EXTERNAL): Remove.
11659         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
11660         * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
11661         before define.
11662         (ASM_DECLARE_FUNCTION_NAME): Ditto.
11663         (ASM_DECLARE_FUNCTION_SIZE): Ditto.
11664         (ASM_GENERATE_INTERNAL_LABEL): Ditto.
11665         (ASM_OUTPUT_SKIP): Ditto.
11666         (READONLY_DATA_SECTION_ASM_OP): Remove.
11667         (USER_LABEL_PREFIX): Remove.
11668         (ASM_OUTPUT_ASCII): Remove.
11669         (ASM_OUTPUT_CASE_LABEL): Remove.
11670         (NO_DOLLAR_IN_LABEL): Undefine.
11671
11672 2012-03-22  Richard Guenther  <rguenther@suse.de>
11673
11674         PR tree-optimization/52459
11675         * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
11676         PHI insertion for calls.
11677
11678 2012-03-21  Steven Bosscher  <steven@gcc.gnu.org>
11679
11680         * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
11681         find_sets_in_insn, canonicalize_insn): Split out from ...
11682         (cse_insn): ... here.
11683         (invalidate_from_clobbers): Take an insn instead of the pattern.
11684
11685 2012-03-21  Oleg Endo  <olegendo@gcc.gnu.org>
11686
11687         PR target/52479
11688         * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
11689         * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
11690         * config/sh/sh.md (sindf2, cosdf2): Remove.
11691
11692 2012-03-21  Kaz Kojima  <kkojima@gcc.gnu.org>
11693
11694         PR target/52642
11695         * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
11696         prologue for unwinder and profiler.
11697
11698 2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
11699
11700         * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
11701         Introduce emul_name to select the right linker emulation for
11702         powerpc64-*-freebsd*.
11703         * configure: Regenerate.
11704         * config.gcc: Add bits to support powerpc64-*-freebsd*.
11705         * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
11706         * config/rs6000/freebsd64.h: New file.
11707         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
11708         POWERPC_FREEBSD.
11709         (rs6000_savres_strategy): Likewise.
11710         (rs6000_savres_routine_name): Likewise.
11711         (rs6000_elf_file_end): Likewise.
11712         * config/rs6000/t-freebsd64: New file.
11713         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
11714         rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
11715
11716         * config/rs6000/freebsd64.h: Remove duplicated entries from last
11717         commit.
11718         * config/rs6000/t-freebsd64: Likewise.
11719
11720 2012-03-21  Georg-Johann Lay  <avr@gjlay.de>
11721
11722         PR rtl-optimization/52543
11723         PR target/52461
11724         * config/avr/avr-protos.h (avr_load_lpm): New prototype.
11725         * config/avr/avr.c (avr_mode_dependent_address_p): New function.
11726         (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
11727         (avr_load_libgcc_p): Restrict to __flash loads.
11728         (avr_out_lpm): Only handle 1-byte loads from __flash.
11729         (avr_load_lpm): New function.
11730         (avr_find_unused_d_reg): Remove.
11731         (avr_out_lpm_no_lpmx): Remove.
11732         (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
11733         * config/avr/avr.md (unspec): Add UNSPEC_LPM.
11734         (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
11735         (load_<mode>, load_<mode>_clobber): New insns.
11736         (mov<mode>): For multi-byte move from non-generic
11737         16-bit address spaces: Expand to load_<mode> resp.
11738         load_<mode>_clobber.
11739         (load<mode>_libgcc): Remove expander.
11740         (split-lpmx): Remove split.
11741
11742 2012-03-21  Richard Earnshaw  <rearnsha@arm.com>
11743
11744         * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
11745         * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
11746         All callers changed.
11747         (Fixed_core_reg): New feature.
11748         (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg.  Allow fmrrd in
11749         disassembly.
11750         * neon-testgen.ml: Handle Fixed_core_reg.
11751
11752 2012-03-21  Andrew Stubbs  <ams@codesourcery.com>
11753
11754         * config/arm/arm.c (thumb2_reorg): Add complete support
11755         for 16-bit instructions.
11756         * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
11757
11758 2012-03-21  Richard Guenther  <rguenther@suse.de>
11759
11760         PR tree-optimizer/52636
11761         * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
11762         to the appropriate type.
11763
11764 2012-03-21  Richard Guenther  <rguenther@suse.de>
11765
11766         * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
11767         dependencies.
11768         * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
11769         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
11770         * passes.c (init_optimization_passes): Remove pass_init_function,
11771         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
11772         * tree-pass.h (pass_init_function): Remove.
11773         (pass_jump): Remove.
11774         (pass_initial_value_sets): Remove.
11775         (pass_unshare_all_rtl): Remove.
11776         * integrate.c (pass_initial_value_sets): Remove.
11777         * emit-rtl.c (pass_unshare_all_rtl): Remove.
11778         * tree.h (init_function_for_compilation): Remove.
11779         * function.c (init_function_for_compilation): Remove.
11780         (pass_init_function): Remove.
11781         * cfgcleanup.c (rest_of_handle_jump): Remove.
11782         (pass_jump): Remove.
11783
11784 2012-03-20  Jason Merrill  <jason@redhat.com>
11785
11786         * tree-streamer-in.c (streamer_alloc_tree): Call
11787         ggc_alloc_zone_cleared_tree_node instead of
11788         ggc_alloc_zone_cleared_tree_node_stat.
11789
11790 2012-03-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
11791
11792         * doc/extend.texi (Template Instantiation): Remove anachronisms.
11793
11794 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
11795
11796         PR target/52607
11797         * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
11798         (ix86_expand_vec_perm_const_1): Call it.
11799
11800         * config/i386/i386.c (vselect_insn): New variable.
11801         (init_vselect_insn): New function.
11802         (expand_vselect, expand_vselect_insn): Add testing_p argument.
11803         Call init_vselect_insn if vselect_insn is NULL.  Adjust
11804         PATTERN (vselect_insn), instead of creating a new insn each time,
11805         only emit a copy of it if not testing and recog has been successful.
11806         (expand_vec_perm_pshufb, expand_vec_perm_1,
11807         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
11808         callers.
11809
11810         PR target/52607
11811         * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
11812         ("enabled" attribute): Handle avx2 and noavx2 isas.
11813         * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
11814         New insns.
11815         (vec_dup<mode>): Add avx2 =x,x alternative.
11816         (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
11817         (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
11818         For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
11819         * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
11820         for V8SFmode.
11821         (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
11822         if possible, handle also V8SFmode.
11823
11824 2012-03-20  Richard Earnshaw  <rearnsha@arm.com>
11825
11826         * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
11827         * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
11828         reg_or_zero_operand predicate.
11829         (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
11830
11831 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
11832
11833         * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
11834         If operand isn't UNSPEC, return 0.
11835
11836 2012-03-20  Richard Guenther  <rguenther@suse.de>
11837
11838         * tree-pass.h (pass_rtl_eh): Remove.
11839         * except.c (gate_handle_eh): Likewise.
11840         (rest_of_handle_eh): Likewise.
11841         (pass_rtl_eh): Likewise.
11842         (finish_eh_generation): Export.
11843         * except.h (finish_eh_generation): Declare.
11844         * passes.c (init_optimization_passes): Remove pass_rtl_eh.
11845         * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
11846         after expanding stack alignment.  Instead of compacting blocks
11847         call cleanup_cfg.
11848
11849 2012-03-20  Richard Guenther  <rguenther@suse.de>
11850
11851         * stor-layout.c (finish_bitfield_representative): Fallback
11852         to conservative maximum size if the padding up to the next
11853         field cannot be computed as a constant.
11854         (finish_bitfield_layout): If we cannot compute the distance
11855         between the start of the bitfield representative and the
11856         bitfield member start a new representative.
11857         * expr.c (get_bit_range): The distance between the start of
11858         the bitfield representative and the bitfield member is zero
11859         if the field offsets are not constants.
11860
11861 2012-03-20  Tristan Gingold  <gingold@adacore.com>
11862
11863         * tree.h (enum size_type_kind): Add stk_ prefix to constants,
11864         convert in lowercase.
11865         (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
11866         (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
11867         * stor-layout.c (sizetype_tab): Adjust.
11868         (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
11869         * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
11870         instead of type_kind_last.
11871         * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
11872         instead of size_int_kind.
11873         * doc/tm.texi.in (Type Layout): Document SIZETYPE.
11874         * doc/tm.texi: Regenerate.
11875         * defaults.h (SIZETYPE): Provide a default value.
11876         * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
11877         (SIZETYPE): Define.
11878
11879 2012-03-20  Oleg Endo  <olegendo@gcc.gnu.org>
11880
11881         * config/sh/sh.md: Use braced string notation where applicable.
11882
11883 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
11884
11885         * config/i386/i386.md (allocate_stack): Simplify.
11886
11887 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
11888
11889         * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
11890         copy_to_mode_reg (Pmode, ...).
11891         (expand_builtin_frame_address): Ditto.
11892         * expr.c (emit_block_move_via_libcall): Ditto.
11893         (set_storage_via_libcall): Ditto.
11894
11895         * config/i386/i386.c (ix86_expand_movmem): Ditto.
11896         (ix86_expand_setmem): Ditto.
11897         (ix86_trampoline_init): DItto.
11898         * config/i386/i386.md (cmpstrnsi): Ditto.
11899
11900 2012-03-19  Sandra Loosemore  <sandra@codesourcery.com>
11901
11902         * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
11903         * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
11904         * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
11905         (SH Options): Likewise.
11906
11907 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
11908
11909         * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
11910         Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
11911         (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
11912         DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
11913         (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
11914
11915         Revert:
11916         2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
11917
11918         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
11919         * config/i386/i386.c (ix86_decompose_address): Use
11920         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
11921         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
11922         thread pointer to a register.
11923
11924         Revert:
11925         2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
11926
11927         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
11928         if Pmode != word_mode.
11929         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
11930         Pmode == SImode for TARGET_X32.
11931
11932         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
11933         (tls_initial_exec_x32): Likewise.
11934
11935 2012-03-19  Oleg Endo  <olegendo@gcc.gnu.org>
11936
11937         PR target/50751
11938         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
11939         DISP_ADDR_OFFSET): New macros.
11940         * config/sh/sh.c (sh_address_cost): Add SH2A special case.
11941         (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
11942         (sh_legitimize_address): Add QImode displacement handling.
11943         (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
11944         vector subregs.
11945         (sh_secondary_reload): Add QImode displacement handling.
11946         * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
11947         * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
11948         * config/sh/sh.md (extendqisi2): Remove constraints from expander.
11949         (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
11950         to register operands only.
11951         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
11952         (extendqihi2): Change insn to expander.
11953         (*extendqihi2_compact_reg): New insn.
11954         (movqi_i, movqi): Replace with ...
11955         (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
11956         *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
11957         Add new peepholes for QImode displacement addressing.
11958
11959 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
11960
11961         PR c++/14710
11962         * doc/invoke.texi: Document -Wuseless-cast.
11963
11964 2012-03-19  Eric Botcazou  <ebotcazou@adacore.com>
11965
11966         * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
11967         * tree.h (handled_component_p): Reorder cases.
11968         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
11969         not initialize unsignedp.
11970         (loc_list_from_tree): Likewise.
11971         (fortran_common): Likewise.
11972         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
11973
11974 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
11975
11976         * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
11977         mode consistently.  Use ix86_gen_add3.  Assert that Pmode == DImode.
11978         (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
11979         (ix86_split_long_move): Ditto.
11980         (legitimize_tls_address): Use ix86_gen_sub3.
11981         (construct_plt_address): Assert that Pmode == DImode.
11982
11983 2012-03-18  Uros Bizjak  <ubizjak@gmail.com>
11984
11985         * config/i386/i386.md: Remove empty predicates and/or constraints.
11986         * config/i386/sync.md: Ditto.
11987         * config/i386/sse.md: Ditto.
11988         * config/i386/mmx.md: Ditto.
11989         * config/i386/pentium.md: Ditto.
11990         * config/i386/athlon.md: Ditto.
11991
11992 2012-03-16  Richard Guenther  <rguenther@suse.de>
11993
11994         PR tree-optimization/52603
11995         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
11996         comment.
11997
11998         Revert
11999         2012-03-14  Richard Guenther  <rguenther@suse.de>
12000
12001         PR tree-optimization/52571
12002         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
12003         flag_section_anchors check ...
12004         (vect_can_force_dr_alignment_p): ... here.
12005
12006 2012-03-16  Martin Jambor  <mjambor@suse.cz>
12007
12008         * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
12009         memory through MEM_REFs by calling extract_bit_field.
12010
12011 2012-03-16  Richard Guenther  <rguenther@suse.de>
12012
12013         * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
12014         and REFERENCE_TYPE interpretations.
12015         (can_native_interpret_type_p): New function.
12016         (fold_ternary_loc): Use native encode/interpret to fold
12017         BIT_FIELD_REFs of constants.
12018
12019 2012-03-16  Richard Guenther  <rguenther@suse.de>
12020
12021         PR middle-end/52584
12022         * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
12023         of vector constants and constructors.
12024
12025 2012-03-16  Richard Guenther  <rguenther@suse.de>
12026
12027         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
12028         VIEW_CONVERT_EXPR to convert constants.
12029         (vect_is_simple_use): Treat all constants as vec_constant_def.
12030
12031 2012-03-16  Richard Guenther  <rguenther@suse.de>
12032             Kai Tietz  <ktietz@redhat.com>
12033
12034         PR middle-end/48814
12035         * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
12036         side-effects completely in the pre-queue and use a temporary
12037         for the result.
12038
12039 2012-03-16  Richard Guenther  <rguenther@suse.de>
12040
12041         * stor-layout.c (finish_bitfield_representative): Fall back
12042         to the conservative maximum size if we cannot compute the
12043         size of the tail padding.
12044
12045 2012-03-16  Tristan Gingold  <gingold@adacore.com>
12046
12047         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
12048         __CRTL_VER and __VMS_VER.
12049         * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
12050         and vms_c_get_vms_ver.
12051         * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
12052         functions.
12053         * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
12054         (VMS_DEFAULT_VMS_VER): Define.
12055         * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
12056         (VMS_DEFAULT_VMS_VER): Define.
12057
12058 2012-03-16  Richard Guenther  <rguenther@suse.de>
12059
12060         * tree-vect-loop.c (get_initial_def_for_induction): Use
12061         build_constructor directly.
12062         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
12063         build_vector_from_val.
12064         * tree.c (build_vector_from_val): Avoid creating a constructor
12065         first when we want a constant vector.
12066
12067 2012-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12068
12069         * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
12070
12071 2012-03-16  Richard Guenther  <rguenther@suse.de>
12072
12073         * tree.h (TREE_VECTOR_CST_ELTS): Remove.
12074         (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
12075         (struct tree_vector): Remove elements member, add variable size
12076         elts array member.
12077         (build_vector_stat): Declare.
12078         (build_vector): Define in terms of build_vector_stat.
12079         * tree.c (build_vector): Rename to ...
12080         (build_vector_stat): ... this.  Take array of trees as parameter.
12081         (build_vector_from_ctor): Adjust.
12082         (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
12083         initializer_zerop): Adjust.
12084         * cfgexpand.c (expand_debug_expr): Likewise.
12085         * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
12086         const_vector_from_tree): Likewise.
12087         * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
12088         native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
12089         fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
12090         * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
12091         (lto_input_ts_vector_tree_pointers): Adjust.
12092         * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
12093         (write_ts_vector_tree_pointers): Adjust.
12094         * varasm.c (const_hash_1, compare_constant, copy_constant,
12095         output_constant): Adjust.
12096         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
12097         * print-tree.c (print_node): Adjust.
12098         * tree-pretty-print.c (dump_generic_node): Adjust.
12099         * tree-vect-generic.c (uniform_vector_p, vector_element,
12100         lower_vec_perm): Adjust.
12101         * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
12102         * tree-vect-slp.c (vect_get_constant_vectors,
12103         vect_transform_slp_perm_load): Adjust.
12104         * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
12105         * expmed.c (make_tree): Adjust.
12106         * config/i386/i386.c (ix86_expand_builtin): Adjust.
12107         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
12108         and implementation.
12109         (sparc_fold_builtin): Adjust.
12110
12111 2012-03-16  Tristan Gingold  <gingold@adacore.com>
12112
12113         * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
12114         * config/vms/vms-stdint.h: New file.
12115
12116 2012-03-16  Tristan Gingold  <gingold@adacore.com>
12117
12118         * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
12119         (ia64-hp-*vms*): Replaced by ...
12120         (*-*-*vms*): ... This new entry.
12121
12122 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
12123
12124         PR target/52568
12125         * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
12126         (ix86_expand_vec_perm_const_1): Use it.
12127
12128         PR target/52568
12129         * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
12130         (avx2_permv4df): Remove.
12131         (avx2_permv4di): Macroize into...
12132         (avx2_perm<mode>): ... this using VI8F_256 iterator.
12133         (avx2_permv4di_1): Macroize into...
12134         (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
12135
12136 2012-03-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
12137
12138         * combine.c (apply_distributive_law): Do not distribute SUBREG.
12139
12140 2012-03-15  Ira Rosen  <irar@il.ibm.com>
12141             Ulrich Weigand  <ulrich.weigand@linaro.org>
12142
12143         * tree-vect-patterns.c (widened_name_p): Rename to ...
12144         (type_conversion_p): ... this.  Add new argument to determine
12145         if it's a promotion or demotion operation.  Check for
12146         CONVERT_EXPR_CODE_P instead of NOP_EXPR.
12147         (vect_recog_dot_prod_pattern): Call type_conversion_p instead
12148         widened_name_p.
12149         (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
12150         vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
12151         Likewise.
12152         (vect_recog_mixed_size_cond_pattern): Likewise and allow
12153         non-constant then and else clauses.
12154
12155 2012-03-15  Ira Rosen  <irar@il.ibm.com>
12156             Ulrich Weigand  <ulrich.weigand@linaro.org>
12157
12158         * tree-vectorizer.h (vect_pattern_recog): Add new argument.
12159         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
12160         vect_pattern_recog.
12161         * tree-vect-patterns.c (widened_name_p): Pass basic block
12162         info to vect_is_simple_use.
12163         (vect_recog_dot_prod_pattern): Fail for basic blocks.
12164         (vect_recog_widen_sum_pattern): Likewise.
12165         (vect_handle_widen_op_by_const): Support basic blocks.
12166         (vect_operation_fits_smaller_type,
12167         vect_recog_over_widening_pattern): Likewise.
12168         (vect_recog_vector_vector_shift_pattern): Support basic blocks.
12169         Update call to vect_is_simple_use.
12170         (vect_recog_mixed_size_cond_pattern): Support basic blocks.
12171         Add printing.
12172         (check_bool_pattern): Add an argument, update call to
12173         vect_is_simple_use and the recursive calls.
12174         (vect_recog_bool_pattern): Update relevant function calls.
12175         Add printing.
12176         (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
12177         (vect_pattern_recog_1): Check for reduction only in loops.
12178         (vect_pattern_recog): Add new argument.  Support basic blocks.
12179         * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
12180         info to vect_is_simple_use_1.
12181         * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
12182         (vect_slp_analyze_bb_1): Call vect_pattern_recog.
12183
12184 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
12185             Andrew Pinski  <apinski@cavium.com>
12186
12187         PR middle-end/52592
12188         * builtins.c (expand_builtin_int_roundingfn_2): If expanding
12189         BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
12190         calls instead of __builtin_ir{int,ound}*.
12191
12192 2012-03-15  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12193
12194         * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
12195         documentation.
12196
12197 2012-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12198
12199         * config.gcc (target_type_format_char): New. Document it. Set it for
12200         arm*-*-* .
12201         * configure.ac (gnu_unique_option): Use target_type_format_char
12202         in test.  Comment rationale.
12203         * configure: Regenerate .
12204
12205 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
12206
12207         PR tree-optimization/52267
12208         * tree-vrp.c (masked_increment): New function.
12209         (register_edge_assert_for_2): Derive ASSERT_EXPRs
12210         from (X & CST1) cmp CST2 tests.
12211
12212 2012-03-15  Richard Guenther  <rguenther@suse.de>
12213
12214         PR middle-end/52580
12215         * tree-data-ref.c (subscript_dependence_tester_1): Check
12216         all dimensions for non-conflicting access functions.
12217
12218 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12219
12220         PR c++/44783
12221         * doc/invoke.texi [C++ Language Options]: Document
12222         -ftemplate-backtrace-limit.
12223
12224 2012-03-15  Tristan Gingold  <gingold@adacore.com>
12225
12226         * c-parser.c (c_parser_parameter_declaration): Handle #pragma
12227         before a parameter.
12228
12229 2012-03-15  Tristan Gingold  <gingold@adacore.com>
12230
12231         * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
12232         use DW_OP_call_frame_cfa.
12233
12234 2012-03-14  H.J. Lu  <hongjiu.lu@intel.com>
12235
12236         PR target/50797
12237         * config/i386/i386-opts.h (pmode): New.
12238
12239         * config/i386/i386.c (ix86_option_override_internal): Properly
12240         check and set ix86_pmode.
12241
12242         * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
12243
12244         * config/i386/i386.opt (maddress-mode=): New.
12245
12246         * doc/invoke.texi: Document -maddress-mode=short|long for x86.
12247
12248 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12249
12250         * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
12251         (dwarf2out_do_cfi_asm): Likewise.
12252         * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
12253         handling.
12254         (add_data_member_location_attribute): Likewise.
12255         (gen_array_type_die): Likewise.
12256         (gen_subprogram_die): Likewise.
12257         (gen_producer_string): Likewise.
12258         * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
12259         Remove MIPS_DEBUGGING_INFO handling.
12260         (sdb_debug_hooks): Likewise.
12261         (sdbout_begin_block): Likewise.
12262         (sdbout_end_block): Likewise.
12263         (sdbout_begin_prologue): Likewise.
12264         (sdbout_start_source_file): Likewise.
12265         (sdbout_end_source_file): Likewise.
12266         (sdbout_init): Likewise.
12267         * system.h (MIPS_DEBUGGING_INFO): Poison.
12268
12269 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12270
12271         * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
12272         (alpha_file_start) [MS_STAMP]: Remove.
12273
12274         * config/alpha/elf.h (TARGET_GAS): Remove.
12275         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
12276         * config/alpha/linux.h (TARGET_DEFAULT): Remove.
12277         * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
12278         * config/alpha/vms.h (TARGET_DEFAULT): Remove.
12279         * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
12280         (alpha*-*-freebsd*): Likewise.
12281         (alpha*-*-netbsd*): Likewise.
12282         (alpha*-*-openbsd*): Likewise.
12283         (alpha*-*-*): Remove target_cpu_default2.
12284         * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
12285         handling.
12286         * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
12287         (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
12288         * config/alpha/alpha.c (print_operand): Always assume
12289         TARGET_AS_SLASH_BEFORE_SUFFIX.
12290         * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
12291         Remove TARGET_AS_CAN_SUBTRACT_LABELS.
12292         ("*builtin_setjmp_receiver_er_1"): Remove.
12293         * config/alpha/alpha.opt (malpha-as): Remove.
12294         (mgas): Ignore.
12295         * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
12296         -malpha-as, -mgas.
12297         Remove DEC Unix reference.
12298
12299         * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
12300         (EXTENDED_COFF): Remove.
12301         * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
12302         (EXTENDED_COFF): Don't undef.
12303         * config/alpha/alpha.c (alpha_file_start): Always assume
12304         OBJECT_FORMAT_ELF.
12305         Don't set targetm.asm_file_start_file_directive.
12306         [!OBJECT_FORMAT_ELF]: Remove.
12307         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12308
12309         * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
12310         (DBX_DEBUGGING_INFO): Remove.
12311         (MIPS_DEBUGGING_INFO): Remove.
12312         (PREFERRED_DEBUGGING_TYPE): Remove.
12313         (DBX_OUTPUT_SOURCE_LINE): Remove.
12314         (SDB_OUTPUT_SOURCE_LINE): Remove.
12315         (DBX_CONTIN_LENGTH): Remove.
12316         (NO_DBX_FUNCTION_END): Remove.
12317         (ASM_STABS_OP): Remove.
12318         (ASM_STABN_OP): Remove.
12319         (ASM_STABD_OP): Remove.
12320         (SDB_ALLOW_FORWARD_REFERENCES): Remove.
12321         (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
12322         (PUT_SDB_DEF): Remove.
12323         (PUT_SDB_PLAIN_DEF): Remove.
12324         (PUT_SDB_TYPE): Remove.
12325         (sdb_label_count): Remove.
12326         (PUT_SDB_BLOCK_START): Remove.
12327         (PUT_SDB_BLOCK_END): Remove.
12328         (PUT_SDB_FUNCTION_START): Remove.
12329         (PUT_SDB_FUNCTION_END): Remove.
12330         (PUT_SDB_EPILOGUE_END): Remove.
12331         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
12332         (MIPS_DEBUGGING_INFO): Don't undef.
12333         (DBX_DEBUGGING_INFO): Don't undef.
12334         * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
12335         (MIPS_DEBUGGING_INFO): Don't undef.
12336         (DBX_DEBUGGING_INFO): Don't undef.
12337         * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
12338         * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
12339         handling.
12340         (alpha_start_function): Likewise.
12341         (sdb_label_count): Remove.
12342         (alpha_output_filename): Remove DBX_DEBUG handling.
12343         (alpha_file_start): Likewise.
12344
12345 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12346
12347         * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
12348         (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
12349         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
12350         Solaris 8 support.
12351         * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
12352         (ld_tls_support): Remove Solaris 8 references.
12353         (lwp_dir, lwp_spec): Remove support for alternate thread library.
12354         * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
12355         * configure: Regenerate.
12356         * config.in: Regenerate.
12357
12358         * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
12359         * config/i386/sol2.h: Remove Solaris 8 references.
12360
12361         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
12362         (i?86-*-solaris2.9): ... this.
12363         Remove Solaris 8 references.
12364         (Specific, *-*-solaris2*): Document Solaris 8 removal.
12365         Remove Solaris 8 references.
12366
12367 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12368
12369         * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
12370         (mips-sgi-irix6.5*): Remove.
12371         * config.host (mips-sgi-irix*): Remove.
12372         * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
12373         (set_have_as_tls): Remove *-*-irix6*.
12374         (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
12375         * configure: Regenerate.
12376
12377         * config/mips/iris6.h: Remove.
12378         * config/mips/iris6.opt: Remove.
12379         * config/mips/t-irix6: Remove.
12380
12381         * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
12382         (TARGET_IRIX6): Remove.
12383         (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
12384         Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
12385         * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
12386         handling.
12387         (mips_file_start): Likewise.
12388         * config/mips/mips-protos.h (irix_asm_output_align): Remove.
12389
12390         * config/mips/driver-native.c [__sgi__]: Remove.
12391         (host_detect_local_cpu) [__sgi__]: Remove.
12392
12393         * config/mips/gnu-user.h: Remove iris5.h reference.
12394
12395         * config/mips/mips-modes.def: Remove IRIX 6 reference.
12396         * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
12397         * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
12398         Remove.
12399
12400         * gcc.c (main): Move asm_debug initialization ...
12401         (asm_debug): ... here.
12402
12403         * ginclude/stddef.h (__STDDEF_H__): Don't define.
12404
12405         * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
12406         * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
12407         * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
12408         (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
12409         [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
12410         * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
12411         Remove.
12412         * doc/tm.texi: Regenerate.
12413
12414         * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
12415         IRIX 6 reference.
12416         (MIPS Options, -march): Remove IRIX reference.
12417         * doc/install.texi (Binaries, SGI IRIX): Remove.
12418         (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
12419         of section.
12420         * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
12421
12422 2012-03-14  Martin Jambor  <mjambor@suse.cz>
12423
12424         * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
12425         when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
12426         (expand_expr_real_1): Do not handle misalignment if modifier is
12427         EXPAND_WRITE.
12428
12429 2012-03-14  Richard Guenther  <rguenther@suse.de>
12430
12431         PR middle-end/52584
12432         * tree-vect-generic.c (type_for_widest_vector_mode): Take
12433         element type instead of mode, use build_vector_type_for_mode
12434         instead of the langhook, build a vector of proper signedness.
12435         (expand_vector_operations_1): Adjust.
12436
12437 2012-03-14  Richard Guenther  <rguenther@suse.de>
12438
12439         PR middle-end/52582
12440         * gimple-fold.c (canonicalize_constructor_val): Make sure we have
12441         a cgraph node for a FUNCTION_DECL that comes from a constructor.
12442         (gimple_get_virt_method_for_binfo): Likewise.
12443
12444 2012-03-14  Richard Guenther  <rguenther@suse.de>
12445
12446         PR tree-optimization/52571
12447         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
12448         flag_section_anchors check ...
12449         (vect_can_force_dr_alignment_p): ... here.  Do not re-align
12450         DECL_COMMON variables.
12451
12452 2012-03-14  Richard Guenther  <rguenther@suse.de>
12453
12454         * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
12455         * stor-layout.c (start_bitfield_representative): New function.
12456         (finish_bitfield_representative): Likewise.
12457         (finish_bitfield_layout): Likewise.
12458         (finish_record_layout): Call finish_bitfield_layout.
12459         * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
12460         for QUAL_UNION_TYPE fields.
12461         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
12462         Stream DECL_BIT_FIELD_REPRESENTATIVE.
12463         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
12464
12465         PR middle-end/52080
12466         PR middle-end/52097
12467         PR middle-end/48124
12468         * expr.c (get_bit_range): Unconditionally extract bitrange
12469         from DECL_BIT_FIELD_REPRESENTATIVE.
12470         (expand_assignment): Adjust call to get_bit_range.
12471
12472 2012-03-14  Richard Guenther  <rguenther@suse.de>
12473
12474         PR middle-end/52578
12475         * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
12476         the outermost conversion is a sign-change only.
12477         (fold_binary_loc): Disregard widening and sign-changing
12478         conversions when we determine if two variables are equal
12479         for reassociation.
12480         * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
12481         (T1)x if the outermost conversion is a sign-change only.
12482
12483 2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
12484
12485         Revert:
12486         2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
12487
12488         * config/i386/predicates.md (constant_call_address_operand): Declare
12489         as special predicate.  Update all uses.
12490
12491 2012-03-13  Jakub Jelinek  <jakub@redhat.com>
12492
12493         PR c/52577
12494         * c-parser.c (c_parser_postfix_expression)
12495         <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
12496
12497         * config/i386/smmintrin.h: Avoid /* within a comment.
12498         * config/i386/nmmintrin.h: Likewise.
12499
12500 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12501
12502         * config/i386/i386.md (xbegin): Remove constraint from expander.
12503
12504 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12505
12506         * config/i386/predicates.md (constant_call_address_operand): Declare
12507         as special predicate.  Update all uses.
12508         * config/i386/i386.md: Remove mode from constant_call_address_operand
12509         predicates.
12510         * config/i386/i386.c (ix86_output_call_insn): Call
12511         constant_call_address_operand with VOIDmode.
12512
12513 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12514
12515         * config/i386/i386.c (ix86_decompose_address): Handle subregs of
12516         AND zero extended address correctly.
12517
12518 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12519
12520         * config/i386/predicates.md (tls_symbolic_operand): Declare as
12521         special predicate.
12522         (tls_modbase_operand): Ditto.
12523         * config/i386/i386.md: Remove mode from tls_symbolic_operand and
12524         tls_modbase_operand predicates.
12525
12526 2012-03-13  Martin Jambor  <mjambor@suse.cz>
12527
12528         * expr.c (expand_assignment): Handle misaligned scalar writes to
12529         memory through top-level MEM_REFs by calling store_bit_field.
12530
12531 2012-03-13  Richard Guenther  <rguenther@suse.de>
12532
12533         PR middle-end/52134
12534         * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
12535         if Y is a constant multiple of 1 << CST.
12536
12537 2012-03-13  Georg-Johann Lay  <avr@gjlay.de>
12538
12539         PR target/52488
12540         * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
12541         offset (size) to a value the insns can deal with.
12542         (expand_epilogue): Ditto.
12543
12544 2012-03-13  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
12545
12546         * config/arm/neon.ml (ops): Fixup expected instructions for
12547         unsigned vector compares.
12548
12549 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12550
12551         * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
12552         addresses only when %reg is not in word mode.
12553
12554 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12555
12556         * config/microblaze/microblaze.md: Fix typo.
12557         * tree-if-conv.c: Likewise.
12558         * tree-vect-patterns.c: Likewise.
12559
12560 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12561
12562         * config.gcc (extra_passes): Remove.
12563         * configure.ac (extra_passes): Don't substitute.
12564         * configure: Regenerate.
12565         * Makefile.in (EXTRA_PASSES): Remove.
12566         (GCC_PASSES): Remove $(EXTRA_PASSES).
12567         (MOSTLYCLEANFILES): Likewise.
12568         (native): Likewise.
12569         (install-common): Likewise.
12570
12571 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
12572
12573         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
12574         * config/i386/i386.c (ix86_decompose_address): Use
12575         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
12576         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
12577         thread pointer to a register.
12578
12579 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12580
12581         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
12582         on tls_symbolic_operand.
12583         (tls_global_dynamic_64_<mode>): Likewise.
12584
12585 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
12586
12587         PR other/52545
12588         * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
12589         SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
12590
12591 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
12592
12593         PR target/52499
12594         * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
12595         type from reg_class_t to enum reg_class.
12596         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
12597
12598 2012-03-12  Andrew Pinski  <apinski@cavium.com>
12599
12600         * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
12601         (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
12602         (value_replacement): Likewise.
12603         (empty_block_p): Check also if the PHIs for the block are empty.
12604
12605 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
12606
12607         PR target/52148
12608         * config/avr/avr.c (avr_out_movmem): Fix typo in output template
12609         for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
12610         r184615 from 2012-02-28.
12611
12612 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12613
12614         * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
12615         (ix86_gen_tls_local_dynamic_base_64): Likewise.
12616         (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
12617         and ix86_gen_tls_local_dynamic_base_64.
12618         (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
12619         ix86_gen_tls_local_dynamic_base_64.
12620
12621         * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
12622         (*tls_global_dynamic_64_<mode>): This.
12623         (tls_global_dynamic_64): Renamed to ...
12624         (tls_global_dynamic_64_<mode>): This.
12625         (*tls_local_dynamic_base_64): Renamed to ...
12626         (*tls_local_dynamic_base_64_<mode>): This.
12627         (tls_local_dynamic_base_64): Renamed to ...
12628         (tls_local_dynamic_base_64_<mode>): This.
12629
12630 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12631
12632         * config/i386/i386.c (ix86_option_override_internal): Properly
12633         set ix86_gen_leave and ix86_gen_monitor.  Check Pmode == DImode,
12634         instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
12635         ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
12636         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
12637
12638         * config/i386/sse.md (sse3_monitor64): Renamed to ...
12639         (sse3_monitor64_<mode>): This.
12640
12641 2012-03-12  Tristan Gingold  <gingold@adacore.com>
12642
12643         * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
12644         (ia64_function_arg_advance): Ditto.
12645
12646 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12647
12648         * config.gcc (mips*-*-openbsd*): Remove.
12649         * config/mips/openbsd.h: Remove.
12650         * config/mips/sdb.h: Remove.
12651
12652         * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
12653         * config/mips/mips.c (sdb_label_count): Remove.
12654         (mips_debugger_offset): Remove #if 0 code.
12655         (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
12656         * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
12657
12658 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12659
12660         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
12661         binutils reference.
12662         (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
12663         Update binutils references.
12664         (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
12665         Update binutils reference.
12666         Update Sun as/GNU ld caveat.
12667         Document binutils largefile requirement for LTO plugin.
12668         Remove reference to alternate libpthread.
12669
12670 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12671
12672         * config.gcc (alpha*-dec-osf5.1*): Remove.
12673         * config.host (alpha*-dec-osf*): Remove.
12674         * configure.ac (*-*-osf*): Remove.
12675         (alpha*-dec-osf*): Remove.
12676         * configure: Regenerate.
12677
12678         * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
12679         config/alpha/va_list.h, config/alpha/x-osf: Remove.
12680
12681         * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
12682         * config/alpha/alpha.c (struct machine_function): Update comment.
12683         (alpha_start_function): Remove Tru64 UNIX as handling for
12684         max_frame_size.
12685         * config/alpha/alpha.md ("exception_receiver"): Remove
12686         TARGET_LD_BUGGY_LDGP.
12687         ("*exception_receiver_2"): Likewise.
12688         * except.c (finish_eh_generation): Remove Tru64 reference.
12689         * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
12690         * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
12691         * target.def (handle_pragma_extern_prefix): Remove.
12692
12693         * Makefile.in (mips-tfile.o-warn): Remove.
12694         (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
12695         (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
12696         * mips-tdump.c, mips-tfile.c: Remove.
12697
12698         * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
12699         extern_prefix.
12700         * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
12701         (Specific, alpha*-dec-osf5.1): Note removal.
12702         * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
12703         Remove.
12704         * doc/tm.texi: Regenerate.
12705         * doc/trouble.texi (Cross-Compiler Problems): Remove.
12706
12707 2012-03-12  Richard Guenther  <rguenther@suse.de>
12708
12709         * config/arm/arm.c (neon_dereference_pointer): Do not call
12710         covert during RTL expansion.
12711
12712 2012-03-12  Tristan Gingold  <gingold@adacore.com>
12713
12714         * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
12715         Options.  Mention -mpointer-size.
12716
12717 2012-03-12  Richard Guenther  <rguenther@suse.de>
12718
12719         * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
12720         build_nonstandard_integer_type.
12721
12722 2012-03-12  Richard Guenther  <rguenther@suse.de>
12723
12724         * tree.c (signed_or_unsigned_type_for): Use
12725         build_nonstandard_integer_type.
12726         (signed_type_for): Adjust documentation.
12727         (unsigned_type_for): Likewise.
12728         * tree-pretty-print.c (dump_generic_node): Use standard names
12729         for non-standard integer types if available.
12730
12731 2012-03-12  Tristan Gingold  <gingold@adacore.com>
12732
12733         * config/vms/vms.opt: Add vms-opts.h header.
12734         (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
12735         target mask.
12736         (-mvms-return-codes): Document.
12737         (-mpointer-size): New option.
12738         (vms_pointer_size): Add enumeration.
12739         * config/vms/vms-opts.h: New file.
12740         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
12741         __INITIAL_POINTER_SIZE.
12742         (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
12743         (C_COMMON_OVERRIDE_OPTIONS): Define.
12744         (DWARF2_ADDR_SIZE): Define.
12745         * config/vms/vms.c (vms_patch_builtins): Adjust condition.
12746         * config/vms/vms-protos.h (vms_c_common_override_options):
12747         New prototype.
12748         * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
12749         if -mno-pointer-size.
12750         (vms_c_common_override_options): New function.
12751         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
12752         * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
12753         (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
12754         and flag_vms_pointer_size.
12755         (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
12756         * config.gcc (*-*-*vms*): Define xm_file.
12757         (alpha*-dec-*vms*): Do not define xm_file.
12758         (alpha64-dec-*vms*): Remove.
12759         (ia64-hp-*vms*): Do not define xm_file.  Simplify tm_file
12760         and tmake_file.
12761
12762 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
12763
12764         PR tree-optimization/51721
12765         * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
12766         if (int) unsvar cmp CST.
12767
12768 2012-03-12  Richard Guenther  <rguenther@suse.de>
12769
12770         * tree-sra.c (create_access_replacement): Only rename the replacement
12771         if we can rewrite it into SSA form.  Properly mark register typed
12772         replacements that we cannot rewrite with TREE_ADDRESSABLE.
12773         * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
12774         for aggregate or BLKmode results.
12775
12776 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
12777
12778         PR tree-optimization/52533
12779         * tree-vrp.c (register_edge_assert_for_2): Use double_int
12780         type for mask, only handle shifts by non-zero in-range
12781         shift count, for LE_EXPR and GT_EXPR if new_val is
12782         maximum, don't add the assertion.
12783
12784 2012-02-12  Kirill Yukhin  <kirill.yukhin@intel.com>
12785
12786         * doc/invoke.texi: Document -mrtm option.
12787         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
12788         (OPTION_MASK_ISA_RTM_UNSET): Ditto.
12789         (ix86_handle_option): Handle OPT_mrtm.
12790         * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
12791         xtestintrin.h.
12792         (x86_64-*-*): Ditto.
12793         * i386-builtin-types.def (INT_FTYPE_VOID): New.
12794         * config/i386/i386-c.c (ix86_target_macros_internal): Define
12795         __RTM__ if needed.
12796         (ix86_target_string): Define -mrtm option.
12797         (PTA_RTM): New.
12798         (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
12799         Handle new option.
12800         (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
12801         (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
12802         IX86_BUILTIN_XTEST.
12803         (bdesc_special_args): Ditto.
12804         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
12805         (ix86_expand_special_args_builtin): Handle new built-in type.
12806         (ix86_expand_builtin): Handle XABORT instruction.
12807         * config/i386/i386.h (TARGET_RTM): New.
12808         * config/i386/i386.md (UNSPECV_XBEGIN): New.
12809         (UNSPECV_XEND): Ditto.
12810         (UNSPECV_XABORT): Ditto.
12811         (UNSPECV_XTEST): Ditto.
12812         (xbegin): Ditto.
12813         (xbegin_1): Ditto.
12814         (xend): Ditto.
12815         (xabort): Ditto
12816         (xtest): Ditto.
12817         (xtest_1): Ditto.
12818         * config/i386/i386.opt (mrtm): New.
12819         * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
12820         * config/i386/rtmintrin.h: New header.
12821         * config/i386/xtestintrin.h: Ditto.
12822
12823 2012-03-12  Tristan Gingold  <gingold@adacore.com>
12824
12825         * ginclude/stddef.h: Adjust previous patch.
12826         Use __VMS__ instead of VMS.
12827
12828 2012-03-12  Uros Bizjak  <ubizjak@gmail.com>
12829
12830         * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
12831         Also convert sequences with CC setting arithmetic instruction.
12832
12833 2012-03-11  Sandra Loosemore  <sandra@codesourcery.com>
12834
12835         * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
12836         from C Language Options to Preprocessor Options.
12837         (C Dialect Options): Move -no-integrated-cpp documentation
12838         from here...
12839         (Preprocessor Options): ...to here.  Rewrite the description
12840         so it makes more sense, and remove discussion of merging front ends.
12841
12842 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12843
12844         * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
12845         needed for loop.
12846         (ix86_expand_setmem): Likewise.
12847
12848 2012-03-11  Uros Bizjak  <ubizjak@gmail.com>
12849
12850         * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
12851         convert_to_mode.
12852
12853 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12854
12855         * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
12856         ptr_mode == SImode.  Replace DImode with Pmode or ptr_mode.
12857
12858 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12859
12860         * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
12861
12862 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12863
12864         * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
12865         TARGET_64BIT.
12866
12867 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
12868             Uros Bizjak  <ubizjak@gmail.com>
12869
12870         * config/i386/predicates.md (call_insn_operand): Allow
12871         constant_call_address_operand in Pmode only.
12872         (sibcall_insn_operand): Ditto.
12873         * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
12874         (*call_vzeroupper): Ditto.
12875         (*sibcall): Ditto.
12876         (*sibcall_vzeroupper): Ditto.
12877         (*call_value): Ditto.
12878         (*call_value_vzeroupper): Ditto.
12879         (*sibcall_value): Ditto.
12880         (*sibcall_value_vzeroupper): Ditto.
12881         (*indirect_jump): Ditto.
12882         (*tablejump_1): Ditto.
12883         (indirect_jump): Convert memory address to word mode for TARGET_X32.
12884         (tablejump): Ditto.
12885         * config/i386/i386.c (ix86_expand_call): Convert indirect operands
12886         to word mode.
12887
12888 2012-03-11  Oleg Endo  <olegendo@gcc.gnu.org>
12889
12890         PR target/51244
12891         * config/sh/sh.md (movnegt): Expand into respective insns immediately.
12892         Use movrt_negc instead of negc pattern for non-SH2A.
12893         (*movnegt): Remove.
12894         (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
12895
12896 2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
12897
12898         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
12899         if Pmode != word_mode.
12900         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
12901         Pmode == SImode for TARGET_X32.
12902
12903         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
12904         (tls_initial_exec_x32): Likewise.
12905
12906 2012-03-10  Chung-Lin Tang  <cltang@codesourcery.com>
12907
12908         PR rtl-optimization/52528
12909         * combine.c (can_combine_p): Add setting of subst_low_luid
12910         before call to expand_field_assignment().
12911
12912 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
12913
12914         * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
12915         and related program names.
12916
12917 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
12918
12919         * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
12920
12921 2012-03-09  Uros Bizjak  <ubizjak@gmail.com>
12922
12923         PR target/52530
12924         * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
12925         (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
12926         to set code to 'q'.
12927         * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
12928         (*movdi_internal_rex64): Use %E operand modifier for lea.
12929         (*movsi_internal): Ditto.
12930         (*lea_1): Ditto.
12931         (*lea<mode>_2): Ditto.
12932         (*lea_{3,4,5,6}_zext): Ditto.
12933         (*tls_global_dynamic_32_gnu): Ditto.
12934         (*tls_global_dynamic_64): Ditto.
12935         (*tls_dynamic_gnu2_lea_32): Ditto.
12936         (*tls_dynamic_gnu2_lea_64): Ditto.
12937         (pro_epilogue_adjust_stack_<mode>_add): Ditto.
12938
12939 2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
12940
12941         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
12942         redefine to be NULL if the current bit-size is different from the
12943         configured bit-size.
12944
12945         * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
12946         cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
12947         set the default tuning.  Add asserts to make sure the cpu and tune
12948         indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
12949         test whether the index is set, instead of > 0.
12950         (rs6000_file_start): Do not reset the default cpu if the current
12951         bit-size is different from the configured bit-size.
12952
12953 2012-03-09  Tristan Gingold  <gingold@adacore.com>
12954
12955         * config/vms/vms-crtlmap.map: Add comments.
12956         Add entries needed to build Ada RTS.
12957
12958 2012-03-09  Tristan Gingold  <gingold@adacore.com>
12959
12960         * ginclude/stddef.h: Do not define __size_t on VMS.
12961
12962 2012-03-09  Tristan Gingold  <gingold@adacore.com>
12963
12964         * c-tree.h (c_default_pointer_mode): New variable.
12965         * c-decl.c (c_default_pointer_mode): New variable.
12966         (c_build_pointer_type): New function.
12967         (grokdeclarator): Call c_build_pointer_type instead
12968         of build_pointer_type.
12969
12970         * config/vms/vms-c.c: Include c-tree.h
12971         (saved_pointer_mode): New variable.
12972         (handle_pragma_pointer_size): New function.
12973         (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
12974         (vms_c_register_pragma): Register __pointer_size and
12975         __required_pointer_size pragmas.
12976
12977 2012-03-09  Tristan Gingold  <gingold@adacore.com>
12978
12979         * config/vms/vms-c.c (vms_construct_include_filename): New function.
12980         (vms_c_register_includes): Reference it.
12981
12982 2012-03-09  Andrew Pinski  <apinski@cavium.com>
12983
12984         PR middle-end/51988
12985         * tree-ssa-phiopt.c: Include tree-pretty-print.h for
12986         print_generic_expr.
12987         (tree_ssa_phiopt_worker): Go through all the PHIs for
12988         value_replacement instead of just the singleton one.
12989         (value_replacement): Change return type to int.  Return 0 instead of
12990         false.
12991         Allow the middle basic block to contain more than just the defining
12992         statement.
12993         Handle non empty middle basic blocks.
12994         * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
12995
12996 2012-03-09  Jiangning Liu  <jiangning.liu@arm.com>
12997
12998         * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
12999         array reference and component reference.
13000         (analyze_scalar_evolution_for_address_of): New.
13001
13002 2012-03-08  Jie Zhang  <jzhang918@gmail.com>
13003
13004         PR target/49862
13005         * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
13006         (hwloop_pattern_reg): Fix set but not used warning.
13007         (bfin_reorg_loops): Remove unused parameter.
13008         (bfin_reorg): Update use of bfin_reorg_loops.
13009
13010 2012-03-08  H.J. Lu  <hongjiu.lu@intel.com>
13011
13012         * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
13013         with integer parameters in registers.
13014         (gen_push): Push register in word_mode instead of Pmode.
13015         (ix86_emit_save_regs): Likewise.
13016         (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
13017         (gen_pop): Pop register in word_mode instead of Pmode.
13018         (ix86_emit_restore_regs_using_pop): Likewise.
13019         (ix86_expand_prologue): Replace Pmode with word_mode for push
13020         immediate.  Use ix86_gen_pro_epilogue_adjust_stack.  Save and
13021         restore RAX and R10 in word_mode.
13022         (ix86_emit_restore_regs_using_mov): Restore integer registers
13023         in word_mode.
13024         (ix86_expand_split_stack_prologue): Save R10_REG and restore in
13025         word_mode.
13026         (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
13027         (ix86_split_long_move): Likewise.
13028
13029         * config/i386/i386.md (W): New.
13030         (*push<mode>2_prologue): Replace :P with :W.
13031         (*pop<mode>1): Likewise.
13032         (*pop<mode>1_epilogue): Likewise.
13033         (push/pop peephole2): Use word_mode scratch registers.
13034
13035 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
13036
13037         * config/i386/predicates.md (indirect_branch_operand): Simplify.
13038
13039 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
13040
13041         * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
13042         for constants in [-63,63].
13043
13044 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
13045
13046         PR target/52530
13047         Revert:
13048         2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13049
13050         * config/i386/i386.c (ix86_print_operand_address): Only handle
13051         zero-extended DImode addresses.
13052
13053 2012-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13054
13055         * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
13056         * configure: Regenerate.
13057
13058 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
13059
13060         PR target/52496
13061         * config/avr/avr.c (avr_mem_clobber): New static function.
13062         (avr_expand_delay_cycles): Add memory clobber operand to
13063         delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
13064         * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
13065         (enable_interrupt, disable_interrupt): New expander.
13066         (nopv, sleep, wdr): New expanders.
13067         (delay_cycles_1): Add memory clobber.
13068         (delay_cycles_2): Add memory clobber.
13069         (delay_cycles_3): Add memory clobber.
13070         (delay_cycles_4): Add memory clobber.
13071         (cli_sei): New insn from former "enable_interrupt",
13072         "disable_interrupt" with memory clobber.
13073         (*wdt): New insn from former "wdt" with memory clobber.
13074         (*nopv): Similar, but for "nopv".
13075         (*sleep): Similar, but for "sleep".
13076
13077 2012-03-07  Oleg Endo  <olegendo@gcc.gnu.org>
13078             Kaz Kojima  <kkojima@gcc.gnu.org>
13079
13080         PR target/52503
13081         * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
13082         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
13083         (SUBTARGET_OVERRIDE_OPTIONS): Define.
13084
13085 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
13086
13087         * config/i386/predicates.md (x86_64_zext_general_operand): New.
13088         * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
13089         predicate to x86_64_zext_general_operand.  Accept "Z" constraint.
13090
13091 2012-03-07  Walter Lee  <walt@tilera.com>
13092
13093         * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
13094         REG_CFA_* notes for the stack pointer.
13095         (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
13096         EH_RETURN_STACKADJ_RTX.
13097         * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
13098         generate REG_CFA_* notes for the stack pointer.
13099         (tilepro_expand_epilogue): Restore stack pointer by adjusting it
13100         by EH_RETURN_STACKADJ_RTX.
13101
13102 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13103
13104         * doc/invoke.texi (AVR Built-in Macros): Correct condition for
13105         when __AVR_3_BYTE_PC__ is defined.
13106
13107 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
13108
13109         * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
13110         (ix86_print_operand): Handle '^'.
13111         * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
13112         using P mode iterator.  Add %^ to asm template to conditionally emit
13113         addr32 prefix.
13114         (*rep_movdi_rex64): Ditto.
13115         (*strsetdi_rex_1): Ditto.
13116         (*rep_stosdi_rex64): Ditto.
13117         (*strmov{si,hi,qi}_1): Add %^ to asm template to
13118         conditionally emit addr32 prefix.
13119         (*rep_mov{si,qi}): Ditto.
13120         (*strset{si,hi,qi}): Ditto.
13121         (*rep_stos{si,qi}): Ditto.
13122         (*cmpstrnqi_nz_1): Ditto.
13123         (*cmpstrnqi_1): Ditto.
13124         (*strlenqi_1): Ditto.
13125
13126 2012-03-07  H.J. Lu  <hongjiu.lu@intel.com>
13127
13128         * config/i386/i386.c (function_value_64): Return pointers in
13129         word_mode instead of Pmode.
13130         (ix86_promote_function_mode): Likewise.
13131
13132 2012-03-07  Richard Guenther  <rguenther@suse.de>
13133
13134         * coverage.c (get_gcov_type): Use type_for_mode.
13135         (get_gcov_unsigned_t): Likewise.
13136         * expr.c (store_constructor): Use type_for_mode.
13137         (try_casesi): Likewise.
13138         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
13139         (add_standard_iv_candidates): Use standard type trees.
13140         * dojump.c (do_jump): Remove dead code.
13141
13142 2012-03-07  Richard Guenther  <rguenther@suse.de>
13143
13144         * c-typeck.c (pointer_diff): Use c_common_type_for_size.
13145
13146 2012-03-07  Richard Guenther  <rguenther@suse.de>
13147
13148         * convert.c (strip_float_extensions): Move ...
13149         * tree.c (strip_float_extensions): ... here.
13150
13151 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13152
13153         PR target/52484
13154         * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
13155
13156 2012-03-07  Richard Guenther  <rguenther@suse.de>
13157
13158         * omp-low.c (extract_omp_for_data): Use signed_type_for.
13159         (expand_omp_for_generic): Likewise.
13160         (expand_omp_for_static_nochunk): Likewise.
13161         (expand_omp_for_static_chunk): Likewise.
13162         * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
13163         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
13164         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
13165         Use unsigned_type_for.
13166         (vect_create_cond_for_align_checks): Use signed_type_for.
13167
13168 2012-03-07  Andrey Belevantsev  <abel@ispras.ru>
13169
13170         PR rtl-optimization/52203
13171         * sel-sched.c (estimate_insn_cost): New parameter pempty.  Adjust
13172         all callers to pass NULL except ...
13173         (reset_sched_cycles_in_current_ebb): ... here, save the value
13174         in new variable 'empty'.  Increase issue_rate only for
13175         non-empty insns.
13176
13177 2012-03-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
13178
13179         PR target/51417
13180         * Makefile.in: Let install-gcc-ar depend on installdirs,
13181         gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
13182         Don't double canonicalize if cross-compiling.
13183
13184 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13185
13186         PR target/52506
13187         * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
13188         to: RAMPZ, RAMPY, RAMPX, RAMPD.
13189         (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
13190
13191 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13192
13193         PR target/52505
13194         * config/avr/avr.c (avr_out_xload): Don't read unintentionally
13195         from RAM.
13196         * config/avr/avr.md (xload_8): Adjust insn length.
13197
13198 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
13199
13200         PR target/52461
13201         * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
13202         if RAMPZ affects reading from RAM.
13203
13204 2012-03-07  Richard Guenther  <rguenther@suse.de>
13205
13206         PR pch/52518
13207         PR pch/38987
13208         * doc/invoke.texi (Precompiled Headers): Remove sentence that
13209         suggests you can include PCHs from inside another header.
13210
13211 2012-03-07  Richard Sandiford  <rdsandiford@googlemail.com>
13212
13213         PR middle-end/52515
13214         * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
13215
13216 2012-03-07  Kai Tietz  <ktietz@redhat.com>
13217
13218         * doc/invoke.texi (fwritable-relocated-rdata): Document
13219         new Cygwin/MinGW target option.
13220         * config/i386/winnt.c (i386_pe_unique_section): Ignore
13221         reloc if flag -fwritable-relocated-rdata is not set.
13222         (i386_pe_section_type_flags): Likewise.
13223         * config/i386/cygming.opt (fwritable-relocated-rdata):
13224         Add new flag variable flag_writable_rel_rdata.
13225
13226 2012-03-07  Richard Guenther  <rguenther@suse.de>
13227
13228         * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
13229         precision against gimple constraints.
13230
13231 2012-03-06  Richard Sandiford  <rdsandiford@googlemail.com>
13232
13233         PR middle-end/52372
13234         * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
13235         variables.
13236         (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
13237         * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
13238         variables.
13239         (init_emit_regs): Move associated initialization to...
13240         (init_emit_once): ...here.
13241
13242 2012-03-06  Richard Henderson  <rth@redhat.com>
13243
13244         * config/m68k/m68k.h (ISA_HAS_TAS): New.
13245         * config/m68k/sync.md (atomic_test_and_set): Use it.
13246         (atomic_test_and_set_1): Likewise.
13247
13248 2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
13249
13250         PR target/50310
13251         * config/rs6000/vector.md (vector_uneq<mode>): Add support for
13252         UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
13253         (vector_ltgt<mode>): Likewise.
13254         (vector_ordered<mode>): Likewise.
13255         (vector_unordered<mode>): Likewise.
13256         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
13257
13258 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
13259
13260         * trans-mem.c: New typedef for tm_region_p.
13261         Define vector types for tm_region_p.
13262         (tm_region_init): Replace region_worklist to a vector called
13263         bb_regions.
13264
13265 2012-03-06  Richard Guenther  <rguenther@suse.de>
13266
13267         * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
13268         MEM_REF with constant pointer operand.
13269
13270 2012-03-06  Richard Guenther  <rguenther@suse.de>
13271
13272         PR middle-end/52493
13273         * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
13274
13275 2012-03-06  Tristan Gingold  <gingold@adacore.com>
13276
13277         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
13278         (external_model_kind): Improve documentation.
13279         (vms_pragma_extern_model): Handle relaxed_redef.
13280         (vms_c_register_pragma): Allow expansion for nomember_alignment.
13281
13282 2012-03-06  Georg-Johann Lay  <avr@gjlay.de>
13283
13284         * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
13285         Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
13286         Some more notes on EIND usage and reorder EIND subsection.
13287
13288 2012-03-06  Tristan Gingold  <gingold@adacore.com>
13289
13290         * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
13291         * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
13292
13293 2012-03-06  Tristan Gingold  <gingold@adacore.com>
13294
13295         * config/vms/t-vmsnative (version): Define.
13296         * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
13297
13298 2012-03-06  Andrey Belevantsev  <abel@ispras.ru>
13299
13300         PR rtl-optimization/52250
13301         * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
13302         to put note list into.  Unconditionally call move_bb_info.
13303         (move_bb_info): Do not assert the blocks being in the same region,
13304         just drop the note list if they are not.
13305
13306 2012-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
13307
13308         PR target/51244
13309         * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
13310         and use unified expansion logic.
13311         * config/sh/sh.md (xorsi3_movrt): Rename to movrt.  Move
13312         closer to the existing movt insn.
13313         (negc): Rename insn to *negc.  Add new expander.
13314         (movnegt): Use xor pattern for T bit negation.  Reserve helper
13315         constant for negc pattern.
13316         (*movnegt): New insn and splitter.
13317
13318 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
13319
13320         * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
13321         PLUS_EXPR.
13322
13323 2012-03-05  Richard Henderson  <rth@redhat.com>
13324
13325         * genemit.c (main): Include "target.h" in insn-emit.c.
13326         * Makefile.in (insn-emit.o): Depend on TARGET_H.
13327         * config/sh/sync.md (atomic_test_and_set): Reference
13328         targetm.atomic_test_and_set_trueval instead of
13329         TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
13330
13331 2012-03-05  Joern Rennecke  <joern.rennecke@embecosm.com>
13332
13333         * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
13334         Make static.
13335
13336 2012-03-05  Steven Bosscher  <steven@gcc.gnu.org>
13337
13338         * langhooks.c (add_builtin_type): New function.
13339         * langhooks.h (add_builtin_type): Export it.
13340         * config/mep/mep.c (mep_init_builtins): Use it.
13341         * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
13342
13343 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
13344
13345         PR debug/51902
13346         * tree.h (BLOCK_SAME_RANGE): Define.
13347         * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
13348         if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
13349         Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
13350         isn't equal to supercontext fragment's fragment chain.
13351         Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
13352         fragment origin.
13353         (blocks_nreverse_all): Likewise.
13354         (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits.  Set
13355         BLOCK_SUPERCONTEXT to supercontext fragment instead of
13356         supercontext fragment's fragment origin.
13357         * dwarf2out.c (add_high_low_attributes): If stmt has the same
13358         range as its parent (or parents thereof etc.), use the parent's
13359         DW_AT_ranges value instead of creating a new .debug_ranges range.
13360
13361 2012-03-05  Richard Henderson  <rth@redhat.com>
13362
13363         PR tree-opt/52242
13364         Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
13365         * omp-low.c (expand_omp_atomic): Assume anything aligned to
13366         BIGGEST_ALIGNMENT is aligned.
13367
13368 2012-03-05  Richard Henderson  <rth@redhat.com>
13369
13370         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
13371         * config/sh/sh.c: ... here.
13372
13373 2012-03-05  Richard Henderson  <rth@redhat.com>
13374
13375         PR target/52481
13376         * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
13377         instead of calling negqi2 directly.
13378
13379 2012-03-05  Aldy Hernandez  <aldyh@redhat.com>
13380
13381         PR middle-end/52463
13382         * trans-mem.c (tm_region_init): Use last_basic_block.
13383
13384 2012-03-05  Oleg Endo  <olegendo@gcc.gnu.org>
13385
13386         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
13387         * config/sh/sync.md (atomic_test_and_set): New expander.
13388         (tasb, atomic_test_and_set_soft): New insns.
13389         * config/sh/sh.opt (menable-tas): New option.
13390         * doc/invoke.texi (SH Options): Document it.
13391
13392 2012-03-05  Richard Guenther  <rguenther@suse.de>
13393
13394         * cfgloop.c (verify_loop_structure): Verify dominators before
13395         using them.
13396         * graphite-clast-to-gimple.c (graphite_verify): Do not verify
13397         dominators from here.
13398         * graphite-scop-detection.c (create_sese_edges): Likewise.
13399         * loop-doloop.c (doloop_optimize_loops): Likewise.
13400         * loop-init.c (loop_optimizer_init): Likewise.
13401         * loop-unroll.c (unroll_and_peel_loops): Likewise.
13402         * loop-unswitch.c (unswitch_loops): Likewise.
13403         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
13404         * tree-parloops.c (parallelize_loops): Likewise.  Verify
13405         only when checking is enabled.
13406         * tree-loop-distribution.c (tree_loop_distribution): Likewise.
13407
13408 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
13409
13410         * genautomata.c (parse_automata_opt): New static function.
13411         (initiate_automaton_gen): Remove all option handling code.  Remove
13412         argc argument.  All callers changed.
13413         (main): Call init_rtx_reader_args_cb with the new function as argument.
13414
13415 2012-03-05  Richard Guenther  <rguenther@suse.de>
13416
13417         * cfgexpand.c (gimple_expand_cfg): Free dominator info.
13418         * tree-if-conv.c (combine_blocks): Free post-dominator info
13419         after breaking it.
13420         * tree-parloops.c (create_parallel_loop): Free and re-compute
13421         dominator info after breaking it.
13422
13423 2012-03-05  Richard Guenther  <rguenther@suse.de>
13424
13425         PR middle-end/52353
13426         * optabs.h (trapv_unoptab_p): New function.
13427         (trapv_binoptab_p): Likewise.
13428         * optabs.c (expand_binop): Use emit_libcall_block_1 with
13429         a proper equiv_may_trap argument.
13430         (expand_unop): Likewise.
13431         (emit_libcall_block_1): Take extra argument whether the
13432         instruction may trap.  Renamed from ...
13433         (emit_libcall_block): ... this.  New wrapper.
13434
13435 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
13436
13437         PR tree-optimization/51721
13438         * tree-vrp.c (register_edge_assert_for_2): If comparing
13439         lhs of right shift by constant with an integer constant,
13440         add ASSERT_EXPRs for the rhs1 of the right shift.
13441
13442         * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
13443
13444 2012-03-05  Richard Guenther  <rguenther@suse.de>
13445
13446         * tree.c (integer_zerop): Handle VECTOR_CSTs.
13447         (integer_onep): Likewise.
13448         (integer_all_onesp): Likewise.
13449
13450 2012-03-05  Georg-Johann Lay  <avr@gjlay.de>
13451
13452         * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
13453
13454 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13455
13456         * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
13457         instead of TARGET_64BIT.
13458
13459 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13460
13461         * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
13462         adjust_stack_insn.
13463
13464 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13465
13466         * config/i386/i386.c (ix86_print_operand_address): Only handle
13467         zero-extended DImode addresses.
13468
13469 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
13470
13471         * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
13472         taken and cputaken as bool.
13473
13474 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
13475
13476         * config/i386/constraints.md (Ya): New internal constraint.
13477         * config/i386/i386.md (zero_extendsidi2): Remove expansion.
13478         (*zero_extendsidi2_rex64): Add x,x alternative.
13479         (*zero_extendsidi2): Ditto.  Add o,0 alternative.
13480         Remove flags reg clobber.  Adjust corresponding splits.
13481         (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
13482         zero_extendqisi2 expanders using SWI12 mode iterator.
13483         (zero_extend<mode>si2_and): Macroize insn from
13484         zero_extendhisi2_and and zero_extendqisi2_and.  Merge corresponding
13485         splitters.
13486         (*zero_extend<mode>si2):  Macroize insn from
13487         *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
13488         (*zero_extend*2_movzbl_and): Remove insn patterns.
13489         (zero_extendqihi2_and): Merge corresponding splitter.
13490         (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
13491         (*zero_extend*2_movzbl_and): Remove insn patterns.
13492         (*anddi_1): Split TYPE_IMOVX instructions.
13493         (*andsi_1): Use Ya for alternative 2.  Split TYPE_IMOVX instructions.
13494         (*andhi_1): Ditto.
13495         (and->zext splitter): Add splitter pattern.
13496         (zero extend with andsi3 splitter): Adjust zero_extend pattern.
13497
13498 2012-03-04  Sandra Loosemore  <sandra@codesourcery.com>
13499
13500         * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
13501         x86-specific text.
13502         (Debugging Options): Likewise.
13503         (Optimize Options): Likewise.
13504         (i386 and x86-64 Options): Discuss -march before -mtune, consistently
13505         with other architectures.  Use official processor names with correct
13506         spelling/capitalization.  Fix formatting and grammar issues.
13507         (i386 and x86-64 Windows Options): Similar cleanup here.
13508
13509 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13510
13511         * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
13512
13513 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13514
13515         * config/sh/sh.c (sh_dwarf_register_span): Don't apply
13516         DBX_REGISTER_NUMBER.
13517
13518 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13519
13520         * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
13521         operand is CONST_INT.  Take COSTS_N_INSNS into account.
13522         (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
13523         of shiftcosts.
13524
13525 2012-03-02  Richard Henderson  <rth@redhat.com>
13526
13527         * optabs.c (expand_atomic_test_and_set): Honor
13528         atomic_test_and_set_trueval even when atomic_test_and_set
13529         optab is not in use.
13530
13531 2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>
13532
13533         PR target/48596
13534         PR target/48806
13535         * config/sh/sh.c (sh_register_move_cost): Increase cost between
13536         GENERAL_REGS and FP_REGS for SImode.
13537
13538 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
13539
13540         PR target/49486
13541         * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
13542         (absdi2): New expander.
13543         (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
13544
13545 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
13546
13547         * config/sh/sync.md (atomic_exchange<mode>): New expander.
13548         (atomic_exchange<mode>_soft): New insn.
13549
13550 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
13551
13552         * config/sh/sync.md: Update copyright notice dates.
13553         (atomic_compare_and_swap<mode>): Use SImode for return value instead
13554         of QImode.
13555         (atomic_compare_and_swap<mode>_soft): Likewise.
13556
13557 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
13558
13559         PR target/31640
13560         * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
13561         * config/sh/sh.c: Update copyright notice dates.
13562         (sh_loop_align): Add logic from LOOP_ALIGN.  Don't disable loop
13563         alignment for TARGET_HARD_SH4.
13564         (sh_option_override): Reduce default function alignment.  Set
13565         loop alignment to 4 bytes when not optimizing for size.
13566
13567 2012-03-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
13568
13569         PR middle-end/50335
13570         * doc/invoke.texi (floop-flatten): Remove.
13571         * toplev.c (process_options): Remove references to flag_loop_flatten.
13572         * tree-ssa-loop.c (gate_graphite_transform): Same.
13573         * common.opt (floop-flatten): Obsolete.
13574         * graphite-poly.c (apply_poly_transforms): Remove reference to
13575         flag_loop_flatten.
13576         * Makefile.in (graphite-flattening.o): Remove.
13577         * graphite-flattening.c: Remove.
13578
13579 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
13580
13581         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
13582         having mode compatible with the mode of previous compare.  Substitute
13583         compare mode of previous compare with the mode, compatible
13584         with eliminated and previous compare.
13585
13586 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
13587
13588         * config/rs6000/dfp.md (floatdidd2): New define_insn.
13589
13590 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
13591
13592         * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
13593         compatible with CCGOCmode and CCGCmode.
13594
13595 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
13596
13597         * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
13598
13599 2012-03-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
13600
13601         * config/arm/arm.c (arm_sat_operator_match): New function.
13602         * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
13603         * config/arm/arm.md ("insn" attribute): Add "sat" value.
13604         ("SAT", "SATrev"): New code iterators.
13605         ("SATlo", "SAThi"): New code iterator attributes.
13606         ("*satsi_<SAT:code>"): New pattern.
13607         ("*satsi_<SAT:code>_shift"): Likewise.
13608         * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
13609         and "shift" attributes.
13610         ("arm_usatsihi"): Add "insn" attribute.
13611         * config/arm/predicates.md (sat_shift_operator): Allow multiplication
13612         by powers of two.  Do not allow shift by 32.
13613
13614 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
13615
13616         PR target/46716
13617         * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
13618         to pass the argument in the register of "natural" mode.
13619
13620 2012-03-02  Richard Guenther  <rguenther@suse.de>
13621
13622         PR tree-optimization/52406
13623         * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
13624         (struct indices): Add unconstrained_base member.
13625         (struct dr_alias): Remove unused vops member.
13626         (DR_UNCONSTRAINED_BASE): New define.
13627         * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
13628         add indices to allow their disambiguation.  Make DR_BASE_OBJECT
13629         be an artificial access that covers the whole indexed object,
13630         or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
13631         plain decl base-objects to their MEM_REF variant.
13632         (dr_may_alias_p): When the base-object of either data reference
13633         has unknown size use only points-to information.
13634         (compute_affine_dependence): Make dumps easier to read and
13635         more verbose.
13636         * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
13637         DR_REF when looking for packed references.
13638         (vect_supportable_dr_alignment): Likewise.
13639
13640 2012-03-02  Greta Yorsh  <Greta.Yorsh@arm.com>
13641
13642         * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
13643         Improve conditions for peepholes of loads followed by commutative
13644         operators.
13645         * config/arm/ldmstm.md: Regenerated.
13646
13647 2012-03-02  Richard Guenther  <rguenther@suse.de>
13648
13649         * BASE-VER: Set to 4.8.0.
13650
13651 2012-03-01  Richard Earnshaw  <rearnsha@arm.com>
13652
13653         * config.gcc (obsolete): Add all ARM targets using the FPA.
13654         (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
13655         * doc/install.texi: Avoid references to obsolete ARM ports.
13656
13657 2012-03-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13658
13659         * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
13660
13661 2012-03-01  Jeremy Bennett  <jeremy.bennett@embecosm.com>
13662             Joern Rennecke  <joern.rennecke@embecosm.com>
13663
13664         * doc/extend.texi: Expand and update information on interrupt
13665         attribute for Epiphany.
13666
13667 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
13668
13669         * config/sh/sh-protos.h: Update copyright notice dates.
13670         * config/sh/sh.h: Likewise.
13671         * config/sh/sh.md: Likewise.
13672         * config/sh/constraints.md: Likewise.
13673         * config/sh/predicates.md: Likewise.
13674
13675 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
13676
13677         * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
13678         * config/sh/sh.c (tertiary_reload_operand): Likewise.
13679
13680 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
13681
13682         * config/sh/constraints.md: Fix comment typo.
13683
13684 2012-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13685
13686         PR target/52408
13687         * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
13688         unsigned HOST_WIDE_INT.
13689         (zvdep_imm64): Likewise.
13690         (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
13691         (vdepi_and): Likewise.
13692         Likewise for unamed 64-bit patterns.
13693         * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
13694
13695 2012-03-01  Alexandre Oliva  <aoliva@redhat.com>
13696
13697         PR debug/52001
13698         PR rtl-optimization/52417
13699         * cselib.c (cselib_any_perm_equivs): New variable.
13700         (cselib_reset_table): Check that it's not set when not
13701         preserving constants.
13702         (cselib_add_permanent_equiv): Set it.
13703         (cselib_have_permanent_equivalences): New.
13704         (cselib_init, cselib_finish): Reset it.
13705         * cselib.h (cselib_have_permanent_equivalences): Declare.
13706         * alias.c (get_addr): Restore earlier behavior when there
13707         aren't permanent equivalences.
13708
13709 2012-03-01  Steven Bosscher  <steven@gcc.gnu.org>
13710
13711         * config/mn10300/mn10300-modes.def: Fix copyright notice.
13712         * config/v850/v850-modes.def: Fix copyright notice.
13713
13714 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
13715
13716         * doc/extend.texi (AVR Built-in Functions): Document
13717         __builtin_avr_flash_segment.
13718
13719         * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
13720         * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
13721         (*split.flash_segment): New insn-and-split.
13722         * config/avr/avr.c (avr_init_builtins): Add local variables:
13723         const_memx_void_node, const_memx_ptr_type_node,
13724         char_ftype_const_memx_ptr.
13725
13726 2012-03-01  Jakub Jelinek  <jakub@redhat.com>
13727
13728         PR tree-optimization/52445
13729         * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
13730         add ssa_name_ver, offset and size fields and change store field
13731         to bool.
13732         (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
13733         (add_or_mark_expr): Likewise.  Only consider previous stores
13734         with the same size and offset.
13735         (nt_init_block): Only look at gimple_assign_single_p stmts,
13736         doesn't look at rhs2.
13737
13738 2012-03-01  Richard Guenther  <rguenther@suse.de>
13739
13740         PR middle-end/52443
13741         * tree-cfg.c (verify_gimple_assign_unary): Allow any
13742         conversions from integral types to pointer types.
13743
13744 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
13745
13746         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
13747         defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
13748         unintentionally removed in r184616.
13749
13750 2012-03-01  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13751
13752         * doc/invoke.texi: Document AMD bdver2 and remove mentioning
13753         3DNow from bdver1.
13754
13755 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
13756             Uros Bizjak  <ubizjak@gmail.com>
13757
13758         PR target/52437
13759         * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
13760         alternatives, add "e" constraint to the new last alternative
13761         and ! to last 3 alternatives.
13762
13763 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13764
13765         * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
13766         DW_AT_artificial attributes at the end of the processing.
13767         (gen_array_type_die): Likewise.
13768         (gen_enumeration_type_die): Likewise.
13769         (gen_struct_or_union_type_die): Likewise.
13770         (add_gnat_descriptive_type_attribute): Do not suppress debug info for
13771         the parent type.
13772
13773 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
13774
13775         PR middle-end/52419
13776         * expr.c (expand_assignment): If doing misaligned store that doesn't
13777         cover all mode bits, perform a RMW cycle.
13778
13779         PR tree-optimization/52429
13780         * tree-parloops.c (separate_decls_in_region_debug): Return early
13781         if var is LABEL_DECL.
13782
13783 2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13784
13785         PR tree-optimization/52424
13786         * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
13787         calling dom_thread_across_edge.
13788
13789 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13790
13791         * config/avr/avr.c: Move definition of TARGET macros to end of file.
13792
13793 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13794
13795         * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
13796         * config/avr/avr.c (avr_output_bld): Remove unused function.
13797         (avr_out_sbxx_branch): Use "%T" to print bit position.
13798
13799 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13800
13801         * config/avr/avr.md: Untabify.
13802
13803 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13804
13805         * config/avr/avr.md (eqne): New code iterator.
13806         (*dec-and-branchsi): Use it in text peephole's condition.
13807         (*dec-and-branchhi): Ditto.
13808         (*dec-and-branchqi): Ditto.
13809
13810 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
13811
13812         PR target/49939
13813         * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
13814         the device does not have the skip-bug.
13815
13816 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
13817
13818         * doc/invoke.texi (-msoft-atomic): Add more detailed description.
13819         (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
13820         -mpretend-cmove): New.
13821
13822 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
13823
13824         PR bootstrap/52397
13825         * df.h (struct df_d): Adjust comment that hard_regs_live_count
13826         doesn't count DEBUG_INSN refs.
13827         * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
13828         for DEBUG_INSN refs.
13829
13830 2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13831
13832         Partially revert:
13833
13834         2012-02-20  Richard Guenther  <rguenther@suse.de>
13835         PR tree-optimization/52298
13836         * tree-vect-stmts.c (vectorizable_load): Properly use
13837         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
13838
13839 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
13840
13841         PR middle-end/51752
13842         * gimple.h (gimple_in_transaction): New.
13843         (gimple_set_in_transaction): New.
13844         (struct gimple_statement_base): Add in_transaction field.
13845         * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
13846         transaction loads.
13847         (tree_ssa_lim_initialize): Compute transaction bits.
13848         * tree.h (compute_transaction_bits): Protoize.
13849         * trans-mem.c (tm_region_init): Use the heap to store BB
13850         auxilliary data.
13851         (compute_transaction_bits): New.
13852
13853 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13854
13855         * gcc.c (display_help): Document --help=common and sort entries
13856         alphabetically.
13857
13858 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13859
13860         * doc/install.texi: Document check-$LANG specific shortcuts
13861
13862 2012-02-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
13863
13864         PR target/51534
13865         * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
13866         and vcgtu.
13867         * config/arm/arm_neon.h: Regenerate.
13868         * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
13869         (neon_vcgeu): New insn.
13870         (neon_vcgtu): Likewise.
13871         * config/arm/neon.ml (s_8_32, u_8_32): New lists.
13872         (ops): Unsigned comparison intrinsics call a different builtin.
13873
13874 2012-02-28  Richard Guenther  <rguenther@suse.de>
13875
13876         PR target/52407
13877         * config/i386/i386.c (ix86_expand_vector_set): Fix element
13878         ordering for the VEC_CONCAT for two element vectors for
13879         V2SFmode, V2SImode and V2DImode.
13880
13881 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
13882
13883         PR target/49448
13884         * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
13885         detecting big-endian triplets.
13886
13887 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
13888
13889         * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
13890         mode if there is no type information available.
13891
13892 2012-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
13893
13894         PR tree-optimization/53207
13895         * doc/invoke.texi: Document as experimental and relying on graphite.
13896
13897 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
13898
13899         * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
13900         of initializer to changes from r184614.
13901
13902 2012-02-28  Richard Guenther  <rguenther@suse.de>
13903
13904         PR tree-optimization/52395
13905         * tree-sra.c (build_ref_for_offset): Also look at the base
13906         TYPE_ALIGN when figuring out the alignment of the replacement.
13907
13908 2012-02-28  Richard Guenther  <rguenther@suse.de>
13909
13910         PR tree-optimization/52402
13911         * ipa-prop.c (ipa_modify_call_arguments): Properly use
13912         mis-aligned types when creating the accesses at the call site.
13913
13914 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
13915
13916         * config/avr/builtins.def: New file.
13917         * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
13918         * config/avr/avr.c (enum avr_builtin_id): Use it.
13919         (avr_init_builtins): Use it. And use avr_bdesc.
13920         (bdesc_1arg): Remove.
13921         (bdesc_2arg): Remove.
13922         (bdesc_3arg): Remove.
13923         (struct avr_builtin_description): Add field n_args.
13924         (avr_bdesc): New static variable using builtins.def.
13925         (avr_expand_builtin): Use it.
13926         Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
13927         (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
13928         Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
13929
13930 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
13931
13932         PR target/52148
13933         * config/avr/avr.md (movmem_<mode>): Replace match_operand that
13934         match only one single hard register with respective hard reg rtx.
13935         (movmemx_<mode>): Ditto.
13936         * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
13937         insn anatomy of movmem[x]_<mode>.
13938         (avr_out_movmem): Same for printing assembler and operand usage.
13939
13940 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
13941
13942         PR target/49868
13943         PR target/52261
13944         * doc/extend.texi (AVR Named Address Spaces): No more try to fix
13945         address spaces located outside of device flash.
13946
13947         * config/avr/avr.h (base_arch_s): Remove field n_segments.
13948         (mcu_type_s): Add field n_flash.
13949         * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
13950         Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
13951         (AVR_MCU): Add N_FLASH argument.
13952         * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
13953         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
13954         macro __FLASH<n> if that address space makes sense for the device.
13955         * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
13956         outside of target flash.
13957         (avr_asm_named_section): Ditto.
13958         (avr_asm_select_section): Ditto.
13959         (avr_addr_space_convert): Ditto.
13960         (avr_emit_movmemhi): Ditto.
13961         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
13962         address space is outside of device flash.
13963         (avr_insert_attributes): Ditto.
13964         (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
13965         avr_current_arch->n_segments.
13966
13967 2012-02-27  H.J. Lu  <hongjiu.lu@intel.com>
13968
13969         PR target/52352
13970         * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
13971         (*movabs<mode>_2): Likewise.
13972
13973 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
13974
13975         PR target/52375
13976         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
13977         s_register_operand in the test instead of REG_P.  Don't call
13978         gen_reg_rtx if it won't be used.
13979
13980         PR tree-optimization/52376
13981         * ipa-split.c (split_function): Ignore CLOBBER stmts.
13982
13983 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
13984
13985         * ifcvt.c (noce_get_condition): Check condition variable is not
13986         small_register_classes_for_mode_p before accepting.
13987
13988 2012-02-27  Uros Bizjak  <ubizjak@gmail.com>
13989
13990         * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
13991
13992 2012-02-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
13993
13994         Revert:
13995         2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
13996         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
13997         tuning parameters.
13998         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
13999
14000 2012-02-27  Oleg Endo  <olegendo@gcc.gnu.org>
14001
14002         * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
14003
14004 2012-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
14005
14006         * config/sh/predicates.md: Remove blank lines.
14007         * config/sh/sh.c: Fix typos in comments.
14008         * config/sh/constraints.md: Likewise.
14009         * config/sh/sh.md: Remove blank lines.
14010         Fix typos in comments.  Use ;; as comment characters.
14011
14012 2012-02-26  Walter Lee  <walt@tilera.com>
14013
14014         * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
14015         (replace_mov_pcrel_step2): Ditto.
14016
14017 2012-02-25  Alexandre Oliva  <aoliva@redhat.com>
14018
14019         PR debug/52001
14020         * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
14021         (get_addr): Walk canonical value's locs.  Avoid returning VALUEs
14022         and locs that reference values newer than the non-canonical value
14023         at hand.  Return the canonical value as a worst case.
14024         (memrefs_conflict_p): Walk canonical value's locs.
14025
14026         PR debug/52001
14027         * cselib.c (preserve_only_constants): Rename to...
14028         (preserve_constants_and_equivs): ... this.  Split out...
14029         (invariant_or_equiv_p): ... this.  Preserve plus expressions
14030         of other preserved expressions too.
14031         (cselib_reset_table): Adjust.
14032         * var-tracking.c (reverse_op): Use canonical value to build
14033         reverse operation.
14034
14035 2012-02-23  Kai Tietz  <ktietz@redhat.com>
14036
14037         * config/i386/i386.c (ix86_delegitimize_address): Handle
14038         UNSPEC_PCREL plus displacement.
14039
14040 2012-02-24  Georg-Johann Lay  <avr@gjlay.de>
14041
14042         PR target/52261
14043         * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
14044         to test for unusedness in st X addressing.
14045
14046 2012-02-24  Richard Guenther  <rguenther@suse.de>
14047
14048         PR middle-end/52361
14049         * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
14050         (is_gimple_reg_type): Move inline ...
14051         * gimple.h (is_gimple_reg_type): ... here.
14052
14053 2012-02-24  Richard Guenther  <rguenther@suse.de>
14054
14055         PR middle-end/52361
14056         * passes.c (execute_function_todo): When verifying SSA form
14057         verify gimple form first.
14058         * tree-ssa.c (verify_ssa): Do not verify gimple form here.
14059
14060 2012-02-24  Richard Guenther  <rguenther@suse.de>
14061
14062         PR middle-end/52355
14063         * fold-const.c (fold_addr_of_array_ref_difference): New function.
14064         (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
14065
14066 2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14067
14068         * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
14069
14070 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14071
14072         * tree-phinodes.c (make_phi_node): Mark static.
14073         * tree-flow.h (make_phi_node): Remove extern decl.
14074         * doc/gimple.texi (make_phi_node): Remove documentation.
14075
14076 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14077
14078         * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
14079         * tree-ssa-sccvn.c (print_scc): Ditto.
14080
14081 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14082
14083         * doc/passes.texi (Full redundancy elimination): Fix typo.
14084
14085 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14086
14087         * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
14088
14089 2012-02-23  Eric Botcazou  <ebotcazou@adacore.com>
14090
14091         PR bootstrap/52287
14092         * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
14093
14094 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
14095
14096         PR c/52290
14097         * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
14098
14099 2012-02-23  Georg-Johann Lay  <avr@gjlay.de>
14100
14101         * config/avr/avr.md (code_stdname): Add ior, xor.
14102         (xior): New code iterator.
14103         (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
14104         (*<code_stdname><mode>qi.byte1-3): Ditto.
14105
14106 2012-02-23  Jakub Jelinek  <jakub@redhat.com>
14107
14108         PR tree-optimization/52019
14109         * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
14110         CLOBBER stmts.
14111
14112 2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14113
14114         * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
14115         HAVE_INITFINI_ARRAY to work around namespace pollution in
14116         certain versions of newlib system headers.
14117         * config.in: Regenerate.
14118         * configure: Regenerate.
14119         * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
14120         instead of HAVE_INITFINI_ARRAY.
14121
14122 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
14123
14124         PR target/52330
14125         * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
14126         is not offsettable memory reference.
14127
14128 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
14129
14130         PR target/18145
14131         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
14132         setting avr_need_clear_bss_p for __gnu_lto* symbols.
14133
14134 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
14135
14136         * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
14137         * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
14138
14139 2012-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14140
14141         * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
14142         library on Solaris 8 even without TLS support.
14143         * configure: Regenerate.
14144
14145 2012-02-22  Richard Guenther  <rguenther@suse.de>
14146
14147         PR middle-end/52329
14148         * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
14149         for GIMPLE_DEBUG stmts.
14150
14151 2012-02-22  Martin Jambor  <mjambor@suse.cz>
14152
14153         PR middle-end/51782
14154         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
14155         according to the base object.
14156
14157 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
14158
14159         PR rtl-optimization/50063
14160         * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
14161         and 2 (8-bit SP) in operand 2.
14162         * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
14163         setup to use movhi_sp_r instead of vanilla move to write SP.
14164         Adjust REG_CFA notes to superseed unspec.
14165         (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
14166         of vanilla move.
14167         As function body might contain CLI or SEI: Use irq_state 0 (IRQ
14168         known to be off) only with TARGET_NO_INTERRUPTS. Never use
14169         irq_state 1 (IRQ known to be on) here.
14170
14171 2012-02-21  Bernd Schmidt  <bernds@codesourcery.com>
14172
14173         * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
14174         WORDS_BIG_ENDIAN.
14175         * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
14176         assign_hard_reg): Likewise.
14177
14178 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
14179
14180         * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
14181
14182 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
14183
14184         * config/avr/avr.md
14185         (*dec-and-branchhi!=-1.d.clobber): New text peephole.
14186         (*dec-and-branchhi!=-1.l.clobber): New text peephole.
14187
14188 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
14189
14190         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
14191         prototype from here to...
14192         * config/avr/avr.h: ...here.
14193
14194 2012-02-21  Richard Earnshaw  <rearnsha@arm.com>
14195
14196         PR target/52294
14197         * thumb2.md (thumb2_shiftsi3_short): Split register and
14198         immediate shifts.  For register shifts tie operands 0 and 1.
14199         (peephole2 for above): Check that register-controlled shifts
14200         have suitably tied operands.
14201
14202 2012-02-21  Quentin Neill  <quentin.neill@amd.com>
14203
14204         PR target/52137
14205         * config/i386/bdver1.md (bdver1_call, bdver1_push,
14206         bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
14207         bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
14208         bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
14209         bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
14210         bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
14211         bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
14212         bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
14213         bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
14214         bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
14215         bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
14216         bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
14217         bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
14218         bdver1_ssevector_avx256_unaligned_load,
14219         bdver1_ssevector_sse128_unaligned_load,
14220         bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
14221         bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
14222         bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
14223         bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
14224         bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
14225         bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
14226         bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
14227         bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
14228         bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
14229         bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
14230         bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
14231         bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
14232         bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
14233         bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
14234         bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
14235         bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
14236         bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
14237         bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
14238         bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
14239         bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
14240         bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
14241         bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
14242         bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
14243         bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
14244         bdver1_ssediv_double_load, bdver1_ssediv_double,
14245         bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
14246         Add "bdver2" attribute.
14247
14248 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14249
14250         * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
14251         default if possible and not specified otherwise.
14252
14253 2012-02-21  Richard Guenther  <rguenther@suse.de>
14254
14255         PR middle-end/52314
14256         * gimplify.c (create_tmp_from_val): Use the main variant type
14257         for the type of the temporary we create.
14258
14259 2012-02-21  Richard Guenther  <rguenther@suse.de>
14260
14261         PR tree-optimization/52324
14262         * gimplify.c (gimplify_expr): When re-gimplifying expressions
14263         do not gimplify a MEM_REF address operand if it is already
14264         in suitable form.
14265
14266 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14267
14268         * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
14269         TARGET_HARD_FLOAT with TARGET_HARD_DFP.
14270
14271 2012-02-21  Richard Guenther  <rguenther@suse.de>
14272
14273         * tree-vect-stmts.c (vectorizable_load): Use pre-computed
14274         nested_in_vect_loop.
14275
14276 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
14277
14278         PR tree-optimization/52318
14279         * gimple-fold.c (gimplify_and_update_call_from_tree): Add
14280         vdef also to non-pure/const call stmts in the sequence.
14281
14282 2012-02-21  Tristan Gingold  <gingold@adacore.com>
14283
14284         * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
14285
14286 2012-02-20  David S. Miller  <davem@davemloft.net>
14287
14288         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
14289         don't use the "rd %pc" instruction on v9 for PIC register loads.
14290
14291 2012-02-20  Aldy Hernandez  <aldyh@redhat.com>
14292
14293         PR middle-end/52141
14294         * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
14295         in a transaction safe function.
14296
14297 2012-02-20  Kai Tietz  <ktietz@redhat.com>
14298
14299         PR target/52238
14300         * stor-layout.c (place_field): Handle desired_align for
14301         ms-bitfields, too.
14302
14303 2012-02-20  Richard Guenther  <rguenther@suse.de>
14304
14305         PR tree-optimization/52298
14306         * tree-vect-stmts.c (vectorizable_store): Properly use
14307         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
14308         outer loops.
14309         (vectorizable_load): Likewise.
14310         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
14311         Access DR_STEP after ensuring it is not NULL.
14312
14313 2012-02-20  Jakub Jelinek  <jakub@redhat.com>
14314
14315         PR tree-optimization/52286
14316         * fold-const.c (fold_binary_loc): For (X & C1) | C2
14317         optimization use double_int_to_tree instead of build_int_cst_wide,
14318         rewrite to use double_int vars.
14319
14320 2012-02-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14321
14322         PR target/50166
14323         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
14324         Define _start.
14325         Remove -e 0 from $gcc_cv_ld invocation.
14326         Only use __GLIBC_PREREQ if defined.
14327         Enable on Solaris since Solaris 8 patch.
14328         (gcc_SUN_LD_VERSION): New macro.
14329         * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
14330         gcc_SUN_LD_VERSION for version number format.
14331         * configure: Regenerate.
14332         * varasm.c (get_elf_initfini_array_priority_section): Set
14333         SECTION_NOTYPE for non-default priority.
14334         Use get_section instead of get_unnamed_section to emit
14335         .init_array/.fini_array with default priority.
14336
14337 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
14338
14339         * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
14340         (mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
14341         (mips_start_unique_function, mips_output_mips16_rdhwr)
14342         (mips_code_end): New functions.
14343         (TARGET_ASM_CODE_END): Define.
14344
14345 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
14346
14347         * config/mips/mips.c (mips16_build_call_stub): Add CFI information
14348         to stubs with non-sibling calls.
14349
14350 2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>
14351
14352         * doc/invoke.texi (-fira-* options): Copy-edit.
14353         (ira-* parameters): Copy-edit.
14354
14355 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
14356
14357         * doc/invoke.texi: Minor copy-edits to bring into conformance with
14358         GCC coding conventions.
14359
14360 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
14361
14362         * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
14363         when used as adjectives.
14364
14365 2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>
14366
14367         * doc/invoke.texi: Clean up "that"/"which" confusion.
14368
14369 2012-02-17  Steven Bosscher  <steven@gcc.gnu.org>
14370
14371         * system.h: Poison SMALL_REGISTER_CLASSES
14372         * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
14373         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
14374
14375 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
14376
14377         PR tree-optimization/52285
14378         * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
14379         when deciding if a call is a tail call or tail recursion.
14380
14381 2012-02-16  Kai Tietz  <ktietz@redhat.com>
14382
14383         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
14384         interger-constant displacement for UNSPEC_PCREL.
14385
14386 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
14387
14388         PR rtl-optimization/52208
14389         * ira-costs.c (scan_one_insn): Don't decrease mem_cost
14390         for MEMs with REG_EQUIV, if the MEM isn't general_operand.
14391
14392         PR tree-optimization/52255
14393         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
14394         loop->header has virtual PHI, but exit_e->dest doesn't, add
14395         virtual PHI to exit_e->dest and adjust all uses after the loop.
14396
14397         PR debug/52260
14398         * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
14399         children with clone_tree_hash, not after it.
14400
14401 2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
14402
14403         * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
14404         extended identifiers.
14405
14406 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
14407
14408         PR middle-end/51929
14409         * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
14410         a same_body_alias, also test whether e->callee isn't a former
14411         or current clone of the decl this is a same body alias of.
14412
14413         PR translation/52264
14414         * cgraphunit.c (verify_cgraph_node): Fix a typo.
14415
14416 2012-02-15  Sandra Loosemore  <sandra@codesourcery.com>
14417
14418         * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
14419
14420 2012-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
14421
14422         PR target/52199
14423         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
14424         force_reg instead of copy_to_reg for better optimization.  Force
14425         non-register or memory operands into a register.
14426
14427 2012-02-15  Andrew MacLeod  <amacleod@redhat.com>
14428
14429         * extend.texi: Reserve upper bits of memory model for future use.
14430
14431 2012-01-15  Georg-Johann Lay  <avr@gjlay.de>
14432             Anatoly Sokolov <aesok@post.ru>
14433             Eric Weddington <eric.weddington@atmel.com>
14434
14435         PR target/52261
14436         * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
14437         avrxmega4, avrxmega5, avrxmega6, avrxmega7.
14438         Rewrite initializers for .macro.
14439         * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
14440         avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
14441         atxmega32d4, atxmega32x1.
14442         avrxmega4: atxmega64a3, atxmega64d3.
14443         avrxmega5: atxmega64a1, atxmega64a1u.
14444         avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
14445         atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
14446         avrxmega7: atxmega128a1, atxmega128a1u.
14447         * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
14448         ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
14449         (struct base_arch_s): Rename reserved to xmega_p.
14450         Rename reserved2 to have_rampd.
14451         (AVR_XMEGA): New define.
14452         (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
14453         (AVR_HAVE_RAMPZ): Change definition to fit xmega.
14454         * config/avr/predicates.md (io_address_operand): Take into
14455         account SFR offset.
14456         (low_io_address_operand): Ditto.
14457         (high_io_address_operand): Ditto.
14458         * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
14459         (enabled, movhi_sp_r): Use them.
14460         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
14461         cpp_define_formatted to built-in define __AVR_ARCH__.
14462         (__AVR_XMEGA__): New built-in define.
14463         (__AVR_HAVE_RAMPD__): New built-in define.
14464         (__AVR_HAVE_RAMPX__): New built-in define.
14465         (__AVR_HAVE_RAMPY__): New built-in define.
14466         (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
14467
14468         * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
14469         (avr_option_override): Initialize them.
14470         (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
14471         (avr_init_expanders): Initialize them. No more block several calls.
14472         (emit_push_sfr): New static function.
14473         (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
14474         Handle AVR_XMEGA.
14475         (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
14476         (avr_print_operand): Print addreeses as symbols for
14477         RAMPX, RAMPY, RAMPD, CCP.
14478         (output_movhi): Handle AVR_XMEGA when writing to SP.
14479         (avr_out_movhi_mr_r_xmega): New static function.
14480         (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
14481         (avr_file_start): Print symbol defines for __RAMPX__,  __RAMPY__,
14482         __RAMPD__,  __CCP__ as needed.
14483
14484         * config/avr/multilib.h: Regenerate.
14485         * config/avr/t-multilib: Regenerate.
14486         * config/avr/avr-tables.opt: Regenerate.
14487
14488 2012-02-15  Tobias Grosser <grosser@fim.uni-passau.de>
14489
14490         PR tree-optimization/50561
14491         * graphite-flattening.c (lst_project_loop): Do not
14492         remove old scattering dimensions after flattening.
14493         (lst_do_flatten): Likewise.
14494
14495 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
14496
14497         * doc/extend.texi (AVR Built-in Functions): Remove doc for
14498         __builtin_avr_map8, __builtin_avr_map16.
14499         Document __builtin_avr_insert_bits.
14500
14501         * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
14502         (insert_bits): New insn.
14503         (adjust_len.map_bits): Rename to insert_bits.
14504         (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
14505         * avr-protos.h (avr_out_map_bits): Remove.
14506         (avr_out_insert_bits, avr_has_nibble_0xf): New.
14507         * config/avr/constraints.md (Cxf,C0f): New.
14508         * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
14509         defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
14510         New built-in define __BUILTIN_AVR_INSERT_BITS.
14511         * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
14512         (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
14513         (avr_move_bits): Rewrite.
14514         (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
14515         functions.
14516         (avr_map_op_t): New typedef.
14517         (avr_map_op): New static variable.
14518         (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
14519         (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
14520         (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
14521         (bdesc_3arg, avr_expand_triop_builtin): New.
14522         (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
14523         (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
14524         (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
14525         (avr_map_equal_p, avr_map_sig_p): Remove.
14526         (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
14527         (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14528         (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
14529         (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14530         (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
14531         (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14532
14533 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
14534
14535         * config/c6x/c6x.md (reserve_cycles): New attribute.
14536         * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
14537         don't reserve functional units after the branch occurs.
14538
14539 2012-02-14  Aldy Hernandez  <aldyh@redhat.com>
14540
14541         PR middle-end/52142
14542         * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
14543         functions into non-tm_pure functions.
14544
14545 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
14546
14547         PR lto/52178
14548         * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
14549         (iterative_hash_canonical_type): Likewise.
14550         * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
14551         the dead edges.
14552
14553 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
14554
14555         * haifa-sched.c (prune_ready_list): Ensure that if there is a
14556         sched-group insn, it either remains alone or the entire list is pruned.
14557
14558 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
14559
14560         * doc/install.texi (Prerequisites): Fix grammar.
14561         (Configuration): Likewise.
14562
14563 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
14564
14565         * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
14566         MPC as part of GCC before describing configuring with --with-gmp etc.
14567         (Installing GCC: Configuration): --with-gmp etc. aren't needed if
14568         sources are present.
14569
14570 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
14571
14572         PR debug/51950
14573         * dwarf2out.c (clone_tree_hash): New function.
14574         (copy_decls_walk): Use it instead of clone_tree.
14575
14576 2012-02-14  Richard Guenther  <rguenther@suse.de>
14577
14578         PR tree-optimization/52244
14579         PR tree-optimization/51528
14580         * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
14581         replacements for integral types.
14582
14583 2012-02-14  Walter Lee  <walt@tilera.com>
14584
14585         * config.gcc: Handle tilegx and tilepro.
14586         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
14587         tilegx and tilepro.
14588         Add HAVE_AS_TLS check for tilegx and tilepro.
14589         * configure: Regenerate.
14590         * doc/contrib.texi: Add Mat Hostetter and self.
14591         * doc/extend.texi (TILE-Gx Built-in Functions): New node.
14592         Document instruction intrinsics and network accessing intrinsics.
14593         (TILEPro Built-in Functions): New node.  Document instruction
14594         intrinsics and network accessing intrinsics.
14595         * doc/install.texi (Specific, tilegx-*-linux*): Document it.
14596         (Specific, tilepro-*-linux*): Likewise.
14597         * doc/invoke.texi (TILE-Gx Options): New section.
14598         (TILEPro Options): New section.
14599         * doc/md.texi (TILE-Gx): New section.
14600         (TILEPro): New section.
14601         * common/config/tilegx/tilegx-common.c: New file.
14602         * common/config/tilepro/tilepro-common.c: New file.
14603         * config/tilegx/constraints.md: New file.
14604         * config/tilegx/linux.h: New file.
14605         * config/tilegx/mul-tables.c: New file.
14606         * config/tilegx/predicates.md: New file.
14607         * config/tilegx/sync.md: New file.
14608         * config/tilegx/t-tilegx: New file.
14609         * config/tilegx/tilegx-builtins.h: New file.
14610         * config/tilegx/tilegx-c.c: New file.
14611         * config/tilegx/tilegx-generic.md: New file.
14612         * config/tilegx/tilegx-modes.def: New file.
14613         * config/tilegx/tilegx-multiply.h: New file.
14614         * config/tilegx/tilegx-protos.h: New file.
14615         * config/tilegx/tilegx.c: New file.
14616         * config/tilegx/tilegx.h: New file.
14617         * config/tilegx/tilegx.md: New file.
14618         * config/tilegx/tilegx.opt: New file.
14619         * config/tilepro/constraints.md: New file.
14620         * config/tilepro/gen-mul-tables.cc: New file.
14621         * config/tilepro/linux.h: New file.
14622         * config/tilepro/mul-tables.c: New file.
14623         * config/tilepro/predicates.md: New file.
14624         * config/tilepro/t-tilepro: New file.
14625         * config/tilepro/tilepro-builtins.h: New file.
14626         * config/tilepro/tilepro-c.c: New file.
14627         * config/tilepro/tilepro-generic.md: New file.
14628         * config/tilepro/tilepro-modes.def: New file.
14629         * config/tilepro/tilepro-multiply.h: New file.
14630         * config/tilepro/tilepro-protos.h: New file.
14631         * config/tilepro/tilepro.c: New file.
14632         * config/tilepro/tilepro.h: New file.
14633         * config/tilepro/tilepro.md: New file.
14634         * config/tilepro/tilepro.opt: New file.
14635
14636 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
14637
14638         PR tree-optimization/52210
14639         * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
14640         vect_model_simple_cost with two entry vect_def_type array instead
14641         of an address of dt.
14642
14643 2012-02-14  Richard Guenther  <rguenther@suse.de>
14644
14645         PR lto/52178
14646         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
14647         Do not stream DECL_QUALIFIER.
14648         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
14649         * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
14650         (find_decls_types_r): Do not walk DECL_QUALIFIER.
14651
14652 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
14653
14654         PR c/52181
14655         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
14656         newdecl.
14657
14658 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
14659
14660         PR bootstrap/52172
14661         * cselib.h (cselib_subst_to_values_from_insn): New prototype.
14662         * cselib.c (cselib_subst_to_values_from_insn): New function.
14663         * sched-deps.c (add_insn_mem_dependence,
14664         sched_analyze_1, sched_analyze_2): Use it.
14665
14666 2012-02-13  Jan Hubicka  <jh@suse.cz>
14667
14668         PR middle-end/52214
14669         * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
14670
14671 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
14672
14673         * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
14674         (GTM_SELF_SPECS): Define if not already defined.
14675         (driver_self_specs): Add GTM_SELF_SPECS.
14676         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
14677         (GTM_SELF_SPECS): Define.
14678         * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
14679         * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
14680
14681 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
14682
14683         * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
14684         away if seen.
14685
14686         * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
14687
14688         PR middle-end/52230
14689         * omp-low.c (expand_omp_for): If a static schedule without chunk size
14690         has NULL region->cont, force fd.chunk_size to be integer_zero_node.
14691
14692 2012-02-13  Andrew MacLeod  <amacleod@redhat.com>
14693
14694         PR c/52190
14695         * doc/extend.texi : Fix another __atomic_compare_exchange typo.
14696
14697 2012-02-13  Richard Guenther  <rguenther@suse.de>
14698
14699         PR translation/52211
14700         * passes.c (enable_disable_pass): Fix typo.
14701
14702 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
14703
14704         PR middle-end/52209
14705         * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
14706         XOR for reduce_bit_field if type is unsigned.
14707
14708 2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>
14709
14710         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
14711         disallow changes from SFmode to mode with different size in FP regs.
14712
14713 2012-02-12  Robert Millan  <rmh@gnu.org>
14714             Gerald Pfeifer <gerald@pfeifer.com>
14715
14716         * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
14717         Tweak comment.
14718
14719 2012-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
14720
14721         PR rtl-optimization/52175
14722         * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
14723         to frame-related instructions.
14724
14725 2012-02-10  Jason Merrill  <jason@redhat.com>
14726
14727         PR c++/51910
14728         * tlink.c (demangled_hash_entry): Change mangled to a VEC.
14729         (demangle_new_symbols): Fill it.
14730         (scan_linker_output): Walk it.
14731         (start_tweaking): Split out from scan_linker_output.
14732         (maybe_tweak): Update sym->chosen.
14733         * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
14734
14735 2012-02-11  Jakub Jelinek  <jakub@redhat.com>
14736
14737         PR debug/52132
14738         * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
14739
14740 2012-02-11  Uros Bizjak  <ubizjak@gmail.com>
14741
14742         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
14743         having the same mode as previous compare.
14744
14745 2012-02-10  Eric Botcazou  <ebotcazou@adacore.com>
14746
14747         * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
14748         * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
14749         (nonlocal_goto_internal): Likewise.
14750         (nonlocal_goto): Emit a use and an indirect jump directly.
14751
14752 2012-02-10  Andrew MacLeod  <amacleod@redhat.com>
14753
14754         PR c/52190
14755         * doc/extend.texi : Update comments for __atomic_compare_exchange and
14756         __atomic_{is,always}_lock_free.
14757
14758 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
14759
14760         PR target/52146
14761         * config/i386/i386.c (ix86_legitimate_address_p): Disallow
14762         negative constant address for TARGET_X32.
14763
14764 2012-02-10  Richard Henderson  <rth@redhat.com>
14765
14766         * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
14767         * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
14768         for GIMPLE_TRANSACTION.  Tidy if's into a switch.
14769
14770 2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14771             Ira Rosen  <irar@il.ibm.com>
14772
14773         PR tree-optimization/50031
14774         * targhooks.c (default_builtin_vectorization_cost): Handle
14775         vec_promote_demote.
14776         * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
14777         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
14778         all types of reduction and pattern statements.
14779         (vect_estimate_min_profitable_iters): Likewise.
14780         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
14781         (vect_get_load_cost): Use vec_perm for permutations; add dump logic
14782         for explicit realigns.
14783         (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
14784         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
14785         vec_promote_demote.
14786         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
14787         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
14788         vec_perm for VSX and handle vec_promote_demote.
14789
14790 2012-02-10  Jakub Jelinek  <jakub@redhat.com>
14791
14792         PR middle-end/52177
14793         * builtins.c (fold_builtin_atomic_always_lock_free,
14794         expand_builtin_atomic_always_lock_free,
14795         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
14796         Return and/or test boolean_true_node/boolean_false_node instead of
14797         integer_one_node/integer_zero_node.
14798
14799 2012-02-10  Jan Hubicka  <jh@suse.cz>
14800
14801         PR middle-end/48600
14802         * predict.c (predict_paths_for_bb): Prevent looping.
14803         (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
14804
14805 2012-02-10  Roman Zhuykov  <zhroma@ispras.ru>
14806
14807         * config/arm/arm.c (output_move_double): In one case properly
14808         count number of instructions that will be emitted.
14809
14810 2012-02-10  Richard Guenther  <rguenther@suse.de>
14811
14812         PR translation/52193
14813         * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
14814
14815 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
14816
14817         PR middle-end/52140
14818         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
14819
14820 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
14821
14822         PR debug/52165
14823         * var-tracking.c (emit_note_insn_var_location): If
14824         EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
14825         emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
14826         non-NOTE_DURING_CALL_P insn.
14827
14828 2012-02-09  Bin Cheng  <bin.cheng@arm.com>
14829
14830         PR middle-end/51867
14831         * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
14832
14833 2012-02-08  Magnus Granberg  <zorry@gentoo.org>
14834
14835         PR driver/48524
14836         * gcc.c (switch_matches) Support switches with separated form,
14837         -D and -U.
14838
14839 2012-02-08  Georg-Johann Lay  <avr@gjlay.de>
14840
14841         * config/avr/avr.md (SREG_ADDR): Remove constant definition.
14842         (SP_ADDR): Ditto.
14843         (RAMPZ_ADDR): Ditto.
14844         * config/avr/avr.c (avr_addr_t): New typedef.
14845         (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
14846         (avr_init_expanders): Initialize it.
14847         (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
14848         SREG_ADDR.
14849         (expand_epilogue): Ditto.
14850         (avr_print_operand): Ditto.
14851         (avr_file_start): Ditto.
14852         (avr_emit_movmemhi): Ditto.
14853
14854 2012-02-08  Richard Guenther  <rguenther@suse.de>
14855
14856         PR tree-optimization/46886
14857         * tree-flow.h (do_while_loop_p): Declare.
14858         * tree-ssa-loop-ch.c (do_while_loop_p): Export.
14859         * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
14860
14861 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
14862
14863         * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
14864         always succeed for integers larger than a native word.
14865
14866 2012-02-08  Richard Guenther  <rguenther@suse.de>
14867
14868         PR rtl-optimization/52170
14869         * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
14870         properly handle integer vector modes.
14871
14872 2012-02-08  Jakub Jelinek  <jakub@redhat.com>
14873
14874         PR gcov-profile/52150
14875         * coverage.c: Include target.h.
14876         (build_var): Call targetm.strip_name_encoding on the assembler name.
14877         Change one _ into . or $ if the target allows it.
14878         * Makefile.in (coverage.o): Depend on $(TARGET_H).
14879
14880         PR rtl-optimization/52139
14881         * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
14882         is a BARRIER after emit_insn_after_noloc, move BB_END
14883         to the last non-BARRIER insn before it.
14884
14885 2012-02-07  Richard Sandiford  <rdsandiford@googlemail.com>
14886
14887         PR middle-end/24306
14888         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
14889         (mips_gimplify_va_arg_expr): Call it instead of
14890         std_gimplify_va_arg_expr.
14891
14892 2012-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
14893
14894         * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
14895         message for -mno-pointers-to-nested-function.
14896
14897 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
14898
14899         PR middle-end/51994
14900         * expr.c (get_inner_reference): If there is an offset, add a negative
14901         bit position to it (if any).
14902
14903 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
14904
14905         PR rtl-optimization/52060
14906         * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
14907         copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
14908         before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
14909         and/or i0src_copy2 when needed.
14910
14911 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
14912
14913         * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
14914         or LTOPLUGINSONAME if have_c.
14915
14916         * config/freebsd-spec.h: Add comment about what macros can be defined
14917         in this header.
14918         (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
14919         * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
14920         here instead.
14921
14922 2012-02-07  Richard Guenther  <rguenther@suse.de>
14923
14924         * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
14925         newline in -alias dumps.
14926
14927 2012-02-07  Kai Tietz  <ktietz@redhat.com>
14928             Dave Korn  <dave.korn.cygwin@gmail.com>
14929
14930         PR target/40068
14931         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
14932         Take care that typinfo gets dllexport-attribute.
14933
14934 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
14935
14936         PR middle-end/52074
14937         * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
14938         if modifier < EXPAND_SUM call force_operand on the result.
14939
14940 2012-02-07  Joern Rennecke  <joern.rennecke@embecosm.com>
14941
14942         * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
14943         adding __forwarder_dst__ prefix if a forwarder_section attribute is
14944         present.
14945         (epiphany_function_type): Replace types for specific interrupts with
14946         EPIPHANY_FUNCTION_INTERRUPT.
14947         (EPIPHANY_INTERRUPT_P): Update.
14948         * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
14949         New static function.
14950         (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
14951         <disinterrupt>: Affects type identity.
14952         (epiphany_handle_interrupt_attribute): Handle variable number of
14953         arguments.
14954         (epiphany_compute_function_type): Update for new
14955         epiphany_function_type definition.
14956         (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
14957         handlers with a longcall forwarder.
14958         (epiphany_start_function): Handle multiple interrupt arguments and/or
14959         forwarder_section attribute.
14960
14961         * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
14962         libgloss.
14963
14964 2012-02-07  Alan Modra  <amodra@gmail.com>
14965
14966         PR target/52107
14967         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
14968         subregs of TFmode.
14969
14970 2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14971
14972         PR tree-optimization/50969
14973         * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
14974         use vec_perm rather than vector_stmt.
14975         (vect_model_load_cost): Likewise.
14976         * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
14977         vec_perm to be the same as other vector statements.
14978         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
14979         cost of vec_perm for TARGET_VSX.
14980
14981 2012-02-06  Richard Guenther  <rguenther@suse.de>
14982
14983         PR tree-optimization/52115
14984         * tree-sra.c (access_has_replacements_p): New function.
14985         (sra_modify_assign): Use it to decide whether a use is uninitialized.
14986
14987 2012-02-06  Patrick Marlier  <patrick.marlier@gmail.com>
14988
14989         PR middle-end/52047
14990         * trans-mem.c (expand_call_tm): Add an assertion.
14991         * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
14992         functions.
14993
14994 2012-02-06  Richard Guenther  <rguenther@suse.de>
14995
14996         PR tree-optimization/50955
14997         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
14998         raise cost of expressions that replace an address with an
14999         expression based on a different pointer.
15000
15001 2012-02-06  Jakub Jelinek  <jakub@redhat.com>
15002
15003         PR target/52129
15004         * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
15005         CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
15006
15007 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
15008
15009         PR c++/48680
15010         * doc/invoke.texi (C++ Dialect Options): Use @option markup for
15011         -Weffc++ and specify guidelines come from second edition.
15012
15013 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
15014
15015         * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
15016         (sibcall_value_multiple_internal, call_split, call_internal_direct)
15017         (call_direct_split, call_value_split, call_value_internal_direct)
15018         (call_value_direct_split, call_value_multiple_split): Use jal and
15019         jal_macro attributes.
15020
15021 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
15022
15023         * reload1.c (reload_regs_reach_end_p): Replace with...
15024         (reload_reg_rtx_reaches_end_p): ...this function.
15025         (new_spill_reg_store): Update commentary.
15026         (emit_input_reload_insns): Don't clear new_spill_reg_store here.
15027         (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
15028         before setting new_spill_reg_store.
15029         (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
15030         Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
15031         Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
15032         for non-spill reload registers.
15033
15034 2012-02-05  Ira Rosen  <irar@il.ibm.com>
15035
15036         PR tree-optimization/52091
15037         * tree-vectorizer.h (vect_is_simple_use): Add an argument.
15038         (vect_is_simple_use_1): Likewise.
15039         * tree-vect-loop.c (vectorizable_reduction): Update calls
15040         to vect_is_simple_use_1 and vect_is_simple_use.
15041         (vectorizable_live_operation): Likewise.
15042         * tree-vect-patterns.c (widened_name_p,
15043         vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
15044         * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
15045         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
15046         vectorizable_shift,vectorizable_operation, vectorizable_store,
15047         vectorizable_load): Likewise.
15048         (vect_is_simple_cond): Add an argument, pass it to
15049         vect_is_simple_use_1.
15050         (vectorizable_condition): Update calls to vect_is_simple_cond,
15051         vect_is_simple_use.
15052         (vect_is_simple_use): Add an argument, the statement in which
15053         OPERAND is used.  Check that if OPERAND's def stmt is a double
15054         reduction phi node, the use is a phi node too.
15055         (vect_is_simple_use_1): Add an argument, pass it to
15056         vect_is_simple_use.
15057         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
15058         to vect_is_simple_use.
15059
15060 2012-02-04  Jakub Jelinek  <jakub@redhat.com>
15061
15062         PR rtl-optimization/52095
15063         * modulo-sched.c (dump_insn_locator): New function.
15064         (loop_canon_p, sms_schedule): Use it.
15065
15066         PR rtl-optimization/52113
15067         * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
15068         even for decomposable shift/zext insns.
15069
15070 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
15071             Zdenek Dvorak  <ook@ucw.cz>
15072
15073         PR rtl-optimization/52092
15074         * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
15075         on get_iv_value result.
15076
15077 2012-02-02  Andrew Pinski  <apinski@cavium.com>
15078
15079         PR middle-end/47982
15080         PR middle-end/43967
15081         * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
15082
15083 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
15084
15085         PR middle-end/48071
15086         * diagnostic.c (diagnostic_finish): Remove trailing newlines.
15087
15088 2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>
15089
15090         PR rtl-optimization/49800
15091         * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
15092         (sched_finish): Call regstat_free_n_sets_and_refs.
15093
15094 2012-02-02  Jia Liu  <proljc@gmail.com>
15095
15096         * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
15097         than operand 2.
15098
15099 2012-02-02  Jan Hubicka  <jh@suse.cz>
15100             Tom de Vries  <tom@codesourcery.com>
15101
15102         PR middle-end/51998
15103         * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
15104         * varpool.c (varpool_analyze_pending_decls): Likewise.
15105
15106 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
15107             Jayant R Sonar <jayant.sonar@kpitcummins.com>
15108
15109         * config.gcc: Add cr16-* support.
15110
15111         * doc/extend.texi: Document cr16 extensions.
15112         * doc/install.texi: Document cr16 install.
15113         * doc/invoke.texi: Document cr16 options.
15114         * doc/md.texi: Document cr16 constraints.
15115
15116         * common/config/cr16/cr16-common.c: New file.
15117         * config/cr16/cr16.c: New file.
15118         * config/cr16/cr16.h: New file.
15119         * config/cr16/cr16.md: New file.
15120         * config/cr16/cr16.opt: New file.
15121         * config/cr16/cr16-protos.h: New file.
15122         * config/cr16/predicates.md: New file.
15123         * config/cr16/constraints.md: New file.
15124         * config/cr16/t-cr16: New file.
15125
15126 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
15127
15128         PR target/52086
15129         * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
15130         that operands[2] is either immediate, or q_regs_operand.
15131
15132         PR tree-optimization/52073
15133         * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
15134         a pattern stmt for pattern uses, ignore uses outside of the loop.
15135
15136 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
15137
15138         * config/avr/avr.c: Resolve all AS1 and AS2 macros.
15139         * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
15140         (OUT_AS1, OUT_AS2): Remove.
15141
15142 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
15143
15144         PR rtl-optimization/51374
15145         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
15146         to cross other volatile_refs_p insns.
15147
15148 2012-02-01  Richard Guenther  <rguenther@suse.de>
15149
15150         * doc/invoke.texi (fno-inline): Clarify documentation.
15151         (finline-small-functions): Likewise.
15152         (finline-functions): Likewise.
15153         * common.opt (finline): Adjust comment and documentation.
15154         (finline-small-functions): Clarify documentation.
15155         (finline-functions): Likewise.
15156         (finline-functions-called-once): Likewise.
15157
15158 2012-02-01  Tristan Gingold  <gingold@adacore.com>
15159
15160         * c-typeck.c (composite_type): Keep mode for pointers.
15161
15162 2012-01-31  Richard Sandiford  <rdsandiford@googlemail.com>
15163
15164         * function.h (regno_reg_rtx): Adjust comment.
15165         * reginfo.c (init_reg_modes_target): Only use the previous mode
15166         if it fits within one register.  Remove MIPS comment.
15167
15168 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
15169
15170         PR bootstrap/52058
15171         * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
15172
15173 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15174
15175         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
15176         to srak instruction.
15177
15178 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
15179
15180         * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
15181
15182 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
15183
15184         PR bootstrap/52041
15185         PR bootstrap/52039
15186         PR target/51974
15187         * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
15188
15189 2012-01-31  Richard Guenther  <rguenther@suse.de>
15190
15191         PR tree-optimization/51528
15192         * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
15193         assigns.
15194
15195 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
15196
15197         PR bootstrap/52041
15198         PR bootstrap/52039
15199         PR target/51974
15200         * ree.c (add_removable_extension): Change def_map argument
15201         to unsigned *, store in def_map 1 + offset into *insn_list vector
15202         instead of pointers into the vector.
15203         (find_removable_extensions): Adjust caller.
15204
15205 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
15206
15207         * config/avr/avr.md: Resolve all AS1 and AS2 macros.
15208         Transform all "* quoted-c-code" to { c-code }.
15209         Remove redundant test for "optimize" in combine patterns.
15210         Move (include "avr-dimode.md") to end of file.
15211
15212 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
15213
15214         PR target/51835
15215         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15216         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
15217
15218 2012-01-30  Richard Guenther  <rguenther@suse.de>
15219
15220         PR tree-optimization/52028
15221         * tree-loop-distribution.c (ldist_gen): Properly update
15222         virtual SSA form.
15223
15224 2012-01-30  Jakub Jelinek  <jakub@redhat.com>
15225
15226         PR debug/52027
15227         * dwarf2out.c (dwarf2out_switch_text_section): Don't call
15228         set_cur_line_info_table if not emitting debug info.
15229
15230         PR tree-optimization/52046
15231         * tree-vect-patterns.c (check_bool_pattern): Give up if
15232         a comparison could throw.
15233
15234         PR debug/52048
15235         * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
15236
15237 2012-01-30  Richard Guenther  <rguenther@suse.de>
15238
15239         PR tree-optimization/52045
15240         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
15241         SSA form if cfgcleanup did anything.
15242
15243 2012-01-30  Richard Guenther  <rguenther@suse.de>
15244
15245         PR tree-optimization/52045
15246         * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
15247         before computing final todo.
15248
15249 2012-01-30  Richard Guenther  <rguenther@suse.de>
15250
15251         PR tree-optimization/51528
15252         * tree-sra.c (sra_modify_assign): Re-factor in preparation
15253         for PR51528 fix.
15254
15255 2012-01-30  Paolo Bonzini  <bonzini@gnu.org>
15256
15257         * df-problems.c (df_kill_notes): Check that the use refers
15258         to the note under examination.
15259
15260 2012-01-30  Eric Botcazou  <ebotcazou@adacore.com>
15261
15262         PR target/51920
15263         * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
15264         parameter and use short-lived pseudos.
15265         (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
15266         (sparc_expand_vector_init): Const-ify local variables and adjust
15267         calls to above functions.
15268
15269 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
15270
15271         * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
15272
15273 2012-01-29  Sandra Loosemore  <sandra@codesourcery.com>
15274
15275         * doc/invoke.texi: Make usage of "compile time" and
15276         "run time"/"runtime" consistent throughout the file.
15277
15278 2012-01-29  Uros Bizjak  <ubizjak@gmail.com>
15279
15280         * config/alpha/alpha.c (alpha_option_override): Default to
15281         full IEEE compliance mode for Go language.
15282
15283 2012-01-29  Tijl Coosemans  <tijl@coosemans.org>
15284
15285         * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
15286         (LINK_SSP_SPEC): Define.
15287
15288 2012-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15289
15290         PR target/51871
15291         * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
15292         stubs.
15293
15294 2012-01-28  Sandra Loosemore  <sandra@codesourcery.com>
15295
15296         * doc/invoke.texi: Correct hyphenation of "floating point",
15297         "double precision", and related terminology throughout the file.
15298
15299 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
15300
15301         PR target/52006
15302         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
15303         arm_general_register_operand predicate for operand 2 instead of
15304         register_operand.
15305
15306 2012-01-27  Ian Lance Taylor  <iant@google.com>
15307
15308         PR go/47656
15309         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
15310         * builtins.c (expand_builtin_init_trampoline): Add onstack
15311         parameter.  Change caller.
15312         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
15313         * tree.c (build_common_builtin_nodes): Declare
15314         __builtin_init_heap_trampoline.
15315
15316 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
15317
15318         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
15319         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
15320         * config/avr/avr.c: Ditto.
15321         (avr_regnames): Remove because unused.
15322         * config/avr/avr.md (*cpse.ne): New peephole.
15323         (*cpse.eq): New peephole from former cpse peepholes.
15324
15325 2012-01-27  Michael Eager  <eager@eagercon.com>
15326
15327         * config/microblaze.c (microblaze_emit_compare): Correct
15328         test after pcmp instruction.
15329
15330 2012-01-27  Richard Guenther  <rguenther@suse.de>
15331
15332         PR tree-optimization/52020
15333         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
15334
15335 2012-01-27  Richard Guenther  <rguenther@suse.de>
15336
15337         * ipa-pure-const.c (check_stmt): Clobbers do not make a
15338         function non-const/pure.
15339
15340 2012-01-27  Richard Guenther  <rguenther@suse.de>
15341
15342         PR tree-optimization/50444
15343         * tree-sra.c (build_ref_for_offset): Properly adjust the
15344         MEM_REF type for unaligned accesses.
15345
15346 2012-01-27  Richard Guenther  <rguenther@suse.de>
15347
15348         PR tree-optimization/50444
15349         * expr.c (mem_ref_refers_to_non_mem_p): New function.
15350         (expand_assignment): Use it.  Properly handle misaligned
15351         bases when expanding stores to component references.
15352         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
15353         refactor that case.
15354
15355 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
15356
15357         PR middle-end/51389
15358         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
15359         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
15360         * tree-data-ref.c (find_data_references_in_loop): Make static.
15361         (compute_all_dependences): Change return type to bool.  Bail out
15362         for too many datarefs in a loop.  Move the hunk resetting the data
15363         dependences vector from ...
15364         (compute_data_dependences_for_loop): ... here.  Account for
15365         compute_all_dependences returning false.
15366         (compute_data_dependences_for_bb): Likewise.
15367         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
15368         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
15369
15370 2012-01-27  Richard Guenther  <rguenther@suse.de>
15371
15372         PR middle-end/51959
15373         * expr.c (store_field): Use the alias-set of the scratch memory
15374         for storing to it.
15375
15376 2012-01-27  Tom de Vries  <tom@codesourcery.com>
15377
15378         PR tree-optimization/51990
15379         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
15380         WITH_SIZE_EXPR.
15381         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
15382
15383 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
15384
15385         PR debug/52001
15386         * var-tracking.c (reverse_op): Don't add any reverse operation
15387         if V already has any constant locations.
15388
15389 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
15390
15391         * doc/invoke.texi: Correct usage of "command line" (noun)
15392         vs "command-line" (adjective) throughout.
15393
15394 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
15395
15396         * doc/invoke.texi (Language Independent Options): Move
15397         -Wcoverage-mismatch blurb from here....
15398         (Warning Options): ...to here.
15399
15400 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
15401
15402         * config/rs6000/rs6000.c (rs6000_option_override_internal):
15403         Set rs6000_always_hint to false for 476.
15404
15405 2012-01-27  Matthias Klose  <doko@ubuntu.com>
15406
15407         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
15408           system root.
15409         * incpath.c (add_standard_paths): Likewise.
15410
15411 2012-01-27  Richard Henderson  <rth@redhat.com>
15412
15413         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15414         * config/m68k/sync.md (atomic_test_and_set): Rename from
15415         sync_test_and_setqi and adjust the operands.
15416         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
15417         and unconditionally enable.
15418
15419 2012-01-27  Richard Henderson  <rth@redhat.com>
15420
15421         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15422         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
15423         (ldstub): Rename from ldstubqi.
15424         (ldstub<I24MODE>): Remove.
15425
15426 2012-01-27  Richard Henderson  <rth@redhat.com>
15427
15428         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15429         * c-cppbuiltin.c (cpp_atomic_builtins): Define
15430         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
15431         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
15432         * doc/tm.texi: Rebuild.
15433
15434 2012-01-27  Richard Henderson  <rth@redhat.com>
15435
15436         * optabs.c (gen_atomic_test_and_set): Remove default.
15437         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
15438
15439 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
15440
15441         PR rtl-optimization/51978
15442         * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
15443         (combine_reaching_defs): Likewise.
15444         (struct re_info): Remove.
15445         (add_removable_extension): Remove x and data arguments,
15446         add insn, insn_list and def_map.  Use the arguments directly
15447         instead of using struct re_info.
15448         (find_removable_extensions): Don't call add_removable_extension
15449         through note_stores, instead just call it with single_set
15450         result if non-NULL.
15451         (find_and_remove_re): Pass curr_cand->expr instead of
15452         PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
15453
15454 2012-01-26  Michael Matz  <matz@suse.de>
15455
15456         PR tree-optimization/46590
15457         * cfgexpand.c: Revert last change (r183305).
15458         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
15459         regs.
15460         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
15461         checking for emptiness.
15462
15463 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
15464
15465         PR middle-end/51895
15466         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
15467         non-addressable non-BLKmode base correctly.
15468
15469 2012-01-26  Michael Matz  <matz@suse.de>
15470
15471         PR tree-optimization/48794
15472         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
15473         regions referenced from RESX/EH_DISPATCH.
15474
15475 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15476
15477         * config/s390/s390.h: Make BRANCH_COST an option.
15478         * config/s390/s390.opt: New option -mbranch-cost.
15479
15480 2012-01-26  Richard Henderson  <rth@redhat.com>
15481
15482         Revert 2012-01-24 change:
15483         * trans-mem.c (requires_barrier): Do not instrument thread local
15484         variables and emit save/restore for them.
15485
15486 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
15487
15488         PR middle-end/51986
15489         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
15490         for pat == 0.
15491
15492 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
15493
15494         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
15495         ASM_OPERANDS.
15496
15497 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
15498
15499         PR target/49868
15500         Rename __pgm to __flash.
15501         Rename __pgm1 to __flash1.
15502         Rename __pgm2 to __flash2.
15503         Rename __pgm3 to __flash3.
15504         Rename __pgm4 to __flash4.
15505         Rename __pgm5 to __flash5.
15506         Rename __pgmx to __memx.
15507         * doc/extend.texi (AVR Named Address Spaces)
15508         Rename address space names as indicated above.
15509         * config/avr/avr.c (avr_addrspace): Ditto.
15510
15511         * config/avr/avr-protos.h
15512         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
15513         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
15514         * config/avr/predicates.md: Ditto.
15515         * config/avr/avr.c Ditto, and
15516         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
15517         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
15518
15519         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
15520         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
15521         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
15522         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
15523         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
15524         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
15525         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
15526         * config/avr/avr.c: Ditto.
15527         * config/avr/avr.md: Ditto.
15528
15529 2012-01-25  Jason Merrill  <jason@redhat.com>
15530
15531         PR c++/51992
15532         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
15533
15534 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
15535
15536         PR tree-optimization/51987
15537         * tree-data-ref.c (get_references_in_stmt): Handle references in
15538         non-volatile GIMPLE_ASM.
15539
15540 2012-01-25  Richard Guenther  <rguenther@suse.de>
15541
15542         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
15543         bases are dereferenced.
15544
15545 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
15546
15547         PR rtl-optimization/48374
15548         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
15549
15550 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
15551
15552         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
15553         compute_data_dependences_for_loop returns false.
15554         * tree-parloops.c (loop_parallel_p): Likewise.
15555
15556 2012-01-25  Richard Guenther  <rguenther@suse.de>
15557
15558         * tree.h (get_pointer_alignment_1): Declare.
15559         * builtins.c (get_pointer_alignment_1): New function.
15560         (get_pointer_alignment): Use it.
15561
15562 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15563
15564         PR rtl-optimization/48308
15565         * combine.c (enum undo_kind): Add UNDO_LINKS.
15566         (struct undo): Add member l to other_contents and where.
15567         (do_SUBST_LINK): New.
15568         (SUBST_LINK): New.
15569         (try_combine): Handle LOG_LINKS for the dummy i1 case.
15570         (undo_all): Handle UNDO_LINKS.
15571
15572 2012-01-25  Richard Henderson  <rth@redhat.com>
15573
15574         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
15575         mem inputs.
15576
15577 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
15578
15579         * optabs.c (gen_atomic_test_and_set): Use each argument.
15580
15581 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
15582
15583         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
15584         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
15585         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
15586         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
15587         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
15588         TARGET_PAIRED_SINGLE_FLOAT.
15589
15590 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
15591
15592         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
15593         (in_struct, return_val): Remove MEM documentation.
15594         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
15595         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
15596         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
15597         and MEM_SCALAR.
15598         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15599         * cfgexpand.c (add_alias_set_conflicts): Likewise.
15600         * expr.c (store_field): Likewise.
15601         * function.c (assign_stack_temp_for_type): Likewise.
15602         * ifcvt.c (noce_try_cmove_arith): Likewise.
15603         * reload1.c (reload): Likewise.
15604         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
15605         (alpha_set_memflags): Likewise.
15606         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
15607
15608 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
15609
15610         * rtl.h (true_dependence, canon_true_dependence): Remove varies
15611         parameter.
15612         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
15613         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
15614         (true_dependence_1, true_dependence, canon_true_dependence): Remove
15615         varies parameter.
15616         * cselib.c (cselib_rtx_varies_p): Delete.
15617         (cselib_invalidate_mem): Update call to canon_true_dependence.
15618         * dse.c (record_store, check_mem_read_rtx): Likewise.
15619         (scan_reads_nospill): Likewise.
15620         * cse.c (check_dependence): Likewise.
15621         (cse_rtx_varies_p): Delete.
15622         * expr.c (safe_from_p): Update call to true_dependence.
15623         * ira.c (validate_equiv_mem_from_store): Likewise.
15624         (memref_referenced_p): Likewise.
15625         * postreload-gcse.c (find_mem_conflicts): Likewise.
15626         * sched-deps.c (sched_analyze_2): Likewise.
15627         * store-motion.c (load_kills_store): Likewise.
15628         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
15629         * gcse.c (mems_conflict_for_gcse_p): Likewise.
15630         (compute_transp): Update call to canon_true_dependence.
15631
15632 2012-01-25  Richard Henderson  <rth@redhat.com>
15633
15634         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
15635         (maybe_emit_atomic_test_and_set): New.
15636         (expand_sync_lock_test_and_set): Use it.
15637         (expand_atomic_test_and_set): Likewise.
15638         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
15639         the implementation; clarify implementation defined details.
15640         * doc/md.texi (atomic_test_and_set): Document.
15641
15642 2012-01-25  Richard Henderson  <rth@redhat.com>
15643
15644         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
15645
15646 2012-01-25  Richard Henderson  <rth@redhat.com>
15647
15648         PR target/51968
15649         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
15650         to effect no-op split.
15651
15652 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
15653
15654         PR lto/51698
15655         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
15656         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
15657         (BT_FN_VOID_PTR_INT_SIZE): New.
15658         (BT_FN_UINT_UINT_VAR): Remove.
15659         (BT_FN_UINT32_UINT32_VAR): New.
15660         (BT_FN_DOUBLE_VPTR): Remove.
15661         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
15662
15663         * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
15664         (_ITM_changeTransactionMode): Same.
15665         (_ITM_memmoveRtWt): Change return type to void.
15666         (_ITM_memcpyRtWt): Same.
15667         (_ITM_memsetW): Same.
15668         (_ITM_RaRD): Change types to double.
15669         (_ITM_RD): Same.
15670         (_ITM_RaWD): Same.
15671         (_ITM_RfWD): Same.
15672
15673         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
15674
15675 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
15676             Patrick Marlier  <patrick.marlier@gmail.com>
15677
15678         * trans-mem.c (requires_barrier): Do not instrument thread local
15679         variables and emit save/restore for them.
15680
15681 2012-01-24  Jason Merrill  <jason@redhat.com>
15682
15683         PR c++/51812
15684         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
15685         output static aliases.
15686
15687 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
15688
15689         PR driver/47249
15690         * common.opt (-pie, -shared, pie, shared): Change from Common to
15691         Driver.
15692         * gcc.c (display_help): Display help for -pie and -shared.
15693
15694 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
15695
15696         PR target/49868
15697         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
15698         Remove note on size/offset limitation.
15699         (AVR Variable Attributes): Add example how to read data located
15700         with progmem.  Refer to named address spaces.
15701         * doc/invoke.texi (AVR Options): Fix typo.
15702
15703 2012-01-24  Richard Guenther  <rguenther@suse.de>
15704
15705         Forward-port to trunk
15706         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
15707
15708         PR middle-end/45678
15709         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
15710         op0 isn't sufficiently aligned and there is movmisalignM
15711         insn for mode, use it to load op0 into a temporary register.
15712
15713 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
15714
15715         PR target/51957
15716         * target.def (const_not_ok_for_debug_p): New hook.
15717         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
15718         documentation.
15719         * doc/tm.texi: Regenerated.
15720         * dwarf2out.c (const_ok_for_output_1): If
15721         targetm.const_not_ok_for_debug_p returns true, fail.
15722         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
15723         function.
15724         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
15725
15726 2012-01-23  Kai Tietz  <ktietz@redhat.com>
15727
15728         PR target/51900
15729         * config/i386/predicates.md (symbolic_operand): Allow
15730         UNSPEC_PCREL as PIC expression for lea.
15731         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
15732         * config/i386/i386.c (ix86_delegitimize_address): Handle
15733         UNSPEC_PCREL for none-MEM, too.
15734
15735 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
15736
15737         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
15738         (ipa_tm_create_version_alias): Same.
15739
15740 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
15741
15742         PR libitm/51830
15743         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
15744         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
15745
15746 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
15747             Patrick Marlier  <patrick.marlier@gmail.com>
15748             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
15749
15750         PR lto/51916
15751         * lto-wrapper.c (run_gcc): Pass the LTO section name to
15752         simple_object_start_read.
15753
15754 2012-01-23  Richard Guenther  <rguenther@suse.de>
15755
15756
15757         PR tree-optimization/51895
15758         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
15759         parameter decomposition into BLKmode components.
15760
15761 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
15762
15763         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
15764         fake variables for restrict-qualified pointers whose pointed-to type
15765         contains a placeholder.
15766
15767 2012-01-23  Richard Guenther  <rguenther@suse.de>
15768
15769         PR tree-optimization/51949
15770         * ipa-split.c (execute_split_functions): Do not split malloc functions.
15771
15772 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
15773
15774         PR rtl-optimization/51933
15775         * ree.c (transform_ifelse): Return true right away if dstreg is
15776         already wider or equal to cand->mode.
15777         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
15778         (make_defs_and_copies_lists): Remove defs_list and copies_list
15779         arguments, add state argument, just truncate state->work_list
15780         instead of always allocating and freeing the vector.  Assert that
15781         get_defs succeeds instead of returning 2.  Changed return type to bool.
15782         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
15783         have ext_src_mode, see if it has been modified already with the
15784         right kind of extension and has been extended before from the
15785         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
15786         just return true.  Remember the original mode in state->modified array.
15787         (combine_reaching_defs): Add state argument.  Don't allocate and
15788         free here def_list, copied_list and vec vectors, instead just
15789         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
15790         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
15791         Add state variable, clear vectors in it, initialize state.modified
15792         if needed.  Free all the vectors at the end and state.modified too.
15793         Don't skip a candidate if the extension expression has been modified.
15794
15795 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
15796
15797         PR target/47096
15798         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
15799          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
15800         (extra_options) interix.opt -> i386/interix.opt"
15801         (extra_objs):Add winnt-stubs.o
15802         * configure.ac: Add interix to target_os .comm on PE check.
15803         * configure: Regenerate.
15804         * config/interix3.h: Delete and move bits to..
15805         * config/interix.h: Delete and move bits to..
15806         * config/i386/i386-interix3.h: Delete and move bits to..
15807         * config/i386/i386-interix.h: ..here.
15808         (TARGET_CPU_DEFAULT): Remove redefinition.
15809         (TARGET_ASM_CONSTRUCTOR): Undefine.
15810         (SUBTARGET_SWITCHES): Define for ms-bitfields.
15811         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
15812         (PTRDIFF_TYPE): Define.
15813         (LONG_DOUBLE_TYPE_SIZE): Define.
15814         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
15815         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
15816         (TARGET_SECTION_TYPE_FLAGS): Define.
15817         (ASM_DECLARE_FUNCTION_NAME): Define.
15818         (ASM_OUTPUT_EXTERNAL): Define.
15819         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
15820         (ASM_OUTPUT_ALIGNED_BSS): Define.
15821         (PCC_BITFIELD_TYPE_MATTERS): Define.
15822         (USE_CONST_SECTION): Define.
15823         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
15824         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
15825         (SUPPORTS_ONE_ONLY): Remove.
15826         (I386_PE_STRIP_ENCODING): Define.
15827         * config/interix.opt: Delete and move bits to..
15828         * config/i386/interix.opt: ..here. New.
15829         (mpe-aligned-commons): Add.
15830         * config/i386/t-interix: Add copyright header.
15831         (winnt-stubs.o): Add rule.
15832
15833 2012-01-22  Jason Merrill  <jason@redhat.com>
15834
15835         PR c++/51832
15836         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
15837         for extra name aliases.
15838
15839 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15840
15841         PR rtl-optimization/51924
15842         * ree.c (combine_set_extension): Improve debugging message.
15843         (combine_reaching_defs): Likewise.
15844         (get_defs): Rename confusingly named variable.
15845         (find_and_remove_re): Skip a candidate if the extension expression has
15846         been modified.
15847
15848 2012-01-21  Robert Millan  <rmh@gnu.org>
15849             Gerald Pfeifer  <gerald@pfeifer.com>
15850
15851         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
15852         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
15853
15854 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
15855
15856         PR tree-optimization/51914
15857         * tree-vect-stmts.c (vectorizable_conversion): For
15858         cvt_type && modifier == WIDEN, put temporary with cvt_type
15859         at the beginning of vec_dsts and set vec_dest to temporary
15860         with vectype_out.
15861
15862 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15863
15864         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
15865
15866 2012-01-20  Tijl Coosemans  <tijl@coosemans.org>
15867
15868         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
15869         * config/rs6000/rs6000.c: Likewise.
15870
15871 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
15872
15873         PR target/51915
15874         * config/arm/arm.c (arm_count_output_move_double_insns): Call
15875         output_move_double on a copy of operands array.
15876
15877 2012-01-20  Cary Coutant  <ccoutant@google.com>
15878             Dodji Seketeli  <dodji@redhat.com>
15879
15880         PR debug/45682
15881         * dwarf2out.c (copy_declaration_context): Return ref to parent
15882         of declaration DIE, if necessary.
15883         (remove_child_or_replace_with_skeleton): Add new parameter; update
15884         caller.  Place skeleton DIE under parent DIE of original declaration.
15885         Move call to copy_declaration_context to here ...
15886         (break_out_comdat_types): ... from here.
15887
15888 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15889
15890         PR rtl-optimization/51856
15891         * reload.c (find_reloads_subreg_address): Set the address_reloaded
15892         flag to reloaded.
15893
15894 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15895
15896         PR target/51819
15897         * config/arm/arm.c (arm_print_operand): Correct output of alignment
15898         hints for neon loads and stores.
15899
15900 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
15901
15902         PR target/49868
15903         PR target/50887
15904         * doc/extend.texi (Named Address Spaces): Split into subsections.
15905         (AVR Named Address Spaces): New subsection.
15906         (M32C Named Address Spaces): New subsection.
15907         (RL78 Named Address Spaces): New subsection.
15908         (SPU Named Address Spaces): New subsection.
15909         (Variable Attributes): New anchor "AVR Variable Attributes".
15910         (AVR Variable Attributes): Rewrite and avoid wording
15911         "address space" in this context.
15912         * doc/invoke.texi (AVR Options): Rewrite and add documentation
15913         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
15914         (AVR Built-in Macros): New subsubsection therein.
15915         * doc/md.texi (AVR constraints): Remove "C04", "R".
15916
15917 2012-01-20  Richard Guenther  <rguenther@suse.de>
15918
15919         PR tree-optimization/51903
15920         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
15921         when removing stmts.
15922
15923 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15924
15925         PR target/50313
15926         * config/arm/arm.c (arm_load_pic_register): Use
15927         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
15928         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
15929         (arm_pic_static_addr): Likewise.
15930         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
15931         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
15932         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
15933         (pic_load_addr_unified): New.
15934
15935 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
15936
15937         PR target/51106
15938         * function.c (instantiate_virtual_regs_in_insn): Use
15939         delete_insn_and_edges when removing a wrong asm insn.
15940
15941 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
15942
15943         PR rtl-optimization/40761
15944         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
15945         Add new member loop_num.
15946         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
15947         (ira_build): Remove the parameter.
15948
15949         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
15950         (ira.c): Do not build CFG loops for one region allocation.  Remove
15951         argument from ira_build call.
15952
15953         * ira-build.c (init_loop_tree_node): New function.
15954         (create_loop_tree_nodes): Use it.  Separate the case when CFG
15955         loops are not built.
15956         (more_one_region_p): Check current_loops.
15957         (finish_loop_tree_nodes): Separate the case when CFG loops are not
15958         built.
15959         (add_loop_to_tree): Process loop equal to NULL too.
15960         (form_loop_tree): Separate the case when CFG loops are not built.
15961         Use explicitly number for the root.
15962         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
15963         an assertion.
15964         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
15965         instead of loop->num.
15966         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
15967         (mark_all_loops_for_removal): Ditto.
15968         (remove_unnecessary_regions): Separate the case when CFG loops
15969         are not built.
15970         (ira_build): Remove the parameter.  Use explicit number of regions
15971         when CFG loops are not built.
15972
15973         * ira-color.c (print_loop_title): Separate the case for the root node.
15974         Use loop_num instead of loop->num.
15975         (move_spill_restore): Use loop_num instead of loop->num.
15976
15977         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
15978         (change_loop): Ditto.
15979         (change_loop): Use loop_num instead of loop->num.
15980
15981         * ira-lives.c (process_bb_node_lives): Ditto.
15982
15983         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
15984
15985         * ira-conflicts.c (print_allocno_conflicts): Ditto.
15986
15987 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
15988
15989         PR libmudflap/40778
15990         * tree-mudflap.c (mf_artificial): New function.
15991         (execute_mudflap_function_ops, execute_mudflap_function_decls,
15992         mx_register_decls, mudflap_enqueue_decl): Use it.
15993
15994         PR target/51876
15995         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
15996         numbers in the insn pattern.
15997
15998 2012-01-19  Michael Matz  <matz@suse.de>
15999
16000         PR tree-optimization/46590
16001         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
16002         use it in remembering which conflicts we already created.
16003         (add_scope_conflicts): Adjust call to above, (de)allocate helper
16004         bitmap.
16005
16006 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
16007
16008         PR lto/51280
16009         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
16010         (merge_and_complain): Same.
16011
16012 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
16013
16014         PR bootstrap/50237
16015         * config/initfini-array.h: Guard content of the header
16016         with #ifdef HAVE_INITFINI_ARRAY.
16017         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
16018         Add initfini-array.h to tm_file here.
16019         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
16020         * config.gcc: Don't add initfini-array.h to tm_file here.
16021         * configure: Regenerated.
16022
16023 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
16024
16025         PR rtl-optimization/51505
16026         * df-problems.c (df_kill_notes): New parameter live. Update comment.
16027         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
16028         (df_note_bb_compute): Update the call to df_kill_notes.
16029
16030 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
16031
16032         * trans-mem.c (requires_barrier): Remove call to is_global_var.
16033
16034 2012-01-18  Richard Guenther  <rguenther@suse.de>
16035
16036         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
16037         of conversions to void *.
16038
16039 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16040             Richard Sandiford  <rdsandiford@googlemail.com>
16041
16042         PR middle-end/50325
16043         PR middle-end/51192
16044         * optabs.h (simplify_expand_binop): Declare.
16045         * optabs.c (simplify_expand_binop): Make global.
16046         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
16047         endian targets if the source cannot be exactly covered by word
16048         mode chunks.
16049
16050 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
16051
16052         PR bootstrap/51872
16053         * hard-reg-set.h (struct hard_reg_set_container): New type.
16054         * target.h (struct hard_reg_set_container): Forward declare.
16055         * target.def (set_up_by_prologue): New target hook.
16056         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
16057         * doc/tm.texi: Regenerated.
16058         * function.c (thread_prologue_and_epilogue_insns): Change
16059         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
16060         Call targetm.set_up_by_prologue on it.
16061         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
16062         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
16063
16064 2012-01-17  Nick Clifton  <nickc@redhat.com>
16065
16066         * config/rx/rx.c (rx_can_use_simple_return): New function.
16067         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
16068         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
16069
16070 2012-01-17  Richard Guenther  <rguenther@suse.de>
16071
16072         PR middle-end/51782
16073         * expr.c (expand_assignment): Take address-space information
16074         from the address operand of MEM_REF and TARGET_MEM_REF.
16075         (expand_expr_real_1): Likewise.
16076
16077 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16078
16079         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
16080         reload dump is requested.
16081
16082 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
16083
16084         PR other/51165
16085         * trans-mem.c (requires_barrier): Call may_be_aliased.
16086
16087 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
16088
16089         PR tree-optimization/51877
16090         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
16091         call arguments and fndecls compare equal, instead return false if they
16092         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
16093         both SSA_NAMEs that are valueized the same, or they satisfy
16094         operand_equal_p.
16095
16096 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16097
16098         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
16099         Solaris 11+.
16100         * configure: Regenerate.
16101
16102 2012-01-16  Jan Hubicka  <jh@suse.cz>
16103
16104         PR c/12245
16105         PR c++/14179
16106         * convert.c (convert_to_integer): Use fold_convert for
16107         converting an INTEGER_CST to integer type.
16108
16109 2012-01-16  Jason Merrill  <jason@redhat.com>
16110
16111         PR c++/14179
16112         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
16113
16114 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
16115
16116         PR bootstrap/51860
16117         * config/s390/s390.c (s390_chunkify_start): Don't skip
16118         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
16119         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
16120         If insn is followed by NOTE_INSN_VAR_LOCATION or
16121         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
16122         Don't use location of note insns.
16123
16124         PR tree-optimization/51865
16125         * tree-inline.c (tree_function_versioning): Call remap_decl
16126         on DECL_RESULT whenever it has VOID_TYPE_P type.
16127
16128 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
16129
16130         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
16131         for calls to locally-binding MIPS16 functions if only the return
16132         type uses float regs.
16133
16134 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
16135             Richard Sandiford  <rdsandiford@googlemail.com>
16136
16137         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
16138         (SYMBOL_32_HIGH): Likewise.
16139         (mips_output_tls_reloc_directive): Declare.
16140         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
16141         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
16142         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
16143         (mips_lo_relocs, mips_hi_relocs): Make extern.
16144         (mips16_stub_function): Move up file.
16145         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
16146         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
16147         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
16148         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
16149         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
16150         (mips_get_tp): Add MIPS16 support.
16151         (mips_legitimize_tls_address): Remove MIPS16 sorry().
16152         Generalize DTPREL and TPREL handling.
16153         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
16154         Add MIPS16 TLS support.
16155         (mips_output_tls_reloc_directive): New function.
16156         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
16157         * config/mips/predicates.md (symbolic_operand_with_high)
16158         (tls_reloc_operand): New predicates.
16159         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
16160         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
16161         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
16162         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
16163         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
16164         (*tls_get_tp_mips16_call_<mode>): Likewise.
16165
16166 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
16167
16168         PR rtl-optimization/51821
16169         * recog.c (peep2_find_free_register): Determine clobbered registers
16170         from insn pattern.
16171
16172 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
16173
16174         PR target/50925
16175         * config/avr/avr-protos.h: Revert change of 2012-01-09.
16176         * config/avr/avr.c: Likewise.
16177         * config/avr/avr.h: Likewise.
16178
16179 2012-01-13  Ian Lance Taylor  <iant@google.com>
16180
16181         PR c++/50012
16182         * tree.h (TYPE_QUALS): Add cast to int.
16183         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
16184
16185 2012-01-13  Ian Lance Taylor  <iant@google.com>
16186
16187         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
16188         comparing param_index to VEC_length result.
16189
16190 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
16191
16192         * c-decl.c: Do not include tree-mudflap.h
16193         * tree-optimize.c: Likewise.
16194         * Makefile.in: Update dependencies.
16195
16196 2012-01-13  Richard Guenther  <rguenther@suse.de>
16197
16198         PR middle-end/8081
16199         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
16200         variable-sized result always use RSO.
16201
16202 2012-01-12  DJ Delorie  <dj@redhat.com>
16203
16204         * cfgexpand.c (convert_debug_memory_address): Allow any valid
16205         pointer type, not just the default pointer type.
16206
16207 2012-01-09  Richard Henderson  <rth@redhat.com>
16208             Denis Chertykov  <chertykov@gmail.com>
16209
16210         PR target/50925
16211         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
16212         * config/avr/avr.c (avr_can_eliminate): Simplify.
16213         (avr_initial_elimination_offset): Likewise.
16214         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
16215         (expand_epilogue): Likewise.
16216         (avr_legitimize_address): Gut.
16217         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
16218         (avr_hard_regno_nregs): New.
16219         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
16220         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
16221         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
16222         add soft frame pointer.
16223         (CALL_USED_REGISTERS): Likewise.
16224         (REG_CLASS_CONTENTS): Likewise.
16225         (REGISTER_NAMES): Likewise.
16226         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
16227         (HARD_FRAME_POINTER_REGNUM): New.
16228         (FRAME_POINTER_REGNUM): Use soft frame pointer.
16229         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
16230         remove the HARD_FRAME_POINTER self-elimination.
16231
16232 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
16233
16234         PR target/51756
16235         * config/avr/avr.c (avr_encode_section_info): Test for absence of
16236         DECL_EXTERNAL when checking for initializers of progmem variables.
16237
16238 2012-01-12  Ira Rosen  <irar@il.ibm.com>
16239
16240         PR tree-optimization/51799
16241         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
16242         that the last operation is a type demotion.
16243
16244 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
16245
16246         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
16247         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
16248
16249 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
16250
16251         PR bootstrap/51796
16252         * combine.c (distribute_notes): If i3 is a noreturn call,
16253         allow old_size to be equal to args_size and make sure the
16254         noreturn call gets REG_ARGS_SIZE note.
16255         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
16256         on noreturn calls even when the delta is 0.
16257
16258 2012-01-11  Nathan Sidwell  <nathan@acm.org>
16259
16260         * gcov.c (STRING_SIZE): Remove.
16261         (generate_results): Erase annotations for source files with no
16262         coverage information.
16263         (read_line): New.
16264         (output_lines): Use it.
16265
16266 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16267
16268         * gimple.h (gimplify_body): Remove first argument.
16269         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
16270         pointer set here, instead just pass DATA to walk_tree.
16271         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
16272         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
16273         (unvisit_body): Likewise, but with unmark_visited.
16274         (gimplify_body): Remove BODY_P argument and adjust.
16275         (gimplify_function_tree): Adjust call to gimplify_body.
16276         * omp-low.c (finalize_task_copyfn): Likewise.
16277
16278 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16279
16280         * tree.h (build_function_decl_skip_args): Add boolean parameter.
16281         (build_function_type_skip_args): Delete.
16282         * tree.c (build_function_type_skip_args): Make static and add
16283         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
16284         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
16285         pass it to build_function_type_skip_args.
16286         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
16287         (tree_function_versioning): Likewise.
16288         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
16289         build_function_decl_skip_args.
16290         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
16291         and pass it to build_function_decl_skip_args/tree_function_versioning.
16292         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
16293         * ipa-inline-transform.c (save_inline_function_body): Likewise.
16294         * trans-mem.c (ipa_tm_create_version): Likewise.
16295         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
16296         * tree-inline.c (declare_return_variable): Remove always-true test.
16297         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
16298         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
16299         * ipa-split.c (split_function): Skip the return value for the split
16300         part if it doesn't return.
16301
16302 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16303
16304         PR tree-optimization/49642
16305         * ipa-split.c (forbidden_dominators): New variable.
16306         (check_forbidden_calls): New function.
16307         (dominated_by_forbidden): Likewise.
16308         (consider_split): Check for forbidden dominators.
16309         (execute_split_functions): Initialize and free forbidden
16310         dominators info; call check_forbidden_calls.
16311
16312 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
16313
16314         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
16315
16316 2012-01-11  Nick Clifton  <nickc@redhat.com>
16317
16318         * config/rx/rx.md (return): Define pattern.
16319
16320 2012-01-11  Richard Guenther  <rguenther@suse.de>
16321
16322         * doc/extend.texi (malloc attribute): Adjust according to
16323         implementation.
16324
16325 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
16326             Patrick Marlier  <patrick.marlier@gmail.com>
16327
16328         PR middle-end/51516
16329         * trans-mem.c (get_cg_data): Traverse aliases if requested.
16330         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
16331         (ipa_tm_note_irrevocable): Same.
16332         (ipa_tm_scan_irr_block): Same.
16333         (ipa_tm_decrement_clone_counts): Same.
16334         (ipa_tm_scan_irr_function): Same.
16335         (ipa_tm_create_version_alias): Same.
16336         (ipa_tm_create_version): Same.
16337         (ipa_tm_transform_calls_redirect): Same.
16338         (ipa_tm_transform_calls): Same.
16339         (ipa_tm_transform_transaction): Same.
16340         (ipa_tm_execute): Same.
16341
16342 2012-01-10  Richard Guenther  <rguenther@suse.de>
16343
16344         PR middle-end/51806
16345         * opts.c (common_handle_option): Handle -Werror.
16346
16347 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
16348
16349         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
16350         operand number.
16351
16352 2012-01-10  Jason Merrill  <jason@redhat.com>
16353
16354         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
16355         information.
16356
16357 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16358
16359         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
16360         supports R_386_TLS_GD_PLT reloc.
16361         (gcc_cv_as_ix86_tlsldmplt): Check if linker
16362         supports R_386_TLS_LDM_PLT reloc.
16363         * configure: Regenerate.
16364         * config.in: Regenerate.
16365
16366 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
16367
16368         PR target/49868
16369         Extend __pgmx semantics to linearize memory.
16370         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
16371         determine if code comes inline or from libgcc.
16372         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
16373         (movmem_qi, movmem_qi): Set constraint #2 to "n".
16374         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
16375         (movmemx_qi, movmemx_hi): New insns.
16376         (xload_<mode>_libgcc): Rewrite to new insn condition.
16377         (xload_<mode>): Remove insns.
16378         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
16379         cases that don't satisfy avr_xload_libgcc_p().
16380         (avr_addr_space_convert): Allow converting in any direction.
16381         (avr_addr_space_subset_p): Return always true.
16382         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
16383         (avr_emit_movmemhi): Ditto.
16384         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
16385         (avr_out_movmem): Ditto.
16386         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
16387         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
16388         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
16389         (avr_encode_section_info): Encode 'progmem' in symbol flags.
16390         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
16391
16392 2012-01-10  Richard Guenther  <rguenther@suse.de>
16393
16394         PR tree-optimization/50913
16395         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
16396         Require data-refs to be representable by Graphite with respect
16397         to any loop nest.
16398
16399 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
16400
16401         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
16402         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
16403
16404 2012-01-10  Tom de Vries  <tom@codesourcery.com>
16405
16406         PR rtl-optimization/51271
16407         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
16408         handling annulled branch.
16409
16410 2012-01-10  Richard Henderson  <rth@redhat.com>
16411
16412         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
16413         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
16414         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
16415         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
16416         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
16417         arm_expand_vec_perm_const): New.
16418         * config/arm/arm-protos.h: Update.
16419         * config/arm/neon.md (UNSPEC_VCONCAT): New.
16420         (*neon_vswp<VDQX>): New.
16421         (neon_vcombine<VDX>): Use neon_split_vcombine.
16422         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
16423         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
16424         (vec_perm<VE>): New.
16425
16426 2012-01-10  Richard Henderson  <rth@redhat.com>
16427
16428         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
16429         use it if reload_completed.
16430         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
16431         arm_output_asm_insn, arm_process_output_memory_barrier,
16432         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
16433         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
16434         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
16435         arm_process_output_sync_insn, arm_output_sync_insn,
16436         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
16437         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
16438         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
16439         (emit_unlikely_jump): New.
16440         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
16441         (arm_split_atomic_op): New.
16442         * config/arm/arm-protos.h: Update.
16443         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
16444         (struct arm_sync_generator): Remove.
16445         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
16446         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
16447         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
16448         (VUNSPEC_LL, VUNSPEC_SC): New.
16449         (sync_result, sync_memory, sync_required_value, sync_new_value,
16450         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
16451         (attr length): Don't use arm_sync_loop_insns.
16452         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
16453         (movsfcc, movdfcc): Likewise.
16454         * config/arm/constraints.md (Ua): New.
16455         * config/arm/prediates.md (mem_noofs_operand): New.
16456         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
16457         (sync_clobber, sync_t2_reqd): Remove.
16458         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
16459         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
16460         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
16461         (arm_sync_compare_and_swap<SIDI>): Remove.
16462         (arm_sync_compare_and_swap<NARROW>): Remove.
16463         (arm_sync_lock_test_and_set<SIDI>): Remove.
16464         (arm_sync_lock_test_and_set<NARROW>): Remove.
16465         (arm_sync_new_<syncop><SIDI>): Remove.
16466         (arm_sync_new_<syncop><NARROW>): Remove.
16467         (arm_sync_new_nand<SIDI>): Remove.
16468         (arm_sync_new_nand<NARROW>): Remove.
16469         (arm_sync_old_<syncop><SIDI>): Remove.
16470         (arm_sync_old_<syncop><NARROW>): Remove.
16471         (arm_sync_old_nand<SIDI>): Remove.
16472         (arm_sync_old_nand<NARROW>): Remove.
16473         (*memory_barrier): Merge arm_output_memory_barrier.
16474         (atomic_compare_and_swap<QHSD>): New.
16475         (atomic_compare_and_swap<NARROW>_1): New.
16476         (atomic_compare_and_swap<SIDI>_1): New.
16477         (atomic_exchange<QHSD>): New.
16478         (cas_cmp_operand, cas_cmp_str): New.
16479         (atomic_op_operand, atomic_op_str): New.
16480         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
16481         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
16482         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
16483         (arm_load_exclusive<NARROW>): New.
16484         (arm_load_exclusivesi, arm_load_exclusivedi): New.
16485         (arm_store_exclusive<QHSD>): New.
16486
16487 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
16488
16489         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
16490         reload patterns if -mvsx-scalar-memory.
16491
16492         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
16493         generated, even -mno-vsx-scalar-double was used.
16494         (vsx_xscvdpsp_scalar): Likewise.
16495         (vsx_xscvspdp_scalar2): Likewise.
16496
16497 2012-01-09  Tom de Vries  <tom@codesourcery.com>
16498             Andrew Pinski  <apinski@cavium.com>
16499
16500         PR debug/51471
16501         * reorg.c (fill_slots_from_thread): Don't speculate
16502         frame-related insns.
16503
16504 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
16505
16506         * sched-int.h (bb_note): Move to...
16507         * basic-block.h: ...here.
16508         * haifa-sched.c (bb_note): Move to...
16509         * cfgrtl.c: ...here.
16510         * function.c (next_block_for_reg): New function.
16511         (move_insn_for_shrink_wrap): Likewise.
16512         (prepare_shrink_wrap): Rewrite to use the above.
16513
16514 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
16515
16516         * gimple.c (is_gimple_non_addressable): Remove.
16517         * gimple.h: Remove is_gimple_non_addressable.
16518         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
16519         is_gimple_non_addressable.
16520         * trans-mem.c (expand_assign_tm): Same.
16521
16522 2012-01-09  Richard Guenther  <rguenther@suse.de>
16523
16524         PR tree-optimization/51775
16525         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
16526         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
16527
16528 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
16529
16530         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
16531         tuning parameters.
16532         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
16533
16534 2012-01-09  Richard Guenther  <rguenther@suse.de>
16535
16536         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
16537
16538 2012-01-08  Jan Hubicka  <jh@suse.cz>
16539
16540         PR tree-optimize/51680
16541         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
16542         on when known_vals needs to be computed; cleanup.
16543
16544 2012-01-08  Jan Hubicka  <jh@suse.cz>
16545
16546         PR tree-optimize/51694
16547         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
16548
16549 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
16550
16551         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
16552         for -std=c++98 and -std=c++11 too.
16553
16554 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
16555
16556         * cfgloop.c (cancel_loop): Add free() of bbs array.
16557
16558 2012-01-07  Jan Hubicka  <jh@suse.cz>
16559
16560         PR tree-optimization/51600
16561         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
16562         that benefits small functions.
16563
16564 2012-01-07  Jan Hubicka  <jh@suse.cz>
16565
16566         * ipa-inline.c (want_inline_small_function_p): Fix formating.
16567
16568 2012-01-07  Jan Hubicka  <jh@suse.cz>
16569
16570         PR tree-optimization/51680
16571         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
16572         whose inlining reduce unit size.
16573
16574 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
16575
16576         PR bootstrap/51725
16577         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
16578         Add canonical node to containing_mem chain after the non-canonical
16579         one, even if there weren't any locs to propagate.
16580         (remove_useless_values): Keep only canonical values.
16581         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
16582         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
16583         canonicalize mem_chain elements that are not discarded.
16584
16585 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
16586
16587         PR target/47333
16588         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
16589         before emitting functions.
16590
16591         PR gcov-profile/50127
16592         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
16593         clear_aux_for_blocks.
16594
16595 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
16596
16597         PR debug/51746
16598         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
16599
16600 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
16601
16602         * c-decl.c (ext_block): Moved up.
16603         (collect_all_refs, for_each_global_decl): Take ext_block into account.
16604
16605 2012-01-06  Han Shen  <shenhan@google.com>
16606
16607         Translate built-in include paths for sysroot.
16608         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
16609         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
16610
16611         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
16612         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
16613
16614         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
16615         control whether sysroot should be prepended to gxx include dir.
16616
16617         * configure: Regenerate.
16618
16619 2012-01-06  Torvald Riegel  <triegel@redhat.com>
16620
16621         PR rtl-optimization/51771
16622         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
16623         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
16624
16625 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16626
16627         PR tree-optimization/51315
16628         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
16629         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
16630
16631 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
16632
16633         PR target/51681
16634         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
16635         for shrp pattern.  Correctly handle and fixup shift variable.
16636         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
16637
16638 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
16639
16640         PR debug/51762
16641         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
16642         note when !ACCUMULATE_OUTGOING_ARGS.
16643
16644 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16645
16646         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
16647         condition.
16648         (extract_range_from_unary_expr_1): Avoid useless computations.
16649
16650 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
16651
16652         PR rtl-optimization/51767
16653         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
16654         of jump_block and add an extra edge for degenerated asm gotos.
16655
16656         PR middle-end/51768
16657         * stmt.c (check_unique_operand_names): Don't ICE during error
16658         reporting if i is from labels chain.
16659
16660         PR middle-end/44777
16661         * profile.c (branch_prob): Split bbs that have exit edge
16662         and need a fake entry edge too.
16663
16664 2012-01-05  Jan Hubicka  <jh@suse.cz>
16665
16666         PR middle-end/49710
16667         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
16668         unlooping loops.
16669
16670 2012-01-05  Richard Guenther  <rguenther@suse.de>
16671
16672         PR lto/50490
16673         * tree-streamer-out.c (write_ts_optimization): New function.
16674         (streamer_write_tree_body): Call it.
16675         * tree-streamer-in.c (lto_input_ts_optimization): New function.
16676         (streamer_read_tree_body): Call it.
16677         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
16678
16679 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
16680
16681         PR middle-end/51761
16682         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
16683         * gimplify.c (gimplify_cleanup_point_expr): Save and set
16684         in_cleanup_point_expr before gimplify_stmt call and restore it
16685         afterwards.
16686         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
16687         in_cleanup_point_expr is false.
16688
16689 2012-01-05  Richard Guenther  <rguenther@suse.de>
16690
16691         PR middle-end/51764
16692         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
16693         to c.opt.
16694         * toplev.c (process_options): Reject combining mudflap and LTO.
16695         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
16696
16697 2012-01-05  Richard Guenther  <rguenther@suse.de>
16698
16699         PR tree-optimization/51760
16700         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
16701         not VARYING.
16702         (bit_value_unop): Handle UNDEFINED operands.
16703         (bit_value_binop): Likewise.
16704
16705 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
16706
16707         * config/avr/avr.c (avr_replace_prefix): Remove.
16708         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
16709         (avr_asm_function_rodata_section): Ditto.
16710         (avr_asm_select_section): Ditto.
16711
16712 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16713
16714         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
16715         insertion.
16716
16717 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
16718
16719         PR bootstrap/51648
16720         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
16721         calls that have any non-fake successor edges.
16722
16723         PR debug/51746
16724         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
16725
16726 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16727
16728         PR tree-optimization/51624
16729         * tree-sra.c (build_ref_for_model): When replicating a chain of
16730         COMPONENT_REFs, stop as soon as the offset would become negative.
16731
16732 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
16733
16734         PR debug/51695
16735         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
16736         in .debug_loc on the floor.
16737
16738 2012-01-04  Andrew Pinski  <apinski@cavium.com>
16739
16740         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
16741
16742 2012-01-04  Andrew Pinski  <apinski@cavium.com>
16743             Adam Nemet  <anemet@caviumnetworks.com>
16744
16745         * config/mips/mips.md (size): Add SI and DI.
16746         (SIZE): New mode attribute.
16747         (U): New code attribute.
16748         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
16749         (mips_lbux_<mode>): Delete.
16750         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
16751         (mips_lhx): Use gen_mips_lhx_extsi.
16752         (mips_lhx_<mode>): Delete.
16753         (mips_lwx): Delete.
16754         (mips_l<size>x): New expand.
16755         (mips_lwx_<mode>): Delete.
16756         (mips_l<GPR:size>x_<P:mode>): New pattern.
16757         (*mips_lw<u>x_<P:mode>_ext): Likewise.
16758         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
16759         * config/mips/mips.c (mips_lx_address_p): New function.
16760         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
16761         (dsp64): New availability predicate.
16762         (mips_builtins): Add an entry for __builtin_mips_ldx.
16763         * config/mips/mips.h (ISA_HAS_LBX): New define.
16764         (ISA_HAS_LBUX): Likewise.
16765         (ISA_HAS_LHX): Likewise.
16766         (ISA_HAS_LHUX): Likewise.
16767         (ISA_HAS_LWX): Likewise.
16768         (ISA_HAS_LWUX): Likewise.
16769         (ISA_HAS_LDX): Likewise.
16770         * doc/extend.texi (__builtin_mips_ldx): Document.
16771
16772 2012-01-04  Tristan Gingold  <gingold@adacore.com>
16773
16774         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
16775         when long pointers are used.
16776         * config.build (*-*-*vms*): Handle all OpenVMS targets.
16777         (alpha64-dec-*vms*, alpha*-dec-*vms*)
16778         (ia64-hp-*vms*): Remove.
16779         * config/vms/xm-vms64.h: Delete.
16780
16781 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
16782
16783         PR middle-end/51472
16784         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
16785
16786 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
16787
16788         * opts.c (finish_options): Remove duplicate sorry.
16789
16790 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
16791
16792         PR middle-end/51696
16793         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
16794         correctly.
16795
16796 2012-01-04  Richard Guenther  <rguenther@suse.de>
16797
16798         PR middle-end/51750
16799         * tree.c (size_low_cst): New function.
16800         * tree.h (size_low_cst): Declare.
16801         * fold-const.c (fold_comparison): Use it to extract the low
16802         part of the POINTER_PLUS_EXPR offset.
16803
16804 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
16805
16806         Fix clearing ZERO_REG
16807         * config/avr/avr.md (cc): Add alternative "ldi".
16808         (movqi_insn): Use it in cc attribute.
16809         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
16810         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
16811         (output_reload_insisf): Use ZERO_REG to pre-clear register.
16812
16813 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16814
16815         * configure: Regenerate.
16816
16817 2012-01-04  Richard Guenther  <rguenther@suse.de>
16818
16819         PR tree-optimization/49651
16820         * tree-ssa-structalias.c (type_can_have_subvars): New function.
16821         (var_can_have_subvars): Use it.
16822         (get_constraint_for_1): Only consider subfields if there can be any.
16823
16824 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
16825
16826         PR bootstrap/51725
16827         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
16828         to its new canonical_cselib_val and the cselib_val was in
16829         first_containing_mem chain, but the canonical_cselib_val was not,
16830         add the latter into the chain.
16831         (cselib_invalidate_mem): Compare canonical_cselib_val of
16832         addr_list chain elt with v.
16833
16834         PR pch/51722
16835         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
16836         dwarf2out_undef): Allocate e.info using ggc_strdup instead
16837         of xstrdup.
16838         (output_macinfo_op): Don't ggc_strdup fd->filename.
16839         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
16840         then ggc_strdup it.  Don't free inc->info or cur->info.
16841         (output_macinfo): Don't free ref->info or file->info.
16842
16843 2012-01-03  Ira Rosen  <irar@il.ibm.com>
16844
16845         PR tree-optimization/51269
16846         * tree-vect-loop-manip.c (set_prologue_iterations): Make
16847         first_niters a pointer.
16848         (slpeel_tree_peel_loop_to_edge): Likewise.
16849         (vect_do_peeling_for_loop_bound): Update call to
16850         slpeel_tree_peel_loop_to_edge.
16851         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
16852         here.  Remove it from the parameters list.
16853         (vect_do_peeling_for_alignment): Update calls and compute
16854         wide_prolog_niters.
16855
16856 2012-01-03  Richard Guenther  <rguenther@suse.de>
16857
16858         PR tree-optimization/51070
16859         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
16860         Properly handle calls.
16861
16862 2012-01-03  Richard Guenther  <rguenther@suse.de>
16863
16864         PR tree-optimization/51692
16865         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
16866         the LHS of allocation stmts.
16867
16868 2012-01-03  Olivier Hainque  <hainque@adacore.com>
16869
16870         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
16871
16872 2012-01-03  Olivier Hainque  <hainque@adacore.com>
16873
16874         * collect2.c (main): In AIX specific computations for vector
16875         insertions, use CONST_CAST2 to cast from char ** to const char **.
16876
16877 2012-01-03  Richard Guenther  <rguenther@suse.de>
16878
16879         PR debug/51650
16880         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
16881         the context of a limbo DIE when it does not already exist.
16882
16883 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
16884
16885         PR tree-optimization/51719
16886         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
16887         but direct call is, clear direct call's lhs and don't add fallthrough
16888         edge from dcall_bb to join_bb and PHIs.
16889
16890 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16891
16892         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
16893         the instructions emitted by the pattern.
16894         ("*TDC_insn_<mode>"): Add comment.
16895
16896 2012-01-03  Richard Guenther  <rguenther@suse.de>
16897
16898         PR middle-end/51730
16899         * fold-const.c (fold_comparison): Properly canonicalize
16900         tree offset and HOST_WIDE_INT bit position.
16901
16902 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
16903
16904         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
16905         operands for extzv pattern.
16906
16907 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
16908
16909         PR bootstrap/51725
16910         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
16911         on mem_elt first.
16912
16913 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
16914
16915         * doc/invoke.texi (-flto and related options): Copy-edit.
16916
16917 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16918
16919         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
16920
16921 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
16922
16923         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
16924         New patterns.
16925
16926 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16927
16928         * expr.h (move_by_pieces_ninsns): Declare.
16929         * expr.c (move_by_pieces_ninsns): Make external.
16930         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
16931         (mips_store_by_pieces_p): Likewise.
16932         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
16933         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
16934         * config/mips/mips.c (mips_move_by_pieces_p): New function.
16935         (mips_store_by_pieces_p): Likewise.
16936
16937 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
16938
16939         * passes.c (register_one_dump_file): Free full_name.
16940
16941         * reload1.c (reload): Don't allocate reg_max_ref_width here.
16942         (calculate_elim_costs_all_insns): Free offsets_at and
16943         offsets_known_at at the end and clear the pointers.
16944
16945 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
16946
16947         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
16948         this option introduced in r180739.
16949
16950 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
16951
16952         PR target/51345
16953         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
16954         (tmake_file target=avr): Add avr/t-multilib.
16955
16956         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
16957         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
16958         * config/avr/genmultilib.awk: New file.
16959         * config/avr/t-multilib: New auto-generated file.
16960         * config/avr/multilib.h: New auto-generated file.
16961         * config/avr/t-avr (AVR_MCUS): New variable.
16962         (genopt.sh): Use it.
16963         (s-mlib): Depend on t-multilib.
16964         (t-multilib, multilib.h): New dependencies.
16965         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
16966         (MULTILIB_OPTIONS): Remove.
16967         (MULTILIB_MATCHES): Remove.
16968         (MULTILIB_DIRNAMES): Remove.
16969         (MULTILIB_EXCEPTIONS): Remove:
16970         * config/avr/genopt.sh: Don't use hard coded file name;
16971         pass AVR_MCUS from t-avr instead.
16972
16973 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
16974
16975         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
16976
16977 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
16978
16979         Implement light-weight DImode support.
16980         * config/avr/avr-dimode.md: New file.
16981         * config/avr/avr.md: Include it.
16982         (adjust_len): Add plus64, compare64.
16983         (HIDI): Remove code iterator.
16984         (code_stdname): New code attribute.
16985         (rotx, rotsmode): Remove DI.
16986         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
16987         as code iterator.
16988         * config/avr/avr-protos.h (avr_have_dimode): New.
16989         (avr_out_plus64, avr_out_compare64): New.
16990         * config/avr/avr.c (avr_out_compare): Handle DImode.
16991         (avr_have_dimode): New variable definition and initialization.
16992         (avr_out_compare64, avr_out_plus64): New functions.
16993         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
16994         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
16995         (avr_compare_pattern): Skip DImode comparisons.
16996
16997 2012-01-02  Revital Eres  <revital.eres@linaro.org>
16998
16999         * ddg.c (def_has_ccmode_p): New function.
17000         (add_cross_iteration_register_deps,
17001         create_ddg_dep_from_intra_loop_link): Call it.
17002
17003 2012-01-02  Richard Guenther  <rguenther@suse.de>
17004
17005         PR other/51679
17006         * invoke.texi (fassociative-math): Remove spurious paranthesis.
17007
17008 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
17009
17010         * gcc.c (process_command): Update copyright notice dates.
17011         * gcov.c (print_version): Likewise.
17012         * gcov-dump.c (print_version): Likewise.
17013         * mips-tfile.c (main): Likewise.
17014         * mips-tdump.c (main): Likewise.
17015
17016 2012-01-01  Ira Rosen  <irar@il.ibm.com>
17017
17018         PR tree-optimization/51704
17019         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
17020         a use is inside the basic block or loop before accessing its vect info.
17021
17022 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
17023
17024         PR rtl-optimization/51069
17025         * cfgloopmanip.c (remove_path): Removing path making irreducible
17026         region unconditional makes BB part of the region.
17027
17028 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
17029
17030         PR tree-optimization/51683
17031         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
17032         calls with side-effects.
17033         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
17034 \f
17035 Copyright (C) 2012 Free Software Foundation, Inc.
17036
17037 Copying and distribution of this file, with or without modification,
17038 are permitted in any medium without royalty provided the copyright
17039 notice and this notice are preserved.