* config/i386/i386.c (ix86_expand_builtin): Generate
[official-gcc.git] / gcc / ChangeLog
blob7488e925ad537902850aacf420a410770af80926
1 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
3         * config/i386/i386.c (ix86_expand_builtin): Generate
4         reg for readflags built-in when optimizing.
5         * config/i386/i386.md (*pushfl<mode>): Rename to ...
6         (pushfl<mode>2): This. Fix iterator.
7         (*popfl<mode>): Rename to ...
8         (*popfl<mode>1): This. Fix iterator.
10 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
12         * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
13         (IX86_BUILTIN_WRITE_FLAGS): Ditto.
14         (ix86_init_mmx_sse_builtins): Define
15         __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
16         __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
17         (ix86_expand_builtin): Expand them.
18         * config/i386/ia32intrin.h (__readeflags): New.
19         (__writeeflags): Ditto.
20         * gcc/config/i386/i386.md (*pushfl<mode>): Ditto.
21         (*popfl<mode>1): Ditto.
23 2013-12-05  Richard Biener  <rguenther@suse.de>
25         PR tree-optimization/59374
26         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
27         Commonize known and unknown dependence case fixing the allowed
28         read-write dependence case and dropping code that should not
29         matter.
31 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
33         * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
34         generation of predicated version.
35         (epilogue_deallocate_stack): Ditto.
36         (prologue_allocate_stack_pr): Add explicit predicated version.
37         (epilogue_deallocate_stack_pr): Ditto.
38         * config/ia64/ia64.c (ia64_single_set): Use explicit version.
40 2013-12-05  Alan Modra  <amodra@gmail.com>
42         * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
43         build != host.
44         <recursive call for build != host>: Clear GMPINC.  Don't bother
45         saving CFLAGS.
47 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
48             Marek Polacek  <polacek@redhat.com>
50         * opts.c (common_handle_option): Handle
51         -fsanitize=signed-integer-overflow.
52         * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
53         negv<mode>3, negv<mode>3_1): Define expands.
54         (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define
55         insns.
56         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
57         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
58         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
59         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
60         * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
61         PROB_ALWAYS): Define.
62         (ubsan_build_overflow_builtin): Declare.
63         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
64         internal functions.
65         * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
66         (ubsan_build_overflow_builtin): New function.
67         (instrument_si_overflow): Likewise.
68         (ubsan_pass): Add signed integer overflow checking.
69         (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
70         * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
71         * internal-fn.c: Include ubsan.h and target.h.
72         (ubsan_expand_si_overflow_addsub_check): New function.
73         (ubsan_expand_si_overflow_neg_check): Likewise.
74         (ubsan_expand_si_overflow_mul_check): Likewise.
75         (expand_UBSAN_CHECK_ADD): Likewise.
76         (expand_UBSAN_CHECK_SUB): Likewise.
77         (expand_UBSAN_CHECK_MUL): Likewise.
78         * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
79         (-A) + B -> B - A when doing the signed integer overflow checking.
80         * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
81         Define.
82         * tree-vrp.c (extract_range_basic): Handle internal calls.
83         * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
84         optabs.
85         * asan.c: Include predict.h.
86         (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
87         * predict.c: Move the PROB_* macros...
88         * predict.h (enum br_predictor): ...here.
89         (PROB_LIKELY, PROB_UNLIKELY): Define.
90         * trans-mem.c: Include predict.h.
91         (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
92         PROB_LIKELY, PROB_UNLIKELY): Don't define here.
94 2013-12-04  Jeff Law  <law@redhat.com>
96         * common.opt: Split up -fisolate-erroneous-paths into
97         -fisolate-erroneous-paths-dereference and
98         -fisolate-erroneous-paths-attribute.
99         * invoke.texi: Corresponding changes.
100         * gimple.c (infer_nonnull_range):  Add and use new arguments
101         to control what kind of statements can be used to infer a
102         non-null range.
103         * gimple.h (infer_nonnull_range): Update prototype.
104         * tree-vrp.c (infer_value_range): Corresponding changes.
105         * opts.c (default_options_table): Update due to option split.
106         * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
107         (find_implicit_erroneous_behaviour): Pass additional arguments
108         to infer_nonnull_range.
109         (find_explicit_erroneous_behaviour): Similarly.
110         (gate_isolate_erroneous_paths): Check both of the new
111         options.
113 2013-12-04  Jeff Law  <law@redhat.com>
115         * expr.c (expand_assignment): Update comments.
117 2013-12-04  Tobias Burnus  <burnus@net-b.de>
119         PR debug/37132
120         * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
121         * tree.def (NAMELIST_DECL): Add.
122         * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
123         * tree.c (initialize_tree_contains_struct): Add asserts for it.
124         * dwarf2out.c (gen_namelist_decl): New function.
125         (gen_decl_die, dwarf2out_decl): Call it.
126         (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
127         * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
128         (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
129         call.
130         * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
132 2013-12-03  Xinliang David Li  <davidxl@google.com>
134         * tree-ssa-structalias.c (constraint_set_union): Change return type
135         from void to bool.
136         (merge_node_constraints): Ditto.
137         (unify_nodes): Update changed set when constraints set changes.
139 2013-12-04  H.J. Lu  <hongjiu.lu@intel.com>
141         * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
142         -fsanitize=address.
143         * configure: Regenerated.
145         * gdbasan.in: New file.
147 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
149         PR rtl-optimization/58726
150         * combine.c (force_to_mode): Fix comment typo.  Don't destructively
151         modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
153 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
154             Uros Bizjak  <ubizjak@gmail.com>
156         PR target/59163
157         * config/i386/i386.c (ix86_legitimate_combined_insn): If for
158         !TARGET_AVX there is misaligned MEM operand with vector mode
159         and get_attr_ssememalign is 0, return false.
160         (ix86_expand_special_args_builtin): Add get_pointer_alignment
161         computed alignment and for non-temporal loads/stores also
162         at least GET_MODE_ALIGNMENT as MEM_ALIGN.
163         * config/i386/sse.md
164         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
165         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
166         <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
167         <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
168         sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
169         sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
170         *vec_interleave_highv2df, *vec_interleave_lowv2df,
171         *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
172         sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
173         sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
174         sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
175         sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
176         sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
177         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
178         * config/i386/i386.md (ssememalign): New define_attr.
180 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
182         PR tree-optimization/59355
183         * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
184         * opts.c (common_handle_option): Fix comment spelling.
186 2013-12-04  Yufeng Zhang  <yufeng.zhang@arm.com>
188         * gimple-ssa-strength-reduction.c: Include tree-affine.h.
189         (name_expansions): New static variable.
190         (alt_base_map): Ditto.
191         (get_alternative_base): New function.
192         (find_basis_for_candidate): For CAND_REF, optionally call
193         find_basis_for_base_expr with the returned value from
194         get_alternative_base.
195         (record_potential_basis): Add new parameter 'base' of type 'tree';
196         add an assertion of non-NULL base; use base to set node->base_expr.
197         (alloc_cand_and_find_basis): Update; call record_potential_basis
198         for CAND_REF with the returned value from get_alternative_base.
199         (replace_refs): Dump details on the replacing.
200         (execute_strength_reduction): Call pointer_map_create for
201         alt_base_map; call free_affine_expand_cache with &name_expansions.
203 2013-12-03  Wei Mi  <wmi@google.com>
205         PR rtl-optimization/59020
206         * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
207         (sched_analyze_insn): Call try_group_insn.
208         (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
209         * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
210         (group_insns_for_macro_fusion): Removed.
211         (sched_init): Remove calling group_insns_for_macro_fusion.
213 2013-12-03  Peter Bergner  <bergner@vnet.ibm.com>
215         * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
216         typo in macro name.
217         (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
219 2013-12-03  Vladimir Makarov  <vmakarov@redhat.com>
221         * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
222         LR_REGNUM.
223         (aarch64_can_eliminate): Don't check elimination source when
224         frame_pointer_required is false.
226 2013-12-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
228         * config/avr/avr.c (avr_option_override): Warn if asked to generate
229         position independent code.
230         * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
232 2013-12-03   H.J. Lu  <hongjiu.lu@intel.com>
234         PR target/59363
235         * config/i386/i386.c (emit_memset): Adjust destination address
236         after gen_strset.
237         (expand_setmem_epilogue): Likewise.
239 2013-12-03  Marek Polacek  <polacek@redhat.com>
241         PR middle-end/56344
242         * calls.c (expand_call): Disallow passing huge arguments by value.
244 2013-12-03  Jakub Jelinek  <jakub@redhat.com>
246         PR tree-optimization/59362
247         * tree-object-size.c (object_sizes): Change into array of
248         vec<unsigned HOST_WIDE_INT>.
249         (compute_builtin_object_size): Check computed bitmap for
250         non-NULL instead of object_sizes.  Call safe_grow on object_sizes
251         vector if new SSA_NAMEs appeared.
252         (init_object_sizes): Check computed bitmap for non-NULL.
253         Call safe_grow on object_sizes elements instead of initializing
254         it with XNEWVEC.
255         (fini_object_sizes): Call release on object_sizes elements, don't
256         set it to NULL.
258         PR middle-end/59011
259         * gimplify.c (nonlocal_vla_vars): New variable.
260         (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
261         nonlocal_vla_vars chain.
262         (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
263         if outer_bind has DECL_INITIAL (current_function_decl) block.
265         PR target/58864
266         * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
267         New functions.
268         * expr.h (struct saved_pending_stack_adjust): New type.
269         (save_pending_stack_adjust, restore_pending_stack_adjust): New
270         prototypes.
271         * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
272         and get_last_insn before do_pending_stack_adjust, call
273         restore_pending_stack_adjust after delete_insns_since.
274         * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
275         before calling emit_conditional_move.
276         * expmed.c (expand_sdiv_pow2): Likewise.
277         * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
279 2013-12-02  Jeff Law  <law@redhat.com>
281         PR tree-optimization/59322
282         * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
283         Remove code which copied jump threading paths.
285 2013-12-02  Sriraman Tallam  <tmsriram@google.com>
287         PR target/58944
288         * config/i386/i386.opt (ix86_arch_string): Mark this variable
289         for saving in cl_target_option.
290         (ix86_tune_string): Ditto.
291         (ix86_cmodel): Ditto.
292         (ix86_abi): Ditto.
293         (ix86_asm_dialect): Ditto.
294         (ix86_branch_cost): Ditto.
295         (ix86_dump_tunes): Ditto.
296         (ix86_force_align_arg_pointer): Ditto.
297         (ix86_force_drap): Ditto.
298         (ix86_incoming_stack_boundary_arg): Ditto.
299         (ix86_pmode): Ditto.
300         (ix86_preferred_stack_boundary_arg): Ditto.
301         (ix86_recip_name): Ditto.
302         (ix86_regparm): Ditto.
303         (ix86_section_threshold): Ditto.
304         (ix86_sse2avx): Ditto.
305         (ix86_stack_protector_guard): Ditto.
306         (ix86_stringop_alg): Ditto.
307         (ix86_tls_dialect): Ditto.
308         (ix86_tune_ctrl_string): Ditto.
309         (ix86_tune_memcpy_strategy): Ditto.
310         (ix86_tune_memset_strategy): Ditto.
311         (ix86_tune_no_default): Ditto.
312         (ix86_veclibabi_type): Ditto.
313         * config/i386/i386.c (function_specific_save): Save the above
314         variables in gcc_options to cl_target_option.
315         (function_specific_restore): Do the reverse done in
316         function_specific_save.
317         (ix86_valid_target_attribute_tree): Change ix86_arch_string
318         and ix86_tune_string to use the opts structure.
319         (ix86_option_override_internal):Change
320         ix86_incoming_stack_boundary_arg to
321         opts->x_ix86_incoming_stack_boundary_arg
323 2013-12-02  Joern Rennecke  <joern.rennecke@embecosm.com>
325         * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
326         in #ifndef IN_LIBGCC2 / #endif.
328 2013-12-02  Jakub Jelinek  <jakub@redhat.com>
330         PR tree-optimization/59358
331         * tree-vrp.c (union_ranges): To check for the partially overlapping
332         ranges or adjacent ranges, also compare *vr0max with vr1max.
334 2013-12-02  Sterling Augustine Â <saugustine@google.com>
336         * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
337         when there isn't a skeleton die.
339 2013-12-02  Marek Polacek  <polacek@redhat.com>
341         PR sanitizer/59353
342         * doc/invoke.texi: Document -fsanitize=return.
344 2013-12-02  Tobias Burnus  <burnus@net-b.de>
345             Manuel López-Ibáñez  <manu@gcc.gnu.org>
347         PR middle-end/59257
348         * doc/invoke.texi: Add missing @opindex.
349         (-fsanitize=): Use @gcctabopt instead of @itemize.
351 2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
353         Fix C++0x memory model for unaligned fields in packed, aligned(4)
354         structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
355         targets like arm-none-eabi.
356         * expr.c (expand_assignment): Handle normal fields like bit regions.
358 2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
360         PR target/58115
361         * function.c (invoke_set_current_function_hook): Call
362         targetm.set_current_function after setting this_fn_optabs.
364 2013-12-02  Richard Biener  <rguenther@suse.de>
366         PR tree-optimization/59139
367         * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
368         code in get_val_for.
369         (get_val_for): Use gcc_checking_asserts.
371 2013-12-02  Richard Biener  <rguenther@suse.de>
373         PR middle-end/59199
374         * tree-ssa-operands.c (opf_implicit): Remove.
375         (opf_address_taken): New flag.
376         (get_expr_operands): Remove early out, pass down opf_address_taken for
377         ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
378         (get_indirect_ref_operands): Rename to ...
379         (get_mem_ref_operands): ... this.
380         (get_asm_expr_operands): Rename to ...
381         (get_asm_stmt_operands): ... this.
383 2013-12-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
385         * ipa-inline.c (check_callers): Add missed pointer de-reference.
387 2013-12-02  Eric Botcazou  <ebotcazou@adacore.com>
389         PR tree-optimization/59356
390         * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
391         offset computation using the precision of the index type.
393 2013-12-02  Yvan Roux  <yvan.roux@linaro.org>
395         PR target/58785
396         * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
397         when rclass is GENERAL_REGS.
399 2013-12-02 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
401         * loop-unroll.c (decide_unroll_constant_iterations): Check macro
402         TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
404 2013-12-01  Eric Botcazou  <ebotcazou@adacore.com>
406         * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
407         identifier node.
409 2013-12-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
411         * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
413 2013-11-30  Paulo Matos  <pmatos@broadcom.com>
414             Eric Botcazou  <ebotcazou@adacore.com>
416         * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
417         as applied to nonzero_sign_valid when last_set_mode has less precision
418         than mode.
420 2013-11-30  Tobias Burnus  <burnus@net-b.de>
422         PR sanitizer/59275
423         * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
424         environment variable and link to a list with flags.
425         (-fsanitize=thread): Ditto and update link.
427 2013-11-29  Vladimir Makarov  <vmakarov@redhat.com>
429         PR rtl-optimization/59340
430         * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
432         Revert
433         2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
435         * lra.c (lra): Set lra_in_progress before check_rtl call.
436         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
437         adding clobber regs when LRA is running.
439 2013-11-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
441         PR target/59289
442         * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
444 2013-11-29  Richard Biener  <rguenther@suse.de>
446         PR middle-end/59208
447         * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
448         free_stmt_operands, update_stmt_operands): Add struct function
449         argument.
450         * tree-ssa-operands.c: Remove uses of cfun, propagate struct
451         function argument from fini_ssa_operands, verify_ssa_operands,
452         free_stmt_operands and update_stmt_operands everywhere.
453         * tree-ssanames.h (release_ssa_name_fn): New.
454         (release_ssa_name): Inline wrapper around release_ssa_name_fn.
455         * tree-ssanames.c (release_ssa_name): Rename to ...
456         (release_ssa_name_fn): ... this and add struct function argument.
457         * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
458         (update_stmt_fn): New function.
459         * tree-cfg.c (move_block_to_fn): Adjust.
460         * tree-if-conv.c (free_bb_predicate): Likewise.
461         * tree-ssa.c (verify_ssa): Likewise.
462         (delete_tree_ssa): Likewise.
463         * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
464         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
465         update_stmt_fn instead of update_stmt.
467 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
469         * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
470         for LRA.
472 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
474         * config/arm/arm.md (store_minmaxsi): Use only when
475         optimize_function_for_size_p.
477 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
478             Yury Gribov  <y.gribov@samsung.com>
480         PR sanitizer/59063
481         * config/gnu-user.h: Removed old code for setting up sanitizer libs.
482         * gcc.c: Using libsanitizer spec instead of explicit libs.
484 2013-11-29  Ilya Enkovich  <ilya.enkovich@intel.com>
486         Reverted:
487         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
488         * cgraph.h (varpool_node): Add need_bounds_init field.
489         * lto-cgraph.c (lto_output_varpool_node): Output
490         need_bounds_init value.
491         (input_varpool_node): Read need_bounds_init value.
492         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
494         Reverted:
495         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
496         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
497         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
498         (gen_type_die_with_usage): Skip pointer bounds.
499         (dwarf2out_global_decl): Likewise.
501         Reverted:
502         2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
503         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
504         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
505         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
506         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
507         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
508         (gimple_call_with_bounds_p): New.
509         (gimple_call_set_with_bounds): New.
510         (gimple_call_num_nobnd_args): Remove.
511         (gimple_call_nobnd_arg): Remove.
512         * tree.h (CALL_WITH_BOUNDS_P): New.
513         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
515         Reverted:
516         2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
517         * common.opt (fcheck-pointer-bounds): Move to ...
518         * c-family/c.opt: ... here.
519         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
520         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
521         * langhooks.h (lang_hooks): Remove chkp_supported field.
522         * toplev.c (process_options): Remove chkp_supported check.
524         Reverted:
525         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
526         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
527         * tree.h (POINTER_BOUNDS_P): New.
528         (BOUNDED_TYPE_P): New.
529         (BOUNDED_P): New.
530         (pointer_bounds_type_node): New.
531         * tree.c (build_common_tree_nodes): Initialize
532         pointer_bounds_type_node.
533         * gimple.h (gimple_call_get_nobnd_arg_index): New.
534         (gimple_call_num_nobnd_args): New.
535         (gimple_call_nobnd_arg): New.
536         (gimple_return_retbnd): New.
537         (gimple_return_set_retbnd): New
538         * gimple.c (gimple_build_return): Increase number of ops
539         for return statement.
540         (gimple_call_get_nobnd_arg_index): New.
541         * gimple-pretty-print.c (dump_gimple_return): Print second op.
543         Reverted:
544         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
545         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
546         with "chkp ctor" and "bnd_legacy" attributes.
547         * gimplify.c (gimplify_init_constructor): Avoid infinite
548         loop during gimplification of bounds initializer.
550         Reverted:
551         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
552         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
553         (handle_bnd_legacy): New.
554         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
555         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
556         attributes.
558         Reverted:
559         2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
560         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
561         (BT_FN_PTR_CONST_PTR): New.
562         (BT_FN_CONST_PTR_CONST_PTR): New.
563         (BT_FN_PTR_CONST_PTR_SIZE): New.
564         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
565         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
566         (BT_FN_VOID_CONST_PTR_SIZE): New.
567         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
568         * chkp-builtins.def: New.
569         * builtins.def: include chkp-builtins.def.
570         (DEF_CHKP_BUILTIN): New.
571         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
572         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
573         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
574         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
575         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
576         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
577         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
578         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
579         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
580         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
581         * common.opt (fcheck-pointer-bounds): New.
582         * toplev.c (process_options): Check Pointer Bounds Checker is
583         supported.
584         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
586         Reverted:
587         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
588         * target.def (builtin_chkp_function): New.
589         (chkp_bound_type): New.
590         (chkp_bound_mode): New.
591         (fn_abi_va_list_bounds_size): New.
592         (load_bounds_for_arg): New.
593         (store_bounds_for_arg): New.
594         * targhooks.h (default_load_bounds_for_arg): New.
595         (default_store_bounds_for_arg): New.
596         (default_fn_abi_va_list_bounds_size): New.
597         (default_chkp_bound_type): New.
598         (default_chkp_bound_mode): New.
599         (default_builtin_chkp_function): New.
600         * targhooks.c (default_load_bounds_for_arg): New.
601         (default_store_bounds_for_arg): New.
602         (default_fn_abi_va_list_bounds_size): New.
603         (default_chkp_bound_type): New.
604         (default_chkp_bound_mode); New.
605         (default_builtin_chkp_function): New.
606         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
607         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
608         (TARGET_STORE_BOUNDS_FOR_ARG): New.
609         (TARGET_BUILTIN_CHKP_FUNCTION): New.
610         (TARGET_CHKP_BOUND_TYPE): New.
611         (TARGET_CHKP_BOUND_MODE): New.
612         * doc/tm.texi: Regenerated.
613         * langhooks.h (lang_hooks): Add chkp_supported field.
614         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
615         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
617         Reverted:
618         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
619         * config/i386/constraints.md (B): New.
620         (Ti): New.
621         (Tb): New.
622         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
623         * config/i386/i386-modes.def (BND32): New.
624         (BND64): New.
625         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
626         * config/i386/i386.c (isa_opts): Add mmpx.
627         (regclass_map): Add bound registers.
628         (dbx_register_map): Likewise.
629         (dbx64_register_map): Likewise.
630         (svr4_dbx_register_map): Likewise.
631         (PTA_MPX): New.
632         (ix86_option_override_internal): Support MPX ISA.
633         (ix86_conditional_register_usage): Support bound registers.
634         (print_reg): Likewise.
635         (ix86_code_end): Add MPX bnd prefix.
636         (output_set_got): Likewise.
637         (ix86_output_call_insn): Likewise.
638         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
639         (ix86_print_operand_punct_valid_p): Likewise.
640         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
641         UNSPEC_BNDMK_ADDR.
642         (ix86_class_likely_spilled_p): Add bound regs support.
643         (ix86_hard_regno_mode_ok): Likewise.
644         (x86_order_regs_for_local_alloc): Likewise.
645         (ix86_bnd_prefixed_insn_p): New.
646         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
647         (FIXED_REGISTERS): Add bound registers.
648         (CALL_USED_REGISTERS): Likewise.
649         (REG_ALLOC_ORDER): Likewise.
650         (HARD_REGNO_NREGS): Likewise.
651         (TARGET_MPX): New.
652         (VALID_BND_REG_MODE): New.
653         (FIRST_BND_REG): New.
654         (LAST_BND_REG): New.
655         (reg_class): Add BND_REGS.
656         (REG_CLASS_NAMES): Likewise.
657         (REG_CLASS_CONTENTS): Likewise.
658         (BND_REGNO_P): New.
659         (ANY_BND_REG_P): New.
660         (BNDmode): New.
661         (HI_REGISTER_NAMES): Add bound registers.
662         * config/i386/i386.md (UNSPEC_BNDMK): New.
663         (UNSPEC_BNDMK_ADDR): New.
664         (UNSPEC_BNDSTX): New.
665         (UNSPEC_BNDLDX): New.
666         (UNSPEC_BNDLDX_ADDR): New.
667         (UNSPEC_BNDCL): New.
668         (UNSPEC_BNDCU): New.
669         (UNSPEC_BNDCN): New.
670         (UNSPEC_MPX_FENCE): New.
671         (BND0_REG): New.
672         (BND1_REG): New.
673         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
674         (length_immediate): Likewise.
675         (prefix_0f): Likewise.
676         (memory): Likewise.
677         (prefix_rep): Check for bnd prefix.
678         (length_nobnd): New.
679         (length): Use length_nobnd if specified.
680         (BND): New.
681         (bnd_ptr): New.
682         (BNDCHECK): New.
683         (bndcheck): New.
684         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
685         (*jcc_2): Likewise.
686         (jump): Likewise.
687         (simple_return_internal): Likewise.
688         (simple_return_pop_internal): Likewise.
689         (*indirect_jump): Add MPX bnd prefix.
690         (*tablejump_1): Likewise.
691         (simple_return_internal_long): Likewise.
692         (simple_return_indirect_internal): Likewise.
693         (<mode>_mk): New.
694         (*<mode>_mk): New.
695         (mov<mode>): New.
696         (*mov<mode>_internal_mpx): New.
697         (<mode>_<bndcheck>): New.
698         (*<mode>_<bndcheck>): New.
699         (<mode>_ldx): New.
700         (*<mode>_ldx): New.
701         (<mode>_stx): New.
702         (*<mode>_stx): New.
703         * config/i386/predicates.md (lea_address_operand): Rename to...
704         (address_no_seg_operand): ... this.
705         (address_mpx_no_base_operand): New.
706         (address_mpx_no_index_operand): New.
707         (bnd_mem_operator): New.
708         * config/i386/i386.opt (mmpx): New.
709         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
710         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
712         Reverted:
713         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
714         * mode-classes.def (MODE_POINTER_BOUNDS): New.
715         * tree.def (POINTER_BOUNDS_TYPE): New.
716         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
717         (POINTER_BOUNDS_MODE): New.
718         (make_pointer_bounds_mode): New.
719         * machmode.h (POINTER_BOUNDS_MODE_P): New.
720         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
721         (layout_type): Support POINTER_BOUNDS_TYPE.
722         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
723         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
724         (type_contains_placeholder_1): Likewise.
725         * tree.h (POINTER_BOUNDS_TYPE_P): New.
726         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
727         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
729 2013-11-29  Richard Biener  <rguenther@suse.de>
731         PR middle-end/59338
732         * tree-cfg.c (verify_expr): Restrict bounds verification of
733         BIT_FIELD_REF arguments to non-aggregate typed base objects.
735 2013-11-29  Richard Biener  <rguenther@suse.de>
737         PR tree-optimization/59334
738         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
739         in previous commit.
741 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
742             Richard Biener  <rguenther@suse.de>
744         PR lto/59326
745         * omp-low.c (simd_clone_create): Return NULL if for definition
746         !cgraph_function_with_gimple_body_p (old_node).  Call cgraph_get_body
747         before calling cgraph_function_versioning.
748         (expand_simd_clones): Look for "omp declare simd" attribute first.
749         Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
750         Punt if node->global.inlined_to.
751         (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
752         Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
753         * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
755 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
757         PR lto/59326
758         * tree-core.h (enum omp_clause_schedule_kind): Add
759         OMP_CLAUSE_SCHEDULE_LAST.
760         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
761         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
762         (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
763         (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
764         * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
765         (DFS_write_tree_body): Handle OMP_CLAUSE.
766         * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
767         (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
768         (write_ts_omp_clause_tree_pointers): New function.
769         (streamer_write_tree_body): Call it for OMP_CLAUSE.
770         (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
771         * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
772         (unpack_value_fields): Call it for OMP_CLAUSE.
773         (streamer_alloc_tree): Handle OMP_CLAUSE.
774         (lto_input_ts_omp_clause_tree_pointers): New function.
775         (streamer_read_tree_body): Call it for OMP_CLAUSE.
777 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
779         * doc/implement-c.texi: Document C11 implementation-defined
780         behavior.  Refer to -ffp-contract=fast for contraction behavior.
781         * doc/invoke.texi (-std=c99, std=c11): Update description of
782         completeness.
783         (-std=gnu99): Don't mention as future default.
784         (-std=gnu11): Mention as intended future default.
785         * doc/standards.texi: Update descriptions of C99 and C11 support.
786         Limit statement about C99 facilities for freestanding
787         implementations to some platforms only.
789 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
791         PR middle-end/59327
792         * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
794 2013-11-28  Vladimir Makarov  <vmakarov@redhat.com>
796         PR target/57293
797         * ira.h (ira_setup_eliminable_regset): Remove parameter.
798         * ira.c (ira_setup_eliminable_regset): Ditto.  Add
799         SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
800         Don't call lra_init_elimination.
801         (ira): Call ira_setup_eliminable_regset without arguments.
802         * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
803         from ira_setup_eliminable_regset call.
804         * gcse.c (calculate_bb_reg_pressure): Ditto.
805         * haifa-sched.c (sched_init): Ditto.
806         * lra.h (lra_init_elimination): Remove the prototype.
807         * lra-int.h (lra_insn_recog_data): New member sp_offset.  Move
808         used_insn_alternative upper.
809         (lra_eliminate_regs_1): Add one more parameter.
810         (lra-eliminate): Ditto.
811         * lra.c (lra_invalidate_insn_data): Set sp_offset.
812         (setup_sp_offset): New.
813         (lra_process_new_insns): Call setup_sp_offset.
814         (lra): Add argument to lra_eliminate calls.
815         * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
816         (get_equiv_with_elimination): New.
817         (process_addr_reg): Call get_equiv_with_elimination instead of
818         get_equiv_substitution.
819         (equiv_address_substitution): Ditto.
820         (loc_equivalence_change_p): Ditto.
821         (loc_equivalence_callback, lra_constraints): Ditto.
822         (curr_insn_transform): Ditto.  Print the sp offset
823         (process_alt_operands): Prevent stack pointer reloads.
824         (lra_constraints): Remove one argument from lra_eliminate call.
825         Move it up.  Mark used hard regs bfore it.  Use
826         get_equiv_with_elimination instead of get_equiv_substitution.
827         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
828         assert for param values combination.  Use sp offset.  Add argument
829         to lra_eliminate_regs_1 calls.
830         (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
831         (curr_sp_change): New static var.
832         (mark_not_eliminable): Add parameter.  Update curr_sp_change.
833         Don't prevent elimination to sp if we can calculate its change.
834         Pass the argument to mark_not_eliminable calls.
835         (eliminate_regs_in_insn): Add a parameter.  Use sp offset.  Add
836         argument to lra_eliminate_regs_1 call.
837         (update_reg_eliminate): Move calculation of hard regs for spill
838         lower.  Switch off lra_in_progress temporarily to generate regs
839         involved into elimination.
840         (lra_init_elimination): Rename to init_elimination.  Make it
841         static.  Set up insn sp offset, check the offsets at the end of BBs.
842         (process_insn_for_elimination): Add parameter.  Pass its value to
843         eliminate_regs_in_insn.
844         (lra_eliminate): : Add parameter.  Pass its value to
845         process_insn_for_elimination.  Add assert for param values
846         combination.  Call init_elimination.  Don't update offsets in
847         equivalence substitutions.
848         * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
849         for created stack slot.
850         (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
851         onto stack slot.
853 2013-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
855         * config/arm/iterators.md (vrint_conds): New int attribute.
856         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
857         (smax<mode>3): Likewise.
858         (smin<mode>3): Likewise.
860 2013-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
862         * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
863         * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
864         * tree-ssanames.h (set_range_info): Add range_type argument.
865         (duplicate_ssa_name_range_info): Likewise.
866         * tree-ssanames.c (set_range_info): Take the range type as argument
867         and store it in SSA_NAME_ANTI_RANGE_P.
868         (duplicate_ssa_name_range_info): Likewise.
869         (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
870         (set_nonzero_bits): Update call to set_range_info.
871         (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
872         * tree-ssa-copy.c (fini_copy_prop): Likewise.
873         * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
874         (vrp_finalize): Likewise, passing anti-ranges directly.
876 2013-11-28  Richard Biener  <rguenther@suse.de>
878         PR tree-optimization/59330
879         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
880         and fix delayed marking of free calls not necessary.
882 2013-11-28  Andrew MacLeod  <amacleod@redhat.com>
884         * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
885         is_gimple_reg_type.
886         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
888 2013-11-28  Terry Guo  <terry.guo@arm.com>
890         * config/arm/arm.c (v7m_extra_costs): New table.
891         (arm_v7m_tune): Use it.
893 2013-11-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
895         * config/sol2.h (TIME_LIBRARY): Define.
897 2013-11-28  Richard Biener  <rguenther@suse.de>
899         PR lto/59323
900         * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
901         CONST_DECLs in function context are not indexable.
903 2013-11-28  Chung-Ju Wu  <jasonwucj@gmail.com>
905         * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
906         not optimized for size.
908 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
910         * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
911         fields.
912         (expand_stack_vars): For -fsanitize=address, use (and set initially)
913         data->asan_base as base for vars and update asan_alignb.
914         (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
915         Pass them to asan_emit_stack_protection.
916         * asan.c (asan_detect_stack_use_after_return): New variable.
917         (asan_emit_stack_protection): Add pbase and alignb arguments.
918         Implement use after return sanitization.
919         * asan.h (asan_emit_stack_protection): Adjust prototype.
920         (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
922 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
924         * common.opt: Introduced a new option -fsimd-cost-model.
925         * doc/invoke.texi: Introduced a new openmp-simd warning and
926         a new -fsimd-cost-model option.
927         * tree-vectorizer.h (unlimited_cost_model): Interface updated
928         to rely on the particular loop info.
929         * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
930         (vect_peeling_hash_choose_best_peeling): Ditto.
931         (vect_enhance_data_refs_alignment): Ditto.
932         * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
933         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
934         plus added openmp-simd warining.
936 2013-11-27   H.J. Lu  <hongjiu.lu@intel.com>
938         PR rtl-optimization/59311
939         * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
940         * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
942 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
944         * var-tracking.c (track_expr_p): Do not track declarations for parts
945         of tracked parameters.
946         (add_stores): Do not track values for tracked parameters passed in
947         multiple locations.
948         (vt_get_decl_and_offset): Handle PARALLEL.
949         (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
951 2013-11-27  Jeff Law  <law@redhat.com>
953         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
954         clobber the loop structure thread_block was unsuccessful.  If
955         thread_block was unsuccessful, cleanup appropriately.
957 2013-11-27  Chen Liqin <liqin.gcc@gmail.com>
959         * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
960         (score_char_to_class): Likewise.
962 2013-11-27  Kenneth Zadeck  <zadeck@naturalbridge.com>
964         * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
965         the overflow bit set.
967 2013-11-27  Richard Biener  <rguenther@suse.de>
969         PR middle-end/58723
970         * cgraphbuild.c (build_cgraph_edges): Do not build edges
971         for internal calls.
972         (rebuild_cgraph_edges): Likewise.
973         * ipa-inline-analysis.c (estimate_function_body_sizes):
974         Skip internal calls.
975         * tree-inline.c (estimate_num_insns): Estimate size of internal
976         calls as 0.
977         (gimple_expand_calls_inline): Do not try inline-expanding
978         internal calls.
979         * lto-streamer-in.c (input_cfg): Stream loop safelen,
980         force_vect and simduid.
981         (input_struct_function_base): Stream has_force_vect_loops
982         and has_simduid_loops.
983         (input_function): Adjust.
984         * lto-streamer-out.c (output_cfg): Stream loop safelen,
985         force_vect and simduid.
986         (output_struct_function_base): Stream has_force_vect_loops
987         and has_simduid_loops.
989 2013-11-27  Kai Tietz  <ktietz@redhat.com>
991         * config/i386/winnt.c (i386_pe_section_type_flags): Use const
992         pointer cast.
994 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
996         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
997         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
999 2013-11-27  Marek Polacek  <polacek@redhat.com>
1001         PR sanitizer/59306
1002         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
1003         instead of walk_gimple_op.
1004         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
1006 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
1007             Jakub Jelinek  <jakub@redhat.com>
1009         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
1010         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
1011         (struct cgraph_node): Add simdclone and simd_clones fields.
1012         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
1013         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
1014         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1015         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
1016         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1017         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
1018         * doc/tm.texi: Regenerated.
1019         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
1020         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
1021         attribute is present.
1022         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
1023         (simd_clone_vector_of_formal_parm_types): New function.
1024         (simd_clone_struct_alloc, simd_clone_struct_copy,
1025         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
1026         simd_clone_compute_base_data_type, simd_clone_mangle,
1027         simd_clone_create, simd_clone_adjust_return_type,
1028         create_tmp_simd_array, simd_clone_adjust_argument_types,
1029         simd_clone_init_simd_arrays): New functions.
1030         (struct modify_stmt_info): New type.
1031         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
1032         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
1033         functions.
1034         (pass_data_omp_simd_clone): New variable.
1035         (pass_omp_simd_clone): New class.
1036         (make_pass_omp_simd_clone): New function.
1037         * passes.def (pass_omp_simd_clone): New.
1038         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1039         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
1040         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
1041         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
1042         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
1043         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
1044         * tree-vect-data-refs.c: Include cgraph.h.
1045         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
1046         and find_data_references_in_bb, if find_data_references_in_stmt
1047         fails, still allow calls to #pragma omp declare simd functions
1048         in #pragma omp simd loops unless they contain data references among
1049         the call arguments or in lhs.
1050         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1051         calls with no lhs.
1052         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
1053         without lhs.
1054         * tree-vectorizer.h (enum stmt_vec_info_type): Add
1055         call_simd_clone_vec_info_type.
1056         (struct _stmt_vec_info): Add simd_clone_fndecl field.
1057         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
1058         * tree-vect-stmts.c: Include tree-ssa-loop.h,
1059         tree-scalar-evolution.h and cgraph.h.
1060         (vectorizable_call): Handle calls without lhs.  Assert
1061         !stmt_can_throw_internal instead of failing for it.  Don't update
1062         EH stuff.
1063         (struct simd_call_arg_info): New.
1064         (vectorizable_simd_clone_call): New function.
1065         (vect_transform_stmt): Call it.
1066         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
1067         calls without lhs.
1068         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
1069         if cgraph_function_with_gimple_body_p is true.
1071 2013-11-27  Tom de Vries  <tom@codesourcery.com>
1072             Marc Glisse  <marc.glisse@inria.fr>
1074         PR middle-end/59037
1075         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
1076         BIT_FIELD_REF.
1077         * gimple-fold.c (gimple_fold_indirect_ref): Same.
1078         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
1079         out-of-bounds.
1081 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1083         PR middle-end/59138
1084         * expr.c (emit_group_store): Don't write past the end of the structure.
1085         (store_bit_field): Fix formatting.
1087 2013-11-27  Richard Biener  <rguenther@suse.de>
1089         PR tree-optimization/59288
1090         * tree-vect-loop.c (get_initial_def_for_induction): Do not
1091         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
1093 2013-11-27  Marek Polacek  <polacek@redhat.com>
1095         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
1096         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
1097         rather than ADDR_EXPRs.
1099 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1101         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
1103 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
1105         * gengtype.c (struct seen_tag): New.
1106         (already_seen_tag): New.
1107         (mark_tag_as_seen): New.
1108         (walk_subclasses): Support having multiple subclasses using the
1109         same tag by tracking which tags have already been seen, and using
1110         this to avoid adding duplicate cases to the "switch" statement.
1111         The call to already_seen_tag introduces an O(N^2) when running
1112         gengtype on N, the number of tags, due to the repeated linear
1113         search, but currently max(N) is relatively small (the number of
1114         GSS codes, which is 26).
1115         (walk_type): Pass in a seen_tag for use by the walk_subclasses
1116         recursion.
1118         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
1119         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
1120         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
1121         GIMPLE_OMP_RETURN happens to share the data layout of
1122         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
1123         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
1124         underlying GSS value from GSS_OMP_PARALLEL to
1125         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
1126         not directly related; they merely share in-memory layout.
1127         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
1128         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
1130         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
1131         Rename to...
1132         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
1133         ...these.
1134         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
1135         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
1136         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
1137         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
1138         ...these.
1140         * gimple.h (gimple_statement_resx): New subclass of
1141         gimple_statement_eh_ctrl, with the invariant that
1142         stmt->code == GIMPLE_RESX.
1143         (gimple_statement_eh_dispatch): New subclass of
1144         gimple_statement_eh_ctrl, with the invariant that
1145         stmt->code == GIMPLE_EH_DISPATH.
1147         (gimple_statement_omp_parallel): The existing class expressed
1148         a layout (GSS_OMP_PARALLEL), but the codes with that layout
1149         are not all related, so it makes more sense for this class to
1150         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
1151         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
1152         rename the existing gimple_statement_omp_parallel class to...
1153         (gimple_statement_omp_parallel_layout): ...this, expressing
1154         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
1155         (gimple_statement_omp_taskreg): New subclass of
1156         gimple_statement_omp_parallel_layout, expressing the invariant
1157         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
1158         as used by the various gimple_omp_taskreg_ accessors.
1159         (gimple_statement_omp_parallel): Reintroduce this class, this time
1160         as a subclass of gimple_statement_omp_taskreg to express the
1161         invariant stmt->code == GIMPLE_OMP_PARALLEL.
1162         (gimple_statement_omp_target) New class, subclassing
1163         gimple_statement_omp_parallel_layout, to express the invariant
1164         stmt->code == GIMPLE_OMP_TARGET.
1165         (gimple_statement_omp_task): Update to inherit from
1166         gimple_statement_omp_taskreg rather than
1167         gimple_statement_omp_parallel.
1169         (gimple_statement_omp_single): Rename to...
1170         (gimple_statement_omp_single_layout): ...this, expressing the
1171         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
1172         (gimple_statement_omp_single): ...and reintroduce this name as
1173         a subclass of gimple_statement_omp_single_layout, expressing
1174         the invariant that code == GIMPLE_OMP_SINGLE.
1175         (gimple_statement_omp_teams): New class, subclassing
1176         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
1178         (gimple_statement_omp_atomic_store): Rename to...
1179         (gimple_statement_omp_atomic_store_layout): ...this, expressing
1180         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
1181         (gimple_statement_omp_atomic_store): ...and reintroduce this
1182         name as a subclass of gimple_statement_omp_atomic_store_layout
1183         with code == GIMPLE_OMP_ATOMIC_STORE.
1184         (gimple_statement_omp_return): New class, subclassing
1185         gimple_statement_omp_atomic_store_layout for the code
1186         GIMPLE_OMP_RETURN.
1188         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
1189         (is_a_helper <gimple_statement_resx>::test): New.
1190         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
1191         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
1192         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1193         (is_a_helper <gimple_statement_omp_return>::test): New.
1194         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
1195         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
1196         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1197         GIMPLE_OMP_TARGET.
1198         (is_a_helper <gimple_statement_omp_target>::test): New.
1199         (is_a_helper <gimple_statement_omp_single>::test): Only check
1200         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1201         (is_a_helper <gimple_statement_omp_teams>::test): New.
1203         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
1204         (is_a_helper <const gimple_statement_resx>::test): New.
1205         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
1206         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
1207         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1208         (is_a_helper <const gimple_statement_omp_return>::test): New.
1209         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
1210         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
1211         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1212         GIMPLE_OMP_TARGET.
1213         (is_a_helper <const gimple_statement_omp_target>::test): New.
1214         (is_a_helper <const gimple_statement_omp_single>::test): Only
1215         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1216         (is_a_helper <const gimple_statement_omp_teams>::test): New.
1218         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
1219         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
1220         gimple_statement_omp_atomic_store with downcasts to
1221         gimple_statement_omp_return, thus requiring that the code be
1222         GIMPLE_OMP_RETURN.
1223         (gimple_resx_region, gimple_resx_set_region): Replace bogus
1224         downcasts to gimple_statement_eh_ctrl with downcasts to
1225         gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
1226         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
1227         Replace bogus downcasts to const gimple_statement_eh_ctrl with
1228         downcasts to gimple_statement_eh_dispatch, thus requiring that
1229         the code be GIMPLE_EH_DISPATCH.
1230         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
1231         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
1232         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
1233         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
1234         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
1235         gimple_statement_omp_parallel with downcasts to
1236         gimple_statement_omp_taskreg, thus requiring that the code be
1237         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
1238         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
1239         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
1240         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
1241         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
1242         gimple_omp_target_set_data_arg): Replace bogus downcasts to
1243         gimple_statement_omp_parallel with downcasts to
1244         gimple_statement_omp_target, thus requiring that the code be
1245         GIMPLE_OMP_TARGET.
1246         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
1247         gimple_omp_teams_set_clauses): Replace bogus downcasts to
1248         gimple_statement_omp_single with downcasts to
1249         gimple_statement_omp_teams, thus requiring that the code be
1250         GIMPLE_OMP_TEAMS.
1252         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
1253         gimple_statement_resx.
1254         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
1255         gimple_statement_eh_dispatch.
1257 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
1259         PR tree-optimization/59014
1260         * tree-vrp.c (register_edge_assert_for_1): Don't look
1261         through conversions from non-integral types or through
1262         narrowing conversions.
1264         PR target/59229
1265         * config/i386/i386.c (device_alg): Fix up formatting.
1266         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
1267         similarly to count && count < epilogue_size_needed.  Fix up
1268         comment typo.
1269         * builtins.c (determine_block_size): Fix comment typo.
1271         PR sanitizer/59258
1272         * ubsan.c (ubsan_source_location): Don't add any location
1273         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
1274         (ubsan_create_data): Strip block info from LOC.
1276         PR middle-end/59273
1277         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1278         if there isn't optab handler for the corresponding vector PLUS_EXPR.
1280         PR rtl-optimization/59166
1281         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1282         DF_REF_LOC in validate_change call.
1283         (split_live_ranges_for_shrink_wrap): Likewise.
1285         PR middle-end/59150
1286         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1287         of references to constant size types in simd loops, defer emitting
1288         initializer for the new_var, emit it later on only if not using
1289         SIMD arrays for it.
1291         PR middle-end/59152
1292         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1293         for the inner loop if collapse_bb is non-NULL.
1294         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1296 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
1298         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1299         a constant immediate before force_reg.
1301 2013-11-26  Richard Biener  <rguenther@suse.de>
1303         PR tree-optimization/59245
1304         * tree-vrp.c (set_value_range): Assert that we don't have
1305         overflowed constants (but our infinities).
1306         (set_value_range_to_value): Drop all overflow flags.
1307         (vrp_visit_phi_node): Likewise.
1308         (vrp_visit_assignment_or_call): Use set_value_range_to_value
1309         to set a constant range.
1311 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1313         PR target/59290
1314         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1315         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1316         for zero_extend case.
1318 2013-11-26   H.J. Lu  <hongjiu.lu@intel.com>
1320         PR bootstrap/55552
1321         * configure.ac (install_gold_as_default): New.  Set to yes for
1322         --disable-ld or --enable-gold=default.
1323         (gcc_cv_ld_gold_srcdir): New.
1324         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
1325         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1326         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1327         * configure: Regenerated.
1329         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1330         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1331         (original) [collect-ld && -fuse-ld=bfd]: Set to
1332         $ORIGINAL_LD_BFD_FOR_TARGET.
1333         (original) [collect-ld && -fuse-ld=gold]: Set to
1334         $ORIGINAL_LD_GOLD_FOR_TARGET.
1335         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1336         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1338 2013-11-26  Terry Guo  <terry.guo@arm.com>
1340         * config/arm/arm.c (require_pic_register): Handle high pic base
1341         register for thumb-1.
1342         (arm_load_pic_register): Also initialize high pic base register.
1343         * doc/invoke.texi: Update documentation for option -mpic-register.
1345 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
1347         PR target/58314
1348         PR target/50751
1349         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1350         Prefix function names with 'sh_'.  Make them non-static.
1351         * config/sh/sh-protos.h (sh_disp_addr_displacement,
1352         sh_max_mov_insn_displacement): Add declarations.
1353         * config/sh/constraints.md (Q): Reject QImode.
1354         (Sdd): Use match_code "mem".
1355         (Snd): Fix erroneous matching of non-memory operands.
1356         * config/sh/predicates.md (short_displacement_mem_operand): New
1357         predicate.
1358         (general_movsrc_operand): Disallow PC relative QImode loads.
1359         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1360         (*movqi, *movhi): Merge both insns into...
1361         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
1362         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
1363         on the operand types.
1365 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
1367         * config/epiphany/epiphany.c (epiphany_expand_prologue):
1368         Remove unused variable save_config.
1369         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1370         assert.
1372 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1374         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1375         using other intrinsics.
1376         (vtbx3_<psu>8): Likewise.
1378 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1380         * config/aarch64/aarch64-builtins.c
1381         (aarch64_types_bsl_p_qualifiers): New.
1382         (aarch64_types_bsl_s_qualifiers): Likewise.
1383         (aarch64_types_bsl_u_qualifiers): Likewise.
1384         (TYPES_BSL_P): Likewise.
1385         (TYPES_BSL_S): Likewise.
1386         (TYPES_BSL_U): Likewise.
1387         (BUILTIN_VALLDIF): Likewise.
1388         (BUILTIN_VDQQH): Likewise.
1389         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1390         * config/aarch64/aarch64-simd.md
1391         (aarch64_simd_bsl<mode>_internal): Handle more modes.
1392         (aarch64_simd_bsl<mode>): Likewise.
1393         * config/aarch64/arm_neon.h
1394         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1395         * config/aarch64/iterators.md (VALLDIF): New.
1396         (Vbtype): Handle more modes.
1398 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1400         * config/aarch64/aarch64-builtins.c
1401         (aarch64_type_qualifiers): Add qualifier_poly.
1402         (aarch64_build_scalar_type): Also build Poly types.
1403         (aarch64_build_vector_type): Likewise.
1404         (aarch64_build_type): Likewise.
1405         (aarch64_build_signed_type): New.
1406         (aarch64_build_unsigned_type): Likewise.
1407         (aarch64_build_poly_type): Likewise.
1408         (aarch64_init_simd_builtins): Also handle Poly types.
1410 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1412         * config/aarch64/aarch64-builtins.c
1413         (VAR1): Use new naming scheme for aarch64_builtins.
1414         (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
1416 2013-11-26  Richard Biener  <rguenther@suse.de>
1418         PR tree-optimization/59287
1419         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1420         Remove no longer necessary special-casing of union accesses.
1422 2013-11-26  Richard Biener  <rguenther@suse.de>
1424         * pretty-print.c (output_buffer::~output_buffer): Really
1425         free the obstacks.
1427 2013-11-25  Jeff Law  <law@redhat.com>
1429         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1430         invalidate loop information.
1432 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1434         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1436 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1438         PR target/53976
1439         PR target/59243
1440         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1441         comments.
1442         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1443         previously visited basic blocks before recursing instead of only one
1444         basic block.
1446 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1448         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1449         * config/aarch64/aarch64-cores.def (cortex-a53):
1450         Use cortexa53 tuning struct.
1452 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
1454         PR bootstrap/59260
1455         * fold-const.c: Include hash-table.h.
1457 2013-11-25  Marek Polacek  <polacek@redhat.com>
1459         PR sanitizer/59258
1460         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1462 2013-11-25  Richard Biener  <rguenther@suse.de>
1464         * tree-dfa.c: Remove unused convert.h include.
1466 2013-11-25  Terry Guo  <terry.guo@arm.com>
1468         * doc/invoke.texi (-mslow-flash-data): Document new option.
1469         * config/arm/arm.opt (mslow-flash-data): New option.
1470         * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
1471         Declare it.
1472         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1473         are disabled.
1474         (arm_disable_literal_pool): Declare it.
1475         * config/arm/arm.c (arm_disable_literal_pool): New variable.
1476         (arm_option_override): Handle new option.
1477         (thumb2_legitimate_address_p): Don't allow symbol references when
1478         literal pools are disabled.
1479         (arm_max_const_double_inline_cost): New function.
1480         * config/arm/arm.md (types.md): Include it before ...
1481         (use_literal_pool): New attribute.
1482         (enabled): Use new attribute.
1483         (split pattern): Replace symbol+offset with MOVW/MOVT.
1485 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1487         PR bootstrap/59279
1488         Revert previous commit.
1490 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1492         * jump.c (reset_insn_reg_label_operand_notes): New function,
1493         split out from ...
1494         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
1495         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1496         split out from ...
1497         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
1498         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1499         expensive CFG cleanup is called for.
1500         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1501         (cfg_layout_finalize): Delete dead jump tables before re-building
1502         the insns chain.
1503         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1504         basic blocks, not before.
1505         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1507         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1508         insns chain of a scheduling extended basic block, they cannot appear
1509         there in cfglayout mode.
1511 2013-11-24  Tobias Burnus  <burnus@net-b.de>
1513         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1515 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1517         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1518         for little endian.
1520 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1522         * graphite-sese-to-poly.c: Don't include extra "expr.h".
1524 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1526         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1528 2013-11-23  David Edelson  <dje.gcc@gmail.com>
1529             Andrew Dixie  <andrewd@gentrack.com>
1531         PR target/33704
1532         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1533         (COLLECT_SHARED_FINI_FUNC): Define.
1535         * collect2.c (aix_shared_initname): Declare.
1536         (aix_shared_fininame): Declare.
1537         (symkind): Add SYM_AIXI and SYM_AIXD.
1538         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1539         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1540         (aixlazy_flag): Parse.
1541         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1542         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1544 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
1546         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1547         (rs6000_xcoff_select_section): Place decls with stricter alignment
1548         into named sections.
1549         (rs6000_xcoff_unique_section): Allow unique sections for
1550         uninitialized data with strict alignment.
1552 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
1554         PR tree-optimization/59154
1555         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1556         rhs1 of a cast and new_op is invariant, fold_convert it.
1557         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1558         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1560 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
1562         PR target/56788
1563         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1564         Declare as MULTI_ARG_1_SF instruction.
1565         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1566         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1567         from *xop_vmfrcz_<mode>.
1568         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1569         to merge scalar result with __A.
1570         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1571         result with __A.
1573 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1575         * gimplify.h (recalculate_side_effects): Delete.
1576         * gimplify.c (recalculate_side_effects): Make static and add comment.
1578 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1580         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1581         for the destination of a define_peephole2.  Likewise register_operand
1582         rather than arith_reg_operand.  Remove constraints from
1583         define_peephole2s.
1585 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1587         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1588         Delete.
1589         (mn10300_store_multiple_operation_p): Declare.
1590         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1591         Rename to...
1592         (mn10300_store_multiple_operation_p): ...this and remove mode
1593         argument.
1594         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1595         Define.
1597 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1599         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1600         (pop_multiple_operation): Delete.
1601         (analyze_push_multiple_operation): Declare.
1602         (analyze_pop_multiple_operation): Declare.
1603         * config/bfin/bfin.c (push_multiple_operation): Rename to...
1604         (analyze_push_multiple_operation): ...this and remove mode argument.
1605         (pop_multiple_operation): Rename to...
1606         (analyze_pop_multiple_operation): ...this and remove mode argument.
1607         * config/bfin/predicates.md (push_multiple_operation): Define.
1608         (pop_multiple_operation): Likewise.
1610 2013-11-23  Alan Modra  <amodra@gmail.com>
1612         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1614 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1616         PR sanitizer/59061
1617         * common.opt (static-liblsan): Add.
1618         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1619         Define.
1620         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
1621         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1622         SANITIZE_RETURN.
1623         * opts.c (common_handle_option): Handle -fsanitize=leak.
1624         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1625         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1626         (LIBUBSAN_EARLY_SPEC): Remove.
1627         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1628         (SANITIZER_SPEC): Add -fsanitize=leak handling.
1629         (sanitize_spec_function): Handle %sanitize(leak).
1630         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1632 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
1633             Jakub Jelinek  <jakub@redhat.com>
1635         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1636         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1637         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
1638         (ipa_modify_formal_parameters): Adjust caller.  Remove
1639         synth_parm_prefix argument.  Use operator enum instead of bit fields.
1640         Add assert for properly handling vector of references.  Handle
1641         creating brand new parameters.
1642         (ipa_modify_call_arguments): Use operator enum instead of bit
1643         fields.
1644         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
1645         used.
1646         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1647         New functions.
1648         (ipa_dump_param_adjustments): Rename reduction to new_decl.
1649         Use operator enum instead of bit fields.
1650         * ipa-prop.h (enum ipa_parm_op): New.
1651         (struct ipa_parm_adjustment): New field op.  Rename reduction
1652         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1653         and copy_param.
1654         (ipa_modify_formal_parameters): Remove last argument.
1655         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1656         ipa_get_adjustment_candidate): New prototypes.
1657         * tree-sra.c (turn_representatives_into_adjustments): Use operator
1658         enum.  Set arg_prefix.
1659         (get_adjustment_for_base): Use operator enum.
1660         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1661         ipa-prop.c.
1662         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1663         (ipa_sra_modify_function_body): Same.  No longer static.
1664         (sra_ipa_reset_debug_stmts): Use operator enum.
1665         (modify_function): Do not pass prefix argument.
1667 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1669         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1670         (ubsan_pass): Ignore clobber stmts.
1672         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1673         * opts.c (common_handle_option): Add -fsanitize=return.
1674         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1675         or it into SANITIZE_UNDEFINED.
1677         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1678         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1679         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1680         Don't instrument accesses to VAR_DECLs which are known to fit
1681         into their bounds and the vars are known to have shadow bytes
1682         indicating allowed access.
1683         (asan_dynamic_init_call): New function.
1684         (asan_add_global): If vnode->dynamically_initialized,
1685         set __has_dynamic_init to 1 instead of 0.
1686         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1687         * asan.h (asan_dynamic_init_call): New prototype.
1688         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1690 2013-11-22  Martin Jambor  <mjambor@suse.cz>
1692         PR rtl-optimization/10474
1693         * ira.c (interesting_dest_for_shprep_1): New function.
1694         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1695         also check parallels.
1697 2013-11-22  Jeff Law  <law@redhat.com>
1699         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1700         NULL for RHS, which we used to invalidate equivalences.
1701         (record_temporary_equivalences_from_phis): New bitmap arguments
1702         and a boolean indicating if we have passed a backedge.  If we
1703         have passed a backedge, then set the appropriate bit in the
1704         bitmaps for the SRC & DEST of PHIs creating equivalences.
1705         (invalidate_equivalences, dummy_simplify): New functions.
1706         (cond_arg_set_in_b): Remove.
1707         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1708         arguments and a boolean indicating if we have passed a backedge.
1709         If we have passed a backedge, then perform invalidations as needed.
1710         (thread_around_empty_blocks): If we have seen a backedge, then
1711         use the dummy simplify routine.
1712         (thread_through_normal_block): Likewise.  Pass bitmaps and
1713         backedge status to children.  Do not pessimize so much when
1714         traversing backedges in the CFG.
1715         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1716         If we have seen a backedge, then use the dummy simplify routine.
1717         Do not pessimize so much when traversing backedges.
1719 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
1721         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1722         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1724 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
1726         * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
1727         PTA_PCLMUL and PTA_RDRND for Silvermont.
1728         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1729         for Silvermont.
1731         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1733 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1735         * hooks.h (hook_uint_mode_0): Add Prototype.
1736         * hooks.c (hook_uint_mode_0): New default function.
1737         * target.def (atomic_align_for_mode): New target hook.
1738         * tree.c (build_atomic_base): Add alignment override parameter.
1739         (build_common_tree_nodes): Use atomic alignment override.
1740         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1741         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1743 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1745         * gimple.h: Remove all includes.
1746         (recalculate_side_effects): Move prototype to gimplify.h.
1747         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1748         * gengtype.c (open_base_files): Add gimple.h include list.
1749         * gimplify.h (recalculate_side_effects): Relocate prototype here.
1750         * gimple.c: Adjust include list.
1751         (recalculate_side_effects): Move to gimplify.c.
1752         * gimplify.c: Adjust include list.
1753         (recalculate_side_effects): Relocate from gimple.c.
1754         * alias.c: Add required include files removed from gimple.h.
1755         * asan.c: Likewise.
1756         * builtins.c: Likewise.
1757         * calls.c: Likewise.
1758         * cfgexpand.c: Likewise.
1759         * cfgloop.c: Likewise.
1760         * cfgloopmanip.c: Likewise.
1761         * cgraphbuild.c: Likewise.
1762         * cgraph.c: Likewise.
1763         * cgraphclones.c: Likewise.
1764         * cgraphunit.c: Likewise.
1765         * cilk-common.c: Likewise.
1766         * data-streamer.c: Likewise.
1767         * data-streamer-in.c: Likewise.
1768         * data-streamer-out.c: Likewise.
1769         * dse.c: Likewise.
1770         * dwarf2out.c: Likewise.
1771         * emit-rtl.c: Likewise.
1772         * except.c: Likewise.
1773         * expr.c: Likewise.
1774         * fold-const.c: Likewise.
1775         * function.c: Likewise.
1776         * gimple-builder.c: Likewise.
1777         * gimple-expr.c: Likewise.
1778         * gimple-fold.c: Likewise.
1779         * gimple-iterator.c: Likewise.
1780         * gimple-low.c: Likewise.
1781         * gimple-pretty-print.c: Likewise.
1782         * gimple-ssa-isolate-paths.c: Likewise.
1783         * gimple-ssa-strength-reduction.c: Likewise.
1784         * gimple-streamer-in.c: Likewise.
1785         * gimple-streamer-out.c: Likewise.
1786         * gimple-walk.c: Likewise.
1787         * gimplify-me.c: Likewise.
1788         * graphite-blocking.c: Likewise.
1789         * graphite.c: Likewise.
1790         * graphite-clast-to-gimple.c: Likewise.
1791         * graphite-dependences.c: Likewise.
1792         * graphite-interchange.c: Likewise.
1793         * graphite-optimize-isl.c: Likewise.
1794         * graphite-poly.c: Likewise.
1795         * graphite-scop-detection.c: Likewise.
1796         * graphite-sese-to-poly.c: Likewise.
1797         * internal-fn.c: Likewise.
1798         * ipa.c: Likewise.
1799         * ipa-cp.c: Likewise.
1800         * ipa-devirt.c: Likewise.
1801         * ipa-inline-analysis.c: Likewise.
1802         * ipa-inline.c: Likewise.
1803         * ipa-profile.c: Likewise.
1804         * ipa-prop.c: Likewise.
1805         * ipa-pure-const.c: Likewise.
1806         * ipa-reference.c: Likewise.
1807         * ipa-split.c: Likewise.
1808         * ipa-utils.c: Likewise.
1809         * langhooks.c: Likewise.
1810         * lto-cgraph.c: Likewise.
1811         * lto-compress.c: Likewise.
1812         * lto-opts.c: Likewise.
1813         * lto-section-in.c: Likewise.
1814         * lto-section-out.c: Likewise.
1815         * lto-streamer.c: Likewise.
1816         * lto-streamer-in.c: Likewise.
1817         * lto-streamer-out.c: Likewise.
1818         * omp-low.c: Likewise.
1819         * opts-global.c: Likewise.
1820         * passes.c: Likewise.
1821         * predict.c: Likewise.
1822         * profile.c: Likewise.
1823         * sese.c: Likewise.
1824         * stmt.c: Likewise.
1825         * stor-layout.c: Likewise.
1826         * symtab.c: Likewise.
1827         * targhooks.c: Likewise.
1828         * toplev.c: Likewise.
1829         * tracer.c: Likewise.
1830         * trans-mem.c: Likewise.
1831         * tree-affine.c: Likewise.
1832         * tree.c: Likewise.
1833         * tree-call-cdce.c: Likewise.
1834         * tree-cfg.c: Likewise.
1835         * tree-cfgcleanup.c: Likewise.
1836         * tree-chrec.c: Likewise.
1837         * tree-complex.c: Likewise.
1838         * tree-data-ref.c: Likewise.
1839         * tree-dfa.c: Likewise.
1840         * tree-eh.c: Likewise.
1841         * tree-emutls.c: Likewise.
1842         * tree-if-conv.c: Likewise.
1843         * tree-inline.c: Likewise.
1844         * tree-into-ssa.c: Likewise.
1845         * tree-loop-distribution.c: Likewise.
1846         * tree-nested.c: Likewise.
1847         * tree-nrv.c: Likewise.
1848         * tree-object-size.c: Likewise.
1849         * tree-outof-ssa.c: Likewise.
1850         * tree-parloops.c: Likewise.
1851         * tree-phinodes.c: Likewise.
1852         * tree-predcom.c: Likewise.
1853         * tree-pretty-print.c: Likewise.
1854         * tree-profile.c: Likewise.
1855         * tree-scalar-evolution.c: Likewise.
1856         * tree-sra.c: Likewise.
1857         * tree-ssa-address.c: Likewise.
1858         * tree-ssa-alias.c: Likewise.
1859         * tree-ssa.c: Likewise.
1860         * tree-ssa-ccp.c: Likewise.
1861         * tree-ssa-coalesce.c: Likewise.
1862         * tree-ssa-copy.c: Likewise.
1863         * tree-ssa-copyrename.c: Likewise.
1864         * tree-ssa-dce.c: Likewise.
1865         * tree-ssa-dom.c: Likewise.
1866         * tree-ssa-dse.c: Likewise.
1867         * tree-ssa-forwprop.c: Likewise.
1868         * tree-ssa-ifcombine.c: Likewise.
1869         * tree-ssa-live.c: Likewise.
1870         * tree-ssa-loop.c: Likewise.
1871         * tree-ssa-loop-ch.c: Likewise.
1872         * tree-ssa-loop-im.c: Likewise.
1873         * tree-ssa-loop-ivcanon.c: Likewise.
1874         * tree-ssa-loop-ivopts.c: Likewise.
1875         * tree-ssa-loop-manip.c: Likewise.
1876         * tree-ssa-loop-niter.c: Likewise.
1877         * tree-ssa-loop-prefetch.c: Likewise.
1878         * tree-ssa-loop-unswitch.c: Likewise.
1879         * tree-ssa-math-opts.c: Likewise.
1880         * tree-ssanames.c: Likewise.
1881         * tree-ssa-operands.c: Likewise.
1882         * tree-ssa-phiopt.c: Likewise.
1883         * tree-ssa-phiprop.c: Likewise.
1884         * tree-ssa-pre.c: Likewise.
1885         * tree-ssa-propagate.c: Likewise.
1886         * tree-ssa-reassoc.c: Likewise.
1887         * tree-ssa-sccvn.c: Likewise.
1888         * tree-ssa-sink.c: Likewise.
1889         * tree-ssa-strlen.c: Likewise.
1890         * tree-ssa-structalias.c: Likewise.
1891         * tree-ssa-tail-merge.c: Likewise.
1892         * tree-ssa-ter.c: Likewise.
1893         * tree-ssa-threadedge.c: Likewise.
1894         * tree-ssa-threadupdate.c: Likewise.
1895         * tree-ssa-uncprop.c: Likewise.
1896         * tree-ssa-uninit.c: Likewise.
1897         * tree-stdarg.c: Likewise.
1898         * tree-streamer.c: Likewise.
1899         * tree-streamer-in.c: Likewise.
1900         * tree-streamer-out.c: Likewise.
1901         * tree-switch-conversion.c: Likewise.
1902         * tree-tailcall.c: Likewise.
1903         * tree-vect-data-refs.c: Likewise.
1904         * tree-vect-generic.c: Likewise.
1905         * tree-vect-loop.c: Likewise.
1906         * tree-vect-loop-manip.c: Likewise.
1907         * tree-vectorizer.c: Likewise.
1908         * tree-vect-patterns.c: Likewise.
1909         * tree-vect-slp.c: Likewise.
1910         * tree-vect-stmts.c: Likewise.
1911         * tree-vrp.c: Likewise.
1912         * tsan.c: Likewise.
1913         * ubsan.c: Likewise.
1914         * value-prof.c: Likewise.
1915         * varpool.c: Likewise.
1916         * var-tracking.c: Likewise.
1917         * vtable-verify.c: Likewise.
1918         * config/darwin.c: Likewise.
1919         * config/aarch64/aarch64-builtins.c: Likewise.
1920         * config/aarch64/aarch64.c: Likewise.
1921         * config/alpha/alpha.c: Likewise.
1922         * config/i386/i386.c: Likewise.
1923         * config/i386/winnt.c: Likewise.
1924         * config/ia64/ia64.c: Likewise.
1925         * config/m32c/m32c.c: Likewise.
1926         * config/mep/mep.c: Likewise.
1927         * config/mips/mips.c: Likewise.
1928         * config/rs6000/rs6000.c: Likewise.
1929         * config/s390/s390.c: Likewise.
1930         * config/sh/sh.c: Likewise.
1931         * config/sparc/sparc.c: Likewise.
1932         * config/spu/spu.c: Likewise.
1933         * config/stormy16/stormy16.c: Likewise.
1934         * config/tilegx/tilegx.c: Likewise.
1935         * config/tilepro/tilepro.c: Likewise.
1936         * config/xtensa/xtensa.c: Likewise.
1938 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
1940         PR target/59216
1941         * arm.md (negdi_extendsidi): Fix invalid split.
1943 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
1945         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1946         (vmov_n_f64): Likewise.
1947         (vmov_n_p8): Likewise.
1948         (vmov_n_p16): Likewise.
1949         (vmov_n_s8): Likewise.
1950         (vmov_n_s16): Likewise.
1951         (vmov_n_s32): Likewise.
1952         (vmov_n_s64): Likewise.
1953         (vmov_n_u8): Likewise.
1954         (vmov_n_u16): Likewise.
1955         (vmov_n_u32): Likewise.
1956         (vmov_n_u64): Likewise.
1957         (vmovq_n_f32): Likewise.
1958         (vmovq_n_f64): Likewise.
1959         (vmovq_n_p8): Likewise.
1960         (vmovq_n_p16): Likewise.
1961         (vmovq_n_s8): Likewise.
1962         (vmovq_n_s16): Likewise.
1963         (vmovq_n_s32): Likewise.
1964         (vmovq_n_s64): Likewise.
1965         (vmovq_n_u8): Likewise.
1966         (vmovq_n_u16): Likewise.
1967         (vmovq_n_u32): Likewise.
1968         (vmovq_n_u64): Likewise.
1970 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1972         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1973         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1974         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1975         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1976         and also change to float UNSPEC.
1977         (reduc_maxmin_uns>_<mode>): Remove V2DI.
1978         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1979         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1980         result access for big-endian.
1981         (__LANE0): New macro used to fix up lane access of 'across-lanes'
1982         intrinsics for big-endian.
1983         * config/aarch64/iterators.md (VDQV): Add V2DI.
1984         (VDQV_S): New.
1985         (vp): New mode attribute.
1987 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1989         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1990         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1991         big-endian.
1993 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1995         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1996         for big-endian element order.
1997         (aarch64_simd_vec_setv2di): Likewise.
1998         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1999         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
2000         (vec_extract): Expand using aarch64_get_lane.
2001         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
2003 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
2005         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
2006         and stores to be ABI compliant.
2008 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
2010         * input.h (input_line): Remove.
2011         (input_filename): Likewise.
2012         (in_system_header): Likewise.
2013         * tree.h (EXPR_LOC_OR_HERE): Remove.
2014         * config/bfin/bfin.c (output_file_start): Remove use of
2015         input_filename macro.
2016         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
2017         * gimplify.c (internal_get_tmp_var): Likewise.
2018         EXPR_LOC_OR_HERE macro.
2019         (shortcut_cond_expr): Likewise.
2020         * tree-diagnostic.c (diagnostic_report_current_function): Remove
2021         use of input_filename macro.
2022         * tree.c (get_file_function_name): Likewise.
2024 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
2026         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
2028 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
2030         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
2031         (same sized) elements even if the type of the CONSTRUCTOR has
2032         vector mode and target is a REG.
2034 2013-11-22  Richard Biener  <rguenther@suse.de>
2036         Revert
2037         2013-11-21  Richard Biener  <rguenther@suse.de>
2039         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2040         nb_iterations_upper_bound by one.
2042 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
2044         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
2045         for Silvermont.
2047         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
2048         core-avx-i, core-avx2 and slm.
2050 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
2052         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
2054 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
2056         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
2057         (stzx_24_<mode>): Likewise mra_operand.
2059 2013-11-22  Jeff Law  <law@redhat.com>
2061         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
2062         (thread_block_1): Do not cancel jump threads which go from
2063         inside a loop, through the header, then back inside the loop.
2064         (bb_ends_with_multiway_branch): New function.
2065         (thread_through_all_blocks): Handle threading cases which start
2066         in a loop through the loop header to a point in the loop.
2068         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
2069         jump thread path properly.
2071 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
2073         * vec.h (auto_vec): New class.
2074         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
2075         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
2076         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
2077         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
2078         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
2079         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2080         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
2081         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
2082         appropriate instead of vec for local variables.
2084 2013-11-21  Teresa Johnson  <tejohnson@google.com>
2086         PR target/59233
2087         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
2088         not understood by old_insns_match_p.
2090 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
2092         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
2093         little endian change.
2094         (vec_pack_sfix_trunc_v2df): Likewise.
2095         (vec_pack_ufix_trunc_v2df): Likewise.
2096         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
2097         double checking of endianness.
2099 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
2101         * tree-vect-generic.c (optimize_vector_constructor): New function.
2102         (expand_vector_operations_1): Call it.
2104 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
2106         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
2107         ix86_zero_extend_to_Pmode where appropriate.
2108         (ix86_expand_builtin): Ditto.
2110 2013-11-21  Cary Coutant  <ccoutant@google.com>
2112         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
2113         (add_linkage_name): Don't add linkage name for -g1.
2114         (decls_for_scope): Process subblocks for -g1.
2115         (dwarf2out_source_line): Output line tables for -g1.
2116         (dwarf2out_finish): Likewise.
2117         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
2118         unused scopes for -g1.
2119         * opts.c (common_handle_option): Handle -g same as -g2.
2120         * doc/invoke.texi: Update description for -g1.
2122 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
2124         * doc/extend.texi: Document htm builtins.
2126 2013-11-21  Jeff Law  <law@redhat.com>
2128         PR tree-optimization/59221
2129         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
2130         temporary equivalences when threading through joiner blocks.
2132 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
2134         PR rtl-optimization/55950
2135         * real.c (real_sqrt): Remove function.
2136         * real.h (real_sqrt): Remove prototype.
2137         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
2138         SQRT using real_sqrt.
2140 2013-11-21  Richard Biener  <rguenther@suse.de>
2142         PR tree-optimization/59058
2143         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
2144         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
2145         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
2146         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
2147         (NITERS_KNOWN_P): Fold into ...
2148         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
2149         (LOOP_VINFO_PEELING_FOR_NITER): Add.
2150         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2151         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2152         (vect_do_peeling_for_alignment): Re-use precomputed niter
2153         instead of re-emitting it.
2154         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2155         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2156         * tree-vect-loop.c (vect_get_loop_niters): Use
2157         number_of_latch_executions.
2158         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
2159         (vect_analyze_loop_form): Simplify.
2160         (vect_analyze_loop_operations): Move epilogue peeling code ...
2161         (vect_analyze_loop_2): ... here and adjust it to compute
2162         LOOP_VINFO_PEELING_FOR_NITER.
2163         (vect_estimate_min_profitable_iters): Use
2164         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2165         (vect_build_loop_niters): Emit on the preheader.
2166         (vect_generate_tmps_on_preheader): Likewise.
2167         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
2168         of recomputing it.  Adjust.
2170 2013-11-21  Richard Biener  <rguenther@suse.de>
2172         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2173         LOC_LINE): Remove wrappers and fix all users.
2174         (struct _loop_vec_info): Remove loop_line_number member.
2175         (LOOP_VINFO_LOC): Remove.
2176         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
2177         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
2178         and LOC_LINE.
2180 2013-11-21  Richard Biener  <rguenther@suse.de>
2182         * tree-ssa-forwprop.c (simplify_vce): New function.
2183         (ssa_forward_propagate_and_combine): Call it.
2185 2013-11-21  Richard Biener  <rguenther@suse.de>
2187         * tree-vect-loop-manip.c (vect_build_loop_niters,
2188         vect_generate_tmps_on_preheader): Move ...
2189         * tree-vect-loop.c (vect_build_loop_niters,
2190         vect_generate_tmps_on_preheader): ... here and simplify.
2191         (vect_transform_loop): Call them here and pass down results
2192         to consumers.
2193         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
2194         Get niter variables from caller.
2195         (vect_do_peeling_for_alignment): Likewise.
2196         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
2197         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2198         Adjust prototypes.
2200 2013-11-21  Richard Biener  <rguenther@suse.de>
2202         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2203         nb_iterations_upper_bound by one.
2205 2013-11-21  Richard Biener  <rguenther@suse.de>
2207         PR tree-optimization/59058
2208         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
2209         (build_size_arg_loc): Apply niter adjustment here.
2210         (generate_memset_builtin): Adjust.
2211         (generate_memcpy_builtin): Likewise.
2212         (classify_partition): Do not use number_of_exit_cond_executions
2213         but record whether niter needs to be adjusted.
2215 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
2217         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
2218         could throw.
2220 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
2222         PR target/53976
2223         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
2224         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
2225         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
2226         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
2227         sh_optimize_sett_clrt pass.o to extra_objs.
2229 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
2231         * cfg.c (dump_edge_info): Remove redundant comment.
2232         * cfgcleanup.c (outgoing_edges_match): Reword reference to
2233         EXIT_BLOCK_PTR in comment.
2234         (try_optimize_cfg): Likewise.
2235         * cfgrtl.c (last_bb_in_partition): Likewise.
2236         * cgraph.c (cgraph_node_cannot_return): Likewise.
2237         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2238         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2239         * ipa-split.c (consider_split): Likewise.
2240         * profile.c (find_spanning_tree): Likewise.
2241         * sched-int.h (common_sched_info_def.add_block): Likewise.
2242         * dominance.c (calc_dfs_tree_nonrec): Reword references in
2243         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
2244         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
2245         in comments to now removed ENTRY_BLOCK_PTR macro.
2246         (tree_forwarder_block_p): Reword reference in comment to
2247         EXIT_BLOCK_PTR.
2248         * tree-inline.c (copy_cfg_body): Reword references in comments to
2249         now removed ENTRY_BLOCK_PTR macro.
2250         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2251         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
2252         a comma to the comment to clarify the meaning.
2254 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
2256         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
2257         Move to gimplify.c.
2258         (free_gimplify_stack): Add prototype.
2259         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
2260         (struct gimplify_ctx): Relocate here.
2261         (gimplify_ctxp): Make static.
2262         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
2263         list of struct gimplify_ctx.
2264         (push_gimplify_context): Add default parameters and allocate a struct
2265         from the pool.
2266         (pop_gimplify_context): Free a struct back to the pool.
2267         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2268         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2269         use a local 'struct gimplify_ctx'.
2270         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2271         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2272         Likewise.
2273         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2274         lower_omp_ordered, lower_omp_critical, lower_omp_for,
2275         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2276         lower_omp_teams, execute_lower_omp): Likewise.
2277         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2278         * tree-inline.c (optimize_inline_calls): Likewise.
2280 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2282         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2283         (vsx_extract_<mode>): Likewise.
2284         (*vsx_extract_<mode>_one_le): New LE variant on
2285         *vsx_extract_<mode>_zero.
2286         (vsx_extract_v4sf): Adjust for little endian.
2288 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
2290         PR rtl-optimization/59133
2291         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
2292         new pseudos.
2293         (lra_create_new_reg_with_unique_value): Pass new argument value.
2294         (lra_emit_add, lra_emit_move): Ditto.
2295         * lra-constraints.c (in_class_p): Add check for move for a new insn.
2296         (change_class): Rename to lra_change_class.  Move to lra-int.h.
2297         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2298         change_class.
2299         (process_addr_reg, process_addr): Ditto.
2300         (curr_insn_transform): Ditto.  Add check on old pseudo for
2301         optional reload.
2302         * lra-int.h (lra_get_regno_hard_regno): Move below.
2303         (lra_change_class): Renamed change_class from lra.c.
2305 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
2307         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2308         the children of a NULL pointer.
2310 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
2312         * lra.c (lra): Set lra_in_progress before check_rtl call.
2313         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2314         adding clobber regs when LRA is running.
2316 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
2318         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2319         restriction for ISA_MIPS32R2.
2320         (ISA_HAS_LXC1_SXC1): New macro.
2321         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2322         (ISA_HAS_NMADD4_NMSUB4): Likewise.
2323         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2324         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2325         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2326         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2327         (*<ANYF:storex>_<P:mode>): Likewise.
2329 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
2331         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2332         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2333         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2334         * config/mips/mips.md (recip_condition): Remove mode attribute.
2335         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2336         <recip_condition>.
2337         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2339 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2341         PR target/59207
2342         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2343         Make sure neg2_ovf is set before being used.
2345 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
2347         * plugin.def: Add comment about register_callback and
2348         invoke_plugin_callbacks_full.
2350         * plugin.c (register_callback, invoke_plugin_callbacks_full):
2351         Handle PLUGIN_INCLUDE_FILE event.
2353 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2355         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2356         allow subregs of TDmode in FPRs of smaller size in little-endian.
2357         (rs6000_split_multireg_move): When splitting an access to TDmode
2358         in FPRs, do not use simplify_gen_subreg.
2360 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
2362         PR middle-end/21718
2363         * real.c: Remove comment about decimal string conversion and
2364         rounding errors.
2365         (real_from_string): Use MPFR to convert nonzero decimal constant
2366         to REAL_VALUE_TYPE.
2368 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2370         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2371         endianness of the D registers for the legacy encodings.
2373 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
2375         PR rtl-optimization/54300
2376         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2377         outputs in a single-set are killed from the value chains.
2379 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2381         * cgraph.h (varpool_node): Add need_bounds_init field.
2382         * lto-cgraph.c (lto_output_varpool_node): Output
2383         need_bounds_init value.
2384         (input_varpool_node): Read need_bounds_init value.
2385         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2387 2013-11-20  Jan Hubicka  <jh@suse.cz>
2389         * opts.c (finish_options): Imply -ffat-lto-objects with
2390         -fno-use-linker-plugin.
2391         * common.opt (fuse-linker-plugin): Add var.
2393 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2395         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2396         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2397         (gen_type_die_with_usage): Skip pointer bounds.
2398         (dwarf2out_global_decl): Likewise.
2400 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2402         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2403         from all insns.
2405 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
2407         PR target/57756
2408         * config/i386/i386.c (ix86_option_override_internal): Add missed
2409         argument prefix for 'ix86_fpmath'.
2410         * config/i386/ssemath.h: Add missed definition of
2411         TARGET_FPMATH_DEFAULT_P macros.
2413 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2414             Mike Stump  <mikestump@comcast.net>
2415             Richard Sandiford  <rdsandiford@googlemail.com>
2417         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2418         instead of TREE_INT_CST_LOW, in cases where there is a protecting
2419         tree_fits_shwi_p or tree_fits_uhwi_p.
2420         * builtins.c (fold_builtin_powi): Likewise.
2421         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2422         Likewise.
2423         * dbxout.c (dbxout_symbol): Likewise.
2424         * expr.c (expand_expr_real_1): Likewise.
2425         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2426         (fold_binary_loc): Likewise.
2427         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2428         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2429         * omp-low.c (lower_omp_for_lastprivate): Likewise.
2430         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2431         * stor-layout.c (compute_record_mode): Likewise.
2432         * tree-cfg.c (verify_expr): Likewise.
2433         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2434         * tree-pretty-print.c (dump_array_domain): Likewise.
2435         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2436         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2437         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2438         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2439         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2440         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2441         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2442         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2443         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2444         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2445         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2446         (create_variable_info_for_1): Likewise.
2447         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2448         (vect_verify_datarefs_alignment): Likewise.
2449         (vect_analyze_data_ref_accesses): Likewise.
2450         (vect_prune_runtime_alias_test_list): Likewise.
2451         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2453 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2455         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2456         overflow.  Use tree_to_shwi.
2458 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2460         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2461         HOST_WIDE_INTs when folding (x >> c) << c.
2463 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2464             Dominik Vogt  <vogt@linux.vnet.ibm.com>
2466         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2467         int comparisons with an out of range condition code.
2468         (s390_optimize_nonescaping_tx): Skip empty BBs.
2469         Generate the new tbegin RTX when removing the FPR clobbers (with
2470         two SETs).
2471         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
2472         result before doing the retry calculations.
2473         (s390_init_builtins): Make tbegin "returns_twice" and tabort
2474         "noreturn".
2475         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2476         the TDB setting part of an tbegin.
2477         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2478         ("tx_assist"): Set unused argument to an immediate zero instead of
2479         loading zero into a GPR and pass it as argument.
2480         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2481         Remove inline and related attributes.
2482         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2483         (__TM_is_illegal, __TM_is_footprint_exceeded)
2484         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2486 2013-11-20  Richard Biener  <rguenther@suse.de>
2488         PR lto/59035
2489         * lto-opts.c (lto_write_options): Write defaults only if
2490         they were not explicitely specified.  Also write
2491         -ffp-contract default.
2492         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2493         conservatively.
2494         (run_gcc): Pass through -ffp-contract.
2496 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2498         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2500 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2502         * gcc/config/aarch64/aarch64-builtins.c
2503         (aarch64_simd_itype): Remove.
2504         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2505         (VAR1): Use qualifiers.
2506         (aarch64_build_scalar_type): New.
2507         (aarch64_build_vector_type): Likewise.
2508         (aarch64_build_type): Likewise.
2509         (aarch64_init_simd_builtins): Refactor, remove special cases,
2510         consolidate main loop.
2511         (aarch64_simd_expand_args): Likewise.
2513 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
2515         PR c/53001
2516         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2518 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
2520         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2522 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2524         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2525         to "vec<>" instances.
2526         (build_pretty_printer): Register the vec<>* prettyprinter.
2528 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2530         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2531         (GdbSubprinter.handles_type): New.
2532         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2533         (GdbSubprinterRegex): New subclass of GdbSubprinter.
2534         (GdbPrettyPrinters.add_printer): Remove in favor of...
2535         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2536         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2537         (GdbPrettyPrinters.__call__): Update search for subprinter
2538         to use handles_type method.
2539         (build_pretty_printer): Update registration of subprinters to
2540         use the new API above, supporting multiple spelling of each type,
2541         and allowing for future regex-based subprinters.
2543 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2545         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2546         V16QI vector splat case for little endian.
2548 2013-11-19  Jeff Law  <law@redhat.com>
2550         * tree-ssa-threadedge.c (thread_across_edge): After threading
2551         through a joiner, allow threading a normal block requiring duplication.
2553         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2554         jump threading requests that would muck up the loop structures.
2556         * tree-ssa-threadupdate.c: Fix trailing whitespace.
2557         * tree-ssa-threadupdate.h: Likewise.
2559 2013-11-19  Mike Stump  <mikestump@comcast.net>
2561         * gdbinit.in: Add pmz to print out mpz values.
2563 2013-11-20  Jan Hubicka  <jh@suse.cz>
2565         * common.opt (ffat-lto-objects): Disable by default.
2566         * doc/invoke.texi (fat-lto-objects): Update documentation.
2567         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2569 2013-11-19  Martin Jambor  <mjambor@suse.cz>
2571         PR rtl-optimization/59099
2572         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2573         here.
2574         (ira): Move init_reg_equiv and call to
2575         split_live_ranges_for_shrink_wrap up, remove analyses around call
2576         to find_moveable_pseudos.
2578 2013-11-20  Alan Modra  <amodra@gmail.com>
2580         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2581         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2582         to strict alignment on older processors when little-endian.
2583         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2584         for ELFv2.
2586 2013-11-19  Teresa Johnson  <tejohnson@google.com>
2588         * common/config/i386/i386-common.c: Enable
2589         -freorder-blocks-and-partition at -O2 and up for x86.
2590         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2591         * opts.c (finish_options): Only warn if
2592         -freorder-blocks-and-partition was set on command line.
2594 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
2596         * final.c (final_scan_insn): Emit a label for the split
2597         cold function part.  Label name is formed by suffixing
2598         the original function name with "cold".
2600 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2602         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2603         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2604         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2605         (EXIT_BLOCK_PTR_FOR_FN): ...this.
2606         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2607         cfun be explicit.
2608         (EXIT_BLOCK_PTR): Likewise.
2609         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2610         (FOR_ALL_BB_FN): Update for renaming of
2611         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2613         * cfg.c (init_flow): Likewise.
2614         (check_bb_profile): Likewise.
2615         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2616         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2617         * cfghooks.c (account_profile_record): Likewise.
2618         * cfgloop.c (init_loops_structure): Likewise.
2619         * cgraphbuild.c (record_eh_tables): Likewise.
2620         (compute_call_stmt_bb_frequency): Likewise.
2621         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2622         * lto-streamer-in.c (input_cfg): Likewise.
2623         * predict.c (maybe_hot_frequency_p): Likewise.
2624         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2625         * tree-inline.c (initialize_cfun): Likewise.
2626         (copy_cfg_body): Likewise.
2627         (copy_body): Likewise.
2628         (tree_function_versioning): Likewise.
2630         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2631         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2632         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2633         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2634         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2635         (connect_traces): Likewise.
2636         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2637         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2638         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2639         macro.
2640         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2641         EXIT_BLOCK_PTR.
2642         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2643         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2644         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2645         (rotate_loop): Likewise.
2646         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2647         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2648         EXIT_BLOCK_PTR.
2649         (alloc_aux_for_edges): Likewise.
2650         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2651         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2652         EXIT_BLOCK_PTR.
2653         (compact_blocks): Likewise.
2654         (clear_edges): Likewise.
2655         * cfganal.c (single_pred_before_succ_order): Remove usage of
2656         ENTRY_BLOCK_PTR macro.
2657         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2658         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2659         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2660         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2661         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2662         EXIT_BLOCK_PTR.
2663         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2664         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2665         EXIT_BLOCK_PTR.
2666         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2667         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2668         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2669         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2670         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2671         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2672         EXIT_BLOCK_PTR.
2673         (print_edge_list): Likewise.
2674         (create_edge_list): Likewise.
2675         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2676         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2677         EXIT_BLOCK_PTR.
2678         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2679         macro.
2680         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2681         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2682         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2683         (try_optimize_cfg): Likewise.
2684         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2685         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2686         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2687         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2688         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2689         (try_forward_edges): Likewise.
2690         (try_simplify_condjump): Likewise.
2691         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2692         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2693         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2694         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2695         EXIT_BLOCK_PTR.
2696         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2697         (expand_gimple_tailcall): Likewise.
2698         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2699         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2700         (tidy_fallthru_edges): Likewise.
2701         (verify_flow_info): Likewise.
2702         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2703         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2704         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2705         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2706         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2707         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2708         (get_loop_body_in_dom_order): Likewise.
2709         (get_loop_body): Likewise.
2710         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2711         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2712         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2713         macro.
2714         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2715         (fix_bb_placement): Likewise.
2716         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2717         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2718         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2719         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2720         EXIT_BLOCK_PTR.
2721         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2722         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2723         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2724         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2725         macro.
2726         (fixup_fallthru_exit_predecessor): Remove uses of macros:
2727         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2728         (fixup_reorder_chain): Likewise.
2729         (relink_block_chain): Likewise.
2730         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2731         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2732         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2733         (force_one_exit_fallthru): Likewise.
2734         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2735         EXIT_BLOCK_PTR.
2736         (rtl_verify_edges): Likewise.
2737         (commit_edge_insertions): Likewise.
2738         (commit_one_edge_insertion): Likewise.
2739         (rtl_split_edge): Likewise.
2740         (force_nonfallthru_and_redirect): Likewise.
2741         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2742         (skip_insns_after_block): Likewise.
2743         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2744         EXIT_BLOCK_PTR.
2745         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2746         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2747         EXIT_BLOCK_PTR.
2748         (contains_no_active_insn_p): Likewise.
2749         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2750         (entry_of_function): Likewise.
2751         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2752         (fixup_new_cold_bb): Likewise.
2753         (patch_jump_insn): Likewise.
2754         (try_redirect_by_replacing_jump): Likewise.
2755         (block_label): Likewise.
2756         (could_fall_through): Likewise.
2757         (can_fallthru): Likewise.
2758         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2759         ENTRY_BLOCK_PTR macro.
2760         (rebuild_cgraph_edges): Likewise.
2761         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2762         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2763         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2764         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2765         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2766         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2767         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2768         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2769         macro.
2770         (reg_nonzero_bits_for_combine): Likewise.
2771         (set_nonzero_bits_and_sign_copies): Likewise.
2772         (combine_instructions): Likewise.
2773         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2774         EXIT_BLOCK_PTR.
2775         (bypass_conditional_jumps): Likewise.
2776         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2777         (find_implicit_sets): Likewise.
2778         (cprop_jump): Likewise.
2779         * cse.c (cse_cc_succs): Likewise.
2780         (cse_find_path): Likewise.
2781         * df-problems.c (df_lr_confluence_0): Likewise.
2782         * df-scan.c (df_entry_block_defs_collect): Remove usage of
2783         ENTRY_BLOCK_PTR macro.
2784         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2785         * dominance.c (iterate_fix_dominators): Remove usage of
2786         ENTRY_BLOCK_PTR macro.
2787         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2788         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2789         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2790         EXIT_BLOCK_PTR.
2791         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2792         macro.
2793         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2794         EXIT_BLOCK_PTR.
2795         * domwalk.c (cmp_bb_postorder): Likewise.
2796         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2797         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2798         macro.
2799         (sjlj_emit_function_enter): Likewise.
2800         * final.c (compute_alignments): Likewise.
2801         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2802         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2803         (reposition_prologue_and_epilogue_notes): Remove usage of
2804         EXIT_BLOCK_PTR macro.
2805         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2806         EXIT_BLOCK_PTR.
2807         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2808         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2809         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2810         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2811         (compute_code_hoist_vbeinout): Likewise.
2812         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2813         (pre_expr_reaches_here_p_work): Likewise.
2814         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2815         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2816         EXIT_BLOCK_PTR.
2817         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2818         ENTRY_BLOCK_PTR macro.
2819         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2820         macro.
2821         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2822         ENTRY_BLOCK_PTR macro.
2823         * graphite-scop-detection.c (build_scops): Likewise.
2824         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2825         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2826         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2827         macro.
2828         (unlink_bb_notes): Likewise.
2829         (create_check_block_twin): Likewise.
2830         (init_before_recovery): Likewise.
2831         (sched_extend_bb): Likewise.
2832         (priority): Likewise.
2833         * hw-doloop.c (reorder_loops): Likewise.
2834         (discover_loop): Likewise.
2835         * ifcvt.c (dead_or_predicable): Remove uses of macros:
2836         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2837         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2838         (block_has_only_trap): Likewise.
2839         (cond_exec_find_if_block): Likewise.
2840         (merge_if_block): Likewise.
2841         * ipa-inline-analysis.c (param_change_prob): Remove usage of
2842         ENTRY_BLOCK_PTR macro.
2843         (record_modified): Likewise.
2844         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2845         EXIT_BLOCK_PTR macro.
2846         (local_pure_const): Likewise.
2847         * ipa-split.c (split_function): Remove uses of macros:
2848         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2849         (find_split_points): Likewise.
2850         (consider_split): Likewise.
2851         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2852         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2853         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2854         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2855         * ira-emit.c (entered_from_non_parent_p): Remove usage of
2856         ENTRY_BLOCK_PTR macro.
2857         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2858         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2859         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2860         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2861         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2862         macro.
2863         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2864         EXIT_BLOCK_PTR.
2865         (compute_farthest): Likewise.
2866         (compute_available): Likewise.
2867         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2868         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2869         EXIT_BLOCK_PTR.
2870         (compute_earliest): Likewise.
2871         (compute_antinout_edge): Likewise.
2872         * loop-iv.c (simplify_using_initial_values): Remove usage of
2873         ENTRY_BLOCK_PTR macro.
2874         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2875         macro.
2876         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2877         macro.
2878         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2879         macro.
2880         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2881         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2882         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2883         macro.
2884         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2885         macro.
2886         * lto-streamer-out.c (output_cfg): Likewise.
2887         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2888         EXIT_BLOCK_PTR.
2889         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2890         * mode-switching.c (optimize_mode_switching): Likewise.
2891         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2892         * modulo-sched.c (rest_of_handle_sms): Likewise.
2893         (canon_loop): Likewise.
2894         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2895         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2896         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2897         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2898         macro.
2899         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2900         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2901         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2902         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2903         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2904         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2905         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2906         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2907         (gimple_predict_edge): Likewise.
2908         (probably_never_executed): Likewise.
2909         * profile.c (find_spanning_tree): Remove uses of macros:
2910         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2911         (branch_prob): Likewise.
2912         (compute_branch_probabilities): Likewise.
2913         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2914         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2915         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2916         (set_bb_counts): Likewise.
2917         (correct_negative_edge_counts): Likewise.
2918         (get_exec_counts): Likewise.
2919         (instrument_values): Likewise.
2920         (instrument_edges): Likewise.
2921         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2922         EXIT_BLOCK_PTR.
2923         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2924         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2925         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2926         (reg_to_stack): Likewise.
2927         * regs.h (REG_N_SETS): Likewise.
2928         * reload.c (find_dummy_reload): Likewise.
2929         (combine_reloads): Likewise.
2930         (push_reload): Likewise.
2931         * reload1.c (has_nonexceptional_receiver): Remove usage of
2932         EXIT_BLOCK_PTR macro.
2933         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2934         macro.
2935         (find_basic_block): Likewise.
2936         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2937         (schedule_ebbs): Likewise.
2938         * sched-int.h (sel_sched_p): Likewise.
2939         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2940         macro.
2941         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2942         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2943         EXIT_BLOCK_PTR.
2944         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2945         (extend_rgns): Likewise.
2946         (find_single_block_region): Likewise.
2947         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2948         ENTRY_BLOCK_PTR macro.
2949         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2950         (sel_create_recovery_block): Likewise.
2951         (bb_ends_ebb_p): Likewise.
2952         (sel_bb_end): Likewise.
2953         (sel_bb_head): Likewise.
2954         (free_lv_sets): Likewise.
2955         (init_lv_sets): Likewise.
2956         (tidy_control_flow): Likewise.
2957         (maybe_tidy_empty_bb): Likewise.
2958         * sel-sched-ir.h (_succ_iter_cond): Likewise.
2959         (_succ_iter_start): Likewise.
2960         (sel_bb_empty_or_nop_p): Likewise.
2961         (get_loop_exit_edges_unique_dests): Likewise.
2962         (inner_loop_header_p): Likewise.
2963         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2964         (find_block_for_bookkeeping): Likewise.
2965         * store-motion.c (remove_reachable_equiv_notes): Likewise.
2966         (insert_store): Likewise.
2967         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2968         ENTRY_BLOCK_PTR macro.
2969         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2970         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2971         (gate_tm_init): Likewise.
2972         (tm_region_init): Likewise.
2973         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2974         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2975         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2976         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2977         EXIT_BLOCK_PTR.
2978         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2979         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2980         EXIT_BLOCK_PTR.
2981         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2982         macro.
2983         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2984         EXIT_BLOCK_PTR.
2985         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2986         macro.
2987         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2988         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2989         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2990         (build_gimple_cfg): Likewise.
2991         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2992         (gimple_can_merge_blocks_p): Likewise.
2993         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2994         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2995         * tree-complex.c (update_parameter_components): Remove usage of
2996         ENTRY_BLOCK_PTR macro.
2997         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2998         EXIT_BLOCK_PTR macro.
2999         * tree-inline.c (tree_function_versioning): Remove uses of macros:
3000         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3001         (delete_unreachable_blocks_update_callgraph): Likewise.
3002         (initialize_cfun): Likewise.
3003         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
3004         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
3005         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
3006         * tree-into-ssa.c (update_ssa): Likewise.
3007         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
3008         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
3009         (rewrite_into_ssa): Likewise.
3010         (rewrite_debug_stmt_uses): Likewise.
3011         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
3012         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3013         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
3014         ENTRY_BLOCK_PTR macro.
3015         * tree-scalar-evolution.h (block_before_loop): Likewise.
3016         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3017         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
3018         EXIT_BLOCK_PTR.
3019         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
3020         macro.
3021         (propagate_dereference_distances): Remove uses of macros:
3022         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3023         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
3024         macro.
3025         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
3026         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
3027         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
3028         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
3029         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3030         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
3031         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
3032         (mark_control_dependent_edges_necessary): Remove uses of macros:
3033         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3034         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
3035         ENTRY_BLOCK_PTR macro.
3036         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
3037         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
3038         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3039         (calculate_live_on_exit): Likewise.
3040         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3041         (loe_visit_block): Likewise.
3042         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
3043         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3044         (live_on_entry): Likewise.
3045         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
3046         EXIT_BLOCK_PTR macro.
3047         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
3048         ENTRY_BLOCK_PTR macro.
3049         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
3050         (bound_difference): Likewise.
3051         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
3052         of EXIT_BLOCK_PTR macro.
3053         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
3054         of ENTRY_BLOCK_PTR macro.
3055         * tree-ssa-math-opts.c (register_division_in): Likewise.
3056         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
3057         * tree-ssa-pre.c (compute_avail): Likewise.
3058         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
3059         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
3060         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3061         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
3062         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
3063         EXIT_BLOCK_PTR.
3064         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
3065         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
3066         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3067         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
3068         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3069         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
3070         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3071         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
3072         (find_pdom): Likewise.
3073         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3074         * tree-stdarg.c (reachable_at_most_once): Likewise.
3075         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
3076         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3077         (eliminate_tail_call): Likewise.
3078         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
3079         macro.
3080         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
3081         * var-tracking.c (vt_initialize): Remove uses of macros:
3082         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3083         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
3084         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
3085         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
3086         EXIT_BLOCK_PTR.
3087         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
3088         macro.
3089         * config/bfin/bfin.c (hwloop_optimize): Likewise.
3090         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
3091         of EXIT_BLOCK_PTR macro.
3092         * config/arm/arm.c (require_pic_register): Remove usage of
3093         ENTRY_BLOCK_PTR macro.
3094         (arm_r3_live_at_start_p): Likewise.
3095         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
3096         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3097         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
3098         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
3099         ENTRY_BLOCK_PTR macro.
3100         * config/i386/i386.c (ix86_count_insn): Likewise.
3101         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
3102         (ix86_pad_short_function): Likewise.
3103         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3104         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
3105         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
3106         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
3107         (ix86_expand_epilogue): Likewise.
3108         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
3109         (ia64_expand_prologue): Likewise.
3111 2013-11-19  Catherine Moore  <clm@codesourcery.com>
3113         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
3114         * config/mips/mips.opt (mfix-rm7000): New option.
3115         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
3116         * config/mips/mips.c (mips_reorg_process_insns): Disable
3117         noreorder for TARGET_FIX_RM7000.
3119 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
3121         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
3123 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3125         * config/arm/arm.c (arm_new_rtx_costs):
3126         Handle narrow mode add-shifts properly.
3127         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
3128         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
3129         Declare extern.
3131 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
3133         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
3135 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3137         * config/rs6000/vector.md ("mov<mode>"): Do not call
3138         rs6000_emit_le_vsx_move to move into or out of GPRs.
3139         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
3140         source and destination are not GPR hard regs.
3142 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3144         * basic-block.h (n_edges_for_function): Rename macro to...
3145         (n_edges_for_fn): ...this.
3146         (n_edges): Eliminate macro as work towards making uses of
3147         cfun be explicit.
3149         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
3150         to "n_edges_for_fn".
3152         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
3153         (clear_edges): Likewise.
3154         (free_edge): Likewise.
3155         * cfghooks.c (dump_flow_info): Likewise.
3156         * cprop.c (is_too_expensive): Likewise.
3157         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3158         * gcse.c (is_too_expensive): Likewise.
3159         (prune_insertions_deletions): Likewise.
3160         * mcf.c (create_fixup_graph): Likewise.
3161         * sched-rgn.c (haifa_find_rgns): Likewise.
3162         * tree-cfg.c (gimple_dump_cfg): Likewise.
3163         * var-tracking.c (variable_tracking_main_1): Likewise.
3165 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3167         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
3168         length lines.
3170 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3172         * config/aarch64/aarch64.md
3173         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
3175 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3177         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
3179 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
3181         * varasm.c (align_variable): Give error instead of warning for
3182         unsupported alignment.
3183         (assemble_noswitch_variable): Likewise.
3185 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
3187         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
3188         cb_file_change.
3190 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
3192         * loop-doloop.c (doloop_optimize_loops): Remove unused
3193         loop iterator argument from FOR_EACH_LOOP.
3195 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3197         Convert gimple types from a union to C++ inheritance.
3198         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
3199         * coretypes.h (union gimple_statement_d): Remove declaration.
3200         (gimple): Convert from being a "union gimple_statement_d *"
3201         to a "struct gimple_statement_base *".
3202         (const_gimple): Likewise (with "const").
3203         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
3204         (ggc_alloc_cleared_gimple_statement_stat): ...this.
3205         * gimple-pretty-print.c (debug): Change parameter from a
3206         "gimple_statement_d &" to a "gimple_statement_base &".
3207         (debug): Change parameter from a "gimple_statement_d *" to
3208         a "gimple_statement_base *".
3209         * gimple-pretty-print.h (debug): Update declarations as above.
3210         * gimple.c (gimple_alloc_stat): Update for renaming of
3211         ggc_alloc_cleared_gimple_statement_d_stat to
3212         ggc_alloc_cleared_gimple_statement_stat.
3213         * gimple.h: Include "is-a.h" for use by is_a_helper
3214         specializations in followup autogenerated patch.
3215         (struct gimple statement_base): Make this type usable as a base
3216         class by adding "desc", "tag" and "variable_size" to GTY, thus
3217         using opting-in to gengtype's support for simple inheritance.
3218         (gimple_statement_with_ops_base): Convert to a subclass of
3219         gimple_statement_base, dropping initial "gsbase" field.  Note that
3220         this type is abstract, with no GSS_ value, and thus no GTY tag value.
3221         (gimple_statement_with_ops): Convert to a subclass of
3222         gimple_statement_with_ops_base, dropping initial "opbase" field.
3223         Add tag value to GTY marking.  Update marking of op field to
3224         reflect how num_ops field is accessed via inheritance.
3225         (gimple_statement_with_memory_ops_base): Convert to a subclass of
3226         gimple_statement_with_ops_base, dropping initial "opbase" field.
3227         Add tag value to GTY marking.
3228         (gimple_statement_with_memory_ops): Convert to a subclass of
3229         public gimple_statement_with_memory_ops_base, dropping initial
3230         "membase" field.  Add tag value to GTY marking.  Update marking
3231         of op field to reflect how num_ops field is accessed via inheritance.
3232         (gimple_statement_call): Analogous changes that also update the
3233         marking of the "u" union.
3234         (gimple_statement_omp): Convert to a subclass of
3235         gimple_statement_base, dropping initial "gsbase" field, adding
3236         tag value to GTY marking.
3237         (gimple_statement_bind): Likewise.
3238         (gimple_statement_catch): Likewise.
3239         (gimple_statement_eh_filter): Likewise.
3240         (gimple_statement_eh_else): Likewise.
3241         (gimple_statement_eh_mnt): Likewise.
3242         (gimple_statement_phi): Likewise.
3243         (gimple_statement_eh_ctrl): Likewise.
3244         (gimple_statement_try): Likewise.
3245         (gimple_statement_wce): Likewise.
3246         (gimple_statement_asm): Convert to a subclass of
3247         gimple_statement_with_memory_ops_base, dropping initial
3248         "membase" field, adding tag value to GTY marking, and updating
3249         marking of op field.
3250         (gimple_statement_omp_critical): Convert to a subclass of
3251         gimple_statement_omp, dropping initial "omp" field, adding tag
3252         value to GTY marking.
3253         (gimple_statement_omp_for): Likewise.
3254         (gimple_statement_omp_parallel): Likewise.
3255         (gimple_statement_omp_task): Convert to a subclass of
3256         gimple_statement_omp_parallel, dropping initial "par" field,
3257         adding tag value to GTY marking.
3258         (gimple_statement_omp_sections): Convert to a subclass of
3259         gimple_statement_omp, dropping initial "omp" field, adding
3260         tag value to GTY marking.
3261         (gimple_statement_omp_continue): Convert to a subclass of
3262         gimple_statement_base, dropping initial "gsbase" field, adding
3263         tag value to GTY marking.
3264         (gimple_statement_omp_single): Convert to a subclass of
3265         gimple_statement_omp, dropping initial "omp" field, adding
3266         tag value to GTY marking.
3267         (gimple_statement_omp_atomic_load): Convert to a subclass of
3268         gimple_statement_base, dropping initial "gsbase" field, adding
3269         tag value to GTY marking.
3270         (gimple_statement_omp_atomic_store): Convert to a subclass of
3271         gimple_statement_base, dropping initial "gsbase" field, adding
3272         tag value to GTY marking.
3273         (gimple_statement_transaction): Convert to a subclass of
3274         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3275         field, adding tag value to GTY marking.
3276         (union gimple_statement_d): Remove.
3277         * system.h (CONST_CAST_GIMPLE): Update to use
3278         "struct gimple_statement_base *" rather than
3279         "union gimple_statement_d *".
3280         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3281         gimple_statement_d to gimple_statement_base.
3283         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3284         (gimple_set_use_ops): Port from union to usage of as_a.
3285         (gimple_set_vuse): Likewise.
3286         (gimple_set_vdef): Likewise.
3287         (gimple_call_internal_fn): Port from union to a static_cast,
3288         given that the type has already been asserted.
3289         (gimple_omp_body_ptr): Port from unchecked union usage to
3290         a static_cast.
3291         (gimple_omp_set_body): Likewise.
3293         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3294         gimple types to a true class hierarchy.
3295         (update_call_edge_frequencies): Likewise.
3296         (gsi_insert_seq_nodes_before): Likewise.
3297         (gsi_insert_seq_nodes_after): Likewise.
3298         (gsi_split_seq_after): Likewise.
3299         (gsi_set_stmt): Likewise.
3300         (gsi_split_seq_before): Likewise.
3301         (gsi_remove): Likewise.
3302         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3303         (gsi_next): Likewise.
3304         (gsi_prev): Likewise.
3305         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3306         * gimple-ssa.h (gimple_vuse_op): Likewise.
3307         (gimple_vdef_op): Likewise.
3308         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3309         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3310         * gimple.c (gimple_set_code): Likewise.
3311         (gimple_alloc_stat): Likewise.
3312         (gimple_set_subcode): Likewise.
3313         (gimple_build_call_internal_1): Likewise.
3314         (gimple_check_failed): Likewise.
3315         (gimple_call_flags): Likewise.
3316         (gimple_set_bb): Likewise.
3317         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3318         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3319         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3320         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3321         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3322         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3323         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3324         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3325         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3326         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3327         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3328         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3329         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3330         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3331         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3332         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3333         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3334         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3335         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3336         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3337         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3338         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3339         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3340         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3341         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3342         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3343         Likewise.
3344         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3345         Likewise.
3346         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3347         Likewise.
3348         (is_a_helper <const gimple_statement_omp_atomic_store>
3349         (const_gimple)): Likewise.
3350         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3351         Likewise.
3352         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3353         Likewise.
3354         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3355         Likewise.
3356         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3357         Likewise.
3358         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3359         Likewise.
3360         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3361         Likewise.
3362         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3363         Likewise.
3364         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3365         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3366         Likewise.
3367         (gimple_seq_last): Update for conversion of gimple types to a true
3368         class hierarchy.
3369         (gimple_seq_set_last): Likewise.
3370         (gimple_code): Likewise.
3371         (gimple_bb): Likewise.
3372         (gimple_block): Likewise.
3373         (gimple_set_block): Likewise.
3374         (gimple_location): Likewise.
3375         (gimple_location_ptr): Likewise.
3376         (gimple_set_location): Likewise.
3377         (gimple_no_warning_p): Likewise.
3378         (gimple_set_no_warning): Likewise.
3379         (gimple_set_visited): Likewise.
3380         (gimple_visited_p): Likewise.
3381         (gimple_set_plf): Likewise.
3382         (gimple_plf): Likewise.
3383         (gimple_set_uid): Likewise.
3384         (gimple_uid): Likewise.
3385         (gimple_init_singleton): Likewise.
3386         (gimple_modified_p): Likewise.
3387         (gimple_set_modified): Likewise.
3388         (gimple_expr_code): Likewise.
3389         (gimple_has_volatile_ops): Likewise.
3390         (gimple_set_has_volatile_ops): Likewise.
3391         (gimple_omp_subcode): Likewise.
3392         (gimple_omp_set_subcode): Likewise.
3393         (gimple_omp_return_set_nowait): Likewise.
3394         (gimple_omp_section_set_last): Likewise.
3395         (gimple_omp_parallel_set_combined_p): Likewise.
3396         (gimple_omp_atomic_set_need_value): Likewise.
3397         (gimple_omp_atomic_set_seq_cst): Likewise.
3398         (gimple_num_ops): Likewise.
3399         (gimple_set_num_ops): Likewise.
3400         (gimple_assign_nontemporal_move_p): Likewise.
3401         (gimple_assign_set_nontemporal_move): Likewise.
3402         (gimple_assign_rhs_code): Likewise.
3403         (gimple_assign_set_rhs_code): Likewise.
3404         (gimple_call_internal_p): Likewise.
3405         (gimple_call_with_bounds_p): Likewise.
3406         (gimple_call_set_with_bounds): Likewise.
3407         (gimple_call_set_tail): Likewise.
3408         (gimple_call_tail_p): Likewise.
3409         (gimple_call_set_return_slot_opt): Likewise.
3410         (gimple_call_return_slot_opt_p): Likewise.
3411         (gimple_call_set_from_thunk): Likewise.
3412         (gimple_call_from_thunk_p): Likewise.
3413         (gimple_call_set_va_arg_pack): Likewise.
3414         (gimple_call_va_arg_pack_p): Likewise.
3415         (gimple_call_set_nothrow): Likewise.
3416         (gimple_call_set_alloca_for_var): Likewise.
3417         (gimple_call_alloca_for_var_p): Likewise.
3418         (gimple_call_copy_flags): Likewise.
3419         (gimple_cond_code): Likewise.
3420         (gimple_cond_set_code): Likewise.
3421         (gimple_cond_make_false): Likewise.
3422         (gimple_cond_make_true): Likewise.
3423         (gimple_asm_volatile_p): Likewise.
3424         (gimple_asm_set_volatile): Likewise.
3425         (gimple_asm_set_input): Likewise.
3426         (gimple_asm_input_p): Likewise.
3427         (gimple_try_kind): Likewise.
3428         (gimple_try_set_kind): Likewise.
3429         (gimple_try_catch_is_cleanup): Likewise.
3430         (gimple_try_set_catch_is_cleanup): Likewise.
3431         (gimple_wce_cleanup_eh_only): Likewise.
3432         (gimple_wce_set_cleanup_eh_only): Likewise.
3433         (gimple_debug_bind_p): Likewise.
3434         (gimple_debug_source_bind_p): Likewise.
3435         (gimple_omp_for_set_kind): Likewise.
3436         (gimple_omp_for_set_combined_p): Likewise.
3437         (gimple_omp_for_set_combined_into_p): Likewise.
3438         (gimple_omp_target_set_kind): Likewise.
3439         (gimple_transaction_subcode): Likewise.
3440         (gimple_transaction_set_subcode): Likewise.
3441         (gimple_predict_predictor): Likewise.
3442         (gimple_predict_set_predictor): Likewise.
3443         (gimple_predict_outcome): Likewise.
3444         (gimple_predict_set_outcome): Likewise.
3445         (gimple_transaction_set_label): Likewise.
3446         (gimple_transaction_set_body): Likewise.
3447         (gimple_transaction_label_ptr): Likewise.
3448         (gimple_transaction_label): Likewise.
3449         (gimple_transaction_body_ptr): Likewise.
3450         (gimple_omp_continue_set_control_use): Likewise.
3451         (gimple_omp_continue_control_use_ptr): Likewise.
3452         (gimple_omp_continue_control_use): Likewise.
3453         (gimple_omp_continue_set_control_def): Likewise.
3454         (gimple_omp_continue_control_def_ptr): Likewise.
3455         (gimple_omp_continue_control_def): Likewise.
3456         (gimple_omp_atomic_load_rhs_ptr): Likewise.
3457         (gimple_omp_atomic_load_rhs): Likewise.
3458         (gimple_omp_atomic_load_set_rhs): Likewise.
3459         (gimple_omp_atomic_load_lhs_ptr): Likewise.
3460         (gimple_omp_atomic_load_lhs): Likewise.
3461         (gimple_omp_atomic_load_set_lhs): Likewise.
3462         (gimple_omp_atomic_store_val_ptr): Likewise.
3463         (gimple_omp_atomic_store_val): Likewise.
3464         (gimple_omp_atomic_store_set_val): Likewise.
3465         (gimple_omp_for_cond): Likewise.
3466         (gimple_omp_for_set_cond): Likewise.
3467         (gimple_omp_sections_set_control): Likewise.
3468         (gimple_omp_sections_control_ptr): Likewise.
3469         (gimple_omp_sections_control): Likewise.
3470         (gimple_omp_sections_set_clauses): Likewise.
3471         (gimple_omp_sections_clauses_ptr): Likewise.
3472         (gimple_omp_sections_clauses): Likewise.
3473         (gimple_omp_teams_set_clauses): Likewise.
3474         (gimple_omp_teams_clauses_ptr): Likewise.
3475         (gimple_omp_teams_clauses): Likewise.
3476         (gimple_omp_target_set_data_arg): Likewise.
3477         (gimple_omp_target_data_arg_ptr): Likewise.
3478         (gimple_omp_target_data_arg): Likewise.
3479         (gimple_omp_target_set_child_fn): Likewise.
3480         (gimple_omp_target_child_fn_ptr): Likewise.
3481         (gimple_omp_target_child_fn): Likewise.
3482         (gimple_omp_target_set_clauses): Likewise.
3483         (gimple_omp_target_clauses_ptr): Likewise.
3484         (gimple_omp_target_clauses): Likewise.
3485         (gimple_omp_single_set_clauses): Likewise.
3486         (gimple_omp_single_clauses_ptr): Likewise.
3487         (gimple_omp_single_clauses): Likewise.
3488         (gimple_omp_task_set_arg_align): Likewise.
3489         (gimple_omp_task_arg_align_ptr): Likewise.
3490         (gimple_omp_task_arg_align): Likewise.
3491         (gimple_omp_task_set_arg_size): Likewise.
3492         (gimple_omp_task_arg_size_ptr): Likewise.
3493         (gimple_omp_task_arg_size): Likewise.
3494         (gimple_omp_task_set_copy_fn): Likewise.
3495         (gimple_omp_task_copy_fn_ptr): Likewise.
3496         (gimple_omp_task_copy_fn): Likewise.
3497         (gimple_omp_task_set_data_arg): Likewise.
3498         (gimple_omp_task_data_arg_ptr): Likewise.
3499         (gimple_omp_task_data_arg): Likewise.
3500         (gimple_omp_task_set_child_fn): Likewise.
3501         (gimple_omp_task_child_fn_ptr): Likewise.
3502         (gimple_omp_task_child_fn): Likewise.
3503         (gimple_omp_task_set_clauses): Likewise.
3504         (gimple_omp_task_clauses_ptr): Likewise.
3505         (gimple_omp_task_clauses): Likewise.
3506         (gimple_omp_parallel_set_data_arg): Likewise.
3507         (gimple_omp_parallel_data_arg_ptr): Likewise.
3508         (gimple_omp_parallel_data_arg): Likewise.
3509         (gimple_omp_parallel_set_child_fn): Likewise.
3510         (gimple_omp_parallel_child_fn_ptr): Likewise.
3511         (gimple_omp_parallel_child_fn): Likewise.
3512         (gimple_omp_parallel_set_clauses): Likewise.
3513         (gimple_omp_parallel_clauses_ptr): Likewise.
3514         (gimple_omp_parallel_clauses): Likewise.
3515         (gimple_omp_for_set_pre_body): Likewise.
3516         (gimple_omp_for_pre_body_ptr): Likewise.
3517         (gimple_omp_for_set_incr): Likewise.
3518         (gimple_omp_for_incr_ptr): Likewise.
3519         (gimple_omp_for_incr): Likewise.
3520         (gimple_omp_for_set_final): Likewise.
3521         (gimple_omp_for_final_ptr): Likewise.
3522         (gimple_omp_for_final): Likewise.
3523         (gimple_omp_for_set_initial): Likewise.
3524         (gimple_omp_for_initial_ptr): Likewise.
3525         (gimple_omp_for_initial): Likewise.
3526         (gimple_omp_for_set_index): Likewise.
3527         (gimple_omp_for_index_ptr): Likewise.
3528         (gimple_omp_for_index): Likewise.
3529         (gimple_omp_for_collapse): Likewise.
3530         (gimple_omp_for_set_clauses): Likewise.
3531         (gimple_omp_for_clauses_ptr): Likewise.
3532         (gimple_omp_for_clauses): Likewise.
3533         (gimple_omp_critical_set_name): Likewise.
3534         (gimple_omp_critical_name_ptr): Likewise.
3535         (gimple_omp_critical_name): Likewise.
3536         (gimple_eh_dispatch_set_region): Likewise.
3537         (gimple_eh_dispatch_region): Likewise.
3538         (gimple_resx_set_region): Likewise.
3539         (gimple_resx_region): Likewise.
3540         (gimple_phi_set_arg): Likewise.
3541         (gimple_phi_arg): Likewise.
3542         (gimple_phi_set_result): Likewise.
3543         (gimple_phi_result_ptr): Likewise.
3544         (gimple_phi_result): Likewise.
3545         (gimple_phi_num_args): Likewise.
3546         (gimple_phi_capacity): Likewise.
3547         (gimple_wce_set_cleanup): Likewise.
3548         (gimple_wce_cleanup_ptr): Likewise.
3549         (gimple_try_set_cleanup): Likewise.
3550         (gimple_try_set_eval): Likewise.
3551         (gimple_try_cleanup_ptr): Likewise.
3552         (gimple_try_eval_ptr): Likewise.
3553         (gimple_eh_else_set_e_body): Likewise.
3554         (gimple_eh_else_set_n_body): Likewise.
3555         (gimple_eh_else_e_body_ptr): Likewise.
3556         (gimple_eh_else_n_body_ptr): Likewise.
3557         (gimple_eh_must_not_throw_set_fndecl): Likewise.
3558         (gimple_eh_must_not_throw_fndecl): Likewise.
3559         (gimple_eh_filter_set_failure): Likewise.
3560         (gimple_eh_filter_set_types): Likewise.
3561         (gimple_eh_filter_failure_ptr): Likewise.
3562         (gimple_eh_filter_types_ptr): Likewise.
3563         (gimple_eh_filter_types): Likewise.
3564         (gimple_catch_set_handler): Likewise.
3565         (gimple_catch_set_types): Likewise.
3566         (gimple_catch_handler_ptr): Likewise.
3567         (gimple_catch_types_ptr): Likewise.
3568         (gimple_catch_types): Likewise.
3569         (gimple_asm_string): Likewise.
3570         (gimple_asm_set_label_op): Likewise.
3571         (gimple_asm_label_op): Likewise.
3572         (gimple_asm_set_clobber_op): Likewise.
3573         (gimple_asm_clobber_op): Likewise.
3574         (gimple_asm_set_output_op): Likewise.
3575         (gimple_asm_output_op_ptr): Likewise.
3576         (gimple_asm_output_op): Likewise.
3577         (gimple_asm_set_input_op): Likewise.
3578         (gimple_asm_input_op_ptr): Likewise.
3579         (gimple_asm_input_op): Likewise.
3580         (gimple_asm_nlabels): Likewise.
3581         (gimple_asm_nclobbers): Likewise.
3582         (gimple_asm_noutputs): Likewise.
3583         (gimple_asm_ninputs): Likewise.
3584         (gimple_bind_set_block): Likewise.
3585         (gimple_bind_block): Likewise.
3586         (gimple_bind_add_seq): Likewise.
3587         (gimple_bind_add_stmt): Likewise.
3588         (gimple_bind_set_body): Likewise.
3589         (gimple_bind_body_ptr): Likewise.
3590         (gimple_bind_append_vars): Likewise.
3591         (gimple_bind_set_vars): Likewise.
3592         (gimple_bind_vars): Likewise.
3593         (gimple_call_clobber_set): Likewise.
3594         (gimple_call_use_set): Likewise.
3595         (gimple_call_set_internal_fn): Likewise.
3596         (gimple_call_set_fntype): Likewise.
3597         (gimple_call_fntype): Likewise.
3598         (gimple_omp_return_lhs_ptr): Likewise.
3599         (gimple_omp_return_lhs): Likewise.
3600         (gimple_omp_return_set_lhs): Likewise.
3601         (gimple_omp_taskreg_set_data_arg): Likewise.
3602         (gimple_omp_taskreg_data_arg_ptr): Likewise.
3603         (gimple_omp_taskreg_data_arg): Likewise.
3604         (gimple_omp_taskreg_set_child_fn): Likewise.
3605         (gimple_omp_taskreg_child_fn_ptr): Likewise.
3606         (gimple_omp_taskreg_child_fn): Likewise.
3607         (gimple_omp_taskreg_set_clauses): Likewise.
3608         (gimple_omp_taskreg_clauses_ptr): Likewise.
3609         (gimple_omp_taskreg_clauses): Likewise.
3610         (gimple_vuse): Likewise.
3611         (gimple_vdef): Likewise.
3612         (gimple_vuse_ptr): Likewise.
3613         (gimple_vdef_ptr): Likewise.
3614         * tree-inline.c (copy_debug_stmt): Likewise.
3615         * tree-phinodes.c (make_phi_node): Likewise.
3617         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3618         (is_a_helper <gimple_statement_with_ops>::test): New.
3619         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3620         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3622         * gimple-streamer-in.c (input_gimple_stmt): Port from union
3623         access to use of as_a.
3624         * gimple.c (gimple_build_asm_1): Likewise.
3625         (gimple_build_try): Likewise.  Also, return a specific subclass
3626         rather than just gimple.
3627         (gimple_build_resx): Port from union access to use of as_a.
3628         (gimple_build_eh_dispatch): Likewise.
3629         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
3630         now that gengtype no longer provides a typed allocator function.
3631         (gimple_copy): Likewise.
3632         * gimple.h (gimple_build_try): Return a specific subclass rather
3633         than just gimple.
3634         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3635         with subclass access by making use of new return type of
3636         gimple_build_try.
3637         * tree-phinodes.c: (allocate_phi_node): Return a
3638         "gimple_statement_phi *" rather than just a gimple.
3639         (resize_phi_node): Likewise.
3640         (make_phi_node): Replace union access with subclass access by
3641         making use of new return type of allocate_phi_node.
3642         (reserve_phi_args_for_new_edge): Replace union access with as_a.
3643         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3644         than just a gimple.
3645         (remove_phi_args): Update for change to remove_phi_arg_num.
3647         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3648         code field to reflect inheritance, rather than embedding of
3649         the base gimple type.
3651 2013-11-19  Richard Biener  <rguenther@suse.de>
3653         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3654         and destructor and make fel_next a member function.
3655         (fel_next): Transform into ...
3656         (loop_iterator::next): ... this.
3657         (fel_init): Transform into ...
3658         (loop_iterator::loop_iterator): ... this.
3659         (loop_iterator::~loop_iterator): New.
3660         (FOR_EACH_LOOP): Remove loop-iterator argument.
3661         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3662         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3663         graphite-clast-to-gimple.c, graphite-scop-detection.c,
3664         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3665         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3666         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3667         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3668         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3669         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3670         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3671         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3672         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3673         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
3674         FOR_EACH_LOOP_BREAK with break.
3676 2013-11-19  Richard Biener  <rguenther@suse.de>
3678         PR tree-optimization/59164
3679         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3680         Uncomment assert.
3681         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3682         whether we can create an epilogue loop to reflect thecases where
3683         we create one.
3685 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
3687         * graphite-sese-to-poly.c: Include expr.h.
3689 2013-11-19  Richard Biener  <rguenther@suse.de>
3691         PR middle-end/58956
3692         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3693         loads into stmts that may clobber it.
3695 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
3697         * cgraphunit.c (symtab_terminator): New variable.
3698         (queued_nodes): Renamed from first.  Use symtab_terminator as
3699         initializer.
3700         (analyze_functions): Adjust accordingly.
3701         (cgraph_process_new_functions): Return void.
3702         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3704 2013-11-19  Marek Polacek  <polacek@redhat.com>
3706         * opts.c (common_handle_option): Add -fsanitize=null option.
3707         Turn off -fdelete-null-pointer-checks option when doing the
3708         NULL pointer checking.
3709         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3710         * tree-pass.h (make_pass_ubsan): Declare.
3711         (make_pass_sanopt): Declare.
3712         * timevar.def (TV_TREE_UBSAN): New timevar.
3713         * passes.def: Add pass_sanopt and pass_ubsan.
3714         * ubsan.h (ubsan_null_ckind): New enum.
3715         (ubsan_mismatch_data): New struct.
3716         (ubsan_expand_null_ifn): Declare.
3717         (ubsan_create_data): Adjust declaration.
3718         (ubsan_type_descriptor): Likewise.
3719         * asan.c: Include "ubsan.h".
3720         (pass_data_sanopt): New pass.
3721         (execute_sanopt): New function.
3722         (gate_sanopt): Likewise.
3723         (make_pass_sanopt): Likewise.
3724         (class pass_sanopt): New class.
3725         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3726         gimple-iterator.h and cfgloop.h.
3727         (PROB_VERY_UNLIKELY): Define.
3728         (tree_type_map_hash): New function.
3729         (ubsan_type_descriptor): Add new parameter.
3730         Improve type name generation.
3731         (ubsan_create_data): Add new parameter.  Add pointer data into
3732         ubsan structure.
3733         (ubsan_expand_null_ifn): New function.
3734         (instrument_member_call): Likewise.
3735         (instrument_mem_ref): Likewise.
3736         (instrument_null): Likewise.
3737         (ubsan_pass): Likewise.
3738         (gate_ubsan): Likewise.
3739         (make_pass_ubsan): Likewise.
3740         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3741         (class pass_ubsan): New class.
3742         (pass_data_ubsan): New pass.
3743         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3744         * internal-fn.c (expand_UBSAN_NULL): New function.
3745         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3746         even when !flag_toplevel_reorder.
3747         * internal-fn.def (UBSAN_NULL): New.
3749 2013-11-19  Jan Hubicka  <jh@suse.cz>
3751         * cgraph.c (cgraph_create_indirect_edge): Use
3752         get_polymorphic_call_info.
3753         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3754         maybe_in_construction and maybe_derived_type.
3755         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3756         (ipa_dummy_polymorphic_call_context): New global var.
3757         (possible_polymorphic_call_targets): Add context paramter.
3758         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3759         (possible_polymorphic_call_target_p): Likewise.
3760         (get_polymorphic_call_info): New function.
3761         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3762         (add_type_duplicate): Remove forgotten debug output.
3763         (method_class_type): Add sanity check.
3764         (maybe_record_node): Add FINALP parameter.
3765         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3766         by info by get_binfo_at_offset.
3767         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3768         parameters; pass them to record-binfo.
3769         (polymorphic_call_target_d): Add context and FINAL.
3770         (polymorphic_call_target_hasher::hash): Hash context.
3771         (polymorphic_call_target_hasher::equal): Compare context.
3772         (free_polymorphic_call_targets_hash):
3773         (get_class_context): New function.
3774         (contains_type_p): New function.
3775         (get_polymorphic_call_info): New function.
3776         (walk_bases): New function.
3777         (possible_polymorphic_call_targets): Add context parameter; honnor it.
3778         (dump_possible_polymorphic_call_targets): Dump context.
3779         (possible_polymorphic_call_target_p): Add context.
3780         (update_type_inheritance_graph): Update comment.s
3781         (ipa_set_jf_known_type): Assert that compoentn type is known.
3782         (ipa_note_param_call): Do not tamper with offsets.
3783         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3784         outer type.
3785         (update_indirect_edges_after_inlining): Likewise.
3786         (ipa_write_indirect_edge_info): Stream new fields.
3787         (ipa_read_indirect_edge_info): Stream in new fields.
3789 2013-11-19  Jan Hubicka  <jh@suse.cz>
3791         * tree-pretty-print.c (dump_generic_node): Print class type of
3792         OBJ_TYPE_REF.
3794 2013-11-19  Joey Ye  <joey.ye@arm.com>
3796         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3797         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3798         for new option.
3799         * config/arm/arm.c (arm_option_override): By default disable
3800         -marm-pic-data-is-text-relative.
3801         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3802         (arm_assemble_integer): Likewise.
3803         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3804         New macro to initialize -marm-pic-data-is-text-relative.
3806 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
3808         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3809         (address_cost_data): New field.
3810         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3811         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
3813 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
3815         * config/aarch64/aarch64.md: Remove v8type from all insns.
3817 2013-11-19  Richard Biener  <rguenther@suse.de>
3819         PR tree-optimization/57517
3820         * tree-predcom.c (combinable_refs_p): Verify the combination
3821         is always executed when the refs are.
3823 2013-11-19  Jeff Law  <law@redhat.com>
3825         * tree-ssa-threadupdate.c: Include ssa-iterators.h
3826         (copy_phi_arg_into_existing_phi): New function.
3827         (any_remaining_duplicated_blocks): Likewise.
3828         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3829         blocks on a jump threading path.
3831         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
3832         thread through a joiner which has the latch edge.
3834 2013-11-19  Jan Hubicka  <jh@suse.cz>
3836         * md.texi (setmem): Document new parameter.
3837         * optabs.c (maybe_gen_insn): Support 9 operands.
3838         * builtins.c (determine_block_size): Add probable_max_size;
3839         support anti-ranges.
3840         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3841         probable_max_size.
3842         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3843         emit_block_move, clear_storage_hints, set_storage_via_setmem):
3844         Likewise.
3845         * expr.h (emit_block_move_hints, clear_storage_hints,
3846         set_storage_via_setmem): Update prototype.
3847         * i386.md (setmem, movmem patterns): Add 9th operand.
3848         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3849         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3850         argument; pass it to decide_alg.
3852 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3854         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3855         (n_basic_blocks_for_fn): ...this.
3857         (n_basic_blocks): Eliminate macro as work towards making uses of
3858         cfun be explicit.
3860         * cfgloop.c (init_loops_structure): Update for renaming of
3861         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3862         * graph.c (draw_cfg_nodes_no_loops): Likewise.
3863         * ipa-utils.c (ipa_merge_profiles): Likewise.
3864         * lto-streamer-in.c (make_new_block): Likewise.
3865         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3866         (dump_function_to_file): Likewise.
3868         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3869         macro with "n_basic_blocks_for_fn (cfun)".
3870         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3871         (duplicate_computed_gotos): Likewise.
3872         (reorder_basic_blocks): Likewise.
3873         * bt-load.c (augment_live_range): Likewise.
3874         * cfg.c (expunge_block): Likewise.
3875         (compact_blocks): Likewise.
3876         * cfganal.c (single_pred_before_succ_order): Likewise.
3877         (compute_idf): Likewise.
3878         (flow_dfs_compute_reverse_init): Likewise.
3879         (pre_and_rev_post_order_compute): Likewise.
3880         (pre_and_rev_post_order_compute_fn): Likewise.
3881         (inverted_post_order_compute): Likewise.
3882         (post_order_compute): Likewise.
3883         (print_edge_list): Likewise.
3884         (find_unreachable_blocks): Likewise.
3885         (mark_dfs_back_edges): Likewise.
3886         * cfgcleanup.c (try_optimize_cfg): Likewise.
3887         (try_forward_edges): Likewise.
3888         * cfghooks.c (dump_flow_info): Likewise.
3889         * cfgloop.c (verify_loop_structure): Likewise.
3890         (get_loop_body): Likewise.
3891         (flow_loops_find): Likewise.
3892         * cfgloopmanip.c (add_loop): Likewise.
3893         (remove_path): Likewise.
3894         (find_path): Likewise.
3895         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3896         (rtl_verify_bb_layout): Likewise.
3897         (entry_of_function): Likewise.
3898         (rtl_create_basic_block): Likewise.
3899         * coverage.c (coverage_compute_cfg_checksum): Likewise.
3900         * cprop.c (one_cprop_pass): Likewise.
3901         (is_too_expensive): Likewise.
3902         * df-core.c (df_compute_cfg_image): Likewise.
3903         (df_compact_blocks): Likewise.
3904         (df_worklist_dataflow_doublequeue): Likewise.
3905         * dominance.c (calculate_dominance_info): Likewise.
3906         (calc_dfs_tree): Likewise.
3907         (calc_dfs_tree_nonrec): Likewise.
3908         (init_dom_info): Likewise.
3909         * domwalk.c (cmp_bb_postorder): Likewise.
3910         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3911         (generate_setjmp_warnings): Likewise.
3912         * fwprop.c (build_single_def_use_links): Likewise.
3913         * gcse.c (is_too_expensive): Likewise.
3914         (one_code_hoisting_pass): Likewise.
3915         (one_pre_gcse_pass): Likewise.
3916         * graphite.c (graphite_initialize): Likewise.
3917         * haifa-sched.c (haifa_sched_init): Likewise.
3918         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3919         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3920         * ira-build.c (ira_build): Likewise.
3921         * lcm.c (compute_nearerout): Likewise.
3922         (compute_available): Likewise.
3923         (compute_laterin): Likewise.
3924         (compute_antinout_edge): Likewise.
3925         * lra-lives.c (lra_create_live_ranges): Likewise.
3926         * lra.c (has_nonexceptional_receiver): Likewise.
3927         * mcf.c (create_fixup_graph): Likewise.
3928         * profile.c (branch_prob): Likewise.
3929         * reg-stack.c (convert_regs_2): Likewise.
3930         * regrename.c (regrename_analyze): Likewise.
3931         * reload1.c (has_nonexceptional_receiver): Likewise.
3932         * reorg.c (dbr_schedule): Likewise.
3933         * sched-deps.c (sched_deps_init): Likewise.
3934         * sched-ebb.c (schedule_ebbs): Likewise.
3935         * sched-rgn.c (extend_regions): Likewise.
3936         (schedule_insns): Likewise.
3937         (sched_rgn_init): Likewise.
3938         (extend_rgns): Likewise.
3939         (haifa_find_rgns): Likewise.
3940         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3941         (sel_recompute_toporder): Likewise.
3942         * sel-sched.c (run_selective_scheduling): Likewise.
3943         * store-motion.c (one_store_motion_pass): Likewise.
3944         (remove_reachable_equiv_notes): Likewise.
3945         * tracer.c (tracer): Likewise.
3946         (tail_duplicate): Likewise.
3947         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3948         (dump_cfg_stats): Likewise.
3949         (gimple_dump_cfg): Likewise.
3950         (create_bb): Likewise.
3951         (build_gimple_cfg): Likewise.
3952         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3953         * tree-inline.c (optimize_inline_calls): Likewise.
3954         (fold_marked_statements): Likewise.
3955         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3956         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3957         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3958         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3959         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3960         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3961         * tree-ssa-pre.c (do_pre): Likewise.
3962         (init_pre): Likewise.
3963         (compute_avail): Likewise.
3964         * tree-ssa-reassoc.c (init_reassoc): Likewise.
3965         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3966         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3967         (init_worklist): Likewise.
3968         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3969         * var-tracking.c (variable_tracking_main_1): Likewise.
3970         (vt_find_locations): Likewise.
3971         (vt_stack_adjustments): Likewise.
3972         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3973         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3975 2013-11-18  Jan Hubicka  <jh@suse.cz>
3977         * profile.c (compute_branch_probabilities): Do not sanity check
3978         run_max.
3980 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3982         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3983         GET_MODE_PRECISION.
3984         * fold-const.c (fold_single_bit_test_into_sign_test)
3985         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3987 2013-11-18  Teresa Johnson  <tejohnson@google.com>
3989         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3990         cfglayout after bb reordering.
3991         * passes.def: Move compgotos before bb reordering since it goes into
3992         cfglayout.
3994 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
3996         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3997         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3998         static.
3999         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
4000         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
4001         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
4002         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
4003         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
4004         Remove all_lto_gen_passes.
4005         * passes.c (pass_manager::dump_passes): Remove its use.
4006         (pass_manager::register_pass): Likewise.
4007         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
4008         (pass_manager::pass_manager): Don't initialize or use it.
4009         (write_lto): New static function.
4010         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
4011         instead of using all_lto_gen_passes.
4012         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
4013         pass_ipa_lto_finish_out): Delete.
4014         * tree-pass.h (make_pass_ipa_lto_gimple_out,
4015         make_pass_ipa_lto_finish_out): Don't declare.
4017 2013-11-18  Jeff Law  <law@redhat.com>
4019         * tree-ssa-threadupdate.c (redirection_data): Record two
4020         duplicated blocks instead of just one.
4021         (local_info): Explain why we don't create a template for the
4022         second duplicated block in a thread path.
4023         (create_block_for_threading): Accept argument indicating array
4024         index into redirection_data to store its result.
4025         (lookup_redirection_data): Initialize both duplicate blocks.
4026         (ssa_create_duplicates): If a jump threading path needs multiple
4027         blocks duplicated, then duplicate them.
4028         (ssa_fix_duplicate_block_edges): Corresponding changes.
4029         (ssa_fixup_template_block, thread_single_edge):  Likewise.
4031 2013-11-18  Marek Polacek  <polacek@redhat.com>
4033         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
4035 2013-11-18  Andrew Pinski <apinski@cavium.com>
4036             Steve Ellcey  <sellcey@mips.com>
4038         PR target/56552
4039         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
4040         type restriction from equality_operator on conditonal move.
4041         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
4042         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
4044 2013-11-18  Jeff Law  <law@redhat.com>
4046         * tree-ssa-threadupdate.c: Fix file block comment.
4047         Fix minor indention issue.
4049 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
4051         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
4052         ix86_address_subreg_operand.  Move subreg checks to
4053         ix86_validate_address_register.  Move address override check to
4054         ix86_legitimate_address_p.
4055         (ix86_validate_address_register): New function.
4056         (ix86_legitimate_address_p): Call ix86_validate_address_register
4057         to validate base and index registers.  Add address override check
4058         from ix86_decompose_address.
4059         (ix86_decompose_address): Remove.
4061 2013-11-18  Richard Biener  <rguenther@suse.de>
4063         PR tree-optimization/59125
4064         PR tree-optimization/54570
4065         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
4066         is not complete do not treat component-references with offset zero
4067         but different fields as equal.
4068         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
4069         (compute_object_sizes): Apply TLC.  Propagate the constant
4070         results into all uses and fold their stmts.
4071         * passes.def (pass_all_optimizations): Move pass_object_sizes
4072         after the first pass_forwprop and before pass_fre.
4074 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4076         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4077         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4078         (tree_ctz): Remove cast to unsigned type.
4079         * builtins.c (fold_builtin_memory_op): Likewise.
4080         * dwarf2out.c (descr_info_loc): Likewise.
4081         * godump.c (go_output_typedef): Likewise.
4082         * omp-low.c (expand_omp_simd): Likewise.
4083         * stor-layout.c (excess_unit_span): Likewise.
4084         * tree-object-size.c (addr_object_size): Likewise.
4085         * tree-sra.c (analyze_all_variable_accesses): Likewise.
4086         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4087         (simplify_rotate): Likewise.
4088         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
4089         (handle_pointer_plus): Likewise.
4090         * tree-switch-conversion.c (check_range): Likewise.
4091         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
4092         * tsan.c (instrument_builtin_call): Likewise.
4093         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
4094         * trans-mem.c (tm_log_add): Likewise.
4095         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
4096         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
4097         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
4098         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
4100 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4102         * tree.h (host_integerp, tree_low_cst): Delete.
4103         * tree.c (host_integerp, tree_low_cst): Delete.
4105 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4107         * expr.h: Update comments to refer to tree_to_[su]hwi rather
4108         than tree_low_cst.
4109         * fold-const.c (fold_binary_loc): Likewise.
4110         * expr.c (store_constructor): Use tree_to_uhwi rather than
4111         tree_low_cst.
4112         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
4113         * stmt.c (emit_case_dispatch_table): Likewise.
4114         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4116 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4118         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
4119         config/aarch64/aarch64.c, config/alpha/predicates.md,
4120         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
4121         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
4122         config/mep/mep-pragma.c, config/mips/mips.c,
4123         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
4124         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
4125         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
4126         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
4127         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
4128         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
4129         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
4130         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
4131         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
4132         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
4134 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4136         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
4137         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
4138         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
4139         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
4140         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
4141         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
4142         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
4143         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
4144         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
4145         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
4146         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
4148 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4150         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
4151         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
4153 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4155         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
4156         than host_integerp.
4158 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4160         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
4161         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
4162         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
4163         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
4164         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4165         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
4166         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
4167         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
4168         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
4169         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
4170         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
4171         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
4172         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
4173         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
4174         tree_fits_uhwi_p throughout.
4176 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4178         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
4179         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
4180         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
4181         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
4182         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
4183         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
4184         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
4185         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
4186         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
4187         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4188         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
4189         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
4190         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4191         throughout.
4193 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4195         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
4196         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
4198 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4200         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
4201         flag if it kills its address, not its post-increment.
4203 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
4205         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4206         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4207         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4208         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4209         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4210         (gimple_call_with_bounds_p): New.
4211         (gimple_call_set_with_bounds): New.
4212         (gimple_call_num_nobnd_args): Remove.
4213         (gimple_call_nobnd_arg): Remove.
4214         * tree.h (CALL_WITH_BOUNDS_P): New.
4215         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4217 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
4219         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
4220         (symtab_node_name): Rename to symtab_node::name.
4221         (cgraph_node_asm_name): Remove.
4222         (varpool_node_asm_name): Remove.
4223         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
4224         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
4225         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
4226         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
4227         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
4229 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4231         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
4232         * config/arm/arm.c (arm_cortex_a53_tune): New.
4233         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
4235 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4237         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
4238         (case ${target}): Add bdver4.
4239         * config/i386/bdver3.md: Add bdver4.
4240         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4241         -march=native recognize bdver4 processors.
4242         * config/i386/i386-c.c (ix86_target_macros_internal): Add
4243         bdver4 def_and_undef
4244         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
4245         (m_BDVER4): New definition.
4246         (m_AMD_MULTIPLE): Includes m_BDVER4.
4247         (processor_target_table): Add bdver4 entry.
4248         (static const char *const cpu_names): Add bdver4 entry.
4249         (software_prefetching_beneficial_p): Add bdver3.
4250         (ix86_option_override_internal): Add bdver4 instruction sets.
4251         (ix86_issue_rate): Add bdver4.
4252         (ix86_adjust_cost): Add bdver4.
4253         (ia32_multipass_dfa_lookahead): Add bdver4.
4254         (enum processor_model): Add M_AMDFAM15H_BDVER4.
4255         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
4256         (has_dispatch): Add bdver4.
4257         * config/i386/i386.h (TARGET_BDVER4): New definition.
4258         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
4259         (enum processor_type): Add PROCESSOR_BDVER4.
4260         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
4261         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
4262         * doc/extend.texi: Add details about bdver4.
4263         * doc/invoke.texi: Add details about bdver4. Add
4264         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
4266 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4268         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4269         sdmode_stack_slot also in little-endian mode.
4271 2013-11-17  Jan Hubicka  <jh@suse.cz>
4273         * doc/md.texi (setmem, movstr): Update documentation.
4274         * builtins.c (determine_block_size): New function.
4275         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4276         (expand_builtin_memset_args): Use it and pass it to
4277         set_storage_via_setmem.
4278         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4279         parameters; update call to expander.
4280         (emit_block_move_hints): Add min_size/max_size parameters.
4281         (clear_storage_hints): Likewise.
4282         (set_storage_via_setmem): Likewise.
4283         (clear_storage): Update.
4284         * expr.h (emit_block_move_hints, clear_storage_hints,
4285         set_storage_via_setmem): Update prototypes.
4286         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4287         (ix86_expand_movmem, ix86_expand_setmem): Remove.
4288         (ix86_expand_movmem, ix86_expand_setmem): Remove.
4289         * i386.md (movmem, setmem): Pass parameters.
4291 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
4293         PR target/59153
4294         * config/i386/i386.c (ix86_address_subreg_operand): Do not
4295         reject non-integer subregs.
4296         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4297         Move check for invalid x32 constant addresses ...
4298         (ix86_legitimate_address_p): ... here.
4300 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4302         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4303         parameter and use it in REG_FRAME_RELATED_EXPR note.
4304         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4305         parameter.
4306         (rs6000_emit_prologue): Likewise, but for little endian VSX
4307         stores, pass the source register of the store instead.
4309 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
4311         * gimple.h: Reorder prototypes to match .c declaration order, and
4312         remove protyotypes for functions not in gimple.c.
4313         (LABEL): Move to tree-into-ssa.c.
4314         * gimple.c: Remove unused prototypes.
4315         (get_base_address): Move to tree.c.
4316         * tree.c (get_base_address): Relocate from gimple.c.
4317         * builtins.h (validate_gimple_arglist): Add prototype.
4318         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4319         * cfgexpand.h: New File.
4320         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4321         * tree.h (build_addr): Move to tree-nested.h.
4322         * tree-nested.h: New File.
4323         (build_addr, lower_nested_functions, insert_field_into_struct): Add
4324         prototypes.
4325         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4326         * ipa-inline-analysis.c: Include cfgexpand.h.
4327         * cgraphunit.c: Include tree-nested.h.
4328         * omp-low.c: Likewise.
4329         * tree-parloops.c: Likewise.
4330         * gimple-low.h: Likewise.
4331         * tree-profile.h: Likewise.
4332         * expr.c: Include cfgexpand.h.
4333         * tree-affine.c: Likewise.
4334         * tree-ssa.c: Likewise.
4335         * tree-ssa-loop-im.c: Include trans-mem.h.
4336         * tree-ssa-tail-merge.c: Likewise.
4337         * value-prof.c: Include builtins.h and tree-nested.h.
4338         * tree-into-ssa.c (LABEL): Define here.
4340 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
4342         * config/arc/arc.c (arc_predicate_delay_insns): New function.
4343         (pass_data_arc_predicate_delay_insns): New pass_data instance.
4344         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4345         (make_pass_arc_predicate_delay_insns): New function.
4346         (arc_init): Register pass_arc_predicate_delay_insns if
4347         flag_delayed_branch is active.
4349 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
4351         * config/arc/constraints.md (Rcq): Simplify register number test.
4353 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4355         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4357 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
4359         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4360         is null.
4362 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4364         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4365         * gimple-pretty-print.c (dump_omp_for): Add case for
4366         GF_OMP_FOR_KIND_CILKSIMD.
4367         * gimple.h (enum gf_mask): Restructure entries to add
4368         GF_OMP_FOR_KIND_CILKSIMD.
4369         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4370         (gimplify_omp_for): Handle CILK_SIMD.
4371         (gimplify_expr): Add ccase for CILK_SIMD.
4372         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4373         (build_outer_var_ref): Same.
4374         (check_omp_nesting_restrictions): Same.
4375         (lower_rec_input_clauses): Same.
4376         (lower_lastprivate_clauses): Same.
4377         (expand_omp_for): Same.
4378         (execute_expand_omp): Check flag_enable_cilkplus.
4379         (execute_lower_omp): Same.
4380         (diagnose_sb_0): Handle CILK_SIMD.
4381         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4382         (setjmp_or_longjmp_p): New.
4383         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4384         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4385         * tree.def: Add tree code for CILK_SIMD.
4387 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4389         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4390         Remove.
4391         (altivec_vperm_<mode>): Revert earlier little endian change.
4392         (*altivec_vperm_<mode>_internal): Remove.
4393         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4394         (*altivec_vperm_<mode>_uns_internal): Remove.
4395         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4397 2013-11-15  Jeff Law  <law@redhat.com>
4399         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4400         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
4401         * gimple-ssa-isolate-paths.c
4402         (find_implicit_erroneous_behaviour): Corresponding changes.
4403         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4404         (find_explicit_erroneous_behaviour): Likewise.
4406 2013-11-15  Jeff Law  <law@redhat.com>
4408         * ifcvt.c (find_cond_trap): Properly handle case where
4409         trap_bb == else_bb.
4411 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
4413         * configure: Regenerate.
4415 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
4417         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4418         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4419         where it is incorrect or missing.
4421 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
4423         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4424         host_integerp test.
4425         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4426         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4427         constant.
4428         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4429         pair with a TREE_CODE test and TREE_INT_CST_LOW.
4430         * tree-vect-generic.c (expand_vector_divmod): Likewise.
4432 2013-11-15  Richard Biener  <rguenther@suse.de>
4434         PR tree-optimization/50262
4435         * tree-ssa-alias.h (struct pt_solution): Split
4436         vars_contains_global into vars_contains_nonlocal,
4437         vars_contains_escaped and vars_contains_escaped_heap.
4438         * tree-ssa-structalias.c (label_visit): Expand comment.
4439         (handle_lhs_call): Adjust comment.
4440         (set_uids_in_ptset): Set the new flags appropriately.
4441         (pt_solution_set): Adjust.
4442         (pt_solution_set_var): Likewise.
4443         (pt_solution_ior_into): Likewise.
4444         (pt_solution_includes_global): Likewise.
4445         (pt_solutions_intersect_1): Optimize escaped handling.
4446         (compute_points_to_sets): Remove heap variable globalization.
4447         (ipa_escaped_pt): Adjust initializer.
4448         (pass_data_ipa_pta): Do not run TODO_update_ssa.
4449         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4450         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4452 2013-11-15  Richard Biener  <rguenther@suse.de>
4454         * tree-loop-distribution.c (tree_loop_distribution): Make sure
4455         to distribute all stores.
4457 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4459         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4461 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
4463         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4464         * configure.ac: Determine target_header_dir earlier.
4465         (--with-glibc-version): New configure option.
4466         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4467         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4468         * configure: Regenerate.
4469         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4470         native toolchains for default.
4471         (--with-glibc-version): Document.
4473 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
4475         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4477 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
4479         * lto-streamer-in.c (input function): Call cgraph_create_node if
4480         cgraph_get_node failed.
4482 2013-11-14   Olivier Hainque  <hainque@adacore.com>
4484         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4485         defer allocation of DECL_IGNORED_P variables at toplevel unless really
4486         small.  Factorize size threshold computation from the existing one.
4487         (expand_used_vars): Refine comment.
4489 2013-11-14  Cong Hou  <congh@google.com>
4491         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4492         address field as it can be obtained from dr.  Rename the struct.
4493         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4494         steps of data references during sort.
4495         (vect_prune_runtime_alias_test_list): Adjust with the change to
4496         struct dr_with_seg_len.
4497         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4498         Adjust with the change to struct dr_with_seg_len.
4500 2013-11-14  Jeff Law  <law@redhat.com>
4502         PR middle-end/59127
4503         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4504         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4505         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4506         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4507         edges, then ignore it.  If the statement exhibiting erroneous
4508         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4509         then we can not optimize.
4510         (find_explicit_erroneous_behaviour): Likewise.
4512 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
4514         * gimplify-me.h:  New file.  Add prototypes.
4515         * gimplify.h: Don't include gimple.h.
4516         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4517         Relocate from gimple.h.
4518         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4519         is_gimple_sizepos): Move to gimplify.h.
4520         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4521         (enum gsi_iterator_update): Move to gimple-iterator.h.
4522         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4523         * gimplify-me.c: New File.
4524         (force_gimple_operand_1, force_gimple_operand,
4525         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4526         gimple_regimplify_operands): Relocate from gimplify.c.
4527         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4528         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4529         gimple_regimplify_operands): Move to gimplify-me.c.
4530         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4531         from gimple.h.
4532         * Makefile.in (OBJS): Add gimplify-me.o
4533         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4534         required.
4535         * cfgloopmanip.c: Likewise.
4536         * cgraphunit.c: Likewise.
4537         * cilk-common.c: Likewise.
4538         * fold-const.c: Likewise.
4539         * function.c: Likewise.
4540         * gimple-expr.c: Likewise.
4541         * gimple-fold.c: Likewise.
4542         * gimple-ssa-strength-reduction.c: Likewise.
4543         * gimple.c: Likewise.
4544         * graphite-clast-to-gimple.c: Likewise.
4545         * graphite-sese-to-poly.c: Likewise.
4546         * ipa-prop.c: Likewise.
4547         * ipa-split.c: Likewise.
4548         * ipa.c: Likewise.
4549         * langhooks.c: Likewise.
4550         * omp-low.c: Likewise.
4551         * sese.c: Likewise.
4552         * stor-layout.c: Likewise.
4553         * targhooks.c: Likewise.
4554         * trans-mem.c: Likewise.
4555         * tree-affine.c: Likewise.
4556         * tree-cfg.c: Likewise.
4557         * tree-cfgcleanup.c: Likewise.
4558         * tree-complex.c: Likewise.
4559         * tree-if-conv.c: Likewise.
4560         * tree-inline.c: Likewise.
4561         * tree-loop-distribution.c: Likewise.
4562         * tree-nested.c: Likewise.
4563         * tree-parloops.c: Likewise.
4564         * tree-predcom.c: Likewise.
4565         * tree-profile.c: Likewise.
4566         * tree-scalar-evolution.c: Likewise.
4567         * tree-sra.c: Likewise.
4568         * tree-ssa-address.c: Likewise.
4569         * tree-ssa-ccp.c: Likewise.
4570         * tree-ssa-dce.c: Likewise.
4571         * tree-ssa-forwprop.c: Likewise.
4572         * tree-ssa-ifcombine.c: Likewise.
4573         * tree-ssa-loop-im.c: Likewise.
4574         * tree-ssa-loop-ivopts.c: Likewise.
4575         * tree-ssa-loop-manip.c: Likewise.
4576         * tree-ssa-loop-niter.c: Likewise.
4577         * tree-ssa-loop-prefetch.c: Likewise.
4578         * tree-ssa-loop-unswitch.c: Likewise.
4579         * tree-ssa-math-opts.c: Likewise.
4580         * tree-ssa-phiopt.c: Likewise.
4581         * tree-ssa-phiprop.c: Likewise.
4582         * tree-ssa-pre.c: Likewise.
4583         * tree-ssa-propagate.c: Likewise.
4584         * tree-ssa-reassoc.c: Likewise.
4585         * tree-ssa-sccvn.c: Likewise.
4586         * tree-ssa-strlen.c: Likewise.
4587         * tree-ssa.c: Likewise.
4588         * tree-switch-conversion.c: Likewise.
4589         * tree-tailcall.c: Likewise.
4590         * tree-vect-data-refs.c: Likewise.
4591         * tree-vect-generic.c: Likewise.
4592         * tree-vect-loop-manip.c: Likewise.
4593         * tree-vect-loop.c: Likewise.
4594         * tree-vect-patterns.c: Likewise.
4595         * tree-vect-stmts.c: Likewise.
4596         * tree.c: Likewise.
4597         * tsan.c: Likewise.
4598         * value-prof.c: Likewise.
4599         * config/aarch64/aarch64.c: Likewise.
4600         * config/alpha/alpha.c: Likewise.
4601         * config/darwin.c: Likewise.
4602         * config/i386/i386.c: Likewise.
4603         * config/ia64/ia64.c: Likewise.
4604         * config/mep/mep.c: Likewise.
4605         * config/mips/mips.c: Likewise.
4606         * config/rs6000/rs6000.c: Likewise.
4607         * config/s390/s390.c: Likewise.
4608         * config/sh/sh.c: Likewise.
4609         * config/sparc/sparc.c: Likewise.
4610         * config/spu/spu.c: Likewise.
4611         * config/stormy16/stormy16.c: Likewise.
4612         * config/tilegx/tilegx.c: Likewise.
4613         * config/tilepro/tilepro.c: Likewise.
4614         * config/xtensa/xtensa.c: Likewise.
4616 2013-11-14  Diego Novillo  <dnovillo@google.com>
4618         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4620 2013-11-14  Diego Novillo  <dnovillo@google.com>
4622         * tree.h: Include fold-const.h.
4623         (aggregate_value_p): Moved to function.h.
4624         (alloca_call_p): Moved to calls.h.
4625         (allocate_struct_function): Moved to function.h.
4626         (apply_tm_attr): Moved to attribs.h.
4627         (array_at_struct_end_p): Moved to expr.h.
4628         (array_ref_element_size): Moved to tree-dfa.h.
4629         (array_ref_low_bound): Moved to tree-dfa.h.
4630         (array_ref_up_bound): Moved to tree.h.
4631         (assemble_alias): Moved to cgraph.h.
4632         (bit_from_pos): Moved to stor-layout.h.
4633         (build_addr): Moved to tree-nested.h.
4634         (build_duplicate_type): Moved to tree-inline.h.
4635         (build_fold_addr_expr): Moved to fold-const.h.
4636         (build_fold_addr_expr_with_type): Moved to fold-const.h.
4637         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4638         (build_fold_indirect_ref): Moved to fold-const.h.
4639         (build_fold_indirect_ref_loc): Moved to fold-const.h.
4640         (build_personality_function): Moved to tree.h.
4641         (build_range_check): Moved to fold-const.h.
4642         (build_simple_mem_ref): Moved to fold-const.h.
4643         (build_simple_mem_ref_loc): Moved to fold-const.h.
4644         (build_tm_abort_call): Moved to trans-mem.h.
4645         (byte_from_pos): Moved to stor-layout.h.
4646         (call_expr_flags): Moved to calls.h.
4647         (can_move_by_pieces): Moved to expr.h.
4648         (categorize_ctor_elements): Moved to expr.h.
4649         (change_decl_assembler_name): Moved to gcc-symtab.h.
4650         (combine_comparisons): Moved to fold-const.h.
4651         (complete_ctor_at_level_p): Moved to tree.h.
4652         (component_ref_field_offset): Moved to tree-dfa.h.
4653         (compute_builtin_object_size): Moved to tree-object-size.h.
4654         (compute_record_mode): Moved to stor-layout.h.
4655         (constant_boolean_node): Moved to fold-const.h.
4656         (constructor_static_from_elts_p): Moved to varasm.h.
4657         (cxx11_attribute_p): Moved to attribs.h.
4658         (debug_body): Moved to print-tree.h.
4659         (debug_find_tree): Moved to tree-inline.h.
4660         (debug_fold_checksum): Moved to fold-const.h.
4661         (debug_head): Moved to print-tree.h.
4662         (debug_head): Moved to print-tree.h.
4663         (debug_raw): Moved to print-tree.h.
4664         (debug_tree): Moved to print-tree.h.
4665         (debug_vec_tree): Moved to print-tree.h.
4666         (debug_verbose): Moved to print-tree.h.
4667         (debug_verbose): Moved to print-tree.h.
4668         (decl_attributes): Moved to attribs.h.
4669         (decl_binds_to_current_def_p): Moved to varasm.h.
4670         (decl_default_tls_model): Moved to varasm.h.
4671         (decl_replaceable_p): Moved to varasm.h.
4672         (div_if_zero_remainder): Moved to fold-const.h.
4673         (double_int mem_ref_offset): Moved to fold-const.h.
4674         (dump_addr): Moved to print-tree.h.
4675         (element_precision): Moved to machmode.h.
4676         (expand_dummy_function_end): Moved to function.h.
4677         (expand_function_end): Moved to function.h.
4678         (expand_function_start): Moved to function.h.
4679         (expand_label): Moved to stmt.h.
4680         (expr_first): Moved to tree-iterator.h.
4681         (expr_last): Moved to tree-iterator.h.
4682         (finalize_size_functions): Moved to stor-layout.h.
4683         (finish_builtin_struct): Moved to stor-layout.h.
4684         (finish_record_layout): Moved to stor-layout.h.
4685         (fixup_signed_type): Moved to stor-layout.h.
4686         (fixup_unsigned_type): Moved to stor-layout.h.
4687         (flags_from_decl_or_type): Moved to calls.h.
4688         (fold): Moved to fold-const.h.
4689         (fold_abs_const): Moved to fold-const.h.
4690         (fold_binary): Moved to fold-const.h.
4691         (fold_binary_loc): Moved to fold-const.h.
4692         (fold_binary_to_constant): Moved to fold-const.h.
4693         (fold_build1): Moved to fold-const.h.
4694         (fold_build1_initializer_loc): Moved to fold-const.h.
4695         (fold_build1_loc): Moved to fold-const.h.
4696         (fold_build1_stat_loc): Moved to fold-const.h.
4697         (fold_build2): Moved to fold-const.h.
4698         (fold_build2_initializer_loc): Moved to fold-const.h.
4699         (fold_build2_loc): Moved to fold-const.h.
4700         (fold_build2_stat_loc): Moved to fold-const.h.
4701         (fold_build3): Moved to fold-const.h.
4702         (fold_build3_loc): Moved to fold-const.h.
4703         (fold_build3_stat_loc): Moved to fold-const.h.
4704         (fold_build_call_array): Moved to fold-const.h.
4705         (fold_build_call_array_initializer): Moved to fold-const.h.
4706         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4707         (fold_build_call_array_loc): Moved to fold-const.h.
4708         (fold_build_cleanup_point_expr): Moved to fold-const.h.
4709         (fold_convert): Moved to fold-const.h.
4710         (fold_convert_loc): Moved to fold-const.h.
4711         (fold_convertible_p): Moved to fold-const.h.
4712         (fold_defer_overflow_warnings): Moved to fold-const.h.
4713         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4714         (fold_fma): Moved to fold-const.h.
4715         (fold_ignored_result): Moved to fold-const.h.
4716         (fold_indirect_ref): Moved to fold-const.h.
4717         (fold_indirect_ref_1): Moved to fold-const.h.
4718         (fold_indirect_ref_loc): Moved to fold-const.h.
4719         (fold_read_from_constant_string): Moved to fold-const.h.
4720         (fold_real_zero_addition_p): Moved to fold-const.h.
4721         (fold_single_bit_test): Moved to fold-const.h.
4722         (fold_strip_sign_ops): Moved to fold-const.h.
4723         (fold_ternary): Moved to fold-const.h.
4724         (fold_ternary_loc): Moved to fold-const.h.
4725         (fold_unary): Moved to tree-data-ref.h.
4726         (fold_unary_ignore_overflow): Moved to fold-const.h.
4727         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4728         (fold_unary_loc): Moved to fold-const.h.
4729         (fold_unary_to_constant): Moved to fold-const.h.
4730         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4731         (fold_undefer_overflow_warnings): Moved to fold-const.h.
4732         (folding_initializer): Moved to fold-const.h.
4733         (free_temp_slots): Moved to function.h.
4734         (generate_setjmp_warnings): Moved to function.h.
4735         (get_attribute_name): Moved to attribs.h.
4736         (get_identifier): Moved to stringpool.h.
4737         (get_identifier_with_length): Moved to stringpool.h.
4738         (get_inner_reference): Moved to tree.h.
4739         (gimple_alloca_call_p): Moved to calls.h.
4740         (gimplify_parameters): Moved to function.h.
4741         (highest_pow2_factor): Moved to expr.h.
4742         (indent_to): Moved to print-tree.h.
4743         (init_attributes): Moved to attribs.h.
4744         (init_dummy_function_start): Moved to function.h.
4745         (init_function_start): Moved to function.h.
4746         (init_inline_once): Moved to tree-inline.h.
4747         (init_object_sizes): Moved to tree-object-size.h.
4748         (init_temp_slots): Moved to function.h.
4749         (init_tree_optimization_optabs): Moved to optabs.h.
4750         (initialize_sizetypes): Moved to stor-layout.h.
4751         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4752         (initializer_constant_valid_p): Moved to varasm.h.
4753         (int_const_binop): Moved to fold-const.h.
4754         (internal_reference_types): Moved to stor-layout.h.
4755         (invert_tree_comparison): Moved to fold-const.h.
4756         (invert_truthvalue): Moved to fold-const.h.
4757         (invert_truthvalue_loc): Moved to fold-const.h.
4758         (is_tm_ending_fndecl): Moved to trans-mem.h.
4759         (is_tm_may_cancel_outer): Moved to trans-mem.h.
4760         (is_tm_pure): Moved to trans-mem.h.
4761         (is_tm_safe): Moved to trans-mem.h.
4762         (layout_decl): Moved to stor-layout.h.
4763         (layout_type): Moved to stor-layout.h.
4764         (lookup_attribute_spec): Moved to attribs.h.
4765         (make_accum_type): Moved to stor-layout.h.
4766         (make_decl_one_only): Moved to varasm.h.
4767         (make_decl_rtl): Moved to tree.h.
4768         (make_decl_rtl_for_debug): Moved to varasm.h.
4769         (make_fract_type): Moved to stor-layout.h.
4770         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4771         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4772         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4773         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4774         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4775         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4776         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4777         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4778         (make_range): Moved to fold-const.h.
4779         (make_range_step): Moved to fold-const.h.
4780         (make_sat_signed_accum_type): Moved to stor-layout.h.
4781         (make_sat_signed_fract_type): Moved to stor-layout.h.
4782         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4783         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4784         (make_signed_accum_type): Moved to stor-layout.h.
4785         (make_signed_fract_type): Moved to stor-layout.h.
4786         (make_signed_type): Moved to stor-layout.h.
4787         (make_unsigned_accum_type): Moved to stor-layout.h.
4788         (make_unsigned_fract_type): Moved to stor-layout.h.
4789         (make_unsigned_type): Moved to stor-layout.h.
4790         (mark_decl_referenced): Moved to varasm.h.
4791         (mark_referenced): Moved to varasm.h.
4792         (may_negate_without_overflow_p): Moved to fold-const.h.
4793         (maybe_get_identifier): Moved to stringpool.h.
4794         (merge_ranges): Moved to fold-const.h.
4795         (merge_weak): Moved to varasm.h.
4796         (mode_for_size_tree): Moved to stor-layout.h.
4797         (multiple_of_p): Moved to fold-const.h.
4798         (must_pass_in_stack_var_size): Moved to calls.h.
4799         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4800         (native_encode_expr): Moved to fold-const.h.
4801         (native_interpret_expr): Moved to fold-const.h.
4802         (non_lvalue): Moved to fold-const.h.
4803         (non_lvalue_loc): Moved to fold-const.h.
4804         (normalize_offset): Moved to stor-layout.h.
4805         (normalize_rli): Moved to stor-layout.h.
4806         (notice_global_symbol): Moved to varasm.h.
4807         (omit_one_operand): Moved to fold-const.h.
4808         (omit_one_operand_loc): Moved to fold-const.h.
4809         (omit_two_operands): Moved to fold-const.h.
4810         (omit_two_operands_loc): Moved to fold-const.h.
4811         (operand_equal_p): Moved to tree-data-ref.h.
4812         (parse_input_constraint): Moved to stmt.h.
4813         (parse_output_constraint): Moved to stmt.h.
4814         (place_field): Moved to stor-layout.h.
4815         (pop_function_context): Moved to function.h.
4816         (pop_temp_slots): Moved to function.h.
4817         (pos_from_bit): Moved to stor-layout.h.
4818         (preserve_temp_slots): Moved to function.h.
4819         (print_node): Moved to print-tree.h.
4820         (print_node_brief): Moved to print-tree.h.
4821         (print_rtl): Moved to rtl.h.
4822         (process_pending_assemble_externals): Moved to varasm.h.
4823         (ptr_difference_const): Moved to fold-const.h.
4824         (push_function_context): Moved to function.h.
4825         (push_struct_function): Moved to function.h.
4826         (push_temp_slots): Moved to function.h.
4827         (record_tm_replacement): Moved to trans-mem.h.
4828         (relayout_decl): Moved to stor-layout.h.
4829         (resolve_asm_operand_names): Moved to stmt.h.
4830         (resolve_unique_section): Moved to varasm.h.
4831         (rli_size_so_far): Moved to stor-layout.h.
4832         (rli_size_unit_so_far): Moved to stor-layout.h.
4833         (round_down): Moved to fold-const.h.
4834         (round_down_loc): Moved to fold-const.h.
4835         (round_up): Moved to fold-const.h.
4836         (round_up_loc): Moved to fold-const.h.
4837         (set_decl_incoming_rtl): Moved to emit-rtl.h.
4838         (set_decl_rtl): Moved to tree.h.
4839         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4840         (set_user_assembler_name): Moved to varasm.h.
4841         (setjmp_call_p): Moved to calls.h.
4842         (size_binop): Moved to fold-const.h.
4843         (size_binop_loc): Moved to fold-const.h.
4844         (size_diffop): Moved to fold-const.h.
4845         (size_diffop_loc): Moved to fold-const.h.
4846         (size_int_kind): Moved to fold-const.h.
4847         (stack_protect_epilogue): Moved to function.h.
4848         (start_record_layout): Moved to stor-layout.h.
4849         (supports_one_only): Moved to varasm.h.
4850         (swap_tree_comparison): Moved to fold-const.h.
4851         (tm_malloc_replacement): Moved to trans-mem.h.
4852         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4853         (tree build_invariant_address): Moved to fold-const.h.
4854         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4855         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4856         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4857         (tree_expr_nonnegative_p): Moved to fold-const.h.
4858         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4859         (tree_output_constant_def): Moved to varasm.h.
4860         (tree_overlaps_hard_reg_set): Moved to stmt.h.
4861         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4862         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4863         (tree_swap_operands_p): Moved to fold-const.h.
4864         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4865         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4866         (update_alignment_for_field): Moved to stor-layout.h.
4867         (use_register_for_decl): Moved to function.h.
4868         (variable_size): Moved to rtl.h.
4869         (vector_type_mode): Moved to stor-layout.h.
4870         * cgraph.h: Corresponding changes.
4871         * emit-rtl.h: Corresponding changes.
4872         * expr.h: Corresponding changes.
4873         * function.h: Corresponding changes.
4874         * optabs.h: Corresponding changes.
4875         * trans-mem.h: Corresponding changes.
4876         Protect against multiple inclusion.
4877         * tree-inline.h: Corresponding changes.
4878         * tree-iterator.h: Corresponding changes.
4879         * tree-dfa.h: Include expr.h.
4880         * tree-ssanames.h: Include stringpool.h.
4881         * attribs.h: New file.
4882         * calls.h: New file.
4883         * fold-const.h: New file.
4884         * gcc-symtab.h: New file.
4885         * print-rtl.h: New file.
4886         * print-tree.h: New file.
4887         * stmt.h: New file.
4888         * stor-layout.h: New file.
4889         * strinpool.h: New file.
4890         * tree-nested.h: New file
4891         * tree-object-size.h: New file.
4892         * varasm.h: New file.
4894 2013-11-14  Diego Novillo  <dnovillo@google.com>
4896         * alias.c: Include varasm.h.
4897         Include expr.h.
4898         * asan.c: Include calls.h.
4899         Include stor-layout.h.
4900         Include varasm.h.
4901         * attribs.c: Include stringpool.h.
4902         Include attribs.h.
4903         Include stor-layout.h.
4904         * builtins.c: Include stringpool.h.
4905         Include stor-layout.h.
4906         Include calls.h.
4907         Include varasm.h.
4908         Include tree-object-size.h.
4909         * calls.c: Include stor-layout.h.
4910         Include varasm.h.
4911         Include stringpool.h.
4912         Include attribs.h.
4913         * cfgexpand.c: Include stringpool.h.
4914         Include varasm.h.
4915         Include stor-layout.h.
4916         Include stmt.h.
4917         Include print-tree.h.
4918         * cgraph.c: Include varasm.h.
4919         Include calls.h.
4920         Include print-tree.h.
4921         * cgraphclones.c: Include stringpool.h.
4922         Include function.h.
4923         Include emit-rtl.h.
4924         Move inclusion of rtl.h earlier in the file.
4925         * cgraphunit.c: Include varasm.h.
4926         Include stor-layout.h.
4927         Include stringpool.h.
4928         * cilk-common.c: Include stringpool.h.
4929         Include stor-layout.h.
4930         * combine.c: Include stor-layout.h.
4931         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4932         Include stringpool.h.
4933         Include calls.h.
4934         * config/aarch64/aarch64.c: Include stringpool.h.
4935         Include stor-layout.h.
4936         Include calls.h.
4937         Include varasm.h.
4938         * config/alpha/alpha.c: Include stor-layout.h.
4939         Include calls.h.
4940         Include varasm.h.
4941         * config/arc/arc.c: Include varasm.h.
4942         Include stor-layout.h.
4943         Include stringpool.h.
4944         Include calls.h.
4945         * config/arm/arm.c: Include stringpool.h.
4946         Include stor-layout.h.
4947         Include calls.h.
4948         Include varasm.h.
4949         * config/avr/avr-c.c: Include stor-layout.h.
4950         * config/avr/avr-log.c: Include print-tree.h.
4951         * config/avr/avr.c: Include print-tree.h.
4952         Include calls.h.
4953         Include stor-layout.h.
4954         Include stringpool.h.
4955         * config/bfin/bfin.c: Include varasm.h.
4956         Include calls.h.
4957         * config/c6x/c6x.c: Include stor-layout.h.
4958         Include varasm.h.
4959         Include calls.h.
4960         Include stringpool.h.
4961         * config/cr16/cr16.c: Include stor-layout.h.
4962         Include calls.h.
4963         * config/cris/cris.c: Include varasm.h.
4964         Include stor-layout.h.
4965         Include calls.h.
4966         Include stmt.h.
4967         * config/darwin.c: Include stringpool.h.
4968         Include varasm.h.
4969         Include stor-layout.h.
4970         * config/epiphany/epiphany.c: Include stor-layout.h.
4971         Include varasm.h.
4972         Include calls.h.
4973         Include stringpool.h.
4974         * config/fr30/fr30.c: Include stor-layout.h.
4975         Include varasm.h.
4976         * config/frv/frv.c: Include varasm.h.
4977         Include stor-layout.h.
4978         Include stringpool.h.
4979         * config/h8300/h8300.c: Include stor-layout.h.
4980         Include varasm.h.
4981         Include calls.h.
4982         Include stringpool.h.
4983         * config/i386/i386.c: Include stringpool.h.
4984         Include attribs.h.
4985         Include calls.h.
4986         Include stor-layout.h.
4987         Include varasm.h.
4988         * config/i386/winnt-cxx.c: Include stringpool.h.
4989         Include attribs.h.
4990         * config/i386/winnt.c: Include stringpool.h.
4991         Include varasm.h.
4992         * config/ia64/ia64-c.c: Include stringpool.h.
4993         * config/ia64/ia64.c: Include stringpool.h.
4994         Include stor-layout.h.
4995         Include calls.h.
4996         Include varasm.h.
4997         * config/iq2000/iq2000.c: Include stor-layout.h.
4998         Include calls.h.
4999         Include varasm.h.
5000         * config/lm32/lm32.c: Include calls.h.
5001         * config/m32c/m32c.c: Include stor-layout.h.
5002         Include varasm.h.
5003         Include calls.h.
5004         * config/m32r/m32r.c: Include stor-layout.h.
5005         Include varasm.h.
5006         Include stringpool.h.
5007         Include calls.h.
5008         * config/m68k/m68k.c: Include calls.h.
5009         Include stor-layout.h.
5010         Include varasm.h.
5011         * config/mcore/mcore.c: Include stor-layout.h.
5012         Include varasm.h.
5013         Include stringpool.h.
5014         Include calls.h.
5015         * config/mep/mep.c: Include varasm.h.
5016         Include calls.h.
5017         Include stringpool.h.
5018         Include stor-layout.h.
5019         * config/microblaze/microblaze.c: Include varasm.h.
5020         Include stor-layout.h.
5021         Include calls.h.
5022         * config/mips/mips.c: Include varasm.h.
5023         Include stringpool.h.
5024         Include stor-layout.h.
5025         Include calls.h.
5026         * config/mmix/mmix.c: Include varasm.h.
5027         Include stor-layout.h.
5028         Include calls.h.
5029         * config/mn10300/mn10300.c: Include stor-layout.h.
5030         Include varasm.h.
5031         Include calls.h.
5032         * config/moxie/moxie.c: Include stor-layout.h.
5033         Include varasm.h.
5034         Include calls.h.
5035         * config/msp430/msp430.c: Include stor-layout.h.
5036         Include calls.h.
5037         * config/nds32/nds32.c: Include stor-layout.h.
5038         Include varasm.h.
5039         Include calls.h.
5040         * config/pa/pa.c: Include stor-layout.h.
5041         Include stringpool.h.
5042         Include varasm.h.
5043         Include calls.h.
5044         * config/pdp11/pdp11.c: Include stor-layout.h.
5045         Include varasm.h.
5046         Include calls.h.
5047         * config/picochip/picochip.c: Include calls.h.
5048         Include stor-layout.h.
5049         Include stringpool.h.
5050         Include varasm.h.
5051         * config/rl78/rl78.c: Include varasm.h.
5052         Include stor-layout.h.
5053         Include calls.h.
5054         * config/rs6000/rs6000-c.c: Include stor-layout.h.
5055         Include stringpool.h.
5056         * config/rs6000/rs6000.c: Include stringpool.h.
5057         Include stor-layout.h.
5058         Include calls.h.
5059         Include print-tree.h.
5060         Include varasm.h.
5061         * config/rx/rx.c: Include varasm.h.
5062         Include stor-layout.h.
5063         Include calls.h.
5064         * config/s390/s390.c: Include print-tree.h.
5065         Include stringpool.h.
5066         Include stor-layout.h.
5067         Include varasm.h.
5068         Include calls.h.
5069         * config/score/score.c: Include stringpool.h.
5070         Include calls.h.
5071         Include varasm.h.
5072         Include stor-layout.h.
5073         * config/sh/sh-c.c: Include stringpool.h.
5074         Include attribs.h.h.
5075         * config/sh/sh.c: Include stringpool.h.
5076         Include stor-layout.h.
5077         Include calls.h.
5078         Include varasm.h.
5079         * config/sol2-c.c: Include stringpool.h.
5080         Include attribs.h.
5081         * config/sol2-cxx.c: Include stringpool.h.
5082         * config/sol2.c: Include stringpool.h.
5083         Include varasm.h.
5084         * config/sparc/sparc.c: Include stringpool.h.
5085         Include stor-layout.h.
5086         Include calls.h.
5087         Include varasm.h.
5088         * config/spu/spu-c.c: Include stringpool.h.
5089         * config/spu/spu.c: Include stringpool.h.
5090         Include stor-layout.h.
5091         Include calls.h.
5092         Include varasm.h.
5093         * config/stormy16/stormy16.c: Include stringpool.h.
5094         Include stor-layout.h.
5095         Include varasm.h.
5096         Include calls.h.
5097         * config/tilegx/tilegx.c: Include stringpool.h.
5098         Include stor-layout.h.
5099         Include varasm.h.
5100         Include calls.h.
5101         * config/tilepro/tilepro.c: Include stringpool.h.
5102         Include stor-layout.h.
5103         Include varasm.h.
5104         Include calls.h.
5105         * config/v850/v850-c.c: Include stringpool.h.
5106         Include attribs.h.
5107         * config/v850/v850.c: Include stringpool.h.
5108         Include stor-layout.h.
5109         Include varasm.h.
5110         Include calls.h.
5111         * config/vax/vax.c: Include calls.h.
5112         Include varasm.h.
5113         * config/vms/vms.c: Include stringpool.h.
5114         * config/vxworks.c: Include stringpool.h.
5115         * config/xtensa/xtensa.c: Include stringpool.h.
5116         Include stor-layout.h.
5117         Include calls.h.
5118         Include varasm.h.
5119         * convert.c: Include stor-layout.h.
5120         * coverage.c: Include stringpool.h.
5121         Include stor-layout.h.
5122         * dbxout.c: Include varasm.h.
5123         Include stor-layout.h.
5124         * dojump.c: Include stor-layout.h.
5125         * dse.c: Include stor-layout.h.
5126         * dwarf2asm.c: Include stringpool.h.
5127         Include varasm.h.
5128         * dwarf2cfi.c: Include stor-layout.h.
5129         * dwarf2out.c: Include rtl.h.
5130         Include stringpool.h.
5131         Include stor-layout.h.
5132         Include varasm.h.
5133         Include function.h.
5134         Include emit-rtl.h.
5135         Move inclusion of rtl.h earlier in the file.
5136         * emit-rtl.c: Include varasm.h.
5137         * except.c: Include stringpool.h.
5138         Include stor-layout.h.
5139         * explow.c: Include stor-layout.h.
5140         * expmed.c: Include stor-layout.h.
5141         * expr.c: Include stringpool.h.
5142         Include stor-layout.h.
5143         Include attribs.h.
5144         Include varasm.h.
5145         * final.c: Include varasm.h.
5146         * fold-const.c: Include stor-layout.h.
5147         Include calls.h.
5148         Include tree-iterator.h.
5149         * function.c: Include stor-layout.h.
5150         Include varasm.h.
5151         Include stringpool.h.
5152         * genattrtab.c (write_header): Emit includes for varasm.h,
5153         stor-layout.h and calls.h.
5154         * genautomata.c (main): Likewise.
5155         * genemit.c: Likewise.
5156         * genopinit.c: Likewise.
5157         * genoutput.c (output_prologue): Likewise.
5158         * genpeep.c: Likewise.
5159         * genpreds.c (write_insn_preds_c): Likewise.
5160         * gengtype.c (open_base_files): Add stringpool.h.
5161         * gimple-expr.c: Include stringpool.h.
5162         Include stor-layout.h.
5163         * gimple-fold.c: Include stringpool.h.
5164         Include expr.h.
5165         Include stmt.h.
5166         Include stor-layout.h.
5167         * gimple-low.c: Include tree-nested.h.
5168         Include calls.h.
5169         * gimple-pretty-print.c: Include stringpool.h.
5170         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
5171         Include expr.h.
5172         * gimple-walk.c: Include stmt.h.
5173         * gimple.c: Include calls.h.
5174         Include stmt.h.
5175         Include stor-layout.h.
5176         * gimplify.c: Include stringpool.h.
5177         Include calls.h.
5178         Include varasm.h.
5179         Include stor-layout.h.
5180         Include stmt.h.
5181         Include print-tree.h.
5182         Include expr.h.
5183         * gimplify-me.c: Include stmt.h
5184         Include stor-layout.h
5185         * internal-fn.c: Include stor-layout.h.
5186         * ipa-devirt.c: Include print-tree.h.
5187         Include calls.h.
5188         * ipa-inline-analysis.c: Include stor-layout.h.
5189         Include stringpool.h.
5190         Include print-tree.h.
5191         * ipa-inline.c: Include trans-mem.h.
5192         Include calls.h.
5193         * ipa-prop.c: Include expr.h.
5194         Include stor-layout.h.
5195         Include print-tree.h.
5196         * ipa-pure-const.c: Include print-tree.h.
5197         Include calls.h.
5198         * ipa-reference.c: Include calls.h.
5199         * ipa-split.c: Include stringpool.h.
5200         Include expr.h.
5201         Include calls.h.
5202         * ipa.c: Include calls.h.
5203         Include stringpool.h.
5204         * langhooks.c: Include stringpool.h.
5205         Include attribs.h.
5206         * lto-cgraph.c: Include stringpool.h.
5207         * lto-streamer-in.c: Include stringpool.h.
5208         * lto-streamer-out.c: Include stor-layout.h.
5209         Include stringpool.h.
5210         * omp-low.c: Include stringpool.h.
5211         Include stor-layout.h.
5212         Include expr.h.
5213         * optabs.c: Include stor-layout.h.
5214         Include stringpool.h.
5215         Include varasm.h.
5216         * passes.c: Include varasm.h.
5217         * predict.c: Include calls.h.
5218         * print-rtl.c: Include print-tree.h.
5219         * print-tree.c: Include varasm.h.
5220         Include print-rtl.h.
5221         Include stor-layout.h.
5222         * realmpfr.c: Include stor-layout.h.
5223         * reg-stack.c: Include varasm.h.
5224         * sdbout.c: Include varasm.h.
5225         Include stor-layout.h.
5226         * simplify-rtx.c: Include varasm.h.
5227         * stmt.c: Include varasm.h.
5228         Include stor-layout.h.
5229         * stor-layout.c: Include stor-layout.h.
5230         Include stringpool.h.
5231         Include varasm.h.
5232         Include print-tree.h.
5233         * symtab.c: Include rtl.h.
5234         Include print-tree.h.
5235         Include varasm.h.
5236         Include function.h.
5237         Include emit-rtl.h.
5238         * targhooks.c: Include stor-layout.h.
5239         Include varasm.h.
5240         * toplev.c: Include varasm.h.
5241         Include tree-inline.h.
5242         * trans-mem.c: Include calls.h.
5243         Include function.h.
5244         Include rtl.h.
5245         Include emit-rtl.h.
5246         * tree-affine.c: Include expr.h.
5247         * tree-browser.c: Include print-tree.h.
5248         * tree-call-cdce.c: Include stor-layout.h.
5249         * tree-cfg.c: Include trans-mem.h.
5250         Include stor-layout.h.
5251         Include print-tree.h.
5252         * tree-complex.c: Include stor-layout.h.
5253         * tree-data-ref.c: Include expr.h.
5254         * tree-dfa.c: Include stor-layout.h.
5255         * tree-eh.c: Include expr.h.
5256         Include calls.h.
5257         * tree-emutls.c: Include stor-layout.h.
5258         Include varasm.h.
5259         * tree-if-conv.c: Include stor-layout.h.
5260         * tree-inline.c: Include stor-layout.h.
5261         Include calls.h.
5262         * tree-loop-distribution.c: Include stor-layout.h.
5263         * tree-nested.c: Include stringpool.h.
5264         Include stor-layout.h.
5265         * tree-object-size.c: Include tree-object-size.h.
5266         * tree-outof-ssa.c: Include stor-layout.h.
5267         * tree-parloops.c: Include stor-layout.h.
5268         Include tree-nested.h.
5269         * tree-pretty-print.c: Include stor-layout.h.
5270         Include expr.h.
5271         * tree-profile.c: Include varasm.h.
5272         Include tree-nested.h.
5273         * tree-scalar-evolution.c: Include expr.h.
5274         * tree-sra.c: Include stor-layout.h.
5275         * tree-ssa-address.c: Include stor-layout.h.
5276         * tree-ssa-ccp.c: Include stor-layout.h.
5277         * tree-ssa-dce.c: Include calls.h.
5278         * tree-ssa-dom.c: Include stor-layout.h.
5279         * tree-ssa-forwprop.c: Include stor-layout.h.
5280         * tree-ssa-ifcombine.c: Include stor-layout.h.
5281         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5282         * tree-ssa-loop-niter.c: Include calls.h.
5283         Include expr.h.
5284         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5285         * tree-ssa-math-opts.c: Include stor-layout.h.
5286         * tree-ssa-operands.c: Include stmt.h.
5287         Include print-tree.h.
5288         * tree-ssa-phiopt.c: Include stor-layout.h.
5289         * tree-ssa-reassoc.c: Include stor-layout.h.
5290         * tree-ssa-sccvn.c: Include stor-layout.h.
5291         * tree-ssa-sink.c: Include stor-layout.h.
5292         * tree-ssa-strlen.c: Include stor-layout.h.
5293         * tree-ssa-structalias.c: Include stor-layout.h.
5294         Include stmt.h.
5295         * tree-ssa-tail-merge.c: Include stor-layout.h.
5296         Include trans-mem.h.
5297         * tree-ssa-uncprop.c: Include stor-layout.h.
5298         * tree-ssa.c: Include stor-layout.h.
5299         * tree-ssanames.c: Include stor-layout.h.
5300         * tree-streamer-in.c: Include stringpool.h.
5301         * tree-streamer-out.c: Include stor-layout.h.
5302         * tree-switch-conversion.c: Include varasm.h.
5303         Include stor-layout.h.
5304         * tree-tailcall.c: Include stor-layout.h.
5305         * tree-vect-data-refs.c: Include stor-layout.h.
5306         * tree-vect-generic.c: Include stor-layout.h.
5307         * tree-vect-loop.c: Include stor-layout.h.
5308         * tree-vect-patterns.c: Include stor-layout.h.
5309         * tree-vect-slp.c: Include stor-layout.h.
5310         * tree-vect-stmts.c: Include stor-layout.h.
5311         * tree-vectorizer.c: Include stor-layout.h.
5312         * tree-vrp.c: Include stor-layout.h.
5313         Include calls.h.
5314         * tree.c: Include stor-layout.h.
5315         Include calls.h.
5316         Include attribs.h.
5317         Include varasm.h.
5318         * tsan.c: Include expr.h.
5319         * ubsan.c: Include stor-layout.h.
5320         Include stringpool.h.
5321         * value-prof.c: Include tree-nested.h.
5322         Include calls.h.
5323         * var-tracking.c: Include varasm.h.
5324         Include stor-layout.h.
5325         * varasm.c: Include stor-layout.h.
5326         Include stringpool.h.
5327         Include gcc-symtab.h.
5328         Include varasm.h.
5329         * varpool.c: Include varasm.h.
5330         * vmsdbgout.c: Include varasm.h.
5331         * xcoffout.c: Include varasm.h.
5333 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
5335         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5336         use (.&-4) idiom.
5338 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5340         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5342 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5343             Alan Modra  <amodra@gmail.com>
5345         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5346         (RS6000_SAVE_TOC): Remove.
5347         (RS6000_TOC_SAVE_SLOT): New macro.
5348         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5349         (rs6000_parm_start): Use it.
5350         (rs6000_function_arg_advance_1): Likewise.
5351         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5352         (rs6000_emit_epilogue): Likewise.
5353         (rs6000_call_aix): Likewise.
5354         (rs6000_output_function_prologue): Do not save/restore r11
5355         around calling _mcount for ABI_ELFv2.
5357 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5358             Alan Modra  <amodra@gmail.com>
5360         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5361         Add prototype.
5362         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5363         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5364         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5365         (rs6000_function_parms_need_stack): Likewise.
5366         (rs6000_reg_parm_stack_space): Likewise.
5367         (rs6000_function_arg): Do not replace BLKmode by Pmode when
5368         returning a register argument.
5370 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5371             Michael Gschwind  <mkg@us.ibm.com>
5373         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5374         (ALTIVEC_ARG_MAX_RETURN): Likewise.
5375         (FUNCTION_VALUE_REGNO_P): Use them.
5376         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5377         (rs6000_return_in_msb): New function.
5378         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5379         Handle aggregates of up to 16 bytes for ELFv2.
5380         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5382 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5383             Michael Gschwind  <mkg@us.ibm.com>
5385         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5386         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5387         (rs6000_discover_homogeneous_aggregate): Likewise.
5388         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5389         (rs6000_function_arg_advance_1): Likewise.
5390         (rs6000_function_arg): Likewise.
5391         (rs6000_arg_partial_bytes): Likewise.
5392         (rs6000_psave_function_arg): Handle BLKmode arguments.
5394 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5395             Michael Gschwind  <mkg@us.ibm.com>
5397         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5398         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5399         (rs6000_discover_homogeneous_aggregate): Likewise.
5400         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5401         (rs6000_function_arg_advance_1): Likewise.
5402         (rs6000_function_arg): Likewise.
5403         (rs6000_arg_partial_bytes): Likewise.
5404         (rs6000_psave_function_arg): Handle BLKmode arguments.
5406 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5408         * config/rs6000/rs6000.c (machine_function): New member
5409         r2_setup_needed.
5410         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5411         (rs6000_output_mi_thunk): Set r2_setup_needed.
5412         (rs6000_output_function_prologue): Output global entry point
5413         prologue and local entry point marker if needed for ABI_ELFv2.
5414         Output -mprofile-kernel code here.
5415         (output_function_profiler): Do not output -mprofile-kernel
5416         code here; moved to rs6000_output_function_prologue.
5417         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5419         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5420         (rs6000_output_function_entry): Likewise.
5421         (rs6000_assemble_integer): Likewise.
5422         (rs6000_elf_encode_section_info): Likewise.
5423         (rs6000_elf_declare_function_name): Do not create dot symbols
5424         or .opd section for ABI_ELFv2.
5426         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5427         (rs6000_trampoline_init): Likewise.
5428         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5430         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
5431         for function descriptors in ABI_ELFv2.
5433         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5434         on ABI_AIX only, not ABI_ELFv2.
5435         ("*call_value_indirect_aix<mode>"): Likewise.
5436         ("*call_indirect_elfv2<mode>"): New pattern.
5437         ("*call_value_indirect_elfv2<mode>"): Likewise.
5439         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5440         check for function descriptors in ABI_ELFv2.
5441         ("current_file_function_operand"): Likewise.
5443         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5444         (toc): Undefine.
5445         (FUNC_NAME): Define ELFv2 variant.
5446         (JUMP_TARGET): Likewise.
5447         (FUNC_START): Likewise.
5448         (HIDDEN_FUNC): Likewise.
5449         (FUNC_END): Likeiwse.
5451 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5453         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5454         and --with-abi=elfv2.
5455         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5456         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5457         (mabi=elfv2): Likewise.
5458         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5459         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5460         if !RS6000_BI_ARCH.
5461         (ELFv2_ABI_CHECK): New macro.
5462         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5463         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5464         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5465         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5466         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5468         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5469         (debug_stack_info): Likewise.
5470         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5471         (rs6000_legitimize_tls_address): Likewise.
5472         (rs6000_conditional_register_usage): Likewise.
5473         (rs6000_emit_move): Likewise.
5474         (init_cumulative_args): Likewise.
5475         (rs6000_function_arg_advance_1): Likewise.
5476         (rs6000_function_arg): Likewise.
5477         (rs6000_arg_partial_bytes): Likewise.
5478         (rs6000_output_function_entry): Likewise.
5479         (rs6000_assemble_integer): Likewise.
5480         (rs6000_savres_strategy): Likewise.
5481         (rs6000_stack_info): Likewise.
5482         (rs6000_function_ok_for_sibcall): Likewise.
5483         (rs6000_emit_load_toc_table): Likewise.
5484         (rs6000_savres_routine_name): Likewise.
5485         (ptr_regno_for_savres): Likewise.
5486         (rs6000_emit_prologue): Likewise.
5487         (rs6000_emit_epilogue): Likewise.
5488         (rs6000_output_function_epilogue): Likewise.
5489         (output_profile_hook): Likewise.
5490         (output_function_profiler): Likewise.
5491         (rs6000_trampoline_size): Likewise.
5492         (rs6000_trampoline_init): Likewise.
5493         (rs6000_elf_output_toc_section_asm_op): Likewise.
5494         (rs6000_elf_encode_section_info): Likewise.
5495         (rs6000_elf_reloc_rw_mask): Likewise.
5496         (rs6000_elf_declare_function_name): Likewise.
5497         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5498         except that rs6000_compat_align_parm is always assumed false.
5499         (rs6000_gimplify_va_arg): Likewise.
5500         (rs6000_call_aix): Update comment.
5501         (rs6000_sibcall_aix): Likewise.
5502         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5503         Treat ABI_ELFv2 the same as ABI_AIX.
5504         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5505         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5506         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5507         ("load_toc_aix_si"): Likewise.
5508         ("load_toc_aix_di"): Likewise.
5509         ("call"): Likewise.
5510         ("call_value"): Likewise.
5511         ("*call_local_aix<mode>"): Likewise.
5512         ("*call_value_local_aix<mode>"): Likewise.
5513         ("*call_nonlocal_aix<mode>"): Likewise.
5514         ("*call_value_nonlocal_aix<mode>"): Likewise.
5515         ("*call_indirect_aix<mode>"): Likewise.
5516         ("*call_value_indirect_aix<mode>"): Likewise.
5517         ("sibcall"): Likewise.
5518         ("sibcall_value"): Likewise.
5519         ("*sibcall_aix<mode>"): Likewise.
5520         ("*sibcall_value_aix<mode>"): Likewise.
5521         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5522         ("current_file_function_operand"): Likewise.
5524 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5526         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5527         by making use of the fact that for vector / floating point arguments
5528         passed both in VRs/FPRs and in the fixed parameter area, the partial
5529         bytes mechanism is in fact not used.
5531 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5533         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5534         (rs6000_finish_function_arg): Likewise.
5535         (rs6000_function_arg): Use rs6000_psave_function_arg and
5536         rs6000_finish_function_arg to handle both vector and floating
5537         point arguments that are also passed in GPRs / the stack.
5539 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5541         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5542         (USE_ALTIVEC_FOR_ARG_P): Likewise.
5543         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5544         (rs6000_function_arg_advance_1):Likewise.
5545         (rs6000_darwin64_record_arg_recurse): Likewise.
5546         (rs6000_function_arg): Likewise.
5547         (rs6000_arg_partial_bytes): Likewise.
5549 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5551         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5552         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5553         (rs6000_savres_strategy): Likewise.
5554         (rs6000_return_addr): Likewise.
5555         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5556         testing for ABI_V4 (since ABI_DARWIN is impossible here).
5557         (rs6000_emit_prologue): Likewise.
5558         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5559         (rs6000_elf_declare_function_name): Remove duplicated test.
5560         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5561         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5562         ("load_toc_v4_PIC_1_normal"): Likewise.
5563         ("load_toc_v4_PIC_1_476"): Likewise.
5564         ("load_toc_v4_PIC_1b"): Likewise.
5565         ("load_toc_v4_PIC_1b_normal"): Likewise.
5566         ("load_toc_v4_PIC_1b_476"): Likewise.
5567         ("load_toc_v4_PIC_2"): Likewise.
5568         ("load_toc_v4_PIC_3b"): Likewise.
5569         ("load_toc_v4_PIC_3c"): Likewise.
5570         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5571         (RS6000_SAVE_AREA): Likewise.
5572         (FP_ARG_MAX_REG): Likewise.
5573         (RETURN_ADDRESS_OFFSET): Likewise.
5574         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5575         of ABI_AIX.
5576         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5577         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5579 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5581         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5582         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
5583         Create call insn directly instead of via various gen_... routines.
5584         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5585         (rs6000_sibcall_aix): New function.
5586         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5587         (TOC_SAVE_OFFSET_64BIT): Likewise.
5588         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5589         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5590         (AIX_FUNC_DESC_SC_32BIT): Likewise.
5591         (AIX_FUNC_DESC_SC_64BIT): Likewise.
5592         ("call" expander): Call rs6000_call_aix.
5593         ("call_value" expander): Likewise.
5594         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5595         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5596         ("*call_indirect_aix<mode>"): ... by this insn pattern.
5597         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5598         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5599         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5600         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5601         ("*call_nonlocal_aix<mode>"): ... this pattern.
5602         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5603         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5604         ("*call_local_aix<mode>"): New insn pattern.
5605         ("*call_value_local_aix<mode>"): Likewise.
5606         ("sibcall" expander): Call rs6000_sibcall_aix.
5607         ("sibcall_value" expander): Likewise.  Move earlier in file.
5608         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5609         ("*sibcall_aix<mode>"): ... this pattern.
5610         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5611         ("*sibcall_value_aix<mode>"): ... this pattern.
5612         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5613         (rs6000_call_aix): Add prototype.
5614         (rs6000_sibcall_aix): Likewise.
5616 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5618         PR sanitizer/59122
5619         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5620         isn't confused by the artificial decl.
5622 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5624         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5625         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5626         Instead, add USEs of all modified call-saved CR fields to the
5627         insn storing the result to the stack slot, and provide an
5628         appropriate REG_FRAME_RELATED_EXPR for that insn.
5629         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5630         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5632 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5633             Alan Modra  <amodra@gmail.com>
5635         * function.c (assign_parms): Use all.reg_parm_stack_space instead
5636         of re-evaluating REG_PARM_STACK_SPACE target macro.
5637         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
5638         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5639         (assign_parm_find_entry_rtl): Update call.
5640         * calls.c (initialize_argument_information): Update call.
5641         (emit_library_call_value_1): Likewise.
5642         * expr.h (locate_and_pad_parm): Update prototype.
5644 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5646         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5647         arguments.
5649 2013-11-14  DJ Delorie  <dj@redhat.com>
5651         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5652         to 16 bits.
5654 2013-11-14  Jeff Law  <law@redhat.com>
5656         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5657         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5659 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5661         * doc/invoke.texi: Update documentation for AArch64's -mcpu
5662         and -mtune options.
5664 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5666         * config/aarch64/aarch64-cores.def (example-1): Remove.
5667         (example-2): Likewise.
5668         * config/aarch64/aarch64-tune.md: Regenerate.
5669         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5670         (generic_sched): Remove "large", "small".
5671         * config/aarch64/large.md: Delete.
5672         * config/aarch64/small.md: Delete.
5674 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5676         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5677         * config/aarch64/aarch64-tune.md: Regenerate.
5678         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5679         (generic_sched): "no" if we are tuning for cortexa15.
5680         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5681         relative path.
5683 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5685         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5686         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5687         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5688         (all_cores): Use cortexa53 when tuning for "generic".
5689         (aarch64_override_options): Fix comment.
5690         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5691         * config/aarch64/aarch64-generic.md: Delete.
5693 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5695         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5697 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5699         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5700         (generic_rtx_cost_table): Remove.
5701         (aarch64_rtx_costs): Use fields from cpu_cost_table.
5702         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5703         insn_extra_cost.
5704         (cpu_rtx_cost_table): Remove.
5706 2013-11-14  Julian Brown  <julian@codesourcery.com>
5707             Joey Ye  <joey.ye@arm.com>
5709         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5710         (arm_v7m_tune): New.
5711         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5712         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5713         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5714         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5716 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
5718         PR target/57491
5719         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5720         flag setting.
5722 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5723             Uros Bizjak  <ubizjak@gmail.com>
5725         PR target/59101
5726         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5727         operands[2] satisfies_constraint_Z that might have bit 31 set.
5729 2013-11-13  Jeff Law  <law@redhat.com>
5731         PR tree-optimization/59102
5732         * gimple-ssa-isolate-paths.c
5733         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5734         gimple assignment before looking at gimple_assign_lhs.
5736 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5738         * ira.c: Add comment about threads at the top of file.
5740 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5742         * ira-color.c (coalesce_allocnos): Don't allocate and free
5743         sorted_copies.
5745 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5747         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5748         equality for GIMPLE_ASSIGN.
5750 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5752         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5753         function out of ...
5754         (gimple_equal_p): ... here.
5756 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5758         * trans-mem.c (is_tm_ending): New function.
5759         * gimple.h (is_tm_ending): Declare.
5760         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5761         BUILT_IN_TM_COMMIT.
5762         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5764 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5766         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5768 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
5770         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
5771         (struct walk_stmt_info):  Relocate here from gimple.h.
5772         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
5773         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5774         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5775         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5776         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5777         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5778         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5779         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5780         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5781         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5782         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5783         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5784         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5785         (struct walk_stmt_info): Move to gimple-walk.h.
5786         (gimple_seq_set_location): Move to gimple.c
5787         * gimple-walk.c: New File.
5788         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5789         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5790         walk_stmt_load_store_ops): Relocate here from gimple.c.
5791         * gimple-iterator.c: Include gimple-iterator.h.
5792         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5793         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5794         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5795         gimple-walk.c.
5796         (gimple_seq_set_location): Relocate from gimple.h.
5797         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5798         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5799         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5800         * Makefile.in (OBJS): Add gimple-walk.o
5801         * asan.c: Update Include list as required for gimple-iterator.h and
5802         gimple-walk.h.
5803         * cfgexpand.c: Likewise.
5804         * cfgloop.c: Likewise.
5805         * cfgloopmanip.c: Likewise.
5806         * cgraph.c: Likewise.
5807         * cgraphbuild.c: Likewise.
5808         * cgraphunit.c: Likewise.
5809         * gimple-fold.c: Likewise.
5810         * gimple-low.c: Likewise.
5811         * gimple-pretty-print.c: Likewise.
5812         * gimple-ssa-isolate-paths.c: Likewise.
5813         * gimple-ssa-strength-reduction.c: Likewise.
5814         * gimple-streamer-in.c: Likewise.
5815         * gimple-streamer-out.c: Likewise.
5816         * gimplify.c: Likewise.
5817         * graphite-blocking.c: Likewise.
5818         * graphite-clast-to-gimple.c: Likewise.
5819         * graphite-dependences.c: Likewise.
5820         * graphite-interchange.c: Likewise.
5821         * graphite-optimize-isl.c: Likewise.
5822         * graphite-poly.c: Likewise.
5823         * graphite-scop-detection.c: Likewise.
5824         * graphite-sese-to-poly.c: Likewise.
5825         * graphite.c: Likewise.
5826         * ipa-inline-analysis.c: Likewise.
5827         * ipa-profile.c: Likewise.
5828         * ipa-prop.c: Likewise.
5829         * ipa-pure-const.c: Likewise.
5830         * ipa-split.c: Likewise.
5831         * lto-streamer-in.c: Likewise.
5832         * lto-streamer-out.c: Likewise.
5833         * omp-low.c: Likewise.
5834         * predict.c: Likewise.
5835         * profile.c: Likewise.
5836         * sese.c: Likewise.
5837         * tracer.c: Likewise.
5838         * trans-mem.c: Likewise.
5839         * tree-call-cdce.c: Likewise.
5840         * tree-cfg.c: Likewise.
5841         * tree-cfgcleanup.c: Likewise.
5842         * tree-complex.c: Likewise.
5843         * tree-data-ref.c: Likewise.
5844         * tree-dfa.c: Likewise.
5845         * tree-eh.c: Likewise.
5846         * tree-emutls.c: Likewise.
5847         * tree-if-conv.c: Likewise.
5848         * tree-inline.c: Likewise.
5849         * tree-into-ssa.c: Likewise.
5850         * tree-loop-distribution.c: Likewise.
5851         * tree-nested.c: Likewise.
5852         * tree-nrv.c: Likewise.
5853         * tree-object-size.c: Likewise.
5854         * tree-outof-ssa.c: Likewise.
5855         * tree-parloops.c: Likewise.
5856         * tree-predcom.c: Likewise.
5857         * tree-profile.c: Likewise.
5858         * tree-scalar-evolution.c: Likewise.
5859         * tree-sra.c: Likewise.
5860         * tree-ssa-ccp.c: Likewise.
5861         * tree-ssa-coalesce.c: Likewise.
5862         * tree-ssa-copy.c: Likewise.
5863         * tree-ssa-copyrename.c: Likewise.
5864         * tree-ssa-dce.c: Likewise.
5865         * tree-ssa-dom.c: Likewise.
5866         * tree-ssa-dse.c: Likewise.
5867         * tree-ssa-forwprop.c: Likewise.
5868         * tree-ssa-ifcombine.c: Likewise.
5869         * tree-ssa-live.c: Likewise.
5870         * tree-ssa-loop-ch.c: Likewise.
5871         * tree-ssa-loop-im.c: Likewise.
5872         * tree-ssa-loop-ivcanon.c: Likewise.
5873         * tree-ssa-loop-ivopts.c: Likewise.
5874         * tree-ssa-loop-manip.c: Likewise.
5875         * tree-ssa-loop-niter.c: Likewise.
5876         * tree-ssa-loop-prefetch.c: Likewise.
5877         * tree-ssa-loop.c: Likewise.
5878         * tree-ssa-math-opts.c: Likewise.
5879         * tree-ssa-phiopt.c: Likewise.
5880         * tree-ssa-phiprop.c: Likewise.
5881         * tree-ssa-pre.c: Likewise.
5882         * tree-ssa-propagate.c: Likewise.
5883         * tree-ssa-reassoc.c: Likewise.
5884         * tree-ssa-sink.c: Likewise.
5885         * tree-ssa-strlen.c: Likewise.
5886         * tree-ssa-structalias.c: Likewise.
5887         * tree-ssa-tail-merge.c: Likewise.
5888         * tree-ssa-ter.c: Likewise.
5889         * tree-ssa-threadedge.c: Likewise.
5890         * tree-ssa-threadupdate.c: Likewise.
5891         * tree-ssa-uncprop.c: Likewise.
5892         * tree-ssa-uninit.c: Likewise.
5893         * tree-ssa.c: Likewise.
5894         * tree-stdarg.c: Likewise.
5895         * tree-switch-conversion.c: Likewise.
5896         * tree-tailcall.c: Likewise.
5897         * tree-vect-data-refs.c: Likewise.
5898         * tree-vect-generic.c: Likewise.
5899         * tree-vect-loop-manip.c: Likewise.
5900         * tree-vect-loop.c: Likewise.
5901         * tree-vect-patterns.c: Likewise.
5902         * tree-vect-slp.c: Likewise.
5903         * tree-vect-stmts.c: Likewise.
5904         * tree-vectorizer.c: Likewise.
5905         * tree-vrp.c: Likewise.
5906         * tree.c: Likewise.
5907         * tsan.c: Likewise.
5908         * value-prof.c: Likewise.
5909         * vtable-verify.c: Likewise.
5911 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5913         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5914         fix.
5916 2013-11-13  Jeff Law  <law@redhat.com>
5918         * PR middle-end/59119
5919         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5920         function, extracted from gimple_ssa_isolate_erroneous_paths.
5921         (find_explicit_erroneous_behaviour): Similarly.
5922         (insert_trap_and_remove_trailing_statements): Remove statements
5923         in reverse order.
5925 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5927         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5928         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
5929         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5930         looking at INSN_CODE.
5931         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5932         active_insn_p object, respect basic block boundaries.
5933         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5934         follows immediately after the jump table data label.
5935         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5936         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
5937         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5939 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5941         PR ipa/58862
5942         * predict.c (drop_profile): Error is currently too strict.
5943         (handle_missing_profiles): Pass call_count to drop_profile.
5945 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5947         PR ipa/58862
5948         * ipa-inline.c (edge_badness): Fix overflow.
5950 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5952         PR rtl-optimization/59036
5953         * ira-color.c (struct allocno_color_data): Add new members
5954         first_thread_allocno, next_thread_allocno, thread_freq.
5955         (sorted_copies): New static var.
5956         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5957         (allocno_thread_conflict_p, merge_threads)
5958         (form_threads_from_copies, form_threads_from_bucket)
5959         (form_threads_from_colorable_allocno, init_allocno_threads): New
5960         functions.
5961         (bucket_allocno_compare_func): Add comparison by thread frequency
5962         and threads.
5963         (add_allocno_to_ordered_bucket): Rename to
5964         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
5965         (push_only_colorable): Call form_threads_from_bucket.
5966         (color_pass): Call init_allocno_threads.  Use
5967         consideration_allocno_bitmap instead of coloring_allocno_bitmap
5968         for nuillify allocno color data.
5969         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5970         (coalesce_allocnos): Use static sorted copies.
5972 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
5974         * passes.c (execute_todo): Don't call do_per_function if
5975         flags are zero.
5976         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5977         execute_function_dump if dump_file is NULL.
5979 2013-11-13  Martin Jambor  <mjambor@suse.cz>
5981         * cgraph.c (cgraph_get_create_node): Do what
5982         cgraph_get_create_real_symbol_node used to do.
5983         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
5984         call cgraph_get_create_node.
5985         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5986         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5987         cgraph_get_create_node.  Assert we get a node.
5989 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5991         * config/aarch64/aarch64-simd.md (vec_extract): New.
5993 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5995         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5996         the constraint.
5998 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
6000         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
6001         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
6002         or if optimization is enabled.
6003         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
6004         require that all the names based on a PARM_DECL or a RESULT_DECL that
6005         isn't ignored for debug info be coalesced.
6007 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6009         * config/c6x/c6x.c: Include "gimple-expr.h".
6011 2013-11-13  Richard Biener  <rguenther@suse.de>
6013         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
6014         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
6015         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
6016         dealing with type mismatches inside component reference chains.
6018 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
6020         PR tree-optimization/59077
6021         * ipa-pure-const.c (better_state): Update *state.
6023 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
6025         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
6026         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
6027         Update offset calculations.
6029 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
6031         PR ada/35998
6032         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
6033         for fields.  Do not add the attribute if the size is negative.
6035 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6037         * config/arm/arm.c: Include aarch-cost-tables.h.
6038         (generic_extra_costs): Move from here...
6039         * config/arm/aarch-cost-tables.h: ... To here.  New file.
6041 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6042             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6043             Sergey Lega  <sergey.s.lega@intel.com>
6044             Anna Tikhonova  <anna.tikhonova@intel.com>
6045             Ilya Tocar  <ilya.tocar@intel.com>
6046             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6047             Ilya Verbin  <ilya.verbin@intel.com>
6048             Kirill Yukhin  <kirill.yukhin@intel.com>
6049             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6051         * config/i386/i386.c (ix86_print_operand): Support z-masking.
6052         * config/i386/predicate.md (const_0_to_4_operand): New.
6053         (const_0_to_5_operand): Ditto.
6054         * config/i386/sse.md (UNSPEC_COMPRESS): New.
6055         (UNSPEC_COMPRESS_STORE): Ditto.
6056         (UNSPEC_EXPAND): Ditto.
6057         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
6058         (define_mode_attr ssescalarsize): Ditto.
6059         (avx512f_load<mode>_mask): Ditto.
6060         (avx512f_store<mode>_mask): Ditto.
6061         (avx512f_storedqu<mode>_mask): Ditto.
6062         (avx512f_vmcmp<mode>3_mask): Ditto.
6063         (avx512f_fmadd_<mode>_mask): Ditto.
6064         (avx512f_fmadd_<mode>_mask3): Ditto.
6065         (avx512f_fmsub_<mode>_mask): Ditto.
6066         (avx512f_fmsub_<mode>_mask3): Ditto.
6067         (avx512f_fnmadd_<mode>_mask): Ditto.
6068         (avx512f_fnmadd_<mode>_mask3): Ditto.
6069         (avx512f_fnmsub_<mode>_mask): Ditto.
6070         (avx512f_fnmsub_<mode>_mask3): Ditto.
6071         (avx512f_fmaddsub_<mode>_mask): Ditto.
6072         (avx512f_fmaddsub_<mode>_mask3): Ditto.
6073         (avx512f_fmsubadd_<mode>_mask): Ditto.
6074         (avx512f_fmsubadd_<mode>_mask3): Ditto.
6075         (vec_unpacku_float_lo_v16si): Ditto.
6076         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
6077         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
6078         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
6079         (vec_extract_lo_<mode>_maskm): Ditto.
6080         (vec_extract_hi_<mode>_maskm): Ditto.
6081         (avx512f_vternlog<mode>_mask): Ditto.
6082         (avx512f_shufps512_mask): Ditto.
6083         (avx512f_fixupimm<mode>_mask): Ditto.
6084         (avx512f_shufpd512_mask): Ditto.
6085         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
6086         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
6087         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
6088         (ashr<mode>3<mask_name>): Ditto.
6089         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
6090         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
6091         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
6092         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
6093         (avx512f_pshufdv3_mask): Ditto.
6094         (avx512f_perm<mode>_mask): Ditto.
6095         (avx512f_vpermi2var<mode>3_mask): Ditto.
6096         (avx512f_vpermt2var<mode>3_mask): Ditto.
6097         (avx512f_compress<mode>_mask): Ditto.
6098         (avx512f_compressstore<mode>_mask): Ditto.
6099         (avx512f_expand<mode>_mask): Ditto.
6100         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
6101         to support masking.
6102         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
6103         (<plusminus_insn><mode>3<mask_name>): Ditto.
6104         (*<plusminus_insn><mode>3<mask_name>): Ditto.
6105         (mul<mode>3<mask_name>): Ditto.
6106         (*mul<mode>3<mask_name>): Ditto.
6107         (<sse>_div<mode>3<mask_name>): Ditto.
6108         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
6109         (<sse>_sqrt<mode>2<mask_name>): Ditto.
6110         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
6111         (<code><mode>3<mask_name>/smaxmin): Ditto.
6112         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
6113         (*<code><mode>3<mask_name>/smaxmin): Ditto.
6114         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
6115         (ufloatv16siv16sf2<mask_name>): Ditto.
6116         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
6117         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
6118         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
6119         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
6120         (ufloatv8siv8df<mask_name>): Ditto.
6121         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
6122         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
6123         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
6124         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
6125         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
6126         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
6127         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
6128         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
6129         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
6130         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
6131         (vec_extract_lo_<mode><mask_name>): Ditto.
6132         (vec_extract_hi_<mode><mask_name>): Ditto.
6133         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6134         (avx512f_movddup512<mask_name>): Ditto.
6135         (avx512f_unpcklpd512<mask_name>): Ditto.
6136         (*avx512f_unpcklpd512<mask_name>): Ditto.
6137         (*avx512f_vmscalef<mode>): Ditto.
6138         (avx512f_scalef<mode><mask_name>): Ditto.
6139         (avx512f_getexp<mode><mask_name>): Ditto.
6140         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
6141         (avx512f_rndscale<mode><mask_name>): Ditto.
6142         (avx512f_shufps512_1<mask_name>): Ditto.
6143         (avx512f_shufpd512_1<mask_name>): Ditto.
6144         (<plusminus_insn><mode>3<mask_name>): Ditto.
6145         (*<plusminus_insn><mode>3<mask_name>): Ditto.
6146         (vec_widen_umult_even_v16si<mask_name>): Ditto.
6147         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
6148         (vec_widen_smult_even_v16si<mask_name>): Ditto.
6149         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
6150         (mul<mode>3<mask_name>): Ditto.
6151         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
6152         (<shift_insn><mode>3<mask_name>): Ditto.
6153         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
6154         (avx512f_<rotate><mode><mask_name>): Ditto.
6155         (<code><mode>3<mask_name>/maxmin): Ditto.
6156         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
6157         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
6158         (*andnot<mode>3<mask_name>): Ditto.
6159         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
6160         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
6161         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
6162         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
6163         (vec_set_lo_<mode><mask_name>): Ditto.
6164         (vec_set_hi_<mode><mask_name>): Ditto.
6165         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
6166         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
6167         (avx512f_pshufd_1<mask_name>): Ditto.
6168         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
6169         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
6170         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
6171         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
6172         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
6173         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
6174         (avx512er_exp2<mode><mask_name>): Ditto.
6175         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
6176         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
6177         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
6178         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
6179         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
6180         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
6181         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
6182         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
6183         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
6184         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
6185         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
6186         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
6187         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
6188         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
6189         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
6190         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
6191         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
6192         (avx512f_getmant<mode><mask_name>): Ditto.
6193         (clz<mode>2<mask_name>): Ditto.
6194         (<mask_codefor>conflict<mode><mask_name>): Ditto.
6195         (*srcp14<mode>): Remove visibility.
6196         (*rsqrt14<mode>): Ditto.
6197         (*fma_fmsub_<mode>): Ditto.
6198         (*fma_fnmadd_<mode>): Ditto.
6199         (*avx512f_rndscale<mode>): Ditto.
6200         * config/i386/subst.md: New file.
6202 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
6204         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
6205         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
6206         (atomic_load_explicit, atomic_exchange_explicit)
6207         (atomic_compare_exchange_strong_explicit)
6208         (atomic_compare_exchange_weak_explicit): Use __auto_type to
6209         declare variable initialized with PTR argument.
6211 2013-11-12  Jeff Law  <law@redhat.com>
6213         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
6214         backedge_seen_p.  Set, use and pass it to children appropriately.
6215         (thread_through_normal_block): Similarly.
6216         (thread_across_edge): Similarly.
6218         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
6219         memory references as volatile.
6220         (insert_trap_and_remove_trailing_statements): Fix comment.
6222 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
6224         PR other/58712
6225         * ira-costs.c (record_operand_costs): Check operands number for
6226         the single set.
6228 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6230         PR target/59054
6231         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
6232         constraints that would allow DImode into the traditional Altivec
6233         registers, but cause undesirable code generation when loading 0 as
6234         a constant.
6235         (movdi_internal64): Likewise.
6236         (cmp<mode>_fpr): Do not use %x for CR register output.
6237         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
6238         -mallow-upper-sf debug switches are used.
6240 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
6242         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
6243         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
6244         Relocate prototypes from gimple.h.
6245         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
6246         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
6247         from gimple.h.
6248         * gimple.h: Move some prototypes to gimplify.h.
6249         (gimple_predicate, enum fallback, enum gimplify_status): Move to
6250         gimplify.h.
6251         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
6252         Relocate from gimpify.c.
6253         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6254         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
6255         is_gimple_reg_rhs) Relocate from gimplify.c.
6256         * gimplify.c (mark_addressable): Move to gimple-expr.c.
6257         (gimple_seq_add_stmt_without_update): Move to gimple.c.
6258         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6259         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
6260         is_gimple_reg_rhs): Move to gimple-expr.c.
6261         (should_carry_location_p): Move to gimple.c.
6262         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
6263         to gimple.h.
6264         (annotate_one_with_location, annotate_all_with_location_after,
6265         annotate_all_with_location): Move to gimple.c.
6266         (compare_case_labels, sort_case_labels,
6267         preprocess_case_label_vec_for_gimple): Move to gimple.c.
6268         (rhs_predicate_for): Make static.
6269         (gimplify_assign): Relocate from gimple.c.
6270         * gimple.c (gimplify_assign): Move to gimplify.c.
6271         (gimple_seq_add_stmt_without_update, should_carry_location_p,
6272         annotate_one_with_location, annotate_all_with_location_after,
6273         annotate_all_with_location, compare_case_labels, sort_case_labels,
6274         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6275         * tree.h (unshare_expr, unshare_expr_without_location,
6276         mark_addressable): Move prototypes to gimplify.h.
6277         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6278         tmp_var_id_num
6279         * asan.c: Include gimplify.h rather than gimple.h.
6280         * cfgloopmanip.c: Likewise.
6281         * cgraphunit.c: Likewise.
6282         * cilk-common.c: Likewise.
6283         * dwarf2out.c: Dont include gimple.h.
6284         * fold-const.c: Include gimplify.h rather than gimple.h.
6285         * function.c: Likewise.
6286         * gimple-fold.c: Likewise.
6287         * gimple-ssa-strength-reduction.c: Likewise.
6288         * graphite-clast-to-gimple.c: Likewise.
6289         * graphite-sese-to-poly.c: Likewise.
6290         * ipa-prop.c: Likewise.
6291         * ipa-split.c: Likewise.
6292         * ipa.c: Likewise.
6293         * langhooks.c: Dont include gimple.h.
6294         * loop-init.c: Include gimplify.h rather than gimple.h.
6295         * omp-low.c: Likewise.
6296         * sese.c: Likewise.
6297         * stor-layout.c: Likewise.
6298         * targhooks.c: Likewise.
6299         * trans-mem.c: Likewise.
6300         * tree-affine.c: Likewise.
6301         * tree-cfg.c: Likewise.
6302         * tree-cfgcleanup.c: Likewise.
6303         * tree-complex.c: Likewise.
6304         * tree-if-conv.c: Likewise.
6305         * tree-inline.c: Likewise.
6306         * tree-iterator.c: Likewise.
6307         * tree-loop-distribution.c: Likewise.
6308         * tree-nested.c: Likewise.
6309         * tree-parloops.c: Likewise.
6310         * tree-predcom.c: Likewise.
6311         * tree-profile.c: Likewise.
6312         * tree-scalar-evolution.c: Likewise.
6313         * tree-sra.c: Likewise.
6314         * tree-ssa-address.c: Likewise.
6315         * tree-ssa-ccp.c: Likewise.
6316         * tree-ssa-dce.c: Likewise.
6317         * tree-ssa-forwprop.c: Likewise.
6318         * tree-ssa-ifcombine.c: Likewise.
6319         * tree-ssa-loop-im.c: Likewise.
6320         * tree-ssa-loop-ivopts.c: Likewise.
6321         * tree-ssa-loop-manip.c: Likewise.
6322         * tree-ssa-loop-niter.c: Likewise.
6323         * tree-ssa-loop-prefetch.c: Likewise.
6324         * tree-ssa-loop-unswitch.c: Likewise.
6325         * tree-ssa-math-opts.c: Likewise.
6326         * tree-ssa-phiopt.c: Likewise.
6327         * tree-ssa-phiprop.c: Likewise.
6328         * tree-ssa-pre.c: Likewise.
6329         * tree-ssa-propagate.c: Likewise.
6330         * tree-ssa-reassoc.c: Likewise.
6331         * tree-ssa-sccvn.c: Likewise.
6332         * tree-ssa-strlen.c: Likewise.
6333         * tree-ssa.c: Likewise.
6334         * tree-switch-conversio: Likewise.n.c
6335         * tree-tailcall.c: Likewise.
6336         * tree-vect-data-refs.c: Likewise.
6337         * tree-vect-generic.c: Likewise.
6338         * tree-vect-loop-manip.c: Likewise.
6339         * tree-vect-loop.c: Likewise.
6340         * tree-vect-patterns.c: Likewise.
6341         * tree-vect-stmts.c: Likewise.
6342         * tsan.c: Likewise.
6343         * value-prof.c: Likewise.
6344         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6345         * config/alpha/alpha.c: Likewise.
6346         * config/darwin.c: Likewise.
6347         * config/i386/i386.c: Likewise.
6348         * config/ia64/ia64.c: Likewise.
6349         * config/mep/mep.c: Likewise.
6350         * config/mips/mips.c: Likewise.
6351         * config/rs6000/rs6000.c: Likewise.
6352         * config/s390/s390.c: Likewise.
6353         * config/sh/sh.c: Likewise.
6354         * config/sparc/sparc.c: Likewise.
6355         * config/spu/spu.c: Likewise.
6356         * config/stormy16/stormy16.c: Likewise.
6357         * config/tilegx/tilegx.c: Likewise.
6358         * config/tilepro/tilepro.c: Likewise.
6359         * config/xtensa/xtensa.c: Likewise.
6361 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
6363         * tree.c (grow_tree_vec_stat): New function ...
6364         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6365         and macro front-end.
6367 2013-11-12  Marek Polacek  <polacek@redhat.com>
6369         * final.c (update_alignments): Initialize label to NULL_RTX.
6371 2013-11-12  Jeff Law  <law@redhat.com>
6373         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6374         (insert_trap_and_remove_trailing_statements): New argument OP which
6375         is the NULL pointer.  Emit the trap after the load/store through
6376         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
6377         when trivial to do so.
6378         (isolate_path): Corresponding changes.
6379         (gimple_ssa_isolate_erroneous_path): Likewise.
6381 2013-11-12  Teresa Johnson  <tejohnson@google.com>
6382             Jan Hubicka  <jh@suse.cz>
6384         * predict.c (drop_profile): New function.
6385         (handle_missing_profiles): Ditto.
6386         (counts_to_freqs): Don't overwrite estimated frequencies
6387         when function has no profile counts.
6388         * predict.h (handle_missing_profiles): Declare.
6389         * tree-inline.c (freqs_to_counts): New function.
6390         (copy_cfg_body): Invoke freqs_to_counts as needed.
6391         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6393 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6395         PR target/59088
6396         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6397         Set for m_HASWELL.
6398         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6400 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6402         PR target/59084
6403         * config/i386/i386.c (ix86_option_override_internal): Check
6404         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6405         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6406         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6407         MASK_AVX256_SPLIT_UNALIGNED_STORE.
6409         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6410         Clear m_COREI7_AVX and update comments.
6411         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6413 2013-11-12  Martin Jambor  <mjambor@suse.cz>
6415         PR rtl-optimization/10474
6416         * ira.c (interesting_dest_for_shprep): New function.
6417         (split_live_ranges_for_shrink_wrap): Likewise.
6418         (find_moveable_pseudos): Move calculation of dominance info,
6419         df_analysios and the final anlyses to...
6420         (ira): ...here, call split_live_ranges_for_shrink_wrap.
6422 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
6424         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6425         Handle type conversion.
6427 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
6428             Jan Hubicka  <jh@suse.cz>
6430         * cgraph.c (dump_cgraph_node): Profile dump added.
6431         * cgraph.h (struct cgraph_node): New time profile variable added.
6432         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6433         * gcov-io.h (gcov_type): New profiler type introduced.
6434         * ipa-profile.c (lto_output_node): Streaming for time profile added.
6435         (input_node): Time profiler is read from LTO stream.
6436         * predict.c (maybe_hot_count_p): Hot prediction changed.
6437         * profile.c (instrument_values): New case for time profiler added.
6438         (compute_value_histograms): Read of time profile.
6439         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6440         * tree-profile.c (init_ic_make_global_vars): Time profiler
6441         function added.
6442         (gimple_init_edge_profiler): TP function instrumentation.
6443         (gimple_gen_time_profiler): New.
6444         * value-prof.c (gimple_add_histogram_value): Support for time profiler
6445         added.
6446         (dump_histogram_value): TP type added to dumps.
6447         (visit_hist): More sensitive check that takes TP into account.
6448         (gimple_find_values_to_profile): TP instrumentation.
6449         * value-prof.h (hist_type): New histogram type added.
6450         (struct histogram_value_t): Pointer to struct function added.
6451         * libgcc/Makefile.in: New GCOV merge function for TP added.
6452         * libgcov.c: function_counter variable introduced.
6453         (_gcov_merge_time_profile): New.
6454         (_gcov_time_profiler): New.
6456 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
6457             Jeff Law  <law@redhat.com>
6459         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6460         ao_ref_init_from_ptr_and_size for builtins.
6462 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
6463             H.J. Lu  <hongjiu.lu@intel.com>
6465         PR target/58853
6466         * config/i386/x86-tune.def
6467         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6468         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6469         * config/i386/i386.h
6470         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6471         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
6472         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6473         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6474         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6475         misaligned_prologue_used.  Check that
6476         desired_aling <= epilogue_size_needed.
6478 2013-11-11  Cong Hou  <congh@google.com>
6480         PR tree-optimization/59050
6481         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6483 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6485         PR middle-end/59049
6486         * expmed.c (emit_store_flag): Fail for const-const comparison.
6488 2013-11-11  Tristan Gingold  <gingold@adacore.com>
6489             Eric Botcazou  <ebotcazou@adacore.com>
6491         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6492         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6493         * tree.def (CONSTRUCTOR): Likewise.
6494         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
6495         * gimplify.c (gimplify_init_constructor): Do not clear the object when
6496         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6498 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
6500         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6501         diagnostic_finish.
6503 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6505         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6506         comparisons.
6508 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6510         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6512 2013-11-08  Jeff Law  <law@redhat.com>
6514         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6515         threading paths first, then perform PHI node checks if applicable.
6517 2013-11-10  Karlson2k  <k2k@narod.ru>
6518             Kai Tietz  <ktietz@redhat.com>
6520         PR plugin/52872
6521         * configure.ac: Adding for exported symbols check
6522         and for rdynamic-check executable-extension.
6523         * configure: Regenerated.
6525 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
6527         * mode-switching.c (optimize_mode_switching): Mark block as
6528         nontransparent, if last_mode at block exit is different from no_mode.
6530 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6532         * function.c (NAME__MAIN): Move to...
6533         * cfgexpand.c (NAME__MAIN): ...here.
6535 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
6537         * target.def (can_use_doloop_p): New hook.
6538         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6539         * doc/tm.texi: Regenerate.
6540         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6541         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6542         * hooks.c (hook_bool_dint_dint_uint_true): New function.
6543         * targhooks.h (can_use_doloop_if_innermost): Declare.
6544         * targhooks.c (can_use_doloop_if_innermost): New function.
6545         * target.h: Include double-int.h.
6546         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6547         Remove iteration count, maximum iteration count, loop depth and
6548         enter-at-top inputs from doloop_begin and doloop_end.
6549         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6550         interface.
6551         * config/arc/arc.c (arc_can_use_doloop_p): New function.
6552         (TARGET_CAN_USE_DOLOOP_P): Define.
6553         * config/arm/thumb2.md (doloop_end): Update for new interface.
6554         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6555         * config/bfin/bfin.md (doloop_end): Update for new interface.
6556         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6557         (TARGET_CAN_USE_DOLOOP_P): Define.
6558         * config/c6x/c6x.md (doloop_end): Update for new interface.
6559         * config/ia64/ia64.md (doloop_end): Update for new interface.
6560         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6561         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6562         interface.
6563         * config/mep/mep.c (mep_emit_doloop): Likewise.
6564         (TARGET_CAN_USE_DOLOOP_P): Define.
6565         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6566         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6567         * config/s390/s390.md (doloop_end): Update for new interface.
6568         * config/sh/sh.md (doloop_end): Likewise.
6569         * config/spu/spu.md (doloop_end): Likewise.
6570         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6571         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6572         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6573         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6574         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6575         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6576         interface.
6577         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6579 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
6581         PR other/59055
6582         * doc/extend.texi: Move Cilk Plus Builtins node before Other
6583         Builtins node.
6585 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
6586             Joseph Myers  <joseph@codesourcery.com>
6588         * ginclude/stdatomic.h: New file.
6589         * Makefile.in (USER_H): Add stdatomic.h.
6591 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6593         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6594         comparisons.
6596 2013-11-08  Jeff Law  <law@redhat.com>
6598         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6599         * tree-ssa-threadupdate.c (delete_thread_path): New function.
6600         (ssa_redirect_edges, thread_block_1): Use it.
6601         (thread_through_loop_header, mark_threaded_blocks): Likewise.
6602         (thread_through_all_blocks, register_jump_thread): Likewise.
6603         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6605 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
6607         * config/arm/aarch-common.c
6608         (search_term): New typedef.
6609         (shift_rtx_costs): New array.
6610         (arm_rtx_shift_left_p): New.
6611         (arm_find_sub_rtx_with_search_term): Likewise.
6612         (arm_find_sub_rtx_with_code): Likewise.
6613         (arm_early_load_addr_dep): Add sanity checking.
6614         (arm_no_early_alu_shift_dep): Likewise.
6615         (arm_no_early_alu_shift_value_dep): Likewise.
6616         (arm_no_early_mul_dep): Likewise.
6617         (arm_no_early_store_addr_dep): Likewise.
6619 2013-11-08  Richard Biener  <rguenther@suse.de>
6621         PR tree-optimization/59047
6622         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6624 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
6626         * common.opt (fcheck-pointer-bounds): Move to ...
6627         * c-family/c.opt: ... here.
6628         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6629         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6630         * langhooks.h (lang_hooks): Remove chkp_supported field.
6631         * toplev.c (process_options): Remove chkp_supported check.
6633 2013-11-08  Richard Biener  <rguenther@suse.de>
6635         PR tree-optimization/59038
6636         PR tree-optimization/58955
6637         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6638         previous change.  Handle known dependences correctly.
6640 2013-11-08  Tom de Vries  <tom@codesourcery.com>
6642         * config/rs6000/t-xilinx: Remove duplicate contents.
6644 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
6645             Joseph Myers  <joseph@codesourcery.com>
6647         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6648         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6649         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6650         (struct tree_base): Add atomic_flag field.
6651         * tree.h (TYPE_ATOMIC): New accessor macro.
6652         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6653         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6654         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6655         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6656         * tree.c (set_type_quals): Set TYPE_ATOMIC.
6657         (find_atomic_core_type): New function.
6658         (build_qualified_type): Adjust alignment for qualified types.
6659         (build_atomic_base): New function
6660         (build_common_tree_nodes): Build atomicQI_type_node,
6661         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6662         atomicTI_type_node.
6663         * print-tree.c (print_node): Print atomic qualifier.
6664         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6665         * target.def (atomic_assign_expand_fenv): New hook.
6666         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6667         * doc/tm.texi: Regenerate.
6668         * targhooks.c (default_atomic_assign_expand_fenv): New function.
6669         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6670         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6671         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6672         function type.
6673         * config/i386/i386.c (enum ix86_builtins): Add
6674         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6675         IX86_BUILTIN_FNCLEX.
6676         (bdesc_special_args): Add __builtin_ia32_fnstenv,
6677         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6678         (ix86_expand_builtin): Handle the new built-in functions.
6679         (ix86_atomic_assign_expand_fenv): New function.
6680         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6681         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6682         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6683         (fnstenv, fldenv, fnstsw, fnclex): New insns.
6685 2013-11-07  Steve Ellcey  <sellcey@mips.com>
6687         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6688         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6689         (MULTILIB_DIRNAMES): Add fp64 directory.
6690         (MULTILIB_EXCEPTIONS): Add new exclusions.
6692 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
6694         * gimplify.c (gimple_regimplify_operands): Do not set
6695         SSA_NAME_DEF_STMT.
6696         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6697         (rewrite_close_phi_out_of_ssa): Same.
6698         (rewrite_phi_out_of_ssa): Same.
6699         (rewrite_degenerate_phi): Same.
6700         (handle_scalar_deps_crossing_scop_limits): Same.
6701         * tree-if-conv.c (predicate_scalar_phi): Same.
6702         * tree-parloops.c (create_loads_for_reductions): Same.
6703         (create_final_loads_for_reduction): Same.
6704         (create_loads_and_stores_for_name): Same.
6705         (transform_to_exit_first_loop): Same.
6706         (create_parallel_loop): Same.
6707         * tree-ssa-loop-im.c
6708         (move_computations_dom_walker::before_dom_children): Same.
6709         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6710         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6711         * tree-ssa-propagate.c (substitute_and_fold): Same.
6712         * tree-vect-loop.c (vect_finalize_reduction): Same.
6713         * tree-vect-stmts.c (vectorizable_call): Same.
6715 2013-11-07  Mike Stump  <mikestump@comcast.net>
6717         * config/pdp11/pdp11.c: Include dbxout.h.
6718         * config/picochip/picochip.c: Likewise.
6720 2013-11-07  Cong Hou  <congh@google.com>
6722         PR tree-optimization/56764
6723         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6724         Combine alias checks if it is possible to amortize the runtime
6725         overhead.  Return the number of alias checks after merging.
6726         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6727         Use the function vect_create_cond_for_alias_checks () to check
6728         the number of alias checks.
6730 2013-11-07  Jeff Law  <law@redhat.com>
6732         * varpool.c (ctor_for_folding): Fix typo in comment.
6734 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
6736         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6737         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
6739 2013-11-07  Jeff Law  <law@redhat.com>
6741         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6743         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6744         No longer check if we have __builtin_trap, assume it's available.
6746 2013-11-07  Diego Novillo  <dnovillo@google.com>
6748         * attribs.c (lookup_scoped_attribute_spec): Make static.
6749         (get_attribute_namespace): Likewise.
6750         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6751         (validate_arglist): Move earlier in the file. Make static.
6752         (expand_stack_restore): Move from stmt.c
6753         (expand_stack_save): Move from stmt.c
6754         (rewrite_call_expr_array): Move earlier in the file.
6755         (rewrite_call_expr_valist): Likewise.
6756         * cfgexpand.c: Include hard-reg-set.h before tree.h
6757         Include recog.h.
6758         Include output.h.
6759         (expand_asm_loc): Move from stmt.c.
6760         (n_occurrences): Move from stmt.c.
6761         (check_operand_nalternatives): Move from stmt.c.
6762         (tree_conflicts_with_clobbers_p): Move from stmt.c.
6763         (expand_asm_operands): Move from stmt.c
6764         (expand_asm_stmt): Move from stmt.c
6765         (expand_computed_goto): Move from stmt.c
6766         (expand_goto): Move from stmt.c
6767         (expand_null_return_1): Move from stmt.c
6768         (expand_null_return): Move from stmt.c
6769         (expand_value_return): Move from stmt.c
6770         (expand_return): Move from stmt.c
6771         (expand_main_function): Move from function.c
6772         (stack_protect_prologue): Move from function.c
6773         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6774         (build_function_decl_skip_args): Move from tree.c.
6775         * explow.c (tree_expr_size): Move from tree.c.
6776         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6777         (fields_length): Move from tree.c.
6778         * fold-const.c (size_low_cst): Move from tree.c.
6779         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6780         (tree_expr_nonzero_p): Make static. Move earlier in the file.
6781         (fold_build3_initializer_loc): Remove.
6782         (tree_invalid_nonnegative_warnv_p): Make static.
6783         * function.c (expand_main_function): Move to cfgexpand.c.
6784         (stack_protect_prologue): Move to cfgexpand.c.
6785         (set_insn_locations): Move earlier in the file.
6786         * gimple-fold.c: Include langhooks.h.
6787         (truth_type_for): Move from tree.c.
6788         * print-tree.c (print_vec_tree): Remove.
6789         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6790         (expand_goto): Move to cfgexpand.c.
6791         (n_occurrences): Move to cfgexpand.c.
6792         (expand_asm_loc): Move to cfgexpand.c
6793         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6794         (expand_asm_operands): Move to cfgexpand.c.
6795         (expand_asm_stmt): Move to cfgexpand.c.
6796         (check_operand_nalternatives): Move to cfgexpand.c
6797         (expand_null_return): Move to cfgexpand.c.
6798         (expand_value_return): Move to cfgexpand.c.
6799         (expand_null_return_1): Move to cfgexpand.c.
6800         (expand_return): Move to cfgexpand.c.
6801         (expand_stack_save): Move to builtins.c.
6802         (expand_stack_restore): Move to builtins.c
6803         * symtab.c: Include output.h.
6804         (decl_assembler_name_hash): Move from tree.c.
6805         (decl_assembler_name_equal): Move from tree.c.
6806         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6807         * tree-eh.c (in_array_bounds_p): Move from tree.c.
6808         (range_in_array_bounds_p): Move from tree.c.
6809         * tree-object-size.c (fini_object_sizes): Make static.
6810         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6811         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6812         * tree.c (decl_assembler_name_equal): Move to symtab.c.
6813         (tree_expr_size): Move to explow.c.
6814         (decl_assembler_name_hash): Move to symtab.c.
6815         (real_twop): Remove.
6816         (tree_expr_size): Move to explow.c.
6817         (stabilize_reference_1): Move earlier in the file. Make static.
6818         (omp_remove_redundant_declare_simd_attrs): Remove.
6819         (simple_cst_list_equal): Move earlier in the file. Make static.
6820         (size_low_cst): Move to fold-const.c.
6821         (build_type_no_quals): Remove.
6822         (build_function_type_skip_args): Move to cgraphclones.c.
6823         (build_function_decl_skip_args): Move to cgraphclones.c.
6824         (in_array_bounds_p): Move to tree-eh.c.
6825         (range_in_array_bounds_p): Move to tree-eh.c.
6826         (truth_type_for): Move to gimple-fold.c.
6827         (list_equal_p): Remove.
6828         * tree.h (decl_assembler_name_equal): Remove.
6829         (decl_assembler_name_hash): Remove.
6830         (truth_type_for): Remove.
6831         (build_type_no_quals): Remove.
6832         (build_function_decl_skip_args): Remove.
6833         (in_array_bounds_p): Remove.
6834         (range_in_array_bounds_p): Remove.
6835         (size_low_cst): Remove.
6836         (omp_remove_redundant_declare_simd_attrs): Remove.
6837         (tree_expr_size): Remove.
6838         (fields_length): Remove.
6839         (stabilize_reference_1): Remove.
6840         (expand_goto): Remove.
6841         (expand_stack_save): Remove.
6842         (expand_stack_restore): Remove.
6843         (expand_return): Remove.
6844         (fold_build3_initializer_loc): Remove.
6845         (tree_expr_nonzero_p): Remove.
6846         (tree_invalid_nonnegative_warnv_p): Remove.
6847         (tree_expr_nonzero_warnv_p): Remove.
6848         (fold_builtin_snprintf_chk): Remove.
6849         (validate_arglist): Remove.
6850         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6851         (simple_cst_list_equal): Remove.
6852         (real_twop): Remove.
6853         (expand_main_function): Remove.
6854         (stack_protect_prologue): Remove.
6855         (print_vec_tree): Remove.
6856         (lookup_scoped_attribute_spec): Remove.
6857         (get_attribute_namespace): Remove.
6858         (expand_computed_goto): Remove.
6859         (expand_asm_stmt): Remove.
6860         (list_equal_p): Remove.
6861         (ssa_name_nonnegative_p): Remove.
6862         (fini_object_sizes): Remove.
6863         (addr_expr_of_non_mem_decl_p): Remove.
6864         (is_tm_safe_or_pure): Move to trans-mem.c.
6865         (more_const_call_expr_args_p): Remove.
6866         (save_vtable_map_decl): Remove.
6868 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
6870         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6871         linker plugins, too.
6873         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6874         link to libgomp and its dependencies.
6875         * config/ia64/hpux.h (LIB_SPEC): Likewise.
6876         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6877         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6878         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6880 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
6882         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6883         (determine_value_range): Add loop argument.  Use get_range_info to
6884         improve range.
6885         (bound_difference): Adjust caller.
6887 2013-11-07  Richard Biener  <rguenther@suse.de>
6888             Jakub Jelinek  <jakub@redhat.com>
6890         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6891         latches from header PHI arguments from the latch edge.
6893 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
6895         PR c++/58176
6896         * varasm.c (output_constant): Handle NULLPTR_TYPE.
6898 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6900         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6901         misaligned_prologue_used when it has been set.
6903 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
6904             Jakub Jelinek  <jakub@redhat.com>
6906         PR sanitizer/59029
6907         * asan.c (get_mem_refs_of_builtin_call): Allow
6908         integer literals as addresses in instrumented builtins.
6910 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6912         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6913         Explain why plus_constant is not used.
6915 2013-11-07  Richard Biener  <rguenther@suse.de>
6917         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6918         (canonicalize_value): ... this.  Also handle stripping of
6919         TREE_OVERFLOW.
6920         (get_value, set_lattice_value, get_value_for_expr): Adjust.
6921         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6922         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6924 2013-11-07  Richard Biener  <rguenther@suse.de>
6926         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6928 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6930         PR target/59034
6931         * config/i386/i386.md (push peepholer/splitter): Use Pmode
6932         with stack_pointer_rtx.
6934 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6936         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6937         using operand_equal_p.
6939 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6941         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6942         * tree-affine.c (get_inner_reference_aff): Return base.
6943         * tree-affine.h (get_inner_reference_aff): Change prototype.
6945 2013-11-06  Tobias Burnus  <burnus@net-b.de>
6947         * doc/invoke.texi (Wdate-time): Fix typo.
6949 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6951         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6952         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6953         fp_arith_reg_operand instead of arith_reg_operand.
6955 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6957         * config/sh/sh.md (adddi3): Remove empty constraints.
6958         Remove can_create_pseudo_p and arith_reg_operand check.
6959         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6960         Split before reload.
6962 2013-11-06  Jeff Law  <law@redhat.com>
6963             Tom Tromey  <tromey@redhat.com>
6965         * gdbinit.in: Disable strict type checking.
6967 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
6969         * tree-pass.h (make_pass_live_range_shrinkage): New external.
6970         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6971         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6972         (rest_of_handle_live_range_shrinkage): Ditto
6973         (class pass_live_range_shrinkage): Ditto.
6974         (pass_data_live_range_shrinkage): Ditto.
6975         (make_pass_live_range_shrinkage): Ditto.
6976         * sched-int.h (initialize_live_range_shrinkage): New prototype.
6977         (finish_live_range_shrinkage): Ditto.
6978         * sched-deps.c (create_insn_reg_set): Make void return value.
6979         * passes.def: Add pass_live_range_shrinkage.
6980         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6981         * haifa-sched.c (live_range_shrinkage_p): New.
6982         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6983         New functions.
6984         (rank_for_schedule): Add code for pressure relief through live
6985         range shrinkage.
6986         (schedule_insn): Print more debug info.
6987         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6988         through live range shrinkage.
6989         * doc/invoke.texi (-flive-range-shrinkage): New.
6990         * common.opt (flive-range-shrinkage): New.
6992 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
6994         PR target/59021
6995         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6996         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6997         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6998         RTXes that return in AVX256 register.
7000 2013-11-06  Richard Biener  <rguenther@suse.de>
7002         PR tree-optimization/58653
7003         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
7004         (prepare_initializers_chain): Adjust.
7006 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
7008         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
7009         (gimple_in_transaction): Use bb_in_transaction.
7010         * basic-block.h (bb_in_transaction): Relocate here and rename.
7011         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
7013 2013-11-06  Richard Biener  <rguenther@suse.de>
7015         * tree.c (drop_tree_overflow): New function.
7016         * tree.h (drop_tree_overflow): Declare.
7017         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
7018         * tree-vrp.c (range_int_cst_singleton_p): Use
7019         is_overflow_infinity instead of testing TREE_OVERFLOW.
7020         (extract_range_from_assert): Likewise.
7021         (zero_nonzero_bits_from_vr): Likewise.
7022         (extract_range_basic): Likewise.
7023         (register_new_assert_for): Use drop_tree_overflow.
7024         (vrp_visit_phi_node): Likewise.
7026 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
7028         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
7029         checking for leaf functions without dynamic stack allocation.
7030         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
7031         (ia64_expand_prologue): Likewise.
7032         * config/mips/mips.c (mips_expand_prologue): Likewise.
7033         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7034         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7035         (sparc_flat_expand_prologue): Likewise.
7037 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
7039         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
7040         (__ST3_LANE_FUNC): Likewise.
7041         (__ST4_LANE_FUNC): Likewise.
7043 2013-11-06  Nick Clifton  <nickc@redhat.com>
7045         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
7046         name returned by msp430_mcu_name.
7047         (LIB_SPEC): If a -T option has not been specified then set a
7048         default, mcu-specific, linker script.
7049         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
7050         * config/msp430/msp430.c (msp430x_names): Likewise.
7051         Alpha sort the names for ease of comparison.
7052         (msp430_mcu_name): New function:  Returns a string suitable for
7053         use as a C preprocessor symbol based upon the name of the MCU
7054         being targeted.
7055         (msp430_option_override): Accept msp430x and msp430xv2 as generic
7056         mcu names.
7057         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
7059         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
7060         unless it is the last part of a spec substring.
7061         * doc/invoke.texi (Spec Files): Document space insertion
7062         behaviour of %*.
7064 2013-11-06  Christian Bruel  <christian.bruel@st.com>
7066         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
7067         Factorize probabilities, Use adjust_address instead of
7068         adjust_automodify_address when possible. Enable for optimize.
7069         (sh_expand_strlen): New function.
7070         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
7071         * config/sh/sh.md (strlensi): New pattern.
7072         (UNSPEC_BUILTIN_STRLEN): Define.
7074 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
7076         PR middle-end/58970
7077         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
7078         (expand_assignment): If *bitpos is negative, set *offset
7079         and adjust *bitpos, so that it is not negative.
7081 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
7083         * config/i386/bdver3.md : Added two additional decoder units
7084         to support issue rate of 4 and remodeled vector unit.
7085         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
7086         architectures is set to 4.
7087         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
7088         lookahead is set to 4 for BD architectures.
7090 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7092         * config/rs6000/rs6000.c (rs6000_option_override_internal):
7093         Remove restriction against use of VSX instructions when generating
7094         code for little endian mode.
7096 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7098         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
7099         for both big and little endian.
7100         (mulv8hi3): Swap input operands for merge high and merge low
7101         instructions for little endian.
7103 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7105         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
7106         define_insn to define_expand that uses even patterns for big
7107         endian and odd patterns for little endian.
7108         (vec_widen_smult_even_v16qi): Likewise.
7109         (vec_widen_umult_even_v8hi): Likewise.
7110         (vec_widen_smult_even_v8hi): Likewise.
7111         (vec_widen_umult_odd_v16qi): Likewise.
7112         (vec_widen_smult_odd_v16qi): Likewise.
7113         (vec_widen_umult_odd_v8hi): Likewise.
7114         (vec_widen_smult_odd_v8hi): Likewise.
7115         (altivec_vmuleub): New define_insn.
7116         (altivec_vmuloub): Likewise.
7117         (altivec_vmulesb): Likewise.
7118         (altivec_vmulosb): Likewise.
7119         (altivec_vmuleuh): Likewise.
7120         (altivec_vmulouh): Likewise.
7121         (altivec_vmulesh): Likewise.
7122         (altivec_vmulosh): Likewise.
7124 2013-11-05  Mike Stump  <mikestump@comcast.net>
7126         * Makefile.in (mostlyclean): Remove c-family objects.
7128 2013-11-05  Ian Lance Taylor  <iant@google.com>
7130         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7131         If possible, add .cfi directives to record change to bx.
7132         * config/i386/i386.c (ix86_emit_cfi): New function.
7133         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7135 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
7137         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
7138         immediately after a label for a tablejump pattern.
7140         * config/arm/arm.c (is_jump_table): Remove.
7141         (create_fix_barrier): Use tablejump_p instead.
7142         (arm_reorg): Likewise.
7143         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
7144         (thumb2_output_casesi): Likewise.
7145         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
7146         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
7147         casesi_shift_media, casesi_load_media): Likewise.
7148         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
7149         * config/microblaze/microblaze.md: Likewise.
7151 2013-11-05  Tobias Burnus  <burnus@net-b.de>
7153         * doc/invoke.texi (-Wdate-time): Document.
7155 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
7157         * double-int.c (lshift_double, rshift_double): Remove
7158         SHIFT_COUNT_TRUNCATED handling.
7160 2013-11-05  Jeff Law  <law@redhat.com>
7162         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
7163         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
7164         * gimple-ssa-isolate-paths.c: New file.
7165         * gimple.c (check_loadstore): New function.
7166         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
7167         Verify OP is in the argument list and the argument corresponding
7168         to OP is a pointer type.  Use operand_equal_p rather than
7169         pointer equality when testing if OP is on the nonnull list.
7170         Use check_loadstore rather than count_ptr_derefs.  Handle
7171         GIMPLE_RETURN statements.
7172         * tree-vrp.c (infer_nonnull_range): Remove.
7173         * gimple.h (infer_nonnull_range): Declare.
7174         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
7175         * passes.def: Add pass_isolate_erroneous_paths.
7176         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
7177         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
7178         * tree-ssa.c (struct count_ptr_d): Remove.
7179         (count_ptr_derefs, count_uses_and_derefs): Remove.
7180         * tree-ssa.h (count_uses_and_derefs): Remove.
7182 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
7184         PR rtl-optimization/58997
7185         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
7186         get_iv_value to be in iv->mode rather than iv->extend_mode.
7187         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
7188         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
7189         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
7190         mode.
7192 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
7194         * gimple.h: Move some prototypes to gimple-expr.h and add to include
7195         list.
7196         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
7197         Move to gimple-expr.h.
7198         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
7199         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
7200         is_gimple_id, virtual_operand_p, is_gimple_addressable,
7201         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
7202         Relocate here.
7203         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
7204         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
7205         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
7206         is_gimple_address, is_gimple_invariant_address,
7207         is_gimple_ip_invariant_address, is_gimple_min_invariant,
7208         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
7209         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
7210         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
7211         gimple_decl_printable_name, useless_type_conversion_p,
7212         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
7213         gimple-expr.[ch].
7214         * gimple-expr.c: New File.
7215         (useless_type_conversion_p, gimple_set_body, gimple_body,
7216         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
7217         gimple_can_coalesce_p, extract_ops_from_tree_1,
7218         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
7219         is_gimple_address, is_gimple_invariant_address,
7220         is_gimple_ip_invariant_address, is_gimple_min_invariant,
7221         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
7222         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
7223         is_gimple_mem_ref_addr): Relocate here.
7224         * Makefile.in (OBJS): Add gimple-expr.o.
7226 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
7228         * gengtype-parse.c (struct_field_seq): Support empty structs.
7230 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
7232         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
7234 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
7236         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
7237         for !TARGET_80387.
7238         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
7239         _SOFT_FLOAT here.
7240         (LONG_DOUBLE_TYPE_SIZE): New define.
7241         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
7243 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
7245         PR c++/58724
7246         * doc/extend.texi [visibility ("visibility_type")]: Add example
7247         about visibility attribute on namespace declaration.
7249 2013-11-05  Richard Biener  <rguenther@suse.de>
7251         PR ipa/58492
7252         * passes.def (all_passes): Start with pass_fixup_cfg again.
7254 2013-11-05  Richard Biener  <rguenther@suse.de>
7256         PR tree-optimization/58955
7257         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
7258         edge direction.
7260 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7262         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
7263         little endian.
7264         (vec_pack_ufix_trunc_v2df): Likewise.
7266 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
7268         PR middle-end/58981
7269         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7270         pattern, instead of word_mode.
7272         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7273         Pmode for size.
7274         (set_storage_via_setmem): Likewise.
7276 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
7278         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7279         gimple.h and the rest of the condition in eliminate_build.
7280         (eliminate_build): Call new routine.
7281         * gimple.h (phi_ssa_name_p): Delete.
7283 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
7285         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7286         case of no prefix and reserving zero slots, because when that's the
7287         case we'll never get here.
7288         * vec.h (va_heap::reserve): Don't try and handle
7289         vec_prefix::calculate_allocation returning zero because that should
7290         never happen.
7292 2013-11-05  Richard Biener  <rguenther@suse.de>
7294         PR middle-end/58941
7295         * tree-dfa.c (get_ref_base_and_extent): Merge common code
7296         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
7297         process trailing array detection before diving into the
7298         view-converted object (and possibly apply some extra offset).
7300 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
7302         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7303         New function.
7304         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7306 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
7308         PR tree-optimization/58958
7309         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7310         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7312 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
7314         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7315         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7317 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
7319         PR tree-optimization/58984
7320         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7321         set *SIZE_P if non-NULL on success.
7322         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7323         callers.
7324         (ipcp_transform_function): Likewise.  Punt if size of access
7325         is different from TYPE_SIZE on v->value's type.
7327 2013-11-05  Tobias Burnus  <burnus@net-b.de>
7329         * doc/invoke.texi (-fopenmp-simd): Document new option.
7330         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7331         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7332         * tree.c (attribute_value_equal): Ditto.
7334 2013-11-04  Wei Mi  <wmi@google.com>
7336         * sched-rgn.c (add_branch_dependences): Keep insns in
7337         a SCHED_GROUP at the end of BB to remain their location.
7339 2013-11-04  Wei Mi  <wmi@google.com>
7341         * config/i386/i386.c (memory_address_length): Extract a part
7342         of code to rip_relative_addr_p.
7343         (rip_relative_addr_p): New Function.
7344         (ix86_macro_fusion_p): Ditto.
7345         (ix86_macro_fusion_pair_p): Ditto.
7346         * config/i386/i386.h: Add new tune features about macro-fusion.
7347         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7348         * doc/tm.texi: Generated.
7349         * doc/tm.texi.in: Ditto.
7350         * haifa-sched.c (try_group_insn): New Function.
7351         (group_insns_for_macro_fusion): Ditto.
7352         (sched_init): Call group_insns_for_macro_fusion.
7353         * target.def: Add two hooks: macro_fusion_p and
7354         macro_fusion_pair_p.
7356 2013-11-04  Kostya Serebryany  <kcc@google.com>
7358         Update to match the changed asan API.
7359         * asan.c (asan_function_start): New function.
7360         (asan_emit_stack_protection): Update the string stored in the
7361         stack red zone to match new API.  Store the PC of the current
7362         function in the red zone.
7363         (asan_global_struct): Update the __asan_global definition to match
7364         the new API.
7365         (asan_add_global): Ditto.
7366         * asan.h (asan_function_start): New prototype.
7367         * final.c (final_start_function): Call asan_function_start.
7368         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7369         to __asan_init_v3.
7371 2013-11-04  Wei Mi  <wmi@google.com>
7373         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7374         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7375         * config/i386/i386.c (ix86_option_override_internal): Ditto.
7376         (ix86_issue_rate): Ditto.
7377         (ix86_adjust_cost): Ditto.
7378         (ia32_multipass_dfa_lookahead): Ditto.
7379         (ix86_sched_init_global): Ditto.
7380         (get_builtin_code_for_version): Ditto.
7381         * config/i386/i386.h (enum target_cpu_default): Ditto.
7382         (enum processor_type): Ditto.
7383         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7385 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7387         PR rtl-optimization/58967
7388         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7389         !lra_in_progress for mode sizes bigger word.
7391 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7393         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7394         arguments to merge instruction for little endian.
7395         (vec_widen_umult_lo_v16qi): Likewise.
7396         (vec_widen_smult_hi_v16qi): Likewise.
7397         (vec_widen_smult_lo_v16qi): Likewise.
7398         (vec_widen_umult_hi_v8hi): Likewise.
7399         (vec_widen_umult_lo_v8hi): Likewise.
7400         (vec_widen_smult_hi_v8hi): Likewise.
7401         (vec_widen_smult_lo_v8hi): Likewise.
7403 2013-11-04  Ian Lance Taylor  <iant@google.com>
7405         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7406         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7407         builtins that take pointers.
7408         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7409         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7410         (run_gcc): Pass -fnon-call-exceptions.
7412 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7414         * optabs.c (expand_vec_perm): Revert one incorrect line from
7415         2013-10-31 change.
7417         PR tree-optimization/58978
7418         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7419         use_stmt by single_imm_use directly.  Only call single_imm_use
7420         on SSA_NAMEs.
7422 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7424         PR rtl-optimization/58968
7425         * lra-spills.c (return_regno_p): New function.
7426         (lra_final_code_change): Use it.
7428 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
7430         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7431         * target.def (float_exceptions_rounding_supported_p): New hook.
7432         * targhooks.c (default_float_exceptions_rounding_supported_p): New
7433         function.
7434         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7435         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7436         New @hook.
7437         * doc/tm.texi: Regenerate.
7438         * config.gcc (powerpc*-*-linux*): Set extra_objs.
7439         * config/rs6000/rs6000-linux.c: New file.
7440         * config/rs6000/rs6000-protos.h
7441         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7442         * config/rs6000/linux.h
7443         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7444         * config/rs6000/linux64.h
7445         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7446         * config/rs6000/t-linux (rs6000-linux.o): New rule.
7447         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7449 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7451         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7452         Replace the define_insn_and_split with a define_insn and two
7453         define_splits, with the split after reload re-permuting the source
7454         register to its original value.
7455         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7456         (*vsx_le_perm_store_v8hi): Likewise.
7457         (*vsx_le_perm_store_v16qi): Likewise.
7459 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7461         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
7462         little endian.
7464 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7466         PR tree-optimization/58946
7467         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7468         bbs with bbinfo[idx].op != NULL before all blocks with
7469         bbinfo[idx].op == NULL.
7471 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
7473         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7474         (avr_dump_double_int_hex): Likewise.
7475         (avr_log_vadump): Remove %D and %X handling.
7476         * config/avr/avr.c (avr_double_int_push_digit): Delete.
7477         (avr_map_op_t): Change map from double_int to unsigned int.
7478         (avr_map_op): Update accordingly.
7479         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7480         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7481         unsigned ints rather than double_ints.
7483 2013-11-03  Marek Polacek  <polacek@redhat.com>
7485         Implement -fsanitize=vla-bound.
7486         * opts.c (common_handle_option): Handle vla-bound.
7487         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7488         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7489         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7491 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7493         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7494         little endian.
7496 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
7498         * config/i386/constraints.md (Ts, Tv): New address constrains.
7499         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7500         constraint for address_no_seg_operand.
7501         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7502         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7503         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7504         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7505         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7506         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7507         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7508         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7509         constraint for vsib_address_operand.
7511 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
7513         * gcse.c (pre_delete): Remove references to regmove from comments.
7514         * recog.c: (validate_replace_rtx_1): Likewise.
7515         * config/rl78/rl78.c: Likewise.
7516         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7517         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7518         * common/config/mmix/mmix-common.c: Likewise.
7520 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
7522         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7523         * gimplify.c (gimplify_compound_lval): Likewise.
7524         * graphite-clast-to-gimple.c (gloog): Likewise.
7525         * graphite-dependences.c (loop_is_parallel_p): Likewise.
7526         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7527         (limit_scop); Likewise.
7528         (build_scops): Likewise.
7529         (dot_scop): Likewise.
7530         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7531         (build_scop_drs): Likewise.
7532         (insert_stmts): Likewise.
7533         (insert_out_of_ssa_copy): Likewise.
7534         (remove_phi): Likewise.
7535         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7536         * hw-doloop.c (discover_loop): Likewise.
7537         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7538         * tree-dfa.c (dump_enumerated_decls): Likewise.
7539         * tree-if-conv.c (if_convertable_loop_p): Likewise.
7540         * tree-inline.c (tree_function_versioning): Likewise.
7541         * tree-loop-distribution.c (build_rdg): Likewise.
7542         (rdg_flag_vertex_and_dependent): Likewise.
7543         (distribute_loop): Likewise.
7544         * tree-parloops.c (loop_parallel_p): Likewise.
7545         (eliminate_local_variables): Likewise.
7546         (separate_decls_in_region): Likewise.
7547         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7548         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7549         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7550         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7551         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7552         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7553         (vectorizable_condition): Likewise.
7555 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
7557         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7558         * configure: Regenerate.
7559         * config/i386/i386.md (*movdi_internal): Change
7560         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7561         (*movdf_internal): Ditto.
7562         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7563         * config/i386/sse.md (vec_concatv2di): Output interunit movq
7564         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7566 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
7568         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7569         after comment.
7571 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7573         Automated part of renaming of symtab_node_base to symtab_node.
7575         Patch autogenerated by rename_symtab.py from
7576         https://github.com/davidmalcolm/gcc-refactoring-scripts
7577         revision 58bb219cc090b2f4516a9297d868c245495ee622
7578         with ChangeLog entry fixed up by hand.
7580         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7581         symtab_node.
7582         (cgraph_node_for_asm): Likewise.
7583         * cgraph.h (symtab_node_base): Likewise.
7584         (cgraph_node): Likewise.
7585         (varpool_node): Likewise.
7586         (is_a_helper <cgraph_node>::test): Likewise.
7587         (is_a_helper <varpool_node>::test): Likewise.
7588         (symtab_nodes): Likewise.
7589         (symtab_register_node): Likewise.
7590         (symtab_unregister_node): Likewise.
7591         (symtab_remove_node): Likewise.
7592         (symtab_get_node): Likewise.
7593         (symtab_node_for_asm): Likewise.
7594         (symtab_node_asm_name): Likewise.
7595         (symtab_node_name): Likewise.
7596         (symtab_insert_node_to_hashtable): Likewise.
7597         (symtab_add_to_same_comdat_group): Likewise.
7598         (symtab_dissolve_same_comdat_group_list): Likewise.
7599         (dump_symtab_node): Likewise.
7600         (debug_symtab_node): Likewise.
7601         (dump_symtab_base): Likewise.
7602         (verify_symtab_node): Likewise.
7603         (verify_symtab_base): Likewise.
7604         (symtab_used_from_object_file_p): Likewise.
7605         (symtab_alias_ultimate_target): Likewise.
7606         (symtab_resolve_alias): Likewise.
7607         (fixup_same_cpp_alias_visibility): Likewise.
7608         (symtab_for_node_and_aliases): Likewise.
7609         (symtab_nonoverwritable_alias): Likewise.
7610         (availability symtab_node_availability): Likewise.
7611         (symtab_semantically_equivalent_p): Likewise.
7612         (fixup_same_cpp_alias_visibility): Likewise.
7613         (symtab_prevail_in_asm_name_hash): Likewise.
7614         (cgraph): Likewise.
7615         (varpool): Likewise.
7616         (varpool_first_variable): Likewise.
7617         (varpool_next_variable): Likewise.
7618         (varpool_first_static_initializer): Likewise.
7619         (varpool_next_static_initializer): Likewise.
7620         (varpool_first_defined_variable): Likewise.
7621         (varpool_next_defined_variable): Likewise.
7622         (cgraph_first_defined_function): Likewise.
7623         (cgraph_next_defined_function): Likewise.
7624         (cgraph_first_function): Likewise.
7625         (cgraph_next_function): Likewise.
7626         (cgraph_first_function_with_gimple_body): Likewise.
7627         (cgraph_next_function_with_gimple_body): Likewise.
7628         (symtab_alias_target): Likewise.
7629         (symtab_real_symbol_p): Likewise.
7630         (symtab_can_be_discarded): Likewise.
7631         * cgraphbuild.c (mark_address): Likewise.
7632         (mark_load): Likewise.
7633         (mark_store): Likewise.
7634         * cgraphunit.c (decide_is_symbol_needed): Likewise.
7635         (first): Likewise.
7636         (enqueue_node): Likewise.
7637         (referred_to_p): Likewise.
7638         (cgraph_process_same_body_aliases): Likewise.
7639         (analyze_functions): Likewise.
7640         (handle_alias_pairs): Likewise.
7641         (output_weakrefs): Likewise.
7642         (compile): Likewise.
7643         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7644         * ipa-inline-analysis.c (inline_write_summary): Likewise.
7645         * ipa-prop.c (remove_described_reference): Likewise.
7646         (try_decrement_rdesc_refcount): Likewise.
7647         (ipa_edge_duplication_hook): Likewise.
7648         * ipa-ref.c (ipa_record_reference): Likewise.
7649         (ipa_maybe_record_reference): Likewise.
7650         (ipa_clone_ref): Likewise.
7651         (ipa_clone_references): Likewise.
7652         (ipa_clone_referring): Likewise.
7653         (ipa_find_reference): Likewise.
7654         (ipa_remove_stmt_references): Likewise.
7655         (ipa_clear_stmts_in_references): Likewise.
7656         * ipa-ref.h (symtab_node_base): Likewise.
7657         (ipa_ref): Likewise.
7658         (ipa_record_reference): Likewise.
7659         (ipa_maybe_record_reference): Likewise.
7660         (ipa_clone_references): Likewise.
7661         (ipa_clone_referring): Likewise.
7662         (ipa_clone_ref): Likewise.
7663         (ipa_find_reference): Likewise.
7664         (ipa_remove_stmt_references): Likewise.
7665         (ipa_clear_stmts_in_references): Likewise.
7666         * ipa-reference.c (ipa_reference_write_optimization_summary):
7667         Likewise.
7668         * ipa.c (enqueue_node): Likewise.
7669         (process_references): Likewise.
7670         (walk_polymorphic_call_targets): Likewise.
7671         (symtab_remove_unreachable_nodes): Likewise.
7672         (address_taken_from_non_vtable_p): Likewise.
7673         (comdat_can_be_unshared_p_1): Likewise.
7674         (comdat_can_be_unshared_p): Likewise.
7675         (can_replace_by_local_alias): Likewise.
7676         (function_and_variable_visibility): Likewise.
7677         * is-a.h: Likewise (within example in comment).
7678         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7679         (lto_symtab_encoder_encode): Likewise.
7680         (lto_symtab_encoder_delete_node): Likewise.
7681         (lto_symtab_encoder_in_partition_p): Likewise.
7682         (lto_set_symtab_encoder_in_partition): Likewise.
7683         (output_refs): Likewise.
7684         (compute_ltrans_boundary): Likewise.
7685         (output_symtab): Likewise.
7686         (input_node): Likewise.
7687         (input_ref): Likewise.
7688         (input_edge): Likewise.
7689         (input_cgraph_1): Likewise.
7690         (input_refs): Likewise.
7691         (output_cgraph_opt_summary): Likewise.
7692         (input_node_opt_summary): Likewise.
7693         (input_cgraph_opt_section): Likewise.
7694         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7695         Likewise.
7696         * lto-streamer-out.c (lto_output): Likewise.
7697         (output_symbol_p): Likewise.
7698         (produce_symtab): Likewise.
7699         * lto-streamer.h (lto_encoder_entry): Likewise.
7700         (lto_free_function_in_decl_state_for_node): Likewise.
7701         (lto_symtab_encoder_encode): Likewise.
7702         (lto_symtab_encoder_delete_node): Likewise.
7703         (lto_symtab_encoder_in_partition_p): Likewise.
7704         (lto_set_symtab_encoder_in_partition): Likewise.
7705         (lto_symtab_encoder_lookup): Likewise.
7706         (lsei_node): Likewise.
7707         (lto_symtab_encoder_deref): Likewise.
7708         * symtab.c (symtab_hash): Likewise.
7709         (assembler_name_hash): Likewise.
7710         (symtab_nodes): Likewise.
7711         (hash_node): Likewise.
7712         (eq_node): Likewise.
7713         (hash_node_by_assembler_name): Likewise.
7714         (eq_assembler_name): Likewise.
7715         (insert_to_assembler_name_hash): Likewise.
7716         (unlink_from_assembler_name_hash): Likewise.
7717         (symtab_prevail_in_asm_name_hash): Likewise.
7718         (symtab_register_node): Likewise.
7719         (symtab_insert_node_to_hashtable): Likewise.
7720         (symtab_unregister_node): Likewise.
7721         (symtab_get_node): Likewise.
7722         (symtab_remove_node): Likewise.
7723         (symtab_initialize_asm_name_hash): Likewise.
7724         (symtab_node_for_asm): Likewise.
7725         (symtab_add_to_same_comdat_group): Likewise.
7726         (symtab_dissolve_same_comdat_group_list): Likewise.
7727         (symtab_node_asm_name): Likewise.
7728         (symtab_node_name): Likewise.
7729         (dump_symtab_base): Likewise.
7730         (dump_symtab_node): Likewise.
7731         (dump_symtab): Likewise.
7732         (debug_symtab_node): Likewise.
7733         (verify_symtab_base): Likewise.
7734         (verify_symtab_node): Likewise.
7735         (verify_symtab): Likewise.
7736         (symtab_used_from_object_file_p): Likewise.
7737         (symtab_node_availability): Likewise.
7738         (symtab_alias_ultimate_target): Likewise.
7739         (fixup_same_cpp_alias_visibility): Likewise.
7740         (symtab_resolve_alias): Likewise.
7741         (symtab_for_node_and_aliases): Likewise.
7742         (symtab_for_node_and_aliases): Likewise.
7743         (symtab_nonoverwritable_alias_1): Likewise.
7744         (symtab_nonoverwritable_alias): Likewise.
7745         (symtab_semantically_equivalent_p): Likewise.
7746         * value-prof.c (init_node_map): Likewise.
7747         * varasm.c (find_decl): Likewise.
7748         * varpool.c (varpool_node_for_asm): Likewise.
7749         (varpool_remove_unreferenced_decls): Likewise.
7751 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7753         Manual part of renaming of symtab_node_base to symtab_node.
7755         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7756         clashes with the preferred name for the base class.
7757         (const_symtab_node): Remove redundant typedef.
7759 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7761         * optabs.c (expand_vec_perm): Avoid vector mode punning
7762         SUBREGs in SET_DEST.
7763         * expmed.c (store_bit_field_1): Likewise.
7764         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7765         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7766         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7767         * config/i386/i386.c (ix86_expand_vector_move_misalign,
7768         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7769         ix86_expand_sse_unpack, ix86_expand_args_builtin,
7770         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7771         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7772         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7773         expand_vec_perm_vpshufb2_vpermq,
7774         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7775         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7776         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7777         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
7778         than *d itself.
7780 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
7782         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7783         Use gcc_unreachable for unhandled modes.  Do not check results of
7784         expand_simple_binop.  If not expanded to target, move the result.
7786 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
7787             Shiva Chen  <shiva0217@gmail.com>
7789         * config.gcc (nds32*-*-*): Add nds32 target.
7790         * config/nds32/nds32.c: New file.
7791         * config/nds32/nds32.h: New file.
7792         * config/nds32/nds32.md: New file.
7793         * config/nds32/constants.md: New file.
7794         * config/nds32/constraints.md: New file.
7795         * config/nds32/iterators.md: New file.
7796         * config/nds32/nds32-doubleword.md: New file.
7797         * config/nds32/nds32-intrinsic.md: New file.
7798         * config/nds32/nds32_intrinsic.h: New file.
7799         * config/nds32/nds32-modes.def: New file.
7800         * config/nds32/nds32-multiple.md: New file.
7801         * config/nds32/nds32.opt: New file.
7802         * config/nds32/nds32-opts.h: New file.
7803         * config/nds32/nds32-protos.h: New file.
7804         * config/nds32/nds32-peephole2.md: New file.
7805         * config/nds32/pipelines.md: New file.
7806         * config/nds32/predicates.md: New file.
7807         * config/nds32/t-mlibs: New file.
7808         * common/config/nds32: New directory and files.
7810         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7811         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7812         * doc/install.texi (Cross-Compiler-Specific Options): Document
7813         --with-nds32-lib for nds32 target.
7814         * doc/extend.texi (Function Attributes, Target Builtins): Document
7815         nds32 specific attributes.
7817 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
7819         * lra-constraints (process_alt_operands): Use the result
7820         elimination register for operand when matching constraints.
7822 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7824         * tree-vrp.c (maybe_set_nonzero_bits): New function.
7825         (remove_range_assertions): Call it.
7827         * tree.c (tree_ctz): New function.
7828         * tree.h (tree_ctz): New prototype.
7829         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7830         first argument from tree to const_tree.
7831         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7832         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7833         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7834         static.
7835         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7836         * tree-vect-loop.c (vect_analyze_loop_operations,
7837         vect_transform_loop): Don't force scalar loop for bound just because
7838         number of iterations is unknown, only do it if it is not known to be
7839         a multiple of vectorization_factor.
7840         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7842         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7843         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
7844         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7845         (set_nonzero_bits, get_nonzero_bits): New prototypes.
7846         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7847         a default def isn't partially constant.
7848         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7849         is known to be partially zero.
7850         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7851         to see if a default def isn't partially constant.
7852         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7853         creation of a range, if VR_RANGE, try to improve nonzero_bits from
7854         the range.
7855         (set_nonzero_bits, get_nonzero_bits): New functions.
7857         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7858         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7859         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7860         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7861         uses but in the condition and ASSERT_EXPR and the other successor of
7862         the predecessor bb is __builtin_unreachable (), set_range_info of the
7863         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7865 2013-10-31  Martin Jambor  <mjambor@suse.cz>
7867         PR rtl-optimization/58934
7868         Revert:
7869         2013-10-30  Martin Jambor  <mjambor@suse.cz>
7870         PR rtl-optimization/10474
7871         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7872         nor df analysis.
7873         (interesting_dest_for_shprep): New function.
7874         (split_live_ranges_for_shrink_wrap): Likewise.
7875         (ira): Calculate dominance info and df analysis. Call
7876         split_live_ranges_for_shrink_wrap.
7878 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
7879             Yury Gribov  <y.gribov@samsung.com>
7881         PR sanitizer/58543
7882         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7883         shadow pointer to avoid clobbering the main one.
7885 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7887         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7889 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7891         PR bootstrap/58933
7892         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
7893         it for calling update_costs_from_allocno.
7894         (assign_hard_reg): Call restore_costs_from_copies only for
7895         !retry_p.  Pass new argument to update_costs_from_copies.
7896         (color_pass): Pass new argument to update_costs_from_copies.
7897         (ira_mark_allocation_change): Ditto.
7899 2013-10-30  Sharad Singhai  <singhai@google.com>
7901         PR middle-end/58134
7902         * opts.c (common_handle_option): Remove deprecated option
7903         -ftree-vectorizer-verbose.
7904         * doc/invoke.texi (Debugging Options): Ditto.
7905         * opts-global.c (handle_common_deferred_options): Ditto.
7906         (dump_remap_tree_vectorizer_verbose): Delete.
7907         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7909 2013-10-30  DJ Delorie  <dj@redhat.com>
7911         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7912         that take no arguments.
7914 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7916         PR other/58545
7917         * reload1.c (update_eliminables_and_spill): New function, broken
7918         out of reload.
7919         (reload): Use it.  Check for frame size change after frame size
7920         alignment, and call update_eliminables_and_spill first if continue-ing.
7922 2013-10-30  Cong Hou  <congh@google.com>
7924         PR target/58762
7925         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7926         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7927         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7929 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
7931         PR rtl-optimization/58369
7932         * reload1.c (compute_reload_subreg_offset): New function.
7933         (choose_reload_regs): Use it to pass endian-correct
7934         offset to subreg_regno_offset.
7936 2013-10-30  Tobias Burnus  <burnus@net-b.de>
7938         PR other/33426
7939         * tree-cfg.c (replace_loop_annotate): Replace warning by
7940         warning_at.
7942 2013-10-30  Jason Merrill  <jason@redhat.com>
7944         * configure.ac (loose_warn): Add -Wno-format if
7945         --disable-build-format-warnings.
7947 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
7949         * cgraphunit.c (analyze_functions): Split symtab_node declarations
7950         onto multiple lines to make things easier for rename_symtab.py.
7952         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7953         (symtab_semantically_equivalent_p): Likewise.
7955 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7957         PR target/58784
7958         * lra.c (check_rtl): Remove address check before LRA work.
7960 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
7962         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7963         POINTER_PLUS_EXPR in the defining statement.
7965 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7967         * regmove.c: Remove.
7968         * tree-pass.h (make_pass_regmove): Remove.
7969         * timevar.def (TV_REGMOVE): Remove.
7970         * passes.def (pass_regmove): Remove.
7971         * opts.c (default_options_table): Remove entry for regmove.
7972         * doc/passes.texi: Remove regmove pass description.
7973         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7974         options.
7975         (-fdump-rtl-regmove): Ditto.
7976         * common.opt (foptimize-register-move, fregmove): Ignore.
7977         * Makefile.in (OBJS): Remove regmove.o.
7978         * regmove.c: Remove.
7979         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7980         and type.
7981         (struct ira_allocno) New member allocno_prefs.
7982         (ALLOCNO_PREFS): New macro.
7983         (ira_prefs, ira_prefs_num): New external vars.
7984         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7985         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7986         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7987         Ditto.
7988         (ira_add_allocno_copy_to_list): Remove prototype.
7989         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7990         (ira_pref_iterator): New type.
7991         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7992         (FOR_EACH_PREF): New macro.
7993         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7994         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
7995         code.
7996         (ira_setup_alts): New function.
7997         (decrease_live_ranges_number): New function.
7998         (ira): Call the above function.
7999         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
8000         (ira_create_allocno): Initialize allocno prefs.
8001         (pref_pool, pref_vec): New static vars.
8002         (initiate_prefs, find_allocno_pref, ira_create_pref): New
8003         functions.
8004         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
8005         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
8006         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
8007         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
8008         (ira_add_allocno_copy_to_list): Make static.  Rename to
8009         add_allocno_copy_to_list.
8010         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
8011         swap_allocno_copy_ends_if_necessary.
8012         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
8013         ira_remove_allocno_prefs.
8014         (ira_flattening): Ditto.
8015         (ira_build): Call initiate_prefs, print_prefs.
8016         (ira_destroy): Call finish_prefs.
8017         * ira-color.c (struct update_cost_record): New.
8018         (struct allocno_color_data): Add new member update_cost_records.
8019         (update_cost_record_pool): New static var.
8020         (init_update_cost_records, get_update_cost_record): New functions.
8021         (free_update_cost_record_list, finish_update_cost_records): Ditto.
8022         (struct update_cost_queue_elem): Add member from.
8023         (initiate_cost_update): Call init_update_cost_records.
8024         (finish_cost_update): Call finish_update_cost_records.
8025         (queue_update_cost, get_next_update_cost): Add new param from.
8026         (Update_allocno_cost, update_costs_from_allocno): New functions.
8027         (update_costs_from_prefs): Ditto.
8028         (update_copy_costs): Rename to update_costs_from_copies.
8029         (restore_costs_from_copies): New function.
8030         (update_conflict_hard_regno_costs): Don't go back.
8031         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
8032         more debug info.
8033         (pop_allocnos): Add priniting more debug info.
8034         (color_allocnos): Remove prefs for conflicting hard regs.
8035         Call update_costs_from_prefs.
8036         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
8037         (get_dup_num): Rename, modify, and move to ira.c
8038         (process_regs_for_copy): Add prefs.
8039         (add_insn_allocno_copies): Put src as first arg of
8040         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
8041         * ira-costs.c (record_reg_classes): Modify and move code into
8042         record_operands_costs.
8043         (find_costs_and_classes): Create prefs for the hard reg of small
8044         reg class.
8045         (process_bb_node_for_hard_reg_moves): Add prefs.
8047 2013-10-30  Richard Biener  <rguenther@suse.de>
8049         PR middle-end/57100
8050         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
8051         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
8052         as worker for ...
8053         (pre_and_rev_post_order_compute): ... which now wraps it.
8054         * graph.c (draw_cfg_nodes_no_loops): Use
8055         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
8056         on cfun.
8058 2013-10-30  Christian Bruel  <christian.bruel@st.com>
8060         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
8061         (sh_expand_cmpstr): Handle known align and schedule improvements.
8062         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
8063         * config/sh/sh.md (cmpstrnsi): New pattern.
8065 2013-10-30  Martin Jambor  <mjambor@suse.cz>
8067         PR rtl-optimization/10474
8068         * ira.c (find_moveable_pseudos): Do not calculate dominance info
8069         nor df analysis.
8070         (interesting_dest_for_shprep): New function.
8071         (split_live_ranges_for_shrink_wrap): Likewise.
8072         (ira): Calculate dominance info and df analysis. Call
8073         split_live_ranges_for_shrink_wrap.
8075 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8077         PR target/58854
8078         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
8080 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8082         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
8083         * tree.h (POINTER_BOUNDS_P): New.
8084         (BOUNDED_TYPE_P): New.
8085         (BOUNDED_P): New.
8086         (pointer_bounds_type_node): New.
8087         * tree.c (build_common_tree_nodes): Initialize
8088         pointer_bounds_type_node.
8089         * gimple.h (gimple_call_get_nobnd_arg_index): New.
8090         (gimple_call_num_nobnd_args): New.
8091         (gimple_call_nobnd_arg): New.
8092         (gimple_return_retbnd): New.
8093         (gimple_return_set_retbnd): New
8094         * gimple.c (gimple_build_return): Increase number of ops
8095         for return statement.
8096         (gimple_call_get_nobnd_arg_index): New.
8097         * gimple-pretty-print.c (dump_gimple_return): Print second op.
8099 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8101         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
8102         with "chkp ctor" and "bnd_legacy" attributes.
8103         * gimplify.c (gimplify_init_constructor): Avoid infinite
8104         loop during gimplification of bounds initializer.
8106 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8108         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
8109         (handle_bnd_legacy): New.
8110         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
8111         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
8112         attributes.
8114 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
8116         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
8117         (BT_FN_PTR_CONST_PTR): New.
8118         (BT_FN_CONST_PTR_CONST_PTR): New.
8119         (BT_FN_PTR_CONST_PTR_SIZE): New.
8120         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
8121         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
8122         (BT_FN_VOID_CONST_PTR_SIZE): New.
8123         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
8124         * chkp-builtins.def: New.
8125         * builtins.def: include chkp-builtins.def.
8126         (DEF_CHKP_BUILTIN): New.
8127         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
8128         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
8129         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
8130         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
8131         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
8132         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
8133         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
8134         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
8135         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
8136         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
8137         * common.opt (fcheck-pointer-bounds): New.
8138         * toplev.c (process_options): Check Pointer Bounds Checker is
8139         supported.
8140         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
8142 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8144         * target.def (builtin_chkp_function): New.
8145         (chkp_bound_type): New.
8146         (chkp_bound_mode): New.
8147         (fn_abi_va_list_bounds_size): New.
8148         (load_bounds_for_arg): New.
8149         (store_bounds_for_arg): New.
8150         * targhooks.h (default_load_bounds_for_arg): New.
8151         (default_store_bounds_for_arg): New.
8152         (default_fn_abi_va_list_bounds_size): New.
8153         (default_chkp_bound_type): New.
8154         (default_chkp_bound_mode): New.
8155         (default_builtin_chkp_function): New.
8156         * targhooks.c (default_load_bounds_for_arg): New.
8157         (default_store_bounds_for_arg): New.
8158         (default_fn_abi_va_list_bounds_size): New.
8159         (default_chkp_bound_type): New.
8160         (default_chkp_bound_mode); New.
8161         (default_builtin_chkp_function): New.
8162         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
8163         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8164         (TARGET_STORE_BOUNDS_FOR_ARG): New.
8165         (TARGET_BUILTIN_CHKP_FUNCTION): New.
8166         (TARGET_CHKP_BOUND_TYPE): New.
8167         (TARGET_CHKP_BOUND_MODE): New.
8168         * doc/tm.texi: Regenerated.
8169         * langhooks.h (lang_hooks): Add chkp_supported field.
8170         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
8171         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
8173 2013-10-29  Andrew Pinski <apinski@cavium.com>
8175         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
8176         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
8177         fails, combining the branches anyways.
8178         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
8179         increases the number of combinings.
8180         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
8182 2013-10-29  Mike Stump  <mikestump@comcast.net>
8184         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
8185         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
8186         (make_vector_mode): Increase namebuf to 16.
8187         (emit_insn_modes_h): When processing BImode, don't
8188         also match partial int modes.
8189         (emit_class_narrowest_mode): Likewise.
8191         * config/bfin/bfin-modes.def: Add precision to PDI.
8192         * config/m32c/m32c-modes.def: Add precision to PSI.
8193         * config/msp430/msp430-modes.def: Add precision to PSI.
8194         * config/rs6000/rs6000-modes.def: Add precision to PTI.
8195         * config/sh/sh-modes.def: Add precision to PSI and PDI.
8197 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
8199         PR target/54236
8200         * config/sh/sh.md (*addc): Rename existing variations to ...
8201         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
8202         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
8203         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
8204         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
8206 2013-10-29  Teresa Johnson  <tejohnson@google.com>
8208         PR ipa/58862
8209         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
8210         insanities when updating probabilities.
8212 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8214         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
8215         prettyprinter for cgraph_node to reflect the conversion of the
8216         symtable types to a C++ class hierarchy: it now *is* a
8217         symtab_node_base, rather than having one (named "symbol").
8219 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
8221         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
8222         __cilkrts_pop_frame.  If matched, then return true for built-in
8223         function name.
8224         (expand_builtin): Added BUILT_IN_CILK_DETACH and
8225         BUILT_IN_CILK_POP_FRAME case.
8226         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
8227         (lhs_cilk_detect_spawn): Likewise.
8228         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
8229         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
8230         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
8231         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
8232         (LANG_HOOKS_CILKPLUS): Likewise.
8233         * tree.h (CILK_SPAWN_FN): Likewise.
8234         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
8235         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
8236         (OBJS): Added cilk-common.o.
8237         (BUILTINS_DEF): Added cilk-builtins.def.
8238         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
8239         (lhd_cilk_detect_spawn): Likewise.
8240         * langhooks.h (lang_hooks_for_cilkplus): New struct.
8241         (struct lang_hooks): Added new field called "cilkplus."
8242         * cilk-common.c: New file.
8243         * cilk.h: Likewise.
8244         * cilk-builtins.def: Likewise.
8245         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
8246         "__cilk" macro and set it to 200.
8247         * function.h (struct function::cilk_frame_decl): New field.
8248         (struct function::is_cilk_function): Likewise.
8249         (struct function::calls_cilk_spawn): Likewise.
8250         * gimplify.c (gimplify_call_expr): Added a check if the function call
8251         being gimplified is a spawn detach point.  If so, then add pop_frame
8252         and detach function calls.
8253         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
8254         for gimplifying _Cilk_spawn and _Cilk_sync statements.
8255         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
8256         function.  If so, added a _Cilk_sync and gimplified it.
8257         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
8258         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
8259         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
8260         spawner function.
8261         (can_inline_edge_p): Prevent inling of spawnee function.
8262         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
8263         for functions that use Cilk keywords.
8264         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
8265         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
8266         CILK_SYNC_STMT cases.
8267         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8268         trees.
8269         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8270         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8271         * passes.texi (Cilk Keywords): New section that describes the compiler
8272         code changes for handling Cilk Keywords.
8274 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8276         Patch autogenerated by refactor_symtab.py from
8277         https://github.com/davidmalcolm/gcc-refactoring-scripts
8278         revision 58bb219cc090b2f4516a9297d868c245495ee622
8280         * asan.c (asan_finish_file): Update for conversion of symtab types to
8281         a true class hierarchy.
8282         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8283         * cgraph.c (cgraph_get_body): Likewise.
8284         (cgraph_get_create_real_symbol_node): Likewise.
8285         (verify_cgraph_node): Likewise.
8286         (verify_edge_corresponds_to_fndecl): Likewise.
8287         (verify_edge_count_and_frequency): Likewise.
8288         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8289         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8290         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8291         (cgraph_node_cannot_return): Likewise.
8292         (cgraph_set_pure_flag_1): Likewise.
8293         (cgraph_set_const_flag_1): Likewise.
8294         (cgraph_set_nothrow_flag_1): Likewise.
8295         (cgraph_make_node_local_1): Likewise.
8296         (cgraph_for_node_and_aliases): Likewise.
8297         (cgraph_for_node_thunks_and_aliases): Likewise.
8298         (cgraph_node_can_be_local_p): Likewise.
8299         (cgraph_node_cannot_be_local_p_1): Likewise.
8300         (cgraph_function_body_availability): Likewise.
8301         (dump_cgraph_node): Likewise.
8302         (cgraph_rtl_info): Likewise.
8303         (cgraph_mark_address_taken_node): Likewise.
8304         (cgraph_remove_node): Likewise.
8305         (cgraph_release_function_body): Likewise.
8306         (cgraph_update_edges_for_call_stmt_node): Likewise.
8307         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8308         (cgraph_make_edge_direct): Likewise.
8309         (cgraph_resolve_speculation): Likewise.
8310         (cgraph_speculative_call_info): Likewise.
8311         (cgraph_turn_edge_to_speculative): Likewise.
8312         (cgraph_create_edge_1): Likewise.
8313         (cgraph_set_call_stmt): Likewise.
8314         (cgraph_node_for_asm): Likewise.
8315         (cgraph_add_thunk): Likewise.
8316         (cgraph_same_body_alias): Likewise.
8317         (cgraph_create_function_alias): Likewise.
8318         (cgraph_create_node): Likewise.
8319         (cgraph_create_empty_node): Likewise.
8320         (record_function_versions): Likewise.
8321         (used_from_object_file_p): Likewise.
8322         * cgraph.h (symtab_can_be_discarded): Likewise.
8323         (symtab_real_symbol_p): Likewise.
8324         (cgraph_mark_force_output_node): Likewise.
8325         (cgraph_edge_recursive_p): Likewise.
8326         (symtab_alias_target): Likewise.
8327         (varpool_all_refs_explicit_p): Likewise.
8328         (varpool_can_remove_if_no_refs): Likewise.
8329         (cgraph_only_called_directly_or_aliased_p): Likewise.
8330         (cgraph_next_function_with_gimple_body): Likewise.
8331         (cgraph_first_function_with_gimple_body): Likewise.
8332         (cgraph_function_with_gimple_body_p): Likewise.
8333         (cgraph_next_function): Likewise.
8334         (cgraph_first_function): Likewise.
8335         (cgraph_next_defined_function): Likewise.
8336         (cgraph_first_defined_function): Likewise.
8337         (varpool_next_defined_variable): Likewise.
8338         (varpool_first_defined_variable): Likewise.
8339         (varpool_next_static_initializer): Likewise.
8340         (varpool_first_static_initializer): Likewise.
8341         (varpool_next_variable): Likewise.
8342         (varpool_first_variable): Likewise.
8343         (varpool_node_name): Likewise.
8344         (varpool): Likewise.
8345         (cgraph): Likewise.
8346         (is_a_helper <varpool_node>::test): Likewise.
8347         (is_a_helper <cgraph_node>::test): Likewise.
8348         (varpool_variable_node): Likewise.
8349         (cgraph_function_or_thunk_node): Likewise.
8350         (varpool_alias_target): Likewise.
8351         (cgraph_alias_target): Likewise.
8352         (cgraph_node_name): Likewise.
8353         (varpool_node_asm_name): Likewise.
8354         (cgraph_node_asm_name): Likewise.
8355         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8356         (cgraph_rebuild_references): Likewise.
8357         (rebuild_cgraph_edges): Likewise.
8358         (record_eh_tables): Likewise.
8359         (build_cgraph_edges): Likewise.
8360         (mark_store): Likewise.
8361         (mark_load): Likewise.
8362         (mark_address): Likewise.
8363         (record_type_list): Likewise.
8364         (record_reference): Likewise.
8365         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8366         (cgraph_materialize_clone): Likewise.
8367         (cgraph_function_versioning): Likewise.
8368         (cgraph_copy_node_for_versioning): Likewise.
8369         (update_call_expr): Likewise.
8370         (cgraph_find_replacement_node): Likewise.
8371         (cgraph_create_virtual_clone): Likewise.
8372         (cgraph_clone_node): Likewise.
8373         * cgraphunit.c (compile): Likewise.
8374         (output_weakrefs): Likewise.
8375         (output_in_order): Likewise.
8376         (expand_function): Likewise.
8377         (assemble_thunks_and_aliases): Likewise.
8378         (expand_thunk): Likewise.
8379         (mark_functions_to_output): Likewise.
8380         (handle_alias_pairs): Likewise.
8381         (analyze_functions): Likewise.
8382         (walk_polymorphic_call_targets): Likewise.
8383         (varpool_finalize_decl): Likewise.
8384         (process_function_and_variable_attributes): Likewise.
8385         (cgraph_process_same_body_aliases): Likewise.
8386         (analyze_function): Likewise.
8387         (cgraph_add_new_function): Likewise.
8388         (cgraph_finalize_function): Likewise.
8389         (referred_to_p): Likewise.
8390         (cgraph_reset_node): Likewise.
8391         (cgraph_process_new_functions): Likewise.
8392         (enqueue_node): Likewise.
8393         (decide_is_symbol_needed): Likewise.
8394         * coverage.c (coverage_compute_profile_id): Likewise.
8395         * dbxout.c (dbxout_expand_expr): Likewise.
8396         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8397         (reference_to_unused): Likewise.
8398         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8399         * gimplify.c (unvisit_body): Likewise.
8400         (unshare_body): Likewise.
8401         * ipa-cp.c (ipcp_generate_summary): Likewise.
8402         (ipcp_decision_stage): Likewise.
8403         (identify_dead_nodes): Likewise.
8404         (decide_whether_version_node): Likewise.
8405         (decide_about_value): Likewise.
8406         (perhaps_add_new_callers): Likewise.
8407         (create_specialized_node): Likewise.
8408         (update_profiling_info): Likewise.
8409         (ipcp_propagate_stage): Likewise.
8410         (estimate_local_effects): Likewise.
8411         (good_cloning_opportunity_p): Likewise.
8412         (devirtualization_time_bonus): Likewise.
8413         (propagate_constants_accross_call): Likewise.
8414         (initialize_node_lattices): Likewise.
8415         (ipcp_cloning_candidate_p): Likewise.
8416         (determine_versionability): Likewise.
8417         (print_all_lattices): Likewise.
8418         (print_lattice): Likewise.
8419         (ipcp_discover_new_direct_edges): Likewise.
8420         * ipa-devirt.c (ipa_devirt): Likewise.
8421         (likely_target_p): Likewise.
8422         (update_type_inheritance_graph): Likewise.
8423         (possible_polymorphic_call_target_p): Likewise.
8424         (dump_possible_polymorphic_call_targets): Likewise.
8425         (devirt_variable_node_removal_hook): Likewise.
8426         (record_binfo): Likewise.
8427         (maybe_record_node): Likewise.
8428         (build_type_inheritance_graph): Likewise.
8429         * ipa-inline-analysis.c (inline_write_summary): Likewise.
8430         (inline_generate_summary): Likewise.
8431         (inline_analyze_function): Likewise.
8432         (do_estimate_growth): Likewise.
8433         (simple_edge_hints): Likewise.
8434         (estimate_node_size_and_time): Likewise.
8435         (estimate_edge_devirt_benefit): Likewise.
8436         (compute_inline_parameters): Likewise.
8437         (estimate_function_body_sizes): Likewise.
8438         (compute_bb_predicates): Likewise.
8439         (initialize_inline_failed): Likewise.
8440         (dump_inline_summary): Likewise.
8441         (dump_inline_edge_summary): Likewise.
8442         * ipa-inline-transform.c (inline_transform): Likewise.
8443         (preserve_function_body_p): Likewise.
8444         (save_inline_function_body): Likewise.
8445         (inline_call): Likewise.
8446         (clone_inlined_nodes): Likewise.
8447         (can_remove_node_now_p): Likewise.
8448         (can_remove_node_now_p_1): Likewise.
8449         * ipa-inline.c (early_inliner): Likewise.
8450         (early_inline_small_functions): Likewise.
8451         (inline_always_inline_functions): Likewise.
8452         (ipa_inline): Likewise.
8453         (flatten_function): Likewise.
8454         (inline_small_functions): Likewise.
8455         (speculation_useful_p): Likewise.
8456         (recursive_inlining): Likewise.
8457         (update_caller_keys): Likewise.
8458         (reset_edge_caches): Likewise.
8459         (update_edge_key): Likewise.
8460         (edge_badness): Likewise.
8461         (relative_time_benefit): Likewise.
8462         (want_inline_self_recursive_call_p): Likewise.
8463         (want_inline_small_function_p): Likewise.
8464         (want_early_inline_function_p): Likewise.
8465         (num_calls): Likewise.
8466         (can_early_inline_edge_p): Likewise.
8467         (can_inline_edge_p): Likewise.
8468         (report_inline_failed_reason): Likewise.
8469         * ipa-profile.c (ipa_profile): Likewise.
8470         (ipa_propagate_frequency): Likewise.
8471         (ipa_propagate_frequency_1): Likewise.
8472         (ipa_profile_generate_summary): Likewise.
8473         * ipa-prop.c (ipcp_transform_function): Likewise.
8474         (read_replacements_section): Likewise.
8475         (ipa_prop_read_section): Likewise.
8476         (ipa_modify_call_arguments): Likewise.
8477         (ipa_print_node_params): Likewise.
8478         (propagate_controlled_uses): Likewise.
8479         (update_indirect_edges_after_inlining): Likewise.
8480         (remove_described_reference): Likewise.
8481         (ipa_make_edge_direct_to_target): Likewise.
8482         (ipa_analyze_node): Likewise.
8483         (ipa_analyze_params_uses): Likewise.
8484         (ipa_compute_jump_functions): Likewise.
8485         (ipa_get_callee_param_type): Likewise.
8486         (ipa_print_node_jump_functions): Likewise.
8487         (ipa_initialize_node_params): Likewise.
8488         (ipa_populate_param_decls): Likewise.
8489         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8490         (write_agg_replacement_chain): Likewise.
8491         (ipa_write_node_info): Likewise.
8492         (ipa_edge_duplication_hook): Likewise.
8493         (try_decrement_rdesc_refcount): Likewise.
8494         * ipa-pure-const.c (propagate_nothrow): Likewise.
8495         (propagate_pure_const): Likewise.
8496         (pure_const_read_summary): Likewise.
8497         (pure_const_write_summary): Likewise.
8498         (analyze_function): Likewise.
8499         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8500         (ipa_ref_referring_ref_list): Likewise.
8501         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8502         (ipa_remove_stmt_references): Likewise.
8503         (ipa_find_reference): Likewise.
8504         (ipa_dump_referring): Likewise.
8505         (ipa_dump_references): Likewise.
8506         (ipa_record_reference): Likewise.
8507         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8508         (ipa_reference_write_optimization_summary): Likewise.
8509         (write_node_summary_p): Likewise.
8510         (propagate): Likewise.
8511         (read_write_all_from_decl): Likewise.
8512         (generate_summary): Likewise.
8513         (analyze_function): Likewise.
8514         (propagate_bits): Likewise.
8515         (ipa_reference_get_not_written_global): Likewise.
8516         (ipa_reference_get_not_read_global): Likewise.
8517         * ipa-split.c (execute_split_functions): Likewise.
8518         (split_function): Likewise.
8519         * ipa-utils.c (ipa_merge_profiles): Likewise.
8520         (dump_cgraph_node_set): Likewise.
8521         (ipa_reverse_postorder): Likewise.
8522         (ipa_edge_within_scc): Likewise.
8523         (ipa_get_nodes_in_cycle): Likewise.
8524         (ipa_free_postorder_info): Likewise.
8525         (ipa_reduced_postorder): Likewise.
8526         (searchc): Likewise.
8527         (recursive_call_p): Likewise.
8528         * ipa.c (ipa_cdtor_merge): Likewise.
8529         (record_cdtor_fn): Likewise.
8530         (function_and_variable_visibility): Likewise.
8531         (varpool_externally_visible_p): Likewise.
8532         (cgraph_externally_visible_p): Likewise.
8533         (comdat_can_be_unshared_p): Likewise.
8534         (comdat_can_be_unshared_p_1): Likewise.
8535         (address_taken_from_non_vtable_p): Likewise.
8536         (ipa_discover_readonly_nonaddressable_vars): Likewise.
8537         (symtab_remove_unreachable_nodes): Likewise.
8538         (walk_polymorphic_call_targets): Likewise.
8539         (process_references): Likewise.
8540         (enqueue_node): Likewise.
8541         (has_addr_references_p): Likewise.
8542         (cgraph_non_local_node_p_1): Likewise.
8543         * is-a.h (varpool_analyze_node): Likewise.
8544         * lto-cgraph.c (input_symtab): Likewise.
8545         (merge_profile_summaries): Likewise.
8546         (input_cgraph_1): Likewise.
8547         (input_edge): Likewise.
8548         (input_varpool_node): Likewise.
8549         (input_node): Likewise.
8550         (input_overwrite_node): Likewise.
8551         (compute_ltrans_boundary): Likewise.
8552         (output_refs): Likewise.
8553         (lto_output_varpool_node): Likewise.
8554         (lto_output_node): Likewise.
8555         (reachable_from_other_partition_p): Likewise.
8556         (referenced_from_other_partition_p): Likewise.
8557         (lto_output_edge): Likewise.
8558         (output_node_opt_summary): Likewise.
8559         (add_node_to): Likewise.
8560         (reachable_from_this_partition_p): Likewise.
8561         (lto_set_symtab_encoder_in_partition): Likewise.
8562         (lto_symtab_encoder_in_partition_p): Likewise.
8563         (lto_set_symtab_encoder_encode_initializer): Likewise.
8564         (lto_symtab_encoder_encode_initializer_p): Likewise.
8565         (lto_set_symtab_encoder_encode_body): Likewise.
8566         (lto_symtab_encoder_encode_body_p): Likewise.
8567         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8568         Likewise.
8569         * lto-streamer-in.c (lto_read_body): Likewise.
8570         (fixup_call_stmt_edges): Likewise.
8571         (fixup_call_stmt_edges_1): Likewise.
8572         * lto-streamer-out.c (produce_symtab): Likewise.
8573         (output_symbol_p): Likewise.
8574         (write_symbol): Likewise.
8575         (lto_output): Likewise.
8576         (copy_function): Likewise.
8577         (output_function): Likewise.
8578         * passes.c (function_called_by_processed_nodes_p): Likewise.
8579         (ipa_write_optimization_summaries): Likewise.
8580         (ipa_write_summaries): Likewise.
8581         (do_per_function_toporder): Likewise.
8582         (do_per_function): Likewise.
8583         (dump_passes): Likewise.
8584         * symtab.c (symtab_semantically_equivalent_p): Likewise.
8585         (symtab_nonoverwritable_alias): Likewise.
8586         (symtab_nonoverwritable_alias_1): Likewise.
8587         (symtab_for_node_and_aliases): Likewise.
8588         (symtab_resolve_alias): Likewise.
8589         (fixup_same_cpp_alias_visibility): Likewise.
8590         (symtab_alias_ultimate_target): Likewise.
8591         (symtab_used_from_object_file_p): Likewise.
8592         (verify_symtab_base): Likewise.
8593         (dump_symtab_base): Likewise.
8594         (symtab_node_name): Likewise.
8595         (symtab_node_asm_name): Likewise.
8596         (symtab_dissolve_same_comdat_group_list): Likewise.
8597         (symtab_add_to_same_comdat_group): Likewise.
8598         (symtab_unregister_node): Likewise.
8599         (symtab_insert_node_to_hashtable): Likewise.
8600         (symtab_register_node): Likewise.
8601         (unlink_from_assembler_name_hash): Likewise.
8602         (insert_to_assembler_name_hash): Likewise.
8603         (eq_assembler_name): Likewise.
8604         (hash_node_by_assembler_name): Likewise.
8605         (eq_node): Likewise.
8606         (hash_node): Likewise.
8607         * toplev.c (wrapup_global_declaration_2): Likewise.
8608         * trans-mem.c (ipa_tm_execute): Likewise.
8609         (ipa_tm_transform_clone): Likewise.
8610         (ipa_tm_transform_transaction): Likewise.
8611         (ipa_tm_transform_calls_redirect): Likewise.
8612         (ipa_tm_insert_gettmclone_call): Likewise.
8613         (ipa_tm_insert_irr_call): Likewise.
8614         (ipa_tm_create_version): Likewise.
8615         (ipa_tm_create_version_alias): Likewise.
8616         (ipa_tm_mark_forced_by_abi_node): Likewise.
8617         (ipa_tm_mark_force_output_node): Likewise.
8618         (ipa_tm_diagnose_tm_safe): Likewise.
8619         (ipa_tm_mayenterirr_function): Likewise.
8620         (ipa_tm_scan_irr_function): Likewise.
8621         (ipa_tm_note_irrevocable): Likewise.
8622         (ipa_tm_scan_calls_clone): Likewise.
8623         (get_cg_data): Likewise.
8624         * tree-eh.c (tree_could_trap_p): Likewise.
8625         * tree-emutls.c (ipa_lower_emutls): Likewise.
8626         (create_emultls_var): Likewise.
8627         (lower_emutls_function_body): Likewise.
8628         (gen_emutls_addr): Likewise.
8629         (emutls_decl): Likewise.
8630         (new_emutls_decl): Likewise.
8631         * tree-inline.c (tree_function_versioning): Likewise.
8632         (optimize_inline_calls): Likewise.
8633         (expand_call_inline): Likewise.
8634         (estimate_num_insns): Likewise.
8635         (copy_bb): Likewise.
8636         (delete_unreachable_blocks_update_callgraph): Likewise.
8637         * tree-nested.c (gimplify_all_functions): Likewise.
8638         (create_nesting_tree): Likewise.
8639         (check_for_nested_with_variably_modified): Likewise.
8640         * tree-pretty-print.c (dump_function_header): Likewise.
8641         * tree-profile.c (tree_profiling): Likewise.
8642         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8643         (modify_function): Likewise.
8644         (convert_callers): Likewise.
8645         (convert_callers_for_node): Likewise.
8646         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8647         (associate_varinfo_to_alias): Likewise.
8648         (create_variable_info_for): Likewise.
8649         (get_constraint_for_ssa_var): Likewise.
8650         * tree-vectorizer.c (increase_alignment): Likewise.
8651         * tree.c (find_decls_types_in_var): Likewise.
8652         (find_decls_types_in_node): Likewise.
8653         (free_lang_data_in_decl): Likewise.
8654         * value-prof.c (gimple_ic_transform): Likewise.
8655         (gimple_ic): Likewise.
8656         (check_ic_target): Likewise.
8657         (init_node_map): Likewise.
8658         * varasm.c (decl_binds_to_current_def_p): Likewise.
8659         (default_binds_local_p_1): Likewise.
8660         (dump_tm_clone_pairs): Likewise.
8661         (assemble_alias): Likewise.
8662         (find_decl): Likewise.
8663         (mark_decl_referenced): Likewise.
8664         * varpool.c (varpool_for_node_and_aliases): Likewise.
8665         (varpool_extra_name_alias): Likewise.
8666         (varpool_create_variable_alias): Likewise.
8667         (add_new_static_var): Likewise.
8668         (varpool_finalize_named_section_flags): Likewise.
8669         (varpool_remove_unreferenced_decls): Likewise.
8670         (enqueue_node): Likewise.
8671         (varpool_assemble_decl): Likewise.
8672         (assemble_aliases): Likewise.
8673         (varpool_analyze_node): Likewise.
8674         (cgraph_variable_initializer_availability): Likewise.
8675         (varpool_add_new_variable): Likewise.
8676         (ctor_for_folding): Likewise.
8677         (dump_varpool_node): Likewise.
8678         (varpool_remove_initializer): Likewise.
8679         (varpool_remove_node): Likewise.
8680         (varpool_node_for_decl): Likewise.
8681         (varpool_create_empty_node): Likewise.
8682         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8683         (ix86_get_function_versions_dispatcher): Likewise.
8685 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8687         * cgraph.h (symtab_node_base): Convert to a class;
8688         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8689         chain_next/prev from symtab_node_def.
8690         (cgraph_node): Inherit from symtab_node; add GTY option
8691         tag ("SYMTAB_FUNCTION").
8692         (varpool_node): Inherit from symtab_node; add GTY option
8693         tag ("SYMTAB_VARIABLE").
8694         (symtab_node_def): Remove.
8695         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8696         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8697         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8698         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8700         * ipa-ref.h (symtab_node_def): Drop.
8701         (symtab_node): Change underlying type from symtab_node_def to
8702         symtab_node_base.
8703         (const_symtab_node): Likwise.
8705         * is-a.h: Update examples in comment.
8707         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8708         (assembler_name_hash): Likewise.
8710 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
8712         * doc/tree-ssa.texi (gimple_phi_result): Document.
8713         (gimple_phi_num_args, gimple_phi_arg): Likewise.
8714         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8715         (PHI_RESULT, PHI_NUM_ARGS): Remove.
8716         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8718 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8720         * expr.h: Revert change and include tree-core.h.
8721         * rtl.h: Revert change and don't include tree-core.h.
8723 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8725         * config/darwin.c: Include gimple.h.
8726         * config/i386/winnt.c: Likewise.
8728 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
8730         PR tree-optimization/19831
8731         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8733 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8735         * tree-outof-ssa.h: Remove include files.
8736         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8737         * expr.c: Likewise.
8738         * tree-ssa-coalesce.c: Likewise.
8739         * cfgexpand.c: Likewise.
8740         * tree-ssa-ter.c: Likewise.
8741         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8742         * lto-streamer.h: Likewise.
8743         * cgraphbuild.c: Add gimple.h to include list.
8744         * data-streamer-in.c: Likewise.
8745         * ipa-cp.c: Likewise.
8746         * tree-streamer.c: Likewise.
8747         * lto-compress.c: Likewise.
8748         * ipa-reference.c: Likewise.
8749         * data-streamer-out.c: Likewise.
8750         * lto-cgraph.c: Likewise.
8751         * cgraphclones.c: Likewise.
8752         * ipa-utils.c: Likewise.
8753         * data-streamer.c: Likewise.
8754         * ipa-split.c: Likewise.
8755         * lto-section-in.c: Likewise.
8756         * tree-streamer-out.c: Likewise.
8757         * ipa-prop.c: Likewise.
8758         * tree-streamer-in.c: Likewise.
8759         * symtab.c: Likewise.
8760         * opts-global.c: Likewise.
8761         * lto-opts.c: Likewise.
8762         * lto-section-out.c: Likewise.
8763         * lto-streamer.c: Likewise.
8764         * rtl.h: Add tree-core.h to include list.
8765         * expr.h: Remove tree-core.h from include list.
8766         * gimple.h: Likewise.
8767         * ipa-utils.h: Likewise.
8768         * streamer-hooks.h: Likewise.
8769         * streamer-hooks.c: Include input.h.
8771 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8773         * config/arm/arm.c (cortexa7_extra_costs): New table.
8774         (arm_cortex_a7_tune): New.
8775         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8777 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
8779         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8781 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8783         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8784         to use autogenerated markers for a class-hierarchy, every class
8785         must have a GTY marker.
8786         * gengtype.h (struct type): Add linked list of subclasses to
8787         the "s" member of the union.
8788         (add_subclass): New decl.
8789         * gengtype-state.c (read_state_struct_type): Set up subclass
8790         linked list.
8791         * gengtype.c (get_ultimate_base_class): New.
8792         (add_subclass): New.
8793         (new_structure): Set up subclass linked list.
8794         (set_gc_used_type): Propagate usage information to subclasses.
8795         (output_mangled_typename): Use get_ultimate_base_class.
8796         (walk_subclasses): Use the subclass linked list, avoiding an
8797         O(N^2) when writing out all types.
8798         (walk_type): Issue an error if the base class is missing a tag,
8799         rather than generating bogus C code.  Add a gcc_unreachable
8800         default case, in case people omit tags from concrete subclasses,
8801         or get the values wrong.
8802         (write_func_for_structure): Issue an error for subclasses for
8803         which the base doesn't have a "desc", since otherwise the
8804         autogenerated routines for the base would silently fail to visit
8805         any subclass fields.
8806         (write_root): Use get_ultimate_base_class, tweaking constness of
8807         tp to match that function's signature.
8809 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8811         * doc/gty.texi (GTY Options): Add note about inheritance to
8812         description of desc and tag.
8813         (Inheritance and GTY): New.
8815 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8817         * gengtype-parse.c (opts_have): Drop "static" so that
8818         we can use this from gengtype.c.
8819         * gengtype.c (set_gc_used_type): Mark any base class as used;
8820         update field traversal to visit inherited fields.
8821         (output_mangled_typename):  Convert references to classes within
8822         an inheritance hierarchy to reference the ultimate base class,
8823         since only it will have gt_ functions.
8824         (get_string_option): New.
8825         (walk_subclasses): New.
8826         (walk_type): Treat GTY structs that have a "desc" as being the
8827         root of an inheritance hierarchy.  Generate a switch on it
8828         within the marking function which walks all subclasses, adding
8829         cases for them via walk_subclasses.  For subclasses, visit all
8830         fields of the type (including inherited ones).
8831         (write_func_for_structure): Don't write fns for subclasses, only
8832         for the ultimate base class within an inheritance hierarchy.
8833         Subclasses-marking will be handled by the base class marking functions.
8834         (write_types): Likewise.
8835         (write_local_func_for_structure): Likewise.
8836         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8837         a "tag" option (and are thus concrete subclasses).
8838         (write_root): Use the marker function for the ultimate base class.
8839         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8840         (opts_have): Add declaration.
8842 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
8844         * lra-spills.c (lra_final_code_change): Remove useless move insns
8845         originated from moves of pseudos.
8847 2013-10-28  Jeff Law  <law@redhat.com>
8849         * lower-subreg.c (resolve_simple_move): Fix comment typo.
8851 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
8853         * df-scan.c (df_collection_rec): Adjust.
8854         (copy_defs): New constant.
8855         (copy_uses): Likewise.
8856         (copy_eq_uses): Likewise.
8857         (copy_mw): Likewise.
8858         (copy_all): Likewise.
8859         (df_insn_rescan): Adjust.
8860         (df_notes_rescan): Likewise.
8861         (df_swap_refs): Likewise.
8862         (df_sort_and_compress_refs): Likewise.
8863         (df_sort_and_compress_mws): Likewise.
8864         (df_install_refs): Likewise.
8865         (df_install_mws): Likewise.
8866         (df_refs_add_to_chains): Add flags parameter controlling which vectors
8867         are coppied.
8868         (df_bb_refs_record): Adjust.
8869         (df_record_entry_block_defs): Likewise.
8870         (df_record_exit_block_defs): Likewise.
8871         (df_refs_verify): Likewise.
8872         (df_mws_verify): Likewise.
8873         (df_insn_refs_verify): Likewise.
8874         (df_bb_verify): Likewise.
8875         * ipa-pure-const.c (finish_state): Remove.
8876         (propagate): Adjust.
8877         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8878         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8879         var-tracking.c: Adjust.
8880         * vec.c (stack_vecs): Remove.
8881         (register_stack_vec): Likewise.
8882         (stack_vec_register_index): Likewise.
8883         (unregister_stack_vec): Likewise.
8884         * vec.h (struct va_stack): Remove.
8885         (struct vec<T, A, vl_ptr>): Specialize as
8886         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8887         allocation strategy compatable with the vl_ptr layout.
8888         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8889         specialization anyway.
8890         (class stack_vec): New class.
8891         (vec_stack_alloc): Remove.
8892         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8894 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8895             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8896             Sergey Lega  <sergey.s.lega@intel.com>
8897             Anna Tikhonova  <anna.tikhonova@intel.com>
8898             Ilya Tocar  <ilya.tocar@intel.com>
8899             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8900             Ilya Verbin  <ilya.verbin@intel.com>
8901             Kirill Yukhin  <kirill.yukhin@intel.com>
8902             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8904         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8905         (*prefetch_avx512pf_<mode>): New.
8906         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8907         (avx512f_maskcmp<mode>3): Ditto.
8908         (vashrv16si3): Ditto.
8910 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8911             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8912             Sergey Lega  <sergey.s.lega@intel.com>
8913             Anna Tikhonova  <anna.tikhonova@intel.com>
8914             Ilya Tocar  <ilya.tocar@intel.com>
8915             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8916             Ilya Verbin  <ilya.verbin@intel.com>
8917             Kirill Yukhin  <kirill.yukhin@intel.com>
8918             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8920         * config/i386/i386.md (any_truncate): New.
8921         (trunsuffix): Ditto.
8922         * config/i386/predicates.md (const_8_to_9_operand): New.
8923         (const_10_to_11_operand): Ditto.
8924         (const_12_to_13_operand): Ditto.
8925         (const_14_to_15_operand): Ditto.
8926         (const_16_to_19_operand): Ditto.
8927         (const_20_to_23_operand): Ditto.
8928         (const_24_to_27_operand): Ditto.
8929         (const_28_to_31_operand): Ditto.
8930         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8931         (cvtusi2<ssescalarmodesuffix>32): New.
8932         (cvtusi2<ssescalarmodesuffix>64): Ditto.
8933         (ufloatv16siv16sf2): Ditto.
8934         (avx512f_fix_notruncv16sfv16si): Ditto.
8935         (avx512f_ufix_notruncv16sfv16si): Ditto.
8936         (avx512f_vcvtss2usi): Ditto.
8937         (avx512f_vcvtss2usiq): Ditto.
8938         (avx512f_vcvttss2usi): Ditto.
8939         (avx512f_vcvttss2usiq): Ditto.
8940         (avx512f_vcvtsd2usi): Ditto.
8941         (avx512f_vcvtsd2usiq): Ditto.
8942         (avx512f_vcvttsd2usi): Ditto.
8943         (avx512f_vcvttsd2usiq): Ditto.
8944         (ufloatv8siv8df): Ditto.
8945         (avx512f_cvtdq2pd512_2): Ditto.
8946         (avx512f_cvtpd2dq512): Ditto.
8947         (avx512f_ufix_notruncv8dfv8si): Ditto.
8948         (avx512f_cvtpd2ps512): Ditto.
8949         (vec_unpacks_lo_v16sf): Ditto.
8950         (vec_unpacks_hi_v16sf): Ditto.
8951         (vec_unpacks_float_hi_v16si): Ditto.
8952         (vec_unpacks_float_lo_v16si): Ditto.
8953         (avx512f_unpckhps512): Ditto.
8954         (avx512f_unpcklps512): Ditto.
8955         (avx512f_movshdup512): Ditto.
8956         (avx512f_movsldup512): Ditto.
8957         (vec_extract_lo_v32hi): Ditto.
8958         (vec_extract_hi_v32hi): Ditto.
8959         (vec_extract_lo_v64qi): Ditto.
8960         (vec_extract_hi_v64qi): Ditto.
8961         (avx512f_unpckhpd512): Ditto.
8962         (avx512f_movddup512): Ditto.
8963         (avx512f_unpcklpd512): Ditto.
8964         (*avx512f_unpcklpd512): Ditto.
8965         (avx512f_shufps512_1): Ditto.
8966         (avx512f_shufpd512_1): Ditto.
8967         (avx512f_interleave_highv8di): Ditto.
8968         (avx512f_interleave_lowv8di): Ditto.
8969         (PMOV_DST_MODE): Ditto.
8970         (pmov_src_mode): Ditto.
8971         (pmov_src_lower): Ditto.
8972         (pmov_suff): Ditto.
8973         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8974         (*avx512f_<code>v8div16qi2): Ditto.
8975         (*avx512f_<code>v8div16qi2_store): Ditto.
8976         (vec_widen_umult_even_v16si): Ditto.
8977         (*vec_widen_umult_even_v16si): Ditto.
8978         (vec_widen_smult_even_v16si): Ditto.
8979         (*vec_widen_smult_even_v16si): Ditto.
8980         (avx512f_interleave_highv16si): Ditto.
8981         (avx512f_interleave_lowv16si): Ditto.
8982         (avx512f_<code>v16qiv16si2): Ditto.
8983         (avx512f_<code>v16hiv16si2): Ditto.
8984         (avx512f_<code>v8qiv8di2): Ditto.
8985         (avx512f_<code>v8hiv8di2): Ditto.
8986         (avx512f_<code>v8siv8di2): Ditto.
8987         (avx512cd_maskb_vec_dupv8di): Ditto.
8988         (avx512cd_maskw_vec_dupv16si): Ditto.
8989         (avx512f_vcvtph2ps512): Ditto.
8990         (avx512f_vcvtps2ph512): Ditto.
8991         (VEC_EXTRACT_MODE): Extened with wider modes.
8992         (VEC_PERM_AVX2): Ditto.
8993         (VEC_PERM_CONST): Ditto.
8995 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8997         * config/arc/arc.c (arc_ccfsm_post_advance):
8998         Add comment about TYPE_RETURN.
9000 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
9002         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
9003         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
9004         (strip_offset): Convert offset to unsigned number.
9006 2013-10-27  Tom de Vries  <tom@codesourcery.com>
9008         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
9009         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
9011 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
9013         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
9014         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
9015         (TARGET_BIG_ENDIAN): New macro.
9016         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
9017         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
9018         * config/sh/sh.c: Likewise.
9019         * config/sh/sh.h: Likewise.
9021 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
9023         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
9024         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
9026 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
9028         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
9029         Fix formatting.
9030         (cmpstr_t, cmpstrsi): Fix formatting.
9032 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
9034         PR target/52483
9035         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
9036         addressing, do not use general_operand for memory operands.
9038 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
9040         Revert:
9041         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
9042         * lra-spills.c (lra_final_code_change): Remove useless move insns.
9044 2013-10-26  Jeff Law  <law@redhat.com>
9046         * predict.c (PRED_MUDFLAP): Remove.
9047         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
9049         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
9050         (OBJS): Remove tree-nomudflap.o
9051         (GTFILES): Remove tree-mudflap.c
9052         * builtins.c (expand_builtin_alloc): Remove mudflap support.
9053         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9054         (mfwrap_spec, mflib_spec): Likewise.
9055         (cpp_unique_options, cc1_options, static_specs): Likewise.
9056         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
9057         * passes.def: Likewise.
9058         * toplev.c (compile_file, process_options): Likewise.
9059         * tree-inline.c (copy_tree_r): Likewise.
9060         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
9061         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
9062         (build_constant_desc, output_constant_def_contents): Likewise.
9063         (categorize_decl_for_section): Likewise.
9064         * tree-mudflap.c: Removed.
9065         * tree-mudflap.h: Removed.
9066         * tree-nomudflap.c: Removed.
9067         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
9068         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
9069         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9070         * config/sol2.h (MFLIB_SPEC): Likewise.
9071         * doc/install.texi: Remove mudflap references.
9072         * doc/passes.texi: Similarly.
9073         * doc/sourcebuild.texi: Similarly.
9074         * doc/invoke.texi: Remove mudlfap related options.
9076 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
9078         PR rtl-optimization/58759
9079         * lra-constraints.c (lra_constraints): Remove wrong condition to
9080         remove insn setting up an equivalent pseudo.
9082 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
9084         * config/rs6000/rs6000-protos.h
9085         (rs6000_secondary_memory_needed_mode): New prototype.
9086         * config/rs6000/rs6000.c: Include ira.h.
9087         (TARGET_LRA_P): Redefine.
9088         (rs6000_legitimate_offset_address_p): Call
9089         legitimate_constant_pool_address_p in strict mode for LRA.
9090         (rs6000_legitimate_address_p): Ditto.
9091         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
9092         (rs6000_emit_move): Add LRA version of code to generate load/store
9093         of SDmode values.
9094         (rs6000_secondary_memory_needed_mode): New.
9095         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
9096         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
9097         constants, memory, and FP registers.
9098         (rs6000_lra_p): New.
9099         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
9100         * config/rs6000/rs6000.opt (mlra): New option.
9101         * lra-spills.c (lra_final_code_change): Remove useless move insns.
9103 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
9105         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
9106         has_single_use () and not do the conversion if has_single_use ()
9107         returns false for the multiplication result.
9109 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
9111         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
9112         to "NODE", since this works on a "tree", not an
9113         "enum tree_code".
9114         (CONSTANT_CLASS_P): Likewise.
9115         (TYPE_P): Likewise.
9116         (DECL_P): Likewise.
9117         (INDIRECT_REF_P): Likewise.
9118         (REFERENCE_CLASS_P): Likewise.
9119         (COMPARISON_CLASS_P): Likewise.
9120         (UNARY_CLASS_P): Likewise.
9121         (BINARY_CLASS_P): Likewise.
9122         (STATEMENT_CLASS_P): Likewise.
9123         (VL_EXP_CLASS_P): Likewise.
9124         (EXPRESSION_CLASS_P): Likewise.
9125         (IS_TYPE_OR_DECL_P): Likewise.
9127 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
9129         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
9130         ADDR_EXPR in the defining statement.
9132 2013-10-25  Richard Biener  <rguenther@suse.de>
9134         PR tree-optimization/58626
9135         * tree-loop-distribution.c (enum rdg_dep_type): Remove
9136         anti_dd, output_dd and input_dd.
9137         (struct rdg_edge): Remove level and relation members.
9138         (RDGE_LEVEL, RDGE_RELATION): Remove.
9139         (dot_rdg_1): Adjust.
9140         (create_rdg_edge_for_ddr): Remove.
9141         (create_rdg_edges_for_scalar): Adjust.
9142         (create_edge_for_control_dependence): Likewise.
9143         (create_rdg_edges): Split into ...
9144         (create_rdg_flow_edges): ... this
9145         (create_rdg_cd_edges): ... and this.
9146         (free_rdg): Adjust.
9147         (build_rdg): Likewise, do not compute data dependences or
9148         add edges for them.
9149         (pg_add_dependence_edges): New function.
9150         (pgcmp): Likewise.
9151         (distribute_loop): First apply all non-dependence based
9152         partition mergings.  Then compute dependences between partitions
9153         and merge and order partitions according to them.
9155 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
9157         PR rtl-optimization/58831
9158         * alias.c (init_alias_analysis): At the beginning of each iteration,
9159         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
9161 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
9163         * recog.c (search_ofs): New static variable moved from...
9164         (peep2_find_free_register): ...here.
9165         (peephole2_optimize): Initialize it.
9167 2013-10-25  Tobias Burnus  <burnus@net-b.de>
9169         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
9171 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
9173         * config/i386/i386.h (TARGET_MPX): New define.
9174         (TARGET_MPX_P): Ditto.
9176 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
9178         * config/i386/constraints.md (B): New.
9179         (Ti): New.
9180         (Tb): New.
9181         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9182         * config/i386/i386-modes.def (BND32): New.
9183         (BND64): New.
9184         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9185         * config/i386/i386.c (isa_opts): Add mmpx.
9186         (regclass_map): Add bound registers.
9187         (dbx_register_map): Likewise.
9188         (dbx64_register_map): Likewise.
9189         (svr4_dbx_register_map): Likewise.
9190         (PTA_MPX): New.
9191         (ix86_option_override_internal): Support MPX ISA.
9192         (ix86_conditional_register_usage): Support bound registers.
9193         (print_reg): Likewise.
9194         (ix86_code_end): Add MPX bnd prefix.
9195         (output_set_got): Likewise.
9196         (ix86_output_call_insn): Likewise.
9197         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9198         (ix86_print_operand_punct_valid_p): Likewise.
9199         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9200         UNSPEC_BNDMK_ADDR.
9201         (ix86_class_likely_spilled_p): Add bound regs support.
9202         (ix86_hard_regno_mode_ok): Likewise.
9203         (x86_order_regs_for_local_alloc): Likewise.
9204         (ix86_bnd_prefixed_insn_p): New.
9205         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
9206         (FIXED_REGISTERS): Add bound registers.
9207         (CALL_USED_REGISTERS): Likewise.
9208         (REG_ALLOC_ORDER): Likewise.
9209         (HARD_REGNO_NREGS): Likewise.
9210         (TARGET_MPX): New.
9211         (VALID_BND_REG_MODE): New.
9212         (FIRST_BND_REG): New.
9213         (LAST_BND_REG): New.
9214         (reg_class): Add BND_REGS.
9215         (REG_CLASS_NAMES): Likewise.
9216         (REG_CLASS_CONTENTS): Likewise.
9217         (BND_REGNO_P): New.
9218         (ANY_BND_REG_P): New.
9219         (BNDmode): New.
9220         (HI_REGISTER_NAMES): Add bound registers.
9221         * config/i386/i386.md (UNSPEC_BNDMK): New.
9222         (UNSPEC_BNDMK_ADDR): New.
9223         (UNSPEC_BNDSTX): New.
9224         (UNSPEC_BNDLDX): New.
9225         (UNSPEC_BNDLDX_ADDR): New.
9226         (UNSPEC_BNDCL): New.
9227         (UNSPEC_BNDCU): New.
9228         (UNSPEC_BNDCN): New.
9229         (UNSPEC_MPX_FENCE): New.
9230         (BND0_REG): New.
9231         (BND1_REG): New.
9232         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9233         (length_immediate): Likewise.
9234         (prefix_0f): Likewise.
9235         (memory): Likewise.
9236         (prefix_rep): Check for bnd prefix.
9237         (length_nobnd): New.
9238         (length): Use length_nobnd if specified.
9239         (BND): New.
9240         (bnd_ptr): New.
9241         (BNDCHECK): New.
9242         (bndcheck): New.
9243         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
9244         (*jcc_2): Likewise.
9245         (jump): Likewise.
9246         (simple_return_internal): Likewise.
9247         (simple_return_pop_internal): Likewise.
9248         (*indirect_jump): Add MPX bnd prefix.
9249         (*tablejump_1): Likewise.
9250         (simple_return_internal_long): Likewise.
9251         (simple_return_indirect_internal): Likewise.
9252         (<mode>_mk): New.
9253         (*<mode>_mk): New.
9254         (mov<mode>): New.
9255         (*mov<mode>_internal_mpx): New.
9256         (<mode>_<bndcheck>): New.
9257         (*<mode>_<bndcheck>): New.
9258         (<mode>_ldx): New.
9259         (*<mode>_ldx): New.
9260         (<mode>_stx): New.
9261         (*<mode>_stx): New.
9262         * config/i386/predicates.md (lea_address_operand): Rename to...
9263         (address_no_seg_operand): ... this.
9264         (address_mpx_no_base_operand): New.
9265         (address_mpx_no_index_operand): New.
9266         (bnd_mem_operator): New.
9267         * config/i386/i386.opt (mmpx): New.
9268         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9269         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9271 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
9273         * mode-classes.def (MODE_POINTER_BOUNDS): New.
9274         * tree.def (POINTER_BOUNDS_TYPE): New.
9275         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9276         (POINTER_BOUNDS_MODE): New.
9277         (make_pointer_bounds_mode): New.
9278         * machmode.h (POINTER_BOUNDS_MODE_P): New.
9279         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9280         (layout_type): Support POINTER_BOUNDS_TYPE.
9281         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9282         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9283         (type_contains_placeholder_1): Likewise.
9284         * tree.h (POINTER_BOUNDS_TYPE_P): New.
9285         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9286         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9288 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
9290         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9291         mode of address computation when calling memory_address_addr_space.
9293 2013-08-24  Richard Henderson  <rth@twiddle.net>
9295         PR rtl/58542
9296         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9297         instead of create_convert_operand_to.
9298         (maybe_emit_sync_lock_test_and_set): Likewise.
9299         (expand_atomic_compare_and_swap): Likewise.
9300         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9302 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
9304         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9305         Change param_is to use the struct and not the pointer to the struct.
9307 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
9309         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9310         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9311         Move to targhooks.c.
9312         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9313         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9314         Relocate from gimplify.c.
9315         * targhooks.h: Add 2 prototypes.
9316         * tree.h: Delete 2 prototypes.
9318 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
9320         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9321         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9323 2013-10-24  Cong Hou  <congh@google.com>
9325         * convert.c (convert_to_real): Guard those unsafe math function
9326         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
9327         specially.
9329 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
9331         PR ipa/58712
9332         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9333         as argument.
9334         (cgraph_create_edge): Use the new argument.
9335         (cgraph_create_indirect_edge): Likewise.
9337 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
9339         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9340         TYPE_UNCOND_BRANCH.
9341         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9342         changes statep->state.
9344 2013-10-24  Tobias Burnus  <burnus@net-b.de>
9346         PR other/33426
9347         * tree-cfg.c (replace_loop_annotate): New function.
9348         (execute_build_cfg): Call it.
9349         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9350         * internal-fn.c (expand_ANNOTATE): New function.
9351         * internal-fn.def (ANNOTATE): Define as new internal function.
9352         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9353         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9354         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9355         * doc/extend.texi (Pragmas): Document #pragma ivdep.
9356         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9358 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
9359             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9361         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9362         Special case reload SP+C into none GENERAL_REGS.
9364 2013-10-24  Michael Matz  <matz@suse.de>
9366         * gengtype.c (is_file_equal): Check that files will be same length.
9368 2013-10-25  Christian Bruel  <christian.bruel@st.com>
9370         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9371         * config/sh/t-sh (sh-mem.o): New rule.
9372         * config/sh/sh-mem.cc (expand_block_move): Moved here.
9373         (sh_expand_cmpstr): New function.
9374         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9375         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9376         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9377         (rotlhi3_8): Rename.
9379 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9381         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9382         * Makefile.in (CXXDEPMODE): Assign and change users.
9383         (CCDEPMODE): Delete.
9384         * configure: Regenerate.
9386 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
9388         * gengtype-parse.c (require_without_advance): New.
9389         (type): For GTY-marked types that are not GTY((user)), parse any
9390         base classes, requiring them to be single-inheritance, and not
9391         be templates.  For non-GTY-marked types and GTY((user)),
9392         continue to skip over any C++ inheritance specification.
9393         * gengtype-state.c (state_writer::write_state_struct_type):
9394         Write base class of type (if any).
9395         (read_state_struct_type): Read base class of type (if any).
9396         * gengtype.c (new_structure): Add a "base_class" parameter.
9397         (create_optional_field_): Update for new parameter to new_structure.
9398         (adjust_field_rtx_def): Likewise.
9399         (adjust_field_tree_exp): Likewise.
9400         * gengtype.h (struct type): Add "base_class" field to the s
9401         union field.
9402         (new_structure): Add "base" parameter.
9404 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
9406         PR target/57756
9407         * config/i386/i386.c (ix86_option_override_internal):
9408         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9409         (ix86_valid_target_attribute_tree):
9410         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9411         Change TARGET_SSE to TARGET_SSE_P (opts->...)
9413 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9415         * tree-ssa-loop.h: Remove include files.
9416         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9417         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9418         * graphite-clast-to-gimple.c: Likewise.
9419         * graphite-scop-detection.c: Likewise.
9420         * graphite-sese-to-poly.c: Likewise.
9421         * ipa-inline-analysis.c: Likewise.
9422         * ipa-pure-const.c: Likewise.
9423         * loop-init.c: Likewise.
9424         * passes.c: Likewise.
9425         * predict.c: Likewise.
9426         * tree-cfg.c: Likewise.
9427         * tree-cfgcleanup.c: Likewise.
9428         * tree-chrec.c: Likewise.
9429         * tree-data-ref.c: Likewise.
9430         * tree-loop-distribution.c: Likewise.
9431         * tree-parloops.c: Likewise.
9432         * tree-predcom.c: Likewise.
9433         * tree-scalar-evolution.c: Likewise.
9434         * tree-ssa-address.c: Likewise.
9435         * tree-ssa.c: Likewise.
9436         * tree-ssa-dce.c: Likewise.
9437         * tree-ssa-loop.c: Likewise.
9438         * tree-ssa-loop-im.c: Likewise.
9439         * tree-ssa-loop-ivcanon.c: Likewise.
9440         * tree-ssa-loop-ivopts.c: Likewise.
9441         * tree-ssa-loop-manip.c: Likewise.
9442         * tree-ssa-loop-niter.c: Likewise.
9443         * tree-ssa-loop-prefetch.c: Likewise.
9444         * tree-ssa-loop-unswitch.c: Likewise.
9445         * tree-ssa-reassoc.c: Likewise.
9446         * tree-vect-data-refs.c: Likewise.
9447         * tree-vect-loop.c: Likewise.
9448         * tree-vect-loop-manip.c: Likewise.
9449         * tree-vectorizer.c: Likewise.
9450         * tree-vect-stmts.c: Likewise.
9451         * tree-vrp.c: Likewise.
9453 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9455         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9457 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9459         PR tree-optimization/58775
9460         PR tree-optimization/58791
9461         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9462         (insert_stmt_after): Rewritten, don't move the stmt, but really
9463         insert it.
9464         (get_stmt_uid_with_default): Remove.
9465         (build_and_add_sum): Use insert_stmt_after and
9466         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
9467         (update_range_test): Set uid on stmts added by
9468         force_gimple_operand_gsi.  Don't immediately modify statements
9469         in inter-bb optimization, just update oe->op values.
9470         (optimize_range_tests): Return bool whether any changed have been made.
9471         (update_ops): New function.
9472         (struct inter_bb_range_test_entry): New type.
9473         (maybe_optimize_range_tests): Perform statement changes here.
9474         (not_dominated_by, appears_later_in_bb, get_def_stmt,
9475         ensure_ops_are_available): Remove.
9476         (find_insert_point): Rewritten.
9477         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9478         return LHS of the (new resp. old) stmt.  Don't call
9479         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9480         instead of last, move new stmt at the right place.
9481         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9482         (negate_value): Likewise.  Set uids.
9483         (break_up_subtract_bb): Initialize uids.
9484         (reassociate_bb): Adjust rewrite_expr_tree caller.
9485         (do_reassoc): Don't call renumber_gimple_stmt_uids.
9487 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
9489         PR target/58838
9490         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9491         TARGET_32BIT final condition.
9492         (mulsi3_internal2 and splitter): Same.
9494 2013-10-23  Jeff Law  <law@redhat.com>
9496         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9497         through joiner blocks with abnormal outgoing edges.
9499         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9500         Add parameter JOINERS, to allow/disallow threading through joiner
9501         blocks.
9502         (thread_block): New.  Call thread_block_1.
9503         (mark_threaded_blocks): Remove code to filter out certain cases
9504         of threading through joiner blocks.
9505         (thread_through_all_blocks): Document how we can have a dangling
9506         edge AUX field and clear it.
9508 2013-10-23  Ian Lance Taylor  <iant@google.com>
9510         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9511         (C++ Dialect Options): Likewise.
9512         (Optimize Options): Likewise.
9514 2013-10-23  Tom de Vries  <tom@codesourcery.com>
9516         PR tree-optimization/58805
9517         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9519 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9521         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9522         sequence based on get_range_info returned range.
9524 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9526         * tree-ssa.h: Remove all #include's
9527         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9528         * alias.c: Move required includes from tree-ssa.h.
9529         * asan.c: Likewise.
9530         * builtins.c: Likewise.
9531         * calls.c: Likewise.
9532         * cfgexpand.c: Likewise.
9533         * cfghooks.c: Likewise.
9534         * cfgloop.c: Likewise.
9535         * cfgloopmanip.c: Likewise.
9536         * cgraph.c: Likewise.
9537         * cgraphbuild.c: Likewise.
9538         * cgraphclones.c: Likewise.
9539         * cgraphunit.c: Likewise.
9540         * dse.c: Likewise.
9541         * except.c: Likewise.
9542         * expr.c: Likewise.
9543         * final.c: Likewise.
9544         * fold-const.c: Likewise.
9545         * ggc-page.c: Likewise.
9546         * gimple-builder.c: Likewise.
9547         * gimple-fold.c: Likewise.
9548         * gimple-iterator.c: Likewise.
9549         * gimple-low.c: Likewise.
9550         * gimple-pretty-print.c: Likewise.
9551         * gimple-ssa-strength-reduction.c: Likewise.
9552         * gimple-streamer-in.c: Likewise.
9553         * gimple-streamer-out.c: Likewise.
9554         * gimplify.c: Likewise.
9555         * graphite-blocking.c: Likewise.
9556         * graphite-clast-to-gimple.c: Likewise.
9557         * graphite-dependences.c: Likewise.
9558         * graphite-interchange.c: Likewise.
9559         * graphite-optimize-isl.c: Likewise.
9560         * graphite-poly.c: Likewise.
9561         * graphite-scop-detection.c: Likewise.
9562         * graphite-sese-to-poly.c: Likewise.
9563         * graphite.c: Likewise.
9564         * ipa-cp.c: Likewise.
9565         * ipa-inline-analysis.c: Likewise.
9566         * ipa-inline-transform.c: Likewise.
9567         * ipa-inline.c: Likewise.
9568         * ipa-prop.c: Likewise.
9569         * ipa-pure-const.c: Likewise.
9570         * ipa-reference.c: Likewise.
9571         * ipa-split.c: Likewise.
9572         * ipa-utils.c: Likewise.
9573         * loop-init.c: Likewise.
9574         * lto-cgraph.c: Likewise.
9575         * lto-section-in.c: Likewise.
9576         * lto-section-out.c: Likewise.
9577         * lto-streamer-in.c: Likewise.
9578         * lto-streamer-out.c: Likewise.
9579         * lto-streamer.c: Likewise.
9580         * omp-low.c: Likewise.
9581         * passes.c: Likewise.
9582         * predict.c: Likewise.
9583         * print-tree.c: Likewise.
9584         * profile.c: Likewise.
9585         * sese.c: Likewise.
9586         * targhooks.c: Likewise.
9587         * tracer.c: Likewise.
9588         * trans-mem.c: Likewise.
9589         * tree-call-cdce.c: Likewise.
9590         * tree-cfg.c: Likewise.
9591         * tree-cfgcleanup.c: Likewise.
9592         * tree-chrec.c: Likewise.
9593         * tree-complex.c: Likewise.
9594         * tree-data-ref.c: Likewise.
9595         * tree-dfa.c: Likewise.
9596         * tree-eh.c: Likewise.
9597         * tree-emutls.c: Likewise.
9598         * tree-if-conv.c: Likewise.
9599         * tree-inline.c: Likewise.
9600         * tree-into-ssa.c: Likewise.
9601         * tree-loop-distribution.c: Likewise.
9602         * tree-mudflap.c: Likewise.
9603         * tree-nested.c: Likewise.
9604         * tree-nrv.c: Likewise.
9605         * tree-object-size.c: Likewise.
9606         * tree-outof-ssa.c: Likewise.
9607         * tree-parloops.c: Likewise.
9608         * tree-phinodes.c: Likewise.
9609         * tree-predcom.c: Likewise.
9610         * tree-pretty-print.c: Likewise.
9611         * tree-profile.c: Likewise.
9612         * tree-scalar-evolution.c: Likewise.
9613         * tree-sra.c: Likewise.
9614         * tree-ssa-address.c: Likewise.
9615         * tree-ssa-alias.c: Likewise.
9616         * tree-ssa-ccp.c: Likewise.
9617         * tree-ssa-coalesce.c: Likewise.
9618         * tree-ssa-copy.c: Likewise.
9619         * tree-ssa-copyrename.c: Likewise.
9620         * tree-ssa-dce.c: Likewise.
9621         * tree-ssa-dom.c: Likewise.
9622         * tree-ssa-dse.c: Likewise.
9623         * tree-ssa-forwprop.c: Likewise.
9624         * tree-ssa-ifcombine.c: Likewise.
9625         * tree-ssa-live.c: Likewise.
9626         * tree-ssa-loop-ch.c: Likewise.
9627         * tree-ssa-loop-im.c: Likewise.
9628         * tree-ssa-loop-ivcanon.c: Likewise.
9629         * tree-ssa-loop-ivopts.c: Likewise.
9630         * tree-ssa-loop-manip.c: Likewise.
9631         * tree-ssa-loop-niter.c: Likewise.
9632         * tree-ssa-loop-prefetch.c: Likewise.
9633         * tree-ssa-loop-unswitch.c: Likewise.
9634         * tree-ssa-loop.c: Likewise.
9635         * tree-ssa-math-opts.c: Likewise.
9636         * tree-ssa-operands.c: Likewise.
9637         * tree-ssa-phiopt.c: Likewise.
9638         * tree-ssa-phiprop.c: Likewise.
9639         * tree-ssa-pre.c: Likewise.
9640         * tree-ssa-propagate.c: Likewise.
9641         * tree-ssa-reassoc.c: Likewise.
9642         * tree-ssa-sccvn.c: Likewise.
9643         * tree-ssa-sink.c: Likewise.
9644         * tree-ssa-strlen.c: Likewise.
9645         * tree-ssa-structalias.c: Likewise.
9646         * tree-ssa-tail-merge.c: Likewise.
9647         * tree-ssa-ter.c: Likewise.
9648         * tree-ssa-threadedge.c: Likewise.
9649         * tree-ssa-threadupdate.c: Likewise.
9650         * tree-ssa-uncprop.c: Likewise.
9651         * tree-ssa-uninit.c: Likewise.
9652         * tree-ssa.c: Likewise.
9653         * tree-ssanames.c: Likewise.
9654         * tree-stdarg.c: Likewise.
9655         * tree-streamer-in.c: Likewise.
9656         * tree-switch-conversion.c: Likewise.
9657         * tree-tailcall.c: Likewise.
9658         * tree-vect-data-refs.c: Likewise.
9659         * tree-vect-generic.c: Likewise.
9660         * tree-vect-loop-manip.c: Likewise.
9661         * tree-vect-loop.c: Likewise.
9662         * tree-vect-patterns.c: Likewise.
9663         * tree-vect-slp.c: Likewise.
9664         * tree-vect-stmts.c: Likewise.
9665         * tree-vectorizer.c: Likewise.
9666         * tree-vrp.c: Likewise.
9667         * tree.c: Likewise.
9668         * tsan.c: Likewise.
9669         * value-prof.c: Likewise.
9670         * var-tracking.c: Likewise.
9671         * varpool.c: Likewise.
9672         * vtable-verify.c: Likewise.
9674 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9676         * config/tilegx/tilegx.c: Include "tree.h".
9678 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9680         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9681         the info, not after it.
9682         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9683         dump_ssaname_info call.
9684         (pp_gimple_stmt_1): Adjust caller.
9685         (dump_phi_nodes): Likewise.  Don't print "# " here.
9687 2013-10-22  Jan Hubicka  <jh@suse.cz>
9689         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9690         tuning flag.
9691         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9692         * i386.c (expand_small_movmem_or_setmem): New function.
9693         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9694         function.
9695         (alg_usable_p): Add support for value ranges; cleanup.
9696         (ix86_expand_set_or_movmem): Add support for misaligned moves.
9698 2013-10-22  Sterling Augustine  <saugustine@google.com>
9700         * doc/invoke.texi: Document -ggnu-pubnames.
9701         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9702         logic.
9703         * dwarf2out.c: Include gdb/gdb-index.h.
9704         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9705         debug_generate_pub_sections.
9706         (is_java, output_pubtables, output_pubname): New functions.
9707         (include_pubname_in_output): Handle debug_generate_pub_sections at
9708         level 2.
9709         (size_of_pubnames): Use new local space_for_flags based on
9710         debug_generate_pub_sections.
9711         (output_pubnames): Unify pubnames and pubtypes output logic.
9712         Genericize comments.  Call output_pubname.
9713         (dwarf2out_finish): Move logic to output_pubnames and call it.
9715 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
9717         PR target/58779
9718         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9719         Remove CCCmode handling.
9720         <case LTU>: Return 'c' suffix for CCCmode.
9721         <case GEU>: Return 'nc' suffix for CCCmode.
9722         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9723         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9724         (*sub<mode>3_cc_overflow): Ditto.
9725         (*subsi3_zext_cc_overflow): Ditto.
9727 2013-10-22  Steve Ellcey  <sellcey@mips.com>
9729         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
9730         (AND (NOT OP1) (NOT OP2)).
9732 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
9734         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9735         meaning of merge-high and merge-low masks for little endian; avoid
9736         use of vector-pack masks for little endian for mismatched modes.
9738 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9740         * config/tilepro/tilepro.c: Include "tree.h".
9742 2013-10-22  Andreas Schwab  <schwab@suse.de>
9744         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9745         with PRE_DEC.
9747 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
9749         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9750         [Ed Smith-Rowland]): New entries.
9751         ([Stephen M. Webb]): Update.
9753 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
9755         * tree-ssa-ter.h: Remove duplicate copy of file contents.
9757 2013-10-21  Marek Polacek  <polacek@redhat.com>
9759         PR middle-end/58809
9760         * fold-const.c (fold_range_test): Return 0 if the type is not
9761         an integral type.
9763 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
9765         * system.h: Move hwint.h include further down.
9766         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
9767         gcc_checking_asserts.
9768         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9770 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9772         Fix volatile issues in optimize_bit_field_compare.
9773         * fold-const.c (optimize_bit_field_compare): Bail out if
9774         lvolatilep or rvolatilep.
9776 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9778         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9779         and get_inner_reference returning different pmode for non-volatile
9780         bit-field members dependent on flag_strict_volatile_bitfields.
9781         * stor-layout.c (layout_decl): Remove special handling of
9782         flag_strict_volatile_bitfields.
9783         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9784         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9786 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
9788         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9789         calculations.
9791 2013-10-21  Jeff Law  <law@redhat.com>
9793         * tree-ssa-threadedge.c (thread_through_normal_block): New
9794         argument VISITED.  Remove VISISTED as a local variable.  When we
9795         have a threadable jump, verify the destination of the jump has not
9796         been visised.
9797         (thread_across_edge): Allocate VISITED bitmap once at function
9798         scope and use it throughout.  Make sure to set appropriate bits in
9799         VISITED for E (start of jump thread path).
9800         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9801         through a joiner if any edge on the path has a recorded jump thread.
9803 2013-10-21  Ian Lance Taylor  <iant@google.com>
9805         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9806         don't imply that attributes can solve all problems.
9807         (Directory Options): Fix typo.
9809 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9811         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9812         extend and extend_add.
9814 2013-10-21  Richard Biener  <rguenther@suse.de>
9816         PR tree-optimization/58794
9817         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9818         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9820 2013-10-21  Richard Biener  <rguenther@suse.de>
9822         PR middle-end/58742
9823         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9824         to (T) X for sign-changing conversions (or no conversion).
9826 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
9828         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9830 2013-10-20  Jan Hubicka  <jh@suse.cz>
9832         * config/i386/i386-tune.def: Add comment; organize into categories
9834 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9836         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9837         argument.  Update function comment.
9838         (expand_set_or_movmem_via_rep): New function combining
9839         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9840         (expand_movmem_via_rep_mov): Remove.
9841         expand_setmem_via_rep_stos): Remove.
9842         (expand_movmem_epilogue): Update calls correspondingly.
9843         (expand_setmem_epilogue_via_loop): Likewise.
9844         (emit_memset): New.
9845         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9846         (expand_set_or_movmem_prologue): New function combining
9847         expand_movmem_prologue and expand_setmem_prologue.
9848         (expand_movmem_prologue): Remove.
9849         (expand_setmem_prologue): Remove.
9850         (expand_set_or_movmem_constant_prologue): New function combining
9851         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9852         (expand_constant_movmem_prologue): Remove.
9853         (expand_constant_setmem_prologue): Remove.
9854         (promote_duplicated_reg): Allow vector-const0 value.
9855         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9856         and ix86_expand_setmem.
9857         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9858         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9860 2013-10-21  Diego Novillo  <dnovillo@google.com>
9862         * asan.c: Include tree.h
9863         * bb-reorder.c: Likewise.
9864         * cfgcleanup.c: Likewise.
9865         * cfgloopmanip.c: Likewise.
9866         * data-streamer-in.c: Likewise.
9867         * data-streamer-out.c: Likewise.
9868         * data-streamer.c: Likewise.
9869         * dwarf2cfi.c: Likewise.
9870         * graphite-blocking.c: Likewise.
9871         * graphite-clast-to-gimple.c: Likewise.
9872         * graphite-dependences.c: Likewise.
9873         * graphite-interchange.c: Likewise.
9874         * graphite-optimize-isl.c: Likewise.
9875         * graphite-poly.c: Likewise.
9876         * graphite-scop-detection.c: Likewise.
9877         * graphite-sese-to-poly.c: Likewise.
9878         * graphite.c: Likewise.
9879         * ipa-devirt.c: Likewise.
9880         * ipa-profile.c: Likewise.
9881         * ipa.c: Likewise.
9882         * ira.c: Likewise.
9883         * loop-init.c: Likewise.
9884         * loop-unroll.c: Likewise.
9885         * lower-subreg.c: Likewise.
9886         * lto/lto-object.c: Likewise.
9887         * recog.c: Likewise.
9888         * reginfo.c: Likewise.
9889         * tree-loop-distribution.c: Likewise.
9890         * tree-parloops.c: Likewise.
9891         * tree-ssa-strlen.c: Likewise.
9892         * tree-streamer.c: Likewise.
9893         * value-prof.c: Likewise.
9894         * target-globals.c: Likewise.
9895         * expr.h: Include tree-core.h instead of tree.h.
9896         * gimple.h: Likewise.
9897         * ipa-prop.h: Likewise.
9898         * ipa-utils.h: Likewise.
9899         * lto-streamer.h: Likewise.
9900         * streamer-hooks.h: Likewise.
9901         * ipa-reference.h: Include cgraph.h instead of tree.h.
9902         * cgraph.h: Include basic-block.h instead of tree.h.
9903         * tree-streamer.h: Do not include tree.h.
9904         * genattrtab.c (write_header): Generate inclusion of tree.h.
9905         * genautomata.c (main): Likewise.
9906         * genemit.c: Likewise.
9907         * genopinit.c: Likewise.
9908         * genoutput.c (output_prologue): Likewise.
9909         * genpeep.c: Likewise.
9911 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9913         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9914         little endian.
9915         (vec_unpacku_hi_v8hi): Likewise.
9916         (vec_unpacku_lo_v16qi): Likewise.
9917         (vec_unpacku_lo_v8hi): Likewise.
9919 2013-10-20  Jan Hubicka  <jh@suse.cz>
9921         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9922         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9923         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9925 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
9927         * config/mips/mips.h (ISA_HAS_WSBH): Define.
9928         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9929         constants.
9930         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9932 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
9934         PR target/58603
9935         * system.h: Undef m_slot.
9937 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9939         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9940         all elements for both endian flavors.
9942 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9944         PR target/58792
9945         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9946         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
9947         and SI_REG for 64bit SYSV ABI targets.
9949 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9951         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9952         to multi_reg_return.  Clarify that we are skipping USEs of multiple
9953         return registers.  Use bool type where appropriate.
9955 2013-10-18  Jan Hubicka  <jh@suse.cz>
9957         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9958         for cold functions.
9959         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9960         (X86_TUNE_PUSH_MEMORY): Likewise.
9961         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9962         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9963         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9964         New.
9965         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9966         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9967         Remove.
9968         (ix86_option_override_internal): Update to use tune features instead
9969         of variables.
9971 2013-10-18  Cong Hou  <congh@google.com>
9973         PR tree-optimization/58508
9974         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9975         statement that contains data refs with zero-step.
9977 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9979         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9980         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9981         * gimple-low.c (gimple_check_call_arg,
9982         gimple_check_call_matching_types): Move to cgraph.c.
9983         * gimple-low.h: Remove prototype.
9984         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9985         Relocate from gimple-low.c.
9986         * cgraph.h: Add prototype.  Don't include basic-block.h.
9987         * gimplify.c: Add gimple-low to include list.
9988         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9989         * tree-eh.c: Add gimple-low to include list.
9990         * tree-nested.c: Likewise.
9991         * cfgexpand.c: Add tree-ssa-address.h to include list.
9992         * expr.c: Likewise.
9993         * gimple-fold.c: Likewise.
9994         * gimple-ssa-strength-reduction.c: Likewise.
9995         * trans-mem.c: Likewise.
9996         * tree-mudflap.c: Likewise.
9997         * tree-ssa-loop-ivopts.c: Likewise.
9998         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9999         (degenerate_phi_result): Move to tree-phinodes.c.
10000         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
10001         * tree-ssa-threadedge.c: Likewise.
10002         * tree-vrp.c: Likewise.
10003         * tree-phinodes.c (degenerate_phi_result): Relocate here.
10004         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
10005         * tree-phinodes.h (degenerate_phi_result): Add prototype.
10006         * tree-ssa-copy.c: Include tree-ssa-dom.h.
10007         * tree-ssa-forwprop.c: Likewise.
10008         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
10009         pass_data_cleanup_cfg_post_optimizing,
10010         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
10011         * tree-optimize.c: Delete File.
10012         * graphite.c: Include tree-cfgcleanup.h.
10013         * passes.c: Likewise.
10014         * tree-cfg.c: Likewise.
10015         * tree-profile.c: Likewise.
10016         * tree-ssa-dse.c: Likewise.
10017         * tree-ssa-loop-ivcanon.c: Likewise.
10018         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
10019         * tree-outof-ssa.c: Include sbitmap.h.
10020         * tree-ssa-live.c: Likewise.
10021         * tree-ssa-propagate.c: Likewise.
10022         * tree-ssa-structalias.c: Likewise.
10023         * tree-stdarg.c: Likewise.
10024         * Makefile.in (OBJS): Delete tree-optimize.o.
10025         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
10026         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
10027         * varasm.c: Include basic-block.h.
10028         * cfgloop.h: Include function.h instead of basic-block.h
10029         (bb_loop_depth): Move to cfgloop.c.
10030         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
10032 2013-10-18  Teresa Johnson  <tejohnson@google.com>
10034         * predict.c (probably_never_executed): Compare frequency-based
10035         count to number of training runs.
10036         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
10038 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10040         * config/arm/arm.c (cortexa9_extra_costs): New table.
10041         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
10043 2013-10-18  Jeff Law  <law@redhat.com>
10045         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
10047         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
10048         (register_jump_thread): Add "registered_jump_thread" debug
10049         counter support.
10050         * dbgcnt.def (registered_jump_thread): New debug counter.
10052 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
10054         * config/rs6000/rs6000.c: Include cgraph.h.
10056 2013-10-18  Teresa Johnson  <tejohnson@google.com>
10058         * tree-ssa-tail-merge.c (replace_block_by): Update edge
10059         weights during merging.
10061 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
10063         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
10064         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
10065         * tree-ssa-operands.h: Remove prototype.
10066         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
10067         * gimple.c (virtual_operand_p): Relocate from gimple.c.
10068         * gimple.h: Add prototype.
10069         * gimple-ssa.h: Include tree-ssa-operands.h.
10070         * tree-dump.c: Add tree-cfg.h to include list.
10071         * tree-ssa-alias.c: Add ipa-reference.h to include list.
10072         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
10073         * config/i386/i386.c: Don't include tree-flow.h.
10074         * config/rs6000/rs6000.c: Likewise.
10076 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10078         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
10080 2013-10-18  Richard Biener  <rguenther@suse.de>
10082         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
10083         or TYPE_UNSIGNED of integral types.
10084         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
10085         NULL_TREE for zero-precision integral types.
10087 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
10089         * config/aarch64/arm_neon.h
10090         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
10092 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
10094         PR target/57756
10095         * opth-gen.awk: Define target_flags_explicit.
10097 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
10099         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
10100         fields to the reg_addr array that describes the valid addressing
10101         mode for any register, general purpose registers, floating point
10102         registers, and Altivec registers.
10103         (FIRST_RELOAD_REG_CLASS): Likewise.
10104         (LAST_RELOAD_REG_CLASS): Likewise.
10105         (struct reload_reg_map_type): Likewise.
10106         (reload_reg_map_type): Likewise.
10107         (RELOAD_REG_VALID): Likewise.
10108         (RELOAD_REG_MULTIPLE): Likewise.
10109         (RELOAD_REG_INDEXED): Likewise.
10110         (RELOAD_REG_OFFSET): Likewise.
10111         (RELOAD_REG_PRE_INCDEC): Likewise.
10112         (RELOAD_REG_PRE_MODIFY): Likewise.
10113         (reg_addr): Likewise.
10114         (mode_supports_pre_incdec_p): New helper functions to say whether
10115         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
10116         (mode_supports_pre_modify_p): Likewise.
10117         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
10118         print the valid address mode bits for each mode.
10119         (rs6000_debug_print_mode): Likewise.
10120         (rs6000_debug_reg_global): Likewise.
10121         (rs6000_setup_reg_addr_masks): New function to set up the address
10122         mask bits for each type.
10123         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
10124         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
10125         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
10126         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
10127         PRE_MODIFY are supported.
10128         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
10129         registers, instead of {src,dest}_av_p.
10130         (rs6000_print_options_internal): Tweak the debug output slightly.
10132 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
10134         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
10135         isa attribute.
10137 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
10139         * tree-flow.h (struct omp_region): Move to omp-low.c.
10140         Remove omp_ prototypes and variables.
10141         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
10142         (copy_var_decl): Relocate prototype from tree-flow.h.
10143         * gimple.c (copy_var_decl): Relocate from omp-low.c.
10144         * tree.h: Move prototype to omp-low.h.
10145         * omp-low.h: New File.  Relocate prototypes here.
10146         * omp-low.c (struct omp_region): Make local here.
10147         (root_omp_region): Make static.
10148         (copy_var_decl) Move to gimple.c.
10149         (new_omp_region): Make static.
10150         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
10151         * tree-cfg.c: Include omp-low.h.
10152         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
10153         * gimplify.c: Include omp-low.h.
10154         * tree-parloops.c: Likewise.
10156 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
10158         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
10159         operands are in memory, prefer to force non-matched operand 1 to
10160         the register.
10162 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
10164         PR target/58673
10165         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
10166         restrict TImode addresses to single indirect registers if both
10167         -mquad-memory and -mvsx-timode are used.
10168         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
10169         we should emit load/store quad.  Remove using %y for quad memory
10170         addresses.
10172         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
10173         constraints to allow load/store quad on machines where TImode is
10174         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
10175         for TImode to load integer constants.
10177 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10179         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
10181 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10183         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
10184         handling of STACK_REG.
10186 2013-10-17  Richard Biener  <rguenther@suse.de>
10188         PR tree-optimization/58143
10189         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
10190         New function.
10191         (rewrite_to_defined_overflow): Likewise.
10192         (move_computations_dom_walker::before_dom): Rewrite stmts
10193         with undefined signed overflow that are not always executed
10194         into unsigned arithmetic.
10196 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
10198         PR target/57756
10199         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
10200         explicit isa flag to be an options variable, instead of using
10201         global_options_set.  Remove define from rs6000.h.
10202         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
10204         * config/rs6000/rs6000.c (rs6000_option_override_internal):
10205         Initialize rs6000_isa_flags_explicit.
10206         (rs6000_function_specific_save): Add gcc_options* parameter, so
10207         that the powerpc builds after the 2013-10-15 changes.
10208         (rs6000_function_specific_restore): Likewise.
10210 2013-10-16  DJ Delorie  <dj@redhat.com>
10212         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
10213         op is a REG before checking REGNO.
10214         (rl78_alloc_physical_registers): Verify pattern is a SET before
10215         checking SET_SRC.
10217 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10219         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
10220         endianness.
10221         (vec_unpacks_lo_v4sf): Likewise.
10222         (vec_unpacks_float_hi_v4si): Likewise.
10223         (vec_unpacks_float_lo_v4si): Likewise.
10224         (vec_unpacku_float_hi_v4si): Likewise.
10225         (vec_unpacku_float_lo_v4si): Likewise.
10227 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10229         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
10230         (vsx_concat_v2sf): Likewise.
10232 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
10234         * config/aarch64/aarch64.md
10235         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
10237 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
10239         PR tree-optimization/58697
10240         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
10241         estimated_loop_iterations_int.
10242         (max_stmt_executions_int): Call get_max_loop_iterations_int.
10243         (get_max_loop_iterations_int): New.  HWINT version of
10244         get_max_loop_iterations.
10245         * cfgloop.h: Add prototypes.
10246         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
10247         * loop-unroll.c (decide_peel_once_rolling): Call
10248         get_estimated_loop_iterations_int.
10249         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
10250         * tree-ssa-loop-niter.h: Tweak prototypes.
10252 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
10254         * gengtype-parse.c (struct_field_seq): Ignore access-control
10255         keywords ("public:" etc).
10257 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10259         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
10260         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
10262 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
10264         * config/arm/arm.opt (mlra): New option.
10265         * config/arm/arm.c (arm_lra_p): New function.
10266         (TARGET_LRA_P): Define.
10268 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
10270         * tree-core.h (tree_code_name): Remove.
10271         * tree.h (get_tree_code_name): New prototype.
10272         * tree.c (tree_code_name): Make static.
10273         (get_tree_code_name): New function.
10274         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10275         tree_class_check_failed, tree_range_check_failed,
10276         tree_not_class_check_failed, omp_clause_check_failed,
10277         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10278         wrapper get_tree_code_name instead of calling tree_code_name directly.
10279         * tree-vrp.c (dump_asserts_for): Likewise.
10280         * tree-dump.c (dequeue_and_dump): Likewise.
10281         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10282         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10283         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10284         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10285         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10286         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10287         dump_gimple_omp_for): Likewise.
10288         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10289         * tree-ssa-pre.c (print_pre_expr): Likewise.
10290         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10291         * print-tree.c (print_node_brief, print_node): Likewise.
10292         * gimple.c (gimple_check_failed): Likewise.
10293         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10294         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10295         * config/mep/mep.c (mep_validate_vliw): Likewise.
10296         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10297         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10299 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
10301         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10302         for AMD bdver3.
10304 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
10306         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10307         (MULTILIB_MATCHES): Add multilib for -march=v8.
10309 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
10311         PR target/57756
10312         * optc-save-gen.awk: Add extra parameter to the save and restore
10313         target calls.
10314         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
10315         * tree.c (build_optimization_node): New parameter.  Add extra parameter
10316         to call to cl_optimization_save.
10317         (build_target_option_node): New parameter. Add extra parameter
10318         to call to cl_target_option_save.
10319         * tree.h (build_optimization_node): New parameter.
10320         (build_target_option_node): New parameter.
10321         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10322         build_optimization_node and build_target_option_node.
10323         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10324         (handle_pragma_push_options): Ditto.
10325         * toplev.c (process_options): Ditto.
10326         * opts.c (init_options_struct): Check for opts_set non-null.
10327         * target.def (target_option.save): New parameter.
10328         (target_option.restore): New parameter.
10329         * tm.texi: Generate.
10330         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10331         (ix86_pragma_target_parse): Ditto.
10332         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10333         parameters.
10334         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10335         to  build_optimization_node and build_target_option_node.
10336         (rs6000_valid_attribute_p): Ditto.
10337         (rs6000_pragma_target_parse): Ditto.
10338         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10339         data.
10340         * config/i386/i386.h:
10341         TARGET_64BIT_P: New Macro
10342         TARGET_MMX_P: New Macro.
10343         TARGET_3DNOW_P: New Macro.
10344         TARGET_3DNOW_A_P: New Macro.
10345         TARGET_SSE_P: New Macro.
10346         TARGET_SSE2_P: New Macro.
10347         TARGET_SSE3_P: New Macro.
10348         TARGET_SSSE3_P: New Macro.
10349         TARGET_SSE4_1_P: New Macro.
10350         TARGET_SSE4_2_P: New Macro.
10351         TARGET_AVX_P: New Macro.
10352         TARGET_AVX2_P: New Macro.
10353         TARGET_AVX512F_P: New Macro.
10354         TARGET_AVX512PF_P: New Macro.
10355         TARGET_AVX512ER_P: New Macro.
10356         TARGET_AVX512CD_P: New Macro.
10357         TARGET_FMA_P: New Macro.
10358         TARGET_SSE4A_P: New Macro.
10359         TARGET_FMA4_P: New Macro.
10360         TARGET_XOP_P: New Macro.
10361         TARGET_LWP_P: New Macro.
10362         TARGET_ABM_P: New Macro.
10363         TARGET_BMI_P: New Macro.
10364         TARGET_BMI2_P: New Macro.
10365         TARGET_LZCNT_P: New Macro.
10366         TARGET_TBM_P: New Macro.
10367         TARGET_POPCNT_P: New Macro.
10368         TARGET_SAHF_P: New Macro.
10369         TARGET_MOVBE_P: New Macro.
10370         TARGET_CRC32_P: New Macro.
10371         TARGET_AES_P: New Macro.
10372         TARGET_PCLMUL_P: New Macro.
10373         TARGET_CMPXCHG16B_P: New Macro.
10374         TARGET_FSGSBASE_P: New Macro.
10375         TARGET_RDRND_P: New Macro.
10376         TARGET_F16C_P: New Macro.
10377         TARGET_RTM_P: New Macro.
10378         TARGET_HLE_P: New Macro.
10379         TARGET_RDSEED_P: New Macro.
10380         TARGET_PRFCHW_P: New Macro.
10381         TARGET_ADX_P: New Macro.
10382         TARGET_FXSR_P: New Macro.
10383         TARGET_XSAVE_P: New Macro.
10384         TARGET_XSAVEOPT_P: New Macro.
10385         TARGET_LP64_P: New Macro.
10386         TARGET_X32_P: New Macro.
10387         TARGET_FPMATH_DEFAULT_P: New Macro.
10388         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10389         * config/i386/i386.c (ix86_option_override_internal): New parameters.
10390         opts and opts_set.
10391         Change ix86_tune_string to access opts->x_ix86_tune_string.
10392         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10393         Change ix86_arch_string to access opts->x_ix86_arch_string.
10394         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10395         Change ix86_pmode to access opts->x_ix86_pmode.
10396         Change ix86_abi to access opts->x_ix86_abi.
10397         Change ix86_cmodel to access opts->x_ix86_cmodel.
10398         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10399         Change ix86_isa_flags_explicit to access
10400         opts->x_ix86_isa_flags_explicit.
10401         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10402         Change ix86_regparm to access opts->x_ix86_regparm.
10403         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10404         Change ix86_preferred_stack_boundary_arg to access
10405         opts->x_ix86_preferred_stack_boundary_arg.
10406         Change ix86_force_align_arg_pointer to access
10407         opts->x_ix86_force_align_arg_pointer.
10408         Change ix86_incoming_stack_boundar_arg to access
10409         opts->x_ix86_incoming_stack_boundar_arg.
10410         Change ix86_fpmath to access opts->x_ix86_fpmath.
10411         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10412         Change ix86_recip_name to access opts->x_ix86_recip_name.
10413         Change ix86_stack_protector_guard to access
10414         opts->x_ix86_stack_protector_guard.
10415         Change ix86_tune_memcpy_strategy to access
10416         opts->x_ix86_tune_memcpy_strategy.
10417         Change ix86_tune_memset_strategy to access
10418         opts->x_ix86_tune_memset_strategy.
10419         Change global_options to access opts.
10420         Change global_options_set to access opts_set.
10421         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10422         Change TARGET_MMX to TARGET_MMX_P (opts->...).
10423         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10424         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10425         Change TARGET_SSE to TARGET_SSE_P (opts->...).
10426         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10427         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10428         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10429         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10430         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10431         Change TARGET_AVX to TARGET_AVX_P (opts->...).
10432         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10433         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10434         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10435         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10436         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10437         Change TARGET_FMA to TARGET_FMA_P (opts->...).
10438         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10439         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10440         Change TARGET_XOP to TARGET_XOP_P (opts->...).
10441         Change TARGET_LWP to TARGET_LWP_P (opts->...).
10442         Change TARGET_ABM to TARGET_ABM_P (opts->...).
10443         Change TARGET_BMI to TARGET_BMI_P (opts->...).
10444         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10445         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10446         Change TARGET_TBM to TARGET_TBM_P (opts->...).
10447         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10448         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10449         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10450         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10451         Change TARGET_AES to TARGET_AES_P (opts->...).
10452         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10453         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10454         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10455         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10456         Change TARGET_F16C to TARGET_F16C_P (opts->...).
10457         Change TARGET_RTM to TARGET_RTM_P (opts->...).
10458         Change TARGET_HLE to TARGET_HLE_P (opts->...).
10459         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10460         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10461         Change TARGET_ADX to TARGET_ADX_P (opts->...).
10462         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10463         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10464         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10465         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10466         Change TARGET_X32 to TARGET_X32_P (opts->...).
10467         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10468         Change TARGET_FLOAT_RETURNS_IN_80387 to
10469         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10470         (ix86_function_specific_save): New parameter. Use opts-> fields
10471         to replace global fields.
10472         (ix86_function_specific_restore): Ditto.
10473         (ix86_valid_target_attribute_inner_p): New parameters.
10474         Fix recursive call.
10475         Fix call to ix86_handle_option and set_option.
10476         (ix86_valid_target_attribute_tree): New parameters.
10477         Change global_options to access opts.
10478         Change global_options_set to access opts_set.
10479         Fix call to ix86_valid_target_attribute_inner_p.
10480         Change ix86_tune_string to access opts->x_ix86_tune_string.
10481         Change ix86_arch_string to access opts->x_ix86_arch_string.
10482         Change ix86_fpmath to access opts->x_ix86_fpmath
10483         Fix call to ix86_option_override_internal.
10484         Fix call to ix86_add_new_builtins.
10485         Fix calls to build_optimization_node and build_target_option_node.
10486         (ix86_valid_target_attribute_p): Remove access to global_options.
10487         Use new gcc_options structure func_options.
10488         Fix call to ix86_valid_target_attribute_tree.
10489         Fix call to  build_optimization_node.
10490         (get_builtin_code_for_version): Fix call to
10491         ix86_valid_target_attribute_tree.
10493 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
10495         * Makefile.in (PICFLAG): New.
10496         (enable_host_shared): New.
10497         (INTERNAL_CFLAGS): Use PICFLAG.
10498         (LIBIBERTY): Use pic build of libiberty.a if configured with
10499         --enable-host-shared.
10500         * configure.ac: Add --enable-host-shared, setting up new
10501         PICFLAG variable.
10502         * configure: Regenerate.
10503         * doc/install.texi (--enable-shared): Add note contrasting it with ...
10504         (--enable-host-shared): New option.
10506 2013-10-15  Richard Biener  <rguenther@suse.de>
10508         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10509         for built-in functions.
10511 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10513         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10514         (optimize_range_tests_1): New function,
10515         extracted from optimize_range_tests.
10516         (optimize_range_tests_xor): Similarly.
10517         (optimize_range_tests_diff): New function.
10518         (optimize_range_tests): Use optimize_range_tests_1.
10520 2013-10-15  Cong Hou  <congh@google.com>
10522         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10523         requirement of the reduction pattern so that one operand of the
10524         reduction operation can come from outside of the loop.
10526 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10528         * config/arm/neon-schedgen.ml: Remove.
10529         * config/arm/cortex-a9-neon.md: Remove comment regarding
10530         neon-schedgen.ml.
10532 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10534         * config/arm/types: Remove old neon types.
10536 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10538         * config/arm/cortex-a7.md
10539         (cortex_a7_neon_type): New.
10540         (cortex_a7_neon_mul): Update for new types.
10541         (cortex_a7_neon_mla): Likewise.
10542         (cortex_a7_neon): Likewise.
10544 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10546         * config/arm/cortex-a15-neon.md
10547         (cortex_a15_neon_type): New,
10549         (cortex_a15_neon_int_1): Remove.
10550         (cortex_a15_neon_int_2): Likewise.
10551         (cortex_a15_neon_int_3): Likewise.
10552         (cortex_a15_neon_int_4): Likewise.
10553         (cortex_a15_neon_int_5): Likewise.
10554         (cortex_a15_neon_vqneg_vqabs): Likewise.
10555         (cortex_a15_neon_vmov): Likewise.
10556         (cortex_a15_neon_vaba): Likewise.
10557         (cortex_a15_neon_vaba_qqq): Likewise.
10558         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10559         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10560         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10561         Likewise.
10562         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10563         (cortex_a15_neon_mla_qqq_8_16): Likewise.
10564         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10565         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10566         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10567         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10568         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10569         (cortex_a15_neon_shift_1): Likewise.
10570         (cortex_a15_neon_shift_2): Likewise.
10571         (cortex_a15_neon_shift_3): Likewise.
10572         (cortex_a15_neon_vshl_ddd): Likewise.
10573         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10574         (cortex_a15_neon_vsra_vrsra): Likewise.
10575         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10576         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10577         (cortex_a15_neon_bp_3cycle): Likewise.
10578         (cortex_a15_neon_ldm_2): Likewise.
10579         (cortex_a15_neon_stm_2): Likewise.
10580         (cortex_a15_neon_mcr): Likewise.
10581         (cortex_a15_neon_mrc): Likewise.
10582         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10583         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10584         (cortex_a15_neon_fp_vmul_ddd): Likewise.
10585         (cortex_a15_neon_fp_vmul_qqd): Likewise.
10586         (cortex_a15_neon_fp_vmla_ddd): Likewise.
10587         (cortex_a15_neon_fp_vmla_qqq): Likewise.
10588         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10589         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10590         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10591         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10592         (cortex_a15_neon_bp_simple): Likewise.
10593         (cortex_a15_neon_bp_2cycle): Likewise.
10594         (cortex_a15_neon_bp_3cycle): Likewise.
10595         (cortex_a15_neon_vld1_1_2_regs): Likewise.
10596         (cortex_a15_neon_vld1_3_4_regs): Likewise.
10597         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10598         (cortex_a15_neon_vld2_4_regs): Likewise.
10599         (cortex_a15_neon_vld3_vld4): Likewise.
10600         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10601         (cortex_a15_neon_vst1_3_4_regs): Likewise.
10602         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10603         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10604         (cortex_a15_neon_vst3_vst4): Rename to...
10605         (cortex_a15_neon_vst4): This, update for new attributes.
10606         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10607         (cortex_a15_neon_vld3_vld4_lane): Likewise.
10608         (cortex_a15_neon_vst1_vst2_lane): Likewise.
10609         (cortex_a15_neon_vst3_vst4_lane): Likewise.
10610         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10611         (cortex_a15_neon_ldm_2): Likewise.
10612         (cortex_a15_neon_stm_2): Likewise.
10613         (cortex_a15_neon_mcr): Likewise.
10614         (cortex_a15_neon_mcr_2_mcrr): Likewise.
10615         (cortex_a15_neon_mrc): Likewise.
10616         (cortex_a15_neon_mrrc): Likewise.
10618         (cortex_a15_neon_abd): New.
10619         (cortex_a15_neon_abd_q): Likewise.
10620         (cortex_a15_neon_aba): Likewise.
10621         (cortex_a15_neon_aba_q): Likewise.
10622         (cortex_a15_neon_acc): Likewise.
10623         (cortex_a15_neon_acc_q): Likewise.
10624         (cortex_a15_neon_arith_basic): Likewise.
10625         (cortex_a15_neon_arith_complex): Likewise.
10626         (cortex_a15_neon_multiply): Likewise.
10627         (cortex_a15_neon_multiply_q): Likewise.
10628         (cortex_a15_neon_mla): Likewise.
10629         (cortex_a15_neon_mla_q): Likewise.
10630         (cortex_a15_neon_sat_mla_long): Likewise.
10631         (cortex_a15_neon_shift_acc): Likewise.
10632         (cortex_a15_neon_shift_imm_basic): Likewise.
10633         (cortex_a15_neon_shift_imm_complex): Likewise.
10634         (cortex_a15_neon_shift_reg_basic): Likewise.
10635         (cortex_a15_neon_shift_reg_basic_q): Likewise.
10636         (cortex_a15_neon_shift_reg_complex): Likewise.
10637         (cortex_a15_neon_shift_reg_complex_q): Likewise.
10638         (cortex_a15_neon_fp_negabs): Likewise
10639         (cortex_a15_neon_fp_arith): Likewise
10640         (cortex_a15_neon_fp_arith_q): Likewise
10641         (cortex_a15_neon_fp_cvt_int): Likewise
10642         (cortex_a15_neon_fp_cvt_int_q): Likewise
10643         (cortex_a15_neon_fp_cvt_16): Likewise
10644         (cortex_a15_neon_fp_mul): Likewise
10645         (cortex_a15_neon_fp_mul_q): Likewise
10646         (cortex_a15_neon_fp_mla): Likewise
10647         (cortex_a15_neon_fp_mla_q): Likewise
10648         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10649         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10650         (cortex_a15_neon_bitops): Likewise.
10651         (cortex_a15_neon_bitops_q): Likewise.
10652         (cortex_a15_neon_from_gp): Likewise.
10653         (cortex_a15_neon_from_gp_q): Likewise.
10654         (cortex_a15_neon_tbl3_tbl4): Likewise.
10655         (cortex_a15_neon_zip_q): Likewise.
10656         (cortex_a15_neon_to_gp): Likewise.
10657         (cortex_a15_neon_load_a): Likewise.
10658         (cortex_a15_neon_load_b): Likewise.
10659         (cortex_a15_neon_load_c): Likewise.
10660         (cortex_a15_neon_load_d): Likewise.
10661         (cortex_a15_neon_load_e): Likewise.
10662         (cortex_a15_neon_load_f): Likewise.
10663         (cortex_a15_neon_store_a): Likewise.
10664         (cortex_a15_neon_store_b): Likewise.
10665         (cortex_a15_neon_store_c): Likewise.
10666         (cortex_a15_neon_store_d): Likewise.
10667         (cortex_a15_neon_store_e): Likewise.
10668         (cortex_a15_neon_store_f): Likewise.
10669         (cortex_a15_neon_store_g): Likewise.
10670         (cortex_a15_neon_store_h): Likewise.
10671         (cortex_a15_vfp_to_from_gp): Likewise.
10673 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10675         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10677         (cortex_a9_neon_vshl_ddd): Remove.
10678         (cortex_a9_neon_vst3_vst4): Likewise.
10679         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10681         (cortex_a9_neon_bit_ops_q): New.
10683         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10684         (cortex_a9_neon_int_2): Likewise.
10685         (cortex_a9_neon_int_3): Likewise.
10686         (cortex_a9_neon_int_4): Likewise.
10687         (cortex_a9_neon_int_5): Likewise.
10688         (cortex_a9_neon_vqneg_vqabs): Likewise.
10689         (cortex_a9_neon_vmov): Likewise.
10690         (cortex_a9_neon_vaba): Likewise.
10691         (cortex_a9_neon_vaba_qqq): Likewise.
10692         (cortex_a9_neon_shift_1): Likewise.
10693         (cortex_a9_neon_shift_2): Likewise.
10694         (cortex_a9_neon_shift_3): Likewise.
10695         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10696         (cortex_a9_neon_vsra_vrsra): Likewise.
10697         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10698         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10699         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10700         Likewise.
10701         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10702         (cortex_a9_neon_mla_qqq_8_16): Likewise.
10703         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10704         Likewise.
10705         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10706         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10707         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10708         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10709         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10710         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10711         (cortex_a9_neon_fp_vsum): Likewise.
10712         (cortex_a9_neon_fp_vmul_ddd): Likewise.
10713         (cortex_a9_neon_fp_vmul_qqd): Likewise.
10714         (cortex_a9_neon_fp_vmla_ddd): Likewise.
10715         (cortex_a9_neon_fp_vmla_qqq): Likewise.
10716         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10717         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10718         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10719         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10720         (cortex_a9_neon_bp_simple): Likewise.
10721         (cortex_a9_neon_bp_2cycle): Likewise.
10722         (cortex_a9_neon_bp_3cycle): Likewise.
10723         (cortex_a9_neon_ldr): Likewise.
10724         (cortex_a9_neon_str): Likewise.
10725         (cortex_a9_neon_vld1_1_2_regs): Likewise.
10726         (cortex_a9_neon_vld1_3_4_regs): Likewise.
10727         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10728         (cortex_a9_neon_vld2_4_regs): Likewise.
10729         (cortex_a9_neon_vld3_vld4): Likewise.
10730         (cortex_a9_neon_vld1_vld2_lane): Likewise.
10731         (cortex_a9_neon_vld3_vld4_lane): Likewise.
10732         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10733         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10734         (cortex_a9_neon_vst1_3_4_regs): Likewise.
10735         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10736         (cortex_a9_neon_vst1_vst2_lane): Likewise.
10737         (cortex_a9_neon_vst3_vst4_lane): Likewise.
10738         (cortex_a9_neon_mcr): Likewise.
10739         (cortex_a9_neon_mcr_2_mcrr): Likewise.
10740         (cortex_a9_neon_mrc): Likewise.
10741         (cortex_a9_neon_mrrc): Likewise.
10743 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10745         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10747         (cortex_a8_neon_vshl_ddd): Remove.
10748         (cortex_a8_neon_vst3_vst4): Likewise.
10749         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10751         (cortex_a8_neon_bit_ops_q): New.
10753         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10754         (cortex_a8_neon_int_2): Likewise..
10755         (cortex_a8_neon_int_3): Likewise.
10756         (cortex_a8_neon_int_5): Likewise.
10757         (cortex_a8_neon_vqneg_vqabs): Likewise.
10758         (cortex_a8_neon_int_4): Likewise.
10759         (cortex_a8_neon_vaba): Likewise.
10760         (cortex_a8_neon_vaba_qqq): Likewise.
10761         (cortex_a8_neon_shift_1): Likewise.
10762         (cortex_a8_neon_shift_2): Likewise.
10763         (cortex_a8_neon_shift_3): Likewise.
10764         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10765         (cortex_a8_neon_vsra_vrsra): Likewise.
10766         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10767         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10768         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10769         Likewise.
10770         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10771         (cortex_a8_neon_mla_qqq_8_16): Likewise.
10772         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10773         Likewise.
10774         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10775         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10776         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10777         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10778         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10779         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10780         (cortex_a8_neon_fp_vsum): Likewise.
10781         (cortex_a8_neon_fp_vmul_ddd): Likewise.
10782         (cortex_a8_neon_fp_vmul_qqd): Likewise.
10783         (cortex_a8_neon_fp_vmla_ddd): Likewise.
10784         (cortex_a8_neon_fp_vmla_qqq): Likewise.
10785         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10786         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10787         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10788         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10789         (cortex_a8_neon_bp_simple): Likewise.
10790         (cortex_a8_neon_bp_2cycle): Likewise.
10791         (cortex_a8_neon_bp_3cycle): Likewise.
10792         (cortex_a8_neon_ldr): Likewise.
10793         (cortex_a8_neon_str): Likewise.
10794         (cortex_a8_neon_vld1_1_2_regs): Likewise.
10795         (cortex_a8_neon_vld1_3_4_regs): Likewise.
10796         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10797         (cortex_a8_neon_vld2_4_regs): Likewise.
10798         (cortex_a8_neon_vld3_vld4): Likewise.
10799         (cortex_a8_neon_vld1_vld2_lane): Likewise.
10800         (cortex_a8_neon_vld3_vld4_lane): Likewise.
10801         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10802         (cortex_a8_neon_vst1_3_4_regs): Likewise.
10803         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10804         (cortex_a8_neon_vst1_vst2_lane): Likewise.
10805         (cortex_a8_neon_vst3_vst4_lane): Likewise.
10806         (cortex_a8_neon_mcr): Likewise.
10807         (cortex_a8_neon_mcr_2_mcrr): Likewise.
10808         (cortex_a8_neon_mrc): Likewise.
10809         (cortex_a8_neon_mrrc): Likewise.
10811 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10813         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10814         (fp): New.
10815         * config/aarch64/aarch64-simd.md (neon_type): Remove.
10816         (aarch64_simd_dup<mode>): Add "type" attribute.
10817         (aarch64_dup_lane<mode>): Likewise.
10818         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10819         (*aarch64_simd_mov<mode>): Likewise.
10820         (aarch64_simd_mov_from_<mode>low): Likewise.
10821         (aarch64_simd_mov_from_<mode>high): Likewise.
10822         (orn<mode>3): Likewise.
10823         (bic<mode>3): Likewise.
10824         (add<mode>3): Likewise.
10825         (sub<mode>3): Likewise.
10826         (mul<mode>3): Likewise.
10827         (*aarch64_mul3_elt<mode>): Likewise.
10828         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10829         (*aarch64_mul3_elt_to_128df): Likewise.
10830         (*aarch64_mul3_elt_to_64v2df): Likewise.
10831         (neg<mode>2): Likewise.
10832         (abs<mode>2): Likewise.
10833         (abd<mode>_3): Likewise.
10834         (aba<mode>_3): Likewise.
10835         (fabd<mode>_3): Likewise.
10836         (*fabd_scalar<mode>3): Likewise.
10837         (and<mode>3): Likewise.
10838         (ior<mode>3): Likewise.
10839         (xor<mode>3): Likewise.
10840         (one_cmpl<mode>2): Likewise.
10841         (aarch64_simd_vec_set<mode>): Likewise.
10842         (aarch64_simd_lshr<mode>): Likewise.
10843         (aarch64_simd_ashr<mode>): Likewise.
10844         (aarch64_simd_imm_shl<mode>): Likewise.
10845         (aarch64_simd_reg_sshl<mode): Likewise.
10846         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10847         (aarch64_simd_reg_shl<mode>_signed): Likewise.
10848         (aarch64_simd_vec_setv2di): Likewise.
10849         (aarch64_simd_vec_set<mode>): Likewise.
10850         (aarch64_mla<mode>): Likewise.
10851         (*aarch64_mla_elt<mode>): Likewise.
10852         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10853         (aarch64_mls<mode>): Likewise.
10854         (*aarch64_mls_elt<mode>): Likewise.
10855         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10856         (<su><maxmin><mode>3): Likewise.
10857         (move_lo_quad_<mode>): Likewise.
10858         (aarch64_simd_move_hi_quad_<mode>): Likewise.
10859         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10860         (vec_pack_trunc_<mode>): Likewise.
10861         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10862         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10863         (*aarch64_<su>mlal_lo<mode>): Likewise.
10864         (*aarch64_<su>mlal_hi<mode>): Likewise.
10865         (*aarch64_<su>mlsl_lo<mode>): Likewise.
10866         (*aarch64_<su>mlsl_hi<mode>): Likewise.
10867         (*aarch64_<su>mlal<mode>): Likewise.
10868         (*aarch64_<su>mlsl<mode>): Likewise.
10869         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10870         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10871         (add<mode>3): Likewise.
10872         (sub<mode>3): Likewise.
10873         (mul<mode>3): Likewise.
10874         (div<mode>3): Likewise.
10875         (neg<mode>2): Likewise.
10876         (abs<mode>2): Likewise.
10877         (fma<mode>4): Likewise.
10878         (*aarch64_fma4_elt<mode>): Likewise.
10879         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10880         (*aarch64_fma4_elt_to_128df): Likewise.
10881         (*aarch64_fma4_elt_to_64v2df): Likewise.
10882         (fnma<mode>4): Likewise.
10883         (*aarch64_fnma4_elt<mode>): Likewise.
10884         (*aarch64_fnma4_elt_<vswap_width_name><mode>
10885         (*aarch64_fnma4_elt_to_128df): Likewise.
10886         (*aarch64_fnma4_elt_to_64v2df): Likewise.
10887         (<frint_pattern><mode>2): Likewise.
10888         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10889         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10890         (vec_unpacks_lo_v4sf): Likewise.
10891         (aarch64_float_extend_lo_v2df): Likewise.
10892         (vec_unpacks_hi_v4sf): Likewise.
10893         (aarch64_float_truncate_lo_v2sf): Likewise.
10894         (aarch64_float_truncate_hi_v4sf): Likewise.
10895         (aarch64_vmls<mode>): Likewise.
10896         (<su><maxmin><mode>3): Likewise.
10897         (<maxmin_uns><mode>3): Likewise.
10898         (reduc_<sur>plus_<mode>): Likewise.
10899         (reduc_<sur>plus_v2di): Likewise.
10900         (reduc_<sur>plus_v2si): Likewise.
10901         (reduc_<sur>plus_<mode>): Likewise.
10902         (aarch64_addpv4sf): Likewise.
10903         (clz<mode>2): Likewise.
10904         (reduc_<maxmin_uns>_<mode>): Likewise.
10905         (reduc_<maxmin_uns>_v2di): Likewise.
10906         (reduc_<maxmin_uns>_v2si): Likewise.
10907         (reduc_<maxmin_uns>_<mode>): Likewise.
10908         (reduc_<maxmin_uns>_v4sf): Likewise.
10909         (aarch64_simd_bsl<mode>_internal): Likewise.
10910         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10911         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10912         (aarch64_get_lane<mode>): Likewise.
10913         (*aarch64_combinez<mode>): Likewise.
10914         (aarch64_combine<mode>): Likewise.
10915         (aarch64_simd_combine<mode>): Likewise.
10916         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10917         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10918         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10919         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10920         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10921         (aarch64_<sur>h<addsub><mode>): Likewise.
10922         (aarch64_<sur><addsub>hn<mode>): Likewise.
10923         (aarch64_<sur><addsub>hn2<mode>): Likewise.
10924         (aarch64_pmul<mode>): Likewise.
10925         (aarch64_<su_optab><optab><mode>): Likewise.
10926         (aarch64_<sur>qadd<mode>): Likewise.
10927         (aarch64_sqmovun<mode>): Likewise.
10928         (aarch64_<sur>qmovn<mode>): Likewise.
10929         (aarch64_s<optab><mode>): Likewise.
10930         (aarch64_sq<r>dmulh<mode>): Likewise.
10931         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10932         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10933         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10934         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10935         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10936         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10937         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10938         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10939         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10940         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10941         (aarch64_sqdmull<mode>): Likewise.
10942         (aarch64_sqdmull_lane<mode>_internal): Likewise.
10943         (aarch64_sqdmull_n<mode>): Likewise.
10944         (aarch64_sqdmull2<mode>_internal): Likewise.
10945         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10946         (aarch64_sqdmull2_n<mode>_internal): Likewise.
10947         (aarch64_<sur>shl<mode>): Likewise.
10948         (aarch64_<sur>q<r>shl<mode>
10949         (aarch64_<sur>shll_n<mode>): Likewise.
10950         (aarch64_<sur>shll2_n<mode>): Likewise.
10951         (aarch64_<sur>shr_n<mode>): Likewise.
10952         (aarch64_<sur>sra_n<mode>): Likewise.
10953         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10954         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10955         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10956         (aarch64_cm<optab><mode>): Likewise.
10957         (aarch64_cm<optab>di): Likewise.
10958         (aarch64_cm<optab><mode>): Likewise.
10959         (aarch64_cm<optab>di): Likewise.
10960         (aarch64_cmtst<mode>): Likewise.
10961         (aarch64_cmtstdi): Likewise.
10962         (aarch64_cm<optab><mode>): Likewise.
10963         (*aarch64_fac<optab><mode>): Likewise.
10964         (aarch64_addp<mode>): Likewise.
10965         (aarch64_addpdi): Likewise.
10966         (sqrt<mode>2): Likewise.
10967         (vec_load_lanesoi<mode>): Likewise.
10968         (vec_store_lanesoi<mode>): Likewise.
10969         (vec_load_lanesci<mode>): Likewise.
10970         (vec_store_lanesci<mode>): Likewise.
10971         (vec_load_lanesxi<mode>): Likewise.
10972         (vec_store_lanesxi<mode>): Likewise.
10973         (*aarch64_mov<mode>): Likewise.
10974         (aarch64_ld2<mode>_dreg): Likewise.
10975         (aarch64_ld2<mode>_dreg): Likewise.
10976         (aarch64_ld3<mode>_dreg): Likewise.
10977         (aarch64_ld3<mode>_dreg): Likewise.
10978         (aarch64_ld4<mode>_dreg): Likewise.
10979         (aarch64_ld4<mode>_dreg): Likewise.
10980         (aarch64_tbl1<mode>): Likewise.
10981         (aarch64_tbl2v16qi): Likewise.
10982         (aarch64_combinev16qi): Likewise.
10983         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10984         (aarch64_st2<mode>_dreg): Likewise.
10985         (aarch64_st2<mode>_dreg): Likewise.
10986         (aarch64_st3<mode>_dreg): Likewise.
10987         (aarch64_st3<mode>_dreg): Likewise.
10988         (aarch64_st4<mode>_dreg): Likewise.
10989         (aarch64_st4<mode>_dreg): Likewise.
10990         (*aarch64_simd_ld1r<mode>): Likewise.
10991         (aarch64_frecpe<mode>): Likewise.
10992         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10993         (aarch64_frecps<mode>): Likewise.
10995 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10997         * config/arm/iterators.md (V_elem_ch): New.
10998         (q): Likewise.
10999         (VQH_type): Likewise.
11000         * config/arm/arm.md (is_neon_type): New.
11001         (conds): Use is_neon_type.
11002         (anddi3_insn): Update type attribute.
11003         (xordi3_insn): Likewise.
11004         (one_cmpldi2): Likewise.
11005         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
11006         * config/arm/neon.md (neon_mov): Update type attribute.
11007         (*movmisalign<mode>_neon_store): Likewise.
11008         (*movmisalign<mode>_neon_load): Likewise.
11009         (vec_set<mode>_internal): Likewise.
11010         (vec_set<mode>_internal): Likewise.
11011         (vec_setv2di_internal): Likewise.
11012         (vec_extract<mode>): Likewise.
11013         (vec_extract<mode>): Likewise.
11014         (vec_extractv2di): Likewise.
11015         (*add<mode>3_neon): Likewise.
11016         (adddi3_neon): Likewise.
11017         (*sub<mode>3_neon): Likewise.
11018         (subdi3_neon): Likewise.
11019         (fma<VCVTF:mode>4): Likewise.
11020         (fma<VCVTF:mode>4_intrinsic): Likewise.
11021         (*fmsub<VCVTF:mode>4): Likewise.
11022         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
11023         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
11024         (ior<mode>3): Likewise.
11025         (and<mode>3): Likewise.
11026         (orn<mode>3_neon): Likewise.
11027         (orndi3_neon): Likewise.
11028         (bic<mode>3_neon): Likewise.
11029         (bicdi3_neon): Likewise.
11030         (xor<mode>3): Likewise.
11031         (one_cmpl<mode>2): Likewise.
11032         (abs<mode>2): Likewise.
11033         (neg<mode>2): Likewise.
11034         (negdi2_neon): Likewise.
11035         (*umin<mode>3_neon): Likewise.
11036         (*umax<mode>3_neon): Likewise.
11037         (*smin<mode>3_neon): Likewise.
11038         (*smax<mode>3_neon): Likewise.
11039         (vashl<mode>3): Likewise.
11040         (vashr<mode>3_imm): Likewise.
11041         (vlshr<mode>3_imm): Likewise.
11042         (ashl<mode>3_signed): Likewise.
11043         (ashl<mode>3_unsigned): Likewise.
11044         (neon_load_count): Likewise.
11045         (ashldi3_neon_noclobber): Likewise.
11046         (ashldi3_neon): Likewise.
11047         (signed_shift_di3_neon): Likewise.
11048         (unsigned_shift_di3_neon): Likewise.
11049         (ashrdi3_neon_imm_noclobber): Likewise.
11050         (lshrdi3_neon_imm_noclobber): Likewise.
11051         (<shift>di3_neon): Likewise.
11052         (widen_ssum<mode>3): Likewise.
11053         (widen_usum<mode>3): Likewise.
11054         (quad_halves_<code>v4si): Likewise.
11055         (quad_halves_<code>v4sf): Likewise.
11056         (quad_halves_<code>v8hi): Likewise.
11057         (quad_halves_<code>v16qi): Likewise.
11058         (reduc_splus_v2di): Likewise.
11059         (neon_vpadd_internal<mode>): Likewise.
11060         (neon_vpsmin<mode>): Likewise.
11061         (neon_vpsmax<mode>): Likewise.
11062         (neon_vpumin<mode>): Likewise.
11063         (neon_vpumax<mode>): Likewise.
11064         (*ss_add<mode>_neon): Likewise.
11065         (*us_add<mode>_neon): Likewise.
11066         (*ss_sub<mode>_neon): Likewise.
11067         (*us_sub<mode>_neon): Likewise.
11068         (neon_vadd<mode>_unspec): Likewise.
11069         (neon_vaddl<mode>): Likewise.
11070         (neon_vaddw<mode>): Likewise.
11071         (neon_vhadd<mode>): Likewise.
11072         (neon_vqadd<mode>): Likewise.
11073         (neon_vaddhn<mode>): Likewise.
11074         (neon_vmul<mode>): Likewise.
11075         (neon_vfms<VCVTF:mode>): Likewise.
11076         (neon_vmlal<mode>): Likewise.
11077         (neon_vmls<mode>): Likewise.
11078         (neon_vmlsl<mode>): Likewise.
11079         (neon_vqdmulh<mode>): Likewise.
11080         (neon_vqdmlal<mode>): Likewise.
11081         (neon_vqdmlsl<mode>): Likewise.
11082         (neon_vmull<mode>): Likewise.
11083         (neon_vqdmull<mode>): Likewise.
11084         (neon_vsub<mode>_unspec): Likewise.
11085         (neon_vsubl<mode>): Likewise.
11086         (neon_vsubw<mode>): Likewise.
11087         (neon_vqsub<mode>): Likewise.
11088         (neon_vhsub<mode>): Likewise.
11089         (neon_vsubhn<mode>): Likewise.
11090         (neon_vceq<mode>): Likewise.
11091         (neon_vcge<mode>): Likewise.
11092         (neon_vcgeu<mode>): Likewise.
11093         (neon_vcgt<mode>): Likewise.
11094         (neon_vcgtu<mode>): Likewise.
11095         (neon_vcle<mode>): Likewise.
11096         (neon_vclt<mode>): Likewise.
11097         (neon_vcage<mode>): Likewise.
11098         (neon_vcagt<mode>): Likewise.
11099         (neon_vtst<mode>): Likewise.
11100         (neon_vabd<mode>): Likewise.
11101         (neon_vabdl<mode>): Likewise.
11102         (neon_vaba<mode>): Likewise.
11103         (neon_vabal<mode>): Likewise.
11104         (neon_vmax<mode>): Likewise.
11105         (neon_vmin<mode>): Likewise.
11106         (neon_vpaddl<mode>): Likewise.
11107         (neon_vpadal<mode>): Likewise.
11108         (neon_vpmax<mode>): Likewise.
11109         (neon_vpmin<mode>): Likewise.
11110         (neon_vrecps<mode>): Likewise.
11111         (neon_vrsqrts<mode>): Likewise.
11112         (neon_vqabs<mode>): Likewise.
11113         (neon_vqneg<mode>): Likewise.
11114         (neon_vcls<mode>): Likewise.
11115         (clz<mode>2): Likewise.
11116         (popcount<mode>2): Likewise.
11117         (neon_vrecpe<mode>): Likewise.
11118         (neon_vrsqrte<mode>): Likewise.
11119         (neon_vget_lane<mode>_sext_internal): Likewise.
11120         (neon_vget_lane<mode>_zext_internal): Likewise.
11121         (neon_vdup_n<mode>): Likewise.
11122         (neon_vdup_n<mode>): Likewise.
11123         (neon_vdup_nv2di): Likewise.
11124         (neon_vdup_lane<mode>_interal): Likewise.
11125         (*neon_vswp<mode>): Likewise.
11126         (neon_vcombine<mode>): Likewise.
11127         (float<mode><V_cvtto>2): Likewise.
11128         (floatuns<mode><V_cvtto>2): Likewise.
11129         (fix_trunc<mode><V_cvtto>2): Likewise.
11130         (fixuns_trunc<mode><V_cvtto>2
11131         (neon_vcvt<mode>): Likewise.
11132         (neon_vcvt<mode>): Likewise.
11133         (neon_vcvtv4sfv4hf): Likewise.
11134         (neon_vcvtv4hfv4sf): Likewise.
11135         (neon_vcvt_n<mode>): Likewise.
11136         (neon_vcvt_n<mode>): Likewise.
11137         (neon_vmovn<mode>): Likewise.
11138         (neon_vqmovn<mode>): Likewise.
11139         (neon_vqmovun<mode>): Likewise.
11140         (neon_vmovl<mode>): Likewise.
11141         (neon_vmul_lane<mode>): Likewise.
11142         (neon_vmul_lane<mode>): Likewise.
11143         (neon_vmull_lane<mode>): Likewise.
11144         (neon_vqdmull_lane<mode>): Likewise.
11145         (neon_vqdmulh_lane<mode>): Likewise.
11146         (neon_vqdmulh_lane<mode>): Likewise.
11147         (neon_vmla_lane<mode>): Likewise.
11148         (neon_vmla_lane<mode>): Likewise.
11149         (neon_vmlal_lane<mode>): Likewise.
11150         (neon_vqdmlal_lane<mode>): Likewise.
11151         (neon_vmls_lane<mode>): Likewise.
11152         (neon_vmls_lane<mode>): Likewise.
11153         (neon_vmlsl_lane<mode>): Likewise.
11154         (neon_vqdmlsl_lane<mode>): Likewise.
11155         (neon_vext<mode>): Likewise.
11156         (neon_vrev64<mode>): Likewise.
11157         (neon_vrev32<mode>): Likewise.
11158         (neon_vrev16<mode>): Likewise.
11159         (neon_vbsl<mode>_internal): Likewise.
11160         (neon_vshl<mode>): Likewise.
11161         (neon_vqshl<mode>): Likewise.
11162         (neon_vshr_n<mode>): Likewise.
11163         (neon_vshrn_n<mode>): Likewise.
11164         (neon_vqshrn_n<mode>): Likewise.
11165         (neon_vqshrun_n<mode>): Likewise.
11166         (neon_vshl_n<mode>): Likewise.
11167         (neon_vqshl_n<mode>): Likewise.
11168         (neon_vqshlu_n<mode>): Likewise.
11169         (neon_vshll_n<mode>): Likewise.
11170         (neon_vsra_n<mode>): Likewise.
11171         (neon_vsri_n<mode>): Likewise.
11172         (neon_vsli_n<mode>): Likewise.
11173         (neon_vtbl1v8qi): Likewise.
11174         (neon_vtbl2v8qi): Likewise.
11175         (neon_vtbl3v8qi): Likewise.
11176         (neon_vtbl4v8qi): Likewise.
11177         (neon_vtbl1v16qi): Likewise.
11178         (neon_vtbl2v16qi): Likewise.
11179         (neon_vcombinev16qi): Likewise.
11180         (neon_vtbx1v8qi): Likewise.
11181         (neon_vtbx2v8qi): Likewise.
11182         (neon_vtbx3v8qi): Likewise.
11183         (neon_vtbx4v8qi): Likewise.
11184         (*neon_vtrn<mode>_insn): Likewise.
11185         (*neon_vzip<mode>_insn): Likewise.
11186         (*neon_vuzp<mode>_insn): Likewise.
11187         (neon_vld1<mode>): Likewise.
11188         (neon_vld1_lane<mode>): Likewise.
11189         (neon_vld1_lane<mode>): Likewise.
11190         (neon_vld1_dup<mode>): Likewise.
11191         (neon_vld1_dup<mode>): Likewise.
11192         (neon_vld1_dupv2di): Likewise.
11193         (neon_vst1<mode>): Likewise.
11194         (neon_vst1_lane<mode>): Likewise.
11195         (neon_vst1_lane<mode>): Likewise.
11196         (neon_vld2<mode>): Likewise.
11197         (neon_vld2<mode>): Likewise.
11198         (neon_vld2_lane<mode>): Likewise.
11199         (neon_vld2_lane<mode>): Likewise.
11200         (neon_vld2_dup<mode>): Likewise.
11201         (neon_vst2<mode>): Likewise.
11202         (neon_vst2<mode>): Likewise.
11203         (neon_vst2_lane<mode>): Likewise.
11204         (neon_vst2_lane<mode>): Likewise.
11205         (neon_vld3<mode>): Likewise.
11206         (neon_vld3qa<mode>): Likewise.
11207         (neon_vld3qb<mode>): Likewise.
11208         (neon_vld3_lane<mode>): Likewise.
11209         (neon_vld3_lane<mode>): Likewise.
11210         (neon_vld3_dup<mode>): Likewise.
11211         (neon_vst3<mode>): Likewise.
11212         (neon_vst3qa<mode>): Likewise.
11213         (neon_vst3qb<mode>): Likewise.
11214         (neon_vst3_lane<mode>): Likewise.
11215         (neon_vst3_lane<mode>): Likewise.
11216         (neon_vld4<mode>): Likewise.
11217         (neon_vld4qa<mode>): Likewise.
11218         (neon_vld4qb<mode>): Likewise.
11219         (neon_vld4_lane<mode>): Likewise.
11220         (neon_vld4_lane<mode>): Likewise.
11221         (neon_vld4_dup<mode>): Likewise.
11222         (neon_vst4<mode>): Likewise.
11223         (neon_vst4qa<mode>): Likewise.
11224         (neon_vst4qb<mode>): Likewise.
11225         (neon_vst4_lane<mode>): Likewise.
11226         (neon_vst4_lane<mode>): Likewise.
11227         (neon_vec_unpack<US>_lo_<mode>): Likewise.
11228         (neon_vec_unpack<US>_hi_<mode>): Likewise.
11229         (neon_vec_<US>mult_lo_<mode>): Likewise.
11230         (neon_vec_<US>mult_hi_<mode>): Likewise.
11231         (neon_vec_<US>shiftl_<mode>): Likewise.
11232         (neon_unpack<US>_<mode>): Likewise.
11233         (neon_vec_<US>mult_<mode>): Likewise.
11234         (vec_pack_trunc_<mode>): Likewise.
11235         (neon_vec_pack_trunc_<mode>): Likewise.
11236         (neon_vabd<mode>_2): Likewise.
11237         (neon_vabd<mode>_3): Likewise.
11239 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
11241         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
11242         (load_pair): Update type attribute.
11243         (store_pair): Update type attribute.
11244         * config/aarch64/iterators.md (q): New.
11246 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
11248         * config/arm/types.md: Add new types for Neon insns.
11250 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11251             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11252             Sergey Lega  <sergey.s.lega@intel.com>
11253             Anna Tikhonova  <anna.tikhonova@intel.com>
11254             Ilya Tocar  <ilya.tocar@intel.com>
11255             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11256             Ilya Verbin  <ilya.verbin@intel.com>
11257             Kirill Yukhin  <kirill.yukhin@intel.com>
11258             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11260         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
11261         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
11262         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
11263         (rcp14<mode>): New.
11264         (srcp14<mode>): Ditto.
11265         (rsqrt14<mode>): Ditto.
11266         (rsqrt14<mode>): Ditto.
11267         (avx512f_vmscalef<mode>): Ditto.
11268         (avx512f_scalef<mode>): Ditto.
11269         (avx512f_getexp<mode>): Ditto.
11270         (avx512f_sgetexp<mode>): Ditto.
11271         (avx512f_fixupimm<mode>): Ditto.
11272         (avx512f_sfixupimm<mode>): Ditto.
11273         (avx512f_rndscale<mode>): Ditto.
11274         (*avx512er_exp2<mode>): Ditto.
11275         (*avx512er_rcp28<mode>): Ditto.
11276         (avx512er_rsqrt28<mode>): Ditto.
11277         (avx512f_getmant<mode>): Ditto.
11278         (avx512f_getmant<mode>): Ditto.
11279         (avx512f_rndscale<mode>): Fix formatting.
11281 2013-10-15  Martin Jambor  <mjambor@suse.cz>
11283         * ipa-utils.h (ipa_edge_within_scc): Declare.
11284         * ipa-cp.c (edge_within_scc): Moved...
11285         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
11287 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11288             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11289             Sergey Lega  <sergey.s.lega@intel.com>
11290             Anna Tikhonova  <anna.tikhonova@intel.com>
11291             Ilya Tocar  <ilya.tocar@intel.com>
11292             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11293             Ilya Verbin  <ilya.verbin@intel.com>
11294             Kirill Yukhin  <kirill.yukhin@intel.com>
11295             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11297         * config/i386/predicates.md (const_8_to_15_operand): New.
11298         (const_16_to_31_operand): Ditto.
11299         * config/i386/sse.md (V8FI): New.
11300         (V16FI): Ditto.
11301         (reduc_splus_v8df): Ditto.
11302         (reduc_splus_v16sf): Ditto.
11303         (avx512f_vextract<shuffletype>32x4_1): Ditto.
11304         (vec_extract_hi_<mode>): Ditto.
11305         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11306         (vec_set_lo_<mode>): Ditto.
11307         (vec_set_hi_<mode>): Ditto.
11308         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11309         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11310         (avx512f_pshufd_1): Ditto.
11311         (avx512f_broadcast<mode>): Ditto.
11312         (avx512f_broadcast<mode>): Ditto.
11313         (define_split): Split vec_extract_lo into move.
11314         (ssequartermode): Ditto.
11315         (ssedoublemode): Extened with wider modes.
11316         (vec_extract_lo_<mode>): Ditto.
11318 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11319             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11320             Sergey Lega  <sergey.s.lega@intel.com>
11321             Anna Tikhonova  <anna.tikhonova@intel.com>
11322             Ilya Tocar  <ilya.tocar@intel.com>
11323             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11324             Ilya Verbin  <ilya.verbin@intel.com>
11325             Kirill Yukhin  <kirill.yukhin@intel.com>
11326             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11328         * config/i386/predicates.md (register_or_constm1_operand): New.
11329         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11330         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11331         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11332         UNSPEC_SCATTER_PREFETCH
11333         (VI48_512): New.
11334         (avx512f_ucmp<mode>3): Ditto.
11335         (avx512f_vternlog<mode>): Ditto.
11336         (avx512f_align<mode>): Ditto.
11337         (<shift_insn><mode>3): Ditto.
11338         (avx512f_<rotate>v<mode>): Ditto.
11339         (avx512f_<rotate><mode>): Ditto.
11340         (avx512f_eq<mode>3): Ditto.
11341         (avx512f_eq<mode>3_1): Ditto.
11342         (avx512f_gt<mode>3): Ditto.
11343         (avx512f_testm<mode>3): Ditto.
11344         (avx512f_testnm<mode>3): Ditto.
11345         (avx512pf_gatherpf<mode>): Ditto.
11346         (*avx512pf_gatherpf<mode>_mask): Ditto.
11347         (*avx512pf_gatherpf<mode>): Ditto.
11348         (avx512pf_scatterpf<mode>): Ditto.
11349         (*avx512pf_scatterpf<mode>_mask): Ditto.
11350         (*avx512pf_scatterpf<mode>): Ditto.
11351         (avx512f_vec_dup_gpr<mode>): Ditto.
11352         (clz<mode>2): Ditto.
11353         (conflict<mode>): Ditto.
11354         (REDUC_SMINMAX_MODE): Extened with wider modes.
11355         (reduc_<code>_<mode>): Ditto.
11356         (vlshr<mode>3): Ditto.
11357         (vashl<mode>3): Ditto.
11359 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11360             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11361             Sergey Lega  <sergey.s.lega@intel.com>
11362             Anna Tikhonova  <anna.tikhonova@intel.com>
11363             Ilya Tocar  <ilya.tocar@intel.com>
11364             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11365             Ilya Verbin  <ilya.verbin@intel.com>
11366             Kirill Yukhin  <kirill.yukhin@intel.com>
11367             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11369         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11370         UNSPEC_SCATTER.
11371         (VI48F_512): New.
11372         (avx512fmaskmode): Ditto.
11373         (bcstscalarsuff): Ditto.
11374         (avx512f_blendm<mode>): Ditto.
11375         (cmp_imm_predicate): Ditto.
11376         (avx512f_cmp<mode>3): Ditto.
11377         (avx512f_vec_dup<mode>): Ditto.
11378         (avx512f_vec_dup_mem<mode>): Ditto.
11379         (avx512f_vpermi2var<mode>3): Ditto.
11380         (avx512f_vpermt2var<mode>3): Ditto.
11381         (vec_init<mode>): Ditto.
11382         (avx512f_gathersi<mode>): Ditto.
11383         (*avx512f_gathersi<mode>): Ditto.
11384         (*avx512f_gathersi<mode>_2): Ditto.
11385         (avx512f_gatherdi<mode>): Ditto.
11386         (*avx512f_gatherdi<mode>): Ditto.
11387         (*avx512f_gatherdi<mode>_2): Ditto.
11388         (avx512f_scattersi<mode>): Ditto.
11389         (*avx512f_scattersi<mode>): Ditto.
11390         (avx512f_scatterdi<mode>): Ditto.
11391         (*avx512f_scatterdi<mode>): Ditto.
11392         (sseintprefix): Extened with wider modes.
11393         (VEC_GATHER_IDXSI): Ditto.
11394         (VEC_GATHER_IDXDI): Ditto.
11395         (VEC_GATHER_SRCDI): Ditto.
11397 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11398             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11400         * config/arm/t-aprofile: New file.
11401         * config.gcc: Handle --with-multilib-list option.
11403 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
11405         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11406         the input for r2.
11408 2013-10-15  Richard Biener  <rguenther@suse.de>
11410         * tree-loop-distribution.c (build_empty_rdg): Inline into
11411         single user.
11412         (rdg_flag_vertex): Inline into single user.
11413         (rdg_flag_vertex_and_dependent): Likewise.
11414         (build_rdg_partition_for_vertex): Remove processed bitmap.
11415         (rdg_build_partitions): Simplify.
11417 2013-10-15  Richard Biener  <rguenther@suse.de>
11419         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11420         Restructure forwarding through conversions and copies to
11421         avoid performing copy-propagation the wrong way.  Adjust
11422         recursion invocations.
11423         (forward_propagate_addr_expr): Add argument stating if we
11424         are recursing from a single-use.
11425         (ssa_forward_propagate_and_combine): Adjust.
11427 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
11429         * dumpfile.h (gcc::dump_manager): New class, to hold state
11430         relating to dumpfile management.
11431         (get_dump_file_name): Remove in favor of method of dump_manager.
11432         (dump_initialized_p): Likewise.
11433         (dump_start): Likewise.
11434         (dump_finish): Likewise.
11435         (dump_switch_p): Likewise.
11436         (dump_register): Likewise.
11437         (get_dump_file_info): Likewise.
11438         * context.c (gcc::context::context): Construct the dump_manager
11439         instance.
11440         * context.h (gcc::context::get_dumps): New.
11441         (gcc::context::m_dumps): New.
11442         * coverage.c (coverage_init): Port to dump_manager API.
11443         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11444         (extra_dump_files_in_use): Likewise.
11445         (extra_dump_files_alloced): Likewise.
11446         (gcc::dump_manager::dump_manager): New.
11447         (dump_register): Convert to...
11448         (gcc::dump_manager::dump_register): ...method, replacing
11449         function-static next_dump with m_next_dump field.
11450         (get_dump_file_info): Convert to...
11451         (gcc::dump_manager::get_dump_file_info): ...method.
11452         (get_dump_file_name): Convert to...
11453         (gcc::dump_manager::get_dump_file_name): ...method.
11454         (dump_start): Convert to...
11455         (gcc::dump_manager::dump_start): ...method.
11456         (dump_finish): Convert to...
11457         (gcc::dump_manager::dump_finish): ...method.
11458         (dump_begin): Replace body with...
11459         (gcc::dump_manager::dump_begin): ...new method.
11460         (dump_phase_enabled_p): Convert to...
11461         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11462         (dump_phase_enabled_p): Convert to...
11463         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11464         (dump_initialized_p):  Convert to...
11465         (gcc::dump_manager::dump_initialized_p): ...method.
11466         (dump_flag_name): Replace body with...
11467         (gcc::dump_manager::dump_flag_name): ...new method.
11468         (dump_enable_all): Convert to...
11469         (gcc::dump_manager::dump_enable_all): ...new method.
11470         (opt_info_enable_passes): Convert to...
11471         (gcc::dump_manager::opt_info_enable_passes): ...new method.
11472         (dump_switch_p_1): Convert to...
11473         (gcc::dump_manager::dump_switch_p_1): ...new method.
11474         (dump_switch_p):  Convert to...
11475         (gcc::dump_manager::dump_switch_p): ...new method.
11476         (opt_info_switch_p): Port to dump_manager API.
11477         (enable_rtl_dump_file): Likewise.
11478         * opts-global.c (handle_common_deferred_options): Port to new
11479         dump_manager API.
11480         * passes.c (pass_manager::finish_optimization_passes): Likewise.
11481         (pass_manager::register_one_dump_file): Likewise.
11482         (pass_manager::register_pass): Likewise.
11483         (pass_init_dump_file): Likewise.
11484         (pass_fini_dump_file): Likewise.
11485         * statistics.c (statistics_early_init): Likewise.
11487 2013-10-14  Richard Biener  <rguenther@suse.de>
11489         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11490         iterative_hash_canonical_type, gimple_canonical_type_hash,
11491         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11492         gimple_register_canonical_type, print_gimple_types_stats,
11493         free_gimple_type_tables): Move to lto/lto.c
11494         (gt-gimple.h): Do not include.
11495         * gimple.h (gimple_register_canonical_type,
11496         print_gimple_types_stats, free_gimple_type_tables): Remove.
11497         * Makefile.in (GTFILES): Remove gimple.c.
11499 2013-10-14  Travis Snoozy  <quandary@remstate.com>
11501         PR target/58716
11502         * config/msp430/msp430.c (msp430_option_override): Correct thinko
11503         scanning for msp430x targets.
11505 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
11507         PR bootstrap/58509
11508         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11509         (registers_ok_for_ldd_peep): Move around.
11510         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11511         * config/sparc/sparc.md (widening peepholes): Use it.
11513 2013-10-14  Richard Biener  <rguenther@suse.de>
11515         PR middle-end/58712
11516         PR middle-end/55358
11517         * gimple.c (iterative_hash_canonical_type): Make sure to
11518         record the hash into the correct hashtable slot.
11520 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
11522         PR rtl-optimization/58662
11523         * combine.c (try_combine): Take into account death nodes on I2 when
11524         splitting a PARALLEL of two independent SETs.  Fix dump message.
11526 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
11528         PR target/51244
11529         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11530         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11531         extra_objs.
11532         * config/sh/t-sh (sh_treg_combine.o): New entry.
11533         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11534         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11535         (register_sh_passes): New function.  Register sh_treg_combine pass.
11536         (sh_option_override): Invoke it.
11537         (sh_canonicalize_comparison): Handle op0_preserve_value.
11538         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11539         opportunities.  Canonicalize branch condition.
11540         (nott): Allow only if pseudos can be created for non-SH2A.
11542 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
11544         PR target/58690
11545         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11546         (ix86_expand_movmem): Replace copy_addr_to_reg with
11547         ix86_copy_addr_to_reg.
11548         (ix86_expand_setmem): Likewise.
11550 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
11552         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11553         provided by ix86_fp_compare_mode instead of CCFPUmode.
11555 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
11557         * config/aarch64/arm_neon.h
11558         (vtbx<1,3>_<psu>8): Fix register constriants.
11560 2013-10-11  Jeff Law  <law@redhat.com>
11562         PR tree-optimization/58640
11563         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11564         threading paths that cross over two loop entry points.
11566 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11568         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11569         handle vector float as well.
11570         (*vsx_le_perm_load_v4si): Likewise.
11571         (*vsx_le_perm_store_v2di): Likewise.
11572         (*vsx_le_perm_store_v4si): Likewise.
11574 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11576         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11577         directly to circumvent subtract from splat{31} workaround.
11578         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11579         prototype.
11580         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11581         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11582         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11583         (altivec_vperm_<mode>): Convert to define_insn_and_split to
11584         separate big and little endian logic.
11585         (*altivec_vperm_<mode>_internal): New define_insn.
11586         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11587         separate big and little endian logic.
11588         (*altivec_vperm_<mode>_uns_internal): New define_insn.
11589         (vec_permv16qi): Add little endian logic.
11591 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
11593         * doc/extend.texi (returns_nonnull): Remove arguments.
11595 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11596             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11597             Sergey Lega  <sergey.s.lega@intel.com>
11598             Anna Tikhonova  <anna.tikhonova@intel.com>
11599             Ilya Tocar  <ilya.tocar@intel.com>
11600             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11601             Ilya Verbin  <ilya.verbin@intel.com>
11602             Kirill Yukhin  <kirill.yukhin@intel.com>
11603             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11605         * config/i386/sse.md (VI48F_256_512): New.
11606         (avx2_permvar<mode>): Change to ...
11607         (<avx2_avx512f>_permvar<mode>): This.
11609 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11610             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11611             Sergey Lega  <sergey.s.lega@intel.com>
11612             Anna Tikhonova  <anna.tikhonova@intel.com>
11613             Ilya Tocar  <ilya.tocar@intel.com>
11614             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11615             Ilya Verbin  <ilya.verbin@intel.com>
11616             Kirill Yukhin  <kirill.yukhin@intel.com>
11617             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11619         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11620         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11621         * config/i386/sse.md (VI4_AVX): New.
11622         (sf2simodelower): Ditto.
11623         (sse2_cvtps2dq): Change to ...
11624         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11626 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11627             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11628             Sergey Lega  <sergey.s.lega@intel.com>
11629             Anna Tikhonova  <anna.tikhonova@intel.com>
11630             Ilya Tocar  <ilya.tocar@intel.com>
11631             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11632             Ilya Verbin  <ilya.verbin@intel.com>
11633             Kirill Yukhin  <kirill.yukhin@intel.com>
11634             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11636         * config/i386/sse.md (V_512): New.
11637         (VI_512): Ditto.
11638         (vcond<V_512:mode><VF_512:mode>): Ditto.
11639         (vcond<V_512:mode><VI_512:mode>): Ditto.
11640         (vcondu<V_512:mode><VI_512:mode>): Ditto.
11642 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11643             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11644             Sergey Lega  <sergey.s.lega@intel.com>
11645             Anna Tikhonova  <anna.tikhonova@intel.com>
11646             Ilya Tocar  <ilya.tocar@intel.com>
11647             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11648             Ilya Verbin  <ilya.verbin@intel.com>
11649             Kirill Yukhin  <kirill.yukhin@intel.com>
11650             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11652         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11653         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11654         (FMAMODE): Ditto.
11655         (fma<mode>4): Removed condition.
11656         (fms<mode>4): Ditto.
11657         (fnma<mode>4): Ditto.
11658         (fnms<mode>4): Ditto.
11659         (fma4i_fmadd_<mode>): Ditto.
11660         (*fma_fmadd_<mode>): Ditto.
11661         (*fma_fmsub_<mode>): Ditto.
11662         (*fma_fnmadd_<mode>): Ditto.
11663         (*fma_fnmsub_<mode>): Ditto.
11664         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11665         (*fma_fmaddsub_<mode>): Ditto.
11666         (*fma_fmsubadd_<mode>): Ditto.
11667         (*fmai_fmadd_<mode>): Ditto.
11668         (*fmai_fmsub_<mode>): Ditto.
11669         (*fmai_fnmadd_<mode>): Ditto.
11670         (*fmai_fnmsub_<mode>): Ditto.
11672 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11673             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11674             Sergey Lega  <sergey.s.lega@intel.com>
11675             Anna Tikhonova  <anna.tikhonova@intel.com>
11676             Ilya Tocar  <ilya.tocar@intel.com>
11677             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11678             Ilya Verbin  <ilya.verbin@intel.com>
11679             Kirill Yukhin  <kirill.yukhin@intel.com>
11680             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11682         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11683         (VI124_256): Changed to ...
11684         (VI124_256_48_512): This.
11685         (ssepackmode): Extended with wider modes.
11686         (<code><mode>3): Changed iterator.
11687         (*avx2_<code><mode>3): Ditto.
11688         (vec_pack_trunc_<mode>): Ditto.
11690 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11691             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11692             Sergey Lega  <sergey.s.lega@intel.com>
11693             Anna Tikhonova  <anna.tikhonova@intel.com>
11694             Ilya Tocar  <ilya.tocar@intel.com>
11695             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11696             Ilya Verbin  <ilya.verbin@intel.com>
11697             Kirill Yukhin  <kirill.yukhin@intel.com>
11698             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11700         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11701         (VI8F_256_512): Ditto.
11702         (abs<mode>2): Changed iterator.
11703         (avx2_perm<mode>): Changed to ...
11704         (<avx2_avx512f>_perm<mode>): This.
11705         (avx2_perm<mode>_1): Changed to ...
11706         (<avx2_avx512f>_perm<mode>_1): This.
11708 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11709             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11710             Sergey Lega  <sergey.s.lega@intel.com>
11711             Anna Tikhonova  <anna.tikhonova@intel.com>
11712             Ilya Tocar  <ilya.tocar@intel.com>
11713             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11714             Ilya Verbin  <ilya.verbin@intel.com>
11715             Kirill Yukhin  <kirill.yukhin@intel.com>
11716             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11718         * config/i386/sse.md (VI48_AVX512F): New.
11719         (VI48_AVX2): Changed to ...
11720         (VI48_AVX2_48_AVX512F): This.
11721         (avx2_ashrv<mode>): Changed to ...
11722         (<avx2_avx512f>_ashrv<mode>): This.
11723         (avx2_<shift_insn>v<mode>): Changed to ...
11724         (<avx2_avx512f>_<shift_insn>v<mode>): This.
11726 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11727             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11728             Sergey Lega  <sergey.s.lega@intel.com>
11729             Anna Tikhonova  <anna.tikhonova@intel.com>
11730             Ilya Tocar  <ilya.tocar@intel.com>
11731             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11732             Ilya Verbin  <ilya.verbin@intel.com>
11733             Kirill Yukhin  <kirill.yukhin@intel.com>
11734             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11736         * config/i386/sse.md (VI4_AVX512F): New.
11737         (VI8_AVX2_AVX512F): Ditto.
11738         (mul<mode>3): Extended with wider modes.
11739         (*<sse4_1_avx2>_mul<mode>3): Ditto.
11740         (mul<mode>3): Ditto.
11741         (vec_widen_<s>mult_odd_<mode>): Ditto.
11743 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11744             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11745             Sergey Lega  <sergey.s.lega@intel.com>
11746             Anna Tikhonova  <anna.tikhonova@intel.com>
11747             Ilya Tocar  <ilya.tocar@intel.com>
11748             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11749             Ilya Verbin  <ilya.verbin@intel.com>
11750             Kirill Yukhin  <kirill.yukhin@intel.com>
11751             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11753         * config/i386/sse.md (VI2_AVX512F): New.
11754         (VI124_AVX512F): Ditto.
11755         (sseunpackmode): Extended with wider modes.
11756         (sseunpackfltmode): Ditto.
11757         (vec_unpacks_float_hi_<mode>): Ditto.
11758         (vec_unpacks_float_lo_<mode>): Ditto.
11759         (vec_unpacku_float_hi_<mode>): Ditto.
11760         (vec_unpacku_float_lo_<mode>): Ditto.
11761         (vec_unpacks_lo_<mode>): Ditto.
11762         (vec_unpacks_hi_<mode>): Ditto.
11763         (vec_unpacku_lo_<mode>): Ditto.
11764         (vec_unpacku_hi_<mode>): Ditto.
11766 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11767             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11768             Sergey Lega  <sergey.s.lega@intel.com>
11769             Anna Tikhonova  <anna.tikhonova@intel.com>
11770             Ilya Tocar  <ilya.tocar@intel.com>
11771             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11772             Ilya Verbin  <ilya.verbin@intel.com>
11773             Kirill Yukhin  <kirill.yukhin@intel.com>
11774             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11776         * config/i386/i386.md (multdiv): New.
11777         (multdiv_mnemonic): Ditto.
11778         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11779         (<sse>_vm<multdiv_mnemonic><mode>3): This.
11780         (<sse>_vmdiv<mode>3): Removed.
11782 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11783             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11784             Sergey Lega  <sergey.s.lega@intel.com>
11785             Anna Tikhonova  <anna.tikhonova@intel.com>
11786             Ilya Tocar  <ilya.tocar@intel.com>
11787             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11788             Ilya Verbin  <ilya.verbin@intel.com>
11789             Kirill Yukhin  <kirill.yukhin@intel.com>
11790             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11792         * config/i386/sse.md (V): Extended with wider modes.
11793         (VF2): Ditto.
11794         (ssehalfvecmode): Ditto.
11795         (i128): Ditto.
11796         (ssepackfltmode): Ditto.
11797         (avx_vec_concat<mode>): Ditto.
11798         (V_256_512): New iterator.
11799         (VF2_512_256): Ditto.
11800         (si2dfmode): New attribute.
11801         (si2dfmodelower): Ditto.
11802         (sf2dfmode): Ditto.
11803         (concat_tg_mode): Ditto.
11804         (floatv4siv4df2): Changed to ...
11805         (float<si2dfmodelower><mode>2): This.
11806         (avx_cvtps2pd256): Changed to ...
11807         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11808         (vec_pack_trunc_v4df): Changed to ...
11809         (vec_pack_trunc_<mode>): This.
11810         (avx_vpermil<mode>): Changed to ...
11811         (<sse2_avx_avx512f>_vpermil<mode>): This.
11812         (<fixsuffix>fix_truncv8dfv8si2): New.
11813         (vec_pack_sfix_trunc_v8df): Ditto.
11814         (avx512f_rndscale<mode>): Ditto.
11815         (avx512f_roundpd512): Ditto.
11816         (vec_pack_ufix_trunc_<mode>): Updated iterator.
11818 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11819             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11820             Sergey Lega  <sergey.s.lega@intel.com>
11821             Anna Tikhonova  <anna.tikhonova@intel.com>
11822             Ilya Tocar  <ilya.tocar@intel.com>
11823             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11824             Ilya Verbin  <ilya.verbin@intel.com>
11825             Kirill Yukhin  <kirill.yukhin@intel.com>
11826             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11828         * config/i386/i386.md (any_fix): New iterator.
11829         (fixsuffix): New attribute.
11830         * config/i386/sse.md (VF1): Extened with wider modes.
11831         (VI): Ditto.
11832         (VI_AVX2): Ditto.
11833         (VI8): Ditto.
11834         (sseintvecmodelower): Ditto.
11835         (ssescalarmode): Ditto.
11836         (ssescalarnum): Ditto.
11837         (VF1_128_256): New.
11838         (ssexmmmode): Ditto.
11839         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11840         (<sse>_rcp<mode>2): Change iterator.
11841         (rsqrt<mode>2): Ditto.
11842         (<sse>_rsqrt<mode>2): Ditto.
11843         (avx2_vec_dup<mode>): Ditto.
11844         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11845         (round<mode>2_sfix): Ditto.
11846         (avx2_pbroadcast<mode>): Ditto.
11847         (*andnot<mode>3): Handle XI mode.
11848         (*<code><mode>3): Ditto.
11849         (AVXTOSSEMODE): Removed.
11850         (avx_vpermil<mode>): Changed to ...
11851         (<sse2_avx_avx512f>_vpermil<mode>): This.
11853 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11854             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11855             Sergey Lega  <sergey.s.lega@intel.com>
11856             Anna Tikhonova  <anna.tikhonova@intel.com>
11857             Ilya Tocar  <ilya.tocar@intel.com>
11858             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11859             Ilya Verbin  <ilya.verbin@intel.com>
11860             Kirill Yukhin  <kirill.yukhin@intel.com>
11861             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11863         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11864         (<sse>_comi): Ditto.
11865         (<sse>_ucomi): Ditto.
11866         (sse_cvtss2siq_2): Ditto.
11867         (sse2_cvtsd2si): Ditto.
11868         (sse2_cvtsd2siq): Ditto.
11869         (sse2_cvttsd2si): Ditto.
11870         (sse2_cvttsd2siq): Ditto.
11871         (<shift_insn><mode>3): Ditto.
11872         (sse2_cvtsi2sdq): Update constraint and prefix.
11873         (sse_cvtsi2ss): Update prefix.
11874         (sse_cvtsi2ssq): Ditto.
11876 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11878         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11879         ignore internal calls.
11881 2013-10-11  Richard Biener  <rguenther@suse.de>
11883         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11884         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
11885         TREE_OVERFLOW is set.
11887 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
11889         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11891         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11892         * gimple.h: Likewise.
11894         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11896         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11897         macros.
11899         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11901         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11902         * configure: Regenerate.
11904 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11906         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11907         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11908         formatting fixes, use pp_colon instead of pp_character (..., ':'),
11909         similarly pp_right_paren.
11910         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11911         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11912         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11913         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11914         clauses.
11915         (omp_declare_simd_clauses_equal,
11916         omp_remove_redundant_declare_simd_attrs): New functions.
11917         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11918         (walk_tree_1): Handle new OpenMP 4.0 clauses.
11919         * tree.h (OMP_LOOP_CHECK): Define.
11920         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11921         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11922         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11923         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11924         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11925         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11926         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11927         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11928         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11929         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11930         OMP_CLAUSE_SIMDLEN_EXPR): Define.
11931         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11932         (omp_remove_redundant_declare_simd_attrs): New prototype.
11933         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11934         GIMPLE_OMP_TEAMS): New codes.
11935         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11936         * omp-low.c (struct omp_context): Add cancel_label and cancellable
11937         fields.
11938         (target_nesting_level): New variable.
11939         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11940         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
11941         for collapse > 1 static schedule unless ordered.
11942         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
11943         (determine_parallel_type): Adjust get_ws_args_for caller.
11944         (install_var_field): Handle mask & 4 for double indirection.
11945         (scan_sharing_clauses): Ignore shared clause on teams construct.
11946         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11947         (create_omp_child_function): If inside target or declare target
11948         constructs, set "omp declare target" attribute on the child function.
11949         (find_combined_for): New function.
11950         (scan_omp_parallel): Handle combined loops.
11951         (scan_omp_target, scan_omp_teams): New functions.
11952         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11953         restrictions and set ctx->cancellable for cancellable constructs.
11954         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11955         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
11956         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11957         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11958         (omp_clause_aligned_alignment): New function.
11959         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11960         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
11961         on teams constructs.  Handle user defined reductions and new
11962         OpenMP 4.0 clauses.
11963         (lower_reduction_clauses): Don't set placeholder to address of ref
11964         if it has already the right type.
11965         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11966         (expand_parallel_call): Use the new non-_start suffixed builtins,
11967         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11968         and GOMP_parallel_end after the call.
11969         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11970         (expand_omp_for_init_counts): Handle combined loops.
11971         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11972         loops.
11973         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
11974         end of cancellable loops.
11975         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11976         Likewise.  Handle collapse > 1 loops.
11977         (expand_omp_simd): Handle combined loops.
11978         (expand_omp_for): Add inner_stmt argument, adjust callers of
11979         expand_omp_for* functions, use expand_omp_for_static*chunk even
11980         for collapse > 1 unless ordered.
11981         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11982         of cancellable sections.
11983         (expand_omp_single): Remove need_barrier variable, just rely on
11984         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
11985         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11986         (expand_omp_atomic_load, expand_omp_atomic_store,
11987         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11988         (expand_omp_target): New function.
11989         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
11990         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11991         (build_omp_regions_1): Immediately close region for
11992         GF_OMP_TARGET_KIND_UPDATE.
11993         (maybe_add_implicit_barrier_cancel): New function.
11994         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
11995         cancellation.
11996         (lower_omp_single): Likewise.  Add clobber after the barrier.
11997         (lower_omp_taskgroup): New function.
11998         (lower_omp_for): Handle combined loops.  Adjust
11999         lower_rec_input_clauses caller.  Handle cancellation.
12000         (lower_depend_clauses): New function.
12001         (lower_omp_taskreg): Lower depend clauses.  Adjust
12002         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
12003         cancellation.
12004         (lower_omp_target, lower_omp_teams): New functions.
12005         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
12006         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
12007         and GOMP_cancellation_point calls.
12008         (lower_omp): Fold stmts inside of target region.
12009         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
12010         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12011         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
12012         (BT_FN_VOID_OMPFN_PTR_UINT,
12013         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
12014         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
12015         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
12016         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
12017         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
12018         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
12019         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
12020         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
12021         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
12022         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
12023         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12024         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
12025         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
12026         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
12027         BUILT_IN_GOMP_PARALLEL_END.
12028         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
12029         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12030         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
12031         GF_OMP_FOR_KIND_DISTRIBUTE.
12032         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
12033         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
12034         (dump_gimple_omp_return): Print lhs if it has any.
12035         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
12036         gimple_omp_atomic_seq_cst_p.
12037         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
12038         and GIMPLE_OMP_TEAMS.
12039         * langhooks.c (lhd_omp_mappable_type): New function.
12040         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
12041         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
12042         hook.
12043         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
12044         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
12045         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
12046         (struct gimplify_omp_ctx): Add combined_loop field.
12047         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
12048         on stmts inside of target region.
12049         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
12050         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
12051         ORT_TARGET and ORT_TARGET_DATA.
12052         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
12053         Handle GOVD_MAP.
12054         (omp_notice_threadprivate_variable): Complain about threadprivate
12055         variables in target region.
12056         (omp_notice_variable): Complain about vars with non-mappable type
12057         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
12058         (omp_check_private): Ignore ORT_TARGET* regions.
12059         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
12060         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
12061         (find_combined_omp_for): New function.
12062         (gimplify_omp_for): Handle gimplification of combined loops.
12063         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
12064         OMP_TEAMS.
12065         (gimplify_omp_target_update): New function.
12066         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
12067         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
12068         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
12069         (gimplify_body): If fndecl has "omp declare target" attribute, add
12070         implicit ORT_TARGET context around it.
12071         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
12072         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
12073         * tree-nested.c (convert_nonlocal_reference_stmt,
12074         convert_local_reference_stmt, convert_gimple_call): Handle
12075         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12076         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
12077         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
12078         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
12079         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
12080         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
12081         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
12082         BUILT_IN_GOMP_LOOP_END_CANCEL,
12083         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
12084         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
12085         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
12086         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
12087         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
12088         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
12089         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
12090         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
12091         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
12092         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
12093         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
12094         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
12095         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
12096         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
12097         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
12098         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12099         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
12100         gimple_build_omp_teams): New functions.
12101         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
12102         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
12103         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
12104         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12105         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
12106         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
12107         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
12108         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
12109         GF_OMP_ATOMIC_SEQ_CST): New.
12110         (gimple_build_omp_taskgroup, gimple_build_omp_target,
12111         gimple_build_omp_teams): New prototypes.
12112         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
12113         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12114         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
12115         GIMPLE_OMP_SINGLE as end of range.
12116         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
12117         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
12118         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
12119         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
12120         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
12121         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
12122         gimple_omp_target_kind, gimple_omp_target_set_kind,
12123         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
12124         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
12125         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
12126         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
12127         gimple_omp_teams_set_clauses): New inlines.
12128         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
12129         and GIMPLE_OMP_TASKGROUP.
12130         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
12131         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
12132         enum omp_clause_proc_bind_kind): New.
12133         (union omp_clause_subcode): Add depend_kind, map_kind and
12134         proc_bind_kind fields.
12135         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
12136         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12137         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
12138         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
12139         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12141 2013-10-10  Teresa Johnson  <tejohnson@google.com>
12143         * predict.c (tree_estimate_probability): Add new parameter
12144         for estimate_bb_frequencies.
12145         (estimate_bb_frequencies): Add new parameter to force estimation.
12146         (rebuild_frequencies): When max frequency in function is small,
12147         recompute counts from frequencies.
12148         * predict.h (estimate_bb_frequencies): New parameter.
12150 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
12152         * ipa-inline.c (ipa_inline): Fix leak of "order" when
12153         optimizations are disabled.
12155 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
12157         * coverage.c (coverage_finish): Fix leak of da_file_name.
12159 2013-10-10  Jan Hubicka  <jh@suse.cz>
12161         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
12162         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
12163         Bobcat and generic.
12165 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
12167         PR middle-end/58670
12168         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
12169         if any labels are in FALLTHRU_BB, use a special label emitted
12170         immediately after the asm goto insn rather than label_rtx
12171         of the LABEL_DECL.
12172         (expand_asm_stmt): Adjust caller.
12173         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
12174         edge if the last insn in predecessor is a jump with single successor,
12175         but it isn't simplejump_p.
12177 2013-10-10  Richard Biener  <rguenther@suse.de>
12179         PR tree-optimization/58656
12180         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
12182 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
12184         * gimplify.c: Include expr.h and tm_p.h for targets with special
12185         va-arg padding requirements.
12187 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
12189         * tree-flow.h: Move some prototypes to gimple.h.
12190         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
12191         * gimple.h: Relocate some prototypes from tree-flow.h
12192         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
12193         Move to gimplify.c.
12194         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
12195         (build_va_arg_indirect_ref): Relocate and make static.
12196         (std_gimplify_va_arg_expr): Relocate here.
12197         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
12198         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
12200 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12202         * doc/md.texi: Document the mnemonic attribute.
12204 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12206         PR target/57377
12207         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
12208         (set_attr_alternative x ...) when searching for user defined
12209         mnemonic attribute.
12211 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
12213         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
12215 2013-10-09  Easwaran Raman <eraman@google.com>
12217         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
12218         * cfgexpand.c (defer_stack_allocation): ...use here
12219         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
12221 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12223         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
12224         (operand_equal_for_value_replacement): New function, extracted from
12225         value_replacement and enhanced to catch more cases.
12226         (value_replacement): Use operand_equal_for_value_replacement.
12228 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12230         * loop-doloop.c (doloop_modify, doloop_optimize): Use
12231         get_max_loop_iterations.
12233 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12235         * config/arm/aarch-common.c (arm_early_load_addr_dep):
12236         Place comment above function.
12238 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12240         * tree-flow.h: Remove all remaining prototypes, enums and structs that
12241         are not related to tree-cfg.c.
12242         * tree-ssa-address.h: New file.  Relocate prototypes.
12243         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
12244         (addr_for_mem_ref): New.  Combine call to get_address_description and
12245         return addr_for_mem_ref.
12246         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
12247         * tree-ssa-live.h: Adjust prototypes.
12248         * passes.c: Include tree-ssa-live.h.
12249         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
12250         * graphite.c (graphite_transform_loops): Make static.
12251         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12252         make_pass_graphite, pass_data_graphite_transforms,
12253         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
12254         * ipa-pure-const.c (warn_function_noreturn): Make static.
12255         (execute_warn_function_noreturn, gate_warn_function_noreturn,
12256         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12257         Relocate from tree-cfg.c
12258         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
12259         static.
12260         (execute_warn_function_noreturn, gate_warn_function_noreturn,
12261         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12262         Move to ipa-pure-const.c.
12263         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
12264         Relocate from tree-optimize.c.
12265         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
12266         make_pass_fixup_cfg): Move to tree-cfg.c.
12267         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
12268         Relocate some prototypes.
12269         * tree-data-ref.h (tree_check_data_deps) Add prototype.
12270         * tree-dump.c (dump_function_to_file): Remove prototype.
12271         Add tree-flow.h to the include file.
12272         * tree-dump.h: Remove prototype.
12273         * tree-parloops.h: New File.  Add prototypes.
12274         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12275         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
12276         from tree-ssa-loop.c.
12277         * tree-predcom.c (run_tree_predictive_commoning,
12278         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12279         Relocate here from tree-ssa-loop.c.
12280         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12281         ssa_name_values.release ().
12282         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
12283         (ssa_name_values): Relocate from tree-flow.h.
12284         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12285         * tree-ssa-loop.c (run_tree_predictive_commoning,
12286         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12287         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12288         make_pass_graphite, pass_data_graphite_transforms,
12289         make_pass_graphite_transforms, gate_tree_parallelize_loops,
12290         tree_parallelize_loops, pass_data_parallelize_loops,
12291         make_pass_parallelize_loops): Move to other files.
12292         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12293         moved here.
12294         * tree.h: Remove prototypes from tree-address.c.
12296 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12298         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12299         (struct int_tree_map): Move to tree-hasher.h
12300         (SCALE, LABEL, PERCENT): Move to gimple.h
12301         * tree-flow-inline.h: Delete.  Move functions to other files.
12302         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12303         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12304         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12305         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12306         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12307         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12308         * tree-hasher.h: Don't include tree-flow.h.
12309         (struct int_tree_map): Relocate from tree-flow.h.
12310         * tree-sra.c (contains_view_convert_expr_p): Relocate from
12311         tree-flow-inline.h and make static.
12312         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12313         tree-flow-inline.h.
12314         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12315         tree-flow-inline.h and make static.
12316         * tree.h (is_global_var, may_be_aliased): Relocate from
12317         tree-flow-inline.h.
12318         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12319         * value-prof.c: No longer include tree-flow-inline.h.
12320         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12322 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12324         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
12325         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12326         (enum move_pos): Move to tree-ssa-loop-im.h
12327         * cfgloop.h: Move some prototypes.
12328         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12329         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12330         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
12331         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12332         (loop_containing_stmt): Relocate from tree-flow-inline.h.
12333         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12334         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12335         (enum move_pos): Relocate here.
12336         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12337         tree-ssa-loop.c.
12338         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12339         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12340         make_pass_lim): Relocate here from tree-ssa-loop.c.
12341         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12342         tree-ssa-loop.c.
12343         (loop_edge_to_cancel, unloop_loops): Make static.
12344         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12345         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12346         (tree_complete_unroll, gate_tree_complete_unroll,
12347         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12348         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12349         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12350         * tree-ssa-loop-ivopts.c: Remove local prototypes.
12351         (stmt_invariant_in_loop_p): Remove unused function.
12352         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
12353         * tree-ssa-loop-manip.h: New file.  Add prototypes.
12354         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12355         (gcov_type_to_double_int): Move to cfgloop.h.
12356         (double_int_cmp, bound_index,
12357         estimate_numbers_of_iterations_loop): Make static.
12358         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12359         (max_loop_iterations): Factor out get_max_loop_iterations.
12360         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12361         cfgloop.c.
12362         * tree-ssa-loop-niter.h: New file.  Add prototypes.
12363         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12364         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12365         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12366         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12367         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12368         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12369         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12370         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12371         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12372         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12373         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12374         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12375         pass_data_complete_unroll, make_pass_complete_unroll,
12376         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12377         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12378         tree-ssa-loop-ivcanon.c.
12379         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12380         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12381         tree-ssa-loop-prefetch.c.
12382         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12383         tree-ssa-loop-im.c.
12384         (get_lsm_tmp_name): Relocate and add suffix parameter.
12385         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12386         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12387         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12388         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12389         (get_estimated_loop_iterations): Factor out accessor from
12390         estimated_loop_iterations in tree-ssa-loop-niter.c.
12391         (get_max_loop_iterations): Factor out accessor from
12392         _max_loop_iterations in tree-ssa-niter.c.
12393         * loop-unroll.c (decide_unroll_constant_iterations,
12394         decide_unroll_runtime_iterations, decide_peel_simple,
12395         decide_unroll_stupid): Use new get_* accessors.
12397 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
12399         PR tree-optimization/20318
12400         * doc/extend.texi (returns_nonnull): New function attribute.
12401         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12402         attribute.
12403         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12404         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12406 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
12408         PR middle-end/58570
12409         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12410         false if both components are bitfields.
12412 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12414         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12415         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12416         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12417         * config/aarch64/aarch64.h
12418         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12419         * config/aarch64/aarch64-simd-builtins.def
12420         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12422 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12424         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12426 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12428         * config/aarch64/arm_neon.h (vdiv_f64): Added.
12430 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12432         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12433         (vneg_f64): New intrinsic.
12434         (vneg_s8): Asm replaced with C.
12435         (vneg_s16): Likewise.
12436         (vneg_s32): Likewise.
12437         (vneg_s64): New intrinsic.
12438         (vnegq_f32): Asm replaced with C.
12439         (vnegq_f64): Likewise.
12440         (vnegq_s8): Likewise.
12441         (vnegq_s16): Likewise.
12442         (vnegq_s32): Likewise.
12443         (vnegq_s64): Likewise.
12445 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
12447         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12449 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12451         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12452         packed stack special handling.
12453         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12454         back to fixed stack slots for FPRs saved due to stdarg.
12456 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12458         * config/s390/s390.c (s390_frame_info): Restructure function.
12460 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12462         * config/s390/s390.c (struct s390_frame_layout): New field
12463         gpr_save_slots.
12464         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12465         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12466         regs_ever_clobbered to char*.
12467         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12468         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
12469         (s390_register_info): Enable FPR save slots.  Move/Copy some
12470         functionality into ...
12471         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12472         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12473         function.
12474         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
12475         not imply a stack frame.
12476         (s390_init_frame_layout): Remove variable clobbered_regs.
12477         (s390_update_register_info): Remove function.
12478         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12479         cannot be used for register renaming.
12480         (s390_hard_regno_scratch_ok): New function.
12481         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12482         (s390_initial_elimination_offset): Change offset calculation of
12483         the return address pointer.
12484         (save_gprs): Deal with only r6 being saved from the call-saved regs.
12485         (restore_gprs): Set frame related flag.
12486         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12487         (s390_emit_prologue): Call s390_register_info instead of
12488         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
12489         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12490         (s390_optimize_prologue): Call s390_optimize_register_info.
12491         Try to remove also FPR slot save/restore INSNs.  Remove frame
12492         related flags from restore INSNs.
12494 2013-10-08  DJ Delorie  <dj@redhat.com>
12496         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12497         (movhi): Likewise.
12499         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12500         avoid conflict with the MI use of %c.
12501         * config/rl78/rl78-real.md: change %c to %C throughout.
12502         * config/rl78/rl78-virt.md: Likewise.
12504 2013-10-08  Jan Hubicka  <jh@suse.cz>
12506         * config/i386/i386.c (ix86_option_override_internal): Switch
12507         to SSE math for -ffast-math when target ISA supports SSE2.
12509 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
12511         * tree-flow.h: Remove some prototypes.
12512         * tree.h: Remove some protypes, add a couple.
12513         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12514         using_eh_for_cleanups_p): Add interface routines for front ends.
12515         * tree-eh.h: New file.  Add protoptyes.
12516         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12517         (add_stmt_to_eh_lp_fn): Make static.
12518         (lower_try_finally): Use new using_eh_for_cleanups_p.
12519         * emit-rtl.c: Include tree-eh.h.
12520         * gimple.h: Include tree-eh.h.
12522 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
12524         PR tree-optimization/58480
12525         * tree-vrp.c (infer_nonnull_range): New function.
12526         (infer_value_range): Call infer_nonnull_range.
12528 2013-10-08  Dehao Chen  <dehao@google.com>
12530         PR tree-optimization/58619
12531         * tree-inline.c (copy_phis_for_bb): Combine location data
12532         only if non-null.
12534 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12536         PR target/58423
12537         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12538         RTX_FRAME_RELATED_P on INSN.
12540 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12542         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12543         (altivec_expand_vec_perm_const): Call it.
12545 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12547         * config/rs6000/vector.md (mov<mode>): Emit permuted move
12548         sequences for LE VSX loads and stores at expand time.
12549         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12550         prototype.
12551         * config/rs6000/rs6000.c (rs6000_const_vec): New.
12552         (rs6000_gen_le_vsx_permute): New.
12553         (rs6000_gen_le_vsx_load): New.
12554         (rs6000_gen_le_vsx_store): New.
12555         (rs6000_gen_le_vsx_move): New.
12556         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12557         (*vsx_le_perm_load_v4si): New.
12558         (*vsx_le_perm_load_v8hi): New.
12559         (*vsx_le_perm_load_v16qi): New.
12560         (*vsx_le_perm_store_v2di): New.
12561         (*vsx_le_perm_store_v4si): New.
12562         (*vsx_le_perm_store_v8hi): New.
12563         (*vsx_le_perm_store_v16qi): New.
12564         (*vsx_xxpermdi2_le_<mode>): New.
12565         (*vsx_xxpermdi4_le_<mode>): New.
12566         (*vsx_xxpermdi8_le_V8HI): New.
12567         (*vsx_xxpermdi16_le_V16QI): New.
12568         (*vsx_lxvd2x2_le_<mode>): New.
12569         (*vsx_lxvd2x4_le_<mode>): New.
12570         (*vsx_lxvd2x8_le_V8HI): New.
12571         (*vsx_lxvd2x16_le_V16QI): New.
12572         (*vsx_stxvd2x2_le_<mode>): New.
12573         (*vsx_stxvd2x4_le_<mode>): New.
12574         (*vsx_stxvd2x8_le_V8HI): New.
12575         (*vsx_stxvd2x16_le_V16QI): New.
12577 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
12579         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12581 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12583         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12584         loop to work also for 31bit ABI.
12585         Save the stack pointer for frame_size > 0.
12587 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12589         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12590         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12591         constraint letters from expanders.
12592         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12593         retry count to general_operand.
12594         ("tabort"): Give operand 0 a mode.
12595         ("tabort_1"): Add mode and constraint letter for operand 0.
12596         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12598 2013-10-04  Jeff Law  <law@redhat.com>
12600         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12602         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12603         out of ...
12604         (thread_across_edge): Here.  Call it.
12606 2013-10-04  Cary Coutant  <ccoutant@google.com>
12608         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12609         discarding a location list expression (or a piece of one).
12611 2013-10-03  Jan Hubicka  <jh@suse.cz>
12613         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12614         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
12615         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12617 2013-10-03  Jan Hubicka  <jh@suse.cz>
12619         * config/i386/i386.c (ix86_option_override_internal): Do not enable
12620         accumulate-outgoing-args when producing unwind info.
12622 2013-10-03  Wei Mi  <wmi@google.com>
12624         * lra-constraints.c (insert_move_for_subreg): New function
12625         extracted from simplify_operand_subreg.
12626         (simplify_operand_subreg): Add reload for paradoxical subreg.
12628 2013-10-03  Rong Xu  <xur@google.com>
12630         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12631         the candidate of builtin_expect such that we should fix the
12632         size/time estimation.
12633         (estimate_function_body_sizes): Do the acutally size/time fix-up
12634         for builtin_expect.
12636 2013-10-03  Rong Xu  <xur@google.com>
12638         * predict.c (tree_predict_by_opcode): Get the probability
12639         for builtin_expect from param builtin_expect_probability.
12640         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12641         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12642         * doc/invoke.texi: Add documentation for builtin-expect-probability.
12644 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
12646         PR c++/19476
12647         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12648         * calls.c (alloca_call_p): Use get_callee_fndecl.
12649         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12650         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12651         Likewise.
12652         (vrp_visit_stmt): Remove duplicated code.
12654 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12656         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12657         ceildf2, btruncdf2, instead of vsx_* name.
12659         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12660         iterators to only do V2DF and V4SF here.  Move the DF code to
12661         rs6000.md where it is combined with SF mode.  Replace <VSv> with
12662         just 'v' since only vector operations are handled with these insns
12663         after moving the DF support to rs6000.md.
12664         (vsx_sub<mode>3): Likewise.
12665         (vsx_mul<mode>3): Likewise.
12666         (vsx_div<mode>3): Likewise.
12667         (vsx_fre<mode>2): Likewise.
12668         (vsx_neg<mode>2): Likewise.
12669         (vsx_abs<mode>2): Likewise.
12670         (vsx_nabs<mode>2): Likewise.
12671         (vsx_smax<mode>3): Likewise.
12672         (vsx_smin<mode>3): Likewise.
12673         (vsx_sqrt<mode>2): Likewise.
12674         (vsx_rsqrte<mode>2): Likewise.
12675         (vsx_fms<mode>4): Likewise.
12676         (vsx_nfma<mode>4): Likewise.
12677         (vsx_copysign<mode>3): Likewise.
12678         (vsx_btrunc<mode>2): Likewise.
12679         (vsx_floor<mode>2): Likewise.
12680         (vsx_ceil<mode>2): Likewise.
12681         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12682         (vsx_sminsf3): Likewise.
12683         (vsx_fmadf4): Likewise.
12684         (vsx_fmsdf4): Likewise.
12685         (vsx_nfmadf4): Likewise.
12686         (vsx_nfmsdf4): Likewise.
12687         (vsx_cmpdf_internal1): Likewise.
12689         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12690         simpler to select whether a target has SPE or traditional floating
12691         point support in iterators.
12692         (TARGET_DF_SPE): Likewise.
12693         (TARGET_SF_FPR): Likewise.
12694         (TARGET_DF_FPR): Likewise.
12695         (TARGET_SF_INSN): Macros to say whether floating point support
12696         exists for a given operation for expanders.
12697         (TARGET_DF_INSN): Likewise.
12699         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12700         combining of SF/DF mode operations, using both traditional and VSX
12701         registers.
12702         (Fvsx): Likewise.
12703         (Ff): Likewise.
12704         (Fv): Likewise.
12705         (Fs): Likewise.
12706         (Ffre): Likewise.
12707         (FFRE): Likewise.
12708         (abs<mode>2): Combine SF/DF modes using traditional floating point
12709         instructions.  Add support for using the upper DF registers with
12710         VSX support, and SF registers with power8-vector support.  Update
12711         expanders for operations supported by both the SPE and traditional
12712         floating point units.
12713         (abs<mode>2_fpr): Likewise.
12714         (nabs<mode>2): Likewise.
12715         (nabs<mode>2_fpr): Likewise.
12716         (neg<mode>2): Likewise.
12717         (neg<mode>2_fpr): Likewise.
12718         (add<mode>3): Likewise.
12719         (add<mode>3_fpr): Likewise.
12720         (sub<mode>3): Likewise.
12721         (sub<mode>3_fpr): Likewise.
12722         (mul<mode>3): Likewise.
12723         (mul<mode>3_fpr): Likewise.
12724         (div<mode>3): Likewise.
12725         (div<mode>3_fpr): Likewise.
12726         (sqrt<mode>3): Likewise.
12727         (sqrt<mode>3_fpr): Likewise.
12728         (fre<Fs>): Likewise.
12729         (rsqrt<mode>2): Likewise.
12730         (cmp<mode>_fpr): Likewise.
12731         (smax<mode>3): Likewise.
12732         (smin<mode>3): Likewise.
12733         (smax<mode>3_vsx): Likewise.
12734         (smin<mode>3_vsx): Likewise.
12735         (negsf2): Delete SF operations that are merged with DF.
12736         (abssf2): Likewise.
12737         (addsf3): Likewise.
12738         (subsf3): Likewise.
12739         (mulsf3): Likewise.
12740         (divsf3): Likewise.
12741         (fres): Likewise.
12742         (fmasf4_fpr): Likewise.
12743         (fmssf4_fpr): Likewise.
12744         (nfmasf4_fpr): Likewise.
12745         (nfmssf4_fpr): Likewise.
12746         (sqrtsf2): Likewise.
12747         (rsqrtsf_internal1): Likewise.
12748         (smaxsf3): Likewise.
12749         (sminsf3): Likewise.
12750         (cmpsf_internal1): Likewise.
12751         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12752         (negdf2): Delete DF operations that are merged with SF.
12753         (absdf2): Likewise.
12754         (nabsdf2): Likewise.
12755         (adddf3): Likewise.
12756         (subdf3): Likewise.
12757         (muldf3): Likewise.
12758         (divdf3): Likewise.
12759         (fred): Likewise.
12760         (rsqrtdf_internal1): Likewise.
12761         (fmadf4_fpr): Likewise.
12762         (fmsdf4_fpr): Likewise.
12763         (nfmadf4_fpr): Likewise.
12764         (nfmsdf4_fpr): Likewise.
12765         (sqrtdf2): Likewise.
12766         (smaxdf3): Likewise.
12767         (smindf3): Likewise.
12768         (cmpdf_internal1): Likewise.
12769         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12770         (btrunc<mode>2): Delete separate expander, and combine with the
12771         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
12772         (btrunc<mode>2_fpr): Likewise.
12773         (ceil<mode>2): Likewise.
12774         (ceil<mode>2_fpr): Likewise.
12775         (floor<mode>2): Likewise.
12776         (floor<mode>2_fpr): Likewise.
12777         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12778         Add support for using the upper registers with VSX and
12779         power8-vector.  Move insns to be closer to the define_expands. On
12780         VSX systems, prefer the traditional form of FMA over the VSX
12781         version, since the traditional form allows the target not to
12782         overlap with the inputs.
12783         (fms<mode>4_fpr): Likewise.
12784         (nfma<mode>4_fpr): Likewise.
12785         (nfms<mode>4_fpr): Likewise.
12787 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12788             Richard Earnshaw  <richard.earnshaw@arm.com>
12790         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12791         (struct mult_cost_table): Likewise.
12792         (struct mem_cost_table): Likewise.
12793         (struct fp_cost_table): Likewise.
12794         (struct vector_cost_table): Likewise.
12795         (cpu_cost_table): Likewise.
12796         * config/arm/arm.opt (mold-rts-costs): New option.
12797         (mnew-generic-costs): Likewise.
12798         * config/arm/arm.c (generic_extra_costs): New table.
12799         (cortexa15_extra_costs): Likewise.
12800         (arm_slowmul_tune): Use NULL as new costs.
12801         (arm_fastmul_tune): Likewise.
12802         (arm_strongarm_tune): Likewise.
12803         (arm_xscale_tune): Likewise.
12804         (arm_9e_tune): Likewise.
12805         (arm_v6t2_tune): Likewise.
12806         (arm_cortex_a5_tune): Likewise.
12807         (arm_cortex_a9_tune): Likewise.
12808         (arm_v6m_tune): Likewise.
12809         (arm_fa726te_tune): Likewise.
12810         (arm_cortex_a15_tune): Use cortex15_extra_costs.
12811         (arm_cortex_tune): Use generict_extra_costs.
12812         (shifter_op_p): New function.
12813         (arm_unspec_cost): Likewise.
12814         (LIBCALL_COST): Define.
12815         (arm_new_rtx_costs): New function.
12816         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12817         table is available. Use old costs otherwise unless mnew-generic-costs
12818         is specified.
12819         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12820         (cpu_cost_table): Declare.
12822 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12824         PR target/58460
12825         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12826         (*subs_mul_imm_<mode>)
12827         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12828         (*sub_<shift>_<mode>)
12829         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12830         Remove k constraint.
12832 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
12834         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12835         code.
12836         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12838 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12840         * predict.c (probably_never_executed): New function.
12841         (probably_never_executed_bb_p): Invoke probably_never_executed.
12842         (probably_never_executed_edge_p): Ditto.
12843         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12844         Treat profile insanities conservatively.
12846 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
12848         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12850 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
12852         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12853         use it.  Use smaller increase for scratch.  Don't increase reject
12854         for early clobber scratch.
12855         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12856         setting eliminated regs except setting fp from hfp.
12857         (lra_eliminate): Check lra_insn_recog_data on NULL.
12859 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12861         PR target/58587
12862         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12863         setting -mvsx-timode by default until the underlying problem is fixed.
12864         (RS6000_CPU, power7 defaults): Likewise.
12866 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12868         * config/x-linux (host-linux.o): Remove header dependencies.
12869         Use $(COMPILE) and $(POSTCOMPILE).
12870         * config/t-linux-android (linux-android.o): Ditto.
12872 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12874         * Makefile.in (expmed.o-warn): Remove.
12876 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12878         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12879         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12881 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12883         * dojump.c (do_jump_1): Divide probability between
12884         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12886 2013-10-02  Tom Tromey  <tromey@redhat.com>
12888         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12890 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12892         * tree-flow.h: Remove some prototypes.
12893         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12894         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12895         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12896         mark_virtual_phi_result_for_renaming): Relocate here.
12897         * tree-into-ssa.h: Add prototypes.
12898         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12899         single_pred_before_succ_order.
12900         (blocks_in_phiopt_order): Rename and move to cfganal.c.
12901         (nonfreeing_call_p) Move to gimple.c.
12902         * cfganal.c (single_pred_before_succ_order): Move and renamed from
12903         tree-ssa-phiopt.c.
12904         * basic-block.h (single_pred_before_succ_order): Add prototype.
12905         * gimple.c (nonfreeing_call_p): Relocate here.
12906         * gimple.h: Add prototype.
12907         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12908         * tree-ssa-dom.h: New file.  Relocate prototypes here.
12909         * tree-ssa.h: Include tree-ssa-dom.h.
12911 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12913         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12914         Use $(COMPILE) and $(POSTCOMPILE).
12916         * config/alpha/x-alpha (driver-alpha.o): Ditto.
12918 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12920         * tree-flow.h: Remove some prototypes.
12921         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12922         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12923         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12924         propagate_tree_value*): Move from here to...
12925         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12926         propagate_tree_value*): Relocate here.
12927         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12928         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12929         * gimple-fold.c: Remove gimple-fold.h from include list.
12930         * tree-vrp.c: Remove gimple-fold.h from include list.
12931         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12932         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12933         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12934         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12935         * sese.c: Add tree-ssa-propagate.h to include list.
12937 2013-10-02  Richard Biener  <rguenther@suse.de>
12939         * tree-loop-distribution.c: Include tree-vectorizer.h for
12940         find_loop_location.
12941         (enum partition_kind): Remove PKIND_REDUCTION.
12942         (struct partition_s): Remove has_writes member, add reduction_p member.
12943         (partition_alloc): Adjust.
12944         (partition_builtin_p): Likewise.
12945         (partition_has_writes): Remove.
12946         (partition_reduction_p): New function.
12947         (partition_merge_into): Likewise.
12948         (generate_code_for_partition): Commonize builtin partition
12949         handling tail.
12950         (rdg_cannot_recompute_vertex_p): Remove.
12951         (already_processed_vertex_p): Likewise.
12952         (rdg_flag_vertex): Do not set has_writes.
12953         (classify_partition): Adjust.
12954         (rdg_build_partitions): Do not set has_writes, treat all
12955         partitions as useful.
12956         (distribute_loop): Record number of library calls generated.  Adjust.
12957         (tree_loop_distribution): Report number of loops and library
12958         calls generated as opt-info.
12960 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12962         * tree-flow.h: Include new .h files.  Move prototypes.
12963         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
12964         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
12965         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12966         * tree-pretty-print.h: Add prototypes from tree-flow.h.
12967         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
12968         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12969         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12970         * tree.h (get_ref_base_and_extent): Move prototype out.
12971         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12972         tree-dfa.h.
12973         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
12974         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12975         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12976         * tree-scalar-evolution.c: Include tree.h.
12977         * sese.c: Include tree.h.
12978         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12979         * dwarf2out.c: Include tree-dfa.h.
12980         * tree-chrec.c: Include tree.h.
12981         * tree-data-ref.c: Include tree.h.
12983 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
12985         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12986         Fix whitespace.
12988 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12990         * config/t-sol2 (sol2-c.o): Remove header dependencies.
12991         Use $(COMPILE) and $(POSTCOMPILE).
12992         (sol2-cxx.o): Likewise.
12993         (sol2-stubs.o): Likewise.
12994         (sol2.o): Likewise.
12995         * config/x-solaris (host-solaris.o): Likewise.
12997         * config/sparc/t-sparc (sparc.o): Remove.
12998         (sparc-c.o): Remove header dependencies.
12999         Use $(COMPILE) and $(POSTCOMPILE).
13000         * config/sparc/x-sparc: Likewise.
13002 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
13004         * config/arc/arc-opts.h: Add 2013 to Copyright years.
13005         * config/arc/arc700.md: Likewise.
13006         * config/arc/arc-modes.def: Likewise.
13007         * config/arc/arc-simd.h: Likewise.
13008         * config/arc/t-arc-uClibc: Likewise.
13009         * config/arc/t-arc-newlib: Likewise.
13011 2013-10-02  Renlin Li  <renlin.li@arm.com>
13013         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13014         plus_constant.
13015         (aarch64_expand_epilogue): Likewise.
13017 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13018             Yufeng Zhang  <yufeng.zhang@arm.com>
13020         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
13021         declaration.
13022         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
13023         'base_in' represent a conversion and legal_cast_p_1 holds; set
13024         'base_in' with the returned value from get_unwidened.
13026 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13028         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
13029         plus_constant is not used.
13031 2013-10-01  Wei Mi  <wmi@google.com>
13033         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
13034         * config/i386/i386.md: Add define_peephole2 to
13035         break partial reg stall for cvtss2sd/cvtsd2ss.
13037 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13039         * config/arc/arc.c (pass_arc_ifcvt::clone):
13040         Update for ctxt_ -> m_ctxt change.
13042 2013-10-01  Jeff Law  <law@redhat.com>
13044         * tree-ssa-threadupdate.c (struct redirection_data): Delete
13045         outgoing_edge and intermediate_edge fields.  Instead store the path.
13046         (redirection_data::hash): Hash on the last edge's destination index.
13047         (redirection_data::equal): Check the entire thread path.
13048         (lookup_redirectio_data): Corresponding changes.
13049         (create_edge_and_update_destination_phis): Likewise.
13050         (thread_single_edge): Likewise.
13052 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13053             Diego Novillo <dnovillo@google.com>
13055         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
13056         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
13057         (vld32wh_insn, vld32wl_insn): Delete commented-out old
13058         versions of these patterns.
13060         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
13061         (__builtin_arc_aligned): Likewise.
13063         * config/arc/arc.md: Expand adc_0 comment stating the intended
13064         purpose and why it isn't ready.
13065         Replace commented out call_value_via_label_mixed with a
13066         plain comment about bl_s.
13068         * config/arc/arc.c (stdio.h): Don't include directly.
13069         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
13070         Remove if (1) condition.
13071         (arc_encode_section_info): Fix comment.
13073 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13075         * config/arc/arc.c (arc_conditional_register_usage):
13076         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
13077         Also set reg_alloc_order for DMA config regs.
13079 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13080             Jeremy Bennett  <jeremy.bennett@embecosm.com>
13082         * doc/install.texi (--with-cpu): Mention ARC.
13083         (arc-*-elf32): New paragraph.
13084         (arc-linux-uclibc): Likewise.
13085         * doc/md.texi (Machine Constraints): Add ARC part.
13086         * doc/invoke.texi: (menu): Add ARC Options.
13087         (Machine Dependent Options) <ARC Options>: Add synopsis.
13088         (node ARC Options): Add.
13089         * doc/extend.texi (long_call / short_call attribute): Add ARC.
13090         (ARC Built-in Functions): New section defining
13091         generic ARC built-in functions.
13092         (ARC SIMD Built-in Functions): New section defining SIMD specific
13093         built-in functions.
13094         (Declaring Attributes of Functions): Extended
13095         description of short_call and long_call attributes for ARC and
13096         added index entries.
13098 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
13099             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
13100             Joern Rennecke  <joern.rennecke@embecosm.com>
13101             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
13102             Brendan Kehoe  <brendan@zen.org>
13103             Michael Eager  <eager@eagercon.com>
13104             Simon Cook  <simon.cook@embecosm.com>
13105             Jeremy Bennett  <jeremy.bennett@embecosm.com>
13107         * config/arc, common/config/arc: New directories.
13109 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13110             Brendan Kehoe  <brendan@zen.org>
13111             Simon Cook  <simon.cook@embecosm.com>
13113         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
13115 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
13117         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
13118         * tree-ssa-coalesce.h: New. Move prototype to here.
13119         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
13120         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
13121         (gimple_can_coalesce_p): Move to...
13122         * gimple.c (gimple_can_coalesce_p): Here.
13124 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
13126         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
13127         (dump_decl_set): Move to gimple.c.
13128         * gimple.h: Don't include tree-ssa-operands.h.
13129         (dump_decl_set): Add prototype.
13130         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13131         Move to gimple-ssa.h.
13132         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
13133         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
13134         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
13135         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
13136         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
13137         than PHI_ARG_DEF.
13138         (dump_decl_set): Relocate here.
13139         * gimple-ssa.h: New file.
13140         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13141         Relocate from gimple.h.
13142         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
13143         * tree-ssa-operands.c (swap_ssa_operands): Rename from
13144         swap_tree_operands and remove non-ssa path.
13145         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
13146         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
13147         swap_ssa_operands.
13148         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
13149         vect_is_simple_reduction_1): Use swap_ssa_operands.
13150         * tree-flow.h: Move various prototypes to tree-phinodes.h.
13151         (enum need_phi_state): Move to tree-into-ssa.c.
13152         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13153         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
13154         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
13155         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
13156         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13157         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13158         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13159         num_imm_uses): Move to ssa-iterators.h.
13160         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
13161         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
13162         tree-phinodes.h.
13163         (op_iter_done, op_iter_next_def, op_iter_next_tree,
13164         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
13165         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
13166         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
13167         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
13168         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
13169         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
13170         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
13171         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
13172         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
13173         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
13174         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
13175         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
13176         (set_phi_nodes): Move to tree-phinodes.h.
13177         * tree-ssa-operands.h (enum ssa_op_iter_type,
13178         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
13179         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
13180         (dump_decl_set): Remove prototype.
13181         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
13182         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
13183         (set_phi_nodes): Relocate from tree-flow-inline.h.
13184         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
13185         tree-flow-inline.h
13186         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
13187         include list.  Temporarily add gimple.h to include list.
13188         * ssa-iterators.h: New file.
13189         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13190         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
13191         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
13192         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
13193         Relocate from tree-ssa-operands.h.
13194         (delink_imm_use, link_imm_use_to_list, link_imm_use,
13195         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13196         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13197         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13198         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
13199         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
13200         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
13201         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
13202         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
13203         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
13204         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
13205         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
13206         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
13207         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
13208         Relocate from tree-flow-inline.h.
13209         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
13211 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
13213         * aarch64-simd.md
13214         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
13215         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
13216         Insert '\t' to output template.
13217         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
13218         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
13219         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
13220         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
13222 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
13224         * doc/install.texi (Host/target specific installation notes for GCC):
13225         Put @anchor before @heading.
13226         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
13227         Use @email for email addresses.
13229 2013-10-01  Jeff Law  <law@redhat.com>
13231         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
13232         a vec.  Only delete the path if we create one without successfully
13233         registering a jump thread.
13234         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
13235         as a pointer.
13236         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
13237         (paths): New vector of jump threading paths.
13238         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
13239         (THREAD_PATH): New accessor macro for the entire thread path.
13240         (lookup_redirection_data): Get intermediate and final outgoing edge
13241         from the thread path.
13242         (create_edge_and_update_destination_phis): Copy the threading path.
13243         (ssa_fix_duplicate_block_edges): Get edges and block types from the
13244         jump threading path.
13245         (ssa_redirect_edges): Get edges and block types from the jump threading
13246         path.  Free the path vector.
13247         (thread_block): Get edges from the jump threading path.  Look at the
13248         entire path to see if we thread to a loop exit.  If we cancel a jump
13249         thread request, then free the path vector.
13250         (thread_single_edge): Get edges and block types from the jump threading
13251         path.  Free the path vector.
13252         (thread_through_loop_header): Get edges and block types from the jump
13253         threading path.  Free the path vector.
13254         (mark_threaded_blocks): Iterate over the vector of paths and store
13255         the path on the appropriate edge.  Get edges and block types from the
13256         jump threading path.
13257         (mark_threaded_blocks): Get edges and block types from the jump
13258         threading path.  Free the path vector.
13259         (thread_through_all_blocks): Use the vector of paths rather than
13260         a vector of 3-edge sets.
13261         (register_jump_thread): Accept pointer to a path vector rather
13262         than the path vector itself.  Store the path vector for later use.
13263         Simplify.
13265 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
13266             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13268         PR target/58574
13269         * config/s390/s390.c (s390_split_branches): Modify check for table
13270         jump insns.
13271         (s390_chunkify_start): Rearrange table jump insn check in order to
13272         deal with compare and branch insns correctly.
13274 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
13276         PR target/58578
13277         Revert
13278         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
13279         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
13280         define_insn_and_split.
13281         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13282         (shiftsi3_compare): New pattern.
13283         (rrx): New pattern.
13284         * config/arm/unspecs.md (UNSPEC_RRX): New.
13286 2013-10-01  Alan Modra  <amodra@gmail.com>
13288         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13289         casing inout operands.
13291 2013-10-01  Richard Biener  <rguenther@suse.de>
13293         PR tree-optimization/58553
13294         * tree-loop-distribution.c (struct partition_s): Add niter member.
13295         (classify_partition): Populate niter member for the partition
13296         and properly identify whether the relevant store happens before
13297         or after the loop exit.
13298         (generate_memset_builtin): Use niter member from the partition.
13299         (generate_memcpy_builtin): Likewise.
13301 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
13303         * vec.h (vec_prefix, vec): Prefix member names with "m_".
13304         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13306 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
13308         * basic-block.h (edge_list): Prefix member names with "m_".
13309         * context.h (context): Likewise.
13310         * domwalk.h (dom_walker): Likewise.
13311         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13312         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13313         * hash-table.h (hash_table): Likewise.
13314         * machmode.h (bit_field_mode_iterator): Likewise.
13315         * pass_manager.h (pass_list): Likewise.
13316         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13317         * tree-pass.h (pass_data): Likewise.
13318         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13319         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13320         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13321         * asan.c (pass_data_asan): Update accordingly.
13322         * cfganal.c (control_dependences::find_control_dependence): Likewise.
13323         (control_dependences::control_dependences): Likewise.
13324         (control_dependences::~control_dependences): Likewise.
13325         (control_dependences::~control_dependences): Likewise.
13326         (control_dependences::get_edges_dependent_on): Likewise.
13327         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13328         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13329         * context.c (gcc::context::context): Likewise.
13330         * cprop.c (pass_rtl_cprop::clone): Likewise.
13331         * domwalk.c (dom_walker::walk): Likewise.
13332         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13333         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13334         * mode-switching.c (pass_mode_switching::clone): Likewise.
13335         * passes.c (opt_pass::opt_pass): Likewise.
13336         (pass_manager::pass_manager): Likewise.
13337         * predict.c (pass_strip_predict_hints::clone): Likewise.
13338         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13339         (pass_split_all_insns::clone): Likewise.
13340         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13341         Likewise.
13342         (bit_field_mode_iterator::next_mode): Likewise.
13343         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13344         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13345         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13346         * tree-complex.c (pass_lower_complex::clone): Likewise.
13347         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13348         * tree-object-size.c (pass_object_sizes::clone): Likewise.
13349         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13350         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13351         (pass_fold_builtins::clone): Likewise.
13352         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13353         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13354         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13355         (pass_cd_dce::clone): Likewise.
13356         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13357         (pass_phi_only_cprop::clone): Likewise.
13358         * tree-ssa-dse.c (pass_dse::clone): Likewise.
13359         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13360         * tree-ssa-loop.c (pass_lim::clone): Likewise.
13361         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13362         * tree-ssa-pre.c (pass_fre::clone): Likewise.
13363         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13364         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13365         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13366         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13367         * tree-vrp.c (pass_vrp::clone): Likewise.
13368         * tsan.c (pass_tsan::clone): Likewise.
13370 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
13372         PR middle-end/58564
13373         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13374         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13376         PR middle-end/58564
13377         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13378         optimization, punt if sign_bit_p looked through any zero extension.
13380 2013-09-30  Teresa Johnson  <tejohnson@google.com>
13382         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13383         Update redirected out edge count in joiner case.
13384         (ssa_redirect_edges): Common the joiner and non-joiner cases
13385         so that joiner case gets profile updates.
13387 2013-09-30  Richard Biener  <rguenther@suse.de>
13389         PR tree-optimization/58554
13390         * tree-loop-distribution.c (classify_partition): Require
13391         unconditionally executed stores for memcpy and memset recognition.
13392         (tree_loop_distribution): Calculate dominance info.
13394 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
13396         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13397         (NO_PROFILE_COUNTERS): Likewise.
13398         (PROFILE_HOOK): Likewise.
13399         (FUNCTION_PROFILER): Likewise.
13400         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13402 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
13404         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13405         calls and defines in TARGET_MACHO conditional.
13406         (load_macho_picbase_di): Likewise.
13407         (reload_macho_picbase): Likewise.
13408         (reload_macho_picbase_si): Likewise.
13409         (reload_macho_picbase_di): Likewise.
13410         (nonlocal_goto_receiver): Likewise.
13412 2013-09-30  Nick Clifton  <nickc@redhat.com>
13414         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
13415         that use the MSP430X ISA.
13416         (msp430_option_override): Scan -mmcu command line option for any
13417         MCU name that supports the MSP430X ISA.
13418         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13419         -mmcu options which enable the MSP430X ISA.
13421 2013-09-30  Richard Biener  <rguenther@suse.de>
13423         PR middle-end/58532
13424         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13425         before looking for setjmp-like calls.
13427 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13429         PR target/10901
13430         * config/darwin-protos.h (machopic_get_function_picbase): New.
13431         * config/darwin.c (machopic_get_function_picbase): New.
13432         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13433         label for a new func.  (load_macho_picbase_di): Likewise.
13434         (reload_macho_picbase): New expand.
13435         (reload_macho_picbase_si): New insn.
13436         (reload_macho_picbase_di): New insn.
13437         (nonlocal_goto_receiver): New define and split.
13438         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13439         (unspecv enum): Add UNSPECV_NLGR.
13441 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13443         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13444         that altivec registers are correctly sized on Darwin.
13446 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13448         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13449         darwin-driver.o): Use COMPILE and POSTCOMPILE.
13450         * config/x-darwin (host-darwin.o): Likewise.
13451         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13452         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13453         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13455 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
13457         * doc/invoke.texi: Fix usage of @tie{} command.
13459 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
13461         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13463 2013-09-28  Jan Hubicka  <jh@suse.cz>
13465         * config/i386/x86-tune.def: Add documentation for each of the options;
13466         add whitespace.
13468 2013-09-28  Jan Hubicka  <jh@suse.cz>
13470         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13471         generic.
13472         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13473         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13474         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13475         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13476         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13478 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
13480         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13481         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13482         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13483         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13484         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13485         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13486         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13487         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13488         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13489         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13490         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13491         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13492         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13493         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13494         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13495         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13496         gimple.h, godump.c, graphite-clast-to-gimple.c,
13497         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13498         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13499         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13500         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13501         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13502         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13503         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13504         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13505         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13506         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13507         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13508         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13509         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13510         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13511         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13512         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13513         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13514         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13515         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13516         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13517         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13518         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13519         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13520         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13521         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13522         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13523         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13524         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13525         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13526         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13527         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13528         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13529         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13530         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13531         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13532         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13533         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13534         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13535         whitespace before "(".
13537 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
13539         * expr.h (extract_bit_field): Remove packedp parameter.
13540         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13541         from forward declaration.
13542         (store_split_bit_field): Remove packedp arg from calls to
13543         extract_fixed_bit_field.
13544         (extract_bit_field_1): Remove packedp parameter and packedp
13545         argument from recursive calls and calls to extract_fixed_bit_field.
13546         (extract_bit_field): Remove packedp parameter and corresponding
13547         arg to extract_bit_field_1.
13548         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
13549         to issue warnings.
13550         (extract_split_bit_field): Remove packedp arg from call to
13551         extract_fixed_bit_field.
13552         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13553         (copy_blkmode_from_reg): Likewise.
13554         (copy_blkmode_to_reg): Likewise.
13555         (read_complex_part): Likewise.
13556         (store_field): Likewise.
13557         (expand_expr_real_1): Likewise.
13558         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13559         to extract_bit_field.
13560         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13561         call to extract_bit_field.
13562         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13563         call to extract_bit_field.
13564         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13565         and special packedp behavior from -fstrict-volatile-bitfields
13566         documentation.
13568 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13570         * lra-eliminations.c (init_elim_table): Guard value_p.
13572 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
13574         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13575         DFmode, DImode, and SFmode in the upper VSX registers based on the
13576         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
13577         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
13578         of the VSX register handling.
13580         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13581         (f32_sv): Likewise.
13582         (zero_extendsidi2_lfiwzx): Add support for loading into the
13583         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
13584         only do VSX memory options on Altivec registers.
13585         (extendsidi2_lfiwax): Likewise.
13586         (extendsfdf2_fpr): Likewise.
13587         (mov<mode>_hardfloat, SF/SD modes): Likewise.
13588         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13589         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13590         (movdi_internal64): Likewise.
13592 2013-09-27  Xinliang David Li  <davidxl@google.com>
13594         * opts.c (finish_options): Adjust parameters
13595         according to vect cost model.
13596         (common_handle_option): Set dynamic vect cost
13597         model for FDO.
13598         targhooks.c (default_add_stmt_cost): Compute stmt cost
13599         unconditionally.
13600         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13601         Use helper function.
13602         * tree-vectorizer.h (unlimited_cost_model): New function.
13603         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13604         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13605         function.
13606         (vect_enhance_data_refs_alignment): Ditto.
13607         * flag-types.h: New enum.
13608         * common/config/i386/i386-common.c (ix86_option_init_struct):
13609         No need to initialize vect_cost_model flag.
13610         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13611         unconditionally.
13613 2013-09-27  Diego Novillo  <dnovillo@google.com>
13615         * gimple.h (enum ssa_mode): Remove.
13617 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
13619         * cfgloop.h (number_of_loops): Fix typo in check for null.
13621 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
13623         PR middle-end/58551
13624         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13625         are children of outermost saved_cfun's loop, and set it up to
13626         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
13627         if loop != loop0 and SESE region contains bbs that belong to loop0.
13629 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13631         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13632         (binary_scale_code_p, get_base_term, get_index_term): New functions.
13633         (set_address_segment, set_address_base, set_address_index)
13634         (set_address_disp): Accept the argument unconditionally.
13635         (baseness): Remove must_be_base_p and must_be_index_p checks.
13636         (decompose_normal_address): Classify as much as possible in the
13637         main loop.
13639 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13641         * cse.c (count_reg_usage): Handle INT_LIST.
13642         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13643         * reginfo.c (reg_scan_mark_refs): Likewise.
13644         * reload1.c (eliminate_regs_1): Likewise.
13646 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
13648         PR middle-end/58547
13649         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13650         signed.
13652 2013-09-27  Richard Biener  <rguenther@suse.de>
13654         PR tree-optimization/58459
13655         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13656         restriction not propagating into loops.
13658 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
13660         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13661         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13662         * doc/tree-ssa.texi (Walking use-def chains): Delete.
13664 2013-09-26  Richard Biener  <rguenther@suse.de>
13666         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13668 2013-09-26  Richard Biener  <rguenther@suse.de>
13670         * alias.h (component_uses_parent_alias_set): Rename to ...
13671         (component_uses_parent_alias_set_from): ... this.
13672         * alias.c (component_uses_parent_alias_set): Rename to ...
13673         (component_uses_parent_alias_set_from): ... this and return
13674         the desired parent.
13675         (reference_alias_ptr_type_1): Use the result from
13676         component_uses_parent_alias_set_from instead of stripping
13677         components one at a time.
13678         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13680 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
13682         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13683         Move prototypes to...
13684         * tree-ssa-ter.h: New File.  Move prototypes here.
13685         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13686         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13687         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
13688         from is_replaceable_p.
13689         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13690         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
13691         (process_replaceable): Use ter_is_replaceable_p.
13692         (find_replaceable_in_bb): Use ter_is_replaceable_p.
13693         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
13694         newly refactored ssa_is_replaceable_p.
13695         * cfgexpand.c: Include tree-outof-ssa.h.
13696         * ssaexpand.h: Delete.
13698 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
13700         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13701         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13702         tree-ssa.c
13703         (create_gimple_tmp): Delete.
13704         (get_expr_type, build_assign, build_type_cast): Move to...
13705         * gimple-builder.c: New File.
13706         (get_expr_type): Relocate from gimple.c.
13707         (build_assign, build_type_cast): Change to only create ssanames.
13708         * gimple.h: Move prototypes to...
13709         * gimple-builder.h: New File. Here.
13710         * tree-ssa.h: And here.
13711         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13712         count_uses_and_derefs): Relocate from gimple.c.
13713         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13714         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13715         * tree-ssa-math-opts (execute_cse_reciprocals): Use
13716         gimple_replace_ssa_lhs.
13717         * asan.c: Include gimple-builder.h.
13718         * Makefile.in: Add gimple-builder.o.
13720 2013-09-26  Richard Biener  <rguenther@suse.de>
13722         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13723         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13724         (loe_visit_block): Use gcc_checking_assert.
13725         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13726         gimple_assign_ssa_name_copy_p.
13727         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13728         change.
13730 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
13732         * config/rs6000/t-rs6000 (rs6000.o): Remove.
13733         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13735 2013-09-26  Richard Biener  <rguenther@suse.de>
13737         PR tree-optimization/58539
13738         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13739         the fact that debug statements are not taking part in loop-closed
13740         SSA construction.
13742 2013-09-26  Nick Clifton  <nickc@redhat.com>
13744         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13745         time warning message.
13746         (msp430_print_operand_raw): Delete unused letter parameter.
13747         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13748         (msp430_print_operand_address): New function.
13749         (msp430_print_operand): Move address printing code from here to
13750         new function.
13751         * config/msp430/msp430.md (movsipsi2): Add comment in generated
13752         assembler.
13753         (zero_extendpsisi2): Likewise.
13754         (extendpsisi2): New pattern.
13755         (andneghi3): New pattern.
13757 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
13759         * config/aarch64/aarch64.opt (mlra): New option.
13760         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13761         (TARGET_LRA_P): Define.
13763 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
13765         * expr.c (expand_assignment): Remove obsolete comment.
13767 2013-09-25  Jeff Law  <law@redhat.com>
13769         * tree-flow.h (thread_through_all_blocks): Prototype moved into
13770         tree-ssa-threadupdate.h.
13771         (register_jump_thread): Similarly.
13772         * tree-ssa-threadupdate.h: New header file.
13773         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13774         * tree-vrp.c: Likewise.
13775         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13776         (thread_around_empty_blocks): Change type of path vector argument to
13777         an edge,type pair from just an edge.  Initialize both elements when
13778         appending to a jump threading path.  Tweak references to elements
13779         appropriately.
13780         (thread_across_edge): Similarly.  Release memory for the elements
13781         as needed.
13782         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13783         (dump_jump_thread_path): New function broken out from
13784         register_jump_thread.
13785         (register_jump_thread): Use dump_jump_thread_path.  Change type of
13786         path vector entries.  Search the path for NULL edges and dump
13787         the path if one is found.  Tweak the conversion of path to 3-edge
13788         form to use the block copy type information embedded in the path.
13790 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13792         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13794 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13795             Vladimir Makarov  <vmakarov@redhat.com>
13797         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13798         from the least significant bit.
13799         (strip_address_mutations): Add bitfield operations handling.
13800         (must_be_index_p): Add shifting and rotate operations handling.
13801         (set_address_base): Use must_be_base_p predicate.
13802         (set_address_index): Use must_be_index_p predicate.
13804 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13805             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13806             Sergey Lega  <sergey.s.lega@intel.com>
13807             Anna Tikhonova  <anna.tikhonova@intel.com>
13808             Ilya Tocar  <ilya.tocar@intel.com>
13809             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13810             Ilya Verbin  <ilya.verbin@intel.com>
13811             Kirill Yukhin  <kirill.yukhin@intel.com>
13812             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13814         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13815         Use new names.
13816         (ix86_expand_vector_move_misalign): Support new unaligned load and
13817         stores and use new names.
13818         (CODE_FOR_sse2_storedqu): Rename to ...
13819         (CODE_FOR_sse2_storedquv16qi): ... this.
13820         (CODE_FOR_sse2_loaddqu): Rename to ...
13821         (CODE_FOR_sse2_loaddquv16qi): ... this.
13822         (CODE_FOR_avx_loaddqu256): Rename to ...
13823         (CODE_FOR_avx_loaddquv32qi): ... this.
13824         (CODE_FOR_avx_storedqu256): Rename to ...
13825         (CODE_FOR_avx_storedquv32qi): ... this.
13826         * config/i386/i386.md (fpint_logic): New.
13827         * config/i386/sse.md (VMOVE): Extend for AVX512.
13828         (VF): Ditto.
13829         (VF_128_256): New.
13830         (VF_512): Ditto.
13831         (VI_UNALIGNED_LOADSTORE): Ditto.
13832         (sse2_avx_avx512f): Ditto.
13833         (sse2_avx2): Extend for AVX512.
13834         (sse4_1_avx2): Ditto.
13835         (avx2_avx512f): New.
13836         (sse): Extend for AVX512.
13837         (sse2): Ditto.
13838         (sse4_1): Ditto.
13839         (avxsizesuffix): Ditto.
13840         (sseintvecmode): Ditto.
13841         (ssePSmode): Ditto.
13842         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13843         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13844         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13845         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13846         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13847         (<sse2_avx_avx512f>_storedqu<mode): ... this.
13848         (<sse>_movnt<mode>): Replace constraint "x" with "v".
13849         (STORENT_MODE): Extend for AVX512.
13850         (*absneg<mode>2): Replace constraint "x" with "v".
13851         (*mul<mode>3): Ditto.
13852         (*ieee_smin<mode>3): Ditto.
13853         (*ieee_smax<mode>3): Ditto.
13854         (avx_cmp<mode>3): Replace VF with VF_128_256.
13855         (*<sse>_maskcmp<mode>3_comm): Ditto.
13856         (<sse>_maskcmp<mode>3): Ditto.
13857         (<sse>_andnot<mode>3): Extend for AVX512.
13858         (<code><mode>3, anylogic): Replace VF with VF_128_256.
13859         (<code><mode>3, fpint_logic): New.
13860         (*<code><mode>3): Extend for AVX512.
13861         (avx512flogicsuff): New.
13862         (avx512f_<logic><mode>): Ditto.
13863         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13864         VF_128_256.
13865         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13866         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13867         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13868         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13869         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13870         (xop_vpermil2<mode>3): Ditto.
13871         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13872         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13873         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13874         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13876 2013-09-25  Tom Tromey  <tromey@redhat.com>
13878         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13879         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13880         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13881         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13882         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13883         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13884         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13885         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13886         (GRAPHITE_HTAB_H): Remove.
13888 2013-09-25  Tom Tromey  <tromey@redhat.com>
13890         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13892 2013-09-25  Tom Tromey  <tromey@redhat.com>
13894         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13896 2013-09-25  Tom Tromey  <tromey@redhat.com>
13898         * config/i386/t-i386 (i386.o): Remove.
13899         (i386-c.o): Use COMPILE and POSTCOMPILE.
13901 2013-09-25  Tom Tromey  <tromey@redhat.com>
13903         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13905 2013-09-25  Tom Tromey  <tromey@redhat.com>
13907         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13908         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13909         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13910         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13911         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13912         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13913         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13914         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13915         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13916         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13917         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13918         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13919         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13920         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13921         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13922         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13923         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13924         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13925         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13926         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13927         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13928         (tree-ssa-pre.o, tree-ssa-sccvn.o)
13929         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13930         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13931         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13932         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13933         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13934         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13935         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13936         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13937         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13938         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13939         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13940         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13941         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13942         (graphite-clast-to-gimple.o, graphite-dependences.o)
13943         (graphite-interchange.o, graphite-poly.o)
13944         (graphite-scop-detection.o, graphite-sese-to-poly.o)
13945         (graphite-optimize-isl.o, tree-vect-loop.o)
13946         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13947         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13948         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13949         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13950         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13951         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13952         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13953         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13954         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13955         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13956         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13957         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13958         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13959         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13960         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13961         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13962         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13963         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13964         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13965         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13966         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13967         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13968         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13969         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13970         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13971         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13972         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13973         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13974         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13975         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13976         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13977         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13978         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13979         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13980         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13981         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13982         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13983         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13984         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13985         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13986         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13987         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13988         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13989         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13990         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13991         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13992         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13993         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13994         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13995         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13996         (gcov-dump.o): Remove.
13997         (default-c.o): Use COMPILE and POSTCOMPILE.
13998         (CFLAGS-gcc.o): New variable.
13999         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
14001 2013-09-25  Tom Tromey  <tromey@redhat.com>
14003         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
14004         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
14005         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
14006         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
14007         (c-family/c-pragma.o, c-family/c-pretty-print.o)
14008         (c-family/c-semantics.o, c-family/c-ada-spec.o)
14009         (c-family/array-notation-common.o, c-family/stub-objc.o)
14010         (c-family/c-ubsan.o): Remove.
14012 2013-09-25  Tom Tromey  <tromey@redhat.com>
14014         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
14016 2013-09-25  Tom Tromey  <tromey@redhat.com>
14018         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
14019         to add -DENABLE_SHARED_LIBGCC.
14020         (gcc.o): Don't use subshell.
14022 2013-09-25  Tom Tromey  <tromey@redhat.com>
14024         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
14025         * configure.ac: Don't invoke AM_PROG_CC_C_O.
14026         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
14027         * configure, config.in: Rebuild.
14029 2013-09-25  Tom Tromey  <tromey@redhat.com>
14031         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
14032         (COMPILE, POSTCOMPILE): New variables.
14033         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
14034         (DEPFILES): New variable.
14035         Include ".Po" files.
14036         * configure.ac: Add checks for dependency checking.
14037         * configure, aclocal.m4: Regenerate.
14039 2013-09-25  Tom Tromey  <tromey@redhat.com>
14041         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
14042         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
14044 2013-09-25  Tom Tromey  <tromey@redhat.com>
14046         * Makefile.in (generated_files): Add options.h,
14047         target-hooks-def.h, insn-opinit.h,
14048         common/common-target-hooks-def.h, pass-instances.def,
14049         c-family/c-target-hooks-def.h.
14051 2013-09-25  Jeff Law  <law@redhat.com>
14053         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
14054         than foo[foo.length () - 1] to access last member in a vec.
14055         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
14057 2013-09-25  Richard Biener  <rguenther@suse.de>
14059         PR middle-end/58521
14060         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
14062 2013-09-25  Jan Hubicka  <jh@suse.cz>
14064         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
14065         test.
14067 2013-09-25  Marek Polacek  <polacek@redhat.com>
14069         PR sanitizer/58420
14070         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
14071         when determining the type name.
14073 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
14075         * config/sh/sh.md: Fix formatting.
14077 2013-09-24  Xinliang David Li  <davidxl@google.com>
14079         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
14080         max peel iterations parameter.
14081         * param.def: New parameter.
14082         * doc/invoke.texi: Document New parameter.
14084 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
14086         * gimple-pretty-print.c: Various whitespace tweaks.
14087         * tree-core.h: Likewise.
14088         * tree-pretty-print.c: Likewise.
14089         * tree-ssa-alias.c: Likewise.
14090         * tree-ssa-copy.c: Likewise.
14091         * tree-ssanames.c: Likewise.
14092         * tree-ssanames.h: Likewise.
14093         * tree-vrp.c: Likewise.
14095 2013-09-24  Alan Modra  <amodra@gmail.com>
14097         PR middle-end/57134
14098         PR middle-end/57586
14099         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
14100         for output operands that disallow regs.  Don't use EXPAND_WRITE on
14101         inout operands.
14103 2013-09-24  Richard Biener  <rguenther@suse.de>
14105         PR middle-end/58513
14106         * tree.c (reference_alias_ptr_type): Move ...
14107         * alias.c (reference_alias_ptr_type): ... here and implement
14108         in terms of the new reference_alias_ptr_type_1.
14109         (ref_all_alias_ptr_type_p): New helper.
14110         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
14111         use ref_all_alias_ptr_type_p.
14112         (get_deref_alias_set): Add flag_strict_aliasing check here.
14113         (reference_alias_ptr_type_1): New function, split out from ...
14114         (get_alias_set): ... here.
14115         (alias_ptr_types_compatible_p): New function.
14116         * alias.h (reference_alias_ptr_type): Declare.
14117         (alias_ptr_types_compatible_p): Likewise.
14118         * tree.h (reference_alias_ptr_type): Remove.
14119         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
14120         to compare MEM_REF alias types.
14122 2013-09-24  Richard Biener  <rguenther@suse.de>
14124         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
14126 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14128         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
14129         reload helper function arrays into a single array reg_addr.
14130         (reload_fpr_gpr): Likewise.
14131         (reload_gpr_vsx): Likewise.
14132         (reload_vsx_gpr): Likewise.
14133         (struct rs6000_reg_addr): Likewise.
14134         (reg_addr): Likewise.
14135         (rs6000_debug_reg_global): Change rs6000_vector_reload,
14136         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
14137         (rs6000_init_hard_regno_mode_ok): Likewise.
14138         (rs6000_secondary_reload_direct_move): Likewise.
14139         (rs6000_secondary_reload): Likewise.
14141         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
14142         constraints: wu, ww, and wy.  Repurpose wv constraint added during
14143         power8 changes.  Put wg constraint in alphabetical order.
14145         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
14146         for future work to add ISA 2.07 VSX single precision support.
14147         (-mvsx-scalar-double): Change default from -1 to 1, update
14148         documentation comment.
14149         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
14150         (-mupper-regs-df): New debug switch to control whether DF values
14151         can go in the traditional Altivec registers.
14152         (-mupper-regs-sf): New debug switch to control whether SF values
14153         can go in the traditional Altivec registers.
14155         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
14156         and wy constraints.
14157         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
14158         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
14159         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
14160         (rs6000_debug_legitimate_address_p): Print if we are running
14161         before, during, or after reload.
14162         (rs6000_secondary_reload): Add a comment.
14163         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
14165         * config/rs6000/constraints.md (wa constraint): Sort w<x>
14166         constraints.  Update documentation string.
14167         (wd constraint): Likewise.
14168         (wf constraint): Likewise.
14169         (wg constraint): Likewise.
14170         (wn constraint): Likewise.
14171         (ws constraint): Likewise.
14172         (wt constraint): Likewise.
14173         (wx constraint): Likewise.
14174         (wz constraint): Likewise.
14175         (wu constraint): New constraint for ISA 2.07 SFmode scalar
14176         instructions.
14177         (ww constraint): Likewise.
14178         (wy constraint): Likewise.
14179         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
14180         in the previous submissions.
14181         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
14183 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
14185         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
14186         (REG_BR_PROB): Say that the probability is stored in an int_list.
14187         * reg-notes.def: Update commentary to mention INT_LIST.
14188         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
14189         (INT_LIST): New rtx.
14190         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
14191         * rtlanal.c (int_reg_note_p): New function.
14192         (alloc_reg_note): Assert that the note does not have an int argument.
14193         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
14194         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
14195         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
14196         rather than an INSN_LIST.  Handle INT_LIST.
14197         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
14198         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
14199         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
14200         Manipulate them as ints rather than rtxes.
14201         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
14202         * regmove.c (copy_src_to_dest): Likewise.
14203         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
14205         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
14206         into the cases that need it.
14207         * config/arm/arm.c (arm_unwind_emit): Likewise.
14209         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
14210         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
14211         * loop-doloop.c (add_test, doloop_modify): Likewise.
14212         * loop-unswitch.c (compare_and_jump_seq): Likewise.
14213         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
14214         * predict.c (combine_predictions_for_insn): Likewise.
14215         * print-rtl.c (print_rtx): Handle INT_LIST.
14216         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
14217         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
14218         * config/arm/arm.c (emit_unlikely_jump): Likewise.
14219         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
14220         (ix86_split_fp_branch, predict_jump): Likewise.
14221         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
14222         * config/sh/sh.c (expand_cbranchsi4): Likewise.
14223         * config/spu/spu.c (ea_load_store_inline): Likewise.
14225         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
14226         value of a REG_BR_PROB note.
14227         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14228         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
14229         * emit-rtl.c (try_split): Likewise.
14230         * predict.c (br_prob_note_reliable_p): Likewise.
14231         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
14232         * reorg.c (mostly_true_jump): Likewise.
14233         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
14234         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14235         * config/i386/i386.c (ix86_print_operand): Likewise.
14236         * config/ia64/ia64.c (ia64_print_operand): Likewise.
14237         * config/mmix/mmix.c (mmix_print_operand): Likewise.
14238         * config/rs6000/rs6000.c (output_cbranch): Likewise.
14239         * config/s390/s390.c (s390_expand_tbegin): Likewise.
14240         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
14241         * config/sparc/sparc.c (output_cbranch): Likewise.
14242         * config/spu/spu.c (get_branch_target): Likewise.
14243         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
14244         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
14246 2013-09-23  Jan Hubicka  <jh@suse.cz>
14248         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
14249         for ipa-devirt.
14250         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
14251         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
14252         of external calls
14253         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
14254         (gimple_fold_call): Dump inconsistent devirtualizations; add
14255         sanity check for type based devirtualizations.
14256         * ipa-prop.c: Include ipa-utils.h
14257         (ipa_intraprocedural_devirtualization): Add sanity check.
14258         (try_make_edge_direct_virtual_call): Likewise.
14260 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
14262         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
14263         assignment statements.
14265 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
14267         * gimple-pretty-print.c (dump_ssaname_info): New function.
14268         (dump_gimple_phi): Call it.
14269         (pp_gimple_stmt_1): Likewise.
14270         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14271         (range_info_def): Declare.
14272         * tree-pretty-print.c (pp_double_int): New function.
14273         (dump_generic_node): Call it.
14274         * tree-pretty-print.h (pp_double_int): Declare.
14275         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14276         * tree-ssanames.h (range_info_def): New structure.
14277         (value_range_type): Move definition here.
14278         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14279         Declare.
14280         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14281         initialization.
14282         (set_range_info): New function.
14283         (get_range_info): Likewise.
14284         (duplicate_ssa_name_range_info): Likewise.
14285         (duplicate_ssa_name_fn): Check pointer type and call
14286         duplicate_ssa_name_range_info.
14287         * tree-ssa-copy.c (fini_copy_prop): Likewise.
14288         * tree-vrp.c (value_range_type): Remove definition, now in
14289         tree-ssanames.h.
14290         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14291         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14292         (SSA_NAME_RANGE_INFO): New macro.
14294 2013-09-23  Richard Biener  <rguenther@suse.de>
14296         PR tree-optimization/58464
14297         * tree-ssa-pre.c (phi_trans_lookup): Remove.
14298         (phi_trans_add): Change to add conditionally on being not present.
14299         (phi_translate_1): Remove recursion detection here.
14300         (phi_translate): Pre-seed the cache with NULL to catch
14301         recursion here in a more generic way.
14302         (bitmap_find_leader): Adjust comment.
14303         (get_representative_for): Dump value-numbers.
14304         (create_expression_by_pieces): Likewise.
14305         (insert_into_preds_of_block): Likewise.
14307 2013-09-23  Christian Bruel  <christian.bruel@st.com>
14309         PR target/58475
14310         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14311         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14313 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
14315         Revert r202780:
14316         2013-09-20  Renlin Li  <renlin.li@arm.com>
14318         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14319         plus_constant.
14320         (aarch64_expand_epilogue): Likewise.
14321         (aarch64_legitimize_reload_address): Likewise.
14323 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
14325         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14326         NULL_TREE before pushing them onto the vector.  Likewise for labels.
14328 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
14330         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14331         comparison operators when -fno-trapping-math is in effect.
14332         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14333         comparison operators in TFmode and assert that unsupported operators
14334         cannot reach here.
14335         (ia64_print_operand): Likewise.
14337 2013-09-21  Jan Hubicka  <jh@suse.cz>
14339         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14340         (sse_typeless_stores): Enable for core
14341         (sse_load0_by_pxor): Likewise.
14342         (four_jump_limit): Disable for core.
14343         (pad_returns): Likewise.
14344         (avoid_vector_decode): Likewise.
14345         (fuse_cmp_and_branch): Enable for cores.
14346         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14348 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
14350         PR middle-end/56791
14351         * config/pa/pa.c (pa_option_override): Disable auto increment and
14352         decrement instructions until reload is completed.
14354         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14355         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14356         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14358 2013-09-20  DJ Delorie  <dj@redhat.com>
14359             Nick Clifton  <nickc@redhat.com>
14361         * config/rl78/rl78.c: Various whitespace and comment tweaks.
14362         (need_to_save): Save bank 0 on interrupts.
14363         (characterize_address): Strip far address wrappers.
14364         (rl78_as_legitimate_address): Likewise.
14365         (transcode_memory_rtx): Likewise.
14366         (rl78_peep_movhi_p): Disable this peephole after devirt.
14367         (rl78_propogate_register_origins): Forget all origins when a
14368         CLOBBER is seen.
14369         * config/rl78/rl78-virt.md: Various whitespace tweaks.
14370         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
14371         peephole2's.
14372         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14373         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14374         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14375         relocating.
14376         * config/rl78/constraints.md: Various whitespace and paren tweaks.
14378 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
14380         * config/pa/pa.md: In "scc" insn patterns, change output template to
14381         handle const0_rtx in reg_or_0_operand operands.
14383 2013-09-20  Martin Husemann  <martin@NetBSD.org>
14385         PR target/56875
14386         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14387         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14389 2013-09-20  Richard Biener  <rguenther@suse.de>
14391         PR middle-end/58484
14392         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14393         remembering SSA name version and block index.
14394         (new_scev_info_str): Adjust.
14395         (hash_scev_info): Likewise.  Also hash the block index.
14396         (eq_scev_info): Adjust.
14397         (find_var_scev_info): Likewise.
14398         (struct instantiate_cache_entry): Remove.
14399         (struct instantiate_cache_type): Use a htab to map name, block
14400         to chrec.
14401         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14402         (get_instantiated_value_entry): Likewise.
14403         (hash_idx_scev_info, eq_idx_scev_info): New functions.
14404         (instantiate_scev_name): Adjust.
14406 2013-09-20  Jeff Law  <law@redhat.com>
14408         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14410 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
14412         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14413         Call aarch64_simd_expand_args to update op[argc].
14415 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14417         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14418         plugin argument.
14420 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14422         * gengtype.c (file_rules): Added rule for *.cc files.
14423         (get_output_file_with_visibility): Give fatal message when no
14424         rules found.
14426 2013-09-20  Renlin Li  <renlin.li@arm.com>
14428         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14429         (aarch64_expand_epilogue): Likewise.
14430         (aarch64_legitimize_reload_address): Likewise.
14432 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14434         PR middle-end/57748
14435         * expr.c (expand_assignment): Remove misalignp code path.
14437 2013-09-20  Marek Polacek  <polacek@redhat.com>
14439         PR sanitizer/58413
14440         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14441         TYPE_PRECISION.  Add asserts.
14443 2013-09-20  Richard Biener  <rguenther@suse.de>
14445         PR tree-optimization/58453
14446         * tree-loop-distribution.c (distribute_loop): Apply the cost
14447         model for -ftree-loop-distribute-patterns, too.
14449 2013-09-20  Richard Biener  <rguenther@suse.de>
14451         PR middle-end/58473
14452         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14453         make type comparison less strict.
14455 2013-09-20  Alan Modra  <amodra@gmail.com>
14457         * configure: Regenerate.
14458         * aclocal.m4: Regenerate.
14460 2013-09-20  Marek Polacek  <polacek@redhat.com>
14462         PR other/58467
14463         * doc/extend.texi: Document that attribute used is meant to be used
14464         on variables with static storage duration.
14466 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14468         PR tree-optimization/58472
14469         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14470         simd_lane_access set inv_p = false.
14471         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14472         the simduid magic VAR_DECL.
14474 2013-09-19  Jan Hubicka  <jh@suse.cz>
14476         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14478 2013-09-17  Jeff Law  <law@redhat.com>
14480         * tree-ssa-dom.c (record_temporary_equivalences): New function
14481         split out of dom_opt_dom_walker::after_dom_children.
14482         (dom_opt_dom_walker::thread_across_edge): Move common code
14483         in here from dom_opt_dom_walker::after_dom_children.
14484         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14486 2013-09-19  Jan Hubicka  <jh@suse.cz>
14488         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14489         (TARGET_GENERIC): Use PROCESOR_GENERIC
14490         (enum processor_type): Unify generic32 and 64.
14491         * i386.md (cpu): Likewise.
14492         * x86-tune.def (use_leave): Enable for generic32.
14493         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14494         * athlon.md: Change generic64 to generic in all occurences.
14495         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14496         (ix86_target_macros_internal): Likewise.
14497         * driver-i386.c (host_detect_local_cpu): Likewise.
14498         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14499         to ..
14500         (generic_memcpy, generic_memset, generic_cost): This one.
14501         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14502         (m_GENERIC32, m_GENERIC64): Remove.
14503         (m_GENERIC): Turn into one flag.
14504         (processor_target): Unify generic tunnings.
14505         (ix86_option_override_internal): Replace generic32/64 by generic.
14506         (ix86_issue_rate): Likewise.
14507         (ix86_adjust_cost): Likewise.
14509 2013-09-19  Jan Hubicka  <jh@suse.cz>
14511         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14512         of speculative flag.
14514 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14516         * omp-low.c (expand_omp_sections): Always pass len - 1 to
14517         GOMP_sections_start, even if !exit_reachable.
14519 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14521         * lra-constraints.c (need_for_all_save_p): Use macro
14522         HARD_REGNO_CALL_PART_CLOBBERED.
14523         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14524         set up pseudo conflict hard regs.
14526 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14528         PR target/58452
14529         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14530         operands.
14532 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14534         PR rtl-optimization/58438
14535         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14536         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14537         from previous subpasses.
14539 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
14541         * arm.c (arm_get_frame_offsets): Validate architecture supports
14542         LDRD/STRD before accepting the tuning preference.
14543         (arm_expand_prologue): Likewise.
14544         (arm_expand_epilogue): Likewise.
14546 2013-09-18  Richard Biener  <rguenther@suse.de>
14548         PR tree-optimization/58417
14549         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14550         have chrecs with symbols defined in the loop as operands.
14551         (chrec_fold_multiply): Likewise.
14552         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14553         parameters before folding binary operations.
14554         (struct instantiate_cache_entry_hasher): Remove.
14555         (struct instantiate_cache_type): Use a pointer-map.
14556         (instantiate_cache_type::instantiate_cache_type): New function.
14557         (instantiate_cache_type::get): Likewise.
14558         (instantiate_cache_type::set): Likewise.
14559         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14560         (get_instantiated_value_entry): Likewise.
14561         (global_cache): New global.
14562         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14563         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14564         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14565         (instantiate_scev_name): Adjust.
14566         (instantiate_scev): Construct global instead of local cache.
14567         (resolve_mixers): Likewise.
14569 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
14570             Paolo Carlini  <paolo.carlini@oracle.com>
14572         PR c++/58458
14573         * doc/implement-cxx.texi: Fix references to the C++ standards.
14575 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
14577         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14578         * tree-vect-data-refs.c (vect_analyze_data_refs): For
14579         simd_lane_access drs, update also DR_ALIGNED_TO.
14581 2013-09-18  Marek Polacek  <polacek@redhat.com>
14583         PR sanitizer/58411
14584         * doc/extend.texi: Document no_sanitize_undefined attribute.
14585         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14586         no_sanitize_undefined attribute.
14588 2013-09-18  Nick Clifton  <nickc@redhat.com>
14590         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14591         (ASM_DECLARE_FUNCTION_NAME): Define.
14593 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
14595         * compare-elim.c (find_comparison_dom_walker): New class
14596         (find_comparisons_in_bb): Rename to
14597         find_comparison_dom_walker::before_dom_children
14598         (find_comparisons): Adjust
14599         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14600         adjust.
14601         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14602         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14603         (init_walk_dominator_tree): Remove declaration.
14604         (fini_walk_dominator_tree): Remove declaration.
14605         * fwprop.c (single_def_use_dom_walker): New class
14606         (single_def_use_enter_block): Convert to
14607         single_def_use_dom_walker::before_dom_children.
14608         (single_def_use_leave_block): Convert to
14609         single_def_use_dom_walker::after_dom_children.
14610         (build_single_def_use_links): Adjust.
14611         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14612         class.
14613         (find_candidates_in_block): Convert to
14614         find_candidates_dom_walker::before_dom_children.
14615         (execute_strength_reduction): Adjust.
14616         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14617         (sese_dom_walker): New class.
14618         (sese_dom_walker::sese_dom_walker): New constructor.
14619         (sese_dom_walker::~sese_dom_walker): New destructor.
14620         (build_sese_conditions_before): Convert to
14621         sese_dom_walker::before_dom_children.
14622         (build_sese_conditions_after): Convert to
14623         sese_dom_walker::after_dom_children.
14624         (build_poly_scop): Adjust
14625         * tree-into-ssa.c (rewrite_dom_walker): New class
14626         (rewrite_enter_block): Convert to
14627         rewrite_dom_walker::before_dom_children.
14628         (rewrite_leave_block): Convert to
14629         rewrite_dom_walker::after_dom_children.
14630         (rewrite_update_dom_walker): New class.
14631         (rewrite_update_enter_block): Convert to
14632         rewrite_update_dom_walker::before_dom_children.
14633         (rewrite_update_leave_block): Convert to
14634         rewrite_update_dom_walker::after_dom_children.
14635         (rewrite_blocks, rewrite_into_ssa): Adjust.
14636         (mark_def_dom_walker): New class.
14637         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14638         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14639         (mark_def_sites_blocks): Convert to
14640         mark_def_dom_walker::before_dom_children.
14641         (mark_def_site_blocks): Remove.
14642         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14643         (tree_ssa_dominator_optimize): Adjust.
14644         (dom_thread_across_edge): Convert to method
14645         dom_opt_dom_walker::thread_across_edge.
14646         (dom_opt_enter_block): Convert to member function
14647         dom_opt_dom_walker::before_dom_children.
14648         (dom_opt_leave_block): Convert to member function
14649         dom_opt_dom_walker::after_dom_children.
14650         * tree-ssa-dse.c (dse_dom_walker): New class.
14651         (dse_enter_block): Convert to member function
14652         dse_dom_walker::before_dom_children.
14653         (tree_ssa_dse): Adjust.
14654         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14655         (determine_invariantness_stmt): Convert to method
14656         invariantness_dom_walker::before_dom_children.
14657         (determine_invariantness): Remove
14658         (move_computations_dom_walker): New class.
14659         (move_computations_stmt): Convert to method
14660         move_computations_dom_walker::before_dom_children.
14661         (move_computations, tree_ssa_lim): Adjust.
14662         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14663         (nt_init_block): Convert to method
14664         notrappping_dom_walker::before_dom_children.
14665         (nt_fini_block): Convert to method
14666         method nontrapping_dom_walker::after_dom_children.
14667         (get_non_trapping): Adjust.
14668         * tree-ssa-pre.c (eliminate_dom_walker): New class.
14669         (eliminate_bb): Convert to method
14670         eliminate_dom_walker::before_dom_children.
14671         (eliminate_leave_block): Convert to method
14672         eliminate_dom_walker::after_dom_children.
14673         (eliminate): Adjust.
14674         * tree-ssa-strlen.c (strlen_dom_walker): New class.
14675         (strlen_enter_block): Convert to method
14676         strlen_dom_walker::before_dom_children.
14677         (strlen_leave_block): Convert to method
14678         method strlen_dom_walker::after_dom_children.
14679         (tree_ssa_strlen): Adjust.
14680         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14681         (tree_ssa_uncprop): Adjust.
14682         (uncprop_leave_block): Convert to method
14683         uncprop_dom_walker::after_dom_children.
14684         (uncprop_leave_block): Convert to method
14685         uncprop_dom_walker::before_dom_children.
14687 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
14689         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14690         branch in same basic block.  Check both src and dest of the move insn.
14692 2013-09-17  Nick Clifton  <nickc@redhat.com>
14694         * config/rl78/rl78-real.md (bf): New pattern.
14695         (bt): New pattern.
14696         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14697         (rl78_print_operand): Do not put a # before a %B.
14698         * config/rl78/rl78.opt: Tweak doc strings.
14700 2013-09-17  DJ Delorie  <dj@redhat.com>
14702         * config/rl78/constraints.md (Wcv): Allow up to $r31.
14703         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14704         (rl78_option_override): Likewise, if -mallregs.
14705         (is_virtual_register): Likewise.
14706         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14707         (REGNO_OK_FOR_BASE_P): Likewise.
14708         * config/rl78/rl78.opt (-mallregs): New.
14710 2013-09-17  Nick Clifton  <nickc@redhat.com>
14712         * config/rl78/rl78.c (need_to_save): Change return type to bool.
14713         For interrupt functions: save all call clobbered registers if the
14714         interrupt handler is not a leaf function.
14715         (rl78_expand_prologue): Always recompute the frame information.
14716         For interrupt functions: only select bank 0 if one of the bank 0
14717         registers is going to be psuhed.
14719 2013-09-17  DJ Delorie  <dj@redhat.com>
14721         * config/rl78/constraints.md: For each W* constraint, rename to C*
14722         and create a W* constraint that checks for an optional ES: prefix
14723         pattern also.
14724         * config/rl78/rl78.md (UNS_ES_ADDR): New.
14725         (es_addr): New.  Used to wrap far addresses.
14726         * config/rl78/rl78-protos.h (rl78_es_addr): New.
14727         (rl78_es_base): New.
14728         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14729         wrapped far addresses.
14730         (rl78_print_operand_1): Unwrap far addresses before processing.
14731         (rl78_lo16): Wrap far addresses in unspecs.
14732         (rl78_es_addr): New.
14733         (rl78_es_base): New.
14734         (insn_ok_now): Check for not-yet-wrapped far addresses.
14735         (transcode_memory_rtx): Properly re-wrap far addresses.
14737 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14739         * config/sparc/t-rtems: Add leon3 multilibs.
14741 2013-09-17  Cong Hou  <congh@google.com>
14743         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14744         when checking the dot production pattern. The type of rhs operand
14745         of multiply is now checked correctly.
14747 2013-09-17  Jeff Law  <law@redhat.com>
14749         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14750         edge implied equivalences into successor phis.
14751         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14752         here from tree-ssa-threadedge.c.
14753         (mark_threaded_blocks): When threading through a joiner, if both
14754         successors of the joiner's clone reach the same block, verify the
14755         PHI arguments are equal.  If not, cancel the jump threading request.
14756         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14757         tree-ssa-threadupdate.c
14758         (thread_across_edge): Don't check PHI argument equality when
14759         threading through joiner block here.
14761 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
14763         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14764         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14765         (warn_uninit, warn_uninitialized_vars,
14766         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14767         Move to tree-ssa-uninit.c.
14768         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14769         (has_undefined_value_p): New.  Pass dependant parts of
14770         ssa_undefined_value_p.
14771         (uninit_undefined_value_p): Use has_undefined_value_p.
14772         (warn_uninit, warn_uninitialized_vars,
14773         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14774         Move from tree-ssa.c.
14775         * tree-ssa.h: Adjust prototypes.
14777 2013-09-17  Jan Hubicka  <jh@suse.cz>
14779         PR middle-end/58332
14780         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14781         * ipa-inline.c (can_inline_edge_p): Do not downgrade
14782         FUNCTION_NOT_OPTIMIZED.
14783         * ipa-inline-analysis.c (compute_inline_parameters): Function
14784         not optimized is not inlinable unless it is alwaysinline.
14785         (inline_analyze_function): Force calls in not optimized
14786         function not inlinable.
14788 2013-09-17  Jan Hubicka  <jh@suse.cz>
14790         PR middle-end/58329
14791         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14792         to return NULL.
14793         * ipa.c (function_and_variable_visibility): Likewise.
14794         * ipa-profile.c (ipa_profile): Likewise.
14796 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14798         PR ipa/58398
14799         * cgraph.c (cgraph_function_body_availability): Check for ifunc
14800         attribute, and don't inline the resolver in this case.
14802 2013-09-17  Teresa Johnson  <tejohnson@google.com>
14804         * coverage.c (get_coverage_counts): Add missing newline.
14806 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14808         PR tree-optimization/58088
14809         * fold-const.c (mask_with_trailing_zeros): New function.
14810         (fold_binary_loc): Make sure we don't recurse infinitely
14811         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14812         Use mask_with_trailing_zeros where appropriate.
14814 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
14816         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14817         of 'prev' var to get better distance estimation.
14819 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14821         * tree-inline.h (struct copy_body_data): Add transform_parameter.
14822         * tree-inline.c (is_parameter_of): New predicate.
14823         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14824         a parameter has been remapped.
14825         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14826         (optimize_inline_calls): Initialize transform_parameter.
14827         (copy_gimple_seq_and_replace_locals): Likewise.
14828         (tree_function_versioning): Likewise.
14829         (maybe_inline_call_in_expr): Likewise.
14831 2013-09-17  Nick Clifton  <nickc@redhat.com>
14833         * config/msp430/msp430-protos.h: Add prototypes for new functions.
14834         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14835         interrupt handlers.
14836         (is_attr_func): New function.
14837         (msp430_is_interrupt_func): New function.
14838         (is_naked_func): New function.
14839         (is_reentrant_func): New function.
14840         (is_critical_func): New function.
14841         (msp430_start_function): Add annotations for function attributes.
14842         (msp430_attr): New function.
14843         (msp430_attribute_table): New.
14844         (msp430_function_section): New function.
14845         (TARGET_ASM_FUNCTION_SECTION): Define.
14846         (msp430_builtin): New enum.
14847         (msp430_init_builtins): New function.
14848         (msp430_builtin_devl): New function.
14849         (msp430_expand_builtin): New function.
14850         (TARGET_INIT_BUILTINS): Define.
14851         (TARGET_EXPAND_BUILTINS): Define.
14852         (TARGET_BUILTIN_DECL): Define.
14853         (msp430_expand_prologue): Add support for naked, interrupt,
14854         critical and reentrant functions.
14855         (msp430_expand_epilogue): Likewise.
14856         (msp430_print_operand): Handle 'O' character.
14857         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14858         NO_TRAMPOLINES.
14859         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14860         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14861         (pushm): Use a 'n' rather than an 'i' constraint.
14862         (msp_return): Add generation of the interrupt return instruction.
14863         (disable_interrupts): New pattern.
14864         (enable_interrupts): New pattern.
14865         (push_intr_state): New pattern.
14866         (pop_intr_state): New pattern.
14867         (bic_SR): New pattern.
14868         (bis_SR): New pattern.
14869         * doc/extend.texi: Document MSP430 function attributes and builtin
14870         functions.
14872 2013-09-17  Richard Biener  <rguenther@suse.de>
14874         PR tree-optimization/58432
14875         * tree-loop-distribution.c (tree_loop_distribution): Also
14876         scan PHIs for outside loop uses and seed a partition from them.
14878 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
14880         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14881         (restructure_reference): Call backtrace_base_for_ref.
14883 2013-09-17  Alan Modra  <amodra@gmail.com>
14885         PR target/57589
14886         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14887         patch.
14889 2013-09-16  DJ Delorie  <dj@redhat.com>
14891         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14892         vregs location for RL78/G10.
14893         (rl78_expand_prologue): Avoid SEL on G10.
14894         (rl78_expand_epilogue): Likewise.
14895         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14896         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14897         __RL78_G10__ when appropriate.
14898         (ASM_SPEC): Pass -mg10 along to the assembler.
14899         * config/rl78/rl78.md (sel_rb): Disable for G10.
14900         * config/rl78/rl78.opt: Add -mg10 option.
14901         * config/rl78/t-rl78: Add -mg10 multilib.
14903 2013-09-16  Xinliang David Li  <davidxl@google.com>
14905         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14906         * omp-low.c (omp_max_vf): Ditto.
14907         (expand_omp_simd): Ditto.
14908         * tree-vectorizer.c (vectorize_loops): Ditto.
14909         (gate_vect_slp): Ditto.
14910         (gate_increase_alignment): Ditto.
14911         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14912         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14913         (gate_tree_vectorize): Name change.
14914         (tree_vectorize): Ditto.
14915         (pass_vectorize::gate): Call new function.
14916         (pass_vectorize::execute): Ditto.
14917         * opts.c: O3 default setting change.
14918         (finish_options): Check new flag.
14919         * doc/invoke.texi: Document new flags.
14920         * common.opt: New flags.
14922 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
14924         * doc/tm.texi.in (Cond Exec Macros): Remove node.
14925         (Condition Code): Don't reference it.
14926         * doc/tm.texi: Regenerate.
14928 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
14930         PR middle-end/58418
14931         * lra-constraints.c (undo_optional_reloads): Consider all optional
14932         reload even if it did not get a hard reg.
14934 2013-09-16  Teresa Johnson  <tejohnson@google.com>
14936         * dumpfile.c (dump_loc): Remove newline emission.
14937         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14938         emission to dump_printf_loc calls where missing.
14939         (vect_mark_for_runtime_alias_test): Ditto.
14940         (vect_analyze_data_ref_dependence): Ditto.
14941         (vect_analyze_data_ref_dependences): Ditto.
14942         (vect_slp_analyze_data_ref_dependence): Ditto.
14943         (vect_slp_analyze_data_ref_dependences): Ditto.
14944         (vect_compute_data_ref_alignment): Ditto.
14945         (vect_update_misalignment_for_peel): Ditto.
14946         (vect_verify_datarefs_alignment): Ditto.
14947         (vector_alignment_reachable_p): Ditto.
14948         (vect_get_data_access_cost): Ditto.
14949         (vect_enhance_data_refs_alignment): Ditto.
14950         (vect_find_same_alignment_drs): Ditto.
14951         (vect_analyze_data_refs_alignment): Ditto.
14952         (vect_analyze_group_access): Ditto.
14953         (vect_analyze_data_ref_access): Ditto.
14954         (vect_analyze_data_ref_accesses): Ditto.
14955         (vect_prune_runtime_alias_test_list): Ditto.
14956         (vect_analyze_data_refs): Ditto.
14957         (vect_create_addr_base_for_vector_ref): Ditto.
14958         (vect_create_data_ref_ptr): Ditto.
14959         (vect_grouped_store_supported): Ditto.
14960         (vect_grouped_load_supported): Ditto.
14961         * value-prof.c (check_counter): Ditto.
14962         (check_ic_target): Ditto.
14963         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14964         (vect_recog_widen_mult_pattern): Ditto.
14965         (vect_recog_widen_sum_pattern): Ditto.
14966         (vect_recog_over_widening_pattern): Ditto.
14967         (vect_recog_widen_shift_pattern): Ditto.
14968         (vect_recog_rotate_pattern): Ditto.
14969         (vect_recog_vector_vector_shift_pattern): Ditto.
14970         (vect_recog_divmod_pattern): Ditto.
14971         (vect_recog_mixed_size_cond_pattern): Ditto.
14972         (vect_recog_bool_pattern): Ditto.
14973         (vect_pattern_recog_1): Ditto.
14974         (vect_pattern_recog): Ditto.
14975         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14976         (vect_is_simple_iv_evolution): Ditto.
14977         (vect_analyze_scalar_cycles_1): Ditto.
14978         (vect_get_loop_niters): Ditto.
14979         (vect_analyze_loop_1): Ditto.
14980         (vect_analyze_loop_form): Ditto.
14981         (vect_analyze_loop_operations): Ditto.
14982         (vect_analyze_loop_2): Ditto.
14983         (vect_analyze_loop): Ditto.
14984         (report_vect_op): Ditto.
14985         (vect_is_slp_reduction): Ditto.
14986         (vect_is_simple_reduction_1): Ditto.
14987         (vect_get_known_peeling_cost): Ditto.
14988         (vect_estimate_min_profitable_iters): Ditto.
14989         (vect_model_reduction_cost): Ditto.
14990         (vect_model_induction_cost): Ditto.
14991         (get_initial_def_for_induction): Ditto.
14992         (vect_create_epilog_for_reduction): Ditto.
14993         (vectorizable_reduction): Ditto.
14994         (vectorizable_induction): Ditto.
14995         (vectorizable_live_operation): Ditto.
14996         (vect_loop_kill_debug_uses): Ditto.
14997         (vect_transform_loop): Ditto.
14998         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14999         (vect_stmt_relevant_p): Ditto.
15000         (process_use): Ditto.
15001         (vect_mark_stmts_to_be_vectorized): Ditto.
15002         (vect_model_simple_cost): Ditto.
15003         (vect_model_promotion_demotion_cost): Ditto.
15004         (vect_model_store_cost): Ditto.
15005         (vect_get_store_cost): Ditto.
15006         (vect_model_load_cost): Ditto.
15007         (vect_get_load_cost): Ditto.
15008         (vect_init_vector_1): Ditto.
15009         (vect_get_vec_def_for_operand): Ditto.
15010         (vect_finish_stmt_generation): Ditto.
15011         (vectorizable_call): Ditto.
15012         (vectorizable_conversion): Ditto.
15013         (vectorizable_assignment): Ditto.
15014         (vectorizable_shift): Ditto.
15015         (vectorizable_operation): Ditto.
15016         (vectorizable_store): Ditto.
15017         (vectorizable_load): Ditto.
15018         (vectorizable_condition): Ditto.
15019         (vect_analyze_stmt): Ditto.
15020         (vect_transform_stmt): Ditto.
15021         (vect_is_simple_use): Ditto.
15022         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
15023         (vect_can_advance_ivs_p): Ditto.
15024         (vect_update_ivs_after_vectorizer): Ditto.
15025         (vect_do_peeling_for_loop_bound): Ditto.
15026         (vect_gen_niters_for_prolog_loop): Ditto.
15027         (vect_update_inits_of_drs): Ditto.
15028         (vect_create_cond_for_alias_checks): Ditto.
15029         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
15030         (vect_build_slp_tree_1): Ditto.
15031         (vect_supported_load_permutation_p): Ditto.
15032         (vect_analyze_slp_instance): Ditto.
15033         (vect_analyze_slp): Ditto.
15034         (vect_make_slp_decision): Ditto.
15035         (vect_detect_hybrid_slp): Ditto.
15036         (vect_bb_vectorization_profitable_p): Ditto.
15037         (vect_slp_analyze_bb_1): Ditto.
15038         (vect_update_slp_costs_according_to_vf): Ditto.
15039         (vect_get_mask_element): Ditto.
15040         (vect_transform_slp_perm_load): Ditto.
15041         (vect_schedule_slp_instance): Ditto.
15042         (vect_schedule_slp): Ditto.
15043         (vect_slp_transform_bb): Ditto.
15044         * profile.c (read_profile_edge_counts): Ditto.
15045         (compute_branch_probabilities): Ditto.
15046         * coverage.c (get_coverage_counts): Ditto.
15048 2013-09-16  Diego Novillo  <dnovillo@google.com>
15050         * tree-core.h: Add missing comment lines from refactoring of tree.h.
15052 2013-09-16  Jan Hubicka  <jh@suse.cz>
15054         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
15055         abstract functions; for static functions check the presence of body.
15057 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
15059         * config/aarch64/aarch64-simd-builtins.def (fma): New.
15060         * config/aarch64/aarch64-simd.md
15061         (aarch64_mla_elt<mode>): New.
15062         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
15063         (aarch64_mls_elt<mode>): Likewise.
15064         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
15065         (aarch64_fma4_elt<mode>): Likewise.
15066         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
15067         (aarch64_fma4_elt_to_128v2df): Likewise.
15068         (aarch64_fma4_elt_to_64df): Likewise.
15069         (fnma<mode>4): Likewise.
15070         (aarch64_fnma4_elt<mode>): Likewise.
15071         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
15072         (aarch64_fnma4_elt_to_128v2df): Likewise.
15073         (aarch64_fnma4_elt_to_64df): Likewise.
15074         * config/aarch64/iterators.md (VDQSF): New.
15075         * config/aarch64/arm_neon.h
15076         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
15077         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
15079 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
15081         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
15082         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
15083         (aarch64_mul3_elt_to_128df): Likewise.
15084         (aarch64_mul3_elt_to_64v2df): Likewise.
15085         * config/aarch64/iterators.md (VEL): Also handle DFmode.
15086         (VMUL): New.
15087         (VMUL_CHANGE_NLANES) Likewise.
15088         (h_con): Likewise.
15089         (f): Likewise.
15090         * config/aarch64/arm_neon.h
15091         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
15093 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
15095         * config/aarch64/arm_neon.h
15096         (vcvtx_high_f32_f64): Fix parameters.
15098 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15099             Uros Bizjak  <ubizjak@gmail.com>
15101         * config/alpha.c: Include tree-ssanames.h.
15103 2013-09-16  Richard Biener  <rguenther@suse.de>
15105         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
15106         (dot_rdg_1): Handle control_dd.
15107         (create_edge_for_control_dependence): New function.
15108         (create_rdg_edges): Add control dependences if asked for.
15109         (build_rdg): Likewise.
15110         (generate_loops_for_partition): If there are not necessary
15111         control stmts remove all their dependencies.
15112         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
15113         (distribute_loop): Pass on control dependences.
15114         (tree_loop_distribution): Compute control dependences and remove
15115         restriction on number of loop nodes.
15117 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
15119         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
15120         for internal calls.
15122 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
15124         * cse.c (try_const_anchors): Punt on CC modes.
15126 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15128         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
15130 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
15132         PR target/58382
15133         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
15134         calls to word_mode.
15136 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
15138         PR target/48094
15139         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
15140         seen.
15141         (darwin_objc1_section): Likewise.
15142         (darwin_file_end): Emit Image Info section when required.
15144 2013-09-14  Jan Hubicka  <jh@suse.cz>
15146         * tree-into-ssa.c (gate_into_ssa): New.
15147         (pass_data_build_ssa): Use it.
15148         * cgraph.h (expand_thunk): Update prototype.
15149         * cgraphunit.c (analyze_function): Expand thunks early.
15150         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
15151         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
15152         set lowered flag; do not add new function.
15153         (assemble_thunks_and_aliases): Update.
15154         * tree-ssa.c (gate_init_datastructures): New gate.
15155         (pass_data_init_datastructures): Use it.
15157 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
15159         PR target/58269
15160         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
15161         xmm register set described in the psABI.
15163 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
15165         * dwarf2out.c (should_emit_struct_debug): Add check
15166         for type_decl variable is not NULL.
15168 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
15170         * config.gcc: Use new winnt-c.c target hooks
15171         * config/t-winnt: New file
15172         * config/winnt-c.c: New file
15173         * doc/tm.texi.in: Document new hook
15174         * doc/tm.texi: Regenerated
15176 2013-09-13  Jan Hubicka  <jh@suse.cz>
15178         PR middle-end/58094
15179         * ipa-inline.c (check_callers): New function.
15180         (check_caller_edge): Remove.
15181         (want_inline_function_to_all_callers_p): Also permit alises that are
15182         called dirrectly.
15183         (inline_to_all_callers): Terminate the walk when devirtualization
15184         introduce new calls.
15186 2013-09-13  Jan Hubicka  <jh@suse.cz>
15188         * ipa-inline-analysis.c (struct growth_data): Add node.
15189         (do_estimate_growth_1): Fix detection of recursion.
15191 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
15193         PR tree-optimization/58392
15194         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
15195         to avoid shadowing of outer loop variable.  If
15196         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
15197         replace_by_duplicate_decl simduid of loops that have it set and
15198         set dest_cfun->has_simduid_loops and/or
15199         dest_cfun->has_force_vect_loops.
15200         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
15201         instead of maybe_lookup_decl.
15202         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
15203         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
15204         call.  Copy over force_vect and copy and remap simduid.  Set
15205         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
15206         (copy_cfg_body): Remove blocks_to_copy argument.  Use
15207         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
15208         caller.  Don't set cfun->has_simduid_loops and/or
15209         cfun->has_force_vect_loops here.
15210         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
15211         caller.
15212         (expand_call_inline, tree_function_versioning): Adjust copy_body
15213         callers.
15215 2013-09-13  Martin Jambor  <mjambor@suse.cz>
15217         PR bootstrap/58388
15218         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
15219         the assert if the edge was a speculative one.
15221 2013-09-13  Richard Biener  <rguenther@suse.de>
15223         * tree-data-ref.h (known_dependences_p): Move here ...
15224         * tree-loop-distribution.c (known_dependences_p): ... from here.
15225         (dump_rdg_component, debug_rdg_component): Remove.
15226         (dump_rdg): Adjust.
15227         (generate_loops_for_partition): Use gimple_uid instead of
15228         relying on matching stmt visit order.
15229         (rdg_build_partitions): Take starting stmt vector.
15230         (ldist_gen): Merge into ...
15231         (distribute_loop): ... this function.  Do not compute starting
15232         vertices vector.
15233         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
15235 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15237         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
15238         Set type attribute correctly. Set predicable_short_it attribute.
15239         (cmpsi_shiftsi): Remove %? from output template.
15241 2013-09-13  Richard Biener  <rguenther@suse.de>
15243         * tree-loop-distribution.c (struct rdg_component,
15244         rdg_defs_used_in_other_loops_p, free_rdg_components,
15245         rdg_build_components): Remove.
15246         (stmts_from_loop): Do not record virtual PHIs.
15247         (generate_loops_for_partition): Skip virtual PHIs.
15248         (build_rdg_partition_for_component): Rename to ...
15249         (build_rdg_partition_for_vertex): ... this and adjust.
15250         (rdg_build_partitions): Take a vector of starting vertices
15251         instead of components.  Remove unnecessary leftover handling.
15252         (ldist_gen): Do not build components or record other stores.
15253         (distribute_loop): Do not distribute loops containing stmts
15254         with side-effects.
15256 2013-09-13  Christian Bruel  <christian.bruel@st.com>
15258         PR target/58314
15259         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
15261 2013-09-13  Kai Tietz  <ktietz@redhat.com>
15263         * config.gcc: Separate cases for mingw and cygwin targets,
15264         and add 64-bit cygwin target case.
15266         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
15267         dll-export inline-functions.
15268         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15270 2013-09-13  Jeff Law  <law@redhat.com>
15272         PR middle-end/58387
15273         Revert:
15274         2013-09-06  Jeff Law  <law@redhat.com>
15276         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15277         edge implied equivalences into successor phis.
15279 2013-09-12  DJ Delorie  <dj@redhat.com>
15281         * config/rl78/rl78-virt.md: Change from | to \; for asm line
15282         separators.
15284 2013-09-12  Brooks Moses  <bmoses@google.com>
15286         PR driver/42955
15287         * Makefile.in: Do not install driver binaries in $(target)/bin.
15289 2013-09-12  DJ Delorie  <dj@redhat.com>
15291         * config/rl78/rl78.opt (mrelax): New.
15292         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15293         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15295         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15296         between SP and FP.
15297         (rl78_expand_epilogue): Likewise.
15299 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
15301         PR middle-end/58335
15302         * lra-eliminations.c (remove_reg_equal_offset_note): New.
15303         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15304         pointer elimination with using remove_reg_equal_offset_note.
15306 2013-09-12  DJ Delorie  <dj@redhat.com>
15308         * config/msp430/: New port.
15309         * config.gcc (msp430): Added.
15310         * doc/invoke.texi: Document MSP430 options.
15311         * doc/install.texi: Document msp430-elf
15312         * doc/md.texi: Document msp430-elf
15313         * doc/contrib.texi: Document msp430-elf
15315         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15316         PSImode.
15318 2013-09-12  Martin Jambor  <mjambor@suse.cz>
15320         PR ipa/58389
15321         * ipa-prop.c (remove_described_reference): Give up if the edge in the
15322         reference descriptor is NULL.
15323         (ipa_edge_removal_hook): If owning a reference descriptor, set its
15324         edge to NULL.
15326 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
15328         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15329         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15330         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15331         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15332         make_temp_ssa_name): move to tree-ssanames.h
15333         * tree-ssa-alias.h: Move prototype.
15334         * tree-ssa.h: Include tree-ssanames.h.
15335         * tree-ssanames.c (FREE_SSANAMES): Move to here.
15336         * tree-ssanames.h: New.  Move items from tree-flow*.h
15337         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15339 2013-09-12  Richard Biener  <rguenther@suse.de>
15341         PR tree-optimization/58404
15342         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15343         propagate non-invariant addresses into dereferences wrapped
15344         in component references.
15346 2013-09-12  Richard Biener  <rguenther@suse.de>
15348         PR tree-optimization/58402
15349         * passes.def: Move pass_late_warn_uninitialized later.
15351 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
15353         * tree-ssa.h: New.  Move content from tree-flow.h and
15354         tree-flow-inline.h.
15355         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15356         Move prototypes belonging to tree-ssa.c.
15357         * tree-flow-inline.h (redirect_edge_var_map_def,
15358         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15359         tree-ssa.h.
15360         * gimple.h: Adjust prototypes.
15361         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15362         to...
15363         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15364         * tree.h: Move prototype to tree-ssa.h.
15365         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15366         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15367         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15368         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15369         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15370         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15371         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15372         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15373         graphite-blocking.c, graphite-clast-to-gimple.c,
15374         graphite-dependences.c, graphite-interchange.c,
15375         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15376         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15377         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15378         ipa-reference.c, ipa-split.c, ipa-utils.c,
15379         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15380         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15381         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15382         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15383         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15384         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15385         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15386         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15387         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15388         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15389         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15390         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15391         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15392         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15393         value-prof.c, var-tracking.c,
15394         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15396 2013-09-12  Richard Biener  <rguenther@suse.de>
15398         PR tree-optimization/58396
15399         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15400         (build_rdg): Take a loop-nest parameter, fix memleaks.
15401         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15403 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
15405         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15406         for SLM.
15408 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
15410         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15411         The FMA instruction names should have a 'v' prefix.
15413 2013-09-12  Richard Biener  <rguenther@suse.de>
15415         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15416         (dot_rdg): Use popen instead of system in optional code.
15417         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15418         (already_processed_vertex_p): Adjust.
15419         (has_anti_or_output_dependence, predecessor_has_mem_write,
15420         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15421         rdg_flag_uses): Remove.
15422         (rdg_flag_vertex): Simplify.
15423         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15424         remove recursion.
15425         (build_rdg_partition_for_component): Process the first vertex
15426         of a component only.
15427         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15429 2013-09-12  Alan Modra  <amodra@gmail.com>
15431         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15433 2013-09-11  DJ Delorie  <dj@redhat.com>
15434             Nick Clifton  <nickc@redhat.com>
15436         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15437         (rl78_stack_based_mem): New.
15438         * config/rl78/constraints.md (Iv08): New.
15439         (Iv16): New.
15440         (Iv24): New.
15441         (Is09): New.
15442         (Is17): New.
15443         (Is25): New.
15444         (ISsi): New.
15445         (IShi): New.
15446         (ISqi): New.
15447         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15448         (movhi): Likewise.
15449         (movsi): Change from expand to insn-and-split.
15450         (ashrsi3): Clobber AX.
15451         (lshrsi3): New.
15452         (ashlsi3): New.
15453         (cbranchsi4): New.
15454         * config/rl78/rl78.md (CC_REG): Fix.
15455         (addsi3): Allow memory and immediate operands.
15456         (addsi3_internal): Split into...
15457         (addsi3_internal_virt): ...new, and ...
15458         (addsi3_internal_real): ...new.
15459         (subsi): New.
15460         (subsi3_internal_virt): New.
15461         (subsi3_internal_real): New.
15462         (mulsi3): Add memory operand.
15463         (mulsi3_rl78): Likewise.
15464         (mulsi3_g13): Likewise.
15465         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15466         (cbranchqi4_real): Add more constraint options.
15467         (cbranchhi4_real): Expand pattern.
15468         (cbranchhi4_real_signed): New.
15469         (cbranchhi4_real_inverted): New.
15470         (cbranchsi4_real_lt): New.
15471         (cbranchsi4_real_ge): New.
15472         (cbranchsi4_real_signed): New.
15473         (cbranchsi4_real): New.
15474         (peephole2): New.
15475         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15476         constant shifts.
15477         (lshrsi3_virt): Likewise.
15478         (ashlsi3_virt): Likewise.
15479         (cbranchqi4_virt_signed): New.
15480         (cbranchhi4_virt_signed): New.
15481         (cbranchsi4_virt): New.
15482         * config/rl78/rl78.c: Whitespace fixes throughout.
15483         (move_elim_pass): New.
15484         (pass_data_rl78_move_elim): New.
15485         (pass_rl78_move_elim): New.
15486         (make_pass_rl78_move_elim): New.
15487         (rl78_devirt_info): Run devirt earlier.
15488         (rl78_move_elim_info): New.
15489         (rl78_asm_file_start): Register it.
15490         (rl78_split_movsi): New.
15491         (rl78_as_legitimate_address): Allow virtual base registers when
15492         appropriate.
15493         (rl78_addr_space_convert): Remove spurious debug stuff.
15494         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15495         (rl78_print_operand): More cases for not printing '#'.
15496         (rl78_expand_compare): Remove most of the logic.
15497         (content_memory): New.
15498         (clear_content_memory): New.
15499         (get_content_index): New.
15500         (get_content_name): New.
15501         (display_content_memory): New.
15502         (update_content): New.
15503         (record_content): New.
15504         (already_contains): New.
15505         (insn_ok_now): Re-recog insns with virtual registers.
15506         (add_postponed_content_update): New.
15507         (process_postponed_content_update): New.
15508         (gen_and_emit_move): New.
15509         (transcode_memory_rtx): Record new location content.
15510         Use gen_and_emit_move.
15511         (force_into_acc): New.
15512         (move_to_acc): Use gen_and_emit_move.
15513         (move_from_acc): Likewise.
15514         (move_acc_to_reg): Likewise.
15515         (move_to_x): Likewise.
15516         (move_to_hl): Likewise.
15517         (move_to_de): Likewise.
15518         (rl78_alloc_physical_registers_op1): Record location content.
15519         (has_constraint): New.
15520         (rl78_alloc_physical_registers_op2): Record location content.
15521         Optimize use of HL.
15522         (rl78_alloc_physical_registers_ro1): Likewise.
15523         (rl78_alloc_physical_registers_cmp): Likewise.
15524         (rl78_alloc_physical_registers_umul): Likewise.
15525         (rl78_alloc_address_registers_macax): New.
15526         (rl78_alloc_physical_registers): Initialize and set location
15527         content memory as needed.
15528         (rl78_reorg): Make sure split2 is called.
15529         (rl78_rtx_costs): New.
15531 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
15533         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15534         for (not (neg ...)) and (neg (not ...)) cases.
15536 2013-09-11  Richard Biener  <rguenther@suse.de>
15538         PR middle-end/58377
15539         * passes.def: Split critical edges before late uninit warning passes.
15540         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15542 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
15544         PR tree-optimization/58385
15545         * fold-const.c (build_range_check): If both low and high are NULL,
15546         use omit_one_operand_loc to preserve exp side-effects.
15548 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15550         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15552 2013-09-11  Richard Biener  <rguenther@suse.de>
15554         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15555         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15556         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15557         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15558         stmts_from_loop, known_dependences_p, build_empty_rdg,
15559         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15560         * tree-loop-distribution.c: ... here.
15561         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15562         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15563         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15564         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15565         * tree-loop-distribution.c: ... here.
15566         * tree-loop-distribution.c: Include gimple-pretty-print.h.
15567         (struct partition_s): Add loops member.
15568         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15569         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15570         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15572 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15573             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15574             Sergey Lega  <sergey.s.lega@intel.com>
15575             Anna Tikhonova  <anna.tikhonova@intel.com>
15576             Ilya Tocar  <ilya.tocar@intel.com>
15577             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15578             Ilya Verbin  <ilya.verbin@intel.com>
15579             Kirill Yukhin  <kirill.yukhin@intel.com>
15580             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15582         * config/i386/constraints.md (k): New.
15583         (Yk): Ditto.
15584         * config/i386/i386.c (const regclass_map): Add new mask registers.
15585         (dbx_register_map): Ditto.
15586         (dbx64_register_map): Ditto.
15587         (svr4_dbx_register_map): Ditto.
15588         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15589         disabled.
15590         (ix86_preferred_reload_class): Disable constants for mask registers.
15591         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15592         (ix86_hard_regno_mode_ok): Support new mask registers.
15593         (x86_order_regs_for_local_alloc): Ditto.
15594         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15595         (FIXED_REGISTERS): Add new mask registers.
15596         (CALL_USED_REGISTERS): Ditto.
15597         (REG_ALLOC_ORDER): Ditto.
15598         (VALID_MASK_REG_MODE): New.
15599         (FIRST_MASK_REG): Ditto.
15600         (LAST_MASK_REG): Ditto.
15601         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15602         (MAYBE_MASK_CLASS_P): New.
15603         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15604         (REG_CLASS_CONTENTS): Ditto.
15605         (MASK_REGNO_P): New.
15606         (ANY_MASK_REG_P): Ditto.
15607         (HI_REGISTER_NAMES): Add new mask registers.
15608         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15609         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15610         mask registers.
15611         (attribute "type"): Add mskmov, msklog.
15612         (attribute "length_immediate"): Support them.
15613         (attribute "memory"): Ditto.
15614         (attribute "prefix_0f"): Ditto.
15615         (*movhi_internal): Support new mask registers.
15616         (*movqi_internal): Ditto.
15617         (define_split): Split out clobber pattern is a logic
15618         insn on mask registers.
15619         (*k<logic><mode>): New.
15620         (*andhi_1): Extend to support mask regs.
15621         (*andqi_1): Extend to support mask regs.
15622         (kandn<mode>): New.
15623         (define_split): Split and-not to and and not if operands
15624         are not mask regs.
15625         (*<code><mode>_1): Separate HI mode to new pattern...
15626         (*<code>hi_1): This.
15627         (*<code>qi_1): Extend to support mask regs.
15628         (kxnor<mode>): New.
15629         (kortestzhi): Ditto.
15630         (kortestchi): Ditto.
15631         (kunpckhi): Ditto.
15632         (*one_cmpl<mode>2_1): Remove HImode and handle it...
15633         (*one_cmplhi2_1): ...Here, now with mask registers support.
15634         (*one_cmplqi2_1): Support new mask registers.
15635         (HI/QImode arithmetics splitter): Don't split if mask registers
15636         are used.
15637         (HI/QImode not splitter): Ditto.
15638         * config/i386/predicated.md (mask_reg_operand): New.
15639         (general_reg_operand): Ditto.
15641 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15643         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15644         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15646 2013-09-10  Jeff Law  <law@redhat.com>
15648         PR tree-optimization/58380
15649         * tree-ssa-threadupdate.c (thread_block): Recognize another case
15650         of threading through a buried loop header.
15652         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15653         return value for single successor case.
15655 2013-09-10  Jan Hubicka  <jh@suse.cz>
15657         * ipa-devirt.c (ipa_devirt): Enable with LTO.
15659 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
15661         PR target/58361
15662         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15663         support conditional execution.
15664         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15666 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
15668         * lra.c (lra): Clear lra_optional_reload_pseudos before every
15669         constraint pass.
15670         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15671         Check destination too to check move insn.
15672         (undo_optional_reloads): Add check that the original peudo did not
15673         changed its allocation and the optional reload was inherited on last
15674         inheritance pass.  Break loop after deciding to keep optional reload.
15675         (lra_undo_inheritance): Add check that inherited pseudo still in
15676         memory.
15678 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
15680         * config/aarch64/aarch64.md (generic_sched): New.
15681         * config/aarch64/aarch64-generic.md (load): Make conditional
15682         on generic_sched attribute.
15683         (nonload): Likewise.
15685 2013-09-10  Jan Hubicka  <jh@suse.cz>
15687         * lto-cgraph.c: Include ipa-utils.h.
15688         (compute_ltrans_boundary): Also add possible targets into the boundary.
15690 2013-09-10  Jan Hubicka  <jh@suse.cz>
15692         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15693         VAR_DECL of vtable rather than full expression.
15695 2013-09-10  Jan Hubicka  <jh@suse.cz>
15696             Paolo Carlini  <paolo.carlini@oracle.com>
15698         * cgraphunit.c (analyze_functions): Save input_location, set it
15699         to UNKNOWN_LOCATION and restore it at the end.
15701 2013-09-10  Martin Jambor  <mjambor@suse.cz>
15703         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15704         represented by a thunk.
15706 2013-09-10  Jeff Law  <law@redhat.com>
15708         PR tree-optimization/58343
15709         * tree-ssa-threadupdate.c (thread_block): Identify and disable
15710         jump threading requests through loop headers buried in the middle
15711         of a jump threading path.
15713         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15714         in return value/type.
15716 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
15718         PR rtl-optimization/58365
15719         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15720         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15721         it differs.
15723 2013-09-10  Richard Biener  <rguenther@suse.de>
15725         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15726         * tree-data-ref.c (create_rdg_vertices): Collect all data
15727         references, signal failure to the caller, use data-ref API.
15728         (build_rdg): Compute data references only once.  Maintain lifetime
15729         of data references and data dependences from within RDG.
15730         (free_rdg): Free dependence relations.
15731         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15732         inventing extra dependences.
15733         (distribute_loop): Update for RDG API changes.
15735 2013-09-10  Kai Tietz  <ktietz@redhat.com>
15737         * doc/invoke.texi (fms-extensions): Document changed
15738         behavior for ms-abi targets.
15739         * config/i386/i386.c (ix86_option_override_internal):
15740         Set default value of option -fms-extension for ms-abi targets.
15742 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15744         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15746 2013-09-10  Alan Modra  <amodra@gmail.com>
15748         PR target/58330
15749         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15751 2013-09-10  Alan Modra  <amodra@gmail.com>
15753         * config/rs6000/predicates.md (add_cint_operand): New.
15754         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15755         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15756         using add_cint_operand.
15757         (largetoc_high_plus_aix): Likewise.
15759 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
15761         PR tree-optimization/58364
15762         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15763         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15764         the current range can't be an unconditional true or false.
15766 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
15768         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15770 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
15772         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15774 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15776         PR c++/43452
15777         * doc/invoke.texi (-Wdelete-incomplete): Document it.
15779 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
15781         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15782         NO_REGS for immediate that can't be moved directly into FP_REGS.
15784 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15786         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15787         comparison with negated operand.
15788         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15789         RTL form.
15791 2013-09-09  Richard Biener  <rguenther@suse.de>
15793         PR middle-end/58326
15794         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15795         of a subloop record all its block as affecting loop-closed SSA form.
15797 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15799         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15800         of an rtx/bitpos pair.
15801         (store_fixed_bit_field): Update accordingly.
15803 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15805         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15806         GEN_INT.
15807         * builtins.c (expand_errno_check): Likewise.
15808         * dwarf2cfi.c (init_return_column_size): Likewise.
15809         * except.c (sjlj_mark_call_sites): Likewise.
15810         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15811         * lra-constraints.c (emit_inc): Likewise.
15812         * ree.c (combine_set_extension): Likewise.
15813         * regmove.c (fixup_match_2): Likewise.
15814         * reload1.c (inc_for_reload): Likewise.
15816 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15818         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15819         (force_to_mode, simplify_shift_const_1, simplify_comparison):
15820         Use gen_int_mode with the mode of the associated simplify_* call.
15821         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15822         * expmed.c (expand_shift_1): Likewise.
15823         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15824         * loop-iv.c (iv_number_of_iterations): Likewise.
15825         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15826         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15828 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15830         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15831         of the associated expand_* call.
15832         (asan_emit_stack_protection): Likewise.
15833         * builtins.c (round_trampoline_addr): Likewise.
15834         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15835         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15836         (emit_store_flag): Likewise.
15837         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15838         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15839         Likewise.
15840         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15841         * ifcvt.c (noce_try_store_flag_constants): Likewise.
15842         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15843         * modulo-sched.c (generate_prolog_epilog): Likewise.
15844         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15845         (expand_ctz, expand_ffs, expand_unop): Likewise.
15847 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15849         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15850         of the associated gen_rtx_* call.
15851         * caller-save.c (init_caller_save): Likewise.
15852         * combine.c (find_split_point, make_extraction): Likewise.
15853         (make_compound_operation): Likewise.
15854         * dwarf2out.c (mem_loc_descriptor): Likewise.
15855         * explow.c (plus_constant, probe_stack_range): Likewise.
15856         * expmed.c (expand_mult_const): Likewise.
15857         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15858         * reload1.c (init_reload): Likewise.
15859         * valtrack.c (cleanup_auto_inc_dec): Likewise.
15860         * var-tracking.c (adjust_mems): Likewise.
15861         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15862         rather than gen_rtx_fmt_ee.
15864 2013-09-09  Jan Hubicka  <jh@suse.cz>
15866         PR middle-end/58294
15867         * value-prof.c (gimple_ic): Copy also abnormal edges.
15869 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15871         * asan.c (asan_shadow_cst): Use gen_int_mode.
15873 2013-09-08  Jan Hubicka  <jh@suse.cz>
15875         * ipa-profile.c: Add toplevel comment.
15876         (ipa_propagate_frequency_1): Be more conservative when profile is read.
15877         (contains_hot_call_p): New function.
15878         (ipa_propagate_frequency): Set frequencies based on counts when
15879         profile is read.
15880         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15881         profile; do not tamper with profile after inlining if it is read.
15883 2013-09-08  Jan Hubicka  <jh@suse.cz>
15885         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15886         speculative edges.
15888 2013-09-08  Jan Hubicka  <jh@suse.cz>
15890         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15891         summary generation.
15893 2013-09-08  Jeff Law  <law@redhat.com>
15895         PR bootstrap/58340
15896         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15897         of 'found'.
15899 2013-09-08  Andi Kleen  <ak@linux.intel.com>
15901         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15903 2013-09-08  Jan Hubicka  <jh@suse.cz>
15905         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15907 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
15909         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15910         for non-debug insns.
15911         * lra.c (new_insn_reg): Take the containing insn as a parameter.
15912         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15913         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15914         accordingly.
15916 2013-09-08  Jan Hubicka  <jh@suse.cz>
15918         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15919         targets and devirtualize to BUILT_IN_UNREACHABLE.
15920         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15921         * ipa.c (walk_polymorphic_call_targets): New function.
15922         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15923         functions; use the new timevar.
15924         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15925         was removed from the program.
15926         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15927         not consider it in the walk when its vtable is dead.
15928         (possible_polymorphic_call_targets_1): Pass anonymous flag to
15929         record_binfo.
15930         (devirt_variable_node_removal_hook): New function.
15931         (possible_polymorphic_call_targets): Also register
15932         devirt_variable_node_removal_hook.
15933         (ipa_devirt): Do not do non-speculative devirtualization.
15934         (gate_ipa_devirt): One execute if devirtualizing speculatively.
15936 2013-09-08  Jan Hubicka  <jh@suse.cz>
15938         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15939         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15940         varpool_remove_variable_insertion_hook): Declare.
15941         * varpool.c (varpool_node_hook_list): New structure.
15942         (first_varpool_node_removal_hook,
15943         first_varpool_variable_insertion_hook): New variables.
15944         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15945         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15946         varpool_remove_variable_insertion_hook,
15947         varpool_call_variable_insertion_hooks): New functions.
15948         (varpool_remove_node): Use it.
15950 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
15952         PR c++/54941
15953         * diagnostic.c (diagnostic_build_prefix): When s.file is
15954         "<built-in>" don't output line and column numbers.
15956 2013-09-06  Jan Hubicka  <jh@suse.cz>
15958         * cgraphunit.c (expand_thunk): Get body before touching arguments.
15959         * lto-streamer-out.c: Stream thunks, too.
15960         * lto-streamer-in.c (input_function): Pop cfun here
15961         (lto_read_body): Instead of here.
15963 2013-09-06  Caroline Tice  <cmtice@google.com>
15965         * doc/install.texi: Add documentation for the --enable-vtable-verify
15966         and the --disable-libvtv configure options.
15968 2013-09-06  Jeff Law  <law@redhat.com>
15970         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15971         edge implied equivalences into successor phis.
15973 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
15975         * resource.c (mark_referenced_resources): Handle COND_EXEC.
15977 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
15979         * resource.c (mark_target_live_regs): Compute resources taking
15980         into account if a call is predicated or not.
15982 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15984         * toplev.c (output_stack_usage): Be prepared for suffixes created by
15985         the compiler in the function names.
15987 2013-09-06  Jan Hubicka  <jh@suse.cz>
15989         PR middle-end/58094
15990         * ipa-inline.c (has_caller_p): New function.
15991         (want_inline_function_to_all_callers_p): Use it.
15992         (sum_callers, inline_to_all_callers): Break out from ...
15993         (ipa_inline): ... here.
15995 2013-09-06  Jan Hubicka  <jh@suse.cz>
15997         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15998         only when AVX is enabled.
16000 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16002         * config/aarch64/aarch64.md
16003         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
16004         is fpsimd_<load/store>2.
16005         (load_pair<mode>): Likewise.
16006         (store_pair<mode>): Likewise.
16008 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16010         * config/arm/types.md (type): Add "mrs" type.
16011         * config/aarch64/aarch64.md
16012         (aarch64_load_tp_hard): Make type "mrs".
16013         * config/arm/arm.md
16014         (load_tp_hard): Make type "mrs".
16015         * config/arm/cortex-a15.md: Update with new attributes.
16016         * config/arm/cortex-a5.md: Update with new attributes.
16017         * config/arm/cortex-a53.md: Update with new attributes.
16018         * config/arm/cortex-a7.md: Update with new attributes.
16019         * config/arm/cortex-a8.md: Update with new attributes.
16020         * config/arm/cortex-a9.md: Update with new attributes.
16021         * config/arm/cortex-m4.md: Update with new attributes.
16022         * config/arm/cortex-r4.md: Update with new attributes.
16023         * config/arm/fa526.md: Update with new attributes.
16024         * config/arm/fa606te.md: Update with new attributes.
16025         * config/arm/fa626te.md: Update with new attributes.
16026         * config/arm/fa726te.md: Update with new attributes.
16028 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16030         * config/aarch64/aarch64.md
16031         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
16032         (*movtf_aarch64): Likewise.
16033         * config/arm/arm.md
16034         (thumb1_movdi_insn): Use "multiple" for type where more than one
16035         instruction is used for a move.
16036         (*arm32_movhf): Likewise.
16037         (*thumb_movdf_insn): Likewise.
16039 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16041         * config/arm/types.md (type): Rename fcpys to fmov.
16042         * config/arm/vfp.md
16043         (*arm_movsi_vfp): Rename type fcpys as fmov.
16044         (*thumb2_movsi_vfp): Likewise
16045         (*movhf_vfp_neon): Likewise
16046         (*movhf_vfp): Likewise
16047         (*movsf_vfp): Likewise
16048         (*thumb2_movsf_vfp): Likewise
16049         (*movsfcc_vfp): Likewise
16050         (*thumb2_movsfcc_vfp): Likewise
16051         * config/aarch64/aarch64-simd.md
16052         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
16053         * config/aarch64/aarch64.md
16054         (*movsi_aarch64): Replace type mov_reg with fmovs.
16055         (*movdi_aarch64): Likewise
16056         (*movsf_aarch64): Likewise
16057         (*movdf_aarch64): Likewise
16058         * config/arm/arm.c
16059         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
16060         * config/arm/iwmmxt.md
16061         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
16062         * config/arm/arm1020e.md: Update with new attributes.
16063         * config/arm/cortex-a15-neon.md: Update with new attributes.
16064         * config/arm/cortex-a5.md: Update with new attributes.
16065         * config/arm/cortex-a53.md: Update with new attributes.
16066         * config/arm/cortex-a7.md: Update with new attributes.
16067         * config/arm/cortex-a8-neon.md: Update with new attributes.
16068         * config/arm/cortex-a9.md: Update with new attributes.
16069         * config/arm/cortex-m4-fpu.md: Update with new attributes.
16070         * config/arm/cortex-r4f.md: Update with new attributes.
16071         * config/arm/marvell-pj4.md: Update with new attributes.
16072         * config/arm/vfp11.md: Update with new attributes.
16074 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16076         * config/aarch64/aarch64.md
16077         (*madd<mode>): Fix type attribute.
16078         (*maddsi_uxtw): Likewise.
16079         (*msub<mode>): Likewise.
16080         (*msubsi_uxtw): Likewise.
16081         (<su_optab>maddsidi4): Likewise.
16082         (<su_optab>msubsidi4): Likewise.
16084 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16086         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
16087         * config/arm/arm.md (core_cycles): Remove fdiv.
16088         * config/arm/vfp.md:
16089         (*sqrtsf2_vfp): Update for attribute changes.
16090         (*sqrtdf2_vfp): Likewise.
16091         * config/aarch64/aarch64.md:
16092         (sqrt<mode>2): Update for attribute changes.
16093         * config/arm/arm1020e.md: Update with new attributes.
16094         * config/arm/cortex-a15-neon.md: Update with new attributes.
16095         * config/arm/cortex-a5.md: Update with new attributes.
16096         * config/arm/cortex-a53.md: Update with new attributes.
16097         * config/arm/cortex-a7.md: Update with new attributes.
16098         * config/arm/cortex-a8-neon.md: Update with new attributes.
16099         * config/arm/cortex-a9.md: Update with new attributes.
16100         * config/arm/cortex-m4-fpu.md: Update with new attributes.
16101         * config/arm/cortex-r4f.md: Update with new attributes.
16102         * config/arm/marvell-pj4.md: Update with new attributes.
16103         * config/arm/vfp11.md: Update with new attributes.
16105 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16107         * config/arm/types.md
16108         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
16109         * config/aarch64/aarch64.md
16110         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
16111         new attributes.
16112         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16113         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
16114         (float<GPI:mode><GPF:mode>2): Likewise.
16115         * config/arm/vfp.md
16116         (*truncsisf2_vfp): Update with new attributes.
16117         (*truncsidf2_vfp): Likewise.
16118         (fixuns_truncsfsi2): Likewise.
16119         (fixuns_truncdfsi2): Likewise.
16120         (*floatsisf2_vfp): Likewise.
16121         (*floatsidf2_vfp): Likewise.
16122         (floatunssisf2): Likewise.
16123         (floatunssidf2): Likewise.
16124         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
16125         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
16126         * config/arm/arm1020e.md: Update with new attributes.
16127         * config/arm/cortex-a15-neon.md: Update with new attributes.
16128         * config/arm/cortex-a5.md: Update with new attributes.
16129         * config/arm/cortex-a53.md: Update with new attributes.
16130         * config/arm/cortex-a7.md: Update with new attributes.
16131         * config/arm/cortex-a8-neon.md: Update with new attributes.
16132         * config/arm/cortex-a9.md: Update with new attributes.
16133         * config/arm/cortex-m4-fpu.md: Update with new attributes.
16134         * config/arm/cortex-r4f.md: Update with new attributes.
16135         * config/arm/marvell-pj4.md: Update with new attributes.
16136         * config/arm/vfp11.md: Update with new attributes.
16138 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16140         * config/aarch64/arm_neon.h
16141         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
16142         (vqtbx<1,2,3,4><q>_s8): Likewise.
16144 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16146         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
16147         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
16148         (add<mode>3): Add type attribute.
16149         (add<mode>3): Likewise.
16150         (usadd<mode>3): Likewise.
16151         (ssadd<mode>3): Likewise.
16152         (sub<mode>3): Likewise.
16153         (sub<mode>3): Likewise.
16154         (ussub<mode>3): Likewise.
16155         (sssub<mode>3): Likewise.
16156         (ssmulsa3): Likewise.
16157         (usmulusa3): Likewise.
16158         (arm_usatsihi): Likewise.
16159         * config/arm/vfp.md
16160         (*movdi_vfp): Add types for all instructions.
16161         (*movdi_vfp_cortexa8): Likewise.
16162         (*movhf_vfp_neon): Likewise.
16163         (*movhf_vfp): Likewise.
16164         (*movdf_vfp): Likewise.
16165         (*thumb2_movdf_vfp): Likewise.
16166         (*thumb2_movdfcc_vfp): Likewise.
16167         * config/arm/arm.md: Add type attribute to all insn patterns.
16168         (*thumb1_adddi3): Add type attribute.
16169         (*arm_adddi3): Likewise.
16170         (*adddi_sesidi_di): Likewise.
16171         (*adddi_zesidi_di): Likewise.
16172         (*thumb1_addsi3): Likewise.
16173         (addsi3_compare0): Likewise.
16174         (*addsi3_compare0_scratch): Likewise.
16175         (*compare_negsi_si): Likewise.
16176         (cmpsi2_addneg): Likewise.
16177         (*addsi3_carryin_<optab>): Likewise.
16178         (*addsi3_carryin_alt2_<optab>): Likewise.
16179         (*addsi3_carryin_clobercc_<optab>): Likewise.
16180         (*subsi3_carryin): Likewise.
16181         (*subsi3_carryin_const): Likewise.
16182         (*subsi3_carryin_compare): Likewise.
16183         (*subsi3_carryin_compare_const): Likewise.
16184         (*arm_subdi3): Likewise.
16185         (*thumb_subdi3): Likewise.
16186         (*subdi_di_zesidi): Likewise.
16187         (*subdi_di_sesidi): Likewise.
16188         (*subdi_zesidi_di): Likewise.
16189         (*subdi_sesidi_di): Likewise.
16190         (*subdi_zesidi_ze): Likewise.
16191         (thumb1_subsi3_insn): Likewise.
16192         (*arm_subsi3_insn): Likewise.
16193         (*anddi3_insn): Likewise.
16194         (*anddi_zesidi_di): Likewise.
16195         (*anddi_sesdi_di): Likewise.
16196         (*ne_zeroextracts): Likewise.
16197         (*ne_zeroextracts): Likewise.
16198         (*ite_ne_zeroextr): Likewise.
16199         (*ite_ne_zeroextr): Likewise.
16200         (*anddi_notdi_di): Likewise.
16201         (*anddi_notzesidi): Likewise.
16202         (*anddi_notsesidi): Likewise.
16203         (andsi_notsi_si): Likewise.
16204         (thumb1_bicsi3): Likewise.
16205         (*iordi3_insn): Likewise.
16206         (*iordi_zesidi_di): Likewise.
16207         (*iordi_sesidi_di): Likewise.
16208         (*thumb1_iorsi3_insn): Likewise.
16209         (*xordi3_insn): Likewise.
16210         (*xordi_zesidi_di): Likewise.
16211         (*xordi_sesidi_di): Likewise.
16212         (*arm_xorsi3): Likewise.
16213         (*andsi_iorsi3_no): Likewise.
16214         (*smax_0): Likewise.
16215         (*smax_m1): Likewise.
16216         (*arm_smax_insn): Likewise.
16217         (*smin_0): Likewise.
16218         (*arm_smin_insn): Likewise.
16219         (*arm_umaxsi3): Likewise.
16220         (*arm_uminsi3): Likewise.
16221         (*minmax_arithsi): Likewise.
16222         (*minmax_arithsi_): Likewise.
16223         (*satsi_<SAT:code>): Likewise.
16224         (arm_ashldi3_1bit): Likewise.
16225         (arm_ashrdi3_1bit): Likewise.
16226         (arm_lshrdi3_1bit): Likewise.
16227         (*arm_negdi2): Likewise.
16228         (*thumb1_negdi2): Likewise.
16229         (*arm_negsi2): Likewise.
16230         (*thumb1_negsi2): Likewise.
16231         (*negdi_extendsid): Likewise.
16232         (*negdi_zero_extend): Likewise.
16233         (*arm_abssi2): Likewise.
16234         (*thumb1_abssi2): Likewise.
16235         (*arm_neg_abssi2): Likewise.
16236         (*thumb1_neg_abss): Likewise.
16237         (one_cmpldi2): Likewise.
16238         (extend<mode>di2): Likewise.
16239         (*compareqi_eq0): Likewise.
16240         (*arm_extendhisi2addsi): Likewise.
16241         (*arm_movdi): Likewise.
16242         (*thumb1_movdi_insn): Likewise.
16243         (*arm_movt): Likewise.
16244         (*thumb1_movsi_insn): Likewise.
16245         (pic_add_dot_plus_four): Likewise.
16246         (pic_add_dot_plus_eight): Likewise.
16247         (tls_load_dot_plus_eight): Likewise.
16248         (*thumb1_movhi_insn): Likewise.
16249         (*thumb1_movsf_insn): Likewise.
16250         (*movdf_soft_insn): Likewise.
16251         (*thumb_movdf_insn): Likewise.
16252         (cbranchsi4_insn): Likewise.
16253         (cbranchsi4_scratch): Likewise.
16254         (*negated_cbranchsi4): Likewise.
16255         (*tbit_cbranch): Likewise.
16256         (*tlobits_cbranch): Likewise.
16257         (*tstsi3_cbranch): Likewise.
16258         (*cbranchne_decr1): Likewise.
16259         (*addsi3_cbranch): Likewise.
16260         (*addsi3_cbranch_scratch): Likewise.
16261         (*arm_cmpdi_insn): Likewise.
16262         (*arm_cmpdi_unsig): Likewise.
16263         (*arm_cmpdi_zero): Likewise.
16264         (*thumb_cmpdi_zero): Likewise.
16265         (*deleted_compare): Likewise.
16266         (*mov_scc): Likewise.
16267         (*mov_negscc): Likewise.
16268         (*mov_notscc): Likewise.
16269         (*cstoresi_eq0_thumb1_insn): Likewise.
16270         (cstoresi_nltu_thumb1): Likewise.
16271         (cstoresi_ltu_thu): Likewise.
16272         (thumb1_addsi3_addgeu): Likewise.
16273         (*arm_jump): Likewise.
16274         (*thumb_jump): Likewise.
16275         (*check_arch2): Likewise.
16276         (arm_casesi_internal): Likewise.
16277         (thumb1_casesi_dispatch): Likewise.
16278         (*arm_indirect_jump): Likewise.
16279         (*thumb1_indirect_jump): Likewise.
16280         (nop): Likewise.
16281         (*and_scc): Likewise.
16282         (*ior_scc): Likewise.
16283         (*compare_scc): Likewise.
16284         (*cond_move): Likewise.
16285         (*cond_arith): Likewise.
16286         (*cond_sub): Likewise.
16287         (*cmp_ite0): Likewise.
16288         (*cmp_ite1): Likewise.
16289         (*cmp_and): Likewise.
16290         (*cmp_ior): Likewise.
16291         (*ior_scc_scc): Likewise.
16292         (*ior_scc_scc_cmp): Likewise.
16293         (*and_scc_scc): Likewise.
16294         (*and_scc_scc_cmp): Likewise.
16295         (*and_scc_scc_nod): Likewise.
16296         (*negscc): Likewise.
16297         (movcond_addsi): Likewise.
16298         (movcond): Likewise.
16299         (*ifcompare_plus_move): Likewise.
16300         (*if_plus_move): Likewise.
16301         (*ifcompare_move_plus): Likewise.
16302         (*if_move_plus): Likewise.
16303         (*ifcompare_arith_arith): Likewise.
16304         (*if_arith_arith): Likewise.
16305         (*ifcompare_arith_move): Likewise.
16306         (*if_arith_move): Likewise.
16307         (*ifcompare_move_arith): Likewise.
16308         (*if_move_arith): Likewise.
16309         (*ifcompare_move_not): Likewise.
16310         (*if_move_not): Likewise.
16311         (*ifcompare_not_move): Likewise.
16312         (*if_not_move): Likewise.
16313         (*ifcompare_shift_move): Likewise.
16314         (*if_shift_move): Likewise.
16315         (*ifcompare_move_shift): Likewise.
16316         (*if_move_shift): Likewise.
16317         (*ifcompare_shift_shift): Likewise.
16318         (*ifcompare_not_arith): Likewise.
16319         (*ifcompare_arith_not): Likewise.
16320         (*if_arith_not): Likewise.
16321         (*ifcompare_neg_move): Likewise.
16322         (*if_neg_move): Likewise.
16323         (*ifcompare_move_neg): Likewise.
16324         (*if_move_neg): Likewise.
16325         (prologue_thumb1_interwork): Likewise.
16326         (*cond_move_not): Likewise.
16327         (*sign_extract_onebit): Likewise.
16328         (*not_signextract_onebit): Likewise.
16329         (stack_tie): Likewise.
16330         (align_4): Likewise.
16331         (align_8): Likewise.
16332         (consttable_end): Likewise.
16333         (consttable_1): Likewise.
16334         (consttable_2): Likewise.
16335         (consttable_4): Likewise.
16336         (consttable_8): Likewise.
16337         (consttable_16): Likewise.
16338         (*thumb1_tablejump): Likewise.
16339         (prefetch): Likewise.
16340         (force_register_use): Likewise.
16341         (thumb_eh_return): Likewise.
16342         (load_tp_hard): Likewise.
16343         (load_tp_soft): Likewise.
16344         (tlscall): Likewise.
16345         (*arm_movtas_ze): Likewise.
16346         (*arm_rev): Likewise.
16347         (*arm_revsh): Likewise.
16348         (*arm_rev16): Likewise.
16349         * config/arm/thumb2.md
16350         (*thumb2_smaxsi3): Likewise.
16351         (*thumb2_sminsi3): Likewise.
16352         (*thumb32_umaxsi3): Likewise.
16353         (*thumb2_uminsi3): Likewise.
16354         (*thumb2_negdi2): Likewise.
16355         (*thumb2_abssi2): Likewise.
16356         (*thumb2_neg_abss): Likewise.
16357         (*thumb2_movsi_insn): Likewise.
16358         (tls_load_dot_plus_four): Likewise.
16359         (*thumb2_movhi_insn): Likewise.
16360         (*thumb2_mov_scc): Likewise.
16361         (*thumb2_mov_negs): Likewise.
16362         (*thumb2_mov_negs): Likewise.
16363         (*thumb2_mov_nots): Likewise.
16364         (*thumb2_mov_nots): Likewise.
16365         (*thumb2_movsicc_): Likewise.
16366         (*thumb2_movsfcc_soft_insn): Likewise.
16367         (*thumb2_indirect_jump): Likewise.
16368         (*thumb2_and_scc): Likewise.
16369         (*thumb2_ior_scc): Likewise.
16370         (*thumb2_ior_scc_strict_it): Likewise.
16371         (*thumb2_cond_move): Likewise.
16372         (*thumb2_cond_arith): Likewise.
16373         (*thumb2_cond_ari): Likewise.
16374         (*thumb2_cond_sub): Likewise.
16375         (*thumb2_negscc): Likewise.
16376         (*thumb2_movcond): Likewise.
16377         (thumb2_casesi_internal): Likewise.
16378         (thumb2_casesi_internal_pic): Likewise.
16379         (*thumb2_alusi3_short): Likewise.
16380         (*thumb2_mov<mode>_shortim): Likewise.
16381         (*thumb2_addsi_short): Likewise.
16382         (*thumb2_subsi_short): Likewise.
16383         (thumb2_addsi3_compare0): Likewise.
16384         (*thumb2_cbz): Likewise.
16385         (*thumb2_cbnz): Likewise.
16386         (*thumb2_one_cmplsi2_short): Likewise.
16387         (*thumb2_negsi2_short): Likewise.
16388         (*orsi_notsi_si): Likewise.
16389         * config/arm/arm1020e.md: Update with new attributes.
16390         * config/arm/arm1026ejs.md: Update with new attributes.
16391         * config/arm/arm1136jfs.md: Update with new attributes.
16392         * config/arm/arm926ejs.md: Update with new attributes.
16393         * config/arm/cortex-a15.md: Update with new attributes.
16394         * config/arm/cortex-a5.md: Update with new attributes.
16395         * config/arm/cortex-a53.md: Update with new attributes.
16396         * config/arm/cortex-a7.md: Update with new attributes.
16397         * config/arm/cortex-a8.md: Update with new attributes.
16398         * config/arm/cortex-a9.md: Update with new attributes.
16399         * config/arm/cortex-m4.md: Update with new attributes.
16400         * config/arm/cortex-r4.md: Update with new attributes.
16401         * config/arm/fa526.md: Update with new attributes.
16402         * config/arm/fa606te.md: Update with new attributes.
16403         * config/arm/fa626te.md: Update with new attributes.
16404         * config/arm/fa726te.md: Update with new attributes.
16406 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16408         * config/aarch64/aarch64-simd.md
16409         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16410         <vwx> iterator to ensure correct register choice.
16411         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16412         (aarch64_sqdmull_n<mode>): Likewise.
16413         (aarch64_sqdmull2_n<mode>_internal): Likewise.
16414         * config/aarch64/arm_neon.h
16415         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16416         (vml<as><q>_n_<su>16): Likewise.
16417         (vml<as>l_high_lane<q>_<su>16): Likewise.
16418         (vml<as>l_high_n_<su>16): Likewise.
16419         (vml<as>l_lane<q>_<su>16): Likewise.
16420         (vml<as>l_n_<su>16): Likewise.
16421         (vmul<q>_lane<q>_<su>16): Likewise.
16422         (vmul<q>_n_<su>16): Likewise.
16423         (vmull_lane<q>_<su>16): Likewise.
16424         (vmull_n_<su>16): Likewise.
16425         (vmull_high_lane<q>_<su>16): Likewise.
16426         (vmull_high_n_<su>16): Likewise.
16427         (vqrdmulh<q>_n_s16): Likewise.
16429 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
16431         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16432         have the correct lane parameter.
16434 2013-09-06  Richard Biener <rguenther@suse.de>
16436         * cfganal.c (control_dependences::~control_dependences):
16437         Properly free all of the vector.
16439 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
16441         PR target/58269
16442         * config/i386/i386.c (ix86_conditional_register_usage):
16443         Proper initialize extended SSE registers.
16445 2013-09-06  Jan Hubicka  <jh@suse.cz>
16447         PR tree-optimization/58311
16448         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16450 2013-09-06  Jan Hubicka  <jh@suse.cz>
16452         * Makefile.in (tree-sra.o): Update dependencies.
16453         * tree-sra.c: Include ipa-utils.h
16454         (scan_function): Use recursive_call_p.
16455         (has_caller_p): New function.
16456         (cgraph_for_node_and_aliases): Count also callers of aliases.
16458 2013-09-06  Jan Hubicka  <jh@suse.cz>
16460         PR middle-end/58094
16461         * cgraph.h (symtab_semantically_equivalent_p): Declare.
16462         * tree-tailcall.c: Include ipa-utils.h.
16463         (find_tail_calls): Use it.
16464         * ipa-pure-const.c (check_call): Likewise.
16465         * ipa-utils.c (recursive_call_p): New function.
16466         * ipa-utils.h (recursive_call_p): Dclare.
16467         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16468         (symtab_semantically_equivalent_p): New function.
16469         * Makefile.in (tree-tailcall.o): Update dependencies.
16471 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
16473         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16474         non-inlinable part.
16476 2013-09-06  Richard Biener  <rguenther@suse.de>
16478         * lto-streamer.h (lto_global_var_decls): Remove.
16479         * Makefile.in (OBJS): Remove lto-symtab.o.
16480         (lto-symtab.o): Remove.
16481         (GTFILES): Remove lto-symtab.c
16482         * lto-symtab.c: Move to lto/
16484 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16486         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16487         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16488         (UNSPEC_FPINT_RINT): New constant definitions.
16489         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16490         definition with 2 attributes.
16491         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16492         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16493         definitions.
16495 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16497         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16498         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16499         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
16500         attribute to "z196_alone".
16501         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16502         "zEC12_simple".
16504 2013-09-06  Richard Biener  <rguenther@suse.de>
16506         * basic-block.h (class control_dependences): New.
16507         * tree-ssa-dce.c (control_dependence_map): Remove.
16508         (cd): New global.
16509         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16510         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16511         find_pdom, find_control_dependence, find_all_control_dependences):
16512         Move to cfganal.c.
16513         (mark_control_dependent_edges_necessary,
16514         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16515         tree_dce_done, perform_tree_ssa_dce): Adjust.
16516         * cfganal.c (set_control_dependence_map_bit,
16517         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16518         find_all_control_dependences): Move from tree-ssa-dce.c and
16519         implement as methods of control_dependences class.
16520         (control_dependences::control_dependences): New.
16521         (control_dependences::~control_dependences): Likewise.
16522         (control_dependences::get_edges_dependent_on): Likewise.
16523         (control_dependences::get_edge): Likewise.
16525 2013-09-04  Jan Hubicka  <jh@suse.cz>
16527         * tree.c (types_same_for_odr): Drop overactive check.
16528         * ipa-devirt.c (hash_type_name): Likewise.
16530 2013-09-04  Jan Hubicka  <jh@suse.cz>
16532         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16533         (analyze_functions): ... here.
16535 2013-09-04  Jan Hubicka  <jh@suse.cz>
16537         PR middle-end/58201
16538         * cgraphunit.c (analyze_functions): Clear AUX fields
16539         after processing; initialize assembler name has.
16541 2013-09-05  Jeff Law  <law@redhat.com>
16543         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16544         from thread_around_empty_block.  Record threading path into PATH.
16545         Recurse if threading through the initial block is successful.
16546         (thread_across_edge): Corresponding changes to slightly simplify.
16548 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16550         * config/aarch64/aarch64.md
16551         (type): Remove frecpe, frecps, frecpx.
16552         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16553         fix to be a TARGET_SIMD instruction.
16554         (aarch64_frecps): Remove.
16555         * config/aarch64/aarch64-simd.md
16556         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16557         (aarch64_frecps<mode>): Handle all float/vector of float modes.
16559 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16560             Sofiane Naci  <sofiane.naci@arm.com>
16562         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16563         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16564         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16565         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16566         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
16567         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16568         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
16569         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
16570         into "clz, "rbit".  Rename "shift" to "shift_imm".
16571         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16572         changes.  Update for attribute changes all occurrences of arlo_* and
16573         shift* types.
16574         * config/arm/arm-fixed.md: Update for attribute changes
16575         all occurrences of arlo_* types.
16576         * config/arm/thumb2.md: Update for attribute changes all occurrences
16577         of arlo_* types.
16578         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
16579         (cortexa7_older_only): Likewise.
16580         (cortexa7_younger):  Likewise.
16581         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16582         (1020alu_shift_op): Likewise.
16583         (1020alu_shift_reg_op): Likewise.
16584         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16585         (alu_shift_op): Likewise.
16586         (alu_shift_reg_op): Likewise.
16587         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16588         (11_alu_shift_op): Likewise.
16589         (11_alu_shift_reg_op): Likewise.
16590         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16591         (9_alu_shift_reg_op): Likewise.
16592         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16593         attribute changes.
16594         (cortex_a15_alu_shift): Likewise.
16595         (cortex_a15_alu_shift_reg): Likewise.
16596         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16597         attribute changes.
16598         (cortex_a5_alu_shift): Likewise.
16599         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16600         attribute changes.
16601         (cortex_a53_alu_shift): Likewise.
16602         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16603         attribute changes.
16604         (cortex_a7_alu_reg): Likewise.
16605         (cortex_a7_alu_shift): Likewise.
16606         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16607         attribute changes.
16608         (cortex_a8_alu_shift): Likewise.
16609         (cortex_a8_alu_shift_reg): Likewise.
16610         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16611         (cortex_a9_dp_shift): Likewise.
16612         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16613         attribute changes.
16614         * config/arm/cortex-r4.md
16615         (cortex_r4_alu): Update for attribute changes.
16616         (cortex_r4_mov): Likewise.
16617         (cortex_r4_alu_shift_reg): Likewise.
16618         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16619         (526_alu_shift_op): Likewise.
16620         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16621         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16622         (626te_alu_shift_op): Likewise.
16623         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16624         (726te_alu_shift_op): Likewise.
16625         (726te_alu_shift_reg_op): Likewise.
16626         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16627         (mp626_alu_shift_op): Likewise.
16628         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16629         (pj4_alu_conds): Likewise.
16630         (pj4_shift): Likewise.
16631         (pj4_shift_conds): Likewise.
16632         (pj4_alu_shift): Likewise.
16633         (pj4_alu_shift_conds): Likewise.
16634         * config/aarch64/aarch64.md: Update for attribute change
16635         all occurrences of arlo_* and shift* types.
16637 2013-09-05  Mike Stump  <mikestump@comcast.net>
16639         * tree.h: Move documentation for tree_function_decl to tree-core.h
16640         with the declaration.
16642 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
16644         PR target/58139
16645         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16646         looking for widest mode.
16648 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
16650         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16652 2013-09-05  Richard Biener  <rguenther@suse.de>
16654         PR tree-optimization/58137
16655         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16656         Do not create vectors of pointers.
16657         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16658         types for the components of the vector initializer.
16659         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16660         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16662 2013-09-05  Martin Jambor  <mjambor@suse.cz>
16664         * ipa-prop.c (remove_described_reference): Accept missing references,
16665         return false if that hppens, otherwise return true.
16666         (cgraph_node_for_jfunc): New function.
16667         (try_decrement_rdesc_refcount): Likewise.
16668         (try_make_edge_direct_simple_call): Use them.
16669         (ipa_edge_removal_hook): Remove references from rdescs.
16670         (ipa_edge_duplication_hook): Clone rdescs and their references
16671         when the new edge has the same caller as the old one.
16672         * cgraph.c (cgraph_resolve_speculation): Remove speculative
16673         reference before removing any edges.
16675 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
16677         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16678         initial store.
16679         * thumb2.md (thumb2_storewb_parisi): New pattern.
16681 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
16683         * config/aarch64/aarch64-option-extensions.def: Add
16684         AARCH64_OPT_EXTENSION of 'crc'.
16685         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16686         (AARCH64_ISA_CRC): Ditto.
16687         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16688         description of the CRC extension.
16690 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16692         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16693         * config/rs6000/linux.h: Ditto.
16694         * alpha/linux.h: Ditto.
16695         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16696         no_c99_libc_has_function.
16697         * config/c6x/uclinux-elf.h: Ditto.
16698         * config/lm32/uclinux-elf.h: Ditto.
16699         * config/m68k/uclinux.h: Ditto.
16700         * config/moxie/uclinux.h: Ditto.
16701         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16702         (crisv32-*-linux*, cris-*-linux*): Ditto.
16703         * config/bfin/bfin.c: Include "tm_p.h".
16705 2013-09-05  Richard Biener  <rguenther@suse.de>
16707         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16708         check for a definition without a basic-block.
16710 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16711             Sofiane Naci <sofiane.naci@arm.com>
16713         * config/aarch64/aarch64.md
16714         (*movti_aarch64): Rename r_2_f and f_2_r.
16715         (*movsf_aarch64): Likewise.
16716         (*movdf_aarch64): Likewise.
16717         (*movtf_aarch64): Likewise.
16718         (aarch64_movdi_<mode>low): Likewise.
16719         (aarch64_movdi_<mode>high): Likewise.
16720         (aarch64_mov<mode>high_di): Likewise.
16721         (aarch64_mov<mode>low_di): Likewise.
16722         (aarch64_movtilow_tilow): Likewise.
16723         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
16724         values to config/arm/types.md
16725         (attribute "conds"): Update for attribute change.
16726         (anddi3_insn): Likewise.
16727         (iordi3_insn): Likewise.
16728         (xordi3_insn): Likewise.
16729         (one_cmpldi2): Likewise.
16730         * config/arm/types.md (type): Add Neon types.
16731         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16732         use "type" attribute.
16733         (movmisalign<mode>_neon_store): Likewise.
16734         (movmisalign<mode>_neon_load): Likewise.
16735         (vec_set<mode>_internal): Likewise.
16736         (vec_setv2di_internal): Likewise.
16737         (vec_extract<mode>): Likewise.
16738         (vec_extractv2di): Likewise.
16739         (add<mode>3_neon): Likewise.
16740         (adddi3_neon): Likewise.
16741         (sub<mode>3_neon): Likewise.
16742         (subdi3_neon): Likewise.
16743         (mul<mode>3_neon): Likewise.
16744         (mul<mode>3add<mode>_neon): Likewise.
16745         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16746         (fma<VCVTF:mode>4)): Likewise.
16747         (fma<VCVTF:mode>4_intrinsic): Likewise.
16748         (fmsub<VCVTF:mode>4)): Likewise.
16749         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16750         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16751         (ior<mode>3): Likewise.
16752         (and<mode>3): Likewise.
16753         (anddi3_neon): Likewise.
16754         (orn<mode>3_neon): Likewise.
16755         (orndi3_neon): Likewise.
16756         (bic<mode>3_neon): Likewise.
16757         (bicdi3_neon): Likewise.
16758         (xor<mode>3): Likewise.
16759         (one_cmpl<mode>2): Likewise.
16760         (abs<mode>2): Likewise.
16761         (neg<mode>2): Likewise.
16762         (umin<mode>3_neon): Likewise.
16763         (umax<mode>3_neon): Likewise.
16764         (smin<mode>3_neon): Likewise.
16765         (smax<mode>3_neon): Likewise.
16766         (vashl<mode>3): Likewise.
16767         (vashr<mode>3_imm): Likewise.
16768         (vlshr<mode>3_imm): Likewise.
16769         (ashl<mode>3_signed): Likewise.
16770         (ashl<mode>3_unsigned): Likewise.
16771         (neon_load_count): Likewise.
16772         (ashldi3_neon_noclobber): Likewise.
16773         (signed_shift_di3_neon): Likewise.
16774         (unsigned_shift_di3_neon): Likewise.
16775         (ashrdi3_neon_imm_noclobber): Likewise.
16776         (lshrdi3_neon_imm_noclobber): Likewise.
16777         (widen_ssum<mode>3): Likewise.
16778         (widen_usum<mode>3): Likewise.
16779         (quad_halves_<code>v4si): Likewise.
16780         (quad_halves_<code>v4sf): Likewise.
16781         (quad_halves_<code>v8hi): Likewise.
16782         (quad_halves_<code>v16qi): Likewise.
16783         (reduc_splus_v2di): Likewise.
16784         (neon_vpadd_internal<mode>): Likewise.
16785         (neon_vpsmin<mode>): Likewise.
16786         (neon_vpsmax<mode>): Likewise.
16787         (neon_vpumin<mode>): Likewise.
16788         (neon_vpumax<mode>): Likewise.
16789         (ss_add<mode>_neon): Likewise.
16790         (us_add<mode>_neon): Likewise.
16791         (ss_sub<mode>_neon): Likewise.
16792         (us_sub<mode>_neon): Likewise.
16793         (neon_vadd<mode>_unspec): Likewise.
16794         (neon_vaddl<mode>): Likewise.
16795         (neon_vaddw<mode>): Likewise.
16796         (neon_vhadd<mode>): Likewise.
16797         (neon_vqadd<mode>): Likewise.
16798         (neon_vaddhn<mode>): Likewise.
16799         (neon_vmul<mode>): Likewise.
16800         (neon_vmla<mode>): Likewise.
16801         (neon_vmlal<mode>): Likewise.
16802         (neon_vmls<mode>): Likewise.
16803         (neon_vmlsl<mode>): Likewise.
16804         (neon_vqdmulh<mode>): Likewise.
16805         (neon_vqdmlal<mode>): Likewise.
16806         (neon_vqdmlsl<mode>): Likewise.
16807         (neon_vmull<mode>): Likewise.
16808         (neon_vqdmull<mode>): Likewise.
16809         (neon_vsub<mode>_unspec): Likewise.
16810         (neon_vsubl<mode>): Likewise.
16811         (neon_vsubw<mode>): Likewise.
16812         (neon_vqsub<mode>): Likewise.
16813         (neon_vhsub<mode>): Likewise.
16814         (neon_vsubhn<mode>): Likewise.
16815         (neon_vceq<mode>): Likewise.
16816         (neon_vcge<mode>): Likewise.
16817         (neon_vcgeu<mode>): Likewise.
16818         (neon_vcgt<mode>): Likewise.
16819         (neon_vcgtu<mode>): Likewise.
16820         (neon_vcle<mode>): Likewise.
16821         (neon_vclt<mode>): Likewise.
16822         (neon_vcage<mode>): Likewise.
16823         (neon_vcagt<mode>): Likewise.
16824         (neon_vtst<mode>): Likewise.
16825         (neon_vabd<mode>): Likewise.
16826         (neon_vabdl<mode>): Likewise.
16827         (neon_vaba<mode>): Likewise.
16828         (neon_vabal<mode>): Likewise.
16829         (neon_vmax<mode>): Likewise.
16830         (neon_vmin<mode>): Likewise.
16831         (neon_vpaddl<mode>): Likewise.
16832         (neon_vpadal<mode>): Likewise.
16833         (neon_vpmax<mode>): Likewise.
16834         (neon_vpmin<mode>): Likewise.
16835         (neon_vrecps<mode>): Likewise.
16836         (neon_vrsqrts<mode>): Likewise.
16837         (neon_vqabs<mode>): Likewise.
16838         (neon_vqneg<mode>): Likewise.
16839         (neon_vcls<mode>): Likewise.
16840         (clz<mode>2): Likewise.
16841         (popcount<mode>2): Likewise.
16842         (neon_vrecpe): Likewise.
16843         (neon_vrsqrte): Likewise.
16844         (neon_vget_lane<mode>_sext_internal): Likewise.
16845         (neon_vget_lane<mode>_zext_internal): Likewise.
16846         (neon_vdup_n<mode>): Likewise.
16847         (neon_vdup_nv2di): Likewise.
16848         (neon_vdpu_lane<mode>_internal): Likewise.
16849         (neon_vswp<mode>): Likewise.
16850         (float<mode><V_cvtto>2): Likewise.
16851         (floatuns<mode><V_cvtto>2): Likewise.
16852         (fix_trunc<mode><V_cvtto>)2): Likewise
16853         (fixuns_trunc<mode><V_cvtto)2): Likewise.
16854         (neon_vcvt<mode>): Likewise.
16855         (neon_vcvtv4sfv4hf): Likewise.
16856         (neon_vcvtv4hfv4sf): Likewise.
16857         (neon_vcvt_n<mode>): Likewise.
16858         (neon_vmovn<mode>): Likewise.
16859         (neon_vqmovn<mode>): Likewise.
16860         (neon_vqmovun<mode>): Likewise.
16861         (neon_vmovl<mode>): Likewise.
16862         (neon_vmul_lane<mode>): Likewise.
16863         (neon_vmull_lane<mode>): Likewise.
16864         (neon_vqdmull_lane<mode>): Likewise.
16865         (neon_vqdmulh_lane<mode>): Likewise.
16866         (neon_vmla_lane<mode>): Likewise.
16867         (neon_vmlal_lane<mode>): Likewise.
16868         (neon_vqdmlal_lane<mode>): Likewise.
16869         (neon_vmls_lane<mode>): Likewise.
16870         (neon_vmlsl_lane<mode>): Likewise.
16871         (neon_vqdmlsl_lane<mode>): Likewise.
16872         (neon_vext<mode>): Likewise.
16873         (neon_vrev64<mode>): Likewise.
16874         (neon_vrev32<mode>): Likewise.
16875         (neon_vrev16<mode>): Likewise.
16876         (neon_vbsl<mode>_internal): Likewise.
16877         (neon_vshl<mode>): Likewise.
16878         (neon_vqshl<mode>): Likewise.
16879         (neon_vshr_n<mode>): Likewise.
16880         (neon_vshrn_n<mode>): Likewise.
16881         (neon_vqshrn_n<mode>): Likewise.
16882         (neon_vqshrun_n<mode>): Likewise.
16883         (neon_vshl_n<mode>): Likewise.
16884         (neon_vqshl_n<mode>): Likewise.
16885         (neon_vqshlu_n<mode>): Likewise.
16886         (neon_vshll_n<mode>): Likewise.
16887         (neon_vsra_n<mode>): Likewise.
16888         (neon_vsri_n<mode>): Likewise.
16889         (neon_vsli_n<mode>): Likewise.
16890         (neon_vtbl1v8qi): Likewise.
16891         (neon_vtbl2v8qi): Likewise.
16892         (neon_vtbl3v8qi): Likewise.
16893         (neon_vtbl4v8qi): Likewise.
16894         (neon_vtbx1v8qi): Likewise.
16895         (neon_vtbx2v8qi): Likewise.
16896         (neon_vtbx3v8qi): Likewise.
16897         (neon_vtbx4v8qi): Likewise.
16898         (neon_vtrn<mode>_internal): Likewise.
16899         (neon_vzip<mode>_internal): Likewise.
16900         (neon_vuzp<mode>_internal): Likewise.
16901         (neon_vld1<mode>): Likewise.
16902         (neon_vld1_lane<mode>): Likewise.
16903         (neon_vld1_dup<mode>): Likewise.
16904         (neon_vld1_dupv2di): Likewise.
16905         (neon_vst1<mode>): Likewise.
16906         (neon_vst1_lane<mode>): Likewise.
16907         (neon_vld2<mode>): Likewise.
16908         (neon_vld2_lane<mode>): Likewise.
16909         (neon_vld2_dup<mode>): Likewise.
16910         (neon_vst2<mode>): Likewise.
16911         (neon_vst2_lane<mode>): Likewise.
16912         (neon_vld3<mode>): Likewise.
16913         (neon_vld3qa<mode>): Likewise.
16914         (neon_vld3qb<mode>): Likewise.
16915         (neon_vld3_lane<mode>): Likewise.
16916         (neon_vld3_dup<mode>): Likewise.
16917         (neon_vst3<mode>): Likewise.
16918         (neon_vst3qa<mode>): Likewise.
16919         (neon_vst3qb<mode>): Likewise.
16920         (neon_vst3_lane<mode>): Likewise.
16921         (neon_vld4<mode>): Likewise.
16922         (neon_vld4qa<mode>): Likewise.
16923         (neon_vld4qb<mode>): Likewise.
16924         (neon_vld4_lane<mode>): Likewise.
16925         (neon_vld4_dup<mode>): Likewise.
16926         (neon_vst4<mode>): Likewise.
16927         (neon_vst4qa<mode>): Likewise.
16928         (neon_vst4qb<mode>): Likewise.
16929         (neon_vst4_lane<mode>): Likewise.
16930         (neon_vec_unpack<US>_lo_<mode>): Likewise.
16931         (neon_vec_unpack<US>_hi_<mode>): Likewise.
16932         (neon_vec_<US>mult_lo_<mode>): Likewise.
16933         (neon_vec_<US>mult_hi_<mode>): Likewise.
16934         (neon_vec_<US>shiftl_<mode>): Likewise.
16935         (neon_unpack<US>_<mode>): Likewise.
16936         (neon_vec_<US>mult_<mode>): Likewise.
16937         (vec_pack_trunc_<mode>): Likewise.
16938         (neon_vec_pack_trunk_<mode>): Likewise.
16939         (neon_vabd<mode>_2): Likewise.
16940         (neon_vabd<mode>_3): Likewise.
16941         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16942         (thumb2_movsi_vfp): Likewise.
16943         (movdi_vfp): Likewise.
16944         (movdi_vfp_cortexa8): Likewise.
16945         (movhf_vfp_neon): Likewise.
16946         (movhf_vfp): Likewiwse.
16947         (movsf_vfp): Likewiwse.
16948         (thumb2_movsf_vfp): Likewiwse.
16949         (movdf_vfp): Likewise.
16950         (thumb2_movdf_vfp): Likewise.
16951         (movsfcc_vfp): Likewise.
16952         (thumb2_movsfcc_vfp): Likewise.
16953         (movdfcc_vfp): Likewise.
16954         (thumb2_movdfcc_vfp): Likewise.
16955         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16956         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16957         (v10_v2c): Likewise.
16958         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16959         attribute change.
16960         (cortex_a15_neon_int_2): Likewise.
16961         (cortex_a15_neon_int_3): Likewise.
16962         (cortex_a15_neon_int_4): Likewise.
16963         (cortex_a15_neon_int_5): Likewise.
16964         (cortex_a15_neon_vqneg_vqabs): Likewise.
16965         (cortex_a15_neon_vmov): Likewise.
16966         (cortex_a15_neon_vaba): Likewise.
16967         (cortex_a15_neon_vaba_qqq): Likewise.
16968         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16969         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16970         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16971         scalar_64_32_long_scalar): Likewise.
16972         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16973         (cortex_a15_neon_mla_qqq_8_16): Likewise.
16974         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16975         lotype_qdd_64_32_long): Likewise.
16976         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16977         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16978         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16979         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16980         (cortex_a15_neon_shift_1): Likewise.
16981         (cortex_a15_neon_shift_2): Likewise.
16982         (cortex_a15_neon_shift_3): Likewise.
16983         (cortex_a15_neon_vshl_ddd): Likewise.
16984         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16985         (cortex_a15_neon_vsra_vrsra): Likewise.
16986         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16987         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16988         (cortex_a15_neon_fp_vmul_ddd): Likewise.
16989         (cortex_a15_neon_fp_vmul_qqd): Likewise.
16990         (cortex_a15_neon_fp_vmla_ddd): Likewise.
16991         (cortex_a15_neon_fp_vmla_qqq): Likewise.
16992         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16993         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16994         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16995         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16996         (cortex_a15_neon_bp_simple): Likewise.
16997         (cortex_a15_neon_bp_2cycle): Likewise.
16998         (cortex_a15_neon_bp_3cycle): Likewise.
16999         (cortex_a15_neon_vld1_1_2_regs): Likewise.
17000         (cortex_a15_neon_vld1_3_4_regs): Likewise.
17001         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17002         (cortex_a15_neon_vld2_4_regs): Likewise.
17003         (cortex_a15_neon_vld3_vld4): Likewise.
17004         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17005         (cortex_a15_neon_vst1_3_4_regs): Likewise.
17006         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
17007         (cortex_a15_neon_vst3_vst4): Likewise.
17008         (cortex_a15_neon_vld1_vld2_lane): Likewise.
17009         (cortex_a15_neon_vld3_vld4_lane" 10
17010         (cortex_a15_neon_vst1_vst2_lane): Likewise.
17011         (cortex_a15_neon_vst3_vst4_lane): Likewise.
17012         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
17013         (cortex_a15_neon_ldm_2): Likewise.0
17014         (cortex_a15_neon_stm_2): Likewise.
17015         (cortex_a15_neon_mcr): Likewise.
17016         (cortex_a15_neon_mcr_2_mcrr): Likewise.
17017         (cortex_a15_neon_mrc): Likewise.
17018         (cortex_a15_neon_mrrc): Likewise.
17019         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
17020         change.
17021         (cortex_a15_alu_shift): Likewise.
17022         (cortex_a15_alu_shift_reg): Likewise.
17023         (cortex_a15_mult32): Likewise.
17024         (cortex_a15_mult64): Likewise.
17025         (cortex_a15_block): Likewise.
17026         (cortex_a15_branch): Likewise.
17027         (cortex_a15_load1): Likewise.
17028         (cortex_a15_load3): Likewise.
17029         (cortex_a15_store1): Likewise.
17030         (cortex_a15_store3): Likewise.
17031         (cortex_a15_call): Likewise.
17032         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
17033         (cortex_a5_f2r): Likewise.
17034         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
17035         change.
17036         (cortex_a53_f2r): Likewise.
17037         * config/arm/cortex-a7.md
17038         (cortex_a7_branch): Update for attribute change.
17039         (cortex_a7_call): Likewise.
17040         (cortex_a7_alu_imm): Likewise.
17041         (cortex_a7_alu_reg): Likewise.
17042         (cortex_a7_alu_shift): Likewise.
17043         (cortex_a7_mul): Likewise.
17044         (cortex_a7_load1): Likewise.
17045         (cortex_a7_store1): Likewise.
17046         (cortex_a7_load2): Likewise.
17047         (cortex_a7_store2): Likewise.
17048         (cortex_a7_load3): Likewise.
17049         (cortex_a7_store3): Likewise.
17050         (cortex_a7_load4): Likewise.
17051         (cortex_a7_store4): Likewise.
17052         (cortex_a7_fpalu): Likewise.
17053         (cortex_a7_fconst): Likewise.
17054         (cortex_a7_fpmuls): Likewise.
17055         (cortex_a7_neon_mul): Likewise.
17056         (cortex_a7_fpmacs): Likewise.
17057         (cortex_a7_neon_mla: Likewise.
17058         (cortex_a7_fpmuld: Likewise.
17059         (cortex_a7_fpmacd: Likewise.
17060         (cortex_a7_fpfmad: Likewise.
17061         (cortex_a7_fdivs: Likewise.
17062         (cortex_a7_fdivd: Likewise.
17063         (cortex_a7_r2f: Likewise.
17064         (cortex_a7_f2r: Likewise.
17065         (cortex_a7_f_flags: Likewise.
17066         (cortex_a7_f_loads: Likewise.
17067         (cortex_a7_f_loadd: Likewise.
17068         (cortex_a7_f_stores: Likewise.
17069         (cortex_a7_f_stored: Likewise.
17070         (cortex_a7_neon): Likewise.
17071         * config/arm/cortex-a8-neon.md
17072         (cortex_a8_neon_mrc): Update for attribute change.
17073         (cortex_a8_neon_mrrc): Likewise.
17074         (cortex_a8_neon_int_1): Likewise.
17075         (cortex_a8_neon_int_2): Likewise.
17076         (cortex_a8_neon_int_3): Likewise.
17077         (cortex_a8_neon_int_4): Likewise.
17078         (cortex_a8_neon_int_5): Likewise.
17079         (cortex_a8_neon_vqneg_vqabs): Likewise.
17080         (cortex_a8_neon_vmov): Likewise.
17081         (cortex_a8_neon_vaba): Likewise.
17082         (cortex_a8_neon_vaba_qqq): Likewise.
17083         (cortex_a8_neon_vsma): Likewise.
17084         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17085         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17086         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17087         long_scalar): Likewise.
17088         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17089         (cortex_a8_neon_mla_qqq_8_16): Likewise.
17090         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17091         long_scalar_qdd_64_32_long): Likewise.
17092         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17093         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17094         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
17095         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17096         (cortex_a8_neon_shift_1): Likewise.
17097         (cortex_a8_neon_shift_2): Likewise.
17098         (cortex_a8_neon_shift_3): Likewise.
17099         (cortex_a8_neon_vshl_ddd): Likewise.
17100         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17101         (cortex_a8_neon_vsra_vrsra): Likewise.
17102         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
17103         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
17104         (cortex_a8_neon_fp_vsum): Likewise.
17105         (cortex_a8_neon_fp_vmul_ddd): Likewise.
17106         (cortex_a8_neon_fp_vmul_qqd): Likewise.
17107         (cortex_a8_neon_fp_vmla_ddd): Likewise.
17108         (cortex_a8_neon_fp_vmla_qqq): Likewise.
17109         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
17110         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
17111         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17112         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17113         (cortex_a8_neon_bp_simple): Likewise.
17114         (cortex_a8_neon_bp_2cycle): Likewise.
17115         (cortex_a8_neon_bp_3cycle): Likewise.
17116         (cortex_a8_neon_ldr): Likewise.
17117         (cortex_a8_neon_str): Likewise.
17118         (cortex_a8_neon_vld1_1_2_regs): Likewise.
17119         (cortex_a8_neon_vld1_3_4_regs): Likewise.
17120         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17121         (cortex_a8_neon_vld2_4_regs): Likewise.
17122         (cortex_a8_neon_vld3_vld4): Likewise.
17123         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17124         (cortex_a8_neon_vst1_3_4_regs): Likewise.
17125         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
17126         (cortex_a8_neon_vst3_vst4): Likewise.
17127         (cortex_a8_neon_vld1_vld2_lane): Likewise.
17128         (cortex_a8_neon_vld3_vld4_lane): Likewise.
17129         (cortex_a8_neon_vst1_vst2_lane): Likewise.
17130         (cortex_a8_neon_vst3_vst4_lane): Likewise.
17131         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
17132         (cortex_a8_neon_mcr): Likewise.
17133         (cortex_a8_neon_mcr_2_mcrr): Likewise.
17134         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17135         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
17136         change.
17137         (ca9_neon_mrrc): Likewise.
17138         (cortex_a9_neon_int_1): Likewise.
17139         (cortex_a9_neon_int_2): Likewise.
17140         (cortex_a9_neon_int_3): Likewise.
17141         (cortex_a9_neon_int_4): Likewise.
17142         (cortex_a9_neon_int_5): Likewise.
17143         (cortex_a9_neon_vqneg_vqabs): Likewise.
17144         (cortex_a9_neon_vmov): Likewise.
17145         (cortex_a9_neon_vaba): Likewise.
17146         (cortex_a9_neon_vaba_qqq): Likewise.
17147         (cortex_a9_neon_vsma): Likewise.
17148         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17149         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17150         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17151         long_scalar): Likewise.
17152         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17153         (cortex_a9_neon_mla_qqq_8_16): Likewise.
17154         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17155         long_scalar_qdd_64_32_long): Likewise.
17156         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17157         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17158         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
17159         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17160         (cortex_a9_neon_shift_1): Likewise.
17161         (cortex_a9_neon_shift_2): Likewise.
17162         (cortex_a9_neon_shift_3): Likewise.
17163         (cortex_a9_neon_vshl_ddd): Likewise.
17164         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17165         (cortex_a9_neon_vsra_vrsra): Likewise.
17166         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
17167         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
17168         (cortex_a9_neon_fp_vsum): Likewise.
17169         (cortex_a9_neon_fp_vmul_ddd): Likewise.
17170         (cortex_a9_neon_fp_vmul_qqd): Likewise.
17171         (cortex_a9_neon_fp_vmla_ddd): Likewise.
17172         (cortex_a9_neon_fp_vmla_qqq): Likewise.
17173         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
17174         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
17175         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17176         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17177         (cortex_a9_neon_bp_simple): Likewise.
17178         (cortex_a9_neon_bp_2cycle): Likewise.
17179         (cortex_a9_neon_bp_3cycle): Likewise.
17180         (cortex_a9_neon_ldr): Likewise.
17181         (cortex_a9_neon_str): Likewise.
17182         (cortex_a9_neon_vld1_1_2_regs): Likewise.
17183         (cortex_a9_neon_vld1_3_4_regs): Likewise.
17184         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17185         (cortex_a9_neon_vld2_4_regs): Likewise.
17186         (cortex_a9_neon_vld3_vld4): Likewise.
17187         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17188         (cortex_a9_neon_vst1_3_4_regs): Likewise.
17189         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
17190         (cortex_a9_neon_vst3_vst4): Likewise.
17191         (cortex_a9_neon_vld1_vld2_lane): Likewise.
17192         (cortex_a9_neon_vld3_vld4_lane): Likewise.
17193         (cortex_a9_neon_vst1_vst2_lane): Likewise.
17194         (cortex_a9_neon_vst3_vst4_lane): Likewise.
17195         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
17196         (cortex_a9_neon_mcr): Likewise.
17197         (cortex_a9_neon_mcr_2_mcrr): Likewise.
17198         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17199         (cortex_a9_fps): Likewise.
17200         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
17201         change.
17202         (cortex_m4_fmuls): Likewise.
17203         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
17204         change.
17205         (cortex_r4_mrc): Likewise.
17206         * config/arm/iterators.md: Update comment referring to neon_type.
17207         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
17208         (iwmmxt_movsi_insn): Likewise.
17209         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
17210         attribute change.
17211         (pj4_core_to_vfp): Likewise.
17212         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
17213         attribute change.
17214         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
17215         (vfp_fstore): Likewise.
17216         * doc/md.texi: Change references to neon_type to refer to type.
17218 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
17220         * tree.h (DECL_BUILT_IN): Fix typo in comment.
17222 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
17224         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
17225         lglobl if not weak.
17227 2013-09-04  Easwaran Raman  <eraman@google.com>
17229         PR middle-end/57370
17230         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
17231         (build_and_add_sum): Use it.
17232         (appears_later_in_bb): Simplify code.
17234 2013-09-04  Teresa Johnson  <tejohnson@google.com>
17236         * dumpfile.c (dump_finish): Don't close stderr/stdout.
17238 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
17240         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
17242 2013-09-04  Jan Hubicka  <jh@suse.cz>
17244         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
17245         * ipa-devirt.c: Include diganostic.h
17246         (odr_type_d): Add types and types_set.
17247         (hash_type_name): Work for types with vtables during LTO.
17248         (odr_hasher::remove): Fix comment; destroy types_set.
17249         (add_type_duplicate): New function,
17250         (get_odr_type): Use it.
17251         (dump_type_inheritance_graph): Dump type duplicates.
17252         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
17253         graph.
17254         * tree.c (types_same_for_odr): Give exact answers on types with
17255         virtual tables.
17257 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
17259         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
17260         explaining their differences.
17262 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
17264         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
17266 2013-09-03  Jeff Law  <law@redhat.com>
17268         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17269         when not threading through a joiner block.  Pass joiner/no joiner
17270         state to register_jump_thread.
17271         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17272         state from argument rather than implying on path length.
17273         Dump the entire jump thread path into debugging dump.
17274         * tree-flow.h (register_jump_thread): Update prototype.
17276 2013-08-29  Xinliang David Li  <davidxl@google.com>
17278         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17279         Remove a trivial gcc_assert.
17281 2013-08-29  Xinliang David Li  <davidxl@google.com>
17283         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17284         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17285         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17286         Delay base decl alignment adjustment.
17287         * tree-vectorizer.c (vect_destroy_datarefs): New function.
17288         * tree-vectorizer.h: New data structure.
17289         (set_dr_misalignment): New function.
17290         (dr_misalignment): Ditto.
17291         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17292         (vectorizable_load): Ditto.
17293         (ensure_base_align): New function.
17294         (vectorize_loops): Add dbg_cnt support.
17295         (execute_vect_slp): Ditto.
17296         * dbgcnt.def: New debug counter.
17297         * Makefile: New dependency.
17299 2013-09-03  Meador Inge  <meadori@codesourcery.com>
17301         Revert:
17303         2013-08-30  Meador Inge  <meadori@codesourcery.com>
17305         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17307 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
17309         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17310         function descriptor.
17312 2013-09-03  Richard Biener  <rguenther@suse.de>
17314         * tree-affine.c (add_elt_to_tree): Fix association issue,
17315         avoid useless converts and make sure to always return a
17316         properly typed result.
17318 2013-09-03  Richard Biener  <rguenther@suse.de>
17320         PR middle-end/57656
17321         * fold-const.c (negate_expr_p): Fix division case.
17322         (negate_expr): Likewise.
17324 2013-09-03  Richard Biener  <rguenther@suse.de>
17326         PR lto/58285
17327         * tree-streamer-out.c: Include tm.h.
17328         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17330 2013-09-03  Jan Hubicka  <jh@suse.cz>
17332         * tree-profile.c (tree_profiling): Cleanup CFG when done.
17334 2013-09-03  Alan Modra  <amodra@gmail.com>
17336         * config.gcc (powerpc*-*-linux*): Add support for little-endian
17337         multilibs to big-endian target and vice versa.
17338         * config/rs6000/t-linux64: Use := assignment on all vars.
17339         (MULTILIB_EXTRA_OPTS): Remove fPIC.
17340         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17341         * config/rs6000/t-linux64le: New file.
17342         * config/rs6000/t-linux64bele: New file.
17343         * config/rs6000/t-linux64lebe: New file.
17345 2013-09-02  Jan Hubicka  <jh@suse.cz>
17347         * ipa-inline-transform.c (inline_transform): Do not
17348         optimize_inline_calls when not optimizing.
17350 2013-09-02  Jan Hubicka  <jh@suse.cz>
17352         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17353         duplicated nodes for assembler names.
17354         * symtab.c (symtab_unregister_node): Do not attempt to unlink
17355         hard registers from assembler name hash.
17357 2013-09-02  Jan Hubicka  <jh@suse.cz>
17359         * ipa-split.c (execute_split_functions): Split externally visible
17360         functions called once.
17362 2013-09-02  Martin Jambor  <mjambor@suse.cz>
17364         PR ipa/58106
17365         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17366         linked list.  When finding the correct duplicate, also consider also
17367         the caller in additon to its inlined_to node.
17369 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
17371         * config/aarch64/aarch64-simd-builtins.def
17372         (dup_lane_scalar): Remove.
17373         * config/aarch64/aarch64-simd.md
17374         (aarch64_simd_dup): Add 'w->w' alternative.
17375         (aarch64_dup_lane<mode>): Allow for VALL.
17376         (aarch64_dup_lane_scalar<mode>): Remove.
17377         (aarch64_dup_lane_<vswap_width_name><mode>): New.
17378         (aarch64_get_lane_signed<mode>): Add w->w altenative.
17379         (aarch64_get_lane_unsigned<mode>): Likewise.
17380         (aarch64_get_lane<mode>): Likewise.
17381         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17382         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17383         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17384         (VCON): Change container of V2SF.
17385         (vswap_width_name): Likewise.
17386         * config/aarch64/arm_neon.h
17387         (__aarch64_vdup_lane_any): New.
17388         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17389         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17390         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17392 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
17394         PR middle-end/56382
17395         * expr.c (emit_move_complex): Do not move complex FP values as parts if
17396         the source or the destination is a single hard register.
17398 2013-09-02  Richard Biener  <rguenther@suse.de>
17400         PR middle-end/57511
17401         * tree-scalar-evolution.c (instantiate_scev_name): Allow
17402         non-linear SCEVs.
17404 2013-09-02  Richard Biener  <rguenther@suse.de>
17406         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17407         arithmetic to sizetype.
17409 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
17411         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17412         Find auto-increment use both before and after candidate.
17414 2013-09-02  Marek Polacek  <polacek@redhat.com>
17416         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17418 2013-09-01  Jan Hubicka  <jh@suse.cz>
17420         * Makefile.in: Add ipa-profile.o
17421         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17422         * cgraph.c (struct cgraph_propagate_frequency_data,
17423         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17424         ipa-profile.c; replace cgraph_ by ipa_ prefix.
17425         * cgraph.h (cgraph_propagate_frequency): Remove.
17426         * ipa-inline-analysis.c: Include ipa-utils.h;
17427         drop duplicated cfgloop.h.
17428         (inline_update_callee_summaries): Update.
17429         * ipa-profile.c: New file.
17430         * ipa-utils.h (ipa_propagate_frequency): Declare.
17431         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17432         data-streamer.h, value-prof.h.
17433         (symtab_remove_unreachable_nodes): Update profile.
17434         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17435         account_time_size, cmp_counts, dump_histogram,
17436         ipa_profile_generate_summary, ipa_profile_write_summary,
17437         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17438         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17439         Move to ipa-profile.c.
17441 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
17443         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17445 2013-09-01  Jan Hubicka  <jh@suse.cz>
17447         * common.opt (fdevirtualize-speculatively): New function.
17448         * invoke.texi (fdevirtualize-speculatively): Document.
17449         * ipa-devirt.c: Include ipa-inline.h
17450         (likely_target_p): New function.
17451         (ipa_devirt): New function.
17452         (gate_ipa_devirt): New function.
17453         (pass_data_ipa_devirt): New static var.
17454         (pass_ipa_devirt): Likewise.
17455         (make_pass_ipa_devirt): New function.
17456         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17457         (common_handle_option): Disable devirtualization when
17458         value range profiling is available.
17459         * passes.def (pass_ipa_devirt): Add.
17460         * timever.def (TV_IPA_DEVIRT): New timevar.
17461         * tree-pass.h (make_pass_ipa_devirt):
17463 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
17465         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17466         include sanitize(undefined).
17468 2013-08-31  Diego Novillo  <dnovillo@google.com>
17470         * Makefile.in (TREE_CORE_H): Define.
17471         (TREE_H): Use.
17472         (GTFILES): Add tree-core.h.
17473         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17474         size the array.
17475         * tree-core.h: New file.
17476         Move all data structures, enum, typedefs, global
17477         declarations and constants from ...
17478         * tree.h: ... here.
17480 2013-08-31  Jan Hubicka  <jh@suse.cz>
17482         * bulitins.c (expand_builtin): Do not early exit for gcov
17483         instrumented functions.
17485 2013-08-31  Marek Polacek  <polacek@redhat.com>
17487         * ubsan.c: Include tm_p.h.
17489 2013-08-31  Jan Hubicka  <jh@suse.cz>
17491         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17492         warning.
17494         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17495         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17496         * tree-cfg.c (verify_gimple_label): ... here.
17497         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17498         (ipa_merge_profiles): New function.
17499         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17500         (lto_input_function_body): Likewise.
17501         * ipa-utils.h (ipa_merge_profiles): Declare.
17502         * lto-streamer.h (lto_input_function_body): Update prototype.
17503         (emit_label_in_global_context_p): Remove.
17504         * lto-symtab.c: Include ipa-utils.h
17505         (lto_cgraph_replace_node): Use ipa_merge_profiles.
17507 2013-08-31  Jan Hubicka  <jh@suse.cz>
17509         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17511 2013-08-31  Jan Hubicka  <jh@suse.cz>
17513         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17515 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
17517         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17518         "cmp" RTX before signed_comparison_operator check to account
17519         for "code" changes.
17521 2013-08-30  Jan Hubicka  <jh@suse.cz>
17523         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17524         (detect_type_change_1): Rename to ...
17525         (detect_type_change): ... this one; early return on non-polymorphic
17526         types.
17527         (detect_type_change_ssa): Add comp_type parameter; update
17528         use of detect_type_change.
17529         (compute_complex_assign_jump_func): Add param_type parameter;
17530         update use of detect_type_change_ssa.
17531         (compute_complex_ancestor_jump_func): Likewise.
17532         (ipa_get_callee_param_type): New function.
17533         (ipa_compute_jump_functions_for_edge): Compute parameter type;
17534         update calls to the jump function computation functions.
17536 2013-08-30  Teresa Johnson  <tejohnson@google.com>
17537             Steven Bosscher  <steven@gcc.gnu.org>
17539         * cfgrtl.c (fixup_new_cold_bb): New routine.
17540         (commit_edge_insertions): Invoke fixup_partitions.
17541         (find_partition_fixes): New routine.
17542         (fixup_partitions): Ditto.
17543         (verify_hot_cold_block_grouping): Update comments.
17544         (rtl_verify_edges): Invoke find_partition_fixes.
17545         (rtl_verify_bb_pointers): Update comments.
17546         (rtl_verify_bb_layout): Ditto.
17547         * basic-block.h (probably_never_executed_edge_p): Declare.
17548         (fixup_partitions): Ditto.
17549         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17550         * bb-reorder.c (sanitize_hot_paths): New function.
17551         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17552         sanitize_hot_paths.
17553         * predict.c (probably_never_executed_edge_p): New routine.
17554         * cfg.c (check_bb_profile): Add partition insanity warnings.
17556 2013-08-30  Meador Inge  <meadori@codesourcery.com>
17558         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17560 2013-08-30  Marek Polacek  <polacek@redhat.com>
17562         * Makefile.in (ubsan.o): Add.
17563         (c-family/c-ubsan.o): Add.
17564         (builtins.o): Add ubsan.h dependency.
17565         * ubsan.h: New file.
17566         * ubsan.c: New file.
17567         * common.opt: Add -fsanitize=undefined option.
17568         (flag_sanitize): Add variable.
17569         (fsanitize=): Add option.  Add Driver.
17570         (fsanitize=thread): Remove option.
17571         (fsanitize=address): Likewise.
17572         (static-libubsan): New option.
17573         * doc/invoke.texi: Document the new flag and -static-libubsan.
17574         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17575         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17576         * builtin-attrs.def (ATTR_COLD): Define.
17577         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17578         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17579         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17580         * flag-types.h (sanitize_code): New enum.
17581         * opts.c (common_handle_option): Parse command line arguments
17582         of -fsanitize=.  Add -fsanitize=unreachable option.
17583         * varasm.c (get_variable_section): Adjust.
17584         (assemble_noswitch_variable): Likewise.
17585         (assemble_variable): Likewise.
17586         (output_constant_def_contents): Likewise.
17587         (categorize_decl_for_section): Likewise.
17588         (place_block_symbol): Likewise.
17589         (output_object_block): Likewise.
17590         * builtins.def: Likewise.
17591         * toplev.c (compile_file): Likewise.
17592         (process_options): Likewise.
17593         * cppbuiltin.c: Likewise.
17594         * tsan.c (tsan_pass): Likewise.
17595         (tsan_gate): Likewise.
17596         (tsan_gate_O0): Likewise.
17597         * cfgexpand.c (partition_stack_vars): Likewise.
17598         (expand_stack_vars): Likewise.
17599         (defer_stack_allocation): Likewise.
17600         (expand_used_vars): Likewise.
17601         * cfgcleanup.c (old_insns_match_p): Likewise.
17602         * asan.c (asan_finish_file): Likewise.
17603         (asan_instrument): Likewise.
17604         (gate_asan): Likewise.
17605         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17606         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17607         (asan_global_struct): Use pointer_sized_int_node instead
17608         calling build_nonstandard_integer_type.
17609         (initialize_sanitizer_builtins): Likewise.
17610         (asan_finish_file): Likewise.
17611         * gcc.c: Document %{%:function(args):X}.
17612         (static_spec_functions): Add sanitize.
17613         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17614         store funcval != NULL there.
17615         (do_spec_1): Adjust handle_spec_function caller.
17616         (handle_braces): Allow %:function(args) as condition.
17617         (sanitize_spec_function): New function.
17618         (ADD_STATIC_LIBUBSAN_LIBS): Define.
17619         (LIBUBSAN_SPEC): Likewise.
17620         (LIBUBSAN_EARLY_SPEC): Likewise.
17621         (SANITIZER_SPEC): Handle libubsan.
17622         (SANITIZER_EARLY_SPEC): Likewise.
17623         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17624         instead of fsanitize=address.
17625         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17626         instead of fsanitize=address*.
17627         * builtins.c: Include ubsan.h.
17628         (fold_builtin_0): Instrument __builtin_unreachable.
17629         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17630         instead of flag_asan.
17631         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17632         (pointer_sized_int_node): Define.
17633         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17635 2013-08-30  Mike Stump  <mikestump@comcast.net>
17637         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17638         with RE patterns.
17640 2013-08-29  Jan Hubicka  <jh@suse.cz>
17642         * cgraph.c (cgraph_function_body_availability): Handle weakref
17643         correctly.
17644         * passes.def: Remove pass_fixup_cfg.
17645         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17646         track when we need to remove functions.
17647         (gate_ipa_inline): Execute inlining always; add comment why.
17648         (pass_data_ipa_inline): Remove TODO_remove_functions.
17649         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17650         do not produce summaries.
17651         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17652         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17653         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17654         constant pool and vtable.
17656 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
17658         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17659         New arm_neon.h's internal macros to specify 64-bit constants.
17660         Avoid using stdint.h's macros.
17662 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17664         * recog.c (verify_changes): Verify that changes[i].old is non-zero
17665         before applying REG_P.
17667 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
17669         PR tree-optimization/58277
17670         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17671         after seeing too many stmts with vdef in between dombb and current
17672         bb, invalidate everything.
17674 2013-08-30  Richard Biener  <rguenther@suse.de>
17676         * fold-const.c (fold_single_bit_test): Fix overflow test.
17678 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
17680         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17681         and which can live in a register, always retrieve the value on entry.
17682         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17683         passed by invisible reference specially.
17684         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17685         (vt_add_function_parameter): Correctly deal with a parameter passed by
17686         invisible reference.
17688 2013-08-30  Jan Hubicka  <jh@suse.cz>
17690         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17692 2013-08-30  Richard Biener  <rguenther@suse.de>
17694         PR tree-optimization/58228
17695         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17696         allow invariant loads in nested loop vectorization.
17698 2013-08-30  Richard Biener  <rguenther@suse.de>
17700         PR tree-optimization/58223
17701         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17702         (has_anti_or_output_dependence): ... this and adjust to also
17703         look for output dependences.
17704         (mark_nodes_having_upstream_mem_writes): Adjust.
17705         (rdg_flag_uses): Likewise.
17707 2013-08-30  Richard Biener  <rguenther@suse.de>
17709         PR tree-optimization/58010
17710         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17711         assert that we have a loop-closed PHI.
17713 2013-08-29  Jan Hubicka  <jh@suse.cz>
17715         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17716         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17717         * lto-section-in.c (lto_free_function_in_decl_state): New function.
17718         (lto_free_function_in_decl_state_for_node): New function.
17720 2013-08-29  Xinliang David Li  <davidxl@google.com>
17722         * loop-unroll.c (report_unroll_peel): Minor message change.
17723         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17724         Emit alignment peeling message with default -fopt-info.
17725         (vect_loop_versioning): Emit loop version info message.
17726         * tree-vectorizer.c (vectorize_loops): Minor message change.
17727         (execute_vect_slp): Ditto.
17729 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
17731         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17732         of the clone from the DECL_NAME of the original function.
17734 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
17736         * passes.c (register_pass): Add overload.
17737         * tree-pass.h (register_pass): Forward declare it.  Add comment.
17739 2013-08-29  Jan Hubicka  <jh@suse.cz>
17741         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17742         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17743         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17744         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17745         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17746         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17747         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17748         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17750 2013-08-29  Teresa Johnson  <tejohnson@google.com>
17752         * dumpfile.c (dump_loc): Output column number.
17753         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17754         * doc/invoke.texi: Document optall -fopt-info flag.
17755         * profile.c (read_profile_edge_counts): Use new dump framework.
17756         (compute_branch_probabilities): Ditto.
17757         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17758         when pass not in any opt group.
17759         * pass_manager.h (pass_manager::get_pass_profile): New method.
17760         * value-prof.c (check_counter): Use new dump framework.
17761         (check_ic_target): Ditto.
17762         * coverage.c (get_coverage_counts): Ditto.
17763         (coverage_init): Setup new dump framework.
17765 2013-08-29  Richard Biener  <rguenther@suse.de>
17767         PR tree-optimization/58246
17768         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17769         handle the dominance check inside a basic-block.
17771 2013-08-29  Richard Biener  <rguenther@suse.de>
17773         PR middle-end/57287
17774         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17775         of default defs that appear in abnormal PHI nodes.
17777 2013-08-29  Richard Biener  <rguenther@suse.de>
17779         PR tree-optimization/57685
17780         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17781         single-use operands to avoid exponential complexity.
17783 2013-08-28  Dehao Chen  <dehao@google.com>
17785         * ipa-inline.c (edge_badness): Fix integer underflow.
17787 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
17789         * gtm-builtins.def (_ITM_free): Declare leaf.
17791 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17793         PR target/58067
17794         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17795         (*tls_local_dynamic_base_64_largepic): Likewise.
17796         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17797         Remove predicate from call operand.
17798         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17799         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17801 2013-08-28  Jeff Law  <law@redhat.com>
17803         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17804         checks for the number of predecessors and successors allowed.
17805         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17806         which require copying a joiner block if there is a request which
17807         is a subpath that requires no joiner block copying.
17809 2013-08-28  Jan Hubicka  <jh@suse.cz>
17811         * lto-streamer-out.c (DFS_write_tree_body): Drop
17812         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17813         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17814         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17815         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17816         Do not read DECL_ERROR_ISSUED.
17817         (unpack_ts_decl_with_vis_value_fields): Do not read
17818         DECL_DEFER_OUTPUT.
17819         (lto_input_ts_binfo_tree_pointers): Do not read
17820         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17821         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17822         write DECL_ERROR_ISSUED..
17823         (pack_ts_decl_with_vis_value_fields): Do not write
17824         DECL_DEFER_OUTPUT.
17825         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17826         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17827         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17828         * tree.h (tree_decl_common): Update comment.
17829         (DECL_ERROR_ISSUED): Remove.
17831 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17833         PR middle-end/58257
17834         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17836 2013-08-28  Jan Hubicka  <jh@suse.cz>
17838         * builtins.def (free): Declare leaf.
17840 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
17842         * gdbhooks.py: New.
17843         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17844         * configure: Regenerate.
17846 2013-08-27  Martin Jambor  <mjambor@suse.cz>
17848         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17849         (ipa_ancestor_jf_data): Likewise.
17850         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17851         (ipa_get_jf_pass_through_type_preserved): New function.
17852         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17853         (ipa_get_jf_ancestor_type_preserved): New function.
17854         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17855         (ipa_get_jf_ancestor_result): Likewise.
17856         (propagate_vals_accross_pass_through): Use
17857         ipa_get_jf_pass_through_result to do all the value mappings.
17858         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17859         type_preserved flag.
17860         (ipa_set_jf_cst_copy): New function.
17861         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17862         (ipa_set_jf_arith_pass_through): Likewise.
17863         (ipa_set_ancestor_jf): Likewise.
17864         (compute_complex_assign_jump_func): Set type_preserved instead of
17865         punting.
17866         (ipa_compute_jump_functions_for_edge): Likewise.
17867         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17868         (update_jump_functions_after_inlining): Update type_preserved.
17869         Explicitely create jump functions when combining one with pass_through.
17870         (ipa_write_jump_function): Stream the type_preserved flags.
17871         (ipa_read_jump_function): Likewise.
17873 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
17874             Aldy Hernandez  <aldyh@redhat.com>
17876         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17877         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17878         * function.h (struct function): Add has_force_vect_loops and
17879         has_simduid_loops.
17880         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17881         * gimple.c (gimple_build_omp_critical): Add KIND argument and
17882         handle it.
17883         * gimple.def: Update CLAUSES comments.
17884         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17885         (gimple_build_omp_for): Add argument to prototype.
17886         (gimple_omp_for_kind): New.
17887         (gimple_omp_for_set_kind): New.
17888         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17889         GOVD_DATA_SHARE_CLASS.
17890         (enum omp_region_type): Add ORT_SIMD.
17891         (gimple_add_tmp_var): Handle ORT_SIMD.
17892         (gimplify_var_or_parm_decl): Same.
17893         (is_gimple_stmt): Same.
17894         (omp_firstprivatize_variable): Same.
17895         (omp_add_variable): Only use splay_tree_insert if lookup failed.
17896         (omp_notice_variable): Handle ORT_SIMD.
17897         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17898         (omp_check_private): Handle ORT_SIMD.
17899         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17900         OMP_CLAUSE_SAFELEN.
17901         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17902         Handle OMP_CLAUSE_LASTPRIVATE.
17903         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17904         OMP_CLAUSE_SAFELEN.
17905         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17906         (gimplify_expr): Handle OMP_SIMD.
17907         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17908         (expand_GOMP_SIMD_VF): New.
17909         (expand_GOMP_SIMD_LAST_LANE): New.
17910         * internal-fn.def (GOMP_SIMD_LANE): New.
17911         (GOMP_SIMD_VF): New.
17912         (GOMP_SIMD_LAST_LANE): New.
17913         * omp-low.c: Include target.h.
17914         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17915         OMP_CLAUSE_SAFELEN.
17916         (check_omp_nesting_restrictions): Same.
17917         (omp_max_vf): New.
17918         (lower_rec_simd_input_clauses): New.
17919         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17920         OMP_CLAUSE_LINEAR.
17921         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17922         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17923         (expand_omp_build_assign): New.
17924         (expand_omp_for_init_counts): New.
17925         (expand_omp_for_init_vars): New.
17926         (extract_omp_for_update_vars): New.
17927         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17928         and rewrite accordingly.
17929         (expand_omp_simd): New.
17930         (expand_omp_for): Use expand_omp_simd.
17931         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17932         (lower_omp_for): Do not lower the body.
17933         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17934         in their own loops.
17935         * tree-flow.h (find_omp_clause): Remove prototype.
17936         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17937         forcing vectorization of the loop, or if flag_tree_vectorize.
17938         (gate_tree_if_conversion): Similarly.
17939         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17940         gimple_build_omp_for.
17941         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17942         * tree-parloops (create_parallel_loop): Pass kind argument to
17943         gimple_build_omp_for.
17944         * tree-pretty-print.c (dump_omp_clause): Add cases for
17945         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17946         OMP_CLAUSE__SIMDUID_.
17947         (dump_generic_node): Handle OMP_SIMD.
17948         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17949         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17950         unroll OMP_SIMD loops here.
17951         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17952         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17953         loop->safelen.
17954         (vect_analyze_data_refs): Handle simd loops.
17955         * tree-vect-loop.c (vectorizable_live_operation): Handle
17956         IFN_GOMP_SIMD*.
17957         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17958         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17959         (vectorizable_load): Same.
17960         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17961         (struct simduid_to_vf): New.
17962         (simduid_to_vf::hash): New.
17963         (simduid_to-vf::equal): New.
17964         (struct simd_array_to_simduid): New.
17965         (simd_array_to_simduid::hash): New.
17966         (simd_array_to_simduid::equal): New.
17967         (adjust_simduid_builtins): New.
17968         (struct note_simd_array_uses_struct): New.
17969         (note_simd_array_uses_cb): New.
17970         (note_simd_array_uses): New.
17971         (vectorize_loops): Handle simd hints and adjust simd builtins
17972         accordingly.
17973         * tree-vectorizer.h (struct _stmt_vec_info): Add
17974         simd_lane_access_p field.
17975         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17976         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17977         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17978         (omp_clause_code_name): Same.
17979         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17980         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17981         * tree.def (OMP_SIMD): New entry.
17982         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17983         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17984         (OMP_CLAUSE_DECL): Adjust range for new clauses.
17985         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17986         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17987         (OMP_CLAUSE_LINEAR_STEP): New.
17988         (OMP_CLAUSE_SAFELEN_EXPR): New.
17989         (OMP_CLAUSE__SIMDUID__DECL): New.
17990         (find_omp_clause): New prototype.
17992 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
17994         * config/i386/driver-i386.c (host_detect_local_cpu): Update
17995         Haswell processor detection.
17997 2013-08-27  Christian Widmer  <shadow@umbrox.de>
17999         PR target/57927
18000         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
18001         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
18002         AVX2 capable processors.
18004 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
18006         * config/aarch64/arm_neon.h: Replace all inline asm implementations
18007         of vget_low_* with implementations in terms of other intrinsics.
18009 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
18011         PR middle-end/57219
18012         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
18013         values to -1, 0 and 1.
18015 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
18017         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
18018         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
18019         (<optab><mode>3_insn): Remove.
18020         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
18021         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
18022         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18023         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
18024         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
18025         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
18026         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
18027         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
18028         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
18029         (ror<mode>3_insn): Likewise.
18030         * config/aarch64/predicates.md (aarch64_simd_register): New.
18032 2013-08-27  Richard Biener  <rguenther@suse.de>
18034         PR tree-optimization/57521
18035         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
18036         one edge is non-critical.
18037         (find_phi_replacement_condition): Make sure to use a non-critical
18038         edge.  Cleanup and remove old bug workarounds.
18039         (bb_postdominates_preds): Remove.
18040         (if_convertible_loop_p_1): Do not compute post-dominators.
18041         (combine_blocks): Do not free post-dominators.
18042         (main_tree_if_conversion): Likewise.
18043         (pass_data_if_conversion): Add TODO_verify_ssa.
18045 2013-08-27  DJ Delorie  <dj@redhat.com>
18047         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
18049 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
18051         * function.c (assign_parm_find_data_types): Set passed_mode and
18052         nominal_mode to the TYPE_MODE of nominal_type for the built
18053         pointer type in case of the struct-pass-by-reference.
18055 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
18057         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
18058         (UINT16_TYPE): Change default to "unsigned int".
18060         * config/avr/avr.opt (mfract-convert-truncate): New option.
18061         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
18062         is set, round negative fractional integers according to n1169
18063         when converting to integer types.
18065 2013-08-26  Jan Hubicka  <jh@suse.cz>
18067         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
18068         methods can not be called indirectly when their address is not taken.
18070 2013-08-26  Jan Hubicka  <jh@suse.cz>
18072         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
18073         ctor_for_folding.
18075 2013-08-26  Jan Hubicka  <jh@suse.cz>
18077         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
18078         can be unshared.
18080 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
18082         * reload.c (find_valid_class): Allow classes that do not include
18083         FIRST_PSEUDO_REGISTER - 1.
18085 2013-08-26  Jan Hubicka  <jh@suse.cz>
18087         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
18088         fix edge count/frequency when speculation failed; fix type check
18089         for the direct call.
18091 2013-08-26  Jan Hubicka  <jh@suse.cz>
18093         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
18095 2013-08-26  Jan Hubicka  <jh@suse.cz>
18097         * ipa-inline-transform.c (inline_transform): Be ready for basic block
18098         to be changed by edge redirection.
18100 2013-08-26  Jan Hubicka  <jh@suse.cz>
18102         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
18103         formating; add sanity check.
18104         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
18105         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
18106         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
18107         (resolve_noninline_speculation): Update callee keys, too.
18109 2013-08-26  Jan Hubicka  <jh@suse.cz>
18111         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
18112         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
18114 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
18116         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
18117         into proper place.
18119 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
18121         * config/i386/i386.c (ix86_debug_options): Remove prototype.
18122         (x86_64_elf_select_section): Ditto.
18123         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
18124         arguments.
18125         (ix86_pass_by_reference): Ditto.
18126         (output_set_got): Ditto.
18127         (ix86_unary_operator_ok): Ditto.
18128         (ix86_expand_builtin): Ditto.
18130 2013-08-23  Jan Hubicka  <jh@suse.cz>
18132         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
18134 2013-08-23  Jan Hubicka  <jh@suse.cz>
18136         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
18137         (tree_decl_with_vis): Add FINAL field.
18139 2013-08-23  Jeff Law  <law@redhat.com>
18141         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
18142         the debugging dump when the expression is fully redundant.
18144 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18146         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
18147         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
18148         * pretty-print.c (pp_formatted_text_data): Likewise.
18149         (pp_write_text_to_stream): Likewise.
18150         (pp_write_text_as_dot_label_to_stream): Likewise.
18151         (pp_append_r): Likewise.
18152         (pp_format): Likewise.
18153         (pp_flush): Likewise.
18154         (pp_clear_output_area): Likewise.
18155         (pp_append_text): Likewise.
18156         (pp_formatted_text): Likewise.
18157         (pp_remaining_character_count_for_line): Likewise.
18158         (pp_newline): Likewise.
18159         (pp_character): Likewise.
18160         (output_buffer::~output_buffer): Define.
18161         (pretty_printer::~pretty_printer): Destruct output buffer.
18162         * pretty-print.h (output_buffer::~output_buffer): Declare.
18163         (pretty_printer::~pretty_printer): Declare virtual.
18165 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
18167         PR other/57324
18168         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
18169         HOST_WIDE_INT_M1U): New macros.
18170         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
18171         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
18172         unsigned -1 for lshift.
18173         * cse.c (cse_insn): Likewise.
18174         * double-int.c (rshift_double, lshift_double): Likewise.
18175         * builtins.c (fold_builtin_bitop): Likewise.
18176         * combine.c (force_to_mode): Likewise.
18177         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
18178         * simplify-rtx.c (simplify_const_unary_operation,
18179         simplify_const_binary_operation): Likewise.
18180         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
18181         check_va_list_escapes): Likewise.
18182         * rtlanal.c (nonzero_bits1): Likewise.
18183         * expmed.c (expand_smod_pow2): Likewise.
18184         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
18186 2013-08-23  Jan Hubicka  <jh@suse.cz>
18188         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
18189         as having address taken.
18191 2013-08-23  Jan Hubicka  <jh@suse.cz>
18193         * ipa-utils.h (method_class_type): Declare.
18194         * ipa-devirt.c (method_class_type): Export.
18196         * cgraphunit.c (analyze_functions): Do basic devirtualization;
18197         do not walk base classes of anonymous types.
18199 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
18201         PR rtl-optimization/58220
18202         PR regression/58221
18203         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
18204         handle SEQUENCE insns properly.
18206 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18208         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
18209         definition.
18210         (pp_newline_and_indent): Likewise.
18211         (pp_separate_with): Likewise.
18212         * pretty-print.c (pp_newline_and_flush): Define.
18213         (pp_newline_and_indent): Likewise.
18214         (pp_separate_with): Likewise.
18216 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
18218         PR target/58218
18219         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
18220         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
18222 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
18224         * config/i386/predicates.md (ext_sse_reg_operand): New.
18225         * config/i386/i386.md (*movti_internal): Use
18226         predicate to determine if EVEX is needed.
18227         (*movsi_internal): Ditto.
18228         (*movdf_internal): Ditto.
18229         (*movsf_internal): Ditto.
18230         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
18232 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
18234         PR tree-optimization/58209
18235         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
18236         (find_tail_calls): Give up for pointer result types if m is non-NULL.
18237         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
18238         emit POINTER_PLUS_EXPR.
18239         (create_tailcall_accumulator): For pointer result type accumulate in
18240         sizetype type.
18242 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
18244         * configure.ac: Add backslashes missing from the last change.
18245         * configure: Regenerate.
18247 2013-08-22  Jan Hubicka  <jh@susue.cz>
18249         * ipa.c (function_and_variable_visibility): First remember function
18250         was global and then make it local.
18252 2013-08-22  Julian Brown  <julian@codesourcery.com>
18254         * configure.ac: Add aarch64 to list of arches which use "nop" in
18255         debug_line test.
18256         * configure: Regenerate.
18258 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18260         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
18261         gnu_libc_has_function.
18262         * config/s390/tpf.h: Likewise.
18264 2013-08-22  Jan Hubicka  <jh@susue.cz>
18266         * timevar.c (validate_phases): Add cast.
18268 2013-08-22  Jan Hubicka  <jh@susue.cz>
18270         * timevar.c (validate_phases): Use size_t for memory.
18271         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18273 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18275         * pretty-print.h (output_buffer::output_buffer): Declare.
18276         (pretty_printer::pretty_printer): Likewise.
18277         (pp_construct): Remove.
18278         * pretty-print.c (output_buffer::output_buffer): Define.
18279         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
18280         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18281         (print_gimple_expr): Likewise.
18282         (print_gimple_seq): Likewise.
18283         (gimple_dump_bb): Likewise.
18284         * sched-vis.c (dump_value_slim): Likewise.
18285         (dump_insn_slim): Likewise.
18286         (dump_rtl_slim): Likewise.
18287         (str_pattern_slim): Likewise.
18288         * tree-mudflap.c (mf_varname_tree): Likewise.
18289         * graph.c (print_graph_cfg): Likewise.
18290         (start_graph_dump): Likewise.
18291         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
18292         placement-new.
18293         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18294         pretty printer initialization.
18295         * coretypes.h (diagnostic_context): Remove superflous type alias
18296         declaration.
18297         (pretty_printer): Likewise.  Declare directly as a class.
18298         (pretty_print_info): Remove declaration as class.
18299         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18300         and pp_clear_output_area.
18301         (asan_add_global): Likewise.
18303 2013-08-22  Jan Hubicka  <jh@suse.cz>
18305         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18306         * ipa-utils.h (update_type_inheritance_graph): Declare.
18307         (possible_polymorphic_call_target_p): Declare.
18308         (possible_polymorphic_call_target_p): New.
18309         * ipa-devirt.c: Update toplevel comments.
18310         (cached_polymorphic_call_targets): Move up.
18311         (odr_type_d): Move ID down.
18312         (polymorphic_type_binfo_p): Update comment.
18313         (odr_hasher::remove): Likewise;
18314         (get_odr_type): Set anonymous_namespace.
18315         (dump_odr_type): Dump it.
18316         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18317         (maybe_record_node): Record node in cached_polymorphic_call_targets.
18318         (record_binfo): Add comment.
18319         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18320         built.
18321         (devirt_node_removal_hook): Do not iCE when cache is freed.
18322         (possible_polymorphic_call_target_p): New predicate.
18323         (update_type_inheritance_graph): New function.
18325 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18326             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18327             Sergey Lega  <sergey.s.lega@intel.com>
18328             Anna Tikhonova  <anna.tikhonova@intel.com>
18329             Ilya Tocar  <ilya.tocar@intel.com>
18330             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18331             Ilya Verbin  <ilya.verbin@intel.com>
18332             Kirill Yukhin  <kirill.yukhin@intel.com>
18333             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18335         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18336         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18337         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18338         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18339         (OPTION_MASK_ISA_AVX2_UNSET): Update.
18340         (OPTION_MASK_ISA_AVX512F_UNSET): New.
18341         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18342         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18343         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18344         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18345         OPT_mavx512pf, OPT_mavx512er cases.
18346         * config/i386/constraints.md (v): New constraint.
18347         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18348         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18349         (bit_AVX512CD): New.
18350         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18351         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18352         * config/i386/i386-c.c (ix86_target_macros_internal):
18353         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18354         __AVX512PF__.
18355         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18356         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18357         * config/i386/i386.c (regclass_map, dbx_register_map)
18358         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18359         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18360         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18361         -mavx512pf options.
18362         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18363         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
18364         -mavx512pf options.  Fix formatting.
18365         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18366         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
18367         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18368         -mavx512cd, -mavx512pf options.
18369         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18370         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18371         (ix86_preferred_output_reload_class): Replace SSE_REGS with
18372         ALL_SSE_REGS.
18373         (ix86_hard_regno_mode_ok): Support 512-bit registers.
18374         (ix86_set_reg_reg_cost): Ditto.
18375         (x86_order_regs_for_local_alloc): Ditto.
18376         (MAX_VECT_LEN): Extend to 64-byte.
18377         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18378         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18379         (TARGET_AVX512ER, TARGET_AVX512CD): New.
18380         (BIGGEST_ALIGNMENT): Extend to 512-bits.
18381         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18382         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18383         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18384         (SSE_REG_MODE_P): Support new modes.
18385         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18386         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18387         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18388         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18389         (REG_CLASS_CONTENTS): Add new registers.
18390         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18391         (EXT_REX_SSE_REGNO_P): New.
18392         (HI_REGISTER_NAMES): Add new registers.
18393         * config/i386/i386.md: Define constants for new registers.
18394         (mode): Add new 512-bit modes.
18395         (prefix): Support evex prefix.
18396         (isa): Support avx512f, noavx512f, fma_avx512f.
18397         (ssemodesuffix): Add new 512-bit modes.
18398         (movxi): New.
18399         (*movxi_internal_avx512f): Ditto.
18400         (*movdi_internal): Replace constraint "x" with the new constraint "v".
18401         Support MODE_XI.
18402         (*movsi_internal): Likewise.
18403         (*movdf_internal): Likewise.
18404         (*movsf_internal): Likewise.
18405         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18406         (<code><mode>3): Likewise.
18407         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18408         New.
18409         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18410         with the new constraint "v".
18411         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18412         modes.
18413         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18414         with the new constraint "v".
18415         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18416         (<sse2>_storedqu<avxsizesuffix>): Likewise.
18417         (*<plusminus_insn><mode>3): Likewise.
18418         (<sse>_vm<plusminus_insn><mode>3): Likewise.
18419         (*mul<mode>3): Likewise.
18420         (<sse>_vmmul<mode>3): Likewise.
18421         (<sse>_div<mode>3): Likewise.
18422         (<sse>_vmdiv<mode>3): Likewise.
18423         (<sse>_sqrt<mode>2): Likewise.
18424         (<sse>_vmsqrt<mode>2): Likewise.
18425         (*<code><mode>3_finite): Likewise.
18426         (*<code><mode>3) <smaxmin>: Likewise.
18427         (<sse>_vm<code><mode>3): Likewise.
18428         (*<code><mode>3) <any_logic>: Likewise.
18429         (*fma_fmadd_<mode>): Likewise.
18430         (*fma_fmsub_<mode>): Likewise.
18431         (*fma_fnmadd_<mode>): Likewise.
18432         (*fma_fnmsub_<mode>): Likewise.
18433         (*fma_fmaddsub_<mode>): Likewise.
18434         (*fma_fmsubadd_<mode>): Likewise.
18435         (*fmai_fmadd_<mode>): Likewise.
18436         (*fmai_fmsub_<mode>): Likewise.
18437         (*fmai_fnmadd_<mode>): Likewise.
18438         (*fmai_fnmsub_<mode>): Likewise.
18439         (sse_cvtsi2ss): Likewise.
18440         (sse_cvtsi2ssq): Likewise.
18441         (sse_cvtss2si): Likewise.
18442         (sse_cvtss2si_2): Likewise.
18443         (sse_cvtss2siq): Likewise.
18444         (sse_cvtss2siq_2): Likewise.
18445         (sse_cvttss2si): Likewise.
18446         (sse_cvtss2siq_2): Likewise.
18447         (float<sseintvecmodelower><mode>2): Likewise.
18448         (sse2_cvtsd2si_2): Likewise.
18449         (sse2_cvtsd2siq_2): Likewise.
18450         (*<plusminus_insn><mode>3): Likewise.
18451         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18452         (*<sse4_1_avx2>_mul<mode>3): Likewise.
18453         (ashr<mode>3): Likewise.
18454         (<shift_insn><mode>3): Likewise.
18455         (avx2_<code><mode>3): Likewise.
18456         (*avx2_<code><mode>3): Likewise.
18457         (*andnot<mode>3): Likewise.
18458         (*<code><mode>3) <any_logic>: Likewise.
18459         (abs<mode>2): Likewise.
18460         (avx2_permvar<mode>): Likewise.
18461         (avx2_perm<mode>_1): Likewise.
18462         (*avx_vpermilp<mode>): Likewise.
18463         (avx_vpermilvar<mode>3): Likewise.
18464         (avx2_ashrv<mode>): Likewise.
18465         (avx2_<shift_insn>v<mode>): Likewise.
18466         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18467         -mavx512cd.
18468         * doc/rtl.texi: Document XImode.
18470 2013-08-21  Jeff Law  <law@redhat.com>
18472         * tree-flow.h (register_jump_thread): Pass vector of edges
18473         instead of each important edge.
18474         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18475         thread path into a vector and pass that to register_jump_thread.
18476         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18477         passed in edge vector to the current 3-edge form.
18479         Revert:
18480         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18482         * dce.c (fini_dce): Call df_analyze again just in case
18483         delete_unmarked_insns removed anything.
18485 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
18487         * reload.h (struct reg_equivs): Rename to ..
18488         (struct reg_equivs_s): .. this.
18490 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
18492         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18494 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18496         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18498 2013-08-21  Jeff Law  <law@redhat.com>
18500         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18501         simplify assignments too.  If the RHS collapses to a singleton
18502         range, then return the value for the range.
18504 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18506         * config/i386/sse.md (V16): Rename to...
18507         (VMOVE): this.
18508         (mov<mode>): Update iterator name.
18509         (*mov<mode>_internal): Ditto.
18510         (push<mode>1): Ditto.
18511         (movmisalign<mode>): Ditto.
18513 2013-08-20  Jan Hubicka  <jh@suse.cz>
18515         PR bootstrap/58186
18516         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18517         entry for direct edges.
18518         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18520 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18522         Revert my last two changes, r201865 and r201864:
18524         Revert r201865:
18525         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18527         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18528         instances can own GC refs.
18530         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18531         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18532         (gcc::context::gt_pch_nx): Likewise.
18533         (gcc::context::gt_pch_nx):  Likewise.
18534         * ggc.h (gt_ggc_mx <T>): New.
18535         (gt_pch_nx_with_op <T>): New.
18536         (gt_pch_nx <T>): New.
18537         * passes.c (opt_pass::gt_ggc_mx): New.
18538         (opt_pass::gt_pch_nx): New.
18539         (opt_pass::gt_pch_nx_with_op): New.
18540         (pass_manager::gt_ggc_mx): New.
18541         (pass_manager::gt_pch_nx): New.
18542         (pass_manager::gt_pch_nx_with_op): New.
18543         (pass_manager::operator new): Use
18544         ggc_internal_cleared_alloc_stat rather than xcalloc.
18545         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18546         (pass_manager::gt_ggc_mx): New.
18547         (pass_manager::gt_pch_nx): New.
18548         (pass_manager::gt_pch_nx_with_op): New.
18549         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18550         (opt_pass::operator new): New.
18551         (opt_pass::gt_ggc_mx): New.
18552         (opt_pass::gt_pch_nx): New.
18553         (opt_pass::gt_pch_nx_with_op): New.
18555         Revert r201864:
18556         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18558         * Makefile.in (GTFILES): Add context.h.
18559         * context.c (gcc::context::operator new): New.
18560         (gcc::context::gt_ggc_mx): New.
18561         (gcc::context::gt_pch_nx): New.
18562         (gcc::context::gt_pch_nx): New.
18563         * context.h (gcc::context): Add GTY((user)) marking.
18564         (gcc::context::operator new): New.
18565         (gcc::context::gt_ggc_mx): New.
18566         (gcc::context::gt_pch_nx): New.
18567         (gcc::context::gt_pch_nx): New.
18568         (g): Add GTY marking.
18569         (gt_ggc_mx (gcc::context *)): New.
18570         (gt_pch_nx (gcc::context *)): New.
18571         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18572         void *cookie)): New.
18573         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18575 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18577         * dce.c (fini_dce): Call df_analyze again just in case
18578         delete_unmarked_insns removed anything.
18580 2013-08-20  Teresa Johnson  <tejohnson@google.com>
18582         PR rtl-optimizations/57451
18583         * final.c (reemit_insn_block_notes): Prevent lexical blocks
18584         from crossing split section boundaries.
18586 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
18588         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18589         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18590         with MULTLIB_DEFAULTS.
18592 2013-08-20  Nick Clifton  <nickc@redhat.com>
18594         * target.def (narrow_volatile_bitfield): Note that the default
18595         value is false, not !TARGET_STRICT_ALIGN.
18596         * doc/tm.texi: Regenerate.
18598 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
18600         Fix LIB_SPEC for systems without libpthread.
18602         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18603         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18604         for Android.
18605         * config/i386/linux-common.h: Likewise.
18606         * config/mips/linux-common.h: Likewise.
18608 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18610         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18611         checks.
18613 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18615         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18616         instances can own GC refs.
18618         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18619         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18620         (gcc::context::gt_pch_nx): Likewise.
18621         (gcc::context::gt_pch_nx):  Likewise.
18622         * ggc.h (gt_ggc_mx <T>): New.
18623         (gt_pch_nx_with_op <T>): New.
18624         (gt_pch_nx <T>): New.
18625         * passes.c (opt_pass::gt_ggc_mx): New.
18626         (opt_pass::gt_pch_nx): New.
18627         (opt_pass::gt_pch_nx_with_op): New.
18628         (pass_manager::gt_ggc_mx): New.
18629         (pass_manager::gt_pch_nx): New.
18630         (pass_manager::gt_pch_nx_with_op): New.
18631         (pass_manager::operator new): Use
18632         ggc_internal_cleared_alloc_stat rather than xcalloc.
18633         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18634         (pass_manager::gt_ggc_mx): New.
18635         (pass_manager::gt_pch_nx): New.
18636         (pass_manager::gt_pch_nx_with_op): New.
18637         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18638         (opt_pass::operator new): New.
18639         (opt_pass::gt_ggc_mx): New.
18640         (opt_pass::gt_pch_nx): New.
18641         (opt_pass::gt_pch_nx_with_op): New.
18643 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18645         * Makefile.in (GTFILES): Add context.h.
18646         * context.c (gcc::context::operator new): New.
18647         (gcc::context::gt_ggc_mx): New.
18648         (gcc::context::gt_pch_nx): New.
18649         (gcc::context::gt_pch_nx): New.
18650         * context.h (gcc::context): Add GTY((user)) marking.
18651         (gcc::context::operator new): New.
18652         (gcc::context::gt_ggc_mx): New.
18653         (gcc::context::gt_pch_nx): New.
18654         (gcc::context::gt_pch_nx): New.
18655         (g): Add GTY marking.
18656         (gt_ggc_mx (gcc::context *)): New.
18657         (gt_pch_nx (gcc::context *)): New.
18658         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18659         void *cookie)): New.
18660         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18662 2013-08-20  Alan Modra  <amodra@gmail.com>
18664         PR target/57865
18665         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18666         (rs6000_emit_epilogue): Likewise.
18668 2013-08-19  Dehao Chen  <dehao@google.com>
18670         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18672 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
18673             Jakub Jelinek  <jakub@redhat.com>
18675         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18676         (BUILT_IN_FABSD64): Likewise.
18677         (BUILT_IN_FABSD128): Likewise.
18678         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18679         (fold_builtin_1): Likewise.
18680         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18681         destination and source operands.
18682         (*abstd2_fpr): Likewise.
18683         (*nabstd2_fpr): Likewise.
18685 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
18687         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18688         JUMP_P and INSN_P.
18690 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
18692         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18693         incomplete.
18695 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18697         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18698         * builtins.c (default_libc_has_function): New.
18699         (gnu_libc_has_function): Ditto.
18700         (no_c99_libc_has_function): Ditto.
18701         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18702         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18703         (fold_builtin_sincos): Likewise.
18704         (fold_builtin_cexp): Likewise.
18705         * builtins.def (DEF_C94_BUILTIN): Likewise.
18706         (DEF_C99_BUILTIN): Likewise.
18707         (DEF_C99_C90RES_BUILTIN): Likewise.
18708         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18709         definitions to using this define.
18710         * config/darwin-protos.h (darwin_libc_has_function): New.
18711         * config/darwin.c (darwin_libc_has_function): Ditto.
18712         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18713         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18714         * config/darwin.h: Ditto.
18715         * config/elfos.h: Ditto.
18716         * config/freebsd.h: Ditto.
18717         * config/i386/cygming.h: Ditto.
18718         * config/i386/djgpp.h: Ditto.
18719         * config/i386/i386-interix.h: Ditto.
18720         * config/microblaze/microblaze.h: Ditto.
18721         * config/mmix/mmix.h: Ditto.
18722         * config/gnu-user.h: Ditto.
18723         * config/ia64/hpux.h: Ditto.
18724         * config/pa/pa-hpux.h: Ditto.
18725         * config/pdp11/pdp11.h: Ditto.
18726         * config/picochip/picochip.h: Ditto.
18727         * config/linux.h: Ditto.
18728         * config/netbsd.h: Ditto.
18729         * config/openbsd.h: Ditto.
18730         * config/rs6000/aix43.h: Ditto.
18731         * config/rs6000/aix51.h: Ditto.
18732         * config/rs6000/aix52.h: Ditto.
18733         * config/rs6000/aix53.h: Ditto.
18734         * config/rs6000/aix61.h: Ditto.
18735         * config/rs6000/darwin.h: Ditto.
18736         * config/rs6000/linux.h: Ditto.
18737         * config/rs6000/linux64.h: Ditto.
18738         * config/s390/tpf.h: Ditto.
18739         * config/sol2-10.h: Ditto.
18740         * config/sol2.h: Ditto.
18741         * config/vms/vms.h: Ditto.
18742         * config/vxworks.h: Ditto.
18743         * config/linux-android.c (linux_android_libc_has_function):
18744         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18745         * config/linux-protos.h (linux_android_libc_has_function):
18746         New declaration.
18747         * config/i386/i386.c (ix86_libc_has_function): New.
18748         * config/i386/i386-protos.h
18749         (ix86_libc_has_function): New declaration.
18750         * config/i386/i386.md
18751         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18752         ("isinf<mode>2): Likewise.
18753         * convert.c (convert_to_integer): Using new target hook
18754         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18755         TARGET_C99_FUNCTIONS.
18756         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18757         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18758         * coretypes.h (function_class): New enum for different
18759         classes of functions.
18760         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18761         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18762         (TARGET_HAS_SINCOS): Likewise.
18763         (TARGET_LIBC_HAS_FUNCTION): New.
18764         * doc/tm.texi: Regenerated.
18765         * targhooks.h (default_libc_has_function): New declaration.
18766         (no_c99_libc_has_function): Ditto.
18767         (gnu_libc_has_function): Ditto.
18768         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18769         and TARGET_HAS_SINCOS.
18771 2013-08-18  Jan Hubicka  <jh@suse.cz>
18773         * Makeifle-in (ipa-devirt.o): New.
18774         (GTFILES): Add ipa-utils.h and ipa-devirt.c
18775         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18776         (analyze_functions): Look into possible targets of polymorphic call.
18777         * dumpfile.c (dump_files): Add type-inheritance dump.
18778         * dumpfile.h (TDI_inheritance): New.
18779         * ipa-devirt.c: New file.
18780         * ipa-utils.h (odr_type_d): Forward declare.
18781         (odr_type): New type.
18782         (build_type_inheritance_graph): Declare.
18783         (possible_polymorphic_call_targets): Declare and introduce inline
18784         variant when only edge is pased.
18785         (dump_possible_polymorphic_call_targets): Likewise.
18786         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18787         * tree.c (type_in_anonymous_namespace_p): Break out from ...
18788         (types_same_for_odr): ... here.
18789         * tree.h (type_in_anonymous_namespace_p): Declare.
18791 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
18793         PR tree-optimization/58006
18794         * tree-parloops.c (take_address_of): Don't ICE if get_name
18795         returns NULL.
18796         (eliminate_local_variables_stmt): Remove clobber stmts.
18798 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
18800         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18801         error message is issued for an alias to undefined symbol.
18803 2013-08-18  Jan Hubicka  <jh@suse.cz>
18805         * cgraph.c (cgraph_create_indirect_edge): Discover
18806         polymorphic calls and record basic info into indirect_info.
18807         * gimple-fold.c (gimple_fold_call): When doing BINFO based
18808         devirtualization, ignore objc function calls.
18809         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18810         call with no parm index info.
18811         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18812         * tree.c (virtual_method_call_p): New function.
18813         * tree.h (virtual_method_call_p): Declare.
18815 2013-08-16  Jan Hubicka  <jh@suse.cz>
18817         PR middle-end/58179
18818         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18820 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
18822         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18823         attribute.
18825 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18827         * gengtype.c (type_for_name): Add special-case support for
18828         locating types within the "gcc::" namespace.
18829         (open_base_files): Emit a "using namespace gcc" directive.
18831 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
18833         PR target/58160
18834         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18835         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18837         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18838         array instead of each individual operand as a separate argument.
18839         (emit_fusion_gpr_load): Likewise.
18840         (expand_fusion_gpr_load): Add new function declaration.
18842         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18843         signature to have the operands passed as an array, instead of as
18844         separate arguments.  Allow ZERO_EXTEND to be in the memory
18845         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
18846         depend on the register live/dead flags when peepholes are run.
18847         (expand_fusion_gpr_load): New function to be called from the
18848         peephole2 pass, to change the register that addis sets to be the
18849         target register.
18850         (emit_fusion_gpr_load): Change the calling signature to have the
18851         operands passed as an array, instead of as separate arguments.
18852         Allow ZERO_EXTEND to be in the memory address, and also
18853         SIGN_EXTEND if -mpower8-fusion-sign.
18855         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18856         unspec enumeration.
18857         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18858         adjust the register addis loads up in the peephole2 pass.  Do not
18859         depend on the register live/dead state when the peephole pass is done.
18861 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18863         * gengtype.c (create_user_defined_type): Ensure that the kind
18864         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18865         declaration is seen before the GTY((user)) marking.
18867 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18869         PR target/58105
18870         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18872 2013-08-16  Jan Hubicka  <jh@suse.cz>
18874         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18875         arugment expected_type.
18876         (gimple_fold_call): Use it.
18877         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18878         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18879         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18880         (try_make_edge_direct_virtual_call): Likewise.
18881         * tree.c (obj_type_ref_class): New.
18882         * tree.h (obj_type_ref_class): Use it.
18884 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18886         * sched-vis.c (rtl_slim_pp_initialized): Remove.
18887         (rtl_slim_pp): Likewise.
18888         (init_rtl_slim_pretty_print): Likewise.
18889         (dump_value_slim):  Don't call it.  Use local pretty printer.
18890         (dump_insn_slim): Likewise.
18891         (dump_rtl_slim): Likewise.
18892         (str_pattern_slim): Likewise.
18893         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18894         Simplify.
18896 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
18898         PR tree-optimization/58164
18899         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18900         walk gimple_goto_dest of GIMPLE_GOTO.
18902         PR tree-optimization/58165
18903         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18904         bi_call must be the last stmt in a bb, don't split_block, instead
18905         use fallthru edge from it and give up if there is none.
18906         Release conds vector when returning early.
18908 2013-08-14  Xinliang David Li  <davidxl@google.com>
18910         * config/i386/i386.c (ix86_option_override_internal):
18911         Remove unused variable and field.
18913 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18915         PR target/57949
18916         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18917         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18918         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18919         and Linux, correct BLKmode alignment when 128-bit alignment is
18920         required and compatibility flag is not set.
18921         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18922         for zero-size arguments when compatibility flag is not set.
18924 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18926         PR tree-optimization/58145
18927         * tree-sra.c (build_ref_for_offset): If prev_base has
18928         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18930 2013-08-14  Xinliang David Li  <davidxl@google.com>
18932         * config/i386/i386.c (ix86_option_override_internal):
18933         Fix uninitialized variable error.
18935 2013-08-14  Xinliang David Li  <davidxl@google.com>
18937         * config/i386/i386.opt: Define two new options.
18938         * config/i386/x86-tune.def: Add arch selector field in macros.
18939         * config/i386/i386.h: Adjust macro definition.
18940         * config/i386/i386.c (ix86_option_override_internal):
18941         Refactor the code.
18942         (parse_mtune_ctrl_str): New function.
18943         (set_ix86_tune_features): New function.
18944         (ix86_function_specific_restore): Call the new helper function.
18946 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
18948         PR rtl-optimization/57662
18949         * sel-sched.c (code_motion_process_successors): When the current insn
18950         is removed after the recursive traversal, break from the loop.
18951         Add comments and debug printouts.
18953 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18954             Alexandre Oliva  <aoliva@redhat.com>
18956         PR target/58067
18957         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18958         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18959         there also UNSPEC_PLTOFF.
18961 2013-08-14  Marek Polacek  <polacek@redhat.com>
18963         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18964         NUM_CONDITIONS bit positions.
18966 2013-08-13  Cary Coutant  <ccoutant@google.com>
18968         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18969         (attr_checksum): Hash vector contents instead of pointer.
18970         (attr_checksum_ordered): Likewise.
18972 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
18974         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18975         when Pmode != word_mode.  Add length_address attribute.
18976         (sse3_monitor_<mode>): Merge from sse3_monitor and
18977         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
18978         Pmode != word_mode.  Update insn length attribute.
18979         * config/i386/i386.c (ix86_option_override_internal): Update
18980         ix86_gen_monitor selection for merged sse3_monitor insn.
18982 2013-08-13  Julian Brown  <julian@codesourcery.com>
18984         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18985         perform invalid legitimization on greater-than-word-size modes for
18986         TARGET_E500_DOUBLE.
18988 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18990         * ira.c (setup_class_translate_array): Use aclass instead of cl
18991         for classes not fully covered by allocno classes.
18993 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
18995         PR tree-optimization/57661
18996         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18997         * tree-inline.c (tree_function_versioning): Initialize it.
18998         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18999         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
19000         that is not being copied.
19002         PR sanitizer/56417
19003         * asan.c (instrument_strlen_call): Fix typo in comment.
19004         Use char * type even for the lhs of POINTER_PLUS_EXPR.
19006 2013-08-13  Steve Ellcey  <sellcey@mips.com>
19008         * config/mips/mips.md (prefetch): Use lw instead of ld on
19009         loongson in 32bit mode.
19011 2013-08-13  Nick Clifton  <nickc@redhat.com>
19013         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
19015 2013-08-13  Jan Hubicka  <jh@suse.cz>
19017         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
19018         introduced edge; fix typo in sanity check.
19019         (cgraph_resolve_speculation): Export; improve diagnostic.
19020         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
19021         speculation at type mismatch.
19022         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
19023         (cgraph_resolve_speculation): Declare.
19024         (symtab_can_be_discarded): New function.
19025         * value-prof.c (gimple_ic_transform): Remove actual transform code.
19026         * ipa-inline-transform.c (speculation_removed): New global var.
19027         (clone_inlined_nodes): See if speculation can be removed.
19028         (inline_call): If speculations was removed, we growths may not match.
19029         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
19030         (speculation_useful_p): New function.
19031         (resolve_noninline_speculation): New function.
19032         (inline_small_functions): Resolve useless speculations.
19033         * ipa-inline.h (speculation_useful_p): Declare
19034         * ipa.c (can_replace_by_local_alias): Simplify.
19035         (ipa_profile): Produce speculative calls in non-lto, too;
19036         add simple cost model; produce local aliases.
19038 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
19040         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
19041         PASS_MANAGER_H.
19043 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
19045         * config/i386/i386.c (ix86_function_versions): Use error + inform.
19047 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
19049         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
19050         iterator instead of X87MODEF.
19052 2013-08-12  Perez Read  <netfirewall@gmail.com>
19054         PR target/58132
19055         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
19056         operand 0 for intel asm alternative.
19057         (*movabs<mode>_2): Ditto for operand 1.
19059 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
19061         * config/aarch64/arm_none.h
19062         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
19064 2013-08-12  Nick Clifton  <nickc@redhat.com>
19066         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
19068 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
19070         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
19071         expand for QI/HImode operand to produce more effictive code for
19072         unsigned char(short) --> float(double) conversion.
19074 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
19076         * doc/invoke.texi: Mention that -ftls-model does not force the final
19077         model.
19079 2013-08-12  Marek Polacek  <polacek@redhat.com>
19080             Marc Glisse  <marc.glisse@inria.fr>
19082         PR tree-optimization/57980
19083         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
19084         when creating -1 constant.
19086 2013-08-10  Jan Hubicka  <jh@suse.cz>
19088         Workaround binutils PR14342.
19089         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
19090         (gimple_init_edge_profiler): Likewise.
19091         (gimple_gen_ic_func_profiler): Likewise.
19093 2013-08-09  Jan Hubicka  <jh@suse.cz>
19095         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
19097 2013-08-09  Xinliang David Li  <davidxl@google.com>
19099         * config/i386/stringop.def: New file.
19100         * config/i386/stringop.opt: New file.
19101         * config/i386/i386-opts.h: Include stringopt.def.
19102         * config/i386/i386.opt: Include stringopt.opt.
19103         * config/i386/i386.c (ix86_option_override_internal):
19104         Override default size based stringop inline strategies with options.
19105         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
19106         New function.
19108 2013-08-09  Jan Hubicka  <jh@suse.cz>
19110         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
19112 2013-08-09  Jan Hubicka  <jh@suse.cz>
19114         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
19115         CGRAPH_FREQ_MAX.
19116         (dump_cgraph_node): Dump profile-id.
19117         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
19118         and common_target_probability.
19119         * lto-cgraph.c (lto_output_edge): Stream common targets.
19120         (lto_output_node): Stream profile ids.
19121         (input_node): Stream profile ids.
19122         (input_edge): Stream common targets.
19123         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
19124         * ipa.c: Include value-prof.h
19125         (ipa_profile_generate_summary): Turn indirect call statement histograms
19126         into common targets.
19127         (ipa_profile): Turn common targets into speculative edges.
19129 2013-08-09  Jan Hubicka  <jh@suse.cz>
19131         * cgraph.h (cgraph_node): Add profile_id.
19132         * value-prof.c (cgraph_node_map): Turn into pointer_map.
19133         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
19134         (del_node_map): Update.
19135         (find_func_by_funcdef_no): Replace by ...
19136         (find_func_by_profile_id): ... this one.
19137         (gimple_ic_transform): Do not remove useful histograms when
19138         speculation is not done; dump info when indirect call removal
19139         can happen at LTO.
19140         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
19141         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
19142         (__gcov_indirect_call_profiler_v2): .. this one.
19143         * profile.h (init_node_map): Update.
19144         * coverage.c (coverage_compute_profile_id): New function.
19145         * coverage.h (coverage_compute_profile_id): Declare.
19146         * tree-profile.c (init_ic_make_global_vars): Make
19147         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
19148         (gimple_init_edge_profiler): Update prototype of
19149         __gcov_indirect_call_profiler.
19150         (gimple_gen_ic_func_profiler): Simplify.
19151         (tree_profiling): Use init_node_map
19153 2013-08-09  Jan Hubicka  <jh@suse.cz>
19155         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
19156         non-speculative refs.
19157         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
19158         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
19159         (cgraph_set_call_stmt): Likewise.
19160         (cgraph_create_edge_1): Fix release checking compilatoin;
19161         clear lto_stmt_uid.
19162         (cgraph_free_edge): Free indirect info.
19163         (cgraph_turn_edge_to_speculative): New function.
19164         (cgraph_speculative_call_info): New function.
19165         (cgraph_make_edge_direct): Return direct edge; handle speculation.
19166         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
19167         (dump_cgraph_node): Dump speculation.
19168         (verify_edge_count_and_frequency): Accept speculative edges.
19169         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
19170         (verify_cgraph_node): Handle speculation.
19171         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
19172         (cgraph_set_call_stmt): Update prototype.
19173         (cgraph_make_edge_direct): Update prototype.
19174         (cgraph_speculative_call_info): Declare.
19175         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
19176         to change; update call of ipa_find_references.
19177         * ipa-ref.c (ipa_record_reference): Fix return value; clear
19178         lto_stmt_uid and speculative flags.
19179         (ipa_dump_references): Dump speculation.
19180         (ipa_clone_references): Clone speculative flag.
19181         (ipa_clone_referring): Likewise.
19182         (ipa_clone_ref): New function.
19183         (ipa_find_reference): Look into lto_stmt_uids
19184         (ipa_clear_stmts_in_references): Do not clear speculative calls.
19185         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
19186         (ipa_find_reference): Update declaration.
19187         (ipa_clone_ref): Declare.
19188         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
19189         stream speculative flag.
19190         (lto_output_ref): Stream statements uids and speculation.
19191         (input_ref): Likewise.
19192         (input_edge): Stream speuclation.
19193         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
19194         (cgraph_set_call_stmt_including_clones): Handle speculation.
19195         * ipa-inline.c (heap_edge_removal_hook): New function.
19196         (inline_small_functions): Register it.
19197         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
19198         also initialize refs.
19199         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
19200         edge to change.
19201         (try_make_edge_direct_simple_call): Likewise.
19202         (try_make_edge_direct_simple_call): Likewise.
19203         (update_indirect_edges_after_inlining): Likewise.
19204         (remove_described_reference): Look proper lto_stmt_uid.
19205         (propagate_controlled_uses): Likewise.
19206         (propagate_controlled_uses): Liekwise.
19207         * tree-inline.c (copy_bb): Copy speculative edges.
19208         (redirect_all_calls): New function.
19209         (copy_cfg_body): Do redirection after loop info is updated.
19210         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
19212 2013-08-09  Jan Hubicka  <jh@suse.cz>
19214         * lto-streamer-out.c (output_function): Renumber PHIs.
19215         * lto-streamer-in.c (input_function): Likewise.
19217 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
19219         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
19220         (get_lane_unsigned): Likewise.
19221         (dup_lane_scalar): Likewise.
19222         (get_lane): enable for VALL.
19223         * config/aarch64/aarch64-simd.md
19224         (aarch64_dup_lane_scalar<mode>): Remove.
19225         (aarch64_get_lane_signed<mode>): Likewise.
19226         (aarch64_get_lane_unsigned<mode>): Likewise.
19227         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
19228         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
19229         (aarch64_get_lane<mode>): Enable for all vector modes.
19230         (aarch64_get_lanedi): Remove misleading constraints.
19231         * config/aarch64/arm_neon.h
19232         (__aarch64_vget_lane_any): Define.
19233         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
19234         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
19235         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
19236         * config/aarch64/iterators.md (VDQQH): New.
19237         (VDQQHS): Likewise.
19238         (vwcore): Likewise.
19240 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
19242         * configure.ac: Add GAS check for LEON instructions on SPARC.
19243         * configure: Regenerate.
19244         * config.in: Likewise.
19245         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
19246         sparc*-*-* block.
19247         * config/sparc/sparc.opt (LEON, LEON3): New masks.
19248         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
19249         for LEON or LEON3.
19250         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
19251         (AS_LEON_FLAG): New macro.
19252         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
19253         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
19254         Deal with LEON and LEON3 for the memory model.
19255         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
19256         (atomic_compare_and_swap<mode>_1): Likewise.
19257         (*atomic_compare_and_swap<mode>_1): Likewise.
19259 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19261         * config/arm/neon.md (vcond): Fix floating-point vector
19262         comparisons against 0.
19264 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
19266         * lra-constraints.c (emit_spill_move): Remove assert.
19267         (process_alt_operands): Add more debugging
19268         output.  Increase reject for spilling into memory.  Decrease
19269         reject for reloading scratch.
19270         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19272 2013-08-08  Steve Ellcey  <sellcey@mips.com>
19274         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19275         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19276         micromips incompatible.  Add nan2008.
19277         (MULTILIB_DIRNAMES): Add nan2008.
19278         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19279         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19280         and micromips incompatible.  Add nan2008.
19281         (MULTILIB_DIRNAMES): Add nan2008.
19282         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19284 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
19286         PR rtl-optimization/58079
19287         * combine.c (combine_simplify_rtx): Avoid using SUBST if
19288         simplify_comparison has widened a comparison with an integer.
19290 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19292         * config/arm/neon.md (movmisalign<mode>): Disable when we
19293         don't allow unaligned accesses.
19294         (*movmisalign<mode>_neon_store): Likewise.
19295         (*movmisalign<mode>_neon_load): Likewise.
19296         (*movmisalign<mode>_neon_store): Likewise.
19297         (*movmisalign<mode>_neon_load): Likewise.
19299 2013-08-08  Jan Hubicka  <jh@suse.cz>
19301         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19302         (make_pass_rebuild_cgraph_edges): Also clear references.
19303         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19304         * ipa-inline-transform.c (inline_transform): Remove all references
19305         after inlining.
19306         * cgraphunit.c (expand_function): Remove all references after
19307         expansion.
19308         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19309         (ipa_find_reference): Rewrite to iterator.
19310         (remove_stmt_references): Likewise.
19311         (ipa_clear_stmts_in_references): New function.
19312         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19313         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19314         clear references.
19315         * ipa-split.c (split_function): Remove references in split function.
19317 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
19319         PR target/57431
19320         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19321         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19323 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
19325         PR target/56979
19326         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19327         suggested mode for the assignment isn't compatible with the
19328         registers required.
19330 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19332         PR target/58065
19333         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19335 2013-08-07  Xinliang David Li  <davidxl@google.com>
19337         * config/i386/i386.opt: New option -mtune-ctrl=.
19338         * config/i386/x86-tune.def: New file.
19339         * config/i386/i386.h: include x86-tune.def.
19340         * config/i386/i386.c (ix86_option_override_internal):
19341         Parsing -mtune-ctrl= option and set tune features.
19343 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
19345         PR other/12081
19346         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19347         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19348         to gen_2arg_fn_t.
19350 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
19352         * rtl.h (update_alignments): Declare.
19353         * final.c (grow_label_align): New function extracted from...
19354         (shorten_branches): ...here.  Call it.
19355         (update_alignments): New function.
19356         * reorg.c (sibling_labels): New variable.
19357         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
19358         the new label along with it onto the sibling_labels vector.
19359         (fill_simple_delay_slots): Adjust call to get_label_before.
19360         (fill_slots_from_thread): Likewise.
19361         (relax_delay_slots): Likewise.
19362         (make_return_insns): Likewise.
19363         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19365 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
19367         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19368         document its semantics.
19369         (diagnostic_report_diagnostic): Adjust accordingly.
19371 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19373         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19374         (sparc_option_override): ...and port to new C++ pass API.
19375         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19377 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
19379         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19381 2013-08-06  Caroline Tice  <cmtice@google.com>
19383         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19384         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19385         * tree-pass.h: Add pass_vtable_verify.
19386         * varasm.c (assemble_variable): Add code to properly set the comdat
19387         section and name for the .vtable_map_vars section.
19388         (assemble_vtyv_preinit_initializer): New function.
19389         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
19390         LINK_ONCE flag.
19391         * output.h: Add function decl for assemble_vtv_preinit_initializer.
19392         * vtable-verify.c: New file.
19393         * vtable-verify.h: New file.
19394         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19395         initialiation levels.
19396         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19397         * passes.def: Insert pass_vtable_verify.
19398         * aclocal.m4: Reorder includes.
19399         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
19400         -fvtv-counts options.
19401         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19402         as appropriate, if -fvtable-verify=... is used.
19403         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19404         -fvtable-verify=... is used.
19405         * Makefile.in (OBJS):  Add vtable-verify.o to list.
19406         (vtable-verify.o): Add new build rule.
19407         (GTFILES): Add vtable-verify.c to list.
19408         * common.opt (fvtable-verify=): New flag.
19409         (vtv_priority): Values for fvtable-verify= flag.
19410         (fvtv-counts): New flag.
19411         (fvtv-debug): New flag.
19412         * tree.h (save_vtable_map_decl): New extern function decl.
19414 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19416         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19417         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19418         (pass_data_rl78_devirt): ...new pass_data instance and...
19419         (make_pass_rl78_devirt): ...new function.
19420         (rl78_asm_file_start): Port pass registration to new C++ API.
19422 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19424         * coretypes.h (rtl_opt_pass): Add.
19425         (gcc::context): Add.
19426         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19427         (epiphany_init): Port to new C++ pass API.
19428         (epiphany_optimize_mode_switching): Likewise.
19429         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19430         (pass_manager::get_pass_mode_switching): New.
19431         (pass_manager::get_pass_peephole2): New.
19432         * mode-switching.c (pass_mode_switching): Add clone method.
19433         * recog.c (pass_peephole2): Add clone method.
19434         (pass_split_all_insns): Add clone method.
19436 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
19438         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19439         (mips_option_override): ...here, porting to new C++ API for passes.
19441 2013-08-06  Jan Hubicka  <jh@suse.cz>
19443         * cgraph.c (cgraph_get_body): New function based on lto.c
19444         implementation.
19445         * cgraph.h (cgraph_get_body): Declare.
19446         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19447         LTO paths.
19448         * cgraphunit.c (expand_function): Get body prior expanding.
19449         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19450         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19451         really need.
19452         * passes.c (do_per_function_toporder): Get body.
19453         * tree-inline.c (expand_call_inline): Get body prior inlining it.
19454         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19456 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19458         PR fortran/57987
19459         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19460         is not re-finalized.  Rename second parameter to no_collect.
19462 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19464         PR middle-end/58041
19465         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19466         MEM_REF has proper alignment information.
19468 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
19470         PR other/12081
19471         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19472         class insn_gen_fn.
19473         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19474         rtx (*) (rtx, ...) with insn_gen_fn.
19475         * genoutput.c (output_insn_data): Cast gen_? function pointers to
19476         insn_gen_fn::stored_funcptr.  Add initializer braces.
19478 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19480         Rewrite how instances of passes are cloned to remove assumptions
19481         about their sizes (thus allowing pass subclasses to have
19482         additional data fields, albeit non-GC-managed ones at this point).
19484         * passes.c (make_pass_instance): Now that passes have clone
19485         methods, rewrite this function to eliminate XNEW and memcpy
19486         calls that used hardcoded sizes.  Since this function no longer
19487         creates pass instances, rename it to...
19488         (add_pass_instance): ...this.  Document the old way that passes were
19489         numbered and flagged, and rework this function to continue using it.
19490         (next_pass_1): Add an initial_pass argument for use by
19491         add_pass_instance.
19492         (position_pass): When adding multiple instances of a pass, use
19493         the pass's clone method, rather than relying on the XNEW/memcpy
19494         within the former make_pass_instance (now add_pass_instance).
19495         (pass_manager::pass_manager): When invoking next_pass_1, also supply
19496         the initial instance of the current pass within the pass manager.
19498 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19500         This is the automated part of the conversion of passes from C
19501         structs to C++ classes.
19503         Patch autogenerated by refactor_passes.py from
19504         https://github.com/davidmalcolm/gcc-refactoring-scripts
19505         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19507         * asan.c (pass_asan): Convert from a global struct to a subclass of
19508         gimple_opt_pass along with...
19509         (pass_data_asan): ...new pass_data instance and...
19510         (make_pass_asan): ...new function.
19511         (pass_asan_O0): Convert from a global struct to a subclass of
19512         gimple_opt_pass along with...
19513         (pass_data_asan_O0): ...new pass_data instance and...
19514         (make_pass_asan_O0): ...new function.
19515         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19516         subclass of rtl_opt_pass along with...
19517         (pass_data_inc_dec): ...new pass_data instance and...
19518         (make_pass_inc_dec): ...new function.
19519         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19520         a subclass of rtl_opt_pass along with...
19521         (pass_data_reorder_blocks): ...new pass_data instance and...
19522         (make_pass_reorder_blocks): ...new function.
19523         (pass_duplicate_computed_gotos): Convert from a global struct to a
19524         subclass of rtl_opt_pass along with...
19525         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19526         (make_pass_duplicate_computed_gotos): ...new function.
19527         (pass_partition_blocks): Convert from a global struct to a subclass of
19528         rtl_opt_pass along with...
19529         (pass_data_partition_blocks): ...new pass_data instance and...
19530         (make_pass_partition_blocks): ...new function.
19531         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19532         struct to a subclass of rtl_opt_pass along with...
19533         (pass_data_branch_target_load_optimize1): ...new pass_data instance
19534         and...
19535         (make_pass_branch_target_load_optimize1): ...new function.
19536         (pass_branch_target_load_optimize2): Convert from a global struct to a
19537         subclass of rtl_opt_pass along with...
19538         (pass_data_branch_target_load_optimize2): ...new pass_data instance
19539         and...
19540         (make_pass_branch_target_load_optimize2): ...new function.
19541         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19542         of rtl_opt_pass along with...
19543         (pass_data_jump): ...new pass_data instance and...
19544         (make_pass_jump): ...new function.
19545         (pass_jump2): Convert from a global struct to a subclass of
19546         rtl_opt_pass along with...
19547         (pass_data_jump2): ...new pass_data instance and...
19548         (make_pass_jump2): ...new function.
19549         * cfgexpand.c (pass_expand): Convert from a global struct to a
19550         subclass of rtl_opt_pass along with...
19551         (pass_data_expand): ...new pass_data instance and...
19552         (make_pass_expand): ...new function.
19553         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19554         of rtl_opt_pass along with...
19555         (pass_data_free_cfg): ...new pass_data instance and...
19556         (make_pass_free_cfg): ...new function.
19557         (pass_into_cfg_layout_mode): Convert from a global struct to a
19558         subclass of rtl_opt_pass along with...
19559         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19560         (make_pass_into_cfg_layout_mode): ...new function.
19561         (pass_outof_cfg_layout_mode): Convert from a global struct to a
19562         subclass of rtl_opt_pass along with...
19563         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19564         (make_pass_outof_cfg_layout_mode): ...new function.
19565         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19566         struct to a subclass of gimple_opt_pass along with...
19567         (pass_data_build_cgraph_edges): ...new pass_data instance and...
19568         (make_pass_build_cgraph_edges): ...new function.
19569         (pass_rebuild_cgraph_edges): Convert from a global struct to a
19570         subclass of gimple_opt_pass along with...
19571         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19572         (make_pass_rebuild_cgraph_edges): ...new function.
19573         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19574         subclass of gimple_opt_pass along with...
19575         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19576         and...
19577         (make_pass_remove_cgraph_callee_edges): ...new function.
19578         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19579         struct to a subclass of rtl_opt_pass along with...
19580         (pass_data_stack_adjustments): ...new pass_data instance and...
19581         (make_pass_stack_adjustments): ...new function.
19582         * combine.c (pass_combine): Convert from a global struct to a subclass
19583         of rtl_opt_pass along with...
19584         (pass_data_combine): ...new pass_data instance and...
19585         (make_pass_combine): ...new function.
19586         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19587         global struct to a subclass of rtl_opt_pass along with...
19588         (pass_data_compare_elim_after_reload): ...new pass_data instance
19589         and...
19590         (make_pass_compare_elim_after_reload): ...new function.
19591         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19592         of rtl_opt_pass along with...
19593         (pass_data_rtl_cprop): ...new pass_data instance and...
19594         (make_pass_rtl_cprop): ...new function.
19595         * cse.c (pass_cse): Convert from a global struct to a subclass of
19596         rtl_opt_pass along with...
19597         (pass_data_cse): ...new pass_data instance and...
19598         (make_pass_cse): ...new function.
19599         (pass_cse2): Convert from a global struct to a subclass of
19600         rtl_opt_pass along with...
19601         (pass_data_cse2): ...new pass_data instance and...
19602         (make_pass_cse2): ...new function.
19603         (pass_cse_after_global_opts): Convert from a global struct to a
19604         subclass of rtl_opt_pass along with...
19605         (pass_data_cse_after_global_opts): ...new pass_data instance and...
19606         (make_pass_cse_after_global_opts): ...new function.
19607         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19608         of rtl_opt_pass along with...
19609         (pass_data_ud_rtl_dce): ...new pass_data instance and...
19610         (make_pass_ud_rtl_dce): ...new function.
19611         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19612         rtl_opt_pass along with...
19613         (pass_data_fast_rtl_dce): ...new pass_data instance and...
19614         (make_pass_fast_rtl_dce): ...new function.
19615         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19616         a subclass of rtl_opt_pass along with...
19617         (pass_data_df_initialize_opt): ...new pass_data instance and...
19618         (make_pass_df_initialize_opt): ...new function.
19619         (pass_df_initialize_no_opt): Convert from a global struct to a
19620         subclass of rtl_opt_pass along with...
19621         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19622         (make_pass_df_initialize_no_opt): ...new function.
19623         (pass_df_finish): Convert from a global struct to a subclass of
19624         rtl_opt_pass along with...
19625         (pass_data_df_finish): ...new pass_data instance and...
19626         (make_pass_df_finish): ...new function.
19627         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19628         rtl_opt_pass along with...
19629         (pass_data_rtl_dse1): ...new pass_data instance and...
19630         (make_pass_rtl_dse1): ...new function.
19631         (pass_rtl_dse2): Convert from a global struct to a subclass of
19632         rtl_opt_pass along with...
19633         (pass_data_rtl_dse2): ...new pass_data instance and...
19634         (make_pass_rtl_dse2): ...new function.
19635         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19636         subclass of rtl_opt_pass along with...
19637         (pass_data_dwarf2_frame): ...new pass_data instance and...
19638         (make_pass_dwarf2_frame): ...new function.
19639         * except.c (pass_set_nothrow_function_flags): Convert from a global
19640         struct to a subclass of rtl_opt_pass along with...
19641         (pass_data_set_nothrow_function_flags): ...new pass_data instance
19642         and...
19643         (make_pass_set_nothrow_function_flags): ...new function.
19644         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19645         subclass of rtl_opt_pass along with...
19646         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19647         and...
19648         (make_pass_convert_to_eh_region_ranges): ...new function.
19649         * final.c (pass_compute_alignments): Convert from a global struct to a
19650         subclass of rtl_opt_pass along with...
19651         (pass_data_compute_alignments): ...new pass_data instance and...
19652         (make_pass_compute_alignments): ...new function.
19653         (pass_final): Convert from a global struct to a subclass of
19654         rtl_opt_pass along with...
19655         (pass_data_final): ...new pass_data instance and...
19656         (make_pass_final): ...new function.
19657         (pass_shorten_branches): Convert from a global struct to a subclass of
19658         rtl_opt_pass along with...
19659         (pass_data_shorten_branches): ...new pass_data instance and...
19660         (make_pass_shorten_branches): ...new function.
19661         (pass_clean_state): Convert from a global struct to a subclass of
19662         rtl_opt_pass along with...
19663         (pass_data_clean_state): ...new pass_data instance and...
19664         (make_pass_clean_state): ...new function.
19665         * function.c (pass_instantiate_virtual_regs): Convert from a global
19666         struct to a subclass of rtl_opt_pass along with...
19667         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19668         (make_pass_instantiate_virtual_regs): ...new function.
19669         (pass_leaf_regs): Convert from a global struct to a subclass of
19670         rtl_opt_pass along with...
19671         (pass_data_leaf_regs): ...new pass_data instance and...
19672         (make_pass_leaf_regs): ...new function.
19673         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19674         subclass of rtl_opt_pass along with...
19675         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19676         and...
19677         (make_pass_thread_prologue_and_epilogue): ...new function.
19678         (pass_match_asm_constraints): Convert from a global struct to a
19679         subclass of rtl_opt_pass along with...
19680         (pass_data_match_asm_constraints): ...new pass_data instance and...
19681         (make_pass_match_asm_constraints): ...new function.
19682         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19683         subclass of rtl_opt_pass along with...
19684         (pass_data_rtl_fwprop): ...new pass_data instance and...
19685         (make_pass_rtl_fwprop): ...new function.
19686         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19687         rtl_opt_pass along with...
19688         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19689         (make_pass_rtl_fwprop_addr): ...new function.
19690         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19691         rtl_opt_pass along with...
19692         (pass_data_rtl_pre): ...new pass_data instance and...
19693         (make_pass_rtl_pre): ...new function.
19694         (pass_rtl_hoist): Convert from a global struct to a subclass of
19695         rtl_opt_pass along with...
19696         (pass_data_rtl_hoist): ...new pass_data instance and...
19697         (make_pass_rtl_hoist): ...new function.
19698         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19699         subclass of gimple_opt_pass along with...
19700         (pass_data_lower_cf): ...new pass_data instance and...
19701         (make_pass_lower_cf): ...new function.
19702         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19703         from a global struct to a subclass of gimple_opt_pass along with...
19704         (pass_data_strength_reduction): ...new pass_data instance and...
19705         (make_pass_strength_reduction): ...new function.
19706         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19707         of rtl_opt_pass along with...
19708         (pass_data_rtl_ifcvt): ...new pass_data instance and...
19709         (make_pass_rtl_ifcvt): ...new function.
19710         (pass_if_after_combine): Convert from a global struct to a subclass of
19711         rtl_opt_pass along with...
19712         (pass_data_if_after_combine): ...new pass_data instance and...
19713         (make_pass_if_after_combine): ...new function.
19714         (pass_if_after_reload): Convert from a global struct to a subclass of
19715         rtl_opt_pass along with...
19716         (pass_data_if_after_reload): ...new pass_data instance and...
19717         (make_pass_if_after_reload): ...new function.
19718         * init-regs.c (pass_initialize_regs): Convert from a global struct to
19719         a subclass of rtl_opt_pass along with...
19720         (pass_data_initialize_regs): ...new pass_data instance and...
19721         (make_pass_initialize_regs): ...new function.
19722         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19723         of ipa_opt_pass_d along with...
19724         (pass_data_ipa_cp): ...new pass_data instance and...
19725         (make_pass_ipa_cp): ...new function.
19726         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19727         global struct to a subclass of gimple_opt_pass along with...
19728         (pass_data_inline_parameters): ...new pass_data instance and...
19729         (make_pass_inline_parameters): ...new function.
19730         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19731         subclass of gimple_opt_pass along with...
19732         (pass_data_early_inline): ...new pass_data instance and...
19733         (make_pass_early_inline): ...new function.
19734         (pass_ipa_inline): Convert from a global struct to a subclass of
19735         ipa_opt_pass_d along with...
19736         (pass_data_ipa_inline): ...new pass_data instance and...
19737         (make_pass_ipa_inline): ...new function.
19738         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19739         struct to a subclass of gimple_opt_pass along with...
19740         (pass_data_local_pure_const): ...new pass_data instance and...
19741         (make_pass_local_pure_const): ...new function.
19742         (pass_ipa_pure_const): Convert from a global struct to a subclass of
19743         ipa_opt_pass_d along with...
19744         (pass_data_ipa_pure_const): ...new pass_data instance and...
19745         (make_pass_ipa_pure_const): ...new function.
19746         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19747         to a subclass of ipa_opt_pass_d along with...
19748         (pass_data_ipa_reference): ...new pass_data instance and...
19749         (make_pass_ipa_reference): ...new function.
19750         * ipa-split.c (pass_split_functions): Convert from a global struct to
19751         a subclass of gimple_opt_pass along with...
19752         (pass_data_split_functions): ...new pass_data instance and...
19753         (make_pass_split_functions): ...new function.
19754         (pass_feedback_split_functions): Convert from a global struct to a
19755         subclass of gimple_opt_pass along with...
19756         (pass_data_feedback_split_functions): ...new pass_data instance and...
19757         (make_pass_feedback_split_functions): ...new function.
19758         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19759         global struct to a subclass of simple_ipa_opt_pass along with...
19760         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19761         instance and...
19762         (make_pass_ipa_function_and_variable_visibility): ...new function.
19763         (pass_ipa_free_inline_summary): Convert from a global struct to a
19764         subclass of simple_ipa_opt_pass along with...
19765         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19766         (make_pass_ipa_free_inline_summary): ...new function.
19767         (pass_ipa_whole_program_visibility): Convert from a global struct to a
19768         subclass of ipa_opt_pass_d along with...
19769         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19770         and...
19771         (make_pass_ipa_whole_program_visibility): ...new function.
19772         (pass_ipa_profile): Convert from a global struct to a subclass of
19773         ipa_opt_pass_d along with...
19774         (pass_data_ipa_profile): ...new pass_data instance and...
19775         (make_pass_ipa_profile): ...new function.
19776         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19777         ipa_opt_pass_d along with...
19778         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19779         (make_pass_ipa_cdtor_merge): ...new function.
19780         * ira.c (pass_ira): Convert from a global struct to a subclass of
19781         rtl_opt_pass along with...
19782         (pass_data_ira): ...new pass_data instance and...
19783         (make_pass_ira): ...new function.
19784         (pass_reload): Convert from a global struct to a subclass of
19785         rtl_opt_pass along with...
19786         (pass_data_reload): ...new pass_data instance and...
19787         (make_pass_reload): ...new function.
19788         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19789         subclass of rtl_opt_pass along with...
19790         (pass_data_cleanup_barriers): ...new pass_data instance and...
19791         (make_pass_cleanup_barriers): ...new function.
19792         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19793         of rtl_opt_pass along with...
19794         (pass_data_loop2): ...new pass_data instance and...
19795         (make_pass_loop2): ...new function.
19796         (pass_rtl_loop_init): Convert from a global struct to a subclass of
19797         rtl_opt_pass along with...
19798         (pass_data_rtl_loop_init): ...new pass_data instance and...
19799         (make_pass_rtl_loop_init): ...new function.
19800         (pass_rtl_loop_done): Convert from a global struct to a subclass of
19801         rtl_opt_pass along with...
19802         (pass_data_rtl_loop_done): ...new pass_data instance and...
19803         (make_pass_rtl_loop_done): ...new function.
19804         (pass_rtl_move_loop_invariants): Convert from a global struct to a
19805         subclass of rtl_opt_pass along with...
19806         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19807         (make_pass_rtl_move_loop_invariants): ...new function.
19808         (pass_rtl_unswitch): Convert from a global struct to a subclass of
19809         rtl_opt_pass along with...
19810         (pass_data_rtl_unswitch): ...new pass_data instance and...
19811         (make_pass_rtl_unswitch): ...new function.
19812         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19813         subclass of rtl_opt_pass along with...
19814         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19815         and...
19816         (make_pass_rtl_unroll_and_peel_loops): ...new function.
19817         (pass_rtl_doloop): Convert from a global struct to a subclass of
19818         rtl_opt_pass along with...
19819         (pass_data_rtl_doloop): ...new pass_data instance and...
19820         (make_pass_rtl_doloop): ...new function.
19821         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19822         a subclass of rtl_opt_pass along with...
19823         (pass_data_lower_subreg): ...new pass_data instance and...
19824         (make_pass_lower_subreg): ...new function.
19825         (pass_lower_subreg2): Convert from a global struct to a subclass of
19826         rtl_opt_pass along with...
19827         (pass_data_lower_subreg2): ...new pass_data instance and...
19828         (make_pass_lower_subreg2): ...new function.
19829         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19830         struct to a subclass of ipa_opt_pass_d along with...
19831         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19832         (make_pass_ipa_lto_gimple_out): ...new function.
19833         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19834         of ipa_opt_pass_d along with...
19835         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19836         (make_pass_ipa_lto_finish_out): ...new function.
19837         * mode-switching.c (pass_mode_switching): Convert from a global struct
19838         to a subclass of rtl_opt_pass along with...
19839         (pass_data_mode_switching): ...new pass_data instance and...
19840         (make_pass_mode_switching): ...new function.
19841         * modulo-sched.c (pass_sms): Convert from a global struct to a
19842         subclass of rtl_opt_pass along with...
19843         (pass_data_sms): ...new pass_data instance and...
19844         (make_pass_sms): ...new function.
19845         * omp-low.c (pass_expand_omp): Convert from a global struct to a
19846         subclass of gimple_opt_pass along with...
19847         (pass_data_expand_omp): ...new pass_data instance and...
19848         (make_pass_expand_omp): ...new function.
19849         (pass_lower_omp): Convert from a global struct to a subclass of
19850         gimple_opt_pass along with...
19851         (pass_data_lower_omp): ...new pass_data instance and...
19852         (make_pass_lower_omp): ...new function.
19853         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19854         of gimple_opt_pass along with...
19855         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19856         (make_pass_diagnose_omp_blocks): ...new function.
19857         * passes.c (pass_early_local_passes): Convert from a global struct to
19858         a subclass of simple_ipa_opt_pass along with...
19859         (pass_data_early_local_passes): ...new pass_data instance and...
19860         (make_pass_early_local_passes): ...new function.
19861         (pass_all_early_optimizations): Convert from a global struct to a
19862         subclass of gimple_opt_pass along with...
19863         (pass_data_all_early_optimizations): ...new pass_data instance and...
19864         (make_pass_all_early_optimizations): ...new function.
19865         (pass_all_optimizations): Convert from a global struct to a subclass
19866         of gimple_opt_pass along with...
19867         (pass_data_all_optimizations): ...new pass_data instance and...
19868         (make_pass_all_optimizations): ...new function.
19869         (pass_all_optimizations_g): Convert from a global struct to a subclass
19870         of gimple_opt_pass along with...
19871         (pass_data_all_optimizations_g): ...new pass_data instance and...
19872         (make_pass_all_optimizations_g): ...new function.
19873         (pass_rest_of_compilation): Convert from a global struct to a subclass
19874         of rtl_opt_pass along with...
19875         (pass_data_rest_of_compilation): ...new pass_data instance and...
19876         (make_pass_rest_of_compilation): ...new function.
19877         (pass_postreload): Convert from a global struct to a subclass of
19878         rtl_opt_pass along with...
19879         (pass_data_postreload): ...new pass_data instance and...
19880         (make_pass_postreload): ...new function.
19881         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19882         subclass of rtl_opt_pass along with...
19883         (pass_data_gcse2): ...new pass_data instance and...
19884         (make_pass_gcse2): ...new function.
19885         * postreload.c (pass_postreload_cse): Convert from a global struct to
19886         a subclass of rtl_opt_pass along with...
19887         (pass_data_postreload_cse): ...new pass_data instance and...
19888         (make_pass_postreload_cse): ...new function.
19889         * predict.c (pass_profile): Convert from a global struct to a subclass
19890         of gimple_opt_pass along with...
19891         (pass_data_profile): ...new pass_data instance and...
19892         (make_pass_profile): ...new function.
19893         (pass_strip_predict_hints): Convert from a global struct to a subclass
19894         of gimple_opt_pass along with...
19895         (pass_data_strip_predict_hints): ...new pass_data instance and...
19896         (make_pass_strip_predict_hints): ...new function.
19897         * recog.c (pass_peephole2): Convert from a global struct to a subclass
19898         of rtl_opt_pass along with...
19899         (pass_data_peephole2): ...new pass_data instance and...
19900         (make_pass_peephole2): ...new function.
19901         (pass_split_all_insns): Convert from a global struct to a subclass of
19902         rtl_opt_pass along with...
19903         (pass_data_split_all_insns): ...new pass_data instance and...
19904         (make_pass_split_all_insns): ...new function.
19905         (pass_split_after_reload): Convert from a global struct to a subclass
19906         of rtl_opt_pass along with...
19907         (pass_data_split_after_reload): ...new pass_data instance and...
19908         (make_pass_split_after_reload): ...new function.
19909         (pass_split_before_regstack): Convert from a global struct to a
19910         subclass of rtl_opt_pass along with...
19911         (pass_data_split_before_regstack): ...new pass_data instance and...
19912         (make_pass_split_before_regstack): ...new function.
19913         (pass_split_before_sched2): Convert from a global struct to a subclass
19914         of rtl_opt_pass along with...
19915         (pass_data_split_before_sched2): ...new pass_data instance and...
19916         (make_pass_split_before_sched2): ...new function.
19917         (pass_split_for_shorten_branches): Convert from a global struct to a
19918         subclass of rtl_opt_pass along with...
19919         (pass_data_split_for_shorten_branches): ...new pass_data instance
19920         and...
19921         (make_pass_split_for_shorten_branches): ...new function.
19922         * ree.c (pass_ree): Convert from a global struct to a subclass of
19923         rtl_opt_pass along with...
19924         (pass_data_ree): ...new pass_data instance and...
19925         (make_pass_ree): ...new function.
19926         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19927         subclass of rtl_opt_pass along with...
19928         (pass_data_stack_regs): ...new pass_data instance and...
19929         (make_pass_stack_regs): ...new function.
19930         (pass_stack_regs_run): Convert from a global struct to a subclass of
19931         rtl_opt_pass along with...
19932         (pass_data_stack_regs_run): ...new pass_data instance and...
19933         (make_pass_stack_regs_run): ...new function.
19934         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19935         subclass of rtl_opt_pass along with...
19936         (pass_data_cprop_hardreg): ...new pass_data instance and...
19937         (make_pass_cprop_hardreg): ...new function.
19938         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19939         subclass of rtl_opt_pass along with...
19940         (pass_data_reginfo_init): ...new pass_data instance and...
19941         (make_pass_reginfo_init): ...new function.
19942         * regmove.c (pass_regmove): Convert from a global struct to a subclass
19943         of rtl_opt_pass along with...
19944         (pass_data_regmove): ...new pass_data instance and...
19945         (make_pass_regmove): ...new function.
19946         * regrename.c (pass_regrename): Convert from a global struct to a
19947         subclass of rtl_opt_pass along with...
19948         (pass_data_regrename): ...new pass_data instance and...
19949         (make_pass_regrename): ...new function.
19950         * reorg.c (pass_delay_slots): Convert from a global struct to a
19951         subclass of rtl_opt_pass along with...
19952         (pass_data_delay_slots): ...new pass_data instance and...
19953         (make_pass_delay_slots): ...new function.
19954         (pass_machine_reorg): Convert from a global struct to a subclass of
19955         rtl_opt_pass along with...
19956         (pass_data_machine_reorg): ...new pass_data instance and...
19957         (make_pass_machine_reorg): ...new function.
19958         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19959         of rtl_opt_pass along with...
19960         (pass_data_sched): ...new pass_data instance and...
19961         (make_pass_sched): ...new function.
19962         (pass_sched2): Convert from a global struct to a subclass of
19963         rtl_opt_pass along with...
19964         (pass_data_sched2): ...new pass_data instance and...
19965         (make_pass_sched2): ...new function.
19966         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19967         to a subclass of rtl_opt_pass along with...
19968         (pass_data_stack_ptr_mod): ...new pass_data instance and...
19969         (make_pass_stack_ptr_mod): ...new function.
19970         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19971         to a subclass of rtl_opt_pass along with...
19972         (pass_data_rtl_store_motion): ...new pass_data instance and...
19973         (make_pass_rtl_store_motion): ...new function.
19974         * tracer.c (pass_tracer): Convert from a global struct to a subclass
19975         of gimple_opt_pass along with...
19976         (pass_data_tracer): ...new pass_data instance and...
19977         (make_pass_tracer): ...new function.
19978         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19979         to a subclass of gimple_opt_pass along with...
19980         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19981         (make_pass_diagnose_tm_blocks): ...new function.
19982         (pass_lower_tm): Convert from a global struct to a subclass of
19983         gimple_opt_pass along with...
19984         (pass_data_lower_tm): ...new pass_data instance and...
19985         (make_pass_lower_tm): ...new function.
19986         (pass_tm_init): Convert from a global struct to a subclass of
19987         gimple_opt_pass along with...
19988         (pass_data_tm_init): ...new pass_data instance and...
19989         (make_pass_tm_init): ...new function.
19990         (pass_tm_mark): Convert from a global struct to a subclass of
19991         gimple_opt_pass along with...
19992         (pass_data_tm_mark): ...new pass_data instance and...
19993         (make_pass_tm_mark): ...new function.
19994         (pass_tm_edges): Convert from a global struct to a subclass of
19995         gimple_opt_pass along with...
19996         (pass_data_tm_edges): ...new pass_data instance and...
19997         (make_pass_tm_edges): ...new function.
19998         (pass_tm_memopt): Convert from a global struct to a subclass of
19999         gimple_opt_pass along with...
20000         (pass_data_tm_memopt): ...new pass_data instance and...
20001         (make_pass_tm_memopt): ...new function.
20002         (pass_ipa_tm): Convert from a global struct to a subclass of
20003         simple_ipa_opt_pass along with...
20004         (pass_data_ipa_tm): ...new pass_data instance and...
20005         (make_pass_ipa_tm): ...new function.
20006         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
20007         subclass of gimple_opt_pass along with...
20008         (pass_data_call_cdce): ...new pass_data instance and...
20009         (make_pass_call_cdce): ...new function.
20010         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
20011         subclass of gimple_opt_pass along with...
20012         (pass_data_build_cfg): ...new pass_data instance and...
20013         (make_pass_build_cfg): ...new function.
20014         (pass_split_crit_edges): Convert from a global struct to a subclass of
20015         gimple_opt_pass along with...
20016         (pass_data_split_crit_edges): ...new pass_data instance and...
20017         (make_pass_split_crit_edges): ...new function.
20018         (pass_warn_function_return): Convert from a global struct to a
20019         subclass of gimple_opt_pass along with...
20020         (pass_data_warn_function_return): ...new pass_data instance and...
20021         (make_pass_warn_function_return): ...new function.
20022         (pass_warn_function_noreturn): Convert from a global struct to a
20023         subclass of gimple_opt_pass along with...
20024         (pass_data_warn_function_noreturn): ...new pass_data instance and...
20025         (make_pass_warn_function_noreturn): ...new function.
20026         (pass_warn_unused_result): Convert from a global struct to a subclass
20027         of gimple_opt_pass along with...
20028         (pass_data_warn_unused_result): ...new pass_data instance and...
20029         (make_pass_warn_unused_result): ...new function.
20030         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
20031         a subclass of gimple_opt_pass along with...
20032         (pass_data_merge_phi): ...new pass_data instance and...
20033         (make_pass_merge_phi): ...new function.
20034         * tree-complex.c (pass_lower_complex): Convert from a global struct to
20035         a subclass of gimple_opt_pass along with...
20036         (pass_data_lower_complex): ...new pass_data instance and...
20037         (make_pass_lower_complex): ...new function.
20038         (pass_lower_complex_O0): Convert from a global struct to a subclass of
20039         gimple_opt_pass along with...
20040         (pass_data_lower_complex_O0): ...new pass_data instance and...
20041         (make_pass_lower_complex_O0): ...new function.
20042         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
20043         subclass of gimple_opt_pass along with...
20044         (pass_data_lower_eh): ...new pass_data instance and...
20045         (make_pass_lower_eh): ...new function.
20046         (pass_refactor_eh): Convert from a global struct to a subclass of
20047         gimple_opt_pass along with...
20048         (pass_data_refactor_eh): ...new pass_data instance and...
20049         (make_pass_refactor_eh): ...new function.
20050         (pass_lower_resx): Convert from a global struct to a subclass of
20051         gimple_opt_pass along with...
20052         (pass_data_lower_resx): ...new pass_data instance and...
20053         (make_pass_lower_resx): ...new function.
20054         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
20055         of gimple_opt_pass along with...
20056         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
20057         (make_pass_lower_eh_dispatch): ...new function.
20058         (pass_cleanup_eh): Convert from a global struct to a subclass of
20059         gimple_opt_pass along with...
20060         (pass_data_cleanup_eh): ...new pass_data instance and...
20061         (make_pass_cleanup_eh): ...new function.
20062         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
20063         to a subclass of simple_ipa_opt_pass along with...
20064         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
20065         (make_pass_ipa_lower_emutls): ...new function.
20066         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
20067         a subclass of gimple_opt_pass along with...
20068         (pass_data_if_conversion): ...new pass_data instance and...
20069         (make_pass_if_conversion): ...new function.
20070         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
20071         subclass of gimple_opt_pass along with...
20072         (pass_data_build_ssa): ...new pass_data instance and...
20073         (make_pass_build_ssa): ...new function.
20074         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
20075         global struct to a subclass of gimple_opt_pass along with...
20076         (pass_data_loop_distribution): ...new pass_data instance and...
20077         (make_pass_loop_distribution): ...new function.
20078         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
20079         subclass of gimple_opt_pass along with...
20080         (pass_data_mudflap_1): ...new pass_data instance and...
20081         (make_pass_mudflap_1): ...new function.
20082         (pass_mudflap_2): Convert from a global struct to a subclass of
20083         gimple_opt_pass along with...
20084         (pass_data_mudflap_2): ...new pass_data instance and...
20085         (make_pass_mudflap_2): ...new function.
20086         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
20087         subclass of gimple_opt_pass along with...
20088         (pass_data_mudflap_1): ...new pass_data instance and...
20089         (make_pass_mudflap_1): ...new function.
20090         (pass_mudflap_2): Convert from a global struct to a subclass of
20091         gimple_opt_pass along with...
20092         (pass_data_mudflap_2): ...new pass_data instance and...
20093         (make_pass_mudflap_2): ...new function.
20094         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
20095         gimple_opt_pass along with...
20096         (pass_data_nrv): ...new pass_data instance and...
20097         (make_pass_nrv): ...new function.
20098         (pass_return_slot): Convert from a global struct to a subclass of
20099         gimple_opt_pass along with...
20100         (pass_data_return_slot): ...new pass_data instance and...
20101         (make_pass_return_slot): ...new function.
20102         * tree-object-size.c (pass_object_sizes): Convert from a global struct
20103         to a subclass of gimple_opt_pass along with...
20104         (pass_data_object_sizes): ...new pass_data instance and...
20105         (make_pass_object_sizes): ...new function.
20106         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
20107         global struct to a subclass of gimple_opt_pass along with...
20108         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
20109         and...
20110         (make_pass_cleanup_cfg_post_optimizing): ...new function.
20111         (pass_fixup_cfg): Convert from a global struct to a subclass of
20112         gimple_opt_pass along with...
20113         (pass_data_fixup_cfg): ...new pass_data instance and...
20114         (make_pass_fixup_cfg): ...new function.
20115         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
20116         (make_pass_mudflap_1): ...new function.
20117         (pass_mudflap_2): Replace declaration with that of...
20118         (make_pass_mudflap_2): ...new function.
20119         (pass_asan): Replace declaration with that of...
20120         (make_pass_asan): ...new function.
20121         (pass_asan_O0): Replace declaration with that of...
20122         (make_pass_asan_O0): ...new function.
20123         (pass_tsan): Replace declaration with that of...
20124         (make_pass_tsan): ...new function.
20125         (pass_tsan_O0): Replace declaration with that of...
20126         (make_pass_tsan_O0): ...new function.
20127         (pass_lower_cf): Replace declaration with that of...
20128         (make_pass_lower_cf): ...new function.
20129         (pass_refactor_eh): Replace declaration with that of...
20130         (make_pass_refactor_eh): ...new function.
20131         (pass_lower_eh): Replace declaration with that of...
20132         (make_pass_lower_eh): ...new function.
20133         (pass_lower_eh_dispatch): Replace declaration with that of...
20134         (make_pass_lower_eh_dispatch): ...new function.
20135         (pass_lower_resx): Replace declaration with that of...
20136         (make_pass_lower_resx): ...new function.
20137         (pass_build_cfg): Replace declaration with that of...
20138         (make_pass_build_cfg): ...new function.
20139         (pass_early_tree_profile): Replace declaration with that of...
20140         (make_pass_early_tree_profile): ...new function.
20141         (pass_cleanup_eh): Replace declaration with that of...
20142         (make_pass_cleanup_eh): ...new function.
20143         (pass_sra): Replace declaration with that of...
20144         (make_pass_sra): ...new function.
20145         (pass_sra_early): Replace declaration with that of...
20146         (make_pass_sra_early): ...new function.
20147         (pass_early_ipa_sra): Replace declaration with that of...
20148         (make_pass_early_ipa_sra): ...new function.
20149         (pass_tail_recursion): Replace declaration with that of...
20150         (make_pass_tail_recursion): ...new function.
20151         (pass_tail_calls): Replace declaration with that of...
20152         (make_pass_tail_calls): ...new function.
20153         (pass_tree_loop): Replace declaration with that of...
20154         (make_pass_tree_loop): ...new function.
20155         (pass_tree_loop_init): Replace declaration with that of...
20156         (make_pass_tree_loop_init): ...new function.
20157         (pass_lim): Replace declaration with that of...
20158         (make_pass_lim): ...new function.
20159         (pass_tree_unswitch): Replace declaration with that of...
20160         (make_pass_tree_unswitch): ...new function.
20161         (pass_predcom): Replace declaration with that of...
20162         (make_pass_predcom): ...new function.
20163         (pass_iv_canon): Replace declaration with that of...
20164         (make_pass_iv_canon): ...new function.
20165         (pass_scev_cprop): Replace declaration with that of...
20166         (make_pass_scev_cprop): ...new function.
20167         (pass_empty_loop): Replace declaration with that of...
20168         (make_pass_empty_loop): ...new function.
20169         (pass_record_bounds): Replace declaration with that of...
20170         (make_pass_record_bounds): ...new function.
20171         (pass_graphite): Replace declaration with that of...
20172         (make_pass_graphite): ...new function.
20173         (pass_graphite_transforms): Replace declaration with that of...
20174         (make_pass_graphite_transforms): ...new function.
20175         (pass_if_conversion): Replace declaration with that of...
20176         (make_pass_if_conversion): ...new function.
20177         (pass_loop_distribution): Replace declaration with that of...
20178         (make_pass_loop_distribution): ...new function.
20179         (pass_vectorize): Replace declaration with that of...
20180         (make_pass_vectorize): ...new function.
20181         (pass_slp_vectorize): Replace declaration with that of...
20182         (make_pass_slp_vectorize): ...new function.
20183         (pass_complete_unroll): Replace declaration with that of...
20184         (make_pass_complete_unroll): ...new function.
20185         (pass_complete_unrolli): Replace declaration with that of...
20186         (make_pass_complete_unrolli): ...new function.
20187         (pass_parallelize_loops): Replace declaration with that of...
20188         (make_pass_parallelize_loops): ...new function.
20189         (pass_loop_prefetch): Replace declaration with that of...
20190         (make_pass_loop_prefetch): ...new function.
20191         (pass_iv_optimize): Replace declaration with that of...
20192         (make_pass_iv_optimize): ...new function.
20193         (pass_tree_loop_done): Replace declaration with that of...
20194         (make_pass_tree_loop_done): ...new function.
20195         (pass_ch): Replace declaration with that of...
20196         (make_pass_ch): ...new function.
20197         (pass_ccp): Replace declaration with that of...
20198         (make_pass_ccp): ...new function.
20199         (pass_phi_only_cprop): Replace declaration with that of...
20200         (make_pass_phi_only_cprop): ...new function.
20201         (pass_build_ssa): Replace declaration with that of...
20202         (make_pass_build_ssa): ...new function.
20203         (pass_build_alias): Replace declaration with that of...
20204         (make_pass_build_alias): ...new function.
20205         (pass_build_ealias): Replace declaration with that of...
20206         (make_pass_build_ealias): ...new function.
20207         (pass_dominator): Replace declaration with that of...
20208         (make_pass_dominator): ...new function.
20209         (pass_dce): Replace declaration with that of...
20210         (make_pass_dce): ...new function.
20211         (pass_dce_loop): Replace declaration with that of...
20212         (make_pass_dce_loop): ...new function.
20213         (pass_cd_dce): Replace declaration with that of...
20214         (make_pass_cd_dce): ...new function.
20215         (pass_call_cdce): Replace declaration with that of...
20216         (make_pass_call_cdce): ...new function.
20217         (pass_merge_phi): Replace declaration with that of...
20218         (make_pass_merge_phi): ...new function.
20219         (pass_split_crit_edges): Replace declaration with that of...
20220         (make_pass_split_crit_edges): ...new function.
20221         (pass_pre): Replace declaration with that of...
20222         (make_pass_pre): ...new function.
20223         (pass_profile): Replace declaration with that of...
20224         (make_pass_profile): ...new function.
20225         (pass_strip_predict_hints): Replace declaration with that of...
20226         (make_pass_strip_predict_hints): ...new function.
20227         (pass_lower_complex_O0): Replace declaration with that of...
20228         (make_pass_lower_complex_O0): ...new function.
20229         (pass_lower_complex): Replace declaration with that of...
20230         (make_pass_lower_complex): ...new function.
20231         (pass_lower_vector): Replace declaration with that of...
20232         (make_pass_lower_vector): ...new function.
20233         (pass_lower_vector_ssa): Replace declaration with that of...
20234         (make_pass_lower_vector_ssa): ...new function.
20235         (pass_lower_omp): Replace declaration with that of...
20236         (make_pass_lower_omp): ...new function.
20237         (pass_diagnose_omp_blocks): Replace declaration with that of...
20238         (make_pass_diagnose_omp_blocks): ...new function.
20239         (pass_expand_omp): Replace declaration with that of...
20240         (make_pass_expand_omp): ...new function.
20241         (pass_expand_omp_ssa): Replace declaration with that of...
20242         (make_pass_expand_omp_ssa): ...new function.
20243         (pass_object_sizes): Replace declaration with that of...
20244         (make_pass_object_sizes): ...new function.
20245         (pass_strlen): Replace declaration with that of...
20246         (make_pass_strlen): ...new function.
20247         (pass_fold_builtins): Replace declaration with that of...
20248         (make_pass_fold_builtins): ...new function.
20249         (pass_stdarg): Replace declaration with that of...
20250         (make_pass_stdarg): ...new function.
20251         (pass_early_warn_uninitialized): Replace declaration with that of...
20252         (make_pass_early_warn_uninitialized): ...new function.
20253         (pass_late_warn_uninitialized): Replace declaration with that of...
20254         (make_pass_late_warn_uninitialized): ...new function.
20255         (pass_cse_reciprocals): Replace declaration with that of...
20256         (make_pass_cse_reciprocals): ...new function.
20257         (pass_cse_sincos): Replace declaration with that of...
20258         (make_pass_cse_sincos): ...new function.
20259         (pass_optimize_bswap): Replace declaration with that of...
20260         (make_pass_optimize_bswap): ...new function.
20261         (pass_optimize_widening_mul): Replace declaration with that of...
20262         (make_pass_optimize_widening_mul): ...new function.
20263         (pass_warn_function_return): Replace declaration with that of...
20264         (make_pass_warn_function_return): ...new function.
20265         (pass_warn_function_noreturn): Replace declaration with that of...
20266         (make_pass_warn_function_noreturn): ...new function.
20267         (pass_cselim): Replace declaration with that of...
20268         (make_pass_cselim): ...new function.
20269         (pass_phiopt): Replace declaration with that of...
20270         (make_pass_phiopt): ...new function.
20271         (pass_forwprop): Replace declaration with that of...
20272         (make_pass_forwprop): ...new function.
20273         (pass_phiprop): Replace declaration with that of...
20274         (make_pass_phiprop): ...new function.
20275         (pass_tree_ifcombine): Replace declaration with that of...
20276         (make_pass_tree_ifcombine): ...new function.
20277         (pass_dse): Replace declaration with that of...
20278         (make_pass_dse): ...new function.
20279         (pass_nrv): Replace declaration with that of...
20280         (make_pass_nrv): ...new function.
20281         (pass_rename_ssa_copies): Replace declaration with that of...
20282         (make_pass_rename_ssa_copies): ...new function.
20283         (pass_sink_code): Replace declaration with that of...
20284         (make_pass_sink_code): ...new function.
20285         (pass_fre): Replace declaration with that of...
20286         (make_pass_fre): ...new function.
20287         (pass_check_data_deps): Replace declaration with that of...
20288         (make_pass_check_data_deps): ...new function.
20289         (pass_copy_prop): Replace declaration with that of...
20290         (make_pass_copy_prop): ...new function.
20291         (pass_vrp): Replace declaration with that of...
20292         (make_pass_vrp): ...new function.
20293         (pass_uncprop): Replace declaration with that of...
20294         (make_pass_uncprop): ...new function.
20295         (pass_return_slot): Replace declaration with that of...
20296         (make_pass_return_slot): ...new function.
20297         (pass_reassoc): Replace declaration with that of...
20298         (make_pass_reassoc): ...new function.
20299         (pass_rebuild_cgraph_edges): Replace declaration with that of...
20300         (make_pass_rebuild_cgraph_edges): ...new function.
20301         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20302         (make_pass_remove_cgraph_callee_edges): ...new function.
20303         (pass_build_cgraph_edges): Replace declaration with that of...
20304         (make_pass_build_cgraph_edges): ...new function.
20305         (pass_local_pure_const): Replace declaration with that of...
20306         (make_pass_local_pure_const): ...new function.
20307         (pass_tracer): Replace declaration with that of...
20308         (make_pass_tracer): ...new function.
20309         (pass_warn_unused_result): Replace declaration with that of...
20310         (make_pass_warn_unused_result): ...new function.
20311         (pass_diagnose_tm_blocks): Replace declaration with that of...
20312         (make_pass_diagnose_tm_blocks): ...new function.
20313         (pass_lower_tm): Replace declaration with that of...
20314         (make_pass_lower_tm): ...new function.
20315         (pass_tm_init): Replace declaration with that of...
20316         (make_pass_tm_init): ...new function.
20317         (pass_tm_mark): Replace declaration with that of...
20318         (make_pass_tm_mark): ...new function.
20319         (pass_tm_memopt): Replace declaration with that of...
20320         (make_pass_tm_memopt): ...new function.
20321         (pass_tm_edges): Replace declaration with that of...
20322         (make_pass_tm_edges): ...new function.
20323         (pass_split_functions): Replace declaration with that of...
20324         (make_pass_split_functions): ...new function.
20325         (pass_feedback_split_functions): Replace declaration with that of...
20326         (make_pass_feedback_split_functions): ...new function.
20327         (pass_strength_reduction): Replace declaration with that of...
20328         (make_pass_strength_reduction): ...new function.
20329         (pass_ipa_lower_emutls): Replace declaration with that of...
20330         (make_pass_ipa_lower_emutls): ...new function.
20331         (pass_ipa_function_and_variable_visibility): Replace declaration with
20332         that of...
20333         (make_pass_ipa_function_and_variable_visibility): ...new function.
20334         (pass_ipa_tree_profile): Replace declaration with that of...
20335         (make_pass_ipa_tree_profile): ...new function.
20336         (pass_early_local_passes): Replace declaration with that of...
20337         (make_pass_early_local_passes): ...new function.
20338         (pass_ipa_whole_program_visibility): Replace declaration with that
20339         of...
20340         (make_pass_ipa_whole_program_visibility): ...new function.
20341         (pass_ipa_lto_gimple_out): Replace declaration with that of...
20342         (make_pass_ipa_lto_gimple_out): ...new function.
20343         (pass_ipa_increase_alignment): Replace declaration with that of...
20344         (make_pass_ipa_increase_alignment): ...new function.
20345         (pass_ipa_inline): Replace declaration with that of...
20346         (make_pass_ipa_inline): ...new function.
20347         (pass_ipa_free_lang_data): Replace declaration with that of...
20348         (make_pass_ipa_free_lang_data): ...new function.
20349         (pass_ipa_free_inline_summary): Replace declaration with that of...
20350         (make_pass_ipa_free_inline_summary): ...new function.
20351         (pass_ipa_cp): Replace declaration with that of...
20352         (make_pass_ipa_cp): ...new function.
20353         (pass_ipa_reference): Replace declaration with that of...
20354         (make_pass_ipa_reference): ...new function.
20355         (pass_ipa_pure_const): Replace declaration with that of...
20356         (make_pass_ipa_pure_const): ...new function.
20357         (pass_ipa_pta): Replace declaration with that of...
20358         (make_pass_ipa_pta): ...new function.
20359         (pass_ipa_lto_finish_out): Replace declaration with that of...
20360         (make_pass_ipa_lto_finish_out): ...new function.
20361         (pass_ipa_tm): Replace declaration with that of...
20362         (make_pass_ipa_tm): ...new function.
20363         (pass_ipa_profile): Replace declaration with that of...
20364         (make_pass_ipa_profile): ...new function.
20365         (pass_ipa_cdtor_merge): Replace declaration with that of...
20366         (make_pass_ipa_cdtor_merge): ...new function.
20367         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20368         of...
20369         (make_pass_cleanup_cfg_post_optimizing): ...new function.
20370         (pass_init_datastructures): Replace declaration with that of...
20371         (make_pass_init_datastructures): ...new function.
20372         (pass_fixup_cfg): Replace declaration with that of...
20373         (make_pass_fixup_cfg): ...new function.
20374         (pass_expand): Replace declaration with that of...
20375         (make_pass_expand): ...new function.
20376         (pass_instantiate_virtual_regs): Replace declaration with that of...
20377         (make_pass_instantiate_virtual_regs): ...new function.
20378         (pass_rtl_fwprop): Replace declaration with that of...
20379         (make_pass_rtl_fwprop): ...new function.
20380         (pass_rtl_fwprop_addr): Replace declaration with that of...
20381         (make_pass_rtl_fwprop_addr): ...new function.
20382         (pass_jump): Replace declaration with that of...
20383         (make_pass_jump): ...new function.
20384         (pass_jump2): Replace declaration with that of...
20385         (make_pass_jump2): ...new function.
20386         (pass_lower_subreg): Replace declaration with that of...
20387         (make_pass_lower_subreg): ...new function.
20388         (pass_cse): Replace declaration with that of...
20389         (make_pass_cse): ...new function.
20390         (pass_fast_rtl_dce): Replace declaration with that of...
20391         (make_pass_fast_rtl_dce): ...new function.
20392         (pass_ud_rtl_dce): Replace declaration with that of...
20393         (make_pass_ud_rtl_dce): ...new function.
20394         (pass_rtl_dce): Replace declaration with that of...
20395         (make_pass_rtl_dce): ...new function.
20396         (pass_rtl_dse1): Replace declaration with that of...
20397         (make_pass_rtl_dse1): ...new function.
20398         (pass_rtl_dse2): Replace declaration with that of...
20399         (make_pass_rtl_dse2): ...new function.
20400         (pass_rtl_dse3): Replace declaration with that of...
20401         (make_pass_rtl_dse3): ...new function.
20402         (pass_rtl_cprop): Replace declaration with that of...
20403         (make_pass_rtl_cprop): ...new function.
20404         (pass_rtl_pre): Replace declaration with that of...
20405         (make_pass_rtl_pre): ...new function.
20406         (pass_rtl_hoist): Replace declaration with that of...
20407         (make_pass_rtl_hoist): ...new function.
20408         (pass_rtl_store_motion): Replace declaration with that of...
20409         (make_pass_rtl_store_motion): ...new function.
20410         (pass_cse_after_global_opts): Replace declaration with that of...
20411         (make_pass_cse_after_global_opts): ...new function.
20412         (pass_rtl_ifcvt): Replace declaration with that of...
20413         (make_pass_rtl_ifcvt): ...new function.
20414         (pass_into_cfg_layout_mode): Replace declaration with that of...
20415         (make_pass_into_cfg_layout_mode): ...new function.
20416         (pass_outof_cfg_layout_mode): Replace declaration with that of...
20417         (make_pass_outof_cfg_layout_mode): ...new function.
20418         (pass_loop2): Replace declaration with that of...
20419         (make_pass_loop2): ...new function.
20420         (pass_rtl_loop_init): Replace declaration with that of...
20421         (make_pass_rtl_loop_init): ...new function.
20422         (pass_rtl_move_loop_invariants): Replace declaration with that of...
20423         (make_pass_rtl_move_loop_invariants): ...new function.
20424         (pass_rtl_unswitch): Replace declaration with that of...
20425         (make_pass_rtl_unswitch): ...new function.
20426         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20427         (make_pass_rtl_unroll_and_peel_loops): ...new function.
20428         (pass_rtl_doloop): Replace declaration with that of...
20429         (make_pass_rtl_doloop): ...new function.
20430         (pass_rtl_loop_done): Replace declaration with that of...
20431         (make_pass_rtl_loop_done): ...new function.
20432         (pass_web): Replace declaration with that of...
20433         (make_pass_web): ...new function.
20434         (pass_cse2): Replace declaration with that of...
20435         (make_pass_cse2): ...new function.
20436         (pass_df_initialize_opt): Replace declaration with that of...
20437         (make_pass_df_initialize_opt): ...new function.
20438         (pass_df_initialize_no_opt): Replace declaration with that of...
20439         (make_pass_df_initialize_no_opt): ...new function.
20440         (pass_reginfo_init): Replace declaration with that of...
20441         (make_pass_reginfo_init): ...new function.
20442         (pass_inc_dec): Replace declaration with that of...
20443         (make_pass_inc_dec): ...new function.
20444         (pass_stack_ptr_mod): Replace declaration with that of...
20445         (make_pass_stack_ptr_mod): ...new function.
20446         (pass_initialize_regs): Replace declaration with that of...
20447         (make_pass_initialize_regs): ...new function.
20448         (pass_combine): Replace declaration with that of...
20449         (make_pass_combine): ...new function.
20450         (pass_if_after_combine): Replace declaration with that of...
20451         (make_pass_if_after_combine): ...new function.
20452         (pass_ree): Replace declaration with that of...
20453         (make_pass_ree): ...new function.
20454         (pass_partition_blocks): Replace declaration with that of...
20455         (make_pass_partition_blocks): ...new function.
20456         (pass_match_asm_constraints): Replace declaration with that of...
20457         (make_pass_match_asm_constraints): ...new function.
20458         (pass_regmove): Replace declaration with that of...
20459         (make_pass_regmove): ...new function.
20460         (pass_split_all_insns): Replace declaration with that of...
20461         (make_pass_split_all_insns): ...new function.
20462         (pass_fast_rtl_byte_dce): Replace declaration with that of...
20463         (make_pass_fast_rtl_byte_dce): ...new function.
20464         (pass_lower_subreg2): Replace declaration with that of...
20465         (make_pass_lower_subreg2): ...new function.
20466         (pass_mode_switching): Replace declaration with that of...
20467         (make_pass_mode_switching): ...new function.
20468         (pass_sms): Replace declaration with that of...
20469         (make_pass_sms): ...new function.
20470         (pass_sched): Replace declaration with that of...
20471         (make_pass_sched): ...new function.
20472         (pass_ira): Replace declaration with that of...
20473         (make_pass_ira): ...new function.
20474         (pass_reload): Replace declaration with that of...
20475         (make_pass_reload): ...new function.
20476         (pass_clean_state): Replace declaration with that of...
20477         (make_pass_clean_state): ...new function.
20478         (pass_branch_prob): Replace declaration with that of...
20479         (make_pass_branch_prob): ...new function.
20480         (pass_value_profile_transformations): Replace declaration with that
20481         of...
20482         (make_pass_value_profile_transformations): ...new function.
20483         (pass_postreload_cse): Replace declaration with that of...
20484         (make_pass_postreload_cse): ...new function.
20485         (pass_gcse2): Replace declaration with that of...
20486         (make_pass_gcse2): ...new function.
20487         (pass_split_after_reload): Replace declaration with that of...
20488         (make_pass_split_after_reload): ...new function.
20489         (pass_branch_target_load_optimize1): Replace declaration with that
20490         of...
20491         (make_pass_branch_target_load_optimize1): ...new function.
20492         (pass_thread_prologue_and_epilogue): Replace declaration with that
20493         of...
20494         (make_pass_thread_prologue_and_epilogue): ...new function.
20495         (pass_stack_adjustments): Replace declaration with that of...
20496         (make_pass_stack_adjustments): ...new function.
20497         (pass_peephole2): Replace declaration with that of...
20498         (make_pass_peephole2): ...new function.
20499         (pass_if_after_reload): Replace declaration with that of...
20500         (make_pass_if_after_reload): ...new function.
20501         (pass_regrename): Replace declaration with that of...
20502         (make_pass_regrename): ...new function.
20503         (pass_cprop_hardreg): Replace declaration with that of...
20504         (make_pass_cprop_hardreg): ...new function.
20505         (pass_reorder_blocks): Replace declaration with that of...
20506         (make_pass_reorder_blocks): ...new function.
20507         (pass_branch_target_load_optimize2): Replace declaration with that
20508         of...
20509         (make_pass_branch_target_load_optimize2): ...new function.
20510         (pass_leaf_regs): Replace declaration with that of...
20511         (make_pass_leaf_regs): ...new function.
20512         (pass_split_before_sched2): Replace declaration with that of...
20513         (make_pass_split_before_sched2): ...new function.
20514         (pass_compare_elim_after_reload): Replace declaration with that of...
20515         (make_pass_compare_elim_after_reload): ...new function.
20516         (pass_sched2): Replace declaration with that of...
20517         (make_pass_sched2): ...new function.
20518         (pass_stack_regs): Replace declaration with that of...
20519         (make_pass_stack_regs): ...new function.
20520         (pass_stack_regs_run): Replace declaration with that of...
20521         (make_pass_stack_regs_run): ...new function.
20522         (pass_df_finish): Replace declaration with that of...
20523         (make_pass_df_finish): ...new function.
20524         (pass_compute_alignments): Replace declaration with that of...
20525         (make_pass_compute_alignments): ...new function.
20526         (pass_duplicate_computed_gotos): Replace declaration with that of...
20527         (make_pass_duplicate_computed_gotos): ...new function.
20528         (pass_variable_tracking): Replace declaration with that of...
20529         (make_pass_variable_tracking): ...new function.
20530         (pass_free_cfg): Replace declaration with that of...
20531         (make_pass_free_cfg): ...new function.
20532         (pass_machine_reorg): Replace declaration with that of...
20533         (make_pass_machine_reorg): ...new function.
20534         (pass_cleanup_barriers): Replace declaration with that of...
20535         (make_pass_cleanup_barriers): ...new function.
20536         (pass_delay_slots): Replace declaration with that of...
20537         (make_pass_delay_slots): ...new function.
20538         (pass_split_for_shorten_branches): Replace declaration with that of...
20539         (make_pass_split_for_shorten_branches): ...new function.
20540         (pass_split_before_regstack): Replace declaration with that of...
20541         (make_pass_split_before_regstack): ...new function.
20542         (pass_convert_to_eh_region_ranges): Replace declaration with that
20543         of...
20544         (make_pass_convert_to_eh_region_ranges): ...new function.
20545         (pass_shorten_branches): Replace declaration with that of...
20546         (make_pass_shorten_branches): ...new function.
20547         (pass_set_nothrow_function_flags): Replace declaration with that of...
20548         (make_pass_set_nothrow_function_flags): ...new function.
20549         (pass_dwarf2_frame): Replace declaration with that of...
20550         (make_pass_dwarf2_frame): ...new function.
20551         (pass_final): Replace declaration with that of...
20552         (make_pass_final): ...new function.
20553         (pass_rtl_seqabstr): Replace declaration with that of...
20554         (make_pass_rtl_seqabstr): ...new function.
20555         (pass_release_ssa_names): Replace declaration with that of...
20556         (make_pass_release_ssa_names): ...new function.
20557         (pass_early_inline): Replace declaration with that of...
20558         (make_pass_early_inline): ...new function.
20559         (pass_inline_parameters): Replace declaration with that of...
20560         (make_pass_inline_parameters): ...new function.
20561         (pass_update_address_taken): Replace declaration with that of...
20562         (make_pass_update_address_taken): ...new function.
20563         (pass_convert_switch): Replace declaration with that of...
20564         (make_pass_convert_switch): ...new function.
20565         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20566         to a subclass of simple_ipa_opt_pass along with...
20567         (pass_data_ipa_tree_profile): ...new pass_data instance and...
20568         (make_pass_ipa_tree_profile): ...new function.
20569         * tree-sra.c (pass_sra_early): Convert from a global struct to a
20570         subclass of gimple_opt_pass along with...
20571         (pass_data_sra_early): ...new pass_data instance and...
20572         (make_pass_sra_early): ...new function.
20573         (pass_sra): Convert from a global struct to a subclass of
20574         gimple_opt_pass along with...
20575         (pass_data_sra): ...new pass_data instance and...
20576         (make_pass_sra): ...new function.
20577         (pass_early_ipa_sra): Convert from a global struct to a subclass of
20578         gimple_opt_pass along with...
20579         (pass_data_early_ipa_sra): ...new pass_data instance and...
20580         (make_pass_early_ipa_sra): ...new function.
20581         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20582         subclass of gimple_opt_pass along with...
20583         (pass_data_ccp): ...new pass_data instance and...
20584         (make_pass_ccp): ...new function.
20585         (pass_fold_builtins): Convert from a global struct to a subclass of
20586         gimple_opt_pass along with...
20587         (pass_data_fold_builtins): ...new pass_data instance and...
20588         (make_pass_fold_builtins): ...new function.
20589         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20590         subclass of gimple_opt_pass along with...
20591         (pass_data_copy_prop): ...new pass_data instance and...
20592         (make_pass_copy_prop): ...new function.
20593         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20594         global struct to a subclass of gimple_opt_pass along with...
20595         (pass_data_rename_ssa_copies): ...new pass_data instance and...
20596         (make_pass_rename_ssa_copies): ...new function.
20597         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20598         subclass of gimple_opt_pass along with...
20599         (pass_data_dce): ...new pass_data instance and...
20600         (make_pass_dce): ...new function.
20601         (pass_dce_loop): Convert from a global struct to a subclass of
20602         gimple_opt_pass along with...
20603         (pass_data_dce_loop): ...new pass_data instance and...
20604         (make_pass_dce_loop): ...new function.
20605         (pass_cd_dce): Convert from a global struct to a subclass of
20606         gimple_opt_pass along with...
20607         (pass_data_cd_dce): ...new pass_data instance and...
20608         (make_pass_cd_dce): ...new function.
20609         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20610         subclass of gimple_opt_pass along with...
20611         (pass_data_dominator): ...new pass_data instance and...
20612         (make_pass_dominator): ...new function.
20613         (pass_phi_only_cprop): Convert from a global struct to a subclass of
20614         gimple_opt_pass along with...
20615         (pass_data_phi_only_cprop): ...new pass_data instance and...
20616         (make_pass_phi_only_cprop): ...new function.
20617         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20618         subclass of gimple_opt_pass along with...
20619         (pass_data_dse): ...new pass_data instance and...
20620         (make_pass_dse): ...new function.
20621         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20622         a subclass of gimple_opt_pass along with...
20623         (pass_data_forwprop): ...new pass_data instance and...
20624         (make_pass_forwprop): ...new function.
20625         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20626         struct to a subclass of gimple_opt_pass along with...
20627         (pass_data_tree_ifcombine): ...new pass_data instance and...
20628         (make_pass_tree_ifcombine): ...new function.
20629         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20630         subclass of gimple_opt_pass along with...
20631         (pass_data_ch): ...new pass_data instance and...
20632         (make_pass_ch): ...new function.
20633         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20634         subclass of gimple_opt_pass along with...
20635         (pass_data_tree_loop): ...new pass_data instance and...
20636         (make_pass_tree_loop): ...new function.
20637         (pass_tree_loop_init): Convert from a global struct to a subclass of
20638         gimple_opt_pass along with...
20639         (pass_data_tree_loop_init): ...new pass_data instance and...
20640         (make_pass_tree_loop_init): ...new function.
20641         (pass_lim): Convert from a global struct to a subclass of
20642         gimple_opt_pass along with...
20643         (pass_data_lim): ...new pass_data instance and...
20644         (make_pass_lim): ...new function.
20645         (pass_tree_unswitch): Convert from a global struct to a subclass of
20646         gimple_opt_pass along with...
20647         (pass_data_tree_unswitch): ...new pass_data instance and...
20648         (make_pass_tree_unswitch): ...new function.
20649         (pass_predcom): Convert from a global struct to a subclass of
20650         gimple_opt_pass along with...
20651         (pass_data_predcom): ...new pass_data instance and...
20652         (make_pass_predcom): ...new function.
20653         (pass_vectorize): Convert from a global struct to a subclass of
20654         gimple_opt_pass along with...
20655         (pass_data_vectorize): ...new pass_data instance and...
20656         (make_pass_vectorize): ...new function.
20657         (pass_graphite): Convert from a global struct to a subclass of
20658         gimple_opt_pass along with...
20659         (pass_data_graphite): ...new pass_data instance and...
20660         (make_pass_graphite): ...new function.
20661         (pass_graphite_transforms): Convert from a global struct to a subclass
20662         of gimple_opt_pass along with...
20663         (pass_data_graphite_transforms): ...new pass_data instance and...
20664         (make_pass_graphite_transforms): ...new function.
20665         (pass_check_data_deps): Convert from a global struct to a subclass of
20666         gimple_opt_pass along with...
20667         (pass_data_check_data_deps): ...new pass_data instance and...
20668         (make_pass_check_data_deps): ...new function.
20669         (pass_iv_canon): Convert from a global struct to a subclass of
20670         gimple_opt_pass along with...
20671         (pass_data_iv_canon): ...new pass_data instance and...
20672         (make_pass_iv_canon): ...new function.
20673         (pass_scev_cprop): Convert from a global struct to a subclass of
20674         gimple_opt_pass along with...
20675         (pass_data_scev_cprop): ...new pass_data instance and...
20676         (make_pass_scev_cprop): ...new function.
20677         (pass_record_bounds): Convert from a global struct to a subclass of
20678         gimple_opt_pass along with...
20679         (pass_data_record_bounds): ...new pass_data instance and...
20680         (make_pass_record_bounds): ...new function.
20681         (pass_complete_unroll): Convert from a global struct to a subclass of
20682         gimple_opt_pass along with...
20683         (pass_data_complete_unroll): ...new pass_data instance and...
20684         (make_pass_complete_unroll): ...new function.
20685         (pass_complete_unrolli): Convert from a global struct to a subclass of
20686         gimple_opt_pass along with...
20687         (pass_data_complete_unrolli): ...new pass_data instance and...
20688         (make_pass_complete_unrolli): ...new function.
20689         (pass_parallelize_loops): Convert from a global struct to a subclass
20690         of gimple_opt_pass along with...
20691         (pass_data_parallelize_loops): ...new pass_data instance and...
20692         (make_pass_parallelize_loops): ...new function.
20693         (pass_loop_prefetch): Convert from a global struct to a subclass of
20694         gimple_opt_pass along with...
20695         (pass_data_loop_prefetch): ...new pass_data instance and...
20696         (make_pass_loop_prefetch): ...new function.
20697         (pass_iv_optimize): Convert from a global struct to a subclass of
20698         gimple_opt_pass along with...
20699         (pass_data_iv_optimize): ...new pass_data instance and...
20700         (make_pass_iv_optimize): ...new function.
20701         (pass_tree_loop_done): Convert from a global struct to a subclass of
20702         gimple_opt_pass along with...
20703         (pass_data_tree_loop_done): ...new pass_data instance and...
20704         (make_pass_tree_loop_done): ...new function.
20705         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20706         struct to a subclass of gimple_opt_pass along with...
20707         (pass_data_cse_reciprocals): ...new pass_data instance and...
20708         (make_pass_cse_reciprocals): ...new function.
20709         (pass_cse_sincos): Convert from a global struct to a subclass of
20710         gimple_opt_pass along with...
20711         (pass_data_cse_sincos): ...new pass_data instance and...
20712         (make_pass_cse_sincos): ...new function.
20713         (pass_optimize_bswap): Convert from a global struct to a subclass of
20714         gimple_opt_pass along with...
20715         (pass_data_optimize_bswap): ...new pass_data instance and...
20716         (make_pass_optimize_bswap): ...new function.
20717         (pass_optimize_widening_mul): Convert from a global struct to a
20718         subclass of gimple_opt_pass along with...
20719         (pass_data_optimize_widening_mul): ...new pass_data instance and...
20720         (make_pass_optimize_widening_mul): ...new function.
20721         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20722         subclass of gimple_opt_pass along with...
20723         (pass_data_phiopt): ...new pass_data instance and...
20724         (make_pass_phiopt): ...new function.
20725         (pass_cselim): Convert from a global struct to a subclass of
20726         gimple_opt_pass along with...
20727         (pass_data_cselim): ...new pass_data instance and...
20728         (make_pass_cselim): ...new function.
20729         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20730         subclass of gimple_opt_pass along with...
20731         (pass_data_phiprop): ...new pass_data instance and...
20732         (make_pass_phiprop): ...new function.
20733         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20734         subclass of gimple_opt_pass along with...
20735         (pass_data_pre): ...new pass_data instance and...
20736         (make_pass_pre): ...new function.
20737         (pass_fre): Convert from a global struct to a subclass of
20738         gimple_opt_pass along with...
20739         (pass_data_fre): ...new pass_data instance and...
20740         (make_pass_fre): ...new function.
20741         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20742         subclass of gimple_opt_pass along with...
20743         (pass_data_reassoc): ...new pass_data instance and...
20744         (make_pass_reassoc): ...new function.
20745         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20746         subclass of gimple_opt_pass along with...
20747         (pass_data_sink_code): ...new pass_data instance and...
20748         (make_pass_sink_code): ...new function.
20749         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20750         subclass of gimple_opt_pass along with...
20751         (pass_data_strlen): ...new pass_data instance and...
20752         (make_pass_strlen): ...new function.
20753         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20754         struct to a subclass of gimple_opt_pass along with...
20755         (pass_data_build_alias): ...new pass_data instance and...
20756         (make_pass_build_alias): ...new function.
20757         (pass_build_ealias): Convert from a global struct to a subclass of
20758         gimple_opt_pass along with...
20759         (pass_data_build_ealias): ...new pass_data instance and...
20760         (make_pass_build_ealias): ...new function.
20761         (pass_ipa_pta): Convert from a global struct to a subclass of
20762         simple_ipa_opt_pass along with...
20763         (pass_data_ipa_pta): ...new pass_data instance and...
20764         (make_pass_ipa_pta): ...new function.
20765         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20766         subclass of gimple_opt_pass along with...
20767         (pass_data_uncprop): ...new pass_data instance and...
20768         (make_pass_uncprop): ...new function.
20769         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20770         global struct to a subclass of gimple_opt_pass along with...
20771         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20772         (make_pass_late_warn_uninitialized): ...new function.
20773         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20774         to a subclass of gimple_opt_pass along with...
20775         (pass_data_init_datastructures): ...new pass_data instance and...
20776         (make_pass_init_datastructures): ...new function.
20777         (pass_early_warn_uninitialized): Convert from a global struct to a
20778         subclass of gimple_opt_pass along with...
20779         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20780         (make_pass_early_warn_uninitialized): ...new function.
20781         (pass_update_address_taken): Convert from a global struct to a
20782         subclass of gimple_opt_pass along with...
20783         (pass_data_update_address_taken): ...new pass_data instance and...
20784         (make_pass_update_address_taken): ...new function.
20785         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20786         struct to a subclass of gimple_opt_pass along with...
20787         (pass_data_release_ssa_names): ...new pass_data instance and...
20788         (make_pass_release_ssa_names): ...new function.
20789         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20790         subclass of gimple_opt_pass along with...
20791         (pass_data_stdarg): ...new pass_data instance and...
20792         (make_pass_stdarg): ...new function.
20793         * tree-switch-conversion.c (pass_convert_switch): Convert from a
20794         global struct to a subclass of gimple_opt_pass along with...
20795         (pass_data_convert_switch): ...new pass_data instance and...
20796         (make_pass_convert_switch): ...new function.
20797         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20798         to a subclass of gimple_opt_pass along with...
20799         (pass_data_tail_recursion): ...new pass_data instance and...
20800         (make_pass_tail_recursion): ...new function.
20801         (pass_tail_calls): Convert from a global struct to a subclass of
20802         gimple_opt_pass along with...
20803         (pass_data_tail_calls): ...new pass_data instance and...
20804         (make_pass_tail_calls): ...new function.
20805         * tree-vect-generic.c (pass_lower_vector): Convert from a global
20806         struct to a subclass of gimple_opt_pass along with...
20807         (pass_data_lower_vector): ...new pass_data instance and...
20808         (make_pass_lower_vector): ...new function.
20809         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20810         gimple_opt_pass along with...
20811         (pass_data_lower_vector_ssa): ...new pass_data instance and...
20812         (make_pass_lower_vector_ssa): ...new function.
20813         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20814         to a subclass of gimple_opt_pass along with...
20815         (pass_data_slp_vectorize): ...new pass_data instance and...
20816         (make_pass_slp_vectorize): ...new function.
20817         (pass_ipa_increase_alignment): Convert from a global struct to a
20818         subclass of simple_ipa_opt_pass along with...
20819         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20820         (make_pass_ipa_increase_alignment): ...new function.
20821         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20822         gimple_opt_pass along with...
20823         (pass_data_vrp): ...new pass_data instance and...
20824         (make_pass_vrp): ...new function.
20825         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20826         subclass of simple_ipa_opt_pass along with...
20827         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20828         (make_pass_ipa_free_lang_data): ...new function.
20829         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20830         gimple_opt_pass along with...
20831         (pass_data_tsan): ...new pass_data instance and...
20832         (make_pass_tsan): ...new function.
20833         (pass_tsan_O0): Convert from a global struct to a subclass of
20834         gimple_opt_pass along with...
20835         (pass_data_tsan_O0): ...new pass_data instance and...
20836         (make_pass_tsan_O0): ...new function.
20837         * var-tracking.c (pass_variable_tracking): Convert from a global
20838         struct to a subclass of rtl_opt_pass along with...
20839         (pass_data_variable_tracking): ...new pass_data instance and...
20840         (make_pass_variable_tracking): ...new function.
20841         * web.c (pass_web): Convert from a global struct to a subclass of
20842         rtl_opt_pass along with...
20843         (pass_data_web): ...new pass_data instance and...
20844         (make_pass_web): ...new function.
20845         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20846         declaration with that of...
20847         (make_pass_mode_switch_use): ...new function.
20848         (pass_resolve_sw_modes): Replace declaration with that of...
20849         (make_pass_resolve_sw_modes): ...new function.
20850         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20851         from a global struct to a subclass of rtl_opt_pass along with...
20852         (pass_data_mode_switch_use): ...new pass_data instance and...
20853         (make_pass_mode_switch_use): ...new function.
20854         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20855         from a global struct to a subclass of rtl_opt_pass along with...
20856         (pass_data_resolve_sw_modes): ...new pass_data instance and...
20857         (make_pass_resolve_sw_modes): ...new function.
20858         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20859         struct to a subclass of rtl_opt_pass along with...
20860         (pass_data_insert_vzeroupper): ...new pass_data instance and...
20861         (make_pass_insert_vzeroupper): ...new function.
20862         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20863         global struct to a subclass of rtl_opt_pass along with...
20864         (pass_data_work_around_errata): ...new pass_data instance and...
20865         (make_pass_work_around_errata): ...new function.
20866         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20867         struct to a subclass of rtl_opt_pass along with...
20868         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20869         (make_pass_mips_machine_reorg2): ...new function.
20871 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20873         * passes.c (pass_manager::operator new): New.
20875 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20877         Handwritten part of conversion of passes to C++ classes.
20879         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20880         (toplev.o): Add dep on PASS_MANAGER_H.
20881         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20882         of early local pases to reflect this moving from a global to a
20883         member of gcc::pass_manager.
20884         (cgraph_add_new_function): Likewise.
20885         * lto-cgraph.c (lto_output_node): Update for conversion of
20886         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20887         * passes.c (opt_pass::clone): New.
20888         (opt_pass::gate): New.
20889         (opt_pass::execute): New.
20890         (opt_pass::opt_pass): New.
20891         (pass_manager::execute_early_local_passes): New.
20892         (pass_manager::execute_pass_mode_switching): new.
20893         (finish_optimization_passes): Convert to...
20894         (pass_manager::finish_optimization_passes): ...this.
20895         (finish_optimization_passes): Update for conversion of passes to
20896         C++ classes.
20897         (register_dump_files_1): Use has_gate since we cannot portably
20898         check a vtable entry against NULL.
20899         (dump_one_pass): Likewise.
20900         (ipa_write_summaries_2): Likewise.
20901         (ipa_write_optimization_summaries_1): Likewise.
20902         (ipa_read_summaries_1): Likewise.
20903         (ipa_read_optimization_summaries_1): Likewise.
20904         (execute_ipa_stmt_fixups): Likewise.
20905         (pass_manager::pass_manager): Rewrite pass-creation, invoking
20906         pass-creation functions rather than wiring up globals, and
20907         storing the results in fields of pass_manager generated using
20908         pass-instances.def.
20909         (pass_manager::dump_profile_report): Update for conversion of
20910         passes to C++ classes.
20911         (pass_manager::execute_ipa_summary_passes): Likewise.
20912         (execute_one_ipa_transform_pass): Likewise.
20913         (execute_one_pass): Use has_gate and has_execute since we cannot
20914         portably check a vtable entry against NULL.
20915         * pass_manager.h (pass_manager::finish_optimization_passes): New.
20916         (pass_manager): Use pass-instances.def to add fields for the
20917         various pass instances.
20918         * toplev.c (finalize): Update for move of
20919         finish_optimization_passes to a method of gcc::pass_manager.
20920         * toplev.h (finish_optimization_passes): Move to method of class
20921         pass_manager.
20922         * tree-pass.h (struct pass_data): New.
20923         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20924         (opt_pass::gate): Convert to virtual function.
20925         (opt_pass::~opt_pass): New.
20926         (opt_pass::clone): New.
20927         (opt_pass::execute): Convert to virtual function.
20928         (opt_pass::opt_pass): New.
20929         (opt_pass::ctxt_): new.
20930         (gimple_opt_pass): Convert to subclass of opt_pass.
20931         (gimple_opt_pass::gimple_opt_pass): New.
20932         (rtl_opt_pass): Convert to subclass of opt_pass.
20933         (rtl_opt_pass::rtl_opt_pass): New.
20934         (ipa_opt_pass_d): Convert to subclass of opt_pass.
20935         (ipa_opt_pass_d::ipa_opt_pass_d): New.
20936         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20937         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20938         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20939         invocation of pass_mode_switching to reflect this moving from a
20940         global to a member of gcc::pass_manager.
20941         (ix86_option_override): Rework how pass_insert_vzeroupper is
20942         added to the pass_manager to reflect autogenerated changes.
20943         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20945 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
20947         PR rtl-optimization/57708
20948         * recog.c (peep2_find_free_register): Validate all regs in a
20949         multi-reg mode.
20951 2013-08-05  Jan Hubicka  <jh@suse.cz>
20953         PR lto/57602
20954         * cgraph.c (verify_cgraph_node): Accept local flags from other
20955         partitions.
20956         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20957         (function_and_variable_visibility): Likewise.
20958         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20960 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20962         * graph.c (init_graph_slim_pretty_print): Remove.
20963         (print_graph_cfg): Do not call it.  Use local pretty printer.
20964         (start_graph_dump): Likewise.
20966 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20968         * gimple-pretty-print.c (buffer): Remove.
20969         (initialized): Likewise.
20970         (maybe_init_pretty_print): Likewise.
20971         (print_gimple_stmt): Do not call it.  Use non-static local
20972         pretty_printer variable.
20973         (print_gimple_expr): Likewise.
20974         (print_gimple_seq): Likewise.
20975         (gimple_dump_bb): Likewise.
20977 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20979         * asan.c (asan_pp): Remove.
20980         (asan_pp_initialized): Likewise.
20981         (asan_pp_initialize): Likewise.
20982         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
20983         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
20984         (asan_add_global): Likewise.
20986 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20988         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
20989         * diagnostic.h (diagnostic_flush_buffer): Adjust.
20990         * pretty-print.c (pp_formatted_text_data): Likewise.
20991         (pp_indent): Rename from pp_base_indent.
20992         (pp_format): Rename from pp_base_format.
20993         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20994         (pp_format_verbatim): Rename from pp_base_format_verbatim.
20995         (pp_flush): Rename from pp_base_flush.
20996         (pp_set_line_maximum_length): Rename from
20997         pp_base_set_line_maximum_length.
20998         (pp_clear_output_area): Rename from pp_base_clear_output_area.
20999         (pp_set_prefix): Rename from pp_base_set_prefix.
21000         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
21001         (pp_emit_prefix): Rename from pp_base_emit_prefix.
21002         (pp_append_text): Rename from pp_base_append_text.
21003         (pp_formatted_text): Rename from pp_base_formatted_text.
21004         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
21005         (pp_remaining_character_count_for_line): Rename from
21006         pp_base_remaining_character_count_for_line.
21007         (pp_newline): Rename from pp_base_newline.
21008         (pp_character): Rename from pp_base_character.
21009         (pp_string): Rename from pp_base_string.
21010         (pp_maybe_space): Rename from pp_base_maybe_space.
21011         * asan.c (asan_pp_string): Adjust.
21012         (asan_emit_stack_protection): Likewise.
21013         (asan_add_global): Likewise.
21014         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
21015         * tree-mudflap.c (mf_varname_tree): Likewise.
21016         * tree-pretty-print.c (pp_tree_identifier): Rename from
21017         pp_base_tree_identifier.
21018         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
21019         Declare as function.
21021 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21023         * pretty-print.h (pp_bar_bar): New.
21024         (pp_ampersand_ampersand): Likewise.
21025         (pp_less_equal): Likewise.
21026         (pp_greater_equal): Likewise.
21027         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
21028         printer functions instead of pp_string or operators and punctuators.
21029         (dump_gimple_call): Likewise.
21030         (dump_gimple_omp_for): Likewise.
21031         (dump_gimple_transaction): Likewise.
21032         (dump_gimple_phi): Likewise.
21033         (pp_gimple_stmt_1): Likewise.
21034         * sched-vis.c (print_insn): Likewise.
21035         * tree-mudflap.c (mf_varname_tree): Likewise.
21036         * tree-pretty-print.c (dump_block_node): Likewise.
21037         (dump_generic_node): Likewise.
21039 2013-08-02  Jan Hubicka  <jh@suse.cz>
21041         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
21042         boundaries.
21043         * lto-streamer-out.c (tree_is_indexable): Results decls and
21044         parm decls are not indexable.
21045         (DFS_write_tree_body): Do not follow args and results.
21046         (hash_tree): Likewise.
21047         (output_functions): Rearrange so struct function is needed
21048         only when real body is output; be able to also ouptut abstract
21049         functions; output DECL_ARGUMENTS and DECL_RESULT.
21050         (lto_output): When not in WPA, ale store abstract functions.
21051         (write_symbol): Do not care about RESULT_DECL.
21052         (output_symbol_p): Handle correctly sbtract decls.
21053         * lto-streamer-in.c (input_function): Rearrange so struct
21054         function can be NULL at entry; allow streaming of
21055         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
21056         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
21057         sanity check during LTO.
21058         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
21059         RESULT_DECl and DECL_ARGUMENTS.
21060         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
21061         Likewise.
21063 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21065         * pretty-print.h (pp_underscore): New.
21066         (pp_comma): Tidy.
21067         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
21068         printer functions instead of pp_character.
21069         (dump_binary_rhs): Likewise.
21070         (dump_ternary_rhs): Likewise.
21071         (dump_gimple_call_args): Likewise.
21072         (pp_points_to_solution): Likewise.
21073         (dump_gimple_call): Likewise.
21074         (dump_gimple_switch): Likewise.
21075         (dump_gimple_cond): Likewise.
21076         (dump_gimple_bind): Likewise.
21077         (dump_gimple_try): Likewise.
21078         (dump_gimple_omp_for): Likewise.
21079         (dump_gimple_omp_continue): Likewise.
21080         (dump_gimple_omp_single): Likewise.
21081         (dump_gimple_omp_sections): Likewise.
21082         (dump_gimple_omp_block): Likewise.
21083         (dump_gimple_omp_critical): Likewise.
21084         (dump_gimple_transaction): Likewise.
21085         (dump_gimple_asm): Likewise.
21086         (dump_gimple_phi): Likewise.
21087         (dump_gimple_omp_parallel): Likewise.
21088         (dump_gimple_omp_task): Likewise.
21089         (dump_gimple_omp_atomic_load): Likewise.
21090         (dump_gimple_omp_atomic_store): Likewise.
21091         (dump_gimple_mem_ops): Likewise.
21092         (pp_gimple_stmt_1): Likewise.
21093         (pp_cfg_jump): Likewise.
21094         (dump_implicit_edges): Likewise.
21095         (gimple_dump_bb_for_graph): Likewise.
21096         * graph.c (draw_cfg_node): Likewise.
21097         * langhooks.c (lhd_print_error_function): Likewise.
21098         * sched-vis.c (print_exp): Likewise.
21099         (print_value): Likewise.
21100         (print_pattern): Likewise.
21101         (print_insn): Likewise.
21102         (rtl_dump_bb_for_graph): Likewise.
21103         * tree-pretty-print.c (dump_function_declaration): Likewise.
21104         (dump_array_domain): Likewise.
21105         (dump_omp_clause): Likewise.
21106         (dump_location): Likewise.
21107         (dump_generic_node): Likewise.
21108         (print_struct_decl): Likewise.
21109         * diagnostic.c (diagnostic_show_locus): Use pp_space.
21111 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21113         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
21114         candidate table when replacing a candidate statement.
21115         (replace_rhs_if_not_dup): Likewise.
21116         (replace_one_candidate): Likewise.
21118 2013-08-02  Jan Hubicka  <jh@suse.cz>
21119             Martin Liska  <marxin.liska@gmail.com>
21121         * cgraphunit.c (add_new_function): Fix logic when adding from
21122         late IPA pass.
21123         (assemble_thunk): Rename to ...
21124         (expand_thunk); .. this one; export; get it working with
21125         general functions; make produced gimple valid.
21126         * cgraph.h (expand_thunk): Declare.
21128 2013-08-02  Jan Hubicka  <jh@suse.cz>
21130         * ipa-cp.c (gather_context_independent_values): Use
21131         ipa_get_param_move_cost.
21132         (get_replacement_map): Remove PARAM; move parameter folding
21133         into tree-inline.c
21134         (create_specialized_node): Update.
21135         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
21136         assert that we have gimple body; update move_cost.
21137         (count_formal_params): Assert that we have gimple body.
21138         (ipa_dump_param): New function.
21139         (ipa_alloc_node_params): Break out from ...
21140         (ipa_initialize_node_params): ... here.
21141         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
21142         (ipa_write_node_info): Stream move costs.
21143         (ipa_read_node_info): Read move costs.
21144         (ipa_update_after_lto_read): Do not recompute node params.
21145         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
21146         (ipa_get_param): Check we are not in WPA.
21147         (ipa_get_param_move_cost): New.
21148         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
21149         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
21150         parm numbers to be present.
21152 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
21154         PR rtl-optimization/58048
21155         * lra-constraints.c (process_alt_operands): Don't check asm
21156         operand on register.
21158 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
21160         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
21161         the implied StoreLoad barrier for atomic operations if before.
21163 2013-08-02  Jan Hubicka  <jh@suse.cz>
21164             Martin Liska  <marxin.liska@gmail.com>
21166         * cgraph.c (cgraph_function_body_availability): Do not check
21167         cgraph flags.
21168         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
21169         symtab_node_availability): Declare.
21170         * ipa.c (can_replace_by_local_alias): New.
21171         (function_and_variable_visibility): Use it.
21172         * symtab.c (symtab_for_node_and_aliases,
21173         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
21175 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
21177         PR rtl-optimization/57963
21178         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
21179         (lra_constraints): Use them.
21181 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
21183         * config/arm/types.md (define_attr "type"): Add "load_acq"
21184         and "store_rel".
21185         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
21186         changes.
21187         (cortex_a53_store1): Likewise.
21189 2013-08-01  Jan Hubicka  <jh@suse.cz>
21191         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
21192         partitions are not needed.
21194 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
21196         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
21197         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
21198         MAYBE_NON_Q_CLASS_P where appropriate.
21200 2013-08-01  Jan Hubicka  <jh@suse.cz>
21202         * cgraph.h (release_function_body): Declare.
21203         * tree.c (free_lang_data_in_decl): Free, parameters and return values
21204         of unused delcarations.
21206 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21208         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
21209         RTL form when subtracting a constant.
21211 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21213         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
21214         Generate canonical plus rtx with negated immediate instead of minus
21215         where appropriate.
21216         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
21218 2013-08-01  Jan Hubicka  <jh@suse.cz>
21220         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
21221         (cgraph_release_function_body): Likewise.
21222         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
21223         * cgraph.h (cgrpah_node): Rename abstract_and_needed
21224         to used_as_abstract_origin.
21225         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
21226         symbols used as abstract origins.
21227         * cgraphunit.c (analyze_functions): Update.
21228         * ipa.c (symtab_remove_unreachable_nodes): Recompute
21229         used_as_abstract_origin.
21230         * tree-inline.c (tree_function_versioning): Update
21231         used_as_abstract_origin; be ready for DECL_RESULT and
21232         DECL_ARGUMENTS to be NULL.
21234         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
21235         for abstract functions.
21236         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
21237         real symbols.
21239 2013-08-01  Jan Hubicka  <jh@suse.cz>
21241         * profile.c (compute_value_histograms): Fix thinko.
21243 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
21245         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
21246         aarch-common-protos.h to extra_headers.
21247         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21248         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
21249         * config/aarch64/t-aarch64 (aarch-common.o): Define.
21251 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
21253         * config/aarch64/aarch64.md (define_attr "type"): Delete.
21254         Include "../arm/types.md".  Define "type" attribute for all patterns.
21255         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
21256         attribute changes.
21258 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
21260         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
21261         to support power8 load fusion.
21262         (fusion_gpr_mem_load): Likewise.
21264         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
21266         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
21267         declarations for power8 load fusion.
21268         (emit_fusion_gpr_load): Likewise.
21270         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21271         tuning for power8, turn on fusion mode by default.  Turn on sign
21272         extending fusion mode if normal fusion mode is on, and we are at
21273         -O2 or -O3.
21274         (fusion_gpr_load_p): New function, return true if we can fuse an
21275         addis instruction with a dependent load to a GPR.
21276         (emit_fusion_gpr_load): Emit the instructions for power8 load
21277         fusion to GPRs.
21279         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21280         (VSX load fusion peepholes): New peepholes to fuse together an
21281         addi instruction with a VSX load instruction.
21283         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21284         peepholes to fuse an addis instruction with a load to a GPR base
21285         register.  If we are supporting sign extending fusions, convert
21286         sign extending loads to zero extending loads and add an explicit
21287         sign extension.
21289 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
21291         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
21292         aarch-common-protos.h to extra_headers.
21293         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21294         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21295         (arm_early_store_addr_dep): Likewise.
21296         (arm_no_early_alu_shift_dep): Likewise.
21297         (arm_no_early_alu_shift_value_dep): Likewise.
21298         (arm_no_early_mul_dep): Likewise.
21299         (arm_no_early_store_addr_dep): Likewise.
21300         (arm_mac_accumulator_is_mul_result): Likewise.
21301         (arm_mac_accumulator_is_result): Likewise.
21302         * config/arm/aarch-common.c: ... here.  New file.
21303         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21304         here to ...
21305         (arm_early_store_addr_dep): Likewise.
21306         (arm_no_early_alu_shift_dep): Likewise.
21307         (arm_no_early_alu_shift_value_dep): Likewise.
21308         (arm_no_early_mul_dep): Likewise.
21309         (arm_no_early_store_addr_dep): Likewise.
21310         (arm_mac_accumulator_is_mul_result): Likewise.
21311         (arm_mac_accumulator_is_result): Likewise.
21312         * config/arm/aarch-common-protos.h: ... here.  New file.
21313         * config/arm/t-arm (aarch-common.o): Define.
21315 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
21317         * config/arm/arm.md: Include new file "types.md".
21318         (define_attr "type"): Move from here to ...
21319         (define_attr "mul32"): Likewise.
21320         (define_attr "mul64"): Likewise.
21321         * config/arm/types.md: ... here.  New file.
21323 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21325         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21326         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21328 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21330         * gen-pass-instances.awk: Fix offset of substr().
21332 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
21334         * Makefile.in (pass-instances.def): New.
21335         (passes.o): Replace dependency on passes.def with one on
21336         pass-instances.def
21338         * gen-pass-instances.awk: New.
21340         * passes.c (pass_manager::pass_manager): Use pass-instances.def
21341         rather than passes.def, updating local definition of NEXT_PASS
21342         macro to add an extra NUM parameter (currently unused).
21344 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
21346         * Makefile.in (PASS_MANAGER_H): New.
21347         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21348         (passes.o): Likewise.
21349         (statistics.o): Likewise.
21350         (cgraphunit.o): Likewise.
21351         (context.o): Depend on PASS_MANAGER_H.
21353         * pass_manager.h: New.
21355         * cgraphunit.c (cgraph_add_new_function): Update for moves
21356         of globals to fields of pass_manager.
21357         (analyze_function): Likewise.
21358         (expand_function): Likewise.
21359         (ipa_passes): Likewise.
21360         (compile): Likewise.
21362         * context.c (context::context): New.
21363         * context.h  (context::context): New.
21364         (context::get_passes): New.
21365         (context::passes_): New.
21367         * lto-cgraph.c (input_node): Update for moves of globals to
21368         fields of pass_manager.
21370         * passes.c (all_passes): Remove, in favor of a field of the
21371         same name within the new class pass_manager.
21372         (all_small_ipa_passes): Likewise.
21373         (all_lowering_passes): Likewise.
21374         (all_regular_ipa_passes): Likewise.
21375         (all_late_ipa_passes): Likewise.
21376         (all_lto_gen_passes): Likewise.
21377         (passes_by_id): Likewise.
21378         (passes_by_id_size): Likewise.
21379         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21380         the new class pass_manager.
21381         (set_pass_for_id): Convert to...
21382         (pass_manager::set_pass_for_id): ...method.
21383         (get_pass_for_id): Convert to...
21384         (pass_manager::get_pass_for_id): ...method.
21385         (register_one_dump_file): Move body of implementation into...
21386         (pass_manager::register_one_dump_file): ...here.
21387         (register_dump_files_1): Convert to...
21388         (pass_manager::register_dump_files_1): ...method.
21389         (register_dump_files): Convert to...
21390         (pass_manager::register_dump_files): ...method.
21391         (create_pass_tab): Update for moves of globals to fields of
21392         pass_manager.
21393         (dump_passes): Move body of implementation into...
21394         (pass_manager::dump_passes): ...here.
21395         (register_pass): Move body of implementation into...
21396         (pass_manager::register_pass): ...here.
21397         (init_optimization_passes): Convert into...
21398         (pass_manager::pass_manager): ...constructor for new
21399         pass_manager class, and initialize the pass_lists array.
21400         (check_profile_consistency): Update for moves of globals to
21401         fields of pass_manager.
21402         (dump_profile_report): Move body of implementation into...
21403         (pass_manager::dump_profile_report): ...here.
21404         (ipa_write_summaries_1): Update for moves of pass lists from
21405         being globals to fields of pass_manager.
21406         (ipa_write_optimization_summaries): Likewise.
21407         (ipa_read_summaries):  Likewise.
21408         (ipa_read_optimization_summaries): Likewise.
21409         (execute_all_ipa_stmt_fixups): Likewise.
21411         * statistics.c (statistics_fini): Update for moves of globals to
21412         fields of pass_manager.
21414         * toplev.c (general_init): Replace call to
21415         init_optimization_passes with construction of the pass_manager
21416         instance.
21418         * tree-pass.h (all_passes): Remove, in favor of a field of the
21419         same name within the new class pass_manager.
21420         (all_small_ipa_passes): Likewise.
21421         (all_lowering_passes): Likewise.
21422         (all_regular_ipa_passes): Likewise.
21423         (all_lto_gen_passes): Likewise.
21424         (all_late_ipa_passes): Likewise.
21425         (passes_by_id): Likewise.
21426         (passes_by_id_size): Likewise.
21427         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21428         the new class pass_manager.
21429         (get_pass_for_id): Remove.
21431 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21433         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21434         configs.
21436 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21438         * arm.md (mulhi3): New expand pattern.
21440 2013-07-30  Jan Hubicka  <jh@suse.cz>
21441             Martin Liska  <marxin.liska@gmail.com>
21443         * profile.c (compute_value_histograms): Do not ICE when
21444         there is mismatch only on some counters.
21446 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21448         PR rtl-optimization/57637
21449         * function.c (move_insn_for_shrink_wrap): Also check the
21450         GEN set of the LIVE problem for the liveness analysis
21451         if it exists, otherwise give up.
21453 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21455         PR tree-optimization/57993
21456         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21457         replaced statement in the candidate table.
21458         (phi_add_costs): Return infinite cost when the hidden basis does
21459         not dominate all phis on which the candidate is dependent.
21460         (replace_one_candidate): Record replaced statement in the
21461         candidate table.
21463 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21465         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21466         (ashlv2si3): New expander.
21467         (*ashlv2si3_i): New define_insn_and_split.
21468         * predicates.md (float_operation): Allow patterns with three
21469         basic sub-patterns.
21471         PR rtl-optimization/58021
21472         * mode-switching.c (create_pre_exit): Always split off preceding
21473         insns if we are not at the basic block head.
21475 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
21477         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21478         (UCLIBC_DYNAMIC_LINKER): New macro.
21479         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21480         `-mnan=2008'.
21481         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21482         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
21483         `-mnan=2008'.
21484         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21485         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21486         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21487         for SF and DF modes.  Use ieee_quad_format for TF mode.
21488         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21489         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21490         (mips_option_override): Handle `-mnan=legacy'.
21491         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21492         `-mabs=2008' and `-mnan=2008'.
21493         (OPTION_DEFAULT_SPECS): Add "nan" default.
21494         (ASM_SPEC): Handle `-mnan='.
21495         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21496         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21497         comment accordingly.
21498         (neg<mode>2): Likewise.
21499         * config/mips/mips.opt (mabs, mnan): New options.
21500         * doc/install.texi (Configuration): Document `--with-nan=' option.
21501         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21502         `-mnan=' options.
21503         (MIPS Options): Document them.
21504         * config.gcc <mips*-*-*>: Handle `--with-nan='.
21505         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21506         * configure: Regenerate.
21507         * config.in: Regenerate.
21509 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21511         * config/i386/i386.md (float post-reload splitters): Do not check
21512         for subregs of SSE registers.
21514 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21515             H.J. Lu  <hongjiu.lu@intel.com>
21517         PR target/57954
21518         PR target/57988
21519         * config/i386/i386.md (post-reload splitter
21520         to avoid partial SSE reg dependency stalls): New pattern.
21522 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21524         * config/s390/s390.md ("movcc"): Swap load and store instructions.
21526 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
21528         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21529         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21531 2013-07-26  Cary Coutant  <ccoutant@google.com>
21533         * dwarf2out.c (die_checksum_ordered): Don't include template
21534         instantiations in signature.
21535         (is_template_parameter): New function.
21536         (is_template_instantiation): New function.
21537         (generate_skeleton_bottom_up): Don't include template instantiations
21538         in type unit DIE.
21539         (generate_skeleton): Likewise.
21540         (break_out_comdat_types): Move recursive call to break out nested
21541         types earlier.
21542         (prune_unused_types_mark_generic_parms_dies): Call
21543         is_template_parameter.
21545 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
21547         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21548         uses vector registers.
21549         * config/aarch64/iterators.md: Add attributes rtn and vas.
21551 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21552             Richard Earnshaw  <richard.earnshaw@arm.com>
21554         * combine.c (simplify_comparison): Re-canonicalize operands
21555         where appropriate.
21556         * config/arm/arm.md (movcond_addsi): New splitter.
21558 2013-07-25  Sterling Augustine  <saugustine@google.com>
21560         * dwarf2out.c (size_of_pubnames): Move code to...
21561         (include_pubname_in_output): ...here.  New.
21562         (want_pubnames): Rearrange.
21563         (output_pubnames): Call include_pubname_in_output.  Move assertion.
21565 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21567         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21569 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21571         PR target/38836
21572         * doc/extend.texi: Remove obsolete builtins. Fix
21573         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21575 2013-07-25  Jan Hubicka  <jh@suse.cz>
21577         * cgraph.c (release_function_body): Break out from ...
21578         (cgraph_release_function_body): ... this one; also release DECL_RESULT
21579         and DECL_ARGUMENTS.
21580         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21581         old_tree in the map.
21582         (create_specialized_node): Update.
21583         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21584         into index.
21585         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21586         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21587         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21588         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21589         DECL_RESULT.
21591 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21593         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21594         addsi3_carryin_alt2_<optab>): Correct output template.
21596 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21598         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21599         Adjust for arm_restrict_it.
21600         Remove trailing whitespace.
21602 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
21604         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21605         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21607         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21609 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
21611         PR rtl-optimization/57960
21612         * lra-constraints.c (process_alt_operands): Use the right mode
21613         when checking strict_low.
21615 2013-07-25  Jan Hubicka  <jh@suse.cz>
21617         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21618         * cgraph.c (cgraph_remove_node): Do not release function body
21619         when in cgraph streaming.
21620         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21621         in other partitions are not considered reachable; fix handling of
21622         clones.
21624 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21626         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21628 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21630         PR target/19599
21631         PR target/57731
21632         PR target/57837
21633         * config/arm/arm.md ("*sibcall_insn): Replace use of
21634         Ss with US. Adjust output for v5 and v4t.
21635         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21637         * config/arm/constraints.md ("Ss"): Rename to US.
21639 2013-07-25  Terry Guo  <terry.guo@arm.com>
21641         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21642         shift_add/shift_sub0/shift_sub1 RTXs.
21644 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
21645             Anton Blanchard  <anton@au1.ibm.com>
21647         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21648         (altivec_vpks<VI_char>ss): Likewise.
21649         (altivec_vpks<VI_char>us): Likewise.
21650         (altivec_vpku<VI_char>us): Likewise.
21651         (altivec_vpku<VI_char>um): Likewise.
21653 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
21655         Introduce context class.
21657         * Makefile.in (CONTEXT_H): New.
21658         (OBJS): Add context.o.
21659         (toplev.o): Add CONTEXT_H to dependencies.
21660         (context.o): New.
21662         * toplev.c (general_init): Create the singleton gcc::context instance.
21664         * context.c: New.
21666         * context.h: New.
21668 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
21670         PR rtl-optimization/57968
21671         * mode-switching.c (create_pre_exit): Allow instructions that
21672         don't set a return register to need a non-exit mode.
21674 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21675             Anton Blanchard  <anton@au1.ibm.com>
21677         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21678         operands to vperm for little endian.
21679         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21680         of lvsl to create the control mask for a vperm for little endian.
21682 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21683             Anton Blanchard  <anton@au1.ibm.com>
21685         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21686         two operands for little-endian.
21688 2013-07-23  Steve Ellcey  <sellcey@mips.com>
21690         * config/mips/mips.c (mips_case_values_threshold): New.
21691         (TARGET_CASE_VALUES_THRESHOLD): Define.
21693 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21694             Anton Blanchard  <anton@au1.ibm.com>
21696         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21697         selection of field for vector splat in little endian mode.
21699 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
21701         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21702         expanders to rs6000.md.
21703         (ior<mode>3): Likewise.
21704         (and<mode>3): Likewise.
21705         (one_cmpl<mode>2): Likewise.
21706         (nor<mode>3): Likewise.
21707         (andc<mode>3): Likewise.
21708         (eqv<mode>3): Likewise.
21709         (nand<mode>3): Likewise.
21710         (orc<mode>3): Likewise.
21712         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21713         declaration.
21715         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21716         to split multi-word logical operations.
21717         (rs6000_split_logical_di): Likewise.
21718         (rs6000_split_logical): Likewise.
21720         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21721         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21722         and allow TImode operations in 32-bit.
21723         (vsx_and<mode>3_64bit): Likewise.
21724         (vsx_ior<mode>3_32bit): Likewise.
21725         (vsx_ior<mode>3_64bit): Likewise.
21726         (vsx_xor<mode>3_32bit): Likewise.
21727         (vsx_xor<mode>3_64bit): Likewise.
21728         (vsx_one_cmpl<mode>2_32bit): Likewise.
21729         (vsx_one_cmpl<mode>2_64bit): Likewise.
21730         (vsx_nor<mode>3_32bit): Likewise.
21731         (vsx_nor<mode>3_64bit): Likewise.
21732         (vsx_andc<mode>3_32bit): Likewise.
21733         (vsx_andc<mode>3_64bit): Likewise.
21734         (vsx_eqv<mode>3_32bit): Likewise.
21735         (vsx_eqv<mode>3_64bit): Likewise.
21736         (vsx_nand<mode>3_32bit): Likewise.
21737         (vsx_nand<mode>3_64bit): Likewise.
21738         (vsx_orc<mode>3_32bit): Likewise.
21739         (vsx_orc<mode>3_64bit): Likewise.
21741         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21742         logical types in GPRs.
21744         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21745         logical insns to rs6000.md, and allow TImode operations in
21746         32-bit.
21747         (altivec_ior<mode>3): Likewise.
21748         (altivec_xor<mode>3): Likewise.
21749         (altivec_one_cmpl<mode>2): Likewise.
21750         (altivec_nor<mode>3): Likewise.
21751         (altivec_andc<mode>3): Likewise.
21753         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21754         attributes for moving the 128-bit logical operations into
21755         rs6000.md.
21756         (BOOL_REGS_OUTPUT): Likewise.
21757         (BOOL_REGS_OP1): Likewise.
21758         (BOOL_REGS_OP2): Likewise.
21759         (BOOL_REGS_UNARY): Likewise.
21760         (BOOL_REGS_AND_CR0): Likewise.
21761         (one_cmpl<mode>2): Add support for DI logical operations on
21762         32-bit, splitting the operations to 32-bit.
21763         (anddi3): Likewise.
21764         (iordi3): Likewise.
21765         (xordi3): Likewise.
21766         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21767         changes to combine the 32/64-bit code, allow logical operations on
21768         TI mode in 32-bit, and to use similar match_operator patterns like
21769         scalar mode uses.  Combine the Altivec and VSX code for logical
21770         operations, and move it here.
21771         (ior<mode>3, 128-bit types): Likewise.
21772         (xor<mode>3, 128-bit types): Likewise.
21773         (one_cmpl<mode>3, 128-bit types): Likewise.
21774         (nor<mode>3, 128-bit types): Likewise.
21775         (andc<mode>3, 128-bit types): Likewise.
21776         (eqv<mode>3, 128-bit types): Likewise.
21777         (nand<mode>3, 128-bit types): Likewise.
21778         (orc<mode>3, 128-bit types): Likewise.
21779         (and<mode>3_internal): Likewise.
21780         (bool<mode>3_internal): Likewise.
21781         (boolc<mode>3_internal1): Likewise.
21782         (boolc<mode>3_internal2): Likewise.
21783         (boolcc<mode>3_internal1): Likewise.
21784         (boolcc<mode>3_internal2): Likewise.
21785         (eqv<mode>3_internal1): Likewise.
21786         (eqv<mode>3_internal2): Likewise.
21787         (one_cmpl1<mode>3_internal): Likewise.
21789 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21791         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21792         Rename flag_stack_usage to flag_stack_usage_info.
21794 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21796         * config/microblaze/sync.md: New file.
21797         * config/microblaze/microblaze.md: Include sync.md
21798         * config/microblaze/microblaze.c: Add print_operand 'y'.
21799         * config/microblaze/constraints.md: Add memory_contraint
21800         'Q' which is a single register.
21802 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
21804         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21806 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21808         * reload.c (find_reloads): Exit loop once we find this operand
21809         cannot be reloaded somehow for this alternative.
21811         * reload.c (find_reloads): Exit loop once we find a hard register.
21813         * rtlanal.c (computed_jump_p): Exit loop once we find label
21814         reference is used.
21816         * i386.c (ix86_pad_returns): Exit loop after setting replace.
21818         * cfgloopmanip.c (remove_path): Exit loop after setting
21819         irred_invalidated.
21821         * gensupport.c (subst_dup): Avoid loop if code is not
21822         MATCH_DUP nor MATCH_OP_DUP.
21824 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
21826         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21828 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21830         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21831         true for SP_REGNUM if mode == ptr_mode.
21832         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21833         with value R0_REGNUM + 31.
21835 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21837         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21838         pad pointer-typed argument downward.
21840 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21842         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21843         and __ILP32__ when the ILP32 model is in use.
21845 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21847         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21848         (aarch64_load_symref_appropriately): In the case of
21849         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21850         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21851         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21852         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21853         if 'mode' doesn't equal to 'ptr_mode'.
21854         (aarch64_output_mi_thunk): Add an assertion on the alignment of
21855         'vcall_offset'; change to call aarch64_emit_move differently depending
21856         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21857         to calculate the upper bound of 'vcall_offset'.
21858         (aarch64_cannot_force_const_mem): Change to also return true if
21859         mode != ptr_mode.
21860         (aarch64_legitimize_reload_address): In the case of large
21861         displacements, add new local variable 'xmode' and an assertion
21862         based on it; change to use 'xmode' to generate the new rtx and
21863         reload.
21864         (aarch64_asm_trampoline_template): Change to generate the template
21865         differently depending on TARGET_ILP32 or not; change to use
21866         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21867         (aarch64_trampoline_size): Removed.
21868         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21869         and replace immediate literals with it.  Change to use 'ptr_mode'
21870         instead of 'DImode' and call convert_memory_address if the mode
21871         of 'fnaddr' doesn't equal to 'ptr_mode'.
21872         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21873         to output symbol.
21874         (aarch64_elf_asm_destructor): Likewise.
21875         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21876         on TARGET_ILP32 instead of aarch64_trampoline_size.
21877         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21878         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21879         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21880         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
21881         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21882         (storewb_pair<GPI:mode>_<P:mode>): ... this.
21883         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21884         depending on the value of 'mode'.
21885         (add_losym_<mode>): New.
21886         (ldr_got_small_<mode>): New, based on ldr_got_small.
21887         (ldr_got_small): Remove.
21888         (ldr_got_small_sidi): New.
21889         * config/aarch64/iterators.md (P): New.
21890         (PTR): Change to 'ptr_mode' in the condition.
21892 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21894         * config.gcc (aarch64*-*-*): Support --with-abi.
21895         (aarch64*-*-elf): Support --with-multilib-list.
21896         (aarch64*-*-linux*): Likewise.
21897         (supported_defaults): Add abi to aarch64*-*-*.
21898         * configure.ac: Mention AArch64 for --with-multilib-list.
21899         * configure: Re-generated.
21900         * config/aarch64/biarchilp32.h: New file.
21901         * config/aarch64/biarchlp64.h: New file.
21902         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21903         (ABI_SPEC): Ditto.
21904         (MULTILIB_DEFAULTS): Ditto.
21905         (DRIVER_SELF_SPECS): Ditto.
21906         (ASM_SPEC): Update to also substitute -mabi.
21907         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21908         file whose name depends on -mabi= and -mbig-endian.
21909         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21910         TARGET_ILP32.
21911         (POINTER_SIZE): New define.
21912         (POINTERS_EXTEND_UNSIGNED): Ditto.
21913         (enum aarch64_abi_type): New enumeration tag.
21914         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21915         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21916         (TARGET_ILP32): New define.
21917         * config/aarch64/aarch64.opt (mabi): New.
21918         (aarch64_abi): New.
21919         (ilp32, lp64): New values for -mabi.
21920         * config/aarch64/t-aarch64 (comma): New define.
21921         (MULTILIB_OPTIONS): Ditto.
21922         (MULTILIB_DIRNAMES): Ditto.
21923         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21924         * doc/invoke.texi: Document -mabi for AArch64.
21926 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
21928         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21930 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21931             Anton Blanchard  <anton@au1.ibm.com>
21933         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21934         endianness when selecting field to splat.
21936 2013-07-22  Eric Christopher  <echristo@gmail.com>
21938         * dwarf2out.c (die_odr_checksum): New function to use
21939         CHECKSUM_ macros and ULEB128 for DIE tag.
21940         (generate_type_signature): Use.
21942 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
21944         * config.gcc (sparc*-*-*): Accept leon3 processor.
21945         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21946         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21947         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21948         * config/sparc/sparc.opt (enum processor_type): Add leon3.
21949         (mfix-ut699): Adjust comment.
21950         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21951         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21952         (CPP_CPU_SPEC): Likewise.
21953         (ASM_CPU_SPEC): Likewise.
21954         * config/sparc/sparc.c (leon3_cost): New constant.
21955         (sparc_option_override): Add leon3 support.
21956         (mem_ref): New function.
21957         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21958         (sparc_do_work_around_errata): Look into the instruction in the delay
21959         slot and adjust accordingly.  Add fix for the data cache nullify issues
21960         of the UT699.  Change insertion position for the NOP.
21961         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21962         (leon3_load): New reservation.
21963         (leon_store): Bump latency to 2.
21964         (grfpu): New automaton.
21965         (grfpu_alu): New unit.
21966         (grfpu_ds): Likewise.
21967         (leon_fp_alu): Adjust.
21968         (leon_fp_mult): Delete.
21969         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21970         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21971         * config/sparc/sparc.md (cpu): Add leon3.
21972         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21973         (swapsi): Likewise.
21974         (atomic_test_and_set): Likewise.
21975         (ldstub): Likewise.
21977 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
21979         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
21980         default for R5900 targets.
21981         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21982         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21983         * config/mips/mips.c (mips_option_override): Report an error for
21984         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
21985         for -march=r5900 -mhard-float.
21987 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21989         * df-problems.c (can_move_insns_across): Exit loop once we
21990         find a non-fixed, non-global register.
21992         * ipa-pure-const.c (propagate_nothrow): Exit loop after
21993         setting can_throw.
21995         * omega.c (omega_eliminate_red): Break after setting red_found.
21996         (omega_problem_has_red_equations): Similarly after setting found.
21997         (omega_query_variable): Similarly after setting coupled.
21999 2013-07-22  Marek Polacek  <polacek@redhat.com>
22001         * gimplify.c: Don't include gimple.h twice.
22003 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22005         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
22006         instead of TARGET_THUMB1.
22007         (Pz): New constraint.
22008         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
22009         encodings.
22010         (compare_negsi_si): Likewise.
22011         (compare_addsi2_op0): Likewise.
22012         (compare_addsi2_op1): Likewise.
22013         (addsi3_carryin_<optab>): Likewise.
22014         (addsi3_carryin_alt2_<optab>): Likewise.
22015         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
22016         for arm_restrict_it.
22017         (subsi3_carryin): Likewise.
22018         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
22019         (minmax_arithsi): Disable for arm_restrict_it.
22020         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
22021         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
22022         (satsi_<SAT:code>_shift): Likewise.
22023         (arm_shiftsi3): Add alternative for 16-bit encoding.
22024         (arm32_movhf): Disable for arm_restrict_it.
22025         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
22026         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
22028 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
22030         * config/arm/arm.md (attribute "insn"): Delete.
22031         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
22032         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
22033         (not_shiftsi): Update for attribute change.
22034         (not_shiftsi_compare0): Likewise.
22035         (not_shiftsi_compare0_scratch): Likewise.
22036         (arm_one_cmplsi2): Likewise.
22037         (thumb1_one_cmplsi2): Likewise.
22038         (notsi_compare0): Likewise.
22039         (notsi_compare0_scratch): Likewise.
22040         (thumb1_movdi_insn): Likewise.
22041         (arm_movsi_insn): Likewise.
22042         (movhi_insn_arch4): Likewise.
22043         (movhi_bytes): Likewise.
22044         (arm_movqi_insn): Likewise.
22045         (thumb1_movqi_insn): Likewise.
22046         (arm32_movhf): Likewise.
22047         (thumb1_movhf): Likewise.
22048         (arm_movsf_soft_insn): Likewise.
22049         (thumb1_movsf_insn): Likewise.
22050         (thumb_movdf_insn): Likewise.
22051         (movsicc_insn): Likewise.
22052         (movsfcc_soft_insn): Likewise.
22053         (and_scc): Likewise.
22054         (cond_move): Likewise.
22055         (if_move_not): Likewise.
22056         (if_not_move): Likewise.
22057         (if_shift_move): Likewise.
22058         (if_move_shift): Likewise.
22059         (if_shift_shift): Likewise.
22060         (if_not_arith): Likewise.
22061         (if_arith_not): Likewise.
22062         (cond_move_not): Likewise.
22063         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
22064         (neon_mov<mode>): Likewise.
22065         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
22066         (thumb2_movsi_vfp): Likewise.
22067         (movsf_vfp): Likewise.
22068         (thumb2_movsf_vfp): Likewise.
22069         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22070         change.
22071         (cortexa7_older_only): Likewise.
22072         (cortexa7_younger): Likewise.
22073         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
22074         (1020alu_shift_op): Likewise.
22075         (1020alu_shift_reg_op): Likewise.
22076         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
22077         (alu_shift_op): Likewise.
22078         (alu_shift_reg_op): Likewise.
22079         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
22080         (11_alu_shift_op): Likewise.
22081         (11_alu_shift_reg_op): Likewise.
22082         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
22083         (9_alu_shift_reg_op): Likewise.
22084         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22085         change.
22086         (cortex_a15_alu_shift): Likewise.
22087         (cortex_a15_alu_shift_reg): Likewise.
22088         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
22089         (cortex_a5_alu_shift): Likewise.
22090         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
22091         change.
22092         (cortex_a53_alu_shift): Likewise.
22093         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22094         change.
22095         (cortex_a7_alu_reg): Likewise.
22096         (cortex_a7_alu_shift): Likewise.
22097         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22098         (cortex_a8_alu_shift): Likewise.
22099         (cortex_a8_alu_shift_reg): Likewise.
22100         (cortex_a8_mov): Likewise.
22101         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
22102         (cortex_a9_dp_shift): Likewise.
22103         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
22104         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
22105         (cortex_r4_mov): Likewise.
22106         (cortex_r4_alu_shift): Likewise.
22107         (cortex_r4_alu_shift_reg): Likewise.
22108         * config/arm/fa526.md (526_alu_op): Update for attribute change.
22109         (526_alu_shift_op): Likewise.
22110         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
22111         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
22112         (626te_alu_shift_op): Likewise.
22113         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
22114         (726te_alu_op): Likewise.
22115         (726te_alu_shift_op): Likewise.
22116         (726te_alu_shift_reg_op): Likewise.
22117         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
22118         (mp626_alu_shift_op): Likewise.
22119         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
22120         (pj4_alu_e1_conds): Likewise.
22121         (pj4_alu): Likewise.
22122         (pj4_alu_conds): Likewise.
22123         (pj4_shift): Likewise.
22124         (pj4_shift_conds): Likewise.
22125         (pj4_alu_shift): Likewise.
22126         (pj4_alu_shift_conds): Likewise.
22128 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22130         * config/arm/predicates.md (shiftable_operator_strict_it):
22131         New predicate.
22132         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
22133         Disable cond_exec version for arm_restrict_it.
22134         (thumb2_smaxsi3): Convert to generate cond_exec.
22135         (thumb2_sminsi3): Likewise.
22136         (thumb32_umaxsi3): Likewise.
22137         (thumb2_uminsi3): Likewise.
22138         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
22139         (thumb2_neg_abssi2): Likewise.
22140         (thumb2_mov_scc): Add alternative for 16-bit encoding.
22141         (thumb2_movsicc_insn): Adjust alternatives.
22142         (thumb2_mov_negscc): Disable for arm_restrict_it.
22143         (thumb2_mov_negscc_strict_it): New pattern.
22144         (thumb2_mov_notscc_strict_it): New pattern.
22145         (thumb2_mov_notscc): Disable for arm_restrict_it.
22146         (thumb2_ior_scc): Likewise.
22147         (thumb2_ior_scc_strict_it): New pattern.
22148         (thumb2_cond_move): Adjust for arm_restrict_it.
22149         (thumb2_cond_arith): Disable for arm_restrict_it.
22150         (thumb2_cond_arith_strict_it): New pattern.
22151         (thumb2_cond_sub): Adjust for arm_restrict_it.
22152         (thumb2_movcond): Likewise.
22153         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
22154         (thumb2_zero_extendhisi2_v6): Likewise.
22155         (thumb2_zero_extendqisi2_v6): Likewise.
22156         (orsi_notsi_si): Likewise.
22157         (orsi_not_shiftsi_si): Likewise.
22159 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
22161         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
22162         instruction sequence is 1 byte shorter.
22164 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
22166         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
22167         it is not needed after split.
22169 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
22171         PR target/51784
22172         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
22173         second label for nonlocal goto receivers. Don't output pic base labels
22174         unless we're producing PIC; mark that action unreachable().
22175         (ix86_save_reg): If the function contains a nonlocal label, save the
22176         PIC base reg.
22177         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
22178         * config/darwin.c (emitted_pic_label_num): New GTY.
22179         (update_pic_label_number_if_needed): New.
22180         (machopic_output_function_base_name): Adjust for nonlocal receiver
22181         case.
22182         (machopic_should_output_picbase_label): New.
22183         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
22184         (nonlocal_goto_receiver): New insn and split.
22186 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
22188         * config/aarch64/aarch64-builtins.c
22189         (aarch64_fold_builtin): Fold abs in all modes.
22190         * config/aarch64/aarch64-simd-builtins.def
22191         (abs): Enable for all modes.
22192         * config/aarch64/arm_neon.h
22193         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
22194         (vabs_f64): Add missing intrinsic.
22196 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
22198         * config/aarch64/arm_neon.h (vabs_s64): New function
22200 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
22202         PR target/57516
22203         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
22204         * config/avr/avr.md (adjust_len): Add `round'.
22205         * config/avr/avr-protos.h (avr_out_round): New prototype.
22206         (avr_out_plus): Add `out_label' argument.
22207         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
22208         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
22209         Handle the case where `insn' is just a pattern.
22210         (avr_out_bitop): Handle the case where `insn' is just a pattern.
22211         (avr_out_round): New function.
22212         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
22214 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
22216         * config/microblaze/microblaze.c (microblaze_expand_prologue):
22217         Add check for flag_stack_usage to handle -fstack-usage support
22219 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
22221         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
22222         interaction for new Power8 flags and VSX.
22224 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
22226         PR middle-end/57698
22227         * tree-inline.c (expand_call_inline): Emit errors during
22228         early_inlining only if optimization is not turned on.
22230 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22232         * passes.def: New.
22234         * passes.c (init_optimization_passes): Move the construction of
22235         the pass hierarchy into a new passes.def file.
22237         * Makefile.in (passes.o): Add dependency on passes.def.
22239 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22241         * passes.c (init_optimization_passes): Introduce macros for
22242         constructing the tree of passes (INSERT_PASSES_AFTER,
22243         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
22244         TERMINATE_PASS_LIST).
22246 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
22247             Wei Mi  <wmi@google.com>
22249         PR rtl-optimization/57878
22250         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
22251         top.
22252         (reload_pseudo_compare_func): Check nregs first for reload
22253         pseudos.
22255 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22257         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
22259 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
22261         * read-rtl.c (validate_const_int): Once an invalid character is
22262         seen, quit the loop.
22264         * gengtype.c (write_roots): Similarly once we find the "deletable"
22265         or "if_marked" option.
22267 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
22269         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22270         "xtab" and "sat".  Move value "clz" from here to ...
22271         (attriubte "type"): ... here.
22272         (satsi_<SAT:code>): Delete "insn" attribute.
22273         (satsi_<SAT:code>_shift): Likewise.
22274         (arm_zero_extendqisi2addsi): Likewise.
22275         (arm_extendqisi2addsi): Likewise.
22276         (clzsi2): Update for attribute changes.
22277         (rbitsi2): Likewise.
22278         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22279         attribute.
22280         (arm_usatsihi): Likewise.
22281         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22283 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
22285         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22286         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
22287         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
22288         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
22289         in alphabetical order.
22290         (attribute "core_cycles"): Update for attribute changes.
22291         (arm_addsi3): Likewise.
22292         (addsi3_compare0): Likewise.
22293         (addsi3_compare0_scratch): Likewise.
22294         (addsi3_compare_op1): Likewise.
22295         (addsi3_compare_op2): Likewise.
22296         (compare_addsi2_op0): Likewise.
22297         (compare_addsi2_op1): Likewise.
22298         (addsi3_carryin_shift_<optab>): Likewise.
22299         (subsi3_carryin_shift): Likewise.
22300         (rsbsi3_carryin_shift): Likewise.
22301         (arm_subsi3_insn): Likewise.
22302         (subsi3_compare0): Likewise.
22303         (subsi3_compare): Likewise.
22304         (arm_andsi3_insn): Likewise.
22305         (thumb1_andsi3_insn): Likewise.
22306         (andsi3_compare0): Likewise.
22307         (andsi3_compare0_scratch): Likewise.
22308         (zeroextractsi_compare0_scratch
22309         (andsi_not_shiftsi_si): Likewise.
22310         (iorsi3_insn): Likewise.
22311         (iorsi3_compare0): Likewise.
22312         (iorsi3_compare0_scratch): Likewise.
22313         (arm_xorsi3): Likewise.
22314         (thumb1_xorsi3_insn): Likewise.
22315         (xorsi3_compare0): Likewise.
22316         (xorsi3_compare0_scratch): Likewise.
22317         (satsi_<SAT:code>_shift): Likewise.
22318         (rrx): Likewise.
22319         (arm_shiftsi3): Likewise.
22320         (shiftsi3_compare0): Likewise.
22321         (not_shiftsi): Likewise.
22322         (not_shiftsi_compare0): Likewise.
22323         (not_shiftsi_compare0_scratch): Likewise.
22324         (arm_one_cmplsi2): Likewise.
22325         (thumb_one_complsi2): Likewise.
22326         (notsi_compare0): Likewise.
22327         (notsi_compare0_scratch): Likewise.
22328         (thumb1_zero_extendhisi2): Likewise.
22329         (arm_zero_extendhisi2): Likewise.
22330         (arm_zero_extendhisi2_v6): Likewise.
22331         (arm_zero_extendhisi2addsi): Likewise.
22332         (thumb1_zero_extendqisi2): Likewise.
22333         (thumb1_zero_extendqisi2_v6): Likewise.
22334         (arm_zero_extendqisi2): Likewise.
22335         (arm_zero_extendqisi2_v6): Likewise.
22336         (arm_zero_extendqisi2addsi): Likewise.
22337         (thumb1_extendhisi2): Likewise.
22338         (arm_extendhisi2): Likewise.
22339         (arm_extendhisi2_v6): Likewise.
22340         (arm_extendqisi): Likewise.
22341         (arm_extendqisi_v6): Likewise.
22342         (arm_extendqisi2addsi): Likewise.
22343         (thumb1_extendqisi2): Likewise.
22344         (thumb1_movdi_insn): Likewise.
22345         (arm_movsi_insn): Likewise.
22346         (movsi_compare0): Likewise.
22347         (movhi_insn_arch4): Likewise.
22348         (movhi_bytes): Likewise.
22349         (arm_movqi_insn): Likewise.
22350         (thumb1_movqi_insn): Likewise.
22351         (arm32_movhf): Likewise.
22352         (thumb1_movhf): Likewise.
22353         (arm_movsf_soft_insn): Likewise.
22354         (thumb1_movsf_insn): Likewise.
22355         (movdf_soft_insn): Likewise.
22356         (thumb_movdf_insn): Likewise.
22357         (arm_cmpsi_insn): Likewise.
22358         (cmpsi_shiftsi): Likewise.
22359         (cmpsi_shiftsi_swp): Likewise.
22360         (arm_cmpsi_negshiftsi_si): Likewise.
22361         (movsicc_insn): Likewise.
22362         (movsfcc_soft_insn): Likewise.
22363         (arith_shiftsi): Likewise.
22364         (arith_shiftsi_compare0
22365         (arith_shiftsi_compare0_scratch
22366         (sub_shiftsi): Likewise.
22367         (sub_shiftsi_compare0
22368         (sub_shiftsi_compare0_scratch
22369         (and_scc): Likewise.
22370         (cond_move): Likewise.
22371         (if_plus_move): Likewise.
22372         (if_move_plus): Likewise.
22373         (if_move_not): Likewise.
22374         (if_not_move): Likewise.
22375         (if_shift_move): Likewise.
22376         (if_move_shift): Likewise.
22377         (if_shift_shift): Likewise.
22378         (if_not_arith): Likewise.
22379         (if_arith_not): Likewise.
22380         (cond_move_not): Likewise.
22381         (thumb1_ashlsi3): Set type attribute.
22382         (thumb1_ashrsi3): Likewise.
22383         (thumb1_lshrsi3): Likewise.
22384         (thumb1_rotrsi3): Likewise.
22385         (shiftsi3_compare0_scratch): Likewise.
22386         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22387         (neon_mov<mode>): Likewise.
22388         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22389         attribute changes.
22390         (thumb2_movsi_insn): Likewise.
22391         (thumb2_cmpsi_neg_shiftsi): Likewise.
22392         (thumb2_extendqisi_v6): Likewise.
22393         (thumb2_zero_extendhisi2_v6): Likewise.
22394         (thumb2_zero_extendqisi2_v6): Likewise.
22395         (thumb2_shiftsi3_short): Likewise.
22396         (thumb2_addsi3_compare0_scratch): Likewise.
22397         (orsi_not_shiftsi_si): Likewise.
22398         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22399         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22400         changes.
22401         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22402         (1020alu_shift_op): Likewise.
22403         (1020alu_shift_reg_op): Likewise.
22404         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22405         (alu_shift_op): Likewise.
22406         (alu_shift_reg_op): Likewise.
22407         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22408         (11_alu_shift_op): Likewise.
22409         (11_alu_shift_reg_op): Likewise.
22410         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22411         (9_alu_shift_reg_op): Likewise.
22412         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22413         changes.
22414         (cortex_a15_alu_shift): Likewise.
22415         (cortex_a15_alu_shift_reg): Likewise.
22416         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22417         changes.
22418         (cortex_a5_alu_shift): Likewise.
22419         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22420         changes.
22421         (cortex_a53_alu_shift): Likewise.
22422         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22423         changes.
22424         (cortex_a7_alu_reg): Likewise.
22425         (cortex_a7_alu_shift): Likewise.
22426         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22427         changes.
22428         (cortex_a8_alu_shift): Likewise.
22429         (cortex_a8_alu_shift_reg): Likewise.
22430         (cortex_a8_mov): Likewise.
22431         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22432         (cortex_a9_dp_shift): Likewise.
22433         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22434         changes.
22435         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22436         changes.
22437         (cortex_r4_mov): Likewise.
22438         (cortex_r4_alu_shift): Likewise.
22439         (cortex_r4_alu_shift_reg): Likewise.
22440         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22441         (526_alu_shift_op): Likewise.
22442         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22443         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22444         (626te_alu_shift_op): Likewise.
22445         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22446         (726te_alu_op): Likewise.
22447         (726te_alu_shift_op): Likewise.
22448         (726te_alu_shift_reg_op): Likewise.
22449         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22450         (mp626_alu_shift_op): Likewise.
22451         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22452         (pj4_alu_e1_conds): Likewise.
22453         (pj4_alu): Likewise.
22454         (pj4_alu_conds): Likewise.
22455         (pj4_shift): Likewise.
22456         (pj4_shift_conds): Likewise.
22457         (pj4_alu_shift): Likewise.
22458         (pj4_alu_shift_conds): Likewise.
22459         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22460         changes.
22461         (cortexa7_older_only): Likewise.
22462         (cortexa7_younger): Likewise.
22464 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22466         * ipa-pure-const.c (generate_summary): Rename to...
22467         (pure_const_generate_summary): ... this.
22469 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
22471         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22473 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
22475         PR target/57909
22476         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22477         usage in HI mode.
22479 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22481         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22482         enabled without -march=zEC12.
22483         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22484         flags to be set.
22486 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22488         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22489         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22490         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22491         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22492         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22493         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22494         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22495         ISA_HAS_FP4.
22496         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22497         and ISA_HAS_NMADD3_NMSUB3.
22498         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22499         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22500         (nmsub4<mode>, nmsub3<mode>): Likewise.
22501         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22503 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22505         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22506         TARGET_MIPS5400 checking.
22508 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
22509             Peter Bergner  <bergner@vnet.ibm.com>
22511         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22512         registers in the comment.
22513         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22514         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22515         rather than FIRST_PSEUDO_REGISTERS.
22517 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
22519         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22520         enable extra ISA flags with TARGET_HTM.
22522 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22524         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22525         Fix comment typos.
22527 2013-07-15  Cong Hou  <congh@google.com>
22529         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22530         in compare function for sorting.
22532 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
22534         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22535         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22536         * config/rs6000/rs6000.opt: Add -mhtm option.
22537         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22538         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22539         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22540         __HTM__ if the HTM instructions are available.
22541         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22542         htm_spr_reg_operand): New define_predicates.
22543         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22544         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22545         Include htm.md.
22546         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22547         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22548         HTM builtin functions.
22549         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22550         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22551         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22552         (rs6000_builtin_mask_calculate): Likewise.
22553         (rs6000_option_override_internal): Likewise.
22554         (bdesc_htm): Add new HTM builtin support.
22555         (htm_spr_num): New function.
22556         (htm_spr_regno): Likewise.
22557         (rs6000_htm_spr_icode): Likewise.
22558         (htm_expand_builtin): Likewise.
22559         (htm_init_builtins): Likewise.
22560         (rs6000_expand_builtin): Add support for HTM builtin functions.
22561         (rs6000_init_builtins): Likewise.
22562         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22563         option.
22564         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22565         (TARGET_HTM, MASK_HTM): Define macros.
22566         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22567         (FIXED_REGISTERS): Likewise.
22568         (CALL_USED_REGISTERS): Likewise.
22569         (CALL_REALLY_USED_REGISTERS): Likewise.
22570         (REG_ALLOC_ORDER): Likewise.
22571         (enum reg_class): Likewise.
22572         (REG_CLASS_NAMES): Likewise.
22573         (REG_CLASS_CONTENTS): Likewise.
22574         (REGISTER_NAMES): Likewise.
22575         (ADDITIONAL_REGISTER_NAMES): Likewise.
22576         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22577         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22578         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22579         * config/rs6000/htm.md: New file.
22580         * config/rs6000/htmintrin.h: New file.
22581         * config/rs6000/htmxlintrin.h: New file.
22583 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22585         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22586         Define SYMBOL_TINY_GOT, update comment.
22587         * config/aarch64/aarch64.c
22588         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22589         (aarch64_expand_mov_immediate): Likewise.
22590         (aarch64_print_operand): Likewise.
22591         (aarch64_classify_symbol): Likewise.
22592         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22593         (ldr_got_tiny): Define.
22595 2013-07-13  Tobias Grosser  <tobias@grosser.es>
22597         PR tree-optimization/54094
22598         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22599           scheduling dimension for the parallelism check from the polyhedral
22600           information in the AST.
22601         * graphite-dependences.c (carries_deps): Do not assume the schedule is
22602           in 2D + 1 form.
22604 2013-07-13  Jason Merrill  <jason@redhat.com>
22606         * print-tree.c (debug_vec_tree): Use debug_raw.
22607         (debug_raw (vec<tree, va_gc> &)): New.
22608         (debug_raw (vec<tree, va_gc> *)): New.
22609         * tree.h: Declare them.
22611 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
22613         * ifcvt.c (ifcvt_after_combine): New static variable.
22614         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22615         for size.
22616         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
22617         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22618         rest_of_handle_if_after_reload): Pass new argument for if_convert.
22620 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
22622         * config/mips/mips.c (mips_expand_call): Remove empty statement.
22624 2013-07-12  Michael Matz  <matz@suse.de>
22626         PR middle-end/55771
22627         * convert.c (convert_to_real): Reject non-float inner types.
22629 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
22631         * config/aarch64/aarch64-protos.h
22632         (aarch64_simd_immediate_valid_for_move): Remove.
22633         * config/aarch64/aarch64.c (simd_immediate_info): New member.
22634         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22635         cases.
22636         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22638 2013-07-11  Steve Ellcey  <sellcey@mips.com>
22640         * config/mips/mips.c (mips_conditional_register_usage): Do not
22641         use t[0-7] registers in MIPS16 mode when optimizing for size.
22643 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
22645         * config/i386/i386.c (dispatch_function_versions): Fix array
22646         indexing of function_version_info to match actual_versions.
22648 2013-07-11  Teresa Johnson  <tejohnson@google.com>
22650         * vec.h (struct va_gc): Move release out-of-line.
22651         (va_gc::release): Call ggc_free on released vec.
22653 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22655         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22656         Require GOT register as additional operand in UNSPEC.
22657         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22658         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22659         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22660         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22661         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22662         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22663         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22665 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
22667         PR target/57631
22668         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22669         name seen by assembler/linker rather if available.
22671 2013-07-11  Andreas Schwab  <schwab@suse.de>
22673         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22675 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
22677         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22679 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
22681         * doc/tm.texi.in: Move hook documentation to ....
22682         * target.def: ... here.
22684         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22685         text on @hook line.
22686         * doc/tm.texi: Regenerate.
22688 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
22690         PR c++/57869
22691         * doc/invoke.texi: Document -Wconditionally-supported.
22693 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22695         PR target/57844
22696         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22697         of my_fp.
22699 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22701         PR target/57506
22702         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22703         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22704         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22705         Remove duplicate devices.
22706         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22707         * config/avr/t-multilib: Regenerate.
22708         * config/avr/avr-tables.opt: Regenerate.
22709         * doc/avr-mmcu.texi: Regenerate.
22711 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22713         PR target/56987
22714         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22716 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
22718         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22719         the cost of MULT when optimizing for size.
22721 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22723         * config/cr16/cr16-protos.h: Don't include target.h.
22725 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
22727         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22728         adjust register size for TDmode and TFmode for VSX registers.
22730 2013-07-08  Kai Tietz  <ktietz@redhat.com>
22732         PR target/56892
22733         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22734         hook_bool_const_tree_true.
22736 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22738         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22739         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22740         * config/s390/s390.md: Define FPR*_REGNUM constants.
22741         Fix FPR2_REGNUM constant (18 -> 17).
22742         ("*trunc<BFP:mode><DFP_ALL:mode>2")
22743         ("*trunc<DFP_ALL:mode><BFP:mode>2")
22744         ("trunc<BFP:mode><DFP_ALL:mode>2")
22745         ("trunc<DFP_ALL:mode><BFP:mode>2")
22746         ("*extend<BFP:mode><DFP_ALL:mode>2")
22747         ("*extend<DFP_ALL:mode><BFP:mode>2")
22748         ("extend<BFP:mode><DFP_ALL:mode>2")
22749         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22750         FPR4_REGNUM.
22752 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
22754         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22756 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22758         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22759         and cfun_fpr_bit_p to cfun_fpr_save_p.
22760         (s390_frame_area, s390_register_info, s390_frame_info)
22761         (s390_emit_prologue, s390_emit_epilogue)
22762         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22763         register numbers.
22764         * config/s390/s390.h: Define *_REGNUM macros for floating point
22765         register numbers.
22767 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22769         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22771 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
22773         PR rtl-optimization/57786
22774         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22775         and break out of the loop when it is set to false.
22777 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
22779         PR target/57819
22780         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22781         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22782         (const_int 63)) 0)).
22783         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22784         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22785         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22787         PR rtl-optimization/57829
22788         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22789         mask bits outside of mode are just sign-extension from mode to HWI.
22791 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22793         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22794         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22795         adjust_address instead of change_address to keep info about alignment.
22796         (emit_strmov): Remove.
22797         (emit_memmov): New function.
22798         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22799         (expand_movmem_epilogue): Likewise and return updated rtx for
22800         destination.
22801         (expand_constant_movmem_prologue): Likewise and return updated rtx for
22802         destination and source.
22803         (decide_alignment): Refactor, handle vector_loop.
22804         (ix86_expand_movmem): Likewise.
22805         (ix86_expand_setmem): Likewise.
22806         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22808 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
22810         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22811         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22813 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22815         * config/i386/sse.md (sse_movlhps): Change alternative 3
22816         of operand 2 to "m".
22818 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22820         PR target/57807
22821         * config/i386/sse.md (iptr): New mode attribute.
22822         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22823         (<sse>_vm<plusminus_insn><mode>3): Ditto.
22824         (<sse>_vmmul<mode>3): Ditto.
22825         (<sse>_vmdiv<mode>3): Ditto.
22826         (sse_vmrcpv4sf2): Ditto.
22827         (<sse>_vmsqrt<mode>2): Ditto.
22828         (sse_vmrsqrtv4sf2): Ditto.
22829         (<sse>_vm<code><mode>3): Ditto.
22830         (avx_vmcmp<mode>3): Ditto.
22831         (<sse>_vmmaskcmp<mode>3): Ditto.
22832         (<sse>_comi): Ditto.
22833         (<sse>_ucomi): Ditto.
22834         (*xop_vmfrcz_<mode>): Ditto.
22835         (*fmai_fmadd_<mode>): Ditto.
22836         (*fmai_fmsub_<mode>): Ditto.
22837         (*fmai_fnmadd_<mode>): Ditto.
22838         (*fmai_fnmsub_<mode>): Ditto.
22839         (*fma4i_vmfmadd_<mode>): Ditto.
22840         (*fma4i_vmfmsub_<mode>): Ditto.
22841         (*fma4i_vmfnmadd_<mode>): Ditto.
22842         (*fma4i_vmfnmsub_<mode>): Ditto.
22843         (*xop_vmfrcz_<mode>): Ditto.
22844         (sse_cvtps2pi): Ditto.
22845         (sse_cvttps2pi): Ditto.
22846         (sse_cvtss2si): Ditto.
22847         (sse_cvtss2si_2): Ditto.
22848         (sse_cvtss2siq_2): Ditto.
22849         (sse_cvttss2si): Ditto.
22850         (sse_cvttss2siq): Ditto.
22851         (sse_cvtsd2si): Ditto.
22852         (sse_cvtsd2si_2): Ditto.
22853         (sse_cvtsd2siq_2): Ditto.
22854         (sse_cvttsd2si): Ditto.
22855         (sse_cvttsd2siq): Ditto.
22856         (sse_cvtsd2ss): Ditto.
22857         (sse_cvtss2sd): Ditto.
22858         (avx2_pbroadcast<mode>): Ditto.
22859         (avx2_pbroadcast<mode>_1): Ditto.
22860         (*avx_vperm_broadcast_v4sf): Ditto.
22862         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22863         (sse_movlhps): Ditto.
22864         (sse_storehps): Ditto.
22865         (sse_loadhps): Ditto.
22866         (sse_storelps): Ditto.
22867         (sse_loadlps): Ditto.
22868         (*vec_concatv4sf): Ditto.
22869         (*vec_interleave_highv2df): Ditto.
22870         (*vec_interleave_lowv2df): Ditto.
22871         (*vec_extractv2df_1_sse): Ditto.
22872         (*vec_extractv2df_0_sse): Ditto.
22873         (sse2_storelpd): Ditto.
22874         (sse2_loadlpd): Ditto.
22875         (sse2_movsd): Ditto.
22876         (*vec_concatv4si): Ditto.
22877         (vec_concatv2di): Ditto.
22879         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22880         for Intel asm dialect.
22881         (mmx_punpcklwd): Ditto.
22882         (mmx_punpckldq): Ditto.
22884         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22885         for intel assembler dialect.
22887 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
22889         PR target/29776
22890         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22891         for BUILT_IN_C{LZ,LRSB}*.
22892         * tree.h (CASE_INT_FN): Add FN##IMAX case.
22893         * tree-vrp.c (extract_range_basic): Handle
22894         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
22895         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22896         fall thru to code calling set_value*.
22897         * builtins.c (expand_builtin): Remove *IMAX cases.
22898         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22899         if width is bigger than 2*HWI.
22901 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
22903         PR rtl-optimization/55342
22904         * lra-int.h (lra_subreg_reload_pseudos): New.
22905         * lra.c: Add undoing optional reloads to the block diagram.
22906         (lra_subreg_reload_pseudos): New.
22907         (lra_optional_reload_pseudos): Change comments.
22908         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
22909         lra_optional_reload_pseudos after undo transformations.
22910         * lra-assigns.c (pseudo_prefix_title): New.
22911         (lra_setup_reg_renumber): Use it.
22912         (spill_for): Ditto.  Check subreg reload pseudos too.
22913         (assign_by_spills): Consider subreg reload pseudos too.
22914         * lra-constraints.c (simplify_operand_subreg): Use
22915         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22916         (curr_insn_transform): Recognize and do optional reloads.
22917         (undo_optional_reloads): New.
22918         (lra_undo_inheritance): Call undo_optional_reloads.
22920 2013-07-05  Thomas Quinot  <quinot@adacore.com>
22922         * tree-complex.c (expand_complex_operations_1): Fix typo.
22924 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
22926         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22927         (tune_params): New member 'const vec_costs'.
22928         * config/aarch64/aarch64.c (generic_vector_cost): New.
22929         (generic_tunings): New member 'generic_vector_cost'.
22930         (aarch64_builtin_vectorization_cost): New.
22931         (aarch64_add_stmt_cost): New.
22932         (TARGET_VECTORIZE_ADD_STMT_COST): New.
22933         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22935 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
22937         PR target/57777
22938         * config/i386/predicates.md (vsib_address_operand): Disallow
22939         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22941 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
22943         PR middle-end/55030
22944         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22945         expand_builtin_setjmp_receiver.
22946         (expand_label): Adjust, call expand_builtin_setjmp_receiver
22947         with NULL for the label parameter.
22948         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22949         the frame-pointer.  Adjust comments.
22950         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22951         only if LABEL is non-NULL.
22953 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
22955         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22956         (ARM_ABI_AAPCS64): Ditto.
22957         (arm_abi): Ditto.
22958         (ARM_DEFAULT_ABI): Ditto.
22960 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22962         * config/aarch64/aarch64-builtins.c
22963         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22964         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22965         (st1): Likewise.
22966         * config/aarch64/aarch64-simd.md
22967         (aarch64_ld1<VALL:mode>): New.
22968         (aarch64_st1<VALL:mode>): Likewise.
22969         * config/aarch64/arm_neon.h
22970         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22972 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
22974         * config/i386/i386.c (gate_insert_vzeroupper): Check if
22975         target ISA is AVX.
22976         (ix86_option_override_internal):Turn on all -mavx target flags by
22977         default as they are dependent on AVX anyway.
22979 2013-07-02  Cary Coutant  <ccoutant@google.com>
22981         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22982         deterministic hash.
22983         (loc_checksum_ordered): Likewise.
22984         (hash_loc_operands): Remove inline keyword.
22986 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
22988         PR tree-optimization/57741
22989         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22990         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22991         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22992         Allow REAL_CST step_exprs if flag_associative_math.
22993         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22995 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22997         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22999 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
23001         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
23003 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23005         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
23006         encoding.
23007         (iorsi3_insn): Likewise.
23008         (arm_xorsi3): Likewise.
23010 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
23012         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
23013         to ...
23014         (attribute "type"): ... here, and prefix with "wmmx_".
23015         (attribute "core_cycles"): Update for attribute changes.
23016         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
23017         (tbcstv4hi): Likewise.
23018         (tbcstv2si): Likewise.
23019         (iwmmxt_iordi3): Likewise.
23020         (iwmmxt_xordi3): Likewise.
23021         (iwmmxt_anddi3): Likewise.
23022         (iwmmxt_nanddi3): Likewise.
23023         (iwmmxt_arm_movdi): Likewise.
23024         (iwmmxt_movsi_insn): Likewise.
23025         (mov<mode>_internal): Likewise.
23026         (and<mode>3_iwmmxt): Likewise.
23027         (ior<mode>3_iwmmxt): Likewise.
23028         (xor<mode>3_iwmmxt): Likewise.
23029         (add<mode>3_iwmmxt): Likewise.
23030         (ssaddv8qi3): Likewise.
23031         (ssaddv4hi3): Likewise.
23032         (ssaddv2si3): Likewise.
23033         (usaddv8qi3): Likewise.
23034         (usaddv4hi3): Likewise.
23035         (usaddv2si3): Likewise.
23036         (sub<mode>3_iwmmxt): Likewise.
23037         (sssubv8qi3): Likewise.
23038         (sssubv4hi3): Likewise.
23039         (sssubv2si3): Likewise.
23040         (ussubv8qi3): Likewise.
23041         (ussubv4hi3): Likewise.
23042         (ussubv2si3): Likewise.
23043         (mulv4hi3_iwmmxt): Likewise.
23044         (smulv4hi3_highpart): Likewise.
23045         (umulv4hi3_highpart): Likewise.
23046         (iwmmxt_wmacs): Likewise.
23047         (iwmmxt_wmacsz): Likewise.
23048         (iwmmxt_wmacu): Likewise.
23049         (iwmmxt_wmacuz): Likewise.
23050         (iwmmxt_clrdi): Likewise.
23051         (iwmmxt_clrv8qi): Likewise.
23052         (iwmmxt_clr4hi): Likewise.
23053         (iwmmxt_clr2si): Likewise.
23054         (iwmmxt_uavgrndv8qi3): Likewise.
23055         (iwmmxt_uavgrndv4hi3): Likewise.
23056         (iwmmxt_uavgv8qi3): Likewise.
23057         (iwmmxt_uavgv4hi3): Likewise.
23058         (iwmmxt_tinsrb): Likewise.
23059         (iwmmxt_tinsrh): Likewise.
23060         (iwmmxt_tinsrw): Likewise.
23061         (iwmmxt_textrmub): Likewise.
23062         (iwmmxt_textrmsb): Likewise.
23063         (iwmmxt_textrmuh): Likewise.
23064         (iwmmxt_textrmsh): Likewise.
23065         (iwmmxt_textrmw): Likewise.
23066         (iwmxxt_wshufh): Likewise.
23067         (eqv8qi3): Likewise.
23068         (eqv4hi3): Likewise.
23069         (eqv2si3): Likewise.
23070         (gtuv8qi3): Likewise.
23071         (gtuv4hi3): Likewise.
23072         (gtuv2si3): Likewise.
23073         (gtv8qi3): Likewise.
23074         (gtv4hi3): Likewise.
23075         (gtv2si3): Likewise.
23076         (smax<mode>3_iwmmxt): Likewise.
23077         (umax<mode>3_iwmmxt): Likewise.
23078         (smin<mode>3_iwmmxt): Likewise.
23079         (umin<mode>3_iwmmxt): Likewise.
23080         (iwmmxt_wpackhss): Likewise.
23081         (iwmmxt_wpackwss): Likewise.
23082         (iwmmxt_wpackdss): Likewise.
23083         (iwmmxt_wpackhus): Likewise.
23084         (iwmmxt_wpackwus): Likewise.
23085         (iwmmxt_wpackdus): Likewise.
23086         (iwmmxt_wunpckihb): Likewise.
23087         (iwmmxt_wunpckihh): Likewise.
23088         (iwmmxt_wunpckihw): Likewise.
23089         (iwmmxt_wunpckilb): Likewise.
23090         (iwmmxt_wunpckilh): Likewise.
23091         (iwmmxt_wunpckilw): Likewise.
23092         (iwmmxt_wunpckehub): Likewise.
23093         (iwmmxt_wunpckehuh): Likewise.
23094         (iwmmxt_wunpckehuw): Likewise.
23095         (iwmmxt_wunpckehsb): Likewise.
23096         (iwmmxt_wunpckehsh): Likewise.
23097         (iwmmxt_wunpckehsw): Likewise.
23098         (iwmmxt_wunpckelub): Likewise.
23099         (iwmmxt_wunpckeluh): Likewise.
23100         (iwmmxt_wunpckeluw): Likewise.
23101         (iwmmxt_wunpckelsb): Likewise.
23102         (iwmmxt_wunpckelsh): Likewise.
23103         (iwmmxt_wunpckelsw): Likewise.
23104         (ror<mode>3): Likewise.
23105         (ashr<mode>3_iwmmxt): Likewise.
23106         (lshr<mode>3_iwmmxt): Likewise.
23107         (ashl<mode>3_iwmmxt): Likewise.
23108         (ror<mode>3_di): Likewise.
23109         (ashr<mode>3_di): Likewise.
23110         (lshr<mode>3_di): Likewise.
23111         (ashl<mode>3_di): Likewise.
23112         (iwmmxt_wmadds): Likewise.
23113         (iwmmxt_wmaddu): Likewise.
23114         (iwmmxt_tmia): Likewise.
23115         (iwmmxt_tmiaph): Likewise.
23116         (iwmmxt_tmiabb): Likewise.
23117         (iwmmxt_tmiatb): Likewise.
23118         (iwmmxt_tmiabt): Likewise.
23119         (iwmmxt_tmiatt): Likewise.
23120         (iwmmxt_tmovmskb): Likewise.
23121         (iwmmxt_tmovmskh): Likewise.
23122         (iwmmxt_tmovmskw): Likewise.
23123         (iwmmxt_waccb): Likewise.
23124         (iwmmxt_wacch): Likewise.
23125         (iwmmxt_waccw): Likewise.
23126         (iwmmxt_waligni): Likewise.
23127         (iwmmxt_walignr): Likewise.
23128         (iwmmxt_walignr0): Likewise.
23129         (iwmmxt_walignr1): Likewise.
23130         (iwmmxt_walignr2): Likewise.
23131         (iwmmxt_walignr3): Likewise.
23132         (iwmmxt_wsadb): Likewise.
23133         (iwmmxt_wsadh): Likewise.
23134         (iwmmxt_wsadbz): Likewise.
23135         (iwmmxt_wsadhz): Likewise.
23136         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
23137         (iwmmxt_wabsdiffb): Likewise.
23138         (iwmmxt_wabsdiffh): Likewise.
23139         (iwmmxt_wabsdiffw): Likewise.
23140         (iwmmxt_waddsubhx): Likewise
23141         (iwmmxt_wsubaddhx): Likewise.
23142         (addc<mode>3): Likewise.
23143         (iwmmxt_avg4): Likewise.
23144         (iwmmxt_avg4r): Likewise.
23145         (iwmmxt_wmaddsx): Likewise.
23146         (iwmmxt_wmaddux): Likewise.
23147         (iwmmxt_wmaddsn): Likewise.
23148         (iwmmxt_wmaddun): Likewise.
23149         (iwmmxt_wmulwsm): Likewise.
23150         (iwmmxt_wmulwum): Likewise.
23151         (iwmmxt_wmulsmr): Likewise.
23152         (iwmmxt_wmulumr): Likewise.
23153         (iwmmxt_wmulwsmr): Likewise.
23154         (iwmmxt_wmulwumr): Likewise.
23155         (iwmmxt_wmulwl): Likewise.
23156         (iwmmxt_wqmulm): Likewise.
23157         (iwmmxt_wqmulwm): Likewise.
23158         (iwmmxt_wqmulmr): Likewise.
23159         (iwmmxt_wqmulwmr): Likewise.
23160         (iwmmxt_waddbhusm): Likewise.
23161         (iwmmxt_waddbhusl): Likewise.
23162         (iwmmxt_wqmiabb): Likewise.
23163         (iwmmxt_wqmiabt): Likewise.
23164         (iwmmxt_wqmiatb): Likewise.
23165         (iwmmxt_wqmiatt): Likewise.
23166         (iwmmxt_wqmiabbn): Likewise.
23167         (iwmmxt_wqmiabtn): Likewise.
23168         (iwmmxt_wqmiatbn): Likewise.
23169         (iwmmxt_wqmiattn): Likewise.
23170         (iwmmxt_wmiabb): Likewise.
23171         (iwmmxt_wmiabt): Likewise.
23172         (iwmmxt_wmiatb): Likewise.
23173         (iwmmxt_wmiatt): Likewise.
23174         (iwmmxt_wmiabbn): Likewise.
23175         (iwmmxt_wmiabtn): Likewise.
23176         (iwmmxt_wmiatbn): Likewise.
23177         (iwmmxt_wmiattn): Likewise.
23178         (iwmmxt_wmiawbb): Likewise.
23179         (iwmmxt_wmiawbt): Likewise.
23180         (iwmmxt_wmiawtb): Likewise.
23181         (iwmmxt_wmiawtt): Likewise.
23182         (iwmmxt_wmiawbbn): Likewise.
23183         (iwmmxt_wmiawbtn): Likewise.
23184         (iwmmxt_wmiawtbn): Likewise.
23185         (iwmmxt_wmiawttn): Likewise.
23186         (iwmmxt_wmerge): Likewise.
23187         (iwmmxt_tandc<mode>3): Likewise.
23188         (iwmmxt_torc<mode>3): Likewise.
23189         (iwmmxt_torvsc<mode>3): Likewise.
23190         (iwmmxt_textrc<mode>3): Likewise.
23191         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
23192         (wmmxt_pack): Likewise.
23193         (wmmxt_mult_c1): Likewise.
23194         (wmmxt_mult_c2): Likewise.
23195         (wmmxt_alu_c1): Likewise.
23196         (wmmxt_alu_c2): Likewise.
23197         (wmmxt_alu_c3): Likewise.
23198         (wmmxt_transfer_c1): Likewise.
23199         (wmmxt_transfer_c2): Likewise.
23200         (wmmxt_transfer_c3): Likewise.
23201         (marvell_f_iwmmxt_wstr): Likewise.
23202         (marvell_f_iwmmxt_wldr): Likewise.
23204 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
23206         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
23208 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
23210         Revert:
23211         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
23212         * lra-constraints.c (need_for_split_p): Check call used hard regs
23213         living through calls.
23215         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
23216         call used regs for call insn.
23218 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
23220         PR target/57736
23221         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
23222         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
23224 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
23226         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
23228 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
23230         * lra-constraints.c (need_for_split_p): Check call used hard regs
23231         living through calls.
23233 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
23235         PR target/57744
23236         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
23237         to tie with any other modes.  Eliminate Altivec vector mode tests,
23238         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
23239         code, to return 0 if testing MODE2 for a condition, if we've
23240         already tested MODE1 for the same condition.
23242 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23244         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
23245         layout.
23247 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23249         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23250         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
23252 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23254         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
23255         Define.
23256         (aarch64_symbolic_constant_p): Remove.
23257         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
23258         static.  Fix line length and white space.
23259         (aarch64_symbolic_constant_p): Remove.
23260         * config/aarch64/predicates.md (aarch64_valid_symref):
23261         Use aarch64_classify_symbol_expression.
23263 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23265         * config/arm/constraints.md (Ts): New constraint.
23266         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
23267         16-bit encodings.
23268         (compare_scc): Use "Ts" constraint for operand 0.
23269         (ior_scc_scc): Likewise.
23270         (and_scc_scc): Likewise.
23271         (and_scc_scc_nodom): Likewise.
23272         (ior_scc_scc_cmp): Likewise for operand 7.
23273         (and_scc_scc_cmp): Likewise.
23274         * config/arm/thumb2.md (thumb2_movsi_insn):
23275         Add alternatives for 16-bit encodings.
23276         (thumb2_movhi_insn): Likewise.
23277         (thumb2_movsicc_insn): Likewise.
23278         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
23279         (thumb2_negscc): Use "Ts" constraint.
23280         Move mvn instruction outside cond_exec block.
23281         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23282         for 16-bit encodings.
23284 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23286         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23287         encoding.
23288         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23289         (mulsi3subsi): Likewise.
23290         (mulsidi3adddi): Likewise.
23291         (mulsidi3_v6): Likewise.
23292         (umulsidi3_v6): Likewise.
23293         (umulsidi3adddi_v6): Likewise.
23294         (smulsi3_highpart_v6): Likewise.
23295         (umulsi3_highpart_v6): Likewise.
23296         (mulhisi3tb): Likewise.
23297         (mulhisi3bt): Likewise.
23298         (mulhisi3tt): Likewise.
23299         (maddhisi4): Likewise.
23300         (maddhisi4tb): Likewise.
23301         (maddhisi4tt): Likewise.
23302         (maddhidi4): Likewise.
23303         (maddhidi4tb): Likewise.
23304         (maddhidi4tt): Likewise.
23305         (zeroextractsi_compare0_scratch): Likewise.
23306         (insv_zero): Likewise.
23307         (insv_t2): Likewise.
23308         (anddi_notzesidi_di): Likewise.
23309         (anddi_notsesidi_di): Likewise.
23310         (andsi_notsi_si): Likewise.
23311         (iordi_zesidi_di): Likewise.
23312         (xordi_zesidi_di): Likewise.
23313         (andsi_iorsi3_notsi): Likewise.
23314         (smax_0): Likewise.
23315         (smax_m1): Likewise.
23316         (smin_0): Likewise.
23317         (not_shiftsi): Likewise.
23318         (unaligned_loadsi): Likewise.
23319         (unaligned_loadhis): Likewise.
23320         (unaligned_loadhiu): Likewise.
23321         (unaligned_storesi): Likewise.
23322         (unaligned_storehi): Likewise.
23323         (extv_reg): Likewise.
23324         (extzv_t2): Likewise.
23325         (divsi3): Likewise.
23326         (udivsi3): Likewise.
23327         (arm_zero_extendhisi2addsi): Likewise.
23328         (arm_zero_extendqisi2addsi): Likewise.
23329         (compareqi_eq0): Likewise.
23330         (arm_extendhisi2_v6): Likewise.
23331         (arm_extendqisi2addsi): Likewise.
23332         (arm_movt): Likewise.
23333         (thumb2_ldrd): Likewise.
23334         (thumb2_ldrd_base): Likewise.
23335         (thumb2_ldrd_base_neg): Likewise.
23336         (thumb2_strd): Likewise.
23337         (thumb2_strd_base): Likewise.
23338         (thumb2_strd_base_neg): Likewise.
23339         (arm_negsi2): Add alternative for 16-bit encoding.
23340         (arm_one_cmplsi2): Likewise.
23342 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23344         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23345         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23346         (movdfcc): Likewise.
23347         * config/arm/vfp.md (*thumb2_movsf_vfp):
23348         Disable predication for arm_restrict_it.
23349         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23350         (*thumb2_movdfcc_vfp): Likewise.
23351         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23352         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23353         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23354         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23355         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23356         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23357         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23358         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23359         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23360         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23361         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23362         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23363         Disable predication for arm_restrict_it.
23365 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
23367         * config/i386/bmiintrin.h (_bextr_u32): New.
23368         (_bextr_u64): Ditto.
23370 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
23372         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23373         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23374         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23375         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23376         * config/mips/n32-elf.h: ...this new file.
23378 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
23380         PR target/57224
23381         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23382         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23384 2013-06-27  Catherine Moore  <clm@codesourcery.com>
23386         * config/mips/mips-tables.opt: Regenerate.
23387         * config/mips/mips-cpus.def: Add m14ke and m14kec.
23388         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23389         * doc/invoke.texi: Add -m14kc.
23391 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23393         PR target/57623
23394         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23395         constraints of operand 1 and 2.
23397         PR target/57623
23398         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23399         to match RTL canonicalization.  Swap predicates and
23400         constraints of operand 1 and 2.
23402 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
23404         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23405         Process OP_INOUT regs for splitting too.
23407 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23409         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23410         decl before the loop, initialize to NULL.
23411         (vectorizable_load): Initialize ptr_incr to NULL.
23413 2013-06-27  Martin Jambor  <mjambor@suse.cz>
23415         PR lto/57208
23416         * ipa-ref.h (ipa_maybe_record_reference): Declare.
23417         * ipa-ref.c (ipa_maybe_record_reference): New function.
23418         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23419         * ipa-cp.c (create_specialized_node): Record potential references from
23420         aggvals.
23421         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23423 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23425         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23426         parameter 'mode' of type 'enum machine_mode mode'; change to pass
23427         'mode' to force_reg.
23428         (aarch64_add_offset): Update calls to aarch64_force_temporary.
23429         (aarch64_expand_mov_immediate): Likewise.
23431 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23433         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23434         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23436 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23438         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23439         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23440         (struct machine_function): Add tbegin_p.
23441         (s390_canonicalize_comparison): Fold CC mode compares to
23442         conditional jump if possible.
23443         (s390_emit_jump): Return the emitted jump.
23444         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23445         Handle CCRAWmode compares.
23446         (s390_option_override): Default to -mhtm if available.
23447         (s390_reg_clobbered_rtx): Handle floating point regs as well.
23448         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23449         FPRs instead of df_regs_ever_live_p.
23450         (s390_optimize_nonescaping_tx): New function.
23451         (s390_init_frame_layout): Extend clobbered_regs array to cover
23452         FPRs as well.
23453         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23454         (s390_expand_tbegin): New function.
23455         (enum s390_builtin): New enum definition.
23456         (code_for_builtin): New array definition.
23457         (s390_init_builtins): New function.
23458         (s390_expand_builtin): New function.
23459         (TARGET_INIT_BUILTINS): Define.
23460         (TARGET_EXPAND_BUILTIN): Define.
23461         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23462         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23463         (s390_alc_comparison): Likewise.
23464         * config/s390/s390-modes.def: Add CCRAWmode.
23465         * config/s390/s390.h (processor_flags): Add PF_TX.
23466         (TARGET_CPU_HTM): Define macro.
23467         (TARGET_HTM): Define macro.
23468         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23469         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23470         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23471         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23472         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23473         (TBEGIN_MASK, TBEGINC_MASK): New constants.
23474         ("*cc_to_int"): Move up.
23475         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23476         constants other than 0.
23477         ("*ccraw_to_int"): New insn and splitter definition.
23478         ("tbegin", "tbegin_nofloat", "tbegin_retry")
23479         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23480         ("tx_assist"): New expander.
23481         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23482         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23483         * config/s390/s390.opt: Add -mhtm option.
23484         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23485         * config/s390/htmxlintrin.h: New file.
23486         * config/s390/htmintrin.h: New file.
23487         * config/s390/s390intrin.h: New file.
23488         * doc/extend.texi: Document htm builtins.
23489         * config.gcc: Add the new header files to extra_headers.
23491 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
23493         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23494         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23496 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
23497             Pat Haugen  <pthaugen@us.ibm.com>
23498             Peter Bergner  <bergner@vnet.ibm.com>
23500         * config/rs6000/power8.md: New.
23501         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23502         setting for power8 entry.
23503         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23504         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23505         test for Power4/Power5 only.
23506         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23507         support.
23508         (force_new_group): Adjust comment.
23509         * config/rs6000/rs6000.md: Include power8.md.
23511 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
23513         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23514         * config/arm/arm-protos.h (arm_max_conditional_execute): New
23515         declaration.
23516         (tune_params): Update comment.
23517         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23518         (arm_max_conditional_execute): New function.
23519         (thumb2_final_prescan_insn): Use max_insn_skipped and
23520         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23522 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
23524         PR tree-optimization/57705
23525         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23526         SSA_NAME step, provided that it is not defined inside the loop.
23527         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23528         (get_initial_def_for_induction): Handle SSA_NAME IV step.
23530 2013-06-25  Martin Jambor  <mjambor@suse.cz>
23532         PR middle-end/57670
23533         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23534         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23535         calls in the dump.
23536         (ipa_note_param_call): Initialize member_ptr flag.
23537         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23538         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23539         (ipa_write_indirect_edge_info): Stream member_ptr flag.
23540         (ipa_read_indirect_edge_info): Likewise.
23542 2013-06-25  Richard Biener  <rguenther@suse.de>
23544         PR middle-end/56977
23545         * passes.c (init_optimization_passes): Move pass_fold_builtins
23546         and pass_dce earlier with -Og.
23548 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
23550         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23551         <BIT_FIELD_REF>: Remove trailing TAB.
23552         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23553         remove blank line.
23555 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23557         PR tree-optimization/57358
23558         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23559         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23560         (ipa_analyze_params_uses): Generate pessimistic info when true.
23562 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23564         PR tree-optimization/57539
23565         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23566         global.inlined_to of the new node to it.  All callers changed.
23567         * ipa-inline-transform.c (clone_inlined_nodes): New variable
23568         inlining_into, pass it to cgraph_clone_node.
23569         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23570         ipa_free_edge_args_substructures.
23571         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23572         rdesc linked list.  Do not assert rdesc edges have inlined caller.
23573         Assert we have found an rdesc in the rdesc list.
23575 2013-06-24  Richard Biener  <rguenther@suse.de>
23577         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23578         (pointer_set_lookup): Declare.
23579         (class pointer_map): New template class implementing a
23580         generic pointer to T map.
23581         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23582         pointer_map<T>::contains, pointer_map<T>::insert,
23583         pointer_map<T>::traverse): New functions.
23584         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23585         (pointer_set_lookup): New function.
23586         (pointer_set_contains): Use pointer_set_lookup.
23587         (pointer_set_insert): Likewise.
23588         (insert_aux): Remove.
23589         (struct pointer_map_t): Embed a pointer_set_t.
23590         (pointer_map_create): Adjust.
23591         (pointer_map_destroy): Likewise.
23592         (pointer_map_contains): Likewise.
23593         (pointer_map_insert): Likewise.
23594         (pointer_map_traverse): Likewise.
23595         * tree-streamer.h (struct streamer_tree_cache_d): Use a
23596         pointer_map<unsigned> instead of a pointer_map_t.
23597         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23598         (streamer_tree_cache_lookup): Likewise.
23599         (streamer_tree_cache_create): Likewise.
23600         (streamer_tree_cache_delete): Likewise.
23601         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23602         pointer_map<unsigned> instead of a pointer_map_t.
23603         (lto_init_tree_ref_encoder): Adjust.
23604         (lto_destroy_tree_ref_encoder): Likewise.
23605         * lto-section-out.c (lto_output_decl_index): Likewise.
23606         (lto_record_function_out_decl_state): Likewise.
23607         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23609 2013-06-24  Richard Biener  <rguenther@suse.de>
23611         PR tree-optimization/57488
23612         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23614 2013-06-24  Alan Modra  <amodra@gmail.com>
23616         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23617         (gen_easy_altivec_constant): Likewise.
23618         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23619         easy_vector_constant_msb): Likewise.
23621 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
23623         PR target/57688
23624         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23625         add missing return true.
23627 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
23629         PR target/52483
23630         * config/sh/predicates.md (general_extend_operand): Invoke
23631         general_movsrc_operand for memory operands.
23632         (general_movsrc_operand): Allow reg+reg addressing, do not use
23633         general_operand for memory operands.
23635 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
23637         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
23638         when current target options does not apply.
23639         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23640         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23641         * config/i386/bmiintrin.h: Pass appropriate target
23642         attributes to header.
23643         * config/i386/mmintrin.h: Ditto.
23644         * config/i386/nmmintrin.h: Ditto.
23645         * config/i386/avx2intrin.h: Ditto.
23646         * config/i386/fxsrintrin.h: Ditto.
23647         * config/i386/tbmintrin.h: Ditto.
23648         * config/i386/xsaveintrin.h: Ditto.
23649         * config/i386/f16cintrin.h: Ditto.
23650         * config/i386/xtestintrin.h: Ditto.
23651         * config/i386/xsaveoptintrin.h: Ditto.
23652         * config/i386/bmi2intrin.h: Ditto.
23653         * config/i386/lzcntintrin.h: Ditto.
23654         * config/i386/smmintrin.h: Ditto.
23655         * config/i386/wmmintrin.h: Ditto.
23656         * config/i386/x86intrin.h: Remove all header include guards.
23657         * config/i386/prfchwintrin.h: Ditto.
23658         * config/i386/pmmintrin.h: Ditto.
23659         * config/i386/tmmintrin.h: Ditto.
23660         * config/i386/xmmintrin.h: Ditto.
23661         * config/i386/popcntintrin.h: Ditto.
23662         * config/i386/rdseedintrin.h: Ditto.
23663         * config/i386/ammintrin.h: Ditto.
23664         * config/i386/emmintrin.h: Ditto.
23665         * config/i386/immintrin.h: Remove all header include guards.
23666         * config/i386/fma4intrin.h: Ditto.
23667         * config/i386/lwpintrin.h: Ditto.
23668         * config/i386/xopintrin.h: Ditto.
23669         * config/i386/ia32intrin.h: Ditto.
23670         * config/i386/avxintrin.h: Ditto.
23671         * config/i386/rtmintrin.h: Ditto.
23672         * config/i386/fmaintrin.h: Ditto.
23673         * config/i386/mm3dnow.h: Ditto.
23675 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
23677         * common/config/i386/i386-common.c: Handle LZCNT.
23679 2013-06-22  Andi Kleen  <ak@linux.intel.com>
23681         * doc/extend.texi: Use __atomic_store_n instead of
23682         __atomic_store in HLE example.
23684 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
23686         * config/sh/sh.c: Remove <cstdlib> workaround.
23688 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23690         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
23692 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23694         * doc/extend.texi: Document that __atomic_clear and
23695           __atomic_test_and_set should only be used with bool.
23697 2013-06-20  Jan Hubicka  <jh@suse.cz>
23699         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23700         types_same_for_odr.
23701         * tree.c (decls_same_for_odr): New function.
23702         (same_for_edr): New function.
23703         (types_same_for_odr): New function.
23704         (get_binfo_at_offset): Use it.
23705         * tree.h (types_same_for_odr): Declare.
23707 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
23708             Jason Merrill  <jason@redhat.com>
23710         * system.h: Include <cstdlib> as well as <stdlib.h>.
23712 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
23714         PR target/57655
23715         * config/i386/i386.c (construct_container): Report error if
23716         long double is used with disabled x87 float returns.
23718 2013-06-20  Jan Hubicka  <jh@suse.cz>
23720         * lto-cgraph.c (input_symtab): Do not set cgraph state.
23722 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
23724         PR rtl-optimization/57425
23725         PR rtl-optimization/57569
23726         * alias.c (write_dependence_p): Remove parameters mem_mode and
23727         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
23728         Changed all callers.
23729         (canon_anti_dependence): Get comments and semantics in sync.
23730         Add parameter mem_canonicalized.  Changed all callers.
23731         * rtl.h (canon_anti_dependence): Update prototype.
23733 2013-06-20  Richard Biener  <rguenther@suse.de>
23735         * data-streamer-in.c (streamer_read_uhwi): Optimize single
23736         byte case, inline streamer_read_uchar and defer section
23737         overrun check.
23739 2013-06-20  Richard Biener  <rguenther@suse.de>
23741         PR tree-optimization/57584
23742         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23743         SSA names into the expanded expression that take part in
23744         abnormal coalescing.
23746 2013-06-19  Sharad Singhai  <singhai@google.com>
23748         * gcov.c (print_usage): Handle new option.
23749         (process_args): Ditto.
23750         (get_gcov_intermediate_filename): New function.
23751         (output_intermediate_file): New function.
23752         (output_gcov_file): New function
23753         (generate_results): Handle new option.
23754         (release_function): Relase demangled name.
23755         (read_graph_file): Handle demangled name.
23756         (output_lines): Ditto.
23757         * doc/gcov.texi: Document gcov intermediate format.
23759 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
23761         PR bootstrap/57604
23762         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23763         (lra_emit_add): Use the functions.  Add comment about Y as an
23764         address segment.
23766 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
23768         PR driver/57652
23769         * collect2.c (collect_atexit): New.
23770         (collect_exit): Delete.
23771         (main): Register collect_atexit with atexit.
23772         (collect_wait): Change collect_exit to exit.
23773         (do_wait): Same.
23774         * collect2.h (collect_exit): Delete.
23775         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23777 2013-06-19  Wei Mi  <wmi@google.com>
23779         PR rtl-optimization/57518
23780         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23781         if regno is used in paradoxical subreg.
23782         (update_equiv_regs): Check pdx_subregs[regno] before
23783         set a reg to be equivalent with a mem.
23785 2013-06-19  Matthias Klose  <doko@ubuntu.com>
23787         PR driver/57651
23788         * file-find.h (find_a_file): Add a mode parameter.
23789         * file-find.c (find_a_file): Likewise.
23790         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23791         with X_OK for the executables.
23792         * collect2.c (main): Call find_a_file with X_OK.
23794 2013-06-19  Steve Ellcey  <sellcey@mips.com>
23796         PR target/56942
23797         * config/mips/mips.md (casesi_internal_mips16_<mode>):
23798         Use NEXT_INSN instead of next_real_insn.
23800 2013-06-19  Jan Hubicka  <jh@suse.cz>
23802         * cgraph.h (const_value_known_p): Replace by ...
23803         (ctor_for_folding): .. this one.
23804         * cgraphunit.c (process_function_and_variable_attributes): Use it.
23805         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23806         * expr.c (expand_expr_real_1): Likewise.
23807         (string_constant): Likewise.
23808         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23809         * ipa.c (process_references): Likewise.
23810         (symtab_remove_unreachable_nodes): Likewise.
23811         * ipa-inline-analysis.c (param_change_prob): Likewise.
23812         * gimple-fold.c (canonicalize_constructor_val): Likewise.
23813         (get_base_constructor): Likwise.
23814         * varpool.c (varpool_remove_node): Likewise.
23815         (varpool_remove_initializer): LIkewise.
23816         (dump_varpool_node): LIkwise.
23817         (const_value_known_p): Rewrite to ...
23818         (ctor_for_folding): ... this one.
23820 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
23822         PR driver/57651
23823         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23824         PERSONALITY in $PATH derived prefixes.
23826 2013-06-19  Jeff Law  <law@redhat.com>
23828         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23829         in comment.
23831         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23832         (simplify_bitwise_binary): Use it to simpify certain binary ops on
23833         booleans.
23835 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
23837         * config/arm/vfp.md: Move VFP instruction classification documentation
23838         to ...
23839         * config/arm/arm.md: ... here.  Update instruction classification
23840         documentation.
23842 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
23844         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23845         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23846         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
23848 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
23850         PR target/57609
23851         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23852         with NEXT_INSN.  Use tablejump_p to check for jump table data
23853         insns.
23855 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
23857         PR c++/56544
23858         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23859         that now in C++ the value is correct per the C++ standards.
23861 2013-06-19  Richard Biener  <rguenther@suse.de>
23863         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23864         for global context.
23866 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23868         Revert:
23869         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23871         PR target/57609
23872         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23873         with next_active_insn.
23875 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
23877         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23878         functions are inlined during failures to flag an error.
23879         * tree-inline.c (expand_call_inline): Allow the error to be flagged
23880         in early inline pass.
23882 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
23884         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23885         in comments.
23887 2013-06-18  Julian Brown  <julian@codesourcery.com>
23889         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23890         Permit virtual register pre-reload if !strict.
23891         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23892         change.
23893         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23894         prototype.
23895         * config/arm/neon.md (movmisalign<mode>): Use
23896         neon_perm_struct_or_reg_operand instead of
23897         neon_struct_or_register_operand.
23898         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23899         neon_permissive_struct_operand instead of neon_struct_operand.
23900         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23901         neon_vector_mem_operand.
23902         * config/arm/predicates.md (neon_struct_operand): Adjust call to
23903         neon_vector_mem_operand.
23904         (neon_permissive_struct_operand): New.
23905         (neon_struct_or_register_operand): Rename to...
23906         (neon_perm_struct_or_reg_operand): This. Adjust call to
23907         neon_vector_mem_operand.
23909 2013-06-18  Richard Biener  <rguenther@suse.de>
23911         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23912         * lto-streamer.h: Include pointer-set.h.
23913         (struct lto_decl_slot): Remove.
23914         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23915         Remove next_index entry.
23916         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23917         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23918         (lto_init_tree_ref_encoder): Adjust.
23919         (lto_destroy_tree_ref_encoder): Likewise.
23920         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23921         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23922         (lto_output_decl_index): Adjust.
23923         (lto_new_out_decl_state): Likewise.
23924         (lto_record_function_out_decl_state): Likewise.
23925         * lto-streamer-out.c (copy_function): Likewise.
23927 2013-06-18  Richard Biener  <rguenther@suse.de>
23929         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23930         * cgraphunit.c: Include cfgloop.h.
23931         (init_lowered_empty_function): Initialize the loop tree.
23932         (assemble_thunk): Insert new BBs into loops.
23934 2013-06-18  Richard Biener  <rguenther@suse.de>
23936         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23937         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23938         the map from cache entry to cache index optional.
23939         (streamer_tree_cache_replace_tree): Adjust accordingly.
23940         (streamer_tree_cache_append): Likewise.
23941         (streamer_tree_cache_delete): Likewise.
23942         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23943         streamer cache map from cache entry to cache index.
23944         * lto-streamer-out.c (create_output_block): Adjust.
23946 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
23948         * config/arm/arm.md (attribute "insn"): Move multiplication and
23949         division attributes to...
23950         (attribute "type"): ... here.  Remove mult.
23951         (attribute "mul32"): New attribute.
23952         (attribute "mul64"): Add umaal.
23953         (*arm_mulsi3): Update attributes.
23954         (*arm_mulsi3_v6): Likewise.
23955         (*thumb_mulsi3): Likewise.
23956         (*thumb_mulsi3_v6): Likewise.
23957         (*mulsi3_compare0): Likewise.
23958         (*mulsi3_compare0_v6): Likewise.
23959         (*mulsi_compare0_scratch): Likewise.
23960         (*mulsi_compare0_scratch_v6): Likewise.
23961         (*mulsi3addsi): Likewise.
23962         (*mulsi3addsi_v6): Likewise.
23963         (*mulsi3addsi_compare0): Likewise.
23964         (*mulsi3addsi_compare0_v6): Likewise.
23965         (*mulsi3addsi_compare0_scratch): Likewise.
23966         (*mulsi3addsi_compare0_scratch_v6): Likewise.
23967         (*mulsi3subsi): Likewise.
23968         (*mulsidi3adddi): Likewise.
23969         (*mulsi3addsi_v6): Likewise.
23970         (*mulsidi3adddi_v6): Likewise.
23971         (*mulsidi3_nov6): Likewise.
23972         (*mulsidi3_v6): Likewise.
23973         (*umulsidi3_nov6): Likewise.
23974         (*umulsidi3_v6): Likewise.
23975         (*umulsidi3adddi): Likewise.
23976         (*umulsidi3adddi_v6): Likewise.
23977         (*smulsi3_highpart_nov6): Likewise.
23978         (*smulsi3_highpart_v6): Likewise.
23979         (*umulsi3_highpart_nov6): Likewise.
23980         (*umulsi3_highpart_v6): Likewise.
23981         (mulhisi3): Likewise.
23982         (*mulhisi3tb): Likewise.
23983         (*mulhisi3bt): Likewise.
23984         (*mulhisi3tt): Likewise.
23985         (maddhisi4): Likewise.
23986         (*maddhisi4tb): Likewise.
23987         (*maddhisi4tt): Likewise.
23988         (maddhidi4): Likewise.
23989         (*maddhidi4tb): Likewise.
23990         (*maddhidi4tt): Likewise.
23991         (divsi3): Likewise.
23992         (udivsi3): Likewise.
23993         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23994         (thumb2_mulsi_short_compare0): Likewise.
23995         (thumb2_mulsi_short_compare0_scratch): Likewise.
23996         * config/arm/arm1020e.md (1020mult1): Update attribute change.
23997         (1020mult2): Likewise.
23998         (1020mult3): Likewise.
23999         (1020mult4): Likewise.
24000         (1020mult5): Likewise.
24001         (1020mult6): Likewise.
24002         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
24003         change.
24004         (cortex_a15_mult64): Likewise.
24005         (cortex_a15_sdiv): Likewise.
24006         (cortex_a15_udiv): Likewise.
24007         * config/arm/arm1026ejs.md (mult1): Update attribute change.
24008         (mult2): Likewise.
24009         (mult3): Likewise.
24010         (mult4): Likewise.
24011         (mult5): Likewise.
24012         (mult6): Likewise.
24013         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
24014         (pj4_ir_div): Likewise.
24015         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
24016         (11_mult2): Likewise.
24017         (11_mult3): Likewise.
24018         (11_mult4): Likewise.
24019         (11_mult5): Likewise.
24020         (11_mult6): Likewise.
24021         (11_mult7): Likewise.
24022         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
24023         (cortex_a8_mla): Likewise.
24024         (cortex_a8_mull): Likewise.
24025         (cortex_a8_smulwy): Likewise.
24026         (cortex_a8_smlald): Likewise.
24027         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
24028         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
24029         (cortex_r4_mul_3): Likewise.
24030         (cortex_r4_mla_4): Likewise.
24031         (cortex_r4_mla_3): Likewise.
24032         (cortex_r4_smlald): Likewise.
24033         (cortex_r4_mull): Likewise.
24034         (cortex_r4_sdiv): Likewise.
24035         (cortex_r4_udiv): Likewise.
24036         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
24037         (cortex_a7_idiv): Likewise.
24038         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
24039         (9_mult2): Likewise.
24040         (9_mult3): Likewise.
24041         (9_mult4): Likewise.
24042         (9_mult5): Likewise.
24043         (9_mult6): Likewise.
24044         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
24045         (cortex_a53_sdiv): Likewise.
24046         (cortex_a53_udiv): Likewise.
24047         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
24048         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
24049         (mp626_mult2): Likewise.
24050         (mp626_mult3): Likewise.
24051         (mp626_mult4): Likewise.
24052         * config/arm/fa526.md (526_mult1): Update attribute change.
24053         (526_mult2): Likewise.
24054         * config/arm/arm-generic.md (mult): Update attribute change.
24055         (mult_ldsched_strongarm): Likewise.
24056         (mult_ldsched): Likewise.
24057         (multi_cycle): Likewise.
24058         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
24059         * config/arm/fa606te.md (606te_mult1): Update attribute change.
24060         (606te_mult2): Likewise.
24061         (606te_mult3): Likewise.
24062         (606te_mult4): Likewise.
24063         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
24064         (cortex_a9_mac16): Likewise.
24065         (cortex_a9_multiply): Likewise.
24066         (cortex_a9_mac): Likewise.
24067         (cortex_a9_multiply_long): Likewise.
24068         * config/arm/fa626te.md (626te_mult1): Update attribute change.
24069         (626te_mult2): Likewise.
24070         (626te_mult3): Likewise.
24071         (626te_mult4): Likewise.
24073 2013-06-18  Richard Biener  <rguenther@suse.de>
24075         PR lto/57334
24076         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
24078 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24080         PR target/57609
24081         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24082         with next_active_insn.
24084 2013-06-18  Alan Modra  <amodra@gmail.com>
24086         * config/rs6000/rs6000.h (enum data_align): New.
24087         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
24088         (DATA_ABI_ALIGNMENT): Define.
24089         (CONSTANT_ALIGNMENT): Correct comment.
24090         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
24091         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
24093 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
24095         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
24096         ATTRIBUTE_UNUSED marking.
24098 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
24100         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
24101         alternative and update.
24102         (aarch64_dup_lanedi): Delete.
24103         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
24104         * config/aarch64/aarch64-simd-builtins.def: Update.
24106 2013-06-17  Richard Biener  <rguenther@suse.de>
24108         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
24109         (lto_input_scc): Declare.
24110         (lto_input_tree_1): Likewise.
24111         (struct lto_stats_d): Add num_tree_bodies_output and
24112         num_pickle_refs_output.
24113         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
24114         (lto_read_tree_1): Split out from ...
24115         (lto_read_tree): ... this.
24116         (lto_input_scc): New function.
24117         (lto_input_tree_1): Split out from ...
24118         (lto_input_tree): ... this.  Handle LTO_tree_scc.
24119         (lto_data_in_create): Create the streamer cache without hashes.
24120         * lto-streamer-out.c (create_output_block): Create the streamer
24121         cache with hashes when not doing WPA.
24122         (lto_write_tree_1): Split out from ...
24123         (lto_write_tree): ... this.
24124         (get_symbol_initial_value): New function.
24125         (lto_output_tree_1): Split out from ...
24126         (lto_output_tree): ... this.  Write trees as series of SCCs
24127         using a DFS walk via DFS_write_tree.
24128         (struct sccs, struct scc_entry): New types.
24129         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
24130         (DFS_write_tree_body): New function.
24131         (DFS_write_tree): Likewise.
24132         (hash_tree): Likewise.
24133         (scc_entry_compare): Likewise.
24134         (hash_scc): Likewise.
24135         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
24136         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
24137         TREE_CHAIN as regular reference.
24138         (streamer_read_integer_cst): Remove.
24139         (streamer_get_pickled_tree): Adjust.
24140         * tree-streamer-out.c (streamer_write_chain): Disable streaming
24141         of DECL_EXTERNALs in BLOCK_VARS for now.
24142         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
24143         reference.
24144         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
24145         Add hash value argument and record that if hashes are recorded
24146         in the cache.
24147         (streamer_tree_cache_insert_1): Adjust.
24148         (streamer_tree_cache_insert): Likewise.
24149         (streamer_tree_cache_insert_at): Rename to ...
24150         (streamer_tree_cache_replace_tree): ... this and adjust.
24151         (streamer_tree_cache_append): Adjust.
24152         (record_common_node): Likewise.
24153         (streamer_tree_cache_create): Add argument whether to
24154         record hash values together with trees.
24155         (streamer_tree_cache_delete): Adjust.
24156         * tree-streamer.h (struct streamer_tree_cache_d): Add
24157         vector of hashes.
24158         (streamer_read_integer_cst): Remove.
24159         (streamer_tree_cache_insert): Adjust.
24160         (streamer_tree_cache_append): Likewise.
24161         (streamer_tree_cache_insert_at): Rename to ...
24162         (streamer_tree_cache_replace_tree): ... this and adjust.
24163         (streamer_tree_cache_create): Add argument whether to record hashes.
24164         (streamer_tree_cache_get): Rename to ...
24165         (streamer_tree_cache_get_tree): ... this.
24166         (streamer_tree_cache_get_hash): New function.
24167         * tree.c (cache_integer_cst): New function.
24168         * tree.h (cache_integer_cst): Declare.
24169         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
24170         * lto-symtab.c (lto_varpool_replace_node): Only release
24171         DECL_INITIAL of non-prevailing decls.
24172         * varpool.c (varpool_remove_initializer): Do not release
24173         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
24175 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
24177         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
24178         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
24179         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
24180         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
24181         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
24182         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
24183         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
24184         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
24185         instead of TARGET_64BIT.
24186         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
24187         Require ISA_HAS_<D>DIV.
24189 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
24191         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
24192         (mips*-*-linux*): Move default with_llsc setting to where other
24193         defaults are set.
24194         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
24195         with_arch block.
24196         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
24197         Likewise.  Remove default with_tune setting.  Move default float
24198         setting to its own block.  Handle with_llsc in the same block as above.
24200 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
24202         PR rtl-optimization/57425
24203         PR rtl-optimization/57569
24204         * alias.c (write_dependence_p): Add new parameters mem_mode,
24205         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
24206         Changed all callers.
24207         (canon_anti_dependence): New function.
24208         * cse.c (check_dependence): Use canon_anti_dependence.
24209         * cselib.c (cselib_invalidate_mem): Likewise.
24210         * rtl.h (canon_anti_dependence): Declare.
24212 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
24214         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
24215         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
24216         ".set mips3" for 64-bit targets.
24218 2013-06-15  Dehao Chen  <dehao@google.com>
24220         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
24221         * gimple-low.c (gimple_check_call_matching_types): Likewise.
24222         (gimple_check_call_args): Likewise.
24223         * value-prof.c (check_ic_target): Likewise.
24224         * ipa-inline.c (early_inliner): Likewise.
24225         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
24226         * cgraph.c (cgraph_create_edge_1): Likewise.
24227         (cgraph_make_edge_direct): Likewise.
24229 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24231         PR target/57615
24232         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
24233         rs6000_output_move_128bit to handle emitting quad memory
24234         operations.  Set attribute length to 8 bytes.
24236 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
24238         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
24239         New pattern.
24240         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
24241         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
24242         (aarch64_<su>mlsl<mode>): Likewise.
24244 2013-06-14  Mike Stump  <mikestump@comcast.net>
24246         * Makefile.in (TARGET_H): Add insn-codes.h.
24248 2013-06-14  Alan Modra  <amodra@gmail.com>
24250         PR middle-end/57134
24251         PR middle-end/57586
24252         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
24253         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
24254         bitfield expansion when EXPAND_MEMORY.
24255         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
24257 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
24259         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24260         test for clearing quad memory on 32-bit later.
24262 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
24264         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
24265         (fold_negate_expr): Likewise.
24266         (fold_real_zero_addition_p): Handle vectors.
24267         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24269 2013-06-14  Alan Modra  <amodra@gmail.com>
24271         * varasm.c (force_const_mem): Revert 2013-06-07 change.
24273 2013-06-13  Jan Hubicka  <jh@suse.cz>
24275         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24276         Local comdats are not externally visible.
24277         * symtab.c (dump_symtab_base): Dump externally visible.
24278         (verify_symtab_base): Verify back links in the symtab hash.
24280 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
24282         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24283         CONVERT_EXPR as equal nodes.
24285 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
24287         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24289 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
24291         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24292         Generalize to complex and vector.
24293         * tree.c (build_all_ones_cst): New function.
24294         * tree.h (build_all_ones_cst): Declare it.
24296 2013-06-13  Alan Modra  <amodra@gmail.com>
24298         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24299         * config/rs6000/rs6000.md (signbittf2): New insn.
24300         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24301         (abstf2_internal, cmptf_internal2): Likewise.
24302         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24304 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
24305             Pat Haugen  <pthaugen@us.ibm.com>
24306             Peter Bergner  <bergner@vnet.ibm.com>
24308         * config/rs6000/rs6000.c (emit_load_locked): Add support for
24309         power8 byte, half-word, and quad-word atomic instructions.
24310         (emit_store_conditional): Likewise.
24311         (rs6000_expand_atomic_compare_and_swap): Likewise.
24312         (rs6000_expand_atomic_op): Likewise.
24314         * config/rs6000/sync.md (larx): Add new modes for power8.
24315         (stcx): Likewise.
24316         (AINT): New mode iterator to include TImode as well as normal
24317         integer modes on power8.
24318         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24319         that VSX registers are not considered.  Use AINT mode iterator
24320         instead of INT1 to allow inclusion of quad word atomic operations
24321         on power8.
24322         (load_locked<mode>): Likewise.
24323         (store_conditional<mode>): Likewise.
24324         (atomic_compare_and_swap<mode>): Likewise.
24325         (atomic_exchange<mode>): Likewise.
24326         (atomic_nand<mode>): Likewise.
24327         (atomic_fetch_<fetchop_name><mode>): Likewise.
24328         (atomic_nand_fetch<mode>): Likewise.
24329         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24330         each type.
24331         (ATOMIC): On power8, add QImode, HImode modes.
24332         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24333         modes that promote to SImode.
24334         (load_lockedti): Convert TImode arguments to PTImode, so that we
24335         get a guaranteed even/odd register pair.
24336         (load_lockedpti): Likewise.
24337         (store_conditionalti): Likewise.
24338         (store_conditionalpti): Likewise.
24340         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24341         atomic load/store instructions.
24342         (HSI): Likewise.
24344 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
24346         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24347         loads.
24348         (insn_count): New attribute, with most cases extracted from...
24349         (length): ...here.  Redefine most cases in terms of insn_count.
24350         (single_insn): Delete.
24351         (can_delay): Use insn_count to check for single instructions.
24352         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24353         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24354         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24355         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24356         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24357         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24358         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24359         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24360         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24361         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24362         rather than "length".
24363         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
24364         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24365         Use "insn_count" rather than "length".
24366         * config/mips/mips-dsp.md
24367         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24368         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24369         length attributes.
24371 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
24373         PR tree-optimization/57361
24374         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24376 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
24378         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24379         to split.
24380         (aarch64_simd_combine<mode>): New instruction expansion.
24381         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24382         function prototype.
24383         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24384         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24386 2013-06-12  Jan Hubicka  <jh@suse.cz>
24388         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24389         decl has when in streaming stage.
24390         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24391         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24393 2013-06-12  Roland Stigge  <stigge@antcom.de>
24395         PR target/57578
24396         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24398 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24400         PR tree-optimization/57537
24401         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24402         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24404 2013-06-12  Richard Biener  <rguenther@suse.de>
24406         * data-streamer.h (streamer_write_char_stream): CSE
24407         obs->current_pointer.
24408         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24409         streamer_write_char_stream manually and optimize the resulting loop.
24410         (streamer_write_hwi_stream): Likewise.
24412 2013-06-12  Jan Hubicka  <jh@suse.cz>
24414         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24415         * cgraph.h (varpool_create_empty_node): Declare.
24416         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24417         duplicated nodes.
24418         * symtab.c (symtab_unregister_node): Be lax about missin entries
24419         in node hash.
24420         (symtab_get_node): Update comment.
24421         * varpool.c (varpool_create_empty_node): Break out from ...
24422         (varpool_node_for_decl): ... here.
24423         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24425 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
24427         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24428         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24429         part.  Use straight-line flow at the end.
24430         <COMPONENT_REF>: Remove superfluous else.
24431         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24433 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24435         PR target/56564
24436         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24437         target hook even for !TREE_PUBLIC decls.  If no resolution info
24438         is available, return false for common and external decls.
24440 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24442         * config/rl78/constraints.md (U): New constraint.
24443         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24444         valloc attribute.
24446 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
24448         PR target/57589
24449         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24450         to allow returning address to AT_PLATFORM name.
24452 2013-06-11  Jan Hubicka  <jh@suse.cz>
24454         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24455         * cgraph.h (symtab_node_base): Add weakref flag.
24456         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24457         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24458         (output_weakrefs): Use weakref flag.
24459         * fold-const.c (simple_operand_p): Handle WEAK.
24460         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24461         * ipa.c (varpool_externally_visible_p): Drop weakref.
24462         (function_and_variable_visibility): Update comment; fix weakref
24463         sanity checks; do not clear DECL_WEAK on them.
24464         * lto-cgraph.c (lto_output_node): update.
24465         (lto_output_varpool_node): Update.
24466         (input_overwrite_node): Update.
24467         (input_node): Update.
24468         (input_varpool_node): Update.
24469         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24470         (lto_symtab_merge_symbols): Add sanity check.
24471         (lto_symtab_prevailing_decl): Do not special case weakrefs.
24472         * passes.c (rest_of_decl_compilation): Set static flag, too.
24473         * symtab.c (dump_symtab_base): Dump weakref.
24474         (verify_symtab_base): Sanity check weakrefs.
24475         (symtab_make_decl_local): Remove duplicated code.
24476         (symtab_alias_ultimate_target): Simplify.
24477         * varpool.c (varpool_create_variable_alias): Set weakref flag.
24479 2013-06-11  Tom de Vries  <tom@codesourcery.com>
24481         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
24482         sequence_vect == NULL.
24484 2013-06-11  DJ Delorie  <dj@redhat.com>
24486         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24487         (rl78_unwind_word_mode): New.
24489 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24491         * final.c (debug_prefix_maps): Make static.
24493 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24495         * function.c (initial_trampoline): Remove stray copy.
24497 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
24499         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24501 2013-06-11  Martin Jambor  <mjambor@suse.cz>
24503         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24504         within bounds at the beginning of the function.
24506 2013-06-11  Alan Modra  <amodra@gmail.com>
24508         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
24509         reporting.
24510         (get_named_section): Don't NULL !DECL_P decl.
24512 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
24514         * doc/invoke.texi (core-avx2): Document.
24515         (slm): Likewise.
24516         (atom): Updated with MOVBE.
24518 2013-06-11  Richard Biener  <rguenther@suse.de>
24520         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24522 2013-06-11  Anton Blanchard  <anton@samba.org>
24524         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24525         correct shift value in little-endian mode.
24527 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
24529         PR target/56564
24530         * varasm.c (get_variable_align): Move #endif to the right place.
24532 2013-06-10  Cary Coutant  <ccoutant@google.com>
24534         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24535         for hash so that hash table traversal order is deterministic.
24537 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24538             Pat Haugen  <pthaugen@us.ibm.com>
24539             Peter Bergner  <bergner@vnet.ibm.com>
24541         * config/rs6000/vector.md (GPR move splitter): Do not split moves
24542         of vectors in GPRS if they are direct moves or quad word load or
24543         store moves.
24545         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24546         declaration.
24547         (direct_move_p): Likewise.
24548         (quad_load_store_p): Likewise.
24550         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24551         classes into bins based on the physical register type.
24552         (reg_class_to_reg_type): Likewise.
24553         (IS_STD_REG_TYPE): Likewise.
24554         (IS_FP_VECT_REG_TYPE): Likewise.
24555         (reload_fpr_gpr): Arrays to determine what insn to use if we can
24556         use direct move instructions.
24557         (reload_gpr_vsx): Likewise.
24558         (reload_vsx_gpr): Likewise.
24559         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24560         information that is a simplification of register classes.  Also
24561         precalculate direct move reload helpers.
24562         (direct_move_p): New function to return true if the operation can
24563         be done as a direct move instruciton.
24564         (quad_load_store_p): New function to return true if the operation
24565         is a quad memory operation.
24566         (rs6000_legitimize_address): If quad memory, only allow register
24567         indirect for TImode addresses.
24568         (rs6000_legitimate_address_p): Likewise.
24569         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24570         (rs6000_reload_register_type): Likewise.
24571         (register_to_reg_type): Return register type.
24572         (rs6000_secondary_reload_simple_move): New helper function for
24573         secondary reload and secondary memory needed to identify anything
24574         that is a simple move, and does not need reloading.
24575         (rs6000_secondary_reload_direct_move): New helper function for
24576         secondary reload to identify cases that can be done with several
24577         instructions via the direct move instructions.
24578         (rs6000_secondary_reload_move): New helper function for secondary
24579         reload to identify moves between register types that can be done.
24580         (rs6000_secondary_reload): Add support for quad memory operations
24581         and for direct move.
24582         (rs6000_secondary_memory_needed): Likewise.
24583         (rs6000_debug_secondary_memory_needed): Change argument names.
24584         (rs6000_output_move_128bit): New function to return the move to
24585         use for 128-bit moves, including knowing about the various
24586         limitations of quad memory operations.
24588         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24589         memory operations.  call rs6000_output_move_128bit for the actual
24590         instruciton(s) to generate.
24591         (vsx_movti_64bit): Likewise.
24593         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24594         (UNSPEC_P8V_MTVSRWZ): Likewise.
24595         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24596         (UNSPEC_P8V_MTVSRD): Likewise.
24597         (UNSPEC_P8V_XXPERMDI): Likewise.
24598         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24599         (UNSPEC_FUSION_GPR): Likewise.
24600         (FMOVE128_GPR): New iterator for direct move.
24601         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24602         (f32_sv): Likewise.
24603         (f32_dm): Likewise.
24604         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24605         loads and direct move instructions.
24606         (zero_extendsidi2_lfiwzx): Likewise.
24607         (extendsidi2_lfiwax): Likewise.
24608         (extendsidi2_nocell): Likewise.
24609         (floatsi<mode>2_lfiwax): Likewise.
24610         (lfiwax): Likewise.
24611         (floatunssi<mode>2_lfiwzx): Likewise.
24612         (lfiwzx): Likewise.
24613         (fix_trunc<mode>_stfiwx): Likewise.
24614         (fixuns_trunc<mode>_stfiwx): Likewise.
24615         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24616         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24617         (parity<mode>2_cmpb): Set length/type attr.
24618         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24619         for 'mr.' to fast_compare.
24620         (bpermd_<mode>): Change type attr to popcnt.
24621         (p8_fmrgow_<mode>): New insns for power8 direct move support.
24622         (p8_mtvsrwz_1): Likewise.
24623         (p8_mtvsrwz_2): Likewise.
24624         (reload_fpr_from_gpr<mode>): Likewise.
24625         (p8_mtvsrd_1): Likewise.
24626         (p8_mtvsrd_2): Likewise.
24627         (p8_xxpermdi_<mode>): Likewise.
24628         (reload_vsx_from_gpr<mode>): Likewise.
24629         (reload_vsx_from_gprsf): Likewise.
24630         (p8_mfvsrd_3_<mode>): LIkewise.
24631         (reload_gpr_from_vsx<mode>): Likewise.
24632         (reload_gpr_from_vsxsf): Likewise.
24633         (p8_mfvsrd_4_disf): Likewise.
24634         (multi-word GPR splits): Do not split direct moves or quad memory
24635         operations.
24637 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
24639         * tree-into-ssa.c (interesting_blocks): Make static.
24641 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
24643         PR target/56564
24644         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24645         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24646         Use DATA_ABI_ALIGNMENT for that case instead if defined.
24647         (get_variable_align): New function.
24648         (get_variable_section, emit_bss, emit_common,
24649         assemble_variable_contents, place_block_symbol): Use
24650         get_variable_align instead of DECL_ALIGN.
24651         (assemble_noswitch_variable): Add align argument, use it
24652         instead of DECL_ALIGN.
24653         (assemble_variable): Adjust caller.  Use get_variable_align
24654         instead of DECL_ALIGN.
24655         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24656         caller.
24657         (DATA_ABI_ALIGNMENT): Define.
24658         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24659         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
24660         opt is false, only return the psABI mandated alignment increase.
24661         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24662         (DATA_ABI_ALIGNMENT): ... this.
24663         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24664         (DATA_ABI_ALIGNMENT): ... this.
24665         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24666         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24667         (DATA_ABI_ALIGNMENT): ... this.
24668         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24669         * doc/tm.texi: Regenerated.
24671 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
24673         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24674         cmp_code to construct REG_EQUAL note.
24676 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
24678         PR target/57568
24679         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24680         that operands[2] doesn't overlap with operands[0].
24682 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
24683             Jan Hubicka  <jh@suse.cz>
24685         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24686         hack to mark symbols as used.
24688 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
24690         PR rtl-optimization/57559
24691         * lra-constraints.c (process_alt_operands): Don't discourage
24692         memory with known offset for offsetable memory constraint.
24693         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24695 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
24697         * varasm.c (struct oc_local_state): Reorder fields.
24698         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24699         and adjust accordingly.
24700         (output_constructor): Reorder initialization code and adjust call to
24701         output_constructor_bitfield.
24703 2013-06-07  Jan Hubicka  <jh@suse.cz>
24705         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24707 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
24709         * tree-object-size.c (unknown): Make const.
24711 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24713         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24714         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24715         for last alternative in the cpu_facility attribute.
24717 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24719         PR target/56315
24720         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24721         (xordi3): Change operand 2 constraint to arm_xordi_operand.
24722         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24723         * config/arm/constraints.md (Dg): New constraint.
24724         * config/arm/neon.md (xordi3_neon): Remove.
24725         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24726         * config/arm/predicates.md (arm_xordi_operand): New predicate.
24728 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24730         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24731         Clean up alternatives.
24733 2013-06-07  Alan Modra  <amodra@gmail.com>
24735         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24736         va_list_gpr_size.
24738 2013-06-07  Alan Modra  <amodra@gmail.com>
24740         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24742 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24744         * config/arm/constraints.md (Df): New constraint.
24745         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24746         Correct length attribute for last two alternatives.
24748 2013-06-07  Alan Modra  <amodra@gmail.com>
24750         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24751         override user -mfp-in-toc.
24752         (offsettable_ok_by_alignment): Consider just the current access
24753         rather than the whole object, unless BLKmode.  Handle
24754         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24755         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24756         for -mcmodel=medium.
24757         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24758         override user -mfp-in-toc or -msum-in-toc.  Default to
24759         -mno-fp-in-toc for -mcmodel=medium.
24761 2013-06-06  DJ Delorie  <dj@redhat.com>
24763         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24764         TARGET_VALID_POINTER_MODE.
24766 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24767             Pat Haugen  <pthaugen@us.ibm.com>
24768             Peter Bergner  <bergner@vnet.ibm.com>
24770         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24771         Document new power8 builtins.
24773         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24774         condition code register, to allow 128-bit logical operations to be
24775         done in the VSX or GPR registers.
24776         (nor<mode>3): Use the canonical form for nor.
24777         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24778         vclz*, and vpopcnt* vector instructions.
24779         (nand<mode>3): Likewise.
24780         (orc<mode>3): Likewise.
24781         (clz<mode>2): LIkewise.
24782         (popcount<mode>2): Likewise.
24784         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24785         that only the GPRs are recognized.
24787         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24788         support for new power8 builtins.
24790         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24791         builtin functions.
24792         (xscvdpspn): Likewise.
24793         (vclz): Likewise.
24794         (vclzb): Likewise.
24795         (vclzh): Likewise.
24796         (vclzw): Likewise.
24797         (vclzd): Likewise.
24798         (vpopcnt): Likewise.
24799         (vpopcntb): Likewise.
24800         (vpopcnth): Likewise.
24801         (vpopcntw): Likewise.
24802         (vpopcntd): Likewise.
24803         (vgbbd): Likewise.
24804         (vmrgew): Likewise.
24805         (vmrgow): Likewise.
24806         (eqv): Likewise.
24807         (eqv_v16qi3): Likewise.
24808         (eqv_v8hi3): Likewise.
24809         (eqv_v4si3): Likewise.
24810         (eqv_v2di3): Likewise.
24811         (eqv_v4sf3): Likewise.
24812         (eqv_v2df3): Likewise.
24813         (nand): Likewise.
24814         (nand_v16qi3): Likewise.
24815         (nand_v8hi3): Likewise.
24816         (nand_v4si3): Likewise.
24817         (nand_v2di3): Likewise.
24818         (nand_v4sf3): Likewise.
24819         (nand_v2df3): Likewise.
24820         (orc): Likewise.
24821         (orc_v16qi3): Likewise.
24822         (orc_v8hi3): Likewise.
24823         (orc_v4si3): Likewise.
24824         (orc_v2di3): Likewise.
24825         (orc_v4sf3): Likewise.
24826         (orc_v2df3): Likewise.
24828         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24829         allow power8 quad mode in 64-bit.
24830         (rs6000_builtin_vectorized_function): Add support to vectorize
24831         ISA 2.07 count leading zeros, population count builtins.
24832         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24833         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24834         (builtin_function_type): Add vgbbd builtin function which takes an
24835         unsigned argument.
24836         (altivec_expand_vec_perm_const): Add support for new power8 merge
24837         instructions.
24839         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24840         that does not include TImdoe for use with 32-bit.
24841         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24842         instructions.
24843         (UNSPEC_VSX_CVDPSPN): Likewise.
24844         (vsx_xscvdpspn): Likewise.
24845         (vsx_xscvspdpn): Likewise.
24846         (vsx_xscvdpspn_scalar): Likewise.
24847         (vsx_xscvspdpn_directmove): Likewise.
24848         (vsx_and<mode>3): Split logical operations into 32-bit and
24849         64-bit. Add support to do logical operations on TImode as well as
24850         VSX vector types.  Allow logical operations to be done in either
24851         VSX registers or in general purpose registers in 64-bit mode.  Add
24852         splitters if GPRs were used. For AND, add clobber of CCmode to
24853         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
24854         encoding.
24855         (vsx_and<mode>3_32bit): Likewise.
24856         (vsx_and<mode>3_64bit): Likewise.
24857         (vsx_ior<mode>3): Likewise.
24858         (vsx_ior<mode>3_32bit): Likewise.
24859         (vsx_ior<mode>3_64bit): Likewise.
24860         (vsx_xor<mode>3): Likewise.
24861         (vsx_xor<mode>3_32bit): Likewise.
24862         (vsx_xor<mode>3_64bit): Likewise.
24863         (vsx_one_cmpl<mode>2): Likewise.
24864         (vsx_one_cmpl<mode>2_32bit): Likewise.
24865         (vsx_one_cmpl<mode>2_64bit): Likewise.
24866         (vsx_nor<mode>3): Likewise.
24867         (vsx_nor<mode>3_32bit): Likewise.
24868         (vsx_nor<mode>3_64bit): Likewise.
24869         (vsx_andc<mode>3): Likewise.
24870         (vsx_andc<mode>3_32bit): Likewise.
24871         (vsx_andc<mode>3_64bit): Likewise.
24872         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24873         and xxlorc instructions.
24874         (vsx_eqv<mode>3_64bit): Likewise.
24875         (vsx_nand<mode>3_32bit): Likewise.
24876         (vsx_nand<mode>3_64bit): Likewise.
24877         (vsx_orc<mode>3_32bit): Likewise.
24878         (vsx_orc<mode>3_64bit): Likewise.
24880         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24882         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24883         instruction.
24884         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24885         (p8_vmrgow): Likewise.
24886         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24887         GPRs to be split under VSX.
24888         (p8v_clz<mode>2): Add power8 count leading zero support.
24889         (p8v_popcount<mode>2): Add power8 population count support.
24890         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24891         support.
24893         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24894         instruction.
24896         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24897         builtin functions.
24898         (vec_nand): Likewise.
24899         (vec_vclz): Likewise.
24900         (vec_vclzb): Likewise.
24901         (vec_vclzd): Likewise.
24902         (vec_vclzh): Likewise.
24903         (vec_vclzw): Likewise.
24904         (vec_vgbbd): Likewise.
24905         (vec_vmrgew): Likewise.
24906         (vec_vmrgow): Likewise.
24907         (vec_vpopcnt): Likewise.
24908         (vec_vpopcntb): Likewise.
24909         (vec_vpopcntd): Likewise.
24910         (vec_vpopcnth): Likewise.
24911         (vec_vpopcntw): Likewise.
24913 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24915         PR rtl-optimization/57468
24916         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24917         spilled pseudos.
24919 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24921         PR rtl-optimization/57459
24922         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24923         type when setting live regs.
24925 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24927         * config/s390/s390.opt (mlra): New option.
24928         * config/s390/s390.c (s390_decompose_address): Check displacement
24929         for all registers for LRA.
24930         (s390_secondary_reload): Don't used secondary reloads for LRA.
24931         (s390_lra_p): New function.
24932         (TARGET_LRA_P): Define.
24933         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24934         of attribute cpu_facility to zarch for the last alternative.
24935         (*cmpmem_short): Ditto.
24937 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24939         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24940         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
24941         (arm_expand_prologue): Likewise.
24943 2013-06-06  Teresa Johnson  <tejohnson@google.com>
24945         PR c++/53743
24946         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24947         as this is now done by redirect_edge_and_branch_force.
24948         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24949         barriers, and fix interaction with splitting.
24950         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24951         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24952         reflect changes made in the routine.
24953         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24954         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24955         since this is called in cfglayout mode, and replace partition fixup
24956         with assert as that is now done by force_nonfallthru_and_redirect.
24957         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24958         already be marked with region crossing note.
24959         (insert_section_boundary_note): Make non-static, gate on flag
24960         has_bb_partition, rewrite to also check for multiple partitions.
24961         (rest_of_handle_reorder_blocks): Remove call to
24962         insert_section_boundary_note, now done later during free_cfg.
24963         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24964         * bb-reorder.h (insert_section_boundary_note): Declare.
24965         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24966         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24967         invoke insert_section_boundary_note.
24968         (try_redirect_by_replacing_jump): Remove unnecessary
24969         check for region crossing note.
24970         (fixup_partition_crossing): New function.
24971         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24972         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24973         in non-cfglayout mode.
24974         (force_nonfallthru_and_redirect): Fixup partition boundaries,
24975         remove old code that tried to do this. Emit barrier correctly
24976         when we are in cfglayout mode.
24977         (last_bb_in_partition): New function.
24978         (rtl_split_edge): Correctly fixup partition boundaries.
24979         (commit_one_edge_insertion): Remove old code that tried to
24980         fixup region crossing edge since this is now handled in
24981         split_block, and set up insertion point correctly since
24982         block may now end in a jump.
24983         (verify_hot_cold_block_grouping): Guard against checking when not in
24984         linearized RTL mode.
24985         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24986         notes.
24987         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24988         rtl_verify_flow_info, so not called in cfglayout mode.
24989         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24990         (fixup_reorder_chain): Remove old code that attempted to fixup region
24991         crossing note as this is now handled in force_nonfallthru_and_redirect.
24992         (duplicate_insn_chain): Don't duplicate switch section notes.
24993         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24994         note.
24995         * basic-block.h (emit_barrier_after_bb): Declare.
24997 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24999         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
25000         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
25001         arm_usatsihi): Adjust alternatives for arm_restrict_it.
25003 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25005         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
25006         where appropriate.
25007         * config/arm/ldmstm.md: Regenerate.
25009 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25011         * config/arm/sync.md (atomic_loaddi_1):
25012         Disable predication for arm_restrict_it.
25013         (arm_load_exclusive<mode>): Likewise.
25014         (arm_load_exclusivesi): Likewise.
25015         (arm_load_exclusivedi): Likewise.
25016         (arm_load_acquire_exclusive<mode>): Likewise.
25017         (arm_load_acquire_exclusivesi): Likewise.
25018         (arm_load_acquire_exclusivedi): Likewise.
25019         (arm_store_exclusive<mode>): Likewise.
25020         (arm_store_exclusive<mode>): Likewise.
25021         (arm_store_release_exclusivedi): Likewise.
25022         (arm_store_release_exclusive<mode>): Likewise.
25024 2013-06-06  Richard Biener  <rguenther@suse.de>
25026         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
25027         after LTO_null.
25028         (lto_tag_is_tree_code_p): Adjust.
25029         (lto_tag_is_gimple_code_p): Likewise.
25030         (lto_gimple_code_to_tag): Likewise.
25031         (lto_tag_to_gimple_code): Likewise.
25032         (lto_tree_code_to_tag): Likewise.
25033         (lto_tag_to_tree_code): Likewise.
25034         * data-streamer.h (streamer_write_hwi_in_range): Use
25035         uhwi streaming to stream the normalized range.
25036         (streamer_read_hwi_in_range): Likewise.
25038 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25040         * config/arm/arm.md (enabled_for_depr_it): New attribute.
25041         (predicable_short_it): Likewise.
25042         (predicated): Likewise.
25043         (enabled): Handle above.
25044         (define_cond_exec): Set predicated attribute to yes.
25046 2013-06-05  Mike Stump  <mikestump@comcast.net>
25048         * gdbinit.in (__FUNCTION__): Add.
25050 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
25052         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
25053         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
25055 2013-06-05  Jan Hubicka  <jh@suse.cz>
25057         * varasm.c (mark_decl_referenced): Revert the removal until targets
25058         are fixed.
25060 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
25062         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
25063         instead of mark_decl_referenced.
25065 2013-06-05  Jan Hubicka  <jh@suse.cz>
25067         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
25068         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
25069         and symtab_used_from_object_file_p.
25070         (cgraph_make_node_local_1): Clear forced_by_abi.
25071         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
25072         * cgraph.h (symtab_node_base): Add forced_by_abi.
25073         (decide_is_variable_needed): Remove.
25074         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
25075         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
25076         (decide_is_symbol_needed): ... this one; handle symbols in general;
25077         always analyze virtuals; honnor forced_by_abi.
25078         (cgraph_finalize_function): Update.
25079         (varpool_finalize_decl): Update.
25080         (symbol_defined_and_needed): Remove.
25081         (analyze_functions): Update.
25082         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25083         output_refs, input_overwrite_node): Handle forced_by_abi.
25084         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
25085         (address_taken_from_non_vtable_p): ... this one.
25086         (comdat_can_be_unshared_p_1): New function.
25087         (cgraph_comdat_can_be_unshared_p): Rename to ...
25088         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
25089         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
25090         (function_and_variable_visibility): Clear forced_by_abi as needed.
25091         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
25092         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
25093         * symtab.c (dump_symtab_base): Dump forced_by_abi.
25094         * varpool.c (decide_is_variable_needed): Remove.
25096 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25098         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
25099         (arm_option_override): Override arm_restrict_it where appropriate.
25100         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
25101         * config/arm/arm.opt (mrestrict-it): New command-line option.
25102         * doc/invoke.texi: Document -mrestrict-it.
25104 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
25106         * tsan.c (tsan_atomic_table): Make const.
25108 2013-06-05  Richard Biener  <rguenther@suse.de>
25110         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
25111         index associated with the tree we are supposed to replace.
25112         * tree-streamer-out.c (pack_ts_base_value_fields): Output
25113         TREE_ASM_WRITTEN as zero for everything but SSA names.
25115 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
25117         * tree-ssa-structalias.c (call_stmt_vars): Make static.
25119 2013-06-04  Jan Hubicka  <jh@suse.cz>
25121         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
25122         (input_node, input_varpool_node): Handle correctly external same
25123         body aliases.
25124         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
25125         nodes at ltrans stage.
25127 2013-06-04  Jan Hubicka  <jh@suse.cz>
25129         * ipa-inline.c (update_caller_keys): Fix availability test.
25130         (update_callee_keys): Likewise.
25131         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
25132         to follow ELF standard.
25134 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
25136         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
25137         (mips64r5900el-*-elf*): New configurations.
25138         * config/mips/mips-cpus.def (r5900): New processor.
25139         * config/mips/mips-tables.opt: Regenerate.
25140         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
25141         (mips_issue_rate): Handle PROCESSOR_R5900.
25142         (mips_reorg_process_insns): Force reorder mode for the R5900.
25143         * config/mips/mips.h (TARGET_MIPS5900): Define.
25144         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
25145         TARGET_MIPS5900.
25146         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
25147         TARGET_MIPS5900.
25148         * config/mips/mips.md (processor): Add r5900.
25149         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
25151 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25153         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
25154         into function to generate MOVI instruction.
25155         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
25156         (aarch64_preferred_simd_mode): Turn into wrapper.
25157         (aarch64_output_scalar_simd_mov_immediate): New function.
25158         * config/aarch64/aarch64-protos.h: Add prototype for above.
25160 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25162         * config/aarch64/aarch64.c (simd_immediate_info): Remove
25163         element_char member.
25164         (sizetochar): Return signed char.
25165         (aarch64_simd_valid_immediate): Remove elchar and other
25166         unnecessary variables.
25167         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
25168         Calculate element_char as required.
25169         * config/aarch64/aarch64-protos.h: Update and move prototype
25170         for aarch64_output_simd_mov_immediate.
25171         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
25172         Update arguments.
25174 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25176         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
25177         information completed by aarch64_simd_valid_immediate.
25178         (aarch64_legitimate_constant_p): Update arguments.
25179         (aarch64_simd_valid_immediate): Work with struct rather than many
25180         pointers.
25181         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
25182         (aarch64_simd_make_constant): Update arguments.
25183         (aarch64_output_simd_mov_immediate): Work with struct rather than
25184         many pointers.  Output immediate directly rather than as operand.
25185         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25186         Update prototype.
25187         * config/aarch64/constraints.md (Dn): Update arguments.
25189 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25191         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
25192         longer static.
25193         (aarch64_simd_immediate_valid_for_move): Remove.
25194         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
25195         (aarch64_simd_make_constant): Update call.
25196         (aarch64_output_simd_mov_immediate): Update call.
25197         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25198         Add prototype.
25199         * config/aarch64/constraints.md (Dn): Update call.
25201 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25203         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
25204         return type to bool for prototype.
25205         (aarch64_legitimate_constant_p): Check for true instead of not -1.
25206         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
25207         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
25209 2013-06-04  Catherine Moore  <clm@codesourcery.com>
25211         * config/mips/mips.opt (meva): New.
25212         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
25213         (ASM_SPEC): Handle -meva.
25214         * doc/invoke.texi (meva):  Document.
25216 2013-06-04  Alan Modra  <amodra@gmail.com>
25218         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
25219         constant output.
25221 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25223         * rtl.def: Add extra fourth optional field to define_cond_exec.
25224         * gensupport.c (process_one_cond_exec): Process attributes from
25225         define_cond_exec.
25226         * doc/md.texi: Document fourth field in define_cond_exec.
25228 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
25230         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
25231         out the processing order as in store_bit_field_1.
25233 2013-06-04  Jan Hubicka  <jh@suse.cz>
25235         PR middle-end/57500
25236         * cgraphunit.c (cgraph_process_same_body_aliases): Create
25237         non-VAR_DECL node if it does not exist yet.
25239 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
25241         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
25242         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
25243         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
25244         target_cpu_default setting.
25246 2013-06-03  Teresa Johnson  <tejohnson@google.com>
25248         * dumpfile.c (opt_info_switch_p): Change -fopt-info
25249         default to -fopt-info=optimized instead of all.
25250         * doc/invoke.texi: Ditto.
25251         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
25252         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
25253         (execute_vect_slp): Emit BB vectorization success under
25254         MSG_OPTIMIZED_LOCATIONS.
25255         * tree-vect-slp.c (vect_slp_transform_bb): Change
25256         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25257         * tree-vect-loop.c (vect_transform_loop): Ditto.
25259 2013-06-03  Jason Merrill  <jason@redhat.com>
25261         PR c++/57415
25262         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25263         Use TARGET_EXPR for C++.
25265 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
25267         PR rtl-optimization/57268
25268         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25269         if DEBUG_INSN_P (insn).
25271         Reapply
25272         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
25274         PR rtl-optimization/57268
25275         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25276         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25278 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25280         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25281         (ix86_avoid_lea_for_addr): Likewise.
25282         (exact_dependency_1): Likewise.
25283         (ix86_adjust_cost): Likewise.
25284         (swap_top_of_ready_list): Fix formatting and !reload_completed check
25285         removed.
25286         (do_reorder_for_imul): Fix typo, formatting and
25287         !reload_completed check removed.
25288         (ix86_sched_reorder): Fix typo and formatting.
25289         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25290         list.
25292 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
25294         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25296 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
25298         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25299         <STRING_CST>: Likewise.
25300         <VECTOR_CST>: Likewise.
25302 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
25303             Mikael Morin  <mikael@gcc.gnu.org>
25305         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25306         * config.in: Regenerated.
25307         * configure: Regenerated.
25309 2013-06-01  Jan Hubicka  <jh@suse.cz>
25311         PR middle-end/57366
25312         * cgraphunit.c (compile): When weakref is not supported,
25313         set up transparent aliases before final output pass.
25314         * varasm.c (assemble_alias): Do not try to do it here.
25316 2013-06-01  Jan Hubicka  <jh@suse.cz>
25318         PR middle-end/57467
25319         * passes.c (for_per_function): Skip unanalyzed functions.
25321 2013-06-01  Jan Hubicka  <jh@suse.cz>
25323         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25324         (lto_symtab_merge_symbols_1): ... this one.
25325         (lto_symtab_merge_cgraph_nodes): Rename to ...
25326         (lto_symtab_merge_symbols): ... this one; simplify.
25327         * cgraph.c (same_body_aliases_done): Rename to ...
25328         (cpp_implicit_aliases_done): ... this one.
25329         (cgraph_create_function_alias): Update.
25330         (cgraph_same_body_alias): Update.
25331         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25332         (verify_edge_corresponds_to_fndecl): Simplify.
25333         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25334         (cgraph_node): Remove same_body_alias.
25335         (varpool_node): Remove alias_of and extra_name_alias.
25336         (same_body_aliases_done): Rename to ..
25337         (cpp_implicit_aliases_done): ... this one.
25338         (symtab_alias_ultimate_target): Add default parameter.
25339         (symtab_resolve_alias): New function.
25340         (fixup_same_cpp_alias_visibility): Declare.
25341         (cgraph_function_node): Add default parameter.
25342         (cgraph_node_asm_name): Likewise.
25343         (cgraph_function_or_thunk_node): Add default parameter; do
25344         not ICE when it is NULL.
25345         (varpool_variable_node): Likewise.
25346         * tree-emutls.c (create_emultls_var): Update.
25347         (ipa_lower_emutls): Update.
25348         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25349         (cgraph_reset_node): Reset alias info.
25350         (cgraph_finalize_function): Update.
25351         (fixup_same_cpp_alias_visibility): Move to symtab.c.
25352         (analyze_function): Simplify.
25353         (cgraph_process_same_body_aliases): Simplify.
25354         (analyze_functions): Fixup same body aliases.
25355         (handle_alias_pairs): Simplify.
25356         (assemble_thunk): Update.
25357         (assemble_thunks_and_aliases): Update.
25358         (output_weakrefs): Rewrite.
25359         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25360         (lto_output_varpool_node): Likewise.
25361         (compute_ltrans_boundary): Remve assert.
25362         (get_alias_symbol): New functoin.
25363         (input_node): Rewrite alias handling.
25364         (input_varpool_node): Likewise.
25365         * ipa-pure-const.c (propagate_pure_const): Fix formating.
25366         * ipa.c (process_references): Handle weakrefs correctly.
25367         (symtab_remove_unreachable_nodes): Likewise.
25368         * trans-mem.c (get_cg_data): Update.
25369         (ipa_tm_create_version_alias): Update.
25370         (ipa_tm_execute): Update.
25371         * symtab.c (dump_symtab_base): Dump aliases.
25372         (verify_symtab_base): Verify aliases.
25373         (symtab_node_availability): New function.
25374         (symtab_alias_ultimate_target): Simplify.
25375         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25376         handle all the fixup cases.
25377         (symtab_resolve_alias): New function.
25378         * passes.c (ipa_write_summaries): Handle weakrefs.
25379         * varpool.c (varpool_analyze_node): Simplify.
25380         (assemble_aliases): Update.
25381         (varpool_create_variable_alias): Simplify.
25382         (varpool_extra_name_alias): Simplify.
25383         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25384         (lto_symtab_merge_symbols): ... this one.
25386 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
25388         Revert
25389         PR rtl-optimization/57268
25390         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25391         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25393 2013-06-01  Tobias Burnus  <burnus@net-b.de>
25395         Partially reverted:
25396         2013-05-31  Tobias Burnus  <burnus@net-b.de>
25398         PR middle-end/57073
25399         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25400         further up.
25402 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
25404         PR rtl-optimization/57268
25405         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25406         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25408 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25410         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25411         unordered comparison operators when -fno-trapping-math is in effect
25412         on the e500.
25413         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25414         and implement unordered comparison operators properly on the e500.
25416 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25418         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25419         for constant scalar integers.
25420         (simplify_relational_operation_1): Likewise.
25422 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
25424         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25425         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
25426         Fix comment.
25428 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25429             Igor Zamyatin  <igor.zamyatin@intel.com>
25431         Silvermont (SLM) architecture performance tuning.
25432         * config/i386/i386.h (enum ix86_tune_indices): Add
25433         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25434         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25436         * config/i386/i386.c (initial_ix86_tune_features)
25437         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25438         (ix86_lea_outperforms): Handle Silvermont tuning.
25439         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25440         call.
25441         (ix86_use_lea_for_mov): Likewise.
25442         (ix86_avoid_lea_for_addr): Likewise.
25443         (ix86_lea_for_add_ok): Likewise.
25444         (exact_dependency_1): New function.
25445         (exact_store_load_dependency): Likewise.
25446         (ix86_adjust_cost): Handle Silvermont tuning.
25447         (do_reoder_for_imul): Likewise.
25448         (swap_top_of_ready_list): New function.
25449         (ix86_sched_reorder): Changed to handle Silvermont tuning.
25451         * config/i386/i386.md (peepholes that split memory operand in fp
25452         converts): New.
25454 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25456         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25457         Remove un-necessary braces.
25459 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25461         * config/aarch64/aarch64.c (aarch64_classify_symbol):
25462         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25464 2013-05-31  Tobias Burnus  <burnus@net-b.de>
25466         PR middle-end/57073
25467         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25469 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25471         PR target/56315
25472         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25473         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25474         * config/arm/neon.md (iordi3_neon): Remove.
25475         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25476         * config/arm/predicates.md (imm_for_neon_logic_operand):
25477         Move to earlier in the file.
25478         (neon_logic_op2): Likewise.
25479         (arm_iordi_operand_neon): New predicate.
25481 2013-05-31  Richard Biener  <rguenther@suse.de>
25483         PR tree-optimization/57478
25484         PR tree-optimization/57453
25485         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25486         are life as well.
25488 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25490         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25491         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25493 2013-05-30  Tobias Burnus  <burnus@net-b.de>
25494             Thomas Koenig  <tkoenig@gcc.gnu.org>
25496         PR middle-end/57073
25497         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25498         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25500 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
25502         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25504 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
25506         * target.def (register_usage_leveling_p): New hook.
25507         * targhooks.c (default_register_usage_leveling_p): New.
25508         * targhooks.h (default_register_usage_leveling_p): New prototype.
25509         * lra-assigns.c (register_usage_leveling_p): Use the hook.
25510         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25511         * doc/tm.texi: Update.
25512         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25514 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
25516         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25517         (*insv_reg<mode>): New define_insn.
25519 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
25521         PR rtl-optimization/57439
25522         * postreload.c (move2add_valid_value_p): Check that we have
25523         a zero subreg_regno_offset when accessing the register in
25524         the requested mode.
25526 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25527             Igor Zamyatin  <igor.zamyatin@intel.com>
25529         Silvermont (SLM) architecture pipeline model, tuning and
25530         insn selection.
25531         * config.gcc: Add slm config options and target.
25533         * config/i386/slm.md: New.
25535         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25537         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
25538         PROCESSOR_SLM.
25539         (ix86_target_macros_internal): Likewise.
25541         * config/i386/i386.c (slm_cost): New cost.
25542         (m_SLM): New macro flag.
25543         (initial_ix86_tune_features): Set m_SLM.
25544         (x86_accumulate_outgoing_args): Likewise.
25545         (x86_arch_always_fancy_math_387): Likewise.
25546         (processor_target_table): Add slm cost.
25547         (cpu_names): Add slm cpu name.
25548         (x86_option_override_internal): Set SLM ISA.
25549         (ix86_issue_rate): New case PROCESSOR_SLM.
25550         (ia32_multipass_dfa_lookahead): Likewise.
25551         (fold_builtin_cpu): Add slm.
25553         * config/i386/i386.h (TARGET_SLM): New target macro.
25554         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25555         (processor_type): Add PROCESSOR_SLM.
25557         * config/i386/i386.md (cpu): Add new value "slm".
25558         (slm.md): Include slm.md.
25560 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
25561             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25563         * config/arm/arm-protos.h: Add and update function protos.
25564         * config/arm/arm.c (use_simple_return_p): New added.
25565         (thumb2_expand_return): Check simple_return flag.
25566         * config/arm/arm.md: Add simple_return and conditional simple_return.
25567         * config/arm/iterators.md: Add iterator for return and simple_return.
25569 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25571         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25572         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25573         (arm_emit_vfp_multi_reg_pop): Likewise.
25574         (thumb2_emit_ldrd_pop): Likewise.
25575         (arm_expand_epilogue): Add misc REG_CFA notes.
25576         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25578 2013-05-29  Lawrence Crowl  <crowl@google.com>
25580         * config/arm/t-arm: Update for below.
25582         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25583         Change type to hash_table.  Update dependent calls and types.
25585         * config/i386/t-cygming: Update for below.
25587         * config/i386/t-interix: Update for below.
25589         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25590         Change type to hash_table.  Update dependent calls and types.
25591         (i386_find_on_wrapper_list::wrappers): Likewise.
25593         * config/ia64/t-ia64: Update for below.
25595         * config/ia64/ia64.c (bundle_state_table):
25596         Change type to hash_table.  Update dependent calls and types.
25598         * config/mips/mips.c (mips_reorg_process_insns::htab):
25599         Change type to hash_table.  Update dependent calls and types.
25601         * config/sol2.c (solaris_comdat_htab):
25602         Change type to hash_table.  Update dependent calls and types.
25604         * config/t-sol2: Update for above.
25606 2013-05-29  Teresa Johnson  <tejohnson@google.com>
25608         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25609         functions are not yet marked as defined.
25611 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
25612             Pat Haugen  <pthaugen@us.ibm.com>
25613             Peter Bergner  <bergner@vnet.ibm.com>
25615         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25616         instructions.
25617         (VEC_A): Likewise.
25618         (VEC_C): Likewise.
25619         (vrotl<mode>3): Likewise.
25620         (vashl<mode>3): Likewise.
25621         (vlshr<mode>3): Likewise.
25622         (vashr<mode>3): Likewise.
25624         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25625         support for power8 V2DI builtins.
25627         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25628         power8 V2DI builtins.
25629         (vupkhsw): Likewise.
25630         (vupklsw): Likewise.
25631         (vaddudm): Likewise.
25632         (vminsd): Likewise.
25633         (vmaxsd): Likewise.
25634         (vminud): Likewise.
25635         (vmaxud): Likewise.
25636         (vpkudum): Likewise.
25637         (vpksdss): Likewise.
25638         (vpkudus): Likewise.
25639         (vpksdus): Likewise.
25640         (vrld): Likewise.
25641         (vsld): Likewise.
25642         (vsrd): Likewise.
25643         (vsrad): Likewise.
25644         (vsubudm): Likewise.
25645         (vcmpequd): Likewise.
25646         (vcmpgtsd): Likewise.
25647         (vcmpgtud): Likewise.
25648         (vcmpequd_p): Likewise.
25649         (vcmpgtsd_p): Likewise.
25650         (vcmpgtud_p): Likewise.
25651         (vupkhsw): Likewise.
25652         (vupklsw): Likewise.
25653         (vaddudm): Likewise.
25654         (vmaxsd): Likewise.
25655         (vmaxud): Likewise.
25656         (vminsd): Likewise.
25657         (vminud): Likewise.
25658         (vpksdss): Likewise.
25659         (vpksdus): Likewise.
25660         (vpkudum): Likewise.
25661         (vpkudus): Likewise.
25662         (vrld): Likewise.
25663         (vsld): Likewise.
25664         (vsrad): Likewise.
25665         (vsrd): Likewise.
25666         (vsubudm): Likewise.
25668         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25669         support for power8 V2DI instructions.
25671         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25672         power8 V2DI instructions.  Combine pack and unpack insns to use an
25673         iterator for each mode.  Check whether a particular mode supports
25674         Altivec instructions instead of just checking TARGET_ALTIVEC.
25675         (UNSPEC_VPKUWUM): Likewise.
25676         (UNSPEC_VPKSHSS): Likewise.
25677         (UNSPEC_VPKSWSS): Likewise.
25678         (UNSPEC_VPKUHUS): Likewise.
25679         (UNSPEC_VPKSHUS): Likewise.
25680         (UNSPEC_VPKUWUS): Likewise.
25681         (UNSPEC_VPKSWUS): Likewise.
25682         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25683         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25684         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25685         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25686         (UNSPEC_VUPKHSB): Likewise.
25687         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25688         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25689         (UNSPEC_VUPKHSH): Likewise.
25690         (UNSPEC_VUPKLSB): Likewise.
25691         (UNSPEC_VUPKLSH): Likewise.
25692         (VI2): Likewise.
25693         (VI_char): Likewise.
25694         (VI_scalar): Likewise.
25695         (VI_unit): Likewise.
25696         (VP): Likewise.
25697         (VP_small): Likewise.
25698         (VP_small_lc): Likewise.
25699         (VU_char): Likewise.
25700         (add<mode>3): Likewise.
25701         (altivec_vaddcuw): Likewise.
25702         (altivec_vaddu<VI_char>s): Likewise.
25703         (altivec_vadds<VI_char>s): Likewise.
25704         (sub<mode>3): Likewise.
25705         (altivec_vsubcuw): Likewise.
25706         (altivec_vsubu<VI_char>s): Likewise.
25707         (altivec_vsubs<VI_char>s): Likewise.
25708         (altivec_vavgs<VI_char>): Likewise.
25709         (altivec_vcmpbfp): Likewise.
25710         (altivec_eq<mode>): Likewise.
25711         (altivec_gt<mode>): Likewise.
25712         (altivec_gtu<mode>): Likewise.
25713         (umax<mode>3): Likewise.
25714         (smax<mode>3): Likewise.
25715         (umin<mode>3): Likewise.
25716         (smin<mode>3): Likewise.
25717         (altivec_vpkuhum): Likewise.
25718         (altivec_vpkuwum): Likewise.
25719         (altivec_vpkshss): Likewise.
25720         (altivec_vpkswss): Likewise.
25721         (altivec_vpkuhus): Likewise.
25722         (altivec_vpkshus): Likewise.
25723         (altivec_vpkuwus): Likewise.
25724         (altivec_vpkswus): Likewise.
25725         (altivec_vpks<VI_char>ss): Likewise.
25726         (altivec_vpks<VI_char>us): Likewise.
25727         (altivec_vpku<VI_char>us): Likewise.
25728         (altivec_vpku<VI_char>um): Likewise.
25729         (altivec_vrl<VI_char>): Likewise.
25730         (altivec_vsl<VI_char>): Likewise.
25731         (altivec_vsr<VI_char>): Likewise.
25732         (altivec_vsra<VI_char>): Likewise.
25733         (altivec_vsldoi_<mode>): Likewise.
25734         (altivec_vupkhsb): Likewise.
25735         (altivec_vupkhs<VU_char>): Likewise.
25736         (altivec_vupkls<VU_char>): Likewise.
25737         (altivec_vupkhsh): Likewise.
25738         (altivec_vupklsb): Likewise.
25739         (altivec_vupklsh): Likewise.
25740         (altivec_vcmpequ<VI_char>_p): Likewise.
25741         (altivec_vcmpgts<VI_char>_p): Likewise.
25742         (altivec_vcmpgtu<VI_char>_p): Likewise.
25743         (abs<mode>2): Likewise.
25744         (vec_unpacks_hi_v16qi): Likewise.
25745         (vec_unpacks_hi_v8hi): Likewise.
25746         (vec_unpacks_lo_v16qi): Likewise.
25747         (vec_unpacks_hi_<VP_small_lc>): Likewise.
25748         (vec_unpacks_lo_v8hi): Likewise.
25749         (vec_unpacks_lo_<VP_small_lc>): Likewise.
25750         (vec_pack_trunc_v8h): Likewise.
25751         (vec_pack_trunc_v4si): Likewise.
25752         (vec_pack_trunc_<mode>): Likewise.
25754         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25755         V2DI builtins.
25756         (vec_vmaxsd): Likewise.
25757         (vec_vmaxud): Likewise.
25758         (vec_vminsd): Likewise.
25759         (vec_vminud): Likewise.
25760         (vec_vpksdss): Likewise.
25761         (vec_vpksdus): Likewise.
25762         (vec_vpkudum): Likewise.
25763         (vec_vpkudus): Likewise.
25764         (vec_vrld): Likewise.
25765         (vec_vsld): Likewise.
25766         (vec_vsrad): Likewise.
25767         (vec_vsrd): Likewise.
25768         (vec_vsubudm): Likewise.
25769         (vec_vupkhsw): Likewise.
25770         (vec_vupklsw): Likewise.
25772 2013-05-29  Jan Hubicka  <jh@suse.cz>
25774         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25775         flags; reorder rest of fields in more consistent way.
25776         (varpool_node): Remove analyzed, finalized and alias.
25777         (cgraph_ndoe): Likewise.
25778         (symtab_alias_ultimate_target): New function.
25779         (cgraph_function_node): Move offline.
25780         (cgraph_reset_node): Declare.
25781         (cgraph_comdat_can_be_unshared_p): Remove.
25782         (varpool_remove_initializer): Declare.
25783         (varpool_first_defined_variable, varpool_next_defined_variable
25784         cgraph_first_defined_function, cgraph_next_defined_function): Update.
25785         (cgraph_function_with_gimple_body_p): Update.
25786         (varpool_all_refs_explicit_p): Update.
25787         (symtab_alias_target): New function.
25788         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25789         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25790         (cgraph_function_or_thunk_node): Simplify using
25791         symtab_alias_ultimate_target.
25792         (varpool_variable_node): Likewise.
25793         * cgraph.c (cgraph_create_function_alias): Update.
25794         (cgraph_add_thunk): Update.
25795         (cgraph_remove_node): Update.
25796         (dump_cgraph_node): Do not dump removed flags.
25797         (cgraph_function_body_availability): Update.
25798         (cgraph_propagate_frequency): Update.
25799         (verify_cgraph_node): Check sanity of local flag.
25800         (cgraph_function_node): Move here from cgraph.h; revamp for
25801         cgraph_function_or_thunk_node.
25802         * lto-symtab.c (lto_varpool_replace_node): Update.
25803         (lto_symtab_resolve_can_prevail_p): Update.
25804         (lto_symtab_merge_cgraph_nodes): Update.
25805         * ipa-cp.c (determine_versionability, initialize_node_lattices,
25806         propagate_constants_accross_call, devirtualization_time_bonus,
25807         ipcp_propagate_stage): Update.
25808         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25809         * ipa-inline-transform.c (clone_inlined_nodes,
25810         preserve_function_body_p): Update.
25811         * ipa-reference.c (propagate): Update.
25812         (write_node_summary_p): Update.
25813         * toplev.c (wrapup_global_declaration_2): Update.
25814         * cgraphunit.c (cgraph_analyze_function): Rename to ...
25815         (analyze_function) ... this one.
25816         (cgraph_process_new_functions): Update.
25817         (cgraph_reset_node): Export.
25818         (cgraph_finalize_function): Update.
25819         (cgraph_add_new_function): Update.
25820         (process_function_and_variable_attributes): Update.
25821         (varpool_finalize_decl): Update.
25822         (symbol_finalized): Remove.
25823         (symbol_finalized_and_needed): Rename to ...
25824         (symbol_defined_and_needed): ... update.
25825         (cgraph_analyze_functions): Update.
25826         (handle_alias_pairs): Update.
25827         (mark_functions_to_output): Update.
25828         (assemble_thunk): Update.
25829         (output_in_order): Update.
25830         (output_weakrefs): Update.
25831         (finalize_compilation_unit): Update.
25832         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25833         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25834         input_node, input_varpool_node): Update.
25835         * dbxout.c (dbxout_expand_expr): Update.
25836         * cgraphclones.c (cgraph_clone_node): Update.
25837         (cgraph_copy_node_for_versioning): Update.
25838         (cgraph_materialize_clone): Update.
25839         (cgraph_materialize_all_clones): Update.
25840         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25841         propagate_pure_const, propagate_nothrow): Update.
25842         * lto-streamer-out.c (lto_output, write_symbol): Update.
25843         * ipa-utils.c (ipa_reverse_postorder): Update.
25844         * ipa-inline.c (can_inline_edge_p): Update.
25845         (update_caller_keys, ipa_inline): Update.
25846         * dwarf2out.c (reference_to_unused,
25847         premark_types_used_by_global_vars_helper): Update.
25848         * tree-eh.c (tree_could_trap_p): Update.
25849         * ipa-split.c (consider_split, execute_split_functions): Update.
25850         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25851         has_addr_references_p): Update; move ahead in file for better
25852         readability.
25853         (process_references): Simplify.
25854         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25855         bodies are removed.
25856         (cgraph_comdat_can_be_unshared_p): Make static.
25857         (cgraph_externally_visible_p): Update.
25858         (varpool_externally_visible_p): Update.
25859         (function_and_variable_visibility): Update.
25860         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25861         ipa_tm_mark_force_output_node): Update.
25862         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25863         estimate_edge_devirt_benefit, inline_generate_summary,
25864         inline_write_summary): Update.
25865         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25866         * ipa-prop.c (ipa_compute_jump_functions): Update.
25867         (ipa_print_node_params, ipa_prop_read_section,
25868         ipa_update_after_lto_read, read_replacements_section): Update.
25869         * varasm.c (mark_decl_referenced): Update.
25870         (assemble_alias, dump_tm_clone_pairs): Update.
25871         * tree-inline.c (copy_bb): Update.
25872         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25873         Update.
25874         * symtab.c (dump_symtab_base): Print new flags.
25875         (verify_symtab_base): Verify new flags.
25876         (symtab_alias_ultimate_target): New function.
25877         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25878         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25879         Update.
25880         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25881         Update.
25882         * i386.c (ix86_get_function_versions_dispatcher,
25883         ix86_generate_version_dispatcher_body): Update.
25884         (fold_builtin_cpu): Use varpool_add_new_variable.
25885         * varpool.c (varpool_remove_initializer): Break out from ...
25886         (varpool_remove_node): ... this one.
25887         (dump_varpool_node, varpool_node_for_asm,
25888         cgraph_variable_initializer_availability, varpool_analyze_node,
25889         varpool_assemble_decl, varpool_remove_unreferenced_decls,
25890         varpool_finalize_named_section_flags, varpool_create_variable_alias):
25891         Update.
25893 2013-05-29  Jan Hubicka  <jh@suse.cz>
25895         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25897 2013-05-29  Easwaran Raman  <eraman@google.com>
25899         PR tree-optimization/57442
25900         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25901         when control exits the main loop.
25903 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
25905         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25906         and RX600.
25907         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25908         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25909         * rx/t-rx: Add rx100 under multi library matches option for nofpu
25910         option.
25912 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25914         PR tree-optimization/57441
25915         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25916         Don't limit size of incr_vec to number of candidates.
25918 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
25920         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25921         and mips16 directories.
25922         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25923         (MULTILIB_DIRNAMES): Ditto.
25924         (MULTILIB_EXCEPTIONS): Add new exceptions.
25925         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25926         (MULTILIB_DIRNAMES): Ditto.
25927         (MULTILIB_EXCEPTIONS): Add new exceptions.
25929 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25930             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25932         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25933         SYMBOL_TINY_ABSOLUTE.
25934         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25935         SYMBOL_TINY_ABSOLUTE.
25936         (aarch64_expand_mov_immediate): Likewise.
25937         (aarch64_classify_symbol): Likewise.
25938         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25939         Permit SYMBOL_TINY_ABSOLUTE.
25940         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25942 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25943             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25945         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25946         Refactor if/switch.  Replace gcc_assert with if.
25948 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25950         * config/i386/i386.c (initial_ix86_tune_features): Enable
25951         FP Reassociation for AMD bdver1 and bdver2.
25953 2013-05-29  Martin Jambor  <mjambor@suse.cz>
25955         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25956         and IMAGPART_EXPR do not occur within other handled_components.
25958 2013-05-29  Richard Biener  <rguenther@suse.de>
25960         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25961         access on whether the use is in the BB we currently try to
25962         vectorize.
25963         (vect_bb_vectorization_profitable_p): Pass the BB we currently
25964         vectorize to vect_bb_slp_scalar_cost.
25966 2013-05-29  Richard Biener  <rguenther@suse.de>
25968         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25969         computing scalar cost offsetted by stmts that are kept live
25970         by scalar uses.
25971         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25972         for computation of scalar cost.
25974 2013-05-28  Steve Ellcey  <sellcey@mips.com>
25976         * config/mips/mips-cpus.def (mips32r2): Change processor type.
25978 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
25980         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25981         array notation built-in reduction functions.
25982         * doc/passes.texi (Passes): Added documentation about changes done
25983         for Cilk Plus.
25984         * doc/invoke.texi (C Dialect Options): Added documentation about
25985         the -fcilkplus flag.
25986         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25987         (BUILTINS_DEF): Depend on cilkplus.def.
25988         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
25989         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25990         * cilkplus.def: New file.
25992 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
25994         PR rtl-optimization/57439
25995         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25997 2013-05-28  Easwaran Raman  <eraman@google.com>
25999         PR tree-optimization/57337
26000         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
26001         (find_insert_point): Correctly identify the insertion point
26002         when two statements with the same UID is compared.
26004 2013-05-28  Richard Biener  <rguenther@suse.de>
26006         PR tree-optimization/56787
26007         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
26008         from the list of data references.
26009         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
26010         clobbers.
26011         (vect_analyze_loop_operations): Likewise.
26012         (vect_transform_loop): Remove clobbers.
26014 2013-05-28  Martin Jambor  <mjambor@suse.cz>
26016         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
26017         and REALPART_EXPRs have scalar type.
26019 2013-05-28  Richard Biener  <rguenther@suse.de>
26021         PR tree-optimization/57411
26022         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
26023         virtual operands.
26024         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
26025         virtual operand propagation.
26027 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
26029         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
26030         destination register for bmasksi_vis.
26031         (vector_init_bshuffle): Likewise.
26032         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
26034 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
26036         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
26037         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
26038         mode if the instruction isn't available in the original mode.
26039         * config/sparc/sparc.opt (mfix-ut699): New option.
26040         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
26041         (divdf3): Turn into expander.
26042         (divdf3_nofix): New insn.
26043         (divdf3_fix): Likewise.
26044         (divsf3): Disable if -mfix-ut699.
26045         (sqrtdf2): Turn into expander.
26046         (sqrtdf2_nofix): New insn.
26047         (sqrtdf2_fix): Likewise.
26048         (sqrtsf2): Disable if -mfix-ut699.
26050 2013-05-27  Richard Biener  <rguenther@suse.de>
26052         PR middle-end/57412
26053         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
26054         block for the new loop.
26056 2013-05-27  Richard Biener  <rguenther@suse.de>
26058         PR tree-optimization/57343
26059         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
26060         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
26061         (number_of_iterations_cond): Do not build the folded tree.
26063 2013-05-27  Richard Biener  <rguenther@suse.de>
26065         Revert
26066         PR middle-end/57381
26067         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26068         OEP_CONSTANT_ADDRESS_OF retained.
26070         PR tree-optimization/57417
26071         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
26072         for unchanged base.
26073         (set_ssa_val_to): Compare addresses using
26074         get_addr_base_and_unit_offset.
26076 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
26078         PR rtl-optimization/56833
26079         * postreload.c (move2add_record_mode): New function.
26080         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
26081         (move2add_use_add2_insn): Use move2add_record_sym_value.
26082         (move2add_use_add3_insn): Likewise.
26083         (reload_cse_move2add): Use move2add_valid_value_p and
26084         move2add_record_mode.  Invalidate call-clobbered and REG_INC
26085         affected regs by setting reg_mode to VOIDmode.
26086         (move2add_note_store): Don't pretend the inside of a SUBREG is
26087         the actual destination.  Invalidate single/leading registers by
26088         setting reg_mode to VOIDmode.
26089         Use move2add_record_sym_value, move2add_valid_value_p and
26090         move2add_record_mode.
26092 2013-05-27  Richard Biener  <rguenther@suse.de>
26094         PR tree-optimization/57396
26095         * tree-affine.c (double_int_constant_multiple_p): Properly
26096         return false for val == 0 and div != 0.
26098 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
26100         * config/mips/mips.h: Use #elif in preprocessor conditions.
26102 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
26104         PR target/53916
26105         * config/mips/constraints.md (kl): New constraint.
26106         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
26107         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
26108         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
26109         from LO for MIPS16.
26110         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
26112 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
26114         PR target/55777
26115         * config/mips/mips.c (mips_can_inline_p): New function.
26116         (TARGET_CAN_INLINE_P): Define.
26118 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
26120         * sched-int.h (ds_t, dw_t): Make unsigned int.
26121         Fix documentation that describes how all the ds_t bits are used.
26122         Reserve the last bit for delayed-branch scheduling.
26123         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
26124         (BITS_PER_DEP_WEAK): Fix definition and documentation.
26125         (gen_dep_weak_1): Remove prototype.
26126         * sched-deps.c (get_dep_weak_1): Make static.
26127         * target.def (speculate_insn, needs_block_p, gen_spec_check,
26128         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
26129         * doc/tm.texi: Regenerate.
26130         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
26132 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
26134         PR debug/56950
26135         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
26137 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
26138             Sandra Loosemore  <sandra@codesourcery.com>
26140         * config.gcc (powerpc-*): Allow native for with-cpu.
26142 2013-05-24  Jeff Law  <law@redhat.com>
26144         PR tree-optimization/57124
26145         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
26146         conversion feeding a condition if the range has an overflow
26147         if -fstrict-overflow.  Add warnings for when we do make the
26148         transformation.
26150 2013-05-24  Dehao Chen  <dehao@google.com>
26152         * tree-cfg.c (locus_discrim_map): Fix the typo.
26153         (locus_discrim_hasher): Likewise.
26154         (locus_discrim_hasher::hash): Likewise.
26155         (locus_discrim_hasher::equal): Likewise.
26157 2013-05-24  Martin Jambor  <mjambor@suse.cz>
26159         PR tree-optimization/57294
26160         * cgraph.h (ipa_record_stmt_references): Declare.
26161         * cgraphbuild.c (ipa_record_stmt_references): New function.
26162         (build_cgraph_edges): Use ipa_record_stmt_references.
26163         (rebuild_cgraph_edges): Likewise.
26164         (cgraph_rebuild_references): Likewise.
26165         * ipa-prop.c (ipa_modify_call_arguments): Discard references
26166         associated with the old statement and build references from the
26167         newly built statements.
26168         * ipa-ref.c (ipa_remove_stmt_references): New function.
26169         * ipa-ref.h (ipa_remove_stmt_references): Declare.
26171 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
26173         * lra-constraints.c (emit_spill_move): Use smaller mode for
26174         mem-mem moves.
26175         (check_and_process_move): Consider mem-reg moves for secondary
26176         too.
26177         (curr_insn_transform): Don't lose insns emitted before for
26178         secondary memory moves.
26179         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
26180         reg set up in the current insn.
26182 2013-05-24  Dehao Chen  <dehao@google.com>
26184         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
26185         hash function.
26186         (locus_descrim_hasher::equal): Likewise.
26187         (build_gimple_cfg): New discriminator assignment algorithm.
26188         (make_edges): Likewise.
26189         (next_discriminator_for_locus): Likewise.
26190         (same_line_p): Likewise.
26191         (assign_discriminators): Likewise.
26192         (make_cond_expr_edges): Likewise.
26193         (make_gimple_switch_edges): Likewise.
26194         (make_goto_expr_edges): Likewise.
26195         (make_gimple_asm_edges): Likewise.
26197 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
26199         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
26200         X format specifier to only display bottom 16 bits.
26201         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
26202         immediate to match for operand 2, since it will be masked.
26204 2013-05-24  Richard Biener  <rguenther@suse.de>
26206         PR tree-optimization/57287
26207         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
26208         all SSA names that occur in abnormal PHIs.
26210 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26212         PR tree-ssa/57385
26213         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
26214         that index is not negative.
26216 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
26218         PR rtl-optimization/55177
26219         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
26220         (simplify_byte_swapping_operation): New.
26221         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
26222         (simplify_relational_operation_1): Deal with BSWAP.
26224 2013-05-23  Richard Henderson  <rth@redhat.com>
26226         PR target/56742
26227         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
26228         (ix86_reorg): Call it.
26230 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
26232         PR target/57379
26233         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
26234         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
26235         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
26237 2013-05-23  Christian Bruel  <christian.bruel@st.com>
26239         PR debug/57351
26240         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
26242 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
26243             Marcus Shawcroft  <marcus.shawcroft@arm.com>
26245         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
26246         * config/aarch64/constraints.md (Usa): Remove.
26247         * doc/md.texi (AArch64 Usa): Remove.
26249 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
26250             Marcus Shawcroft  <marcus.shawcroft@arm.com>
26252         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
26253         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
26254         * config/aarch64/predicates.md (aarch64_const_address): Remove.
26255         (aarch64_mov_operand): Use aarch64_mov_operand_p.
26257 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
26259         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
26260         instruction (AdvSIMD).
26261         * config/aarch64/aarch64-builtins.c
26262         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
26263         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
26265 2013-05-23  Martin Jambor  <mjambor@suse.cz>
26267         PR middle-end/57347
26268         * tree.h (contains_bitfld_component_ref_p): Declare.
26269         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26270         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
26271         caller.
26272         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26273         not access a bit-field.  Assert all final offsets are byte-aligned.
26275 2013-05-23  Richard Biener  <rguenther@suse.de>
26277         PR tree-optimization/57380
26278         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26279         least one invariant or re-used load.
26280         * passes.c (init_optimization_passes): Move pass_phiprop before
26281         pass_forwprop.
26283 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
26285         * config/aarch64/aarch64-simd.md
26286         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26288 2013-05-23  Richard Biener  <rguenther@suse.de>
26290         PR middle-end/57381
26291         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26292         OEP_CONSTANT_ADDRESS_OF retained.
26294 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
26296         PR middle-end/57344
26297         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26298         don't lower unit.  Handle unit not being always BITS_PER_WORD.
26300 2013-05-23  Richard Biener  <rguenther@suse.de>
26302         PR rtl-optimization/57341
26303         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26304         instead of true_dependence.
26306 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
26308         * bb-reorder.c (branch_threshold): Make const.
26309         (exec_threshold): Ditto.
26311 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
26312             Pat Haugen  <pthaugen@us.ibm.com>
26313             Peter Bergner  <bergner@vnet.ibm.com>
26315         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26316         documentation for the power8 crypto builtins.
26318         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26320         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26321         macros for defining power8 builtin functions.
26322         (BU_P8V_AV_2): Likewise.
26323         (BU_P8V_AV_P): Likewise.
26324         (BU_P8V_VSX_1): Likewise.
26325         (BU_P8V_OVERLOAD_1): Likewise.
26326         (BU_P8V_OVERLOAD_2): Likewise.
26327         (BU_CRYPTO_1): Likewise.
26328         (BU_CRYPTO_2): Likewise.
26329         (BU_CRYPTO_3): Likewise.
26330         (BU_CRYPTO_OVERLOAD_1): Likewise.
26331         (BU_CRYPTO_OVERLOAD_2): Likewise.
26332         (XSCVSPDP): Fix typo, point to the correct instruction.
26333         (VCIPHER): Add power8 crypto builtins.
26334         (VCIPHERLAST): Likewise.
26335         (VNCIPHER): Likewise.
26336         (VNCIPHERLAST): Likewise.
26337         (VPMSUMB): Likewise.
26338         (VPMSUMH): Likewise.
26339         (VPMSUMW): Likewise.
26340         (VPERMXOR_V2DI): Likewise.
26341         (VPERMXOR_V4SI: Likewise.
26342         (VPERMXOR_V8HI: Likewise.
26343         (VPERMXOR_V16QI: Likewise.
26344         (VSHASIGMAW): Likewise.
26345         (VSHASIGMAD): Likewise.
26346         (VPMSUM): Likewise.
26347         (VPERMXOR): Likewise.
26348         (VSHASIGMA): Likewise.
26350         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26351         __CRYPTO__ if the crypto instructions are available.
26352         (altivec_overloaded_builtins): Add support for overloaded power8
26353         builtins.
26355         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26356         support for power8 crypto builtins.
26357         (builtin_function_type): Likewise.
26358         (altivec_init_builtins): Add support for builtins that take vector
26359         long long (V2DI) arguments.
26361         * config/rs6000/crypto.md: New file, define power8 crypto
26362         instructions.
26364 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
26365             Pat Haugen  <pthaugen@us.ibm.com>
26366             Peter Bergner  <bergner@vnet.ibm.com>
26368         * doc/invoke.texi (Option Summary): Add power8 options.
26369         (RS/6000 and PowerPC Options): Likewise.
26371         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26372         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
26373         wm, wn, wr documentation.
26375         * config/rs6000/constraints.md (wm): New constraint for VSX
26376         registers if direct move instructions are enabled.
26377         (wn): New constraint for no registers.
26378         (wq): New constraint for quad word even GPR registers.
26379         (wr): New constraint if 64-bit instructions are enabled.
26380         (wv): New constraint if power8 vector instructions are enabled.
26381         (wQ): New constraint for quad word memory locations.
26383         * config/rs6000/predicates.md (const_0_to_15_operand): New
26384         constraint for 0..15 for crypto instructions.
26385         (gpc_reg_operand): If VSX allow registers in VSX registers as well
26386         as GPR and floating point registers.
26387         (int_reg_operand): New predicate to match only GPR registers.
26388         (base_reg_operand): New predicate to match base registers.
26389         (quad_int_reg_operand): New predicate to match even GPR registers
26390         for quad memory operations.
26391         (vsx_reg_or_cint_operand): New predicate to allow vector logical
26392         operations in both GPR and VSX registers.
26393         (quad_memory_operand): New predicate for quad memory operations.
26394         (reg_or_indexed_operand): New predicate for direct move support.
26396         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26397         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26398         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26399         (POWERPC_MASKS): Add power8 options.
26400         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26401         various options.
26403         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26404         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26406         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26407         (-mpower8-fusion): New power8 options.
26408         (-mpower8-fusion-sign): Likewise.
26409         (-mpower8-vector): Likewise.
26410         (-mcrypto): Likewise.
26411         (-mdirect-move): Likewise.
26412         (-mquad-memory): Likewise.
26414         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26415         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26416         registers.
26417         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26418         (rs6000_debug_vector_unit): Add p8_vector.
26419         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26420         definitions.  Also print fusion state.
26421         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26422         (rs6000_builtin_mask_calculate): Add power8 builtin support.
26423         (rs6000_option_override_internal): Add support for power8.
26424         (rs6000_common_init_builtins): Add debugging for skipped builtins
26425         if -mdebug=builtin.
26426         (rs6000_adjust_cost): Add power8 support.
26427         (rs6000_issue_rate): Likewise.
26428         (insn_must_be_first_in_group): Likewise.
26429         (insn_must_be_last_in_group): Likewise.
26430         (force_new_group): Likewise.
26431         (rs6000_register_move_cost): Likewise.
26432         (rs6000_opt_masks): Likewise.
26434         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26435         power8 capable assembler, default to power7 options.
26436         (TARGET_DIRECT_MOVE): Likewise.
26437         (TARGET_CRYPTO): Likewise.
26438         (TARGET_P8_VECTOR): Likewise.
26439         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26440         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26441         (VECTOR_MEM_P8_VECTOR_P): Likewise.
26442         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26443         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26444         (TARGET_XSCVDPSPN): Likewise.
26445         (TARGET_XSCVSPDPN): Likewsie.
26446         (TARGET_SYNC_HI_QI): Likewise.
26447         (TARGET_SYNC_TI): Likewise.
26448         (MASK_CRYPTO): Likewise.
26449         (MASK_DIRECT_MOVE): Likewise.
26450         (MASK_P8_FUSION): Likewise.
26451         (MASK_P8_VECTOR): Likewise.
26452         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26453         temporary used by some of the direct move instructions to get two FP
26454         temporary registers does not force creation of a stack frame.
26455         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26456         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26457         that any VSX registers are tieable, even if they are also an
26458         Altivec vector mode.
26459         (r6000_reg_class_enum): Add wm, wr, wv constraints.
26460         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26461         (RS6000_BTM_CRYPTO): Likewise.
26462         (RS6000_BTM_COMMON): Likewise.
26464         * config/rs6000/rs6000.md (cpu attribute): Add power8.
26465         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26466         (enum rs6000_vector): Add power8 vector support.
26468 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26470         PR target/19599
26471         PR target/57340
26472         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26473         (any_sibcall_could_use_r3): this and handle indirect calls.
26474         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26476 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26478         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26480 2013-05-22  Richard Biener  <rguenther@suse.de>
26482         PR middle-end/57349
26483         * profile.c (branch_prob): Do not split blocks that are
26484         abnormally receiving from ECF_RETURNS_TWICE functions.
26486 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26488         * recog.c (offsettable_address_addr_space_p): Fix calculation of
26489         address mode.  Move pointer mode initialization to the same place.
26491 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26493         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26494         while it has any effect.
26496 2013-05-21  Easwaran Raman  <eraman@google.com>
26498         PR tree-optimization/57322
26499         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26500         UID of the statement added to the BB to be 1.
26502 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
26504         PR tree-optimization/57331
26505         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26506         of conversion from pointer type to integral type with integer.
26508 2013-05-21  Martin Jambor  <mjambor@suse.cz>
26510         PR lto/57289
26511         * ipa-prop.c (ipa_read_node_info): Process param_used and
26512         controlled_uses in the same order as when writing.
26514 2013-05-21  Magnus Granberg  <baldrick@free.fr>
26516         PR plugins/56754
26517         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26519 2013-05-21  Richard Biener  <rguenther@suse.de>
26521         PR tree-optimization/57318
26522         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26523         estimate stmts with side-effects as likely eliminated.
26525 2013-05-21  Richard Biener  <rguenther@suse.de>
26527         PR tree-optimization/57330
26528         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26529         preserve the call stmts fntype.
26531 2013-05-21  Richard Biener  <rguenther@suse.de>
26533         PR tree-optimization/57303
26534         * tree-ssa-sink.c (statement_sink_location): Improve killing
26535         stmt detection and properly handle self-assignments.
26537 2013-05-21  Christian Bruel  <christian.bruel@st.com>
26539         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26540         spanning registers. LEAF_REG_REMAP is supported only for contiguous
26541         registers. Set register size out of the PARALLEL loop.
26543 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
26545         PR target/56547
26546         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26547         (*fmasf4, *fmasf4_media): New insns.
26549 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26551         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26552         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26553         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26554         (mips_idiv_insns): Update the comments to say that the returned
26555         instruction counts are in units of BASE_INSN_LENGTH.
26556         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26557         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
26558         using 2 rather than 4 as the length of indirect MIPS16 and
26559         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
26560         length of a NOP.  Don't divide MIPS16 lengths by 2.
26561         (mips16_split_long_branches): Assume a branch is long if the
26562         length is greater than 4 rather than 8.
26563         * config/mips/mips.md (length): Give MIPS16 lengths directly,
26564         rather than multiplying them by 2.  Multiply instruction counts
26565         by BASE_INSN_LENGTH rather than 4.
26566         (*jump_mips16, tls_get_tp_mips16_<mode>)
26567         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26569 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26571         * config/mips/mips.md (extended_mips16): Remove branch case.
26572         (length): Remove duplicated extended_mips16 test.
26574 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26576         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26578 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
26580         * recog.h (Recog_data): Rename to...
26581         (recog_data_d): ...this.
26582         (recog_data): Update accordingly.
26583         * recog.c (recog_data): Likewise.
26584         * reload.c (save_recog_data): Likewise.
26585         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26586         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26588 2013-05-17  Julian Brown  <julian@codesourcery.com>
26590         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26591         found in a REG_EQUAL note, invalidate it.
26593 2013-05-17  Easwaran Raman  <eraman@google.com>
26595         * tree-ssa-reassoc.c (find_insert_point): New function.
26596         (insert_stmt_after): Likewise.
26597         (get_def_stmt): Likewise.
26598         (ensure_ops_are_available): Likewise.
26599         (not_dominated_by): Likewise.
26600         (rewrite_expr_tree): Do not move statements beyond what is
26601         necessary. Remove call to swap_ops_for_binary_stmt...
26602         (reassociate_bb): ... and move it here.
26603         (build_and_add_sum): Assign UIDs for new statements.
26604         (linearize_expr): Likewise.
26605         (do_reassoc): Renumber gimple statement UIDs.
26607 2013-05-17  Jan Hubicka  <jh@suse.cz>
26609         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26610         weakrefs.
26611         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26612         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26613         weakrefs.
26614         (output_weakrefs): Update.
26616 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
26617             Martin Jambor  <mjambor@suse.cz>
26619         PR middle-end/57276
26620         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26621         value that corresponds to the given aggval is found in values vector.
26623 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
26625         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26626         sse, sse2, sse3, ssse3 and sse4a flags to options.
26628 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
26630         * gengtype-state.c: (s_expr_writer): New class, to handle
26631         prettifying of output layout of s-expressions.
26632         (state_writer): New class, to write out gtype.state.
26633         (state_written_type_count): Move this variable into member data of
26634         state_writer.
26635         (s_expr_writer::s_expr_writer): New code: constructor for new class
26636         (state_writer::state_writer(): ditto
26637         (s_expr_writer::write_new_line): New function
26638         (s_expr_writer::write_any_indent): ditto
26639         (s_expr_writer::begin_s_expr): ditto
26640         (s_expr_writer::end_s_expr): ditto
26641         (write_state_fileloc): convert to method of state_writer...
26642         (state_writer:: write_state_fileloc): ...and use methods of
26643         s_expr_writer to write indentation into the gtype.state output file
26644         to visually represent the hierarchical structure of the list
26645         structures
26646         (write_state_fields): ditto, renaming to...
26647         (state_writer::write_state_fields)
26648         (write_state_a_string): ditto, renaming to...
26649         (state_writer::write_state_a_string)
26650         (write_state_string_option): ditto, renaming to...
26651         (state_writer::write_state_string_option)
26652         (write_state_type_option): ditto, renaming to...
26653         (state_writer::write_state_type_option)
26654         (write_state_nested_option): ditto, renaming to...
26655         (state_writer::write_state_nested_option)
26656         (write_state_option): ditto, renaming to...
26657         (state_writer::write_state_option)
26658         (write_state_options): ditto, renaming to...
26659         (state_writer::write_state_options)
26660         (write_state_lang_bitmap): ditto, renaming to...
26661         (state_writer::write_state_lang_bitmap)
26662         (write_state_version): ditto, renaming to...
26663         (state_writer::write_state_version)
26664         (write_state_scalar_type): ditto, renaming to...
26665         (state_writer::write_state_scalar_type)
26666         (write_state_string_type): ditto, renaming to...
26667         (state_writer::write_state_string_type)
26668         (write_state_undefined_type): ditto, renaming to...
26669         (state_writer::write_state_undefined_type)
26670         (write_state_struct_union_type): ditto, renaming to...
26671         (state_writer::write_state_struct_union_type)
26672         (write_state_struct_type): ditto, renaming to...
26673         (state_writer::write_state_struct_type)
26674         (write_state_user_struct_type): ditto, renaming to...
26675         (state_writer::write_state_user_struct_type)
26676         (write_state_lang_struct_type): ditto, renaming to...
26677         (state_writer::write_state_lang_struct_type)
26678         (write_state_param_struct_type): ditto, renaming to...
26679         (state_writer::write_state_param_struct_type)
26680         (write_state_pointer_type): ditto, renaming to...
26681         (state_writer::write_state_pointer_type)
26682         (write_state_array_type): ditto, renaming to...
26683         (state_writer::write_state_array_type)
26684         (write_state_gc_used): ditto, renaming to...
26685         (state_writer::write_state_gc_used)
26686         (write_state_common_type_content): ditto, renaming to...
26687         (state_writer::write_state_common_type_content)
26688         (write_state_type): ditto, renaming to...
26689         (state_writer::write_state_type)
26690         (write_state_pair_list): ditto, renaming to...
26691         (state_writer::write_state_pair_list)
26692         (write_state_pair): ditto, renaming to...
26693         (state_writer::write_state_pair)
26694         (write_state_typedefs): ditto, renaming to...
26695         (state_writer::write_state_typedefs)
26696         (write_state_structures): ditto, renaming to...
26697         (state_writer::write_state_structures)
26698         (write_state_param_structs): ditto, renaming to...
26699         (state_writer::write_state_param_structs)
26700         (write_state_variables): ditto, renaming to...
26701         (state_writer::write_state_variables)
26702         (write_state_srcdir): ditto, renaming to...
26703         (state_writer::write_state_srcdir)
26704         (write_state_files_list): ditto, renaming to...
26705         (state_writer::write_state_files_list)
26706         (write_state_languages): ditto, renaming to...
26707         (state_writer::write_state_languages)
26708         (write_state): create a state_writer instance and use it when
26709         writing out the state file
26711 2013-05-17  Mike Stump  <mikestump@comcast.net>
26713         PR rtl-optimization/57304
26714         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26715         accessing DF_REF_REAL_LOC.
26717 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26719         PR rtl-optimization/57281
26720         PR rtl-optimization/57300
26721         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26722         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26723         what the other splitter did if the registers are dead.
26725 2013-05-17  Richard Biener  <rguenther@suse.de>
26727         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26728         MEM_REF offsets.
26730 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26732         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26733         linking.
26735 2013-05-17  Marek Polacek  <polacek@redhat.com>
26737         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26738         length when doing non-zero store of storing '\0' to '\0'.
26740 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26742         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26743         vect_external_def oprnd1 with loop_vinfo, try to emit
26744         optional cast, negation and and stmts on the loop preheader
26745         edge instead of into the pattern def seq.
26747         PR tree-optimization/57051
26748         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26749         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26751 2013-05-16  Nick Clifton  <nickc@redhat.com>
26753         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26754         (rl78_is_naked_func): New function.
26755         (rl78_expand_prologue): Skip prologue generation for naked functions.
26756         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26757         * doc/extend.texi (naked): Add RL78 to the list of processors
26758         that supports this attribute.
26760 2013-05-16  Jeff Law  <law@redhat.com>
26762         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26764 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26766         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26767         cache parameters using detect_caches_amd also for CYRIX,
26768         NSC and TM2 signatures.
26770 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26771             Dzianis Kahanovich  <mahatma@eu.by>
26773         PR target/45359
26774         PR target/46396
26775         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26776         VIA/Centaur processors and determine their cache parameters
26777         using detect_caches_amd.
26779 2013-05-16  Teresa Johnson  <tejohnson@google.com>
26781         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26782         (rtl_verify_edges): New function.
26783         (rtl_verify_bb_insns): Ditto.
26784         (rtl_verify_bb_pointers): Ditto.
26785         (rtl_verify_bb_insn_chain): Ditto.
26786         (rtl_verify_fallthru): Ditto.
26787         (rtl_verify_bb_layout): Ditto.
26788         (rtl_verify_flow_info_1): Outline checks into new functions.
26789         (rtl_verify_flow_info): Ditto.
26791 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
26793         * cfghooks.c (copy_bbs): Add update_dominance argument.
26794         * cfghooks.h (copy_bbs): Update prototype.
26795         * tree-cfg.c (gimple_duplicate_sese_region):
26796         Add update_dominance argument.
26797         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26798         * tree-ssa-loop-ch.c (copy_loop_headers): Update
26799         gimple_duplicate_sese_region call.
26800         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26801         Update copy_bbs call.
26802         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26803         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26805 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26807         * tree-vectorizer.h (NUM_PATTERNS): Increment.
26808         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26809         vect_recog_rotate_pattern.
26810         (vect_recog_rotate_pattern): New function.
26812 2013-05-16  Jason Merrill  <jason@redhat.com>
26814         * Makefile.in (LLINKER): New variable.
26815         (mostlyclean): Remove link mutex.
26816         * configure.ac: Handle --enable-link-mutex.
26817         * lock-and-run.sh: New script.
26819 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26821         PR target/19599
26822         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26823         for NULL decl.
26825 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26827         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26829 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
26831         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26832         * config/arm/arm.c (next_consecutive_mem): New function.
26833         (gen_movmem_ldrd_strd): Likewise.
26834         * config/arm/arm.md (movmemqi): Update condition and code.
26835         (unaligned_loaddi, unaligned_storedi): New patterns.
26837 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26839         * config.gcc: Obsolete *-*-solaris2.9*.
26840         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26842 2013-05-16  Richard Biener  <rguenther@suse.de>
26844         * passes.c (init_optimization_passes): Move pass_parallelize_loops
26845         earlier, after GRAPHITE transforms and IV canonicalization.
26847 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26849         * omp-low.c (extract_omp_for_data): For collapsed loops,
26850         if at least one of the loops is known at compile time to
26851         iterate zero times, set count to 0.
26852         (expand_omp_regimplify_p): New function.
26853         (expand_omp_for_generic): For collapsed loops, if at least
26854         one of the loops isn't known to iterate at least once,
26855         add runtime check with setting count to 0.
26856         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26857         For unsigned types if it isn't known at compile time that
26858         the loop will iterate at least once, add runtime check to bypass
26859         the whole loop if initial condition isn't true.
26861 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
26863         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26865 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
26867         PR middle-end/57286
26868         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26869         transformations to avoid an infinite loop.
26871 2013-05-16  Marek Polacek  <polacek@redhat.com>
26873         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26875 2013-05-15  Leif Ekblad  <leif@rdos.net>
26877         * config/i386/i386.c (ix86_decompose_address): Use
26878         DEFAULT_TLS_SEG_REG to access TLS segment register.
26879         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26880         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26881         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26883 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
26885         PR target/57260
26886         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26887         sibling calls to functions that would normally be lazily bound,
26888         unless $gp is call-clobbered.
26890 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
26892         * config/i386/i386.c (ix86_option_override_internal): Update
26893         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
26894         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26895         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26896         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26897         of TARGET_3DNOW.
26898         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26900 2013-05-15  Andreas Schwab  <schwab@suse.de>
26902         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26903         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
26904         third operand.
26906 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26908         * loop-unroll.c (report_unroll_peel): Check decision before
26909         emitting unroll/peel message.
26911 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26913         * function.h (has_bb_partition): New rtl_data flag.
26914         (bb_reorder_complete): Ditto.
26915         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26916         instead of flag_reorder_blocks_and_partition.
26917         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26918         with some enhancements.
26919         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26920         * bb-reorder.c (connect_traces): Check for has_bb_partition
26921         instead of flag_reorder_blocks_and_partition.
26922         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26923         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26924         verify_hot_cold_block_grouping.
26925         (partition_hot_cold_basic_blocks): Set has_bb_partition.
26927 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26929         PR target/19599
26930         * config/arm/predicates.md (call_insn_operand): New predicate.
26931         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
26932         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26933         if insn is not a tail call.
26934         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26935         registers.
26936         * config/arm/arm.h (enum reg_class): New caller save register class.
26937         (REG_CLASS_NAMES): Likewise.
26938         (REG_CLASS_CONTENTS): Likewise.
26939         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26940         without decls.
26942 2013-05-15  Richard Biener  <rguenther@suse.de>
26944         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26945         of MSG_OPTIMIZED_LOCATIONS.
26946         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26947         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26948         message.
26949         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26950         of MSG_OPTIMIZED_LOCATIONS.
26951         (execute_vect_slp): Likewise.
26952         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26953         (vect_create_cond_for_alias_checks): Likewise.
26954         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26955         (vect_recog_widen_mult_pattern): Likewise.
26956         (vect_recog_widen_sum_pattern): Likewise.
26957         (vect_recog_over_widening_pattern): Likewise.
26958         (vect_recog_widen_shift_pattern): Likewise.
26959         (vect_recog_vector_vector_shift_pattern): Likewise.
26960         (vect_recog_divmod_pattern): Likewise.
26961         (vect_recog_mixed_size_cond_pattern): Likewise.
26962         (vect_recog_bool_pattern): Likewise.
26963         (vect_pattern_recog_1): Likewise.
26965 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26967         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26968         non-functions to builtin_unreachable.
26969         * ipa-inline-transform.c (inline_call): Do not assert estimates were
26970         correct when new direct edges were discovered.
26972 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26974         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26975         header, print symbol order instead of node uid, print more information
26976         about indirect edge targets.
26977         (ipa_make_edge_direct_to_target): Print symbol order instead of node
26978         uids.
26979         (ipa_make_edge_direct_to_target): Likewise.
26980         (remove_described_reference): Likewise.
26981         (propagate_controlled_uses): Likewise.
26982         (ipa_print_node_params): Also print symbol order.
26983         (ipcp_transform_function): Print symbol order instead of node uids.
26984         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26985         (cgraph_get_create_real_symbol_node): Likewise.
26986         * ipa-cp.c (print_lattice): Likewise.
26987         (print_all_lattices): Likewise.
26988         (determine_versionability): Likewise.
26989         (initialize_node_lattices): Likewise.
26990         (estimate_local_effects): Likewise.
26991         (update_profiling_info): Likewise.
26992         (create_specialized_node): Likewise.
26993         (perhaps_add_new_callers): Likewise.
26994         (decide_about_value): Likewise.
26995         (decide_whether_version_node): Likewise.
26996         (identify_dead_nodes): Likewise.
26997         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26998         (dump_inline_summary): Likewise.
26999         (estimate_node_size_and_time): Likewise.
27000         (inline_analyze_function): Likewise.
27001         * ipa-inline.c (report_inline_failed_reason): Likewise.
27002         (want_early_inline_function_p): Likewise.
27003         (edge_badness): Likewise.
27004         (update_edge_key): Likewise.
27005         (inline_small_functions): Likewise.  Add dumping of order to two other
27006         dumps.
27007         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
27008         instead of node uids.
27009         (propagate_pure_const): Likewise.
27010         (propagate_pure_const): Likewise.
27011         * ipa-utils.c (dump_cgraph_node_set): Likewise.
27012         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
27013         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
27014         of node uids.
27015         * tree-pretty-print.c (dump_function_header): Likewise.
27016         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
27017         Print symbol order instead of node uids.
27019 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27021         * config/s390/s390.c (s390_register_move_cost): Don't impose the
27022         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
27024 2013-05-15  Richard Biener  <rguenther@suse.de>
27026         PR tree-optimization/57275
27027         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
27028         return value for fail to do runtime alias checks for gather loads.
27030 2013-05-15  Jan Hubicka  <jh@suse.cz>
27032         PR lto/57038
27033         PR lto/47375
27034         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
27035         weakrefs are not external.
27036         (lto_symtab_merge_decls): Fix thinko when dealing with
27037         non-lto_symtab decls.
27038         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
27039         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
27040         * varpool.c (dump_varpool_node): Dump more flags.
27042 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
27044         * config/i386/i386.c (processor_alias_table): Add instruction
27045         FSGSBASE for AMD bdver3 architecture.
27047 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
27049         * tree.c (warn_deprecated_use): Print file:line using locus color.
27050         * diagnostic.c (diagnostic_report_current_module): Print file:line
27051         and file:line:column using locus color.
27053 2013-05-14  Mike Stump  <mikestump@comcast.net>
27055         * gdbinit.in: Add __null.
27057 2013-05-14  Mike Stump  <mikestump@comcast.net>
27059         * recog.h: Rename struct recog_data to Recog_data.
27060         * recog.c: Likewise.
27061         * reload.c (can_reload_into): Likewise.
27062         * config/picochip/picochip.c: Likewise.
27064 2013-05-14  Mike Stump  <mikestump@comcast.net>
27066         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
27068 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
27070         * resource.h (struct resources): Remove unch_memory member.
27071         (CLEAR_RESOURCE): Don't clear unch_memory.
27072         * resource.c (mark_referenced_resources): Don't set it.
27073         (mark_set_resources): Likewise.
27074         (mark_target_live_regs): Don't clear it.
27075         (init_resource_info): Likewise.
27076         * reorg.c (resource_conflicts_p): Don't compare it.
27077         (redundant_insn): Don't set it.
27079         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
27080         Remove prototypes.
27081         * emit-rtl.c (next_label): Remove unused function.
27082         (skip_consecutive_labels, link_cc0_insns): Move to ...
27083         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
27084         only place where these functions are used, and make them static.
27086 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
27088         * fold-const.c (fold_negate_expr): Handle vectors.
27089         (fold_truth_not_expr): Make it static.
27090         (fold_invert_truthvalue): New static function.
27091         (invert_truthvalue_loc): Handle vectors. Do not call
27092         fold_truth_not_expr directly.
27093         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
27094         <TRUTH_NOT_EXPR>: Do not cast to boolean.
27095         (fold_comparison): Handle vector constants.
27096         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
27097         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
27098         * tree.h (fold_truth_not_expr): Remove declaration.
27100 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
27102         * config/aarch64/aarch64-simd.md
27103         (aarch64_vcond_internal<mode>): Rename to...
27104         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
27105         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
27106         float modes. Clarify all iterator modes.
27107         (vcond<mode><mode>): Use new name for vcond expanders.
27108         (vcond<v_cmp_result><mode>): Likewise.
27109         (vcondu<mode><mode>: Likewise.
27110         * config/aarch64/iterators.md (VDQF_COND): New.
27112 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
27114         PR bootstrap/57266
27115         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
27116         variable for the shift amount. Check that we shift by non-negative
27117         amounts.
27119 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
27121         PR target/42017
27122         * config/arm/arm.h (EPILOGUE_USES): Only return true
27123         for LR_REGNUM after epilogue_completed.
27125 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
27127         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
27128         is error_mark_node.
27130 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27132         PR target/57261
27133         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
27134         and Solaris 11+/x86 with gld.
27135         * configure: Regenerate.
27137 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
27139         * expmed.c (expand_shift_1): Canonicalize rotates by
27140         constant bitsize / 2 to bitsize - 1.
27141         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
27142         case ROTATERT>: Likewise.
27144         Revert:
27145         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
27147         * config/i386/i386.md (rotateinv): New code attr.
27148         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27149         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27150         roll $31, %eax, etc.
27152 2013-05-14  Richard Biener  <rguenther@suse.de>
27154         PR middle-end/57235
27155         * tree-eh.c (sink_clobbers): Give up for successors with
27156         multiple predecessors and no virtual uses.
27158 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
27160         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
27161         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
27163 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
27165         PR middle-end/57251
27166         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
27167         the case when both op0 and op1 have VOIDmode.
27169 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27171         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
27172         in multiply-accumulate mode.
27174 2013-05-13  Guozhi Wei  <carrot@google.com>
27176         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
27178 2013-05-13  Kai Tietz  <ktietz@redhat.com>
27180         PR target/56975
27181         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
27182         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
27183         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
27184         * config/i386/i386.c (ix86_option_override_internal): Likewise.
27185         (ix86_expand_prologue): Likewise.
27186         (ix86_expand_split_stack_prologue): Likewise.
27187         (legitimate_pic_address_disp_p): Likewise.
27188         (legitimize_pic_address): Likewise.
27189         (legitimize_tls_address): Likewise.
27190         (legitimize_pe_coff_symbol): Likewise.
27191         (output_pic_addr_const): Likewise.
27192         (construct_plt_address): Likewise.
27193         (ix86_expand_call): Likewise.
27194         (x86_output_mi_thunk): Likewise.
27195         (x86_function_profiler): Likewise.
27197 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
27199         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
27200         similar switch cases.
27201         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
27202         (aarch64_simd_mov_to_<mode>low): Delete.
27203         (aarch64_simd_mov_to_<mode>high): Delete.
27204         (move_lo_quad_<mode>): Add w<-r alternative.
27205         (aarch64_simd_move_hi_quad_<mode>): Likewise.
27206         (aarch64_simd_mov_from_*): Update type attribute.
27207         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
27208         statement.
27210 2013-05-13  Jan Hubicka  <jh@suse.cz>
27212         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
27213         * config/i386/i386.c (ix86_compute_frame_layout,
27214         ix86_expand_epilogue, emit_i387_cw_initialization,
27215         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
27216         ix86_local_alignment): Fix use of size/speed predicates.
27218 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
27220         PR tree-optimization/45216
27221         PR tree-optimization/57157
27222         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
27223         the (-Y) & (B - 1) variant if OP is |.
27224         * expmed.c (expand_shift_1): For rotations by const0_rtx just
27225         return shifted.  Use (-op1) & (prec - 1) as other_amount
27226         instead of prec - op1.
27228 2013-05-13  Martin Jambor  <mjambor@suse.cz>
27230         PR middle-end/42371
27231         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
27232         (ipa_constant_data): New type.
27233         (ipa_jump_func): Use ipa_constant_data to hold information about
27234         constant jump functions.
27235         (ipa_get_jf_constant): Adjust to jump function type changes.
27236         (ipa_get_jf_constant_rdesc): New function.
27237         (ipa_param_descriptor): New field controlled_uses.
27238         (ipa_get_controlled_uses): New function.
27239         (ipa_set_controlled_uses): Likewise.
27240         * ipa-ref.h (ipa_find_reference): Declare.
27241         * ipa-prop.c (ipa_cst_ref_desc): New type.
27242         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
27243         changes.
27244         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
27245         New parameter cs.  Adjust all callers.
27246         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
27247         (remove_described_reference): New function.
27248         (jfunc_rdesc_usable): Likewise.
27249         (try_make_edge_direct_simple_call): Decrement controlled use count,
27250         attempt to remove reference if it hits zero.
27251         (combine_controlled_uses_counters): New function.
27252         (propagate_controlled_uses): Likewise.
27253         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
27254         (ipa_edge_duplication_hook): Duplicate reference descriptions.
27255         (ipa_print_node_params): Print described use counter.
27256         (ipa_write_jump_function): Adjust to jump function type changes.
27257         (ipa_read_jump_function): New parameter CS, pass it to
27258         ipa_set_jf_constant.  Adjust caller.
27259         (ipa_write_node_info): Stream controlled use count
27260         (ipa_read_node_info): Likewise.
27261         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
27262         asserting.
27263         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
27264         count.  Remove cloning-added reference if it reaches zero.
27265         * ipa-ref.c (ipa_find_reference): New function.
27267 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
27269         * config/i386/i386.c (processor_target_table): Modified default
27270         alignment values for AMD BD and BT architectures.
27272 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
27274         * tree-vect-generic.c (uniform_vector_p): Move ...
27275         * tree.c (uniform_vector_p): ... here.
27276         * tree.h (uniform_vector_p): Declare it.
27277         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27278         into a scalar.
27280 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
27282         PR tree-optimization/57230
27283         * tree-ssa-strlen.c (handle_char_store): Record length for
27284         array store from STRING_CST.
27286         PR tree-optimization/57230
27287         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27288         check.
27290 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
27292         * config/epiphany/epiphany.c (epiphany_init): Check size of
27293         NUM_MODES_FOR_MODE_SWITCHING.
27294         (epiphany_expand_prologue):
27295         Remove CONFIG_REGNUM initial value handling code.
27296         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27297         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27298         (emit_set_fp_mode, epiphany_mode_after): Likewise.
27299         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27300         Don't return 1 for FP_MODE_NONE.
27301         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27302         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27303         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27304         * config/epiphany/epiphany.md (save_config): New pattern.
27306 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
27308         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27310 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
27312         * config/i386/i386.md (memory): Handle sseishft1.
27313         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27314         (*vec_extractv2di_1): Ditto.
27316 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
27318         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27319         saved registers.
27321 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27323         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27324         Add mthumb/march=armv7-a multilib.
27325         Add mthumb/march=armv7-r multilib.
27326         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27328 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
27330         * config/v850/t-rtems: Add more multilibs.
27332 2013-05-10  Richard Biener  <rguenther@suse.de>
27334         PR tree-optimization/57214
27335         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27336         not propagate from SSA names that occur in abnormal PHI nodes.
27338 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
27340         * stor-layout.c (element_precision): New function.
27341         * machmode.h (element_precision): Declare it.
27342         * tree.c (build_minus_one_cst): New function.
27343         (element_precision): Likewise.
27344         * tree.h (build_minus_one_cst): Declare new function.
27345         (element_precision): Likewise.
27346         * fold-const.c (operand_equal_p): Use element_precision.
27347         (fold_binary_loc): Handle vector types.
27348         * convert.c (convert_to_integer): Use element_precision.
27349         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27350         separately.
27352 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
27354         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27355         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27356         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27357         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27358         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27359         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27360         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27361         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27362         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27363         (Uuw8): New constraints.
27364         (Usb4): Move into alphabetical order.
27365         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27366         (sd8_operand, ub8_operand, uw8_operand): New predicates.
27367         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27368         previously unnamed patterns.
27369         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27370         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27371         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27372         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27373         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
27374         of specific lengths.
27376 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
27378         * config/i386/i386.md (rotateinv): New code attr.
27379         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27380         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27381         roll $31, %eax, etc.
27383         PR tree-optimization/45216
27384         PR tree-optimization/57157
27385         * tree-ssa-forwprop.c (simplify_rotate): New function.
27386         (ssa_forward_propagate_and_combine): Call it.
27388 2013-05-10  Richard Biener  <rguenther@suse.de>
27390         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27391         disable peeling when we version for aliasing.
27392         (vector_alignment_reachable_p): Honor explicit user alignment.
27393         (vect_supportable_dr_alignment): Likewise.
27394         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27395         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27396         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27397         then peeling to arrange for the cost-model check to come first.
27399 2013-05-10  Alan Modra  <amodra@gmail.com>
27401         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27402         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27403         * configure: Regenerate.
27405 2013-05-10  Alan Modra  <amodra@gmail.com>
27407         PR target/55033
27408         * varasm.c (default_elf_select_section): Move !DECL_P check..
27409         (get_named_section): ..to here before calling get_section_name.
27410         Adjust assertion.
27411         (default_section_type_flags): Add DECL_P check.
27412         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27413         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27415 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
27417         * config/epiphany/epiphany.c (epiphany_expand_prologue):
27418         When using gen_stack_adjust_str with a register offset, add a
27419         REG_FRAME_RELATED_EXPR note.
27421 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
27423         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27424         (*vec_extractv4si_zext_mem): Ditto.
27425         (*vec_extractv2di): Add 0->x and x->x alternatives.
27426         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27427         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27429 2013-05-09  Jason Merrill  <jason@redhat.com>
27431         N3639 C++1y VLA support
27432         * gimplify.c (gimplify_vla_decl): Don't touch an existing
27433         DECL_VALUE_EXPR.
27435         * tree.c (build_constructor_va): New.
27436         * tree.h: Declare it.
27438 2013-05-09  Martin Jambor  <mjambor@suse.cz>
27440         PR lto/57084
27441         * gimple-fold.c (canonicalize_constructor_val): Call
27442         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27444 2013-05-09  Jan Hubicka  <jh@suse.cz>
27445             Richard Biener  <rguenther@suse.de>
27447         PR lto/54095
27448         * symtab.c (symtab_make_decl_local): Do not add private names.
27450 2013-05-09  Jan Hubicka  <jh@suse.cz>
27452         PR lto/54095
27453         * symtab.c (insert_to_assembler_name_hash): Handle clones.
27454         (unlink_from_assembler_name_hash): Likewise.
27455         (symtab_prevail_in_asm_name_hash, symtab_register_node,
27456         symtab_unregister_node, symtab_initialize_asm_name_hash,
27457         change_decl_assembler_name): Update.
27459 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
27461         * config/aarch64/aarch64.md: New movtf split.
27462         (*movtf_aarch64): Update.
27463         (aarch64_movdi_tilow): Handle TF modes and rename to
27464         aarch64_movdi_<mode>low.
27465         (aarch64_movdi_tihigh): Handle TF modes and rename to
27466         aarch64_movdi_<mode>high
27467         (aarch64_movtihigh_di): Handle TF modes and rename to
27468         aarch64_mov<mode>high_di
27469         (aarch64_movtilow_di): Handle TF modes and rename to
27470         aarch64_mov<mode>low_di
27471         (aarch64_movtilow_tilow): Remove spurious whitespace.
27472         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27473         splits.
27474         (aarch64_print_operand): Update.
27476 2013-05-09  Alan Modra  <amodra@gmail.com>
27478         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27479         powerpc64le.
27480         * configure: Regenerate.
27482 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27484         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27485         splitter preparation statements.
27486         * config/i386/sse.md (*vec_extract* splitters): Ditto.
27487         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27488         adjust_address_nv.
27490 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27492         * gimple-ssa-strength-reduction.c (count_candidates): Change
27493         return value to int.
27494         (analyze_candidates_and_replace): Change type of length to int.
27496 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27498         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27499         (*vec_extract<mode>): Use VI12_128 mode iterator.
27500         (*vec_extract<mode>_mem): Ditto.
27501         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27502         attribute.
27504 2013-05-08  Diego Novillo  <dnovillo@google.com>
27506         PR bootstrap/54659
27508         Revert:
27509         2012-08-17  Diego Novillo  <dnovillo@google.com>
27511         PR bootstrap/54281
27512         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27513         * config.in: Regenerate.
27514         * configure: Regenerate.
27515         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27517 2013-05-08  Jan Hubicka  <jh@suse.cz>
27519         PR lto/54095
27520         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27521         * cgraph.h (symtab_node_base): Add unique_name.
27522         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27523         input_overwrite_node, input_varpool_node): Stream unique_name.
27524         * cgraphclones.c (cgraph_create_virtual_clone,
27525         cgraph_function_versioning): Set unique_name.
27526         * ipa.c (function_and_variable_visibility): Set unique_name.
27528 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27530         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27531         (alloc_cand_and_find_basis): Restrict conditional candidate
27532         processing to CAND_MULTs.
27534 2013-05-08  Jan Hubicka  <jh@suse.cz>
27536         PR lto/54095
27537         lto-symtab.c (lto_symtab_symbol_p): New function.
27538         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27539         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27540         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27541         Skip static symbols.
27543 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
27545         PR tree-optimization/57200
27546         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27547         Only call inform if the preceding warning_at returns true.
27549 2013-05-07  Han Shen  <shenhan@google.com>
27551         * cfgexpand.c (record_or_union_type_has_array_p): New function.
27552         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27553         * common.opt (fstack-protector-strong): New option.
27554         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27555         * doc/invoke.texi (Optimization Options): Document
27556         "-fstack-protector-strong".
27557         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27559 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27561         * config/mips/mips.c (mips_machine_reorg2): Return 0.
27563 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
27565         * ira.c (update_equiv_regs): Add insn having equiv memory even if
27566         it is not lhs of the insn.
27567         (setup_reg_equiv): Remove insn having equiv memory which it is not
27568         lhs of the insn.
27569         * lra-constraints.c (process_address): Try to improve generation
27570         code for address base + disp.
27571         (lra_constraints): Make correct the code for checking insn setting
27572         up backward equivalence.  Remove insn only if it is in the init
27573         insn list.
27574         * lra-eliminations.c (update_reg_eliminate): Change return value.
27575         (lra_eliminate): Use the result.
27577 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
27579         * config/i386/sse.md (ssescalarnummask): New mode attribute.
27580         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27581         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27582         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27583         register target operands.
27584         (*vec_extractv8hi_sse2): New pattern.
27585         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27586         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27587         (*vec_extract<mode>_mem): New insn and split pattern.
27589 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
27591         * config/arm/arm.c (arm_asan_shadow_offset): New function.
27592         (TARGET_ASAN_SHADOW_OFFSET): Define.
27593         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27594         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27596 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27598         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27599         (incr_vec_index): Return -1 if increment not found.
27600         (create_add_on_incoming_edge): Assert if increment not found.
27601         (record_increment): Limit number of increments recorded.
27602         (all_phi_incrs_profitable): Return false if an increment not found.
27603         (replace_profitable_candidates): Don't process increments that were
27604         not recorded.
27605         (analyze_candidates_and_replace): Limit size of incr_vec.
27607 2013-05-07  Richard Biener  <rguenther@suse.de>
27609         * calls.c (special_function_p): setjmp-like functions are leaf.
27610         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27611         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27613 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
27615         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27616         (aarch64_simd_mov<mode>): New expander.
27617         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27618         (aarch64_simd_mov_to_<mode>high): Likewise.
27619         (aarch64_simd_mov_from_<mode>low): Likewise.
27620         (aarch64_simd_mov_from_<mode>high): Likewise.
27621         (aarch64_dup_lane<mode>): Update.
27622         (aarch64_dup_lanedi): New instruction pattern.
27623         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27624         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27626 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27628         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27629         (replace_mult_candidate): Remove unnecessary argument; remove
27630         unnecessary parameter from call to introduce_cast_before_cand.
27631         (replace_unconditional_candidate): Remove unnecessary parameter
27632         from call to replace_mult_candidate.
27633         (replace_conditional_candidate): Likewise.
27634         (insert_initializers): Use make_temp_ssa_name.
27635         (introduce_cast_before_cand): Remove unnecessary argument; use
27636         make_temp_ssa_name.
27637         (replace_one_candidate): Remove unnecessary argument; remove
27638         unnecessary parameter from calls to introduce_cast_before_cand.
27639         (replace_profitable_candidates): Remove unnecessary parameters
27640         from calls to replace_one_candidate.
27642 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27644         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27645         phi def as possibly hiding a basis for a CAND_ADD whose operands
27646         have been commuted in the analysis.
27647         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27649 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27651         * config/aarch64/aarch64.md
27652         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27653         shift value between 0-4.
27655 2013-05-07  Richard Biener  <rguenther@suse.de>
27657         * double-int.h (rshift): New overload.
27658         * double-int.c (rshift): New function.
27659         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27660         (create_reference_ops_from_ref): Remove.
27661         (vn_reference_insert): Use shared ops for constructing the
27662         reference and copy it.
27664 2013-05-07  Richard Biener  <rguenther@suse.de>
27666         PR middle-end/57190
27667         * tree-eh.c (sink_clobbers): Properly propagate
27668         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27670 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
27672         PR tree-optimization/57149
27673         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27674         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27675         collect_phi_def_edges, execute_late_warn_uninitialized): Use
27676         uninit_undefined_value_p instead of ssa_undefined_value_p.
27678         PR debug/57184
27679         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27680         for modifier == EXPAND_INITIALIZER.
27682 2013-05-07  Anton Blanchard  <anton@samba.org>
27684         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27685         for powerpc64 little endian.
27686         * configure: Regenerate.
27688 2013-05-06  Graham Stott  <grahams@btinternet.com>
27690         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27691         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27692         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27693         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27695 2013-05-06  Graham Stott  <grahams@btinternet.com>
27697         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27698         codes which allow non-lvalues.
27700 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
27702         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27703         components are all 1s.
27704         (integer_minus_onep): New function.
27705         * tree.h (integer_minus_onep): Declare it.
27706         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27707         integer_minus_onep instead of integer_all_onesp.
27709 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27711         PR target/52933
27712         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27713         variations of these patterns.
27715 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27717         * config/i386/i386.md (isa): Add x64_sse4 member.
27718         (enabled): Handle x64_sse4.
27719         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27720         instruction for 64bit SSE4_1 targets.  Update insn attributes.
27721         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27722         instruction for SSE4_1 targets.  Update insn attributes.
27723         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27724         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27725         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27726         const_1 selector.
27727         (*vec_extractv4si): Rename from *sse4_1_pextrd.
27728         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27729         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27731 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27733         PR target/57108
27734         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27736 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
27738         * final.c (do_assembler_dialects): Don't handle curly braces and
27739         vertical bar escaped by % as dialect delimiters.
27740         (output_asm_insn): Print curly braces and vertical bar if escaped
27741         by % and ASSEMBLER_DIALECT defined.
27742         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27743         * doc/tm.texi: Regenerated.
27745 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27747         * config/mips/mips.c: Include tree-pass.h.
27748         (mips_reorg): Split in pre- and post-dbr_schedule parts.
27749         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27750         (pass_mips_machine_reorg2): New machine specific pass.
27751         (insert_pass_mips_machine_reorg2): New pass plugin definition.
27752         (mips_option_override): Register the new pass.
27753         * rtl.h (cleanup_barriers): Remove prototype.
27754         (dbr_schedule): Likewise.
27755         * jump.c (cleanup_barriers): Make static.
27756         * reorg.c (dbr_schedule): Likewise.
27758 2013-05-06  Richard Biener  <rguenther@suse.de>
27760         PR tree-optimization/57185
27761         * tree-parloops.c (add_field_for_reduction): Handle anonymous
27762         SSA names properly.
27764 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27766         PR target/57106
27767         * config/i386/i386.c (add_parameter_dependencies): Add dependence
27768         between "first_arg" and "insn", not "last" and "insn".
27770 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27772         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27773         (find_candidates_in_block): Re-enable slsr_process_phi.
27774         (create_phi_basis): Fix double counting of candidate adjustment.
27776 2013-05-06  Richard Biener  <rguenther@suse.de>
27778         PR middle-end/57147
27779         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27780         the edge is also fallthru, preserve it and just clear the
27781         abnormal flag.
27782         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27783         also complex, preserve that and just clear the fallthru flag.
27784         * tree-inline.c (update_ssa_across_abnormal_edges): Also
27785         update virtual operands.
27787 2013-05-06  Alan Modra  <amodra@gmail.com>
27789         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27790         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27791         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27792         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27793         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27794         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27796 2013-05-06  Alan Modra  <amodra@gmail.com>
27798         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27799         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
27800         (DEFAULT_ASM_ENDIAN): Define.
27801         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27802         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27803         Update -K PIC clause from sysv4.h.
27804         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27805         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27807 2013-05-06  Alan Modra  <amodra@gmail.com>
27809         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27810         twice for little-endian.
27811         (ashrdi3_no_power, ashrdi3): Support little-endian.
27813 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27815         PR target/55303
27816         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27817         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27818         related expanders.
27819         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27820         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27821         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27822         New predicates.
27824 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
27825             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27827         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27828         * config/pa/pa.opt: Make mbig-switch a no-op.
27829         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27830         (CASE_VECTOR_MODE): Always return SImode.
27831         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27832         for the !TARGET_BIG_SWITCH case.
27833         * config/pa/pa-linux.h: Likewise.
27834         * config/pa/pa-openbsd.h: Likewise.
27835         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27836         * config/pa/pa.md (short_jump): Remove define_insn.
27837         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27838         (casesi0): Remove define_insn.
27839         (type): Remove btable_branch.
27840         (pa_combine_type): Likewise.
27841         (in_nullified_branch_delay): Likewise.
27842         (in_call_delay): Likewise.
27843         (define_delay): Likewise.
27844         (define_insn_reservation "Z3"): Likewise.
27845         (define_insn_reservation "Z4"): Likewise.
27846         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27847         (pa_adjust_insn_length): Remove adjustment for btable branches.
27848         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27849         and mno-big-switch
27851 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
27853         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27854         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27855         Add m->r,x alternatives.
27856         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27857         splitters using SWI48x mode iterator.
27858         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
27859         TARGET_64BIT.  Add m->x alternative.
27860         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27861         Add o->x alternative.  Enable for TARGET_SSE.
27862         (sse_storeq): Remove expander.
27863         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27864         with memory input operand.
27865         (*vec_extractv2di_1 splitter): New.
27866         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27867         * config/i386/i386.md (ssevecmodelower): New mode attribute.
27869 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27871         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
27872         (INT_LOWPART): Delete.
27873         (extract_MB): Adjust.
27874         (extract_ME): Adjust.
27875         (print_operand): Adjust.
27877 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27879         * config/rs6000/predicates.md (reg_or_add_cint_operand,
27880         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27881         (reg_or_logical_cint_operand, easy_fp_constant,
27882         logical_const_operand): Delete "CONST_DOUBLE" case.
27883         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27884         "HOST_BITS_PER_WIDE_INT == 64" test.
27885         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
27886         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27887         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27888         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27889         test.
27890         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27891         CONST_DOUBLE DImode/VOIDmode case.
27892         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27893         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27894         CONST_DOUBLE VOIDmode case.
27895         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27896         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27897         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27898         Delete CONST_DOUBLE case.
27899         (splitters for mov FMOVE64 const_double): Delete
27900         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27901         "HOST_BITS_PER_WIDE_INT >= 64" test.
27902         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27903         case.
27904         (mov DI const_double): Delete.
27906 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
27908         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27909         on op shows all bits zero in mode of a lowpart subreg, return zero.
27911 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27913         PR target/57150
27914         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27915         to save TFmode registers and DImode to save TImode registers for
27916         caller save operations.
27917         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27918         mark being partially clobbered since they only use the first
27919         double word.
27921         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27922         and TDmode only use the upper 64-bits of each VSX register.
27924 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27926         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27927         (find_candidates_in_block): Disable slsr_process_phi.
27929 2013-05-03  Guozhi Wei  <carrot@google.com>
27931         * coverage.c (coverage_obj_init): Move the construction of gcov
27932         constructor to ...
27933         (build_init_ctor): ... here.
27935 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27937         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27938         (slsr_cand_d): Redefine def_phi.
27939         (stride_status, phi_adjust_status, count_phis_status): New enums.
27940         (find_phi_def): New.
27941         (find_basis_for_base_expr): New.
27942         (find_basis_for_candidate): Handle hidden bases.
27943         (alloc_cand_and_find_basis): Handle phi candidates.
27944         (slsr_process_phi): New.
27945         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27946         (create_mul_imm_cand): Likewise.
27947         (create_add_ssa_cand): Exclude phi base candidates.
27948         (create_add_imm_cand): Likewise.
27949         (slsr_process_cast): Likewise.
27950         (slsr_process_copy): Likewise.
27951         (find_candidates_in_block): Handle phi candidates.
27952         (dump_candidate): Likewise.
27953         (unconditional_cands): Delete.
27954         (unconditional_cands_with_known_stride_p): Delete.
27955         (phi_dependent_cand_p): New.
27956         (cand_increment): Handle phi-dependent candidates.
27957         (replace_dependent): Delete.
27958         (replace_mult_candidate): New.
27959         (replace_unconditional_candidate): New.
27960         (incr_vec_index): Move to avoid forward reference.
27961         (create_add_on_incoming_edge): New.
27962         (create_phi_basis): New.
27963         (replace_dependents): Delete.
27964         (replace_conditional_candidate): New.
27965         (phi_add_costs): New.
27966         (replace_uncond_cands_and_profitable_phis): New.
27967         (record_increment): Handle phi adjustments.
27968         (record_phi_increments): New.
27969         (record_increments): Handle phi adjustments.
27970         (phi_incr_cost): New.
27971         (lowest_cost_path): Handle phis.
27972         (total_savings): Likewise.
27973         (analyze_increments): Likewise.
27974         (ncd_with_phi): New.
27975         (ncd_of_cand_and_phis): New.
27976         (nearest_common_dominator_for_cands): Handle phi increments.
27977         (all_phi_incrs_profitable): New.
27978         (replace_profitable_candidates): Handle phi-dependent candidates.
27979         (analyze_candidates_and_replace): Likewise.
27981 2013-05-03  Teresa Johnson  <tejohnson@google.com>
27983         PR bootstrap/57154
27984         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27985         do not exceed REG_BR_PROB_BASE.
27987 2013-05-03  Jeff Law  <law@redhat.com>
27989         PR tree-optimization/57144
27990         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27991         operand of the condition will bit into the new type when eliminating
27992         a cast feeding a condition.
27994 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
27996         PR rtl-optimization/57130
27997         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27998         of COMPARE as in_code to the recursive call if needed.
28000 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
28002         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
28003         (enabled): Handle new members.
28004         * config/i386/sse.md (*vec_concatv2si): Merge from
28005         *vec_concatv2si_sse2 and vec_concatv2si_sse.
28006         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
28008 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
28010         PR tree-optimization/57027
28011         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
28012         for fnms opportunity, check we got the prerequisite kind
28013         of tree / gimple before using accessor functions.
28015 2013-05-03  Richard Biener  <rguenther@suse.de>
28017         * double-int.h (lshift): New overload without precision
28018         and arith argument.
28019         (operator *=, operator +=, operator -=): Move ...
28020         * double-int.c (operator *=, operator +=, operator -=): ... here
28021         and implement more efficiently.
28022         (mul_double_with_sign): Remove.
28023         (lshift_double): Adjust to take unsinged shift argument, push
28024         dispatching code to callers.
28025         (mul_double_wide_with_sign): Add early out for callers that
28026         are not interested in high parts or overflow.
28027         (lshift): New function.
28028         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
28029         dispatch code here.
28030         (lrotate, rrotate): Use logical shifts.
28031         * expr.c (get_inner_reference): Use lshift.
28032         * fixed-value.c (do_fixed_divide): Likewise.
28033         * tree-dfa.c (get_ref_base_and_extent): Likewise.
28034         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
28035         (indirect_refs_may_alias_p): Likewise.
28036         (stmt_kills_ref_p_1): Likewise.
28038 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
28040         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
28042 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
28044         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
28045         scalar form of FABD instruction.
28047 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
28049         * lra-constraints.c (process_alt_operands): Add checking alt
28050         number to choose the best alternative.
28052 2013-05-02  Richard Biener  <rguenther@suse.de>
28054         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
28055         bitmap and its handling.
28056         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
28058 2013-05-02  Richard Biener  <rguenther@suse.de>
28060         PR middle-end/57140
28061         * tree-inline.c (copy_loops): Properly handle removed loops.
28062         (copy_cfg_body): Mark destination loops for fixup if source
28063         loops needed fixup.
28065 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
28067         PR target/56732
28068         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
28069         generating simple_return for naked functions.
28071 2013-05-02  Martin Jambor  <mjambor@suse.cz>
28073         PR middle-end/56988
28074         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
28075         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
28076         flags match.
28077         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
28078         ipa_agg_replacement_value structures.
28079         (known_aggs_to_agg_replacement_list): Likewise.
28080         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
28081         (read_agg_replacement_chain): Likewise.
28082         (ipcp_transform_function): Also check that by_ref flags match.
28084 2013-05-02  Richard Biener  <rguenther@suse.de>
28086         * graphds.h (struct graph): Add obstack member.
28087         * graphds.c (new_graph): Initialize obstack and allocate
28088         vertices from it.
28089         (add_edge): Allocate edge from the obstack.
28090         (free_graph): Free the obstack instead of all edges and vertices.
28092 2013-05-02  Teresa Johnson  <tejohnson@google.com>
28094         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
28095         divides.
28096         * cfg.c (update_bb_profile_for_threading): Ditto.
28097         * tree-inline.c (copy_bb): Ditto.
28098         (copy_edges_for_bb): Ditto.
28099         (initialize_cfun): Ditto.
28100         (copy_cfg_body): Ditto.
28101         (expand_call_inline): Ditto.
28102         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
28103         (estimate_node_size_and_time): Ditto.
28104         (inline_merge_summary): Ditto.
28105         * cgraphclones.c (cgraph_clone_edge): Ditto.
28106         (cgraph_clone_node): Ditto.
28107         * sched-rgn.c (compute_dom_prob_ps): Ditto.
28108         (compute_trg_info): Ditto.
28110 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
28112         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
28113         S reg when fp attribute set.
28114         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
28116 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
28118         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
28119         New pattern.
28120         (*and_one_cmplsi3_compare0_uxtw): Likewise.
28121         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
28122         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
28124 2013-05-02  Richard Biener  <rguenther@suse.de>
28126         * tree-scalar-evolution.c (scev_info_hasher): Remove.
28127         (struct instantiate_cache_entry): New type.
28128         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
28129         (struct instantiate_cache_type): New type.
28130         (set_instantiated_value, get_instantiated_value): Remove.
28131         (get_instantiated_value_entry): New function.
28132         (instantiate_scev_name): Use the new cache and adjust.
28133         (instantiate_scev_poly): Adjust.
28134         (instantiate_scev_binary): Likewise.
28135         (instantiate_array_ref): Likewise.
28136         (instantiate_scev_convert): Likewise.
28137         (instantiate_scev_not): Likewise.
28138         (instantiate_scev_3): Likewise.
28139         (instantiate_scev_2): Likewise.
28140         (instantiate_scev_r): Likewise.
28141         (instantiate_scev): Likewise.
28142         (resolve_mixers): Likewise.
28144 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
28146         PR target/57091
28147         * lra-constraints.c (best_small_class_operands_num): Remove.
28148         (process_alt_operands): Remove small_class_operands_num.  Take
28149         small classes operands into losers and only if the operand is not
28150         matched.  Modify debugging output.
28151         (curr_insn_transform): Remove best_small_class_operands_num.
28152         Print insn name.
28154 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28156         * config/aarch64/aarch64-builtins.c
28157         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
28158         * config/aarch64/aarch64-simd-builtins.def
28159         (reduc_splus_): Add new modes.
28160         (reduc_uplus_): New.
28161         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
28162         (reduc_uplus_v4sf): Likewise.
28163         (reduc_splus_v4sf): Likewise.
28164         (aarch64_addv<mode>): Likewise.
28165         (reduc_uplus_<mode>): Likewise.
28166         (reduc_splus_<mode>): Likewise.
28167         (aarch64_addvv2di): Likewise.
28168         (reduc_uplus_v2di): Likewise.
28169         (reduc_splus_v2di): Likewise.
28170         (aarch64_addvv2si): Likewise.
28171         (reduc_uplus_v2si): Likewise.
28172         (reduc_splus_v2si): Likewise.
28173         (reduc_<sur>plus_<mode>): New.
28174         (reduc_<sur>plus_v2di): Likewise.
28175         (reduc_<sur>plus_v2si): Likewise.
28176         (reduc_<sur>plus_v4sf): Likewise.
28177         (aarch64_addpv4sf): Likewise.
28178         * config/aarch64/arm_neon.h
28179         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
28180         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
28181         add UNSPEC_SADDV, UNSPEC_UADDV.
28182         (SUADDV): New.
28183         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
28185 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28187         * config/aarch64/arm_neon.h
28188         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
28190 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28192         * config/aarch64/aarch64-builtins
28193         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
28195 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28197         * config/aarch64/aarch64-simd-builtins.def
28198         (reduc_smax_): New.
28199         (reduc_smin_): Likewise.
28200         (reduc_umax_): Likewise.
28201         (reduc_umin_): Likewise.
28202         (reduc_smax_nan_): Likewise.
28203         (reduc_smin_nan_): Likewise.
28204         (fmax): Remove.
28205         (fmin): Likewise.
28206         (smax): Update for V2SF, V4SF and V2DF modes.
28207         (smin): Likewise.
28208         (smax_nan): New.
28209         (smin_nan): Likewise.
28210         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
28211         (<su><maxmin><mode>3): ...This, refactor.
28212         (s<maxmin><mode>3): New.
28213         (<maxmin_uns><mode>3): Likewise.
28214         (reduc_<maxmin_uns>_<mode>): Refactor.
28215         (reduc_<maxmin_uns>_v4sf): Likewise.
28216         (reduc_<maxmin_uns>_v2si): Likewise.
28217         (aarch64_<fmaxmin><mode>: Remove.
28218         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
28219         new builtin names.
28220         (vmin<q>_f<32,64>): Likewise.
28221         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28222         (FMAXMIN): New.
28223         (su): Add mappings for smax, smin, umax, umin.
28224         (maxmin): New.
28225         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28226         (FMAXMIN): Rename as...
28227         (FMAXMIN_UNS): ...This.
28228         (maxminv): Remove.
28229         (fmaxminv): Likewise.
28230         (fmaxmin): Likewise.
28231         (maxmin_uns): New.
28232         (maxmin_uns_op): Likewise.
28234 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28236         * config/aarch64/arm_neon.h
28237         (vac<ge, gt><sd>_f<32, 64>): Rename to...
28238         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
28239         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
28241 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28243         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
28244         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
28246 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28248         * config/aarch64/aarch64-simd.md
28249         (vcond<mode>_internal): Handle special cases for constant masks.
28250         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
28251         (vcondu<mode><mode>): Likewise.
28252         (vcond<v_cmp_result><mode>): New.
28254 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28256         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
28257         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
28258         * config/aarch64/aarch64-simd-builtins.def
28259         (cmeq): Update to BUILTIN_VALLDI.
28260         (cmgt): Likewise.
28261         (cmge): Likewise.
28262         (cmle): Likewise.
28263         (cmlt): Likewise.
28264         * config/aarch64/arm_neon.h
28265         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
28266         to builtins or C as appropriate.
28268 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28270         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28271         (cmgeu): ...This.
28272         (cmhi): Rename to...
28273         (cmgtu): ...This.
28274         * config/aarch64/aarch64-simd.md
28275         (simd_mode): Add SF.
28276         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28277         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28278         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28279         (cstore<mode>_neg): ...This.
28280         * config/aarch64/iterators.md
28281         (VALLF): new.
28282         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28283         (COMPARISONS): New.
28284         (UCOMPARISONS): Likewise.
28285         (optab): Add missing comparisons.
28286         (n_optab): New.
28287         (cmp_1): Likewise.
28288         (cmp_2): Likewise.
28289         (CMP): Likewise.
28290         (cmp): Remove.
28291         (VCMP_S): Likewise.
28292         (VCMP_U): Likewise.
28293         (V_cmp_result): Add DF, SF modes.
28294         (v_cmp_result): Likewise.
28295         (v): Likewise.
28296         (vmtype): Likewise.
28297         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28299 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
28301         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28302         define_insn to define_insn_and_split.
28303         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28304         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28305         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28306         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28307         (thumb2_negscc): Likewise.
28309 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
28311         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28313 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
28315         * config/arm/thumb2.md: Remove trailing whitespaces.
28317 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28319         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28320         Use gen_int_mode rather than GEN_INT.
28322 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
28324         * value-prof.c (stream_in_histogram_value): Remove the strayed
28325         debug_gimple_stmt.
28327 2013-04-30  Richard Biener  <rguenther@suse.de>
28329         PR middle-end/57122
28330         * cfghooks.c (split_edge): Properly check for the loop latch edge.
28332 2013-04-30  Richard Biener  <rguenther@suse.de>
28334         PR middle-end/57107
28335         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28337 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
28339         PR rtl-optimization/56957
28340         PR rtl-optimization/57105
28341         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28342         variable.  Use just INSN_UID for determining whether an insn
28343         should be only disconnected from the insn stream.
28344         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28346 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
28348         PR tree-optimization/57104
28349         * tsan.c (instrument_expr): Don't instrument accesses to
28350         DECL_HARD_REGISTER VAR_DECLs.
28352 2013-04-30  Richard Biener  <rguenther@suse.de>
28354         * function.h (loops_for_fn): New inline function.
28355         (set_loops_for_fn): Likewise.
28356         * cfgloop.h (place_new_loop): Add struct function parameter.
28357         (get_loop): Likewise.
28358         (get_loops): Likewise.
28359         (number_of_loops): Likewise.
28360         (fel_next): Adjust.
28361         (fel_init): Likewise.
28362         * cfg.c (get_loop_copy): Adjust.
28363         * cfgloop.c (flow_loops_dump): Likewise.
28364         (record_loop_exits): Likewise.
28365         (verify_loop_structure): Likewise.
28366         * cfgloopanal.c (mark_irreducible_loops): Likewise.
28367         (estimate_reg_pressure_cost): Likewise.
28368         (mark_loop_exit_edges): Likewise.
28369         * cfgloopmanip.c (place_new_loop): Likewise.
28370         (add_loop): Likewise.
28371         (duplicate_loop): Likewise.
28372         * graph.c (draw_cfg_nodes): Likewise.
28373         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28374         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28375         (extract_affine_chrec): Likewise.
28376         (build_scop_iteration_domain): Likewise.
28377         * graphite.c (graphite_initialize): Likewise.
28378         * ira-build.c (create_loop_tree_nodes): Likewise.
28379         (more_one_region_p): Likewise.
28380         (rebuild_regno_allocno_maps): Likewise.
28381         (mark_loops_for_removal): Likewise.
28382         (mark_all_loops_for_removal): Likewise.
28383         (remove_unnecessary_regions): Likewise.
28384         (ira_build): Likewise.
28385         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28386         * loop-init.c (fix_loop_structure): Likewise.
28387         (gate_rtl_move_loop_invariants): Likewise.
28388         (gate_rtl_unswitch): Likewise.
28389         (gate_rtl_unroll_and_peel_loops): Likewise.
28390         (rtl_doloop): Likewise.
28391         * lto-streamer-in.c (input_cfg): Likewise.
28392         * lto-streamer-out.c (output_cfg): Likewise.
28393         * modulo-sched.c (sms_schedule): Likewise.
28394         * predict.c (tree_estimate_probability): Likewise.
28395         (tree_estimate_probability_driver): Likewise.
28396         (estimate_loops): Likewise.
28397         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28398         (move_sese_region_to_fn): Likewise.
28399         (debug_loop_num): Likewise.
28400         * tree-chrec.c (chrec_evaluate): Likewise.
28401         (hide_evolution_in_other_loops_than_loop): Likewise.
28402         (chrec_component_in_loop_num): Likewise.
28403         (reset_evolution_in_loop): Likewise.
28404         (evolution_function_is_invariant_rec_p): Likewise.
28405         * tree-if-conv.c (main_tree_if_conversion): Likewise.
28406         * tree-inline.c (copy_loops): Likewise.
28407         (copy_cfg_body): Likewise.
28408         (tree_function_versioning): Likewise.
28409         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28410         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28411         Likewise.
28412         (add_to_evolution_1): Likewise.
28413         (scev_const_prop): Likewise.
28414         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28415         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28416         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28417         (tree_ssa_lim_initialize): Likewise.
28418         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28419         (verify_loop_closed_ssa): Likewise.
28420         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
28421         (tree_ssa_loop_im): Likewise.
28422         (tree_ssa_loop_unswitch): Likewise.
28423         (tree_vectorize): Likewise.
28424         (check_data_deps): Likewise.
28425         (tree_ssa_loop_ivcanon): Likewise.
28426         (tree_ssa_loop_bounds): Likewise.
28427         (tree_complete_unroll): Likewise.
28428         (tree_complete_unroll_inner): Likewise.
28429         (tree_parallelize_loops): Likewise.
28430         (tree_ssa_loop_prefetch): Likewise.
28431         (tree_ssa_loop_ivopts): Likewise.
28432         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28433         * tree-vectorizer.c (vectorize_loops): Likewise.
28435 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
28437         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28438         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28439         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28440         with EABI_LINK_SPEC.
28442 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28444         PR target/44578
28445         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28446         alternative.
28448 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
28450         PR target/57097
28451         * lra-constraints.c (process_alt_operands): Discourage a bit more
28452         using memory for pseudos.  Print cost dump for alternatives.
28453         Modify cost values for conflicts with early clobbers.
28454         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28456 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28458         PR target/57098
28459         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28461 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28463         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28464         from/to S register.
28465         (movdi_aarch64): Support LDR/STR from/to D register.
28467 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28469         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28470         or higher by default.
28472 2013-04-29  Richard Biener  <rguenther@suse.de>
28474         PR middle-end/57075
28475         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28476         even if not adding abnormal edges for calls that can make
28477         abnormal gotos.
28479 2013-04-29  Richard Biener  <rguenther@suse.de>
28481         PR middle-end/57103
28482         * tree-cfg.c (move_stmt_op): Fix condition under which to update
28483         TREE_BLOCK.
28484         (move_stmt_r): Remove redundant checking.
28486 2013-04-29  Teresa Johnson  <tejohnson@google.com>
28488         PR bootstrap/57077
28489         * basic-block.h (apply_scale): New function.
28490         (apply_probability): Use apply_scale.
28491         * gimple-streamer-in.c (input_bb): Ditto.
28492         * lto-streamer-in.c (input_cfg): Ditto.
28493         * lto-cgraph.c (merge_profile_summaries): Ditto.
28494         * tree-optimize.c (execute_fixup_cfg): Ditto.
28495         * tree-inline.c (copy_bb): Update comment to use apply_scale.
28496         (copy_edges_for_bb): Ditto.
28497         (copy_cfg_body): Ditto.
28499 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28501         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28502         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28503         (tail_merge_optimize): Handle current_loops == NULL.
28505 2013-04-26  Jeff Law  <law@redhat.com>
28507         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28508         (simplify_cond_using_ranges): Generalize code to simplify
28509         COND_EXPRs where one argument is a constant and the other
28510         is an SSA_NAME created by an integral type conversion.
28512 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28514         * config/arm/arm.md (store_minmaxsi): Use only when
28515         optimize_insn_for_size_p.
28517 2013-04-29  Christian Bruel  <christian.bruel@st.com>
28519         PR target/57108
28520         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28522 2013-04-29  Richard Biener  <rguenther@suse.de>
28524         PR middle-end/57089
28525         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28526         loop tree make sure to schedule a fixup for the child as well.
28527         (expand_omp_for_generic): Properly add loops.
28528         (expand_omp_for_static_nochunk): Likewise.
28529         (expand_omp_for_static_chunk): Likewise.
28530         (expand_omp_for): For the degenerate case fixup loops.
28531         (expand_omp_sections): Fix default bb placement in loops.
28532         (expand_omp_atomic_pipeline): Properly add loops.
28534 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28536         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28538 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28540         * tree-ssa-tail-merge.c: Update header comment.
28542 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28544         * config/aarch64/arm_neon.h
28545         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28546         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28547         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28548         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28549         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28550         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28551         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28552         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28554 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28556         * config/aarch64/aarch64-simd.md
28557         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28558         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28559         fix_trunc, fixuns_trunc.
28560         (ftrunc<VDQF:mode>2): New.
28561         * config/aarch64/iterators.md (optab): Add fix, fixuns.
28562         (fix_trunc_optab): New.
28564 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28566         * config/aarch64/aarch64-builtins.c
28567         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28568         iceilf, lround, iroundf.
28570 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28572         PR target/54349
28573         * config/i386/i386.h (enum ix86_tune_indices)
28574         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28575         New, split from X86_TUNE_INTER_UNIT_MOVES.
28576         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28577         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28578         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28579         (TARGET_INTER_UNIT_MOVES): Remove.
28580         * config/i386/i386.c (initial_ix86_tune_features): Update.
28581         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28582         (ix86_expand_convert_uns_didf_sse): Use
28583         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28584         (ix86_expand_vector_init_one_nonzero): Ditto.
28585         (ix86_expand_vector_init_interleave): Ditto.
28586         (inline_secondary_memory_needed): Return true for moves from SSE class
28587         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28588         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28589         * config/i386/constraints.md (Yi, Ym): Depend on
28590         TARGET_INTER_UNIT_MOVES_TO_VEC.
28591         (Yj, Yn): New constraints.
28592         * config/i386/i386.md (*movdi_internal): Change constraints of
28593         operand 1 from Yi to Yj and from Ym to Yn.
28594         (*movsi_internal): Ditto.
28595         (*movdf_internal): Ditto.
28596         (*movsf_internal): Ditto.
28597         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28598         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28599         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28600         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28601         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28602         * config/i386/sse.md (movdi_to_sse): Ditto.
28603         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28604         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28605         TARGET_INTER_UNIT_MOVES.
28606         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28607         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28608         instead of TARGET_INTER_UNIT_MOVES.
28609         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28610         operand 1 from Yi to Yj and from Ym to Yn.
28612 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28614         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28615         (float_truncate_hi_): Likewise.
28616         (float_extend_lo_): Likewise.
28617         (float_truncate_lo_): Likewise.
28618         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28619         (aarch64_float_extend_lo_v2df): Likewise.
28620         (vec_unpacks_hi_v4sf): Likewise.
28621         (aarch64_float_truncate_lo_v2sf): Likewise.
28622         (aarch64_float_truncate_hi_v4sf): Likewise.
28623         (vec_pack_trunc_v2df): Likewise.
28624         (vec_pack_trunc_df): Likewise.
28626 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28628         * config/aarch64/aarch64-builtins.c
28629         (aarch64_fold_builtin): Fold float conversions.
28630         * config/aarch64/aarch64-simd-builtins.def
28631         (floatv2si, floatv4si, floatv2di): New.
28632         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28633         * config/aarch64/aarch64-simd.md
28634         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28635         * config/aarch64/iterators.md (FLOATUORS): New.
28636         (optab): Add float, floatuns.
28637         (su_optab): Likewise.
28639 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28641         * config/aarch64/aarch64-builtins.c
28642         (aarch64_builtin_vectorized_function): Use new names for
28643         fcvt builtins.
28644         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28645         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28646         (fcvtzu): Split as...
28647         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28648         (fcvtas): Split as...
28649         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28650         (fcvtau): Split as...
28651         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28652         (fcvtps): Split as...
28653         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28654         (fcvtpu): Split as...
28655         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28656         (fcvtms): Split as...
28657         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28658         (fcvtmu): Split as...
28659         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28660         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28661         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28662         (lfrintnusf, lfrintnudf): Likewise.
28663         * config/aarch64/aarch64-simd.md
28664         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28665         define_insn.
28666         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28667         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28668         (fcvt_pattern): Likewise.
28670 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28672         * config/aarch64/aarch64-simd.md
28673         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28674         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28676 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28678         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28679         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28680         (vrnd<a,m,n,p>_f32): Implement using builtins.
28681         (vrnd<i,x><q>_f<32, 64>): New.
28683 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28685         * config/aarch64/aarch64-builtins.c
28686         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28687         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28688         (frintz): Rename to...
28689         (btrunc): ...this.
28690         (frintp): Rename to...
28691         (ceil): ...this.
28692         (frintm): Rename to...
28693         (floor): ...this.
28694         (frinti): Rename to...
28695         (nearbyint): ...this.
28696         (frintx): Rename to...
28697         (rint): ...this.
28698         (frinta): Rename to...
28699         (round): ...this.
28700         * config/aarch64/aarch64-simd.md
28701         (aarch64_frint<frint_suffix><mode>): Delete.
28702         (<frint_pattern><mode>2): Convert to insn.
28703         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28704         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28705         (frint_pattern): Likewise.
28706         (frint_suffix): Likewise.
28708 2013-04-29  Richard Biener  <rguenther@suse.de>
28710         PR tree-optimization/57081
28711         * loop-init.c: Include tree-flow.h.
28712         (loop_optimizer_finalize): Free number of iteration estimates.
28713         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28715 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
28717         PR tree-optimization/57083
28718         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28719         non-singleton shift count range, zero extend low_bound for uns case.
28721         * config/i386/predicates.md (general_vector_operand): New predicate.
28722         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28723         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28724         if they aren't nonimmediate operands.  If their original values
28725         satisfy const_vector_equal_evenodd_p, don't shift them.
28726         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28727         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
28728         if not nonimmediate_operand.
28729         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28730         instead of register_operand.
28731         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28733 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28735         * stor-layout.c (finalize_size_functions): Allocate a structure and
28736         reset cfun before dumping the functions.
28738 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
28740         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28742         PR target/56866
28743         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28744         use xop_pmacsdqh if uns_p.
28745         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28746         the immediate rotate count.
28748 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
28750         * rtl.h (struct rtx_def): Add comment for field jump.
28751         (LRA_SUBREG_P): New macro.
28752         * recog.c (register_operand): Check LRA_SUBREG_P.
28753         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28754         stack frame.
28755         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28756         (lra_final_code_change): Skip subreg change for operators.
28757         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28758         if there are no operand changes.
28759         * lra-constraints.c (curr_insn_set): New.
28760         (match_reload): Set LRA_SUBREG_P.
28761         (emit_spill_move): Ditto.
28762         (check_and_process_move): Use curr_insn_set. Process only single
28763         set insns.  Don't initialize sec_mem_p and change_p.
28764         (simplify_operand_subreg): Use LRA_SUBREG_P.
28765         (reg_in_class_p): New function.
28766         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28767         of #ifdef.  Add code to remove cycling.
28768         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28769         non-null disp.  Reload inner instead of disp when base and index
28770         are null.  Try to put lo_sum into register.
28771         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28772         (check_and_process_move): Move code for move cost check to
28773         simple_move_p.  Remove equiv_substitution.
28774         (simple_move_p): New function.
28775         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28776         curr_insn_set.  Call check_and_process_move only for single set
28777         insns.  Use the new function.  Move call of check_and_process_move
28778         after operand equiv substitution and address process.
28780 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28782         PR go/57045
28783         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28784         with nonlocal goto receivers or returns twice calls, ignore
28785         unininitialized values from abnormal edges to nl goto receiver
28786         or returns twice call.
28788 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28790         PR tree-optimization/57051
28791         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28792         and VEC_RSHIFT_EXPR if shift count is a multiple of element
28793         bitsize.
28795 2013-04-26  Richard Biener  <rguenther@suse.de>
28797         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28798         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
28799         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28800         (fixup_loop_arrays_after_move): New function.
28801         (move_sese_region_to_fn): Properly outline the loop tree parts
28802         of the SESE region.
28804 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
28806         * config/i386/i386.md (type, unit): Fix long lines.
28808 2013-04-26  Richard Biener  <rguenther@suse.de>
28810         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28811         (lto-streamer-out.o): Likewise.
28812         * cfgloop.c (init_loops_structure): Export, add struct function
28813         argument and adjust.
28814         (flow_loops_find): Adjust.
28815         * cfgloop.h (enum loop_estimation): Add EST_LAST.
28816         (init_loops_structure): Declare.
28817         * lto-streamer-in.c: Include cfgloop.h.
28818         (input_cfg): Input the loop tree.
28819         * lto-streamer-out.c: Include cfgloop.h.
28820         (output_cfg): Output the loop tree.
28821         (output_struct_function_base): Do not drop PROP_loops.
28823 2013-03-26  Richard Biener  <rguenther@suse.de>
28825         * tree-cfg.c (execute_build_cfg): Build the loop tree.
28826         (pass_build_cfg): Provide PROP_loops.
28827         (move_sese_region_to_fn): Remove loops that are outlined into fn
28828         for now.
28829         * tree-inline.c: Include cfgloop.h.
28830         (initialize_cfun): Do not drop PROP_loops.
28831         (copy_loops): New function.
28832         (copy_cfg_body): Copy loop structure.
28833         (tree_function_versioning): Initialize destination loop tree.
28834         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28835         (pass_parallelize_loops): Do IL verification.
28836         * loop-init.c (loop_optimizer_init): Fixup loops if required.
28837         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28838         the CFG make sure we fixup loops as well.
28839         * tree-ssa-tail-merge.c: Include cfgloop.h.
28840         (replace_block_by): When merging loop latches mark loops for fixup.
28841         * lto-streamer-out.c (output_struct_function_base): Drop
28842         PROP_loops for now.
28843         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28844         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28845         * ipa-split.c: Include cfgloop.h.
28846         (split_function): Add the new return block to the loop tree root.
28847         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28848         whether we have removed the forwarder block.
28849         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28850         * cfgloop.h (place_new_loop): Declare.
28851         * cfgloopmanip.c (place_new_loop): Export.
28852         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28853         (tree-switch-conversion.o): Likewise.
28854         (tree-complex.o): Likewise.
28855         (tree-inline.o): Likewise.
28856         (tree-ssa-tailmerge.o): Likewise.
28857         (ipa-split.o): Likewise.
28858         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28859         (tree-ssa-copy.o): Likewise.
28860         * tree-switch-conversion.c: Include cfgloop.h
28861         (process_switch): If we emit a bit-test cascade, schedule loops
28862         for fixup.
28863         * tree-complex.c: Include cfgloop.h.
28864         (expand_complex_div_wide): Properly add new basic-blocks to loops.
28865         * asan.c: Include cfgloop.h.
28866         (create_cond_insert_point): Properly add new basic-blocks to
28867         loops, schedule loop fixup.
28868         * cfgloop.c (verify_loop_structure): Check that looks are not
28869         marked for fixup.
28870         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28871         to loops.
28872         (expand_omp_for_generic): Likewise.
28873         (expand_omp_sections): Likewise.
28874         (expand_omp_atomic_pipeline): Schedule loops for fixup.
28875         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28876         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28877         is initialized, not when loops are present.
28878         * tree-parloops.c (parallelize_loops): Remove checking here.
28879         * passes.c (init_optimization_passes): Schedule a copy-propagation
28880         pass before complete unrolling of inner loops.
28882 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28884         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28885         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28886         (colorize_init): Add argument to _WIN32 version.
28887         * toplev.c: Include diagnostic-color.h.
28888         (process_options): Default to -fdiagnostics-color=auto if
28889         GCC_COLORS env var is in the environment.
28890         * common.opt (fdiagnostics-color=): Add Var and Init.
28891         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28892         env var is in the environment, the default is auto rather than never.
28894         * diagnostic.h (file_name_as_prefix): Add context argument.
28895         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
28896         the string as locus.
28897         * langhooks.c (lhd_print_error_function): Adjust caller.
28899 2013-04-25  Lawrence Crowl  <crowl@google.com>
28901         * var-tracking.c (shared_hash_def::htab):
28902         Change type to hash_table.  Update dependent calls and types.
28904 2013-04-25  Lawrence Crowl  <crowl@google.com>
28906         * Makefile.in: Update as needed below.
28908         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28909         Move declaration to after the type's method definitons.
28911         * attribs.c (htab_t scoped_attributes::attribute_hash):
28912         Change type to hash_table.  Update dependent calls and types.
28914         * bitmap.c (htab_t bitmap_desc_hash):
28915         Change type to hash_table.  Update dependent calls and types.
28917         * cselib.c (htab_t cselib_hash_table):
28918         Change type to hash_table.  Update dependent calls and types.
28920         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28921         (hash_string_slot_node): Move implementation into lto-streamer.h
28922         struct string_slot_hasher.
28923         (eq_string_slot_node): Likewise.
28925         * data-streamer-out.c: Update output_block::string_hash_table
28926         dependent calls and types.
28928         * dwarf2cfi.c (htab_t trace_index):
28929         Change type to hash_table.  Update dependent calls and types.
28931         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28932         Change type to hash_table.  Update dependent calls and types.
28933         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28934         (htab_t optimize_external_refs::map): Likewise.
28935         (htab_t output_comp_unit::extern_map): Likewise.
28936         (htab_t output_comdat_type_unit::extern_map): Likewise.
28937         (htab_t output_macinfo::macinfo_htab): Likewise.
28938         (htab_t optimize_location_lists::htab): Likewise.
28939         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28941         * except.c (htab_t ehspec_hash_type):
28942         Change type to hash_table.  Update dependent calls and types.
28943         (assign_filter_values::ttypes): Likewise.
28944         (assign_filter_values::ehspec): Likewise.
28945         (sjlj_assign_call_site_values::ar_hash): Likewise.
28946         (convert_to_eh_region_ranges::ar_hash): Likewise.
28948         * gcse.c (htab_t pre_ldst_table):
28949         Change type to hash_table.  Update dependent calls and types.
28951         * ggc-common.c (htab_t saving_htab):
28952         Change type to hash_table.  Update dependent calls and types.
28953         (htab_t loc_hash): Likewise.
28954         (htab_t ptr_hash): Likewise.
28955         (call_count): Rename ggc_call_count.
28956         (call_alloc): Rename ggc_call_alloc.
28957         (loc_descriptor): Rename make_loc_descriptor.
28958         (add_statistics): Rename ggc_add_statistics.
28960         * ggc-common.c (saving_htab):
28961         Change type to hash_table.  Update dependent calls and types.
28963         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28964         (push_gimplify_context): Likewise.
28965         (pop_gimplify_context): Likewise.
28966         (struct gimple_temp_hash_elt): Added.
28967         (struct gimplify_hasher): Likewise.
28968         (struct gimplify_ctx.temp_htab):
28969         Change type to hash_table.  Update dependent calls and types.
28971         * gimple-fold.c: Include gimplify-ctx.h.
28973         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28974         Change type to hash_table.  Update dependent calls and types.
28975         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28976         avoid potential global name collision.
28978         * gimplify.c: Include gimplify-ctx.h.
28979         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28980         (htab_t gimplify_ctx::temp_htab):
28981         Update dependent calls and types for new type hash_table.
28982         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28983         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28985         * gimplify-ctx.h: New.
28986         (struct gimple_temp_hash_elt): Move from gimplify.c.
28987         (class gimplify_hasher): New.
28988         (struct gimplify_ctx): Move from gimple.h.
28989         (htab_t gimplify_ctx::temp_htab):
28990         Change type to hash_table.  Update dependent calls and types.
28992         * graphite-clast-to-gimple.c: Include graphite-htab.h.
28993         (htab_t ivs_params::newivs_index):
28994         Change type to hash_table.  Update dependent calls and types.
28995         (htab_t ivs_params::params_index): Likewise.
28996         (htab_t print_generated_program::params_index): Likewise.
28997         (htab_t gloog::newivs_index): Likewise.
28998         (htab_t gloog::params_index): Likewise.
29000         * graphite.c: Include graphite-htab.h.
29001         4htab_t graphite_transform_loops::bb_pbb_mapping):
29002         Change type to hash_table.  Update dependent calls and types.
29004         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
29005         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
29006         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
29008         * graphite-dependences.c: Include graphite-htab.h.
29009         (loop_is_parallel_p): Change hash table type of parameter.
29011         * graphite-htab.h: New.
29012         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
29013         (extern find_pbb_via_hash): Move from graphite-poly.h.
29014         (extern loop_is_parallel_p): Move from graphite-poly.h.
29015         (extern get_loop_body_pbbs): Move from graphite-poly.h.
29017         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
29018         (extern loop_is_parallel_p): Move to graphite-htab.h.
29019         (extern get_loop_body_pbbs): Move to graphite-htab.h.
29021         * haifa-sched.c (htab_t delay_htab):
29022         Change type to hash_table.  Update dependent calls and types.
29023         (htab_t delay_htab_i2): Likewise.
29025         * ira-color.c (htab_t allocno_hard_regs_htab):
29026         Change type to hash_table.  Update dependent calls and types.
29028         * ira-costs.c (htab_t cost_classes_htab):
29029         Change type to hash_table.  Update dependent calls and types.
29031         * loop-invariant.c (htab_t merge_identical_invariants::eq):
29032         Change type to hash_table.  Update dependent calls and types.
29034         * loop-iv.c (htab_t bivs):
29035         Change type to hash_table.  Update dependent calls and types.
29037         * loop-unroll.c (htab_t opt_info::insns_to_split):
29038         Change type to hash_table.  Update dependent calls and types.
29039         (htab_t opt_info::insns_with_var_to_expand): Likewise.
29041         * lto-streamer.h (struct string_slot): Move from data-streamer.h
29042         (struct string_slot_hasher): New.
29043         (htab_t output_block::string_hash_table):
29044         Change type to hash_table.  Update dependent calls and types.
29046         * lto-streamer-in.c (freeing_string_slot_hasher): New.
29047         (htab_t file_name_hash_table):
29048         Change type to hash_table.  Update dependent calls and types.
29050         * lto-streamer-out.c: Update output_block::string_hash_table dependent
29051         calls and types.
29053         * lto-streamer.c (htab_t tree_htab):
29054         Change type to hash_table.  Update dependent calls and types.
29056         * omp-low.c: Include gimplify-ctx.h.
29058         * passes.c (htab_t name_to_pass_map):
29059         Change type to hash_table.  Update dependent calls and types.
29060         (pass_traverse): Rename to passes_pass_traverse.
29062         * plugin.c (htab_t event_tab):
29063         Change type to hash_table.  Update dependent calls and types.
29065         * postreload-gcse.c (htab_t expr_table):
29066         Change type to hash_table.  Update dependent calls and types.
29067         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
29069         * sese.c (debug_rename_map_1): Make extern.
29070         (htab_t copy_bb_and_scalar_dependences::rename_map):
29071         Change type to hash_table.  Update dependent calls and types.
29073         * sese.h (extern debug_rename_map): Move to .c file.
29075         * store-motion.c (htab_t store_motion_mems_table):
29076         Change type to hash_table.  Update dependent calls and types.
29078         * trans-mem.c (htab_t tm_new_mem_hash):
29079         Change type to hash_table.  Update dependent calls and types.
29081         * tree-browser.c (htab_t TB_up_ht):
29082         Change type to hash_table.  Update dependent calls and types.
29084         * tree-cfg.c (htab_t discriminator_per_locus):
29085         Change type to hash_table.  Update dependent calls and types.
29087         * tree-complex.c: Include tree-hasher.h
29088         (htab_t complex_variable_components):
29089         Change type to hash_table.  Update dependent calls and types.
29091         * tree-eh.c (htab_t finally_tree):
29092         Change type to hash_table.  Update dependent calls and types.
29094         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
29095         struct int_tree_hasher.
29096         (extern int_tree_map_eq): Likewise.
29097         (uid_decl_map_hash): Removed.
29098         (extern decl_tree_map_eq): Likewise.
29100         * tree-hasher.h: New.
29101         (struct int_tree_hasher): New.
29102         (typedef int_tree_htab_type): New.
29104         * tree-inline.c: Include gimplify-ctx.h.
29106         * tree-mudflap.c: Include gimplify-ctx.h.
29108         * tree-parloops.c: Include tree-hasher.h.
29109         (htab_t eliminate_local_variables_stmt::decl_address):
29110         Change type to hash_table.  Update dependent calls and types.
29111         (htab_t separate_decls_in_region::decl_copies): Likewise.
29113         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
29114         Change type to hash_table.  Update dependent calls and types.
29116         * tree-sra.c (candidates):
29117         Change type to hash_table.  Update dependent calls and types.
29119         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
29120         in tree-flow.h.
29121         (int_tree_map_hash): Likewise.
29123         * tree-ssa-dom.c (htab_t avail_exprs):
29124         Change type to hash_table.  Update dependent calls and types.
29126         * tree-ssa-live.c (var_map_base_init::tree_to_index):
29127         Change type to hash_table.  Update dependent calls and types.
29129         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
29130         Change type to hash_table.  Update dependent calls and types.
29132         * tree-ssa-phiopt.c (seen_ssa_names):
29133         Change type to hash_table.  Update dependent calls and types.
29135         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
29136         Change type to hash_table.  Update dependent calls and types.
29138         * tree-ssa-uncprop.c (equiv):
29139         Change type to hash_table.  Update dependent calls and types.
29141 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
29143         PR rtl-optimization/57003
29144         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
29145         call note_stores with kill_clobbered_value callback again after
29146         killing regs_invalidated_by_call.
29148 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29150         * config/aarch64/aarch64-simd.md
29151         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
29152         (aarch64_simd_bsl<mode>): Likewise.
29153         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
29155 2013-04-25  Marek Polacek  <polacek@redhat.com>
29157         PR tree-optimization/57066
29158         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
29160 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29162         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
29164 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29166         * config/aarch64/aarch64-builtins.c
29167         (aarch64_fold_builtin): New.
29168         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
29169         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
29170         * config/aarch64/aarch64-simd-builtins.def (abs): New.
29171         * config/aarch64/arm_neon.h
29172         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
29174 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29175             Tejas Belagod  <tejas.belagod@arm.com>
29177         * config/aarch64/aarch64-builtins.c
29178         (aarch64_gimple_fold_builtin): New.
29179         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
29180         * config/aarch64/aarch64-simd-builtins.def (addv): New.
29181         * config/aarch64/aarch64-simd.md (addpv4sf): New.
29182         (addvv4sf): Update.
29183         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
29185 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29187         * config/aarch64/aarch64.md
29188         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
29190 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29192         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
29193         (*ngcsi_uxtw): New pattern.
29195 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29196             Julian Brown  <julian@codesourcery.com>
29198         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
29199         (TB_DREG): Add T_V4HF.
29200         (v4hf_UP): New macro.
29201         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29202         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29203         Handle initialisation of V4HF. Adjust initialisation of reinterpret
29204         built-ins.
29205         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29206         (arm_vector_mode_supported_p): Handle V4HF.
29207         (arm_mangle_map): Handle V4HFmode.
29208         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
29209         * config/arm/arm_neon_builtins.def: Add entries for
29210         vcvtv4hfv4sf, vcvtv4sfv4hf.
29211         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
29212         (neon_vcvtv4hfv4sf): Likewise.
29213         * config/arm/neon-gen.ml: Handle half-precision floating point
29214         features.
29215         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
29216         * config/arm/arm_neon.h: Regenerate.
29217         * config/arm/neon.ml (type elts): Add F16.
29218         (type vectype): Add T_float16x4, T_floatHF.
29219         (type vecmode): Add V4HF.
29220         (type features): Add Requires_FP_bit feature.
29221         (elt_width): Handle F16.
29222         (elt_class): Likewise.
29223         (elt_of_class_width): Likewise.
29224         (mode_of_elt): Refactor.
29225         (type_for_elt): Handle F16, fix error messages.
29226         (vectype_size): Handle T_float16x4.
29227         (vcvt_sh): New function.
29228         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
29229         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
29230         (string_of_mode): Handle V4HF.
29231         * doc/arm-neon-intrinsics.texi: Regenerate.
29233 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29235         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
29236         format specifier in 'X' case.
29238 2013-04-25  Alan Modra  <amodra@gmail.com>
29240         PR target/57052
29241         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
29242         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
29243         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
29244         Repeat for many other rotate/shift and mask patterns using subregs.
29245         Name lshiftrt insns.
29246         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
29247         on WORDS_BIG_ENDIAN.
29249 2013-04-25  Alan Modra  <amodra@gmail.com>
29251         * config.gcc: Support little-endian powerpc-linux targets.
29252         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
29253         (LINK_OS_LINUX_SPEC): Define.
29254         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
29255         Preserve MASK_LITTLE_ENDIAN.
29256         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
29257         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
29258         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
29259         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
29260         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
29261         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
29262         Correct fp word order for little-endian.  Don't shift toc entries
29263         smaller than a word for little-endian.
29264         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
29265         (bswapdi2 splits): Correct low-part subreg for little-endian.
29266         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
29267         low/high where such is correct only for be.
29268         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29269         little-endian for -mcall-aixdesc.
29271 2013-04-25  Alan Modra  <amodra@gmail.com>
29273         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29274         replace_equiv_address_nv.
29276 2013-04-25  Alan Modra  <amodra@gmail.com>
29278         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29280 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29282         Revert:
29283         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29284         * rtl.h (struct rtx_def): ...
29286 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29288         PR rtl-optimizations/57046
29289         * lra-constraints (split_reg): Set up lra_risky_transformations_p
29290         for multi-reg splits.
29292 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
29294         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29296 2013-04-24  Sterling Augustine  <saugustine@google.com>
29298         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29299         (comp_dir_string, debug_str_dwo_section): New.
29300         (DEBUG_STR_DWO_SECTION): Rename to ...
29301         (DEBUG_DWO_STR_SECTION): ... this.
29302         (DEBUG_NORM_STR_SECTION): Delete.
29303         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29304         (DEBUG_STR_DWO_SECTION_FLAGS): New.
29305         (find_AT_string): Move most logic to ...
29306         (find_AT_string_in_table): ... here.  New.
29307         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29308         add_skeleton_AT_string.  Delete logic.
29309         (output_skeleton_debug_sections): Remove call to
29310         add_top_level_skeleton_die_attrs.
29311         (add_comp_dir_attribute): Move logic to comp_dir_string.
29312         (dwarf2out_init): Initialize debug_str_dwo_section.
29313         (output_indirect_string): Call find_string_form.
29314         (output_indirect_strings): Rewrite.
29315         (prune_unused_types): Empty skeleton_debug_str_hash.
29316         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29317         (dwarf2out_finish):  Call output_indirect_strings.
29319 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
29321         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29323 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29325         * rtl.h (struct rtx_def): Add comment for field jump.
29326         (LRA_SUBREG_P): New macro.
29327         * recog.c (register_operand): Check LRA_SUBREG_P.
29328         * lra.c (lra): Add note at the end of RTL code. Align non-empty
29329         stack frame.
29330         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29331         (lra_final_code_change): Skip subreg change for operators.
29332         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29333         if there are no operand changes.
29334         * lra-constraints.c (curr_insn_set): New.
29335         (match_reload): Set LRA_SUBREG_P.
29336         (emit_spill_move): Ditto.
29337         (check_and_process_move): Use curr_insn_set. Process only single
29338         set insns.  Don't initialize sec_mem_p and change_p.
29339         (simplify_operand_subreg): Use LRA_SUBREG_P.
29340         (reg_in_class_p): New function.
29341         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
29342         of #ifdef.  Add code to remove cycling.
29343         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29344         non-null disp.  Reload inner instead of disp when base and index
29345         are null.  Try to put lo_sum into register.
29346         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29347         (check_and_process_move): Move code for move cost check to
29348         simple_move_p.  Remove equiv_substitution.
29349         (simple_move_p): New function.
29350         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
29351         curr_insn_set.  Call check_and_process_move only for single set
29352         insns.  Use the new function.  Move call of check_and_process_move
29353         after operand equiv substitution and address process.
29355 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
29357         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29358         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29359         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29361 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
29363         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29365 2013-04-24  Marek Polacek  <polacek@redhat.com>
29367         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29368         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29369         (select_loops_exit_conditions): Likewise.
29370         (number_of_iterations_for_all_loops): Likewise.
29371         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29372         (scev_analysis): Likewise.
29374 2013-04-02  Catherine Moore  <clm@codesourcery.com>
29375             Chao-ying Fu  <fu@mips.com>
29377         * config/mips/micromips.md (jraddiusp): New pattern.
29378         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29379         instruction if possible.
29381 2013-04-24  Alan Modra  <amodra@gmail.com>
29383         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29385 2013-04-24  Julian Brown  <julian@codesourcery.com>
29386             Chung-Lin Tang  <cltang@codesourcery.com>
29388         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29389         dependency behavior in enumeration type DIE generation. Add TODO note
29390         to comments about future DW_FORM_sdata/udata re-work of related code.
29392 2013-04-23  Lawrence Crowl  <crowl@google.com>
29394         * Makefile.in: Update as needed below.
29396         * hash-table.h (class hash_table):
29397         Correct many methods with parameter types compare_type to the correct
29398         value_type.  (Correct code was unlikely to notice the change.)
29399         (hash_table::elements_with_deleted) New.
29400         (class hashtable::iterator): New.
29401         (hashtable::begin()): New.
29402         (hashtable::end()): New.
29403         (FOR_EACH_HASH_TABLE_ELEMENT): New.
29405         * statistics.c (statistics_hashes):
29406         Change type to hash_table.  Update dependent calls and types.
29408         * tree-into-ssa.c (var_infos):
29409         Change type to hash_table.  Update dependent calls and types.
29411         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29412         Change type to hash_table.  Update dependent calls and types.
29414         * tree-ssa-loop-im.c (struct mem_ref.refs):
29415         Change type to hash_table.  Update dependent calls and types.
29417         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29418         Change type to hash_table.  Update dependent calls and types.
29420         * tree-ssa-sccvn.c (vn_tables_s::nary):
29421         Change type to hash_table.  Update dependent calls and types.
29422         (vn_tables_s::phis): Likewise.
29423         (vn_tables_s::references): Likewise.
29425         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29426         (vn_reference_eq): Update parameter and return types.
29428         * tree-ssa-structalias.c (pointer_equiv_class_table):
29429         Change type to hash_table.  Update dependent calls and types.
29430         (location_equiv_class_table): Likewise.
29432         * tree-vect-data-refs.c: Consequential changes for making
29433         peeling a hash_table.
29435         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29436         (destroy_loop_vec_info): Dependent hash_table update.
29438         * tree-vectorizer.h (peeling_htab):
29439         Change type to hash_table.  Update dependent calls and types.
29441 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
29443         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29444         to check the register content is equal or not.
29445         * lra-constraints.c (match_reload): Use lra_assign_reg_val
29446         to assign register content record.
29447         * lra-eliminations.c (update_reg_eliminate): Use
29448         lra_update_reg_val_offset to update register content offset.
29449         * lra-int.h (struct lra_reg): Add offset member.
29450         (lra_reg_val_equal_p): New static inline function.
29451         (lra_update_reg_val_offset): New static inline function.
29452         (lra_assign_reg_val): New static inline function.
29453         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29454         to assign register content record.
29455         (initialize_lra_reg_info_element): Initial offset to zero.
29457 2013-04-23  Catherine Moore  <clm@codesourcery.com>
29459         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29460         operands.  Record compression.
29462 2013-04-23  Xinliang David Li  <davidxl@google.com>
29464         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29466 2013-04-23  Richard Biener  <rguenther@suse.de>
29468         PR middle-end/57036
29469         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29470         parameter, only add abnormal goto edges from the copied body
29471         if the call could perform abnormal gotos.
29472         (copy_cfg_body): Adjust.
29474 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
29476         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29478 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
29480         * coretypes.h (gimple_stmt_iterator): Add struct to make
29481         compatible with C.
29483 2013-04-23  Richard Biener  <rguenther@suse.de>
29485         PR tree-optimization/57026
29486         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29487         from SSA names occuring in abnormal PHI nodes.
29489 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29491         * lto/lto.c (print_lto_report_1): Fix LTO report names.
29493 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29495         * lto/lto.c (print_lto_report_1): Declare early.
29496         (read_cgraph_and_symbols): Call print_lto_report_1 early.
29498 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29500         * common.opt (-flto-report-wpa): Add.
29501         * doc/invoke.texi (-flto-report-wpa): Add.
29502         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29503         (lto_main): dito.
29505 2013-04-22  Xinliang David Li  <davidxl@google.com>
29507         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29508         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29509         * Makefile.in: New dependency
29511             David Daney <ddaney.cavm@gmail.com>
29513         * configure.ac (gcc_cv_as_micromips_support):  Use the
29514         --fatal-warnings option.
29515         * configure: Regenerate.
29517 2013-04-22  Marek Polacek  <polacek@redhat.com>
29519         PR sanitizer/56990
29520         * tsan.c (instrument_expr): Don't instrument expression
29521         in case its size is zero.
29523 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
29525         PR target/57032
29526         Revert:
29527         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
29529         * config/alpha/alpha.c (TARGET_LRA_P): New define.
29531 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29533         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29534         (gimple_stmt_iterator): New typedef.
29535         * gimple.h (gimple_stmt_iterator): Rename to...
29536         (gimple_stmt_iterator_d): ... This.
29537         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29538         trees be valid for GIMPLE and GENERIC.
29539         (TARGET_GIMPLE_FOLD_BUILTIN): New.
29540         * gimple-fold.c (gimple_fold_call): Call target hook
29541         gimple_fold_builtin.
29542         * hooks.c (hook_bool_gsiptr_false): New.
29543         * hooks.h (hook_bool_gsiptr_false): New.
29544         * target.def (fold_stmt): New.
29545         * doc/tm.texi: Regenerate.
29547 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
29549         PR target/57018
29550         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29551         a set sp if no stack realignment.
29553 2013-04-22  Nick Clifton  <nickc@redhat.com>
29555         * config.gcc (tilegx-linux): Extend extra_objs rather than
29556         overwriting it.
29557         (tilepro-linux): Likewise.
29559 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29561         * config/aarch64/aarch64-builtins.c
29562         (CF): Remove.
29563         (CF0, CF1, CF2, CF3, CF4, CF10): New.
29564         (VAR<1-12>): Add MAP parameter.
29565         (BUILTIN_*): Likewise.
29566         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29567         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29568         (aarch64_ushl_n<mode>): Likewise.
29569         (aarch64_sshr_n<mode>): Likewise.
29570         (aarch64_ushr_n<mode>): Likewise.
29571         (aarch64_<maxmin><mode>): Likewise.
29572         (aarch64_sqrt<mode>): Likewise.
29573         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29574         (vshr<q>_n_*): Likewise.
29576 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29578         * config/aarch64/aarch64-builtins.c
29579         (aarch64_simd_builtin_type_mode): Handle SF types.
29580         (sf_UP): Define.
29581         (BUILTIN_GPF): Define.
29582         (aarch64_init_simd_builtins): Handle SF types.
29583         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29584         (frecps): Likewise.
29585         (frecpx): Likewise.
29586         * config/aarch64/aarch64-simd.md
29587         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29588         (aarch64_frecpe<mode>): New.
29589         (aarch64_frecps<mode>): Likewise.
29590         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29591         (v8type): Add frecp<esx>.
29592         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29593         (aarch64_frecps<mode>): Likewise.
29594         * config/aarch64/iterators.md (FRECP): New.
29595         (frecp_suffix): Likewise.
29596         * config/aarch64/arm_neon.h
29597         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29599 2013-04-22  Christian Bruel  <christian.bruel@st.com>
29601         PR target/56995
29602         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29603         (REG_CLASS_NAMES): Idem.
29604         (REG_CLASS_CONTENTS): Idem.
29605         (REGCLASS_HAS_FP_REG): Idem.
29606         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29607         (sh_conditional_register_usage): Idem.
29609 2013-04-21  Jeff Law  <law@redhat.com>
29611         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29612         (ssa_forward_propagate_and_combine): Use it.
29614 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29616         * lra.c: Update the flow chart diagram.
29618 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29620         PR rtl-optimization/56847
29621         * lra-constraints.c (process_alt_operands): Discourage alternative
29622         with non-matche doffsettable memory constraint fro memory with
29623         known offset.
29625 2013-04-19  Richard Biener  <rguenther@suse.de>
29627         PR tree-optimization/56982
29628         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29629         function.
29630         * gimplify.c (gimplify_call_expr): Notice special calls.
29631         (gimplify_modify_expr): Likewise.
29632         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29633         abnormal control flow receivers.
29634         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29635         in the same way as cfun->has_nonlocal_labels.
29636         (gimple_purge_dead_abnormal_call_edges): Likewise.
29637         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29638         receivers start a basic-block.
29640 2013-04-19  Richard Biener  <rguenther@suse.de>
29642         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29643         member ...
29644         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
29645         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29646         (SLP_TREE_LOAD_PERMUTATION): Add.
29647         (vect_transform_slp_perm_load): Adjust prototype.
29648         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29649         (vect_free_slp_instance): Likewise.
29650         (vect_create_new_slp_node): Likewise.
29651         (vect_supported_slp_permutation_p): Remove.
29652         (vect_slp_rearrange_stmts): Adjust.
29653         (vect_supported_load_permutation_p): Likewise.  Inline
29654         vect_supported_slp_permutation_p here.
29655         (vect_analyze_slp_instance): Compute load permutations per
29656         slp node instead of per instance.
29657         (vect_get_slp_defs): Adjust.
29658         (vect_transform_slp_perm_load): Likewise.
29659         (vect_schedule_slp_instance): Remove redundant code.
29660         (vect_schedule_slp): Remove hack for PR56270, add it ...
29661         * tree-vect-stmts.c (vectorizable_load): ... here, do not
29662         CSE loads for SLP.  Adjust.
29664 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29666         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29667         spelling in two comments.
29669 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29671         PR target/56797
29672         * config/arm/arm.c (load_multiple_sequence): Require SP
29673         as base register for loads if SP is in the register list.
29675 2013-04-19  Martin Jambor  <mjambor@suse.cz>
29677         PR tree-optimization/56718
29678         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29679         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29680         and made public.  Adjusted all callers.
29681         (ipa_intraprocedural_devirtualization): New function.
29682         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29683         (ipa_intraprocedural_devirtualization): Likewise.
29684         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29686 2013-04-19  Richard Biener  <rguenther@suse.de>
29688         PR tree-optimization/57000
29689         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29691 2013-04-19  Terry Guo  <terry.guo@arm.com>
29693         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29694         Replace with ...
29695         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
29696         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29697         (cortex_m4_fmacs): Use new reservations.
29698         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29700 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
29702         PR rtl-optimization/56999
29703         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29704         related code.
29705         (lra_coalesce): Remove split_origin_bitmap and related code.
29706         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
29707         ranges if necessary.
29709 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
29711         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29712         New array.
29713         (ix86_expand_call): Remove clobbered_registers array and use
29714         x86_64_ms_sysv_extra_clobbered_registers instead.
29715         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29716         Declare here.
29717         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29718         predicate.
29719         * config/i386/i386.md (*call_rex64_ms_sysv): Use
29720         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
29721         (*call_value_rex64_ms_sysv): Ditto.
29723 2013-04-18  Cary Coutant  <ccoutant@google.com>
29725         * dwarf2out.c (output_pubnames): Check die_perennial_p of
29726         parent instead of die_mark.
29728 2013-04-18  Diego Novillo  <dnovillo@google.com>
29730         * gimple.c (create_gimple_tmp): New.
29731         (get_expr_type): New.
29732         (build_assign): New.
29733         (build_type_cast): New.
29734         * gimple.h (enum ssa_mode): Define.
29735         (gimple_seq_set_location): New.
29736         * asan.c (build_check_stmt): Change some gimple_build_* calls
29737         to use build_assign and build_type_cast.
29739 2013-04-18  Richard Biener  <rguenther@suse.de>
29741         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29742         handle negative step.  Remove redundant checks.
29743         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29744         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29745         for negative step and grouped loads fail to vectorize.
29747 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29749         * emit-rtl.c (reset_insn_used_flags): New function.
29750         (reset_all_used_flags): Use it.
29751         (verify_insn_sharing): New function.
29752         (verify_rtl_sharing): Fix verification for SEQUENCEs.
29754 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
29756         PR tree-optimization/56984
29757         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29758         and (x >> M) >= N don't register any assertion if N << M is the
29759         minimum value.
29761 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29763         * lower-subreg.c (resolve_simple_move): If called self-recursive,
29764         do not delete_insn insns that have not yet been emitted, only
29765         unlink them with remove_insn.
29766         * df-scan.c (df_insn_delete): Revert r197492.
29768 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
29770         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29771         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29773 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29775         * config/arm/arm.md (movsicc_insn): Convert define_insn into
29776         define_insn_and_split.
29777         (and_scc,ior_scc,negscc): Likewise.
29778         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29780 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29782         * config/arm/arm.c (use_return_insn): Return 0 for targets that
29783         can benefit from using a sequence of LDRD instructions in epilogue
29784         instead of a single LDM instruction.
29786 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29788         PR 45688
29789         * doc/extend.texi: Fix typo.
29791 2013-04-17  Richard Biener  <rguenther@suse.de>
29793         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29794         (vect_build_slp_tree): ... here.
29795         (vect_build_slp_tree_1): Compute which stmts of the SLP group
29796         match.  Remove special-casing of mismatched complex loads.
29797         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29798         re-try the match with swapped commutative operands.
29799         (vect_supported_load_permutation_p): Remove special-casing of
29800         mismatched complex loads.
29801         (vect_analyze_slp_instance): Adjust.
29803 2013-04-17  Richard Biener  <rguenther@suse.de>
29805         PR rtl-optimization/56921
29806         * cfgloop.h (struct loop): Add simple_loop_desc member.
29807         (struct niter_desc): Mark with GTY(()).
29808         (simple_loop_desc): Do not use aux field but simple_loop_desc.
29809         * loop-iv.c (get_simple_loop_desc): Likewise.
29810         (free_simple_loop_desc): Likewise.
29812         Revert
29813         2013-04-16  Richard Biener  <rguenther@suse.de>
29815         PR rtl-optimization/56921
29816         * loop-init.c (pass_rtl_move_loop_invariants): Add
29817         TODO_do_not_ggc_collect to todo_flags_finish.
29818         (pass_rtl_unswitch): Same.
29819         (pass_rtl_unroll_and_peel_loops): Same.
29820         (pass_rtl_doloop): Same.
29822 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
29824         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29825         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29826         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29827         references.
29828         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29829         * tree-streamer.c (record_common_node): Adjust reference in comment.
29831 2013-04-17  Terry Guo  <terry.guo@arm.com>
29833         * config/arm/cortex-m4.md: Add a new bypass.
29835 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29837         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29838         New pattern.
29839         (*subs_<optab><mode>_multp2): New pattern.
29840         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29841         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29843 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29845         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29846         (*subs_mul_imm_<mode>): New pattern.
29848 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
29850         PR target/56948
29851         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29852         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
29853         (vsx_movti_32bit): Change j->wa to O->wa.
29855 2013-04-16  Richard Biener  <rguenther@suse.de>
29857         PR rtl-optimization/56921
29858         * loop-init.c (pass_rtl_move_loop_invariants): Add
29859         TODO_do_not_ggc_collect to todo_flags_finish.
29860         (pass_rtl_unswitch): Same.
29861         (pass_rtl_unroll_and_peel_loops): Same.
29862         (pass_rtl_doloop): Same.
29864 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
29866         * config/arm/arm.c (emit_multi_reg_push): New declaration
29867         for an existing function.
29868         (arm_emit_strd_push): New function.
29869         (arm_expand_prologue): Used here.
29870         (arm_emit_ldrd_pop): New function.
29871         (arm_expand_epilogue): Used here.
29872         (arm_get_frame_offsets): Update condition.
29873         (arm_emit_multi_reg_pop): Add a special case for load of a single
29874         register with writeback.
29876 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
29878         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29879         description.
29881 2013-04-16  Richard Biener  <rguenther@suse.de>
29883         PR tree-optimization/56756
29884         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29885         (first_mem_ref_loc): New.
29886         (execute_sm): Place the load temporarily before a previous
29887         access instead of in the latch edge to ensure its SSA dependencies
29888         are defined at points dominating the load.
29890 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
29892         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29893         correct fix by moving header and footer insn to the footer of
29894         the merged basic block.  Clear BB_END of the merged-away block.
29896         PR middle-end/43631
29897         * emit-rtl.c (make_note_raw): New function.
29898         (link_insn_into_chain): New static inline function.
29899         (add_insn): Use it.
29900         (add_insn_before, add_insn_after): Factor insn chain linking code...
29901         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29902         using link_insn_into_chain.
29903         (note_outside_basic_block_p): New helper function for emit_note_after
29904         and emit_note_before.
29905         (emit_note_after): Use nobb variant of add_insn_after if the note
29906         should not be contained in a basic block.
29907         (emit_note_before): Use nobb variant of add_insn_before if the note
29908         should not be contained in a basic block.
29909         (emit_note_copy): Use make_note_raw.
29910         (emit_note): Likewise.
29911         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29912         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29913         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29914         the moved barrier the tail of the basic block it follows.
29915         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29917 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
29919         PR tree-optimization/56962
29920         * gimple-ssa-strength-reduction.c (record_increment): Only set
29921         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29922         either rhs1 or rhs2 is equal to c->base_expr.
29924 2013-04-15  Richard Biener  <rguenther@suse.de>
29926         PR tree-optimization/56933
29927         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29928         member.
29929         (GROUP_READ_WRITE_DEPENDENCE): Remove.
29930         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29931         * tree-vect-data-refs.c (vect_analyze_group_access): Move
29932         dependence check ...
29933         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29934         ... here.
29935         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29936         GROUP_READ_WRITE_DEPENDENCE.
29938 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29940         * emit-rtl.c (reset_all_used_flags): New function.
29941         (verify_rtl_sharing): Call reset_all_used_flags before and after
29942         performing the checks.
29944 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29946         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29947         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29948         * config/arm/constraints.md (De): New constraint.
29949         * config/arm/neon.md (anddi3_neon): Delete.
29950         (neon_vand<mode>): Expand to standard anddi3 pattern.
29951         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29952         Move earlier in the file.
29953         (neon_inv_logic_op2): Likewise.
29954         (arm_anddi_operand_neon): New predicate.
29956 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29958         * configure.ac (gcc_cv_ld_as_needed): Set
29959         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29960         Use -z ignore, -z record on *-*-solaris2*.
29961         (HAVE_LD_AS_NEEDED): Update comment.
29962         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29963         * configure: Regenerate.
29964         * config.in: Regenerate.
29965         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29966         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29967         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29968         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29969         equivalents.  Fix markup.
29970         * doc/tm.texi: Regenerate.
29972 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
29974         * config/i386/i386.opt: New option mstack-protector-guard=.
29975         * config/i386/i386-opts.h: Add enum stack_protector_guard.
29976         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29977         TARGET_SSP_TLS_GUARD.
29978         * config/i386/i386.c (ix86_option_override_internal): Set
29979         ix86_stack_protector_guard.
29980         * config/i386/i386.md (stack_protect_set): Enable for
29981         TARGET_SSP_TLS_GUARD only.
29982         (stack_protect_set_<mode>): Ditto.
29983         (stack_protect_test): Ditto.
29984         (stack_protect_test_<mode>): Ditto.
29985         * doc/invoke.texi (i386 Option): Document.
29987 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29989         PR target/56890
29990         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29991         (S_MODES): Set H_MODE bit.
29992         (SF_MODES): Set only S_MODE and SF_MODE bits.
29993         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29994         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29995         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29996         <MODE_FLOAT>: Likewise.
29998 2013-04-15  Joey Ye  <joey.ye@arm.com>
30000         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
30002 2013-04-15  Joey Ye  <joey.ye@arm.com>
30004         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
30005         for real far jump.
30006         (thumb_far_jump_used_p): Count instruction size and set
30007         far_jump_used.
30009 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30011         * reorg.c (fill_simple_delay_slots): Reindent block of code.
30012         * resource.c (mark_target_live_regs): Reformat conditional block.
30014 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
30016         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
30017         notes, they are emitted only just before final.
30018         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
30020 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
30022         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
30023         * cfgrtl.c (delete_insn): Call it here instead.
30024         * lra-spills.c (lra_final_code_change): Use delete_insn.
30025         * haifa-sched.c (sched_remove_insn): Likewise.
30026         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
30027         returning to the nop pool.
30028         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
30029         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
30031 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
30033         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
30034         * doc/tm.texi: Regenerated.
30036 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
30038         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
30039         QImode checks.
30041 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
30043         * df-core.c (df_find_def): Compare register numbers.
30044         (df_find_use): Likewise.
30046 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
30048         PR target/56903
30049         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
30050         lra_in_progress for return.
30052 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
30054         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
30055         define_insn into define_insn_and_split and emit movsicc patterns.
30057 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
30059         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
30061 2013-04-12  Richard Biener  <rguenther@suse.de>
30063         * tree-pass.h (TODO_do_not_ggc_collect): New.
30064         * passes.c (execute_one_ipa_transform_pass): Honor
30065         TODO_do_not_ggc_collect.
30066         (execute_one_pass): Likewise.
30068         Revert
30069         2013-04-10  Richard Biener  <rguenther@suse.de>
30071         * passes.c (init_optimization_passes): Remove reload pass.
30072         * ira.c (do_reload): Merge into ...
30073         (ira): ... this.
30074         (rest_of_handle_reload): Remove.
30075         (pass_reload): Likewise.
30076         * config/i386/i386.c (ix86_option_override): Refer to ira instead
30077         of reload for vzeroupper pass placement.
30079 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
30081         PR tree-optimization/56918
30082         PR tree-optimization/56920
30083         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
30084         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
30085         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
30086         use wide_mul_with_sign method.
30088 2013-04-12  Richard Biener  <rguenther@suse.de>
30090         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
30091         not be considered a gimple constant.
30093 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
30095         * fold-const.c (const_binop): Handle vector shifts by a scalar.
30096         (fold_binary_loc): Call const_binop also for mixed vector-scalar
30097         operations.
30099 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30100             Jakub Jelinek  <jakub@redhat.com>
30102         * opts.c: Include diagnostic-color.h.
30103         (common_handle_option): Handle OPT_fdiagnostics_color_.
30104         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
30105         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
30106         (diagnostic-color.o): New.
30107         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
30108         (diagnostic_color_rule): New enum.
30109         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
30110         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
30111         the location string.
30112         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
30113         either NULL, or color kind.
30114         * diagnostic-color.c: New file.
30115         * diagnostic-color.h: New file.
30116         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
30117         arguments.
30118         * doc/invoke.texi (-fdiagnostics-color): Document.
30119         * pretty-print.h (pp_show_color): Define.
30120         (struct pretty_print_info): Add show_color field.
30121         * diagnostic.c: Include diagnostic-color.h.
30122         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
30123         macros.  Colorize error:, warning: etc. strings and also the location
30124         string.
30125         (diagnostic_show_locus): Colorize the caret line.
30126         * pretty-print.c: Include diagnostic-color.h.
30127         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
30128         inside of %< %> quotes or quoted through q format modifier.
30130 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30132         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
30134 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30136         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
30137         code in CC_NZ mode.
30138         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
30139         pattern.
30141 2013-04-11  Marek Polacek  <polacek@redhat.com>
30143         PR tree-optimization/48184
30144         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
30146 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
30148         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
30149         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
30150         (skip_simple_arithmetic): Tidy up.
30151         * tree.h (skip_simple_constant_arithmetic): Declare.
30153 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30155         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
30157 2013-04-11  Richard Biener  <rguenther@suse.de>
30159         * tree-vect-loop.c (get_initial_def_for_induction): Properly
30160         generate vector constants.
30162 2013-04-11  Richard Biener  <rguenther@suse.de>
30164         PR tree-optimization/56878
30165         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
30166         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
30167         New function.
30168         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30169         Prefer to align the DR with the most invariant base address.
30171 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30173         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
30174         comment.
30176 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
30178         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
30179         floating-point vector comparisons against 0.
30181 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
30183         PR tree-optimization/56899
30184         * fold-const.c (extract_muldiv_1): Apply distributive law
30185         only if TYPE_OVERFLOW_WRAPS (ctype).
30187 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
30189         PR target/56124
30190         * ira-costs.c (scan_one_insn): Check whether the source rtx of
30191         loading has side effect.
30193 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
30195         * config/sparc/sparc.c: Include tree-pass.h.
30196         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
30197         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
30198         head of file.  Change return type.  Split off gate function.
30199         (sparc_gate_work_around_errata): New function.
30200         (pass_work_around_errata): New pass definition.
30201         (insert_pass_work_around_errata) New pass insert definition to
30202         insert pass_work_around_errata just after delayed-branch scheduling.
30203         (sparc_option_override): Insert the pass.
30204         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
30206 2013-04-10  David S. Miller  <davem@davemloft.net>
30208         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
30209         or -mcpu=hypersparc.
30211         * target.def (cstore_mode): New hook.
30212         * target.h: Include insn-codes.h
30213         * targhooks.c: Likewise.
30214         (default_cstore_mode): New function.
30215         * targhooks.h: Declare it.
30216         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
30217         * doc/tm.texi: Rebuild.
30218         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
30219         target hook, rather than inspecting the insn_data.
30220         * config/sparc/sparc.c (sparc_cstore_mode): New function.
30221         (TARGET_CSTORE_MODE): Redefine.
30222         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
30223         result patterns.
30224         * config/sparc/predicates.md (cstore_result_operand): New special
30225         predicate.
30226         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
30227         Use it for operand 0.
30228         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
30229         (*snesi_special): Likewise.
30230         (*snesi_zero): Likewise.
30231         (*seqsi_zero): Likewise.
30232         (*sltu_insn): Likewise.
30233         (*sgeu_insn): Likewise.
30234         (*seqdi_special): Make operand 0 and comparison operation be of
30235         DImode.
30236         (*snedi_special): Likewise.
30237         (*snedi_special_vis3): Likewise.
30238         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
30239         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
30240         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
30241         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
30242         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
30243         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
30244         (*sltu_extend_sp64): Likewise.
30245         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
30246         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
30247         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
30248         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
30249         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
30251 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
30253         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
30254         (aarch64_start_file): Use the new function.
30256 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30257             Jason Merrill  <jason@redhat.com>
30259         * common.opt: Add -gdwarf.
30260         * opts.c (common_handle_option): Handle it.
30261         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
30263 2013-04-10  Richard Biener  <rguenther@suse.de>
30265         * passes.c (execute_todo): Do not call ggc_collect conditional here.
30266         (execute_one_ipa_transform_pass): But unconditionally here.
30267         (execute_one_pass): And here.
30268         (init_optimization_passes): Remove reload pass.
30269         * tree-pass.h (TODO_ggc_collect): Remove.
30270         (pass_reload): Likewise.
30271         * ira.c (do_reload): Merge into ...
30272         (ira): ... this.
30273         (rest_of_handle_reload): Remove.
30274         (pass_reload): Likewise.
30275         * config/i386/i386.c (ix86_option_override): Refer to ira instead
30276         of reload for vzeroupper pass placement.
30277         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30278         and todo_flags_finish of all passes.
30280 2013-04-10  Richard Biener  <rguenther@suse.de>
30282         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30283         first_const_oprnd field, rename first_def_type to first_op_type.
30284         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30285         (vect_get_and_check_slp_defs): Always use the type of the
30286         operand.  Allow mixed vect_external_def, vect_constant_def types.
30287         (vect_get_constant_vectors): Handle mixed vect_external_def,
30288         vect_constant_def types.
30290 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
30292         PR tree-optimization/55524
30293         * tree-ssa-math-opts.c
30294         (convert_mult_to_fma): Don't use an fms construct
30295         when we don't have an fms operation, but fnma, and it looks
30296         likely that we'll be able to use the latter.
30298 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
30300         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30301         function.
30302         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30303         inline fail caused by overwritable functions.
30305 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
30307         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30308         unnecessary bits in the constant power of two case.
30310 2013-04-10  Richard Biener  <rguenther@suse.de>
30312         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30313         broken code swapping operands.
30314         (vect_build_slp_tree): Do not compute load permutations here.
30315         (vect_analyze_slp_instance): Compute load permutations here,
30316         after building the SLP tree.
30318 2013-04-09  Christian Bruel  <christian.bruel@st.com>
30320         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30321         of next/prev_real_insn.
30323 2013-04-09  Jan Hubicka  <jh@suse.cz>
30325         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30326         Drop aliased parameter.
30327         (function_and_variable_visibility): Do not handle alias pairs.
30328         * cgraph.c (varpool_externally_visible_p): Update prototype.
30329         * varpool.c (varpool_add_new_variable): Update.
30331 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30333         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30335 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
30337         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30339         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30341 2013-04-09  Marek Polacek  <polacek@redhat.com>
30343         PR tree-optimization/48762
30344         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30346 2013-04-09  Richard Biener  <rguenther@suse.de>
30348         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30349         dealing with cost.
30350         (vect_build_slp_tree): Likewise.
30351         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30352         calculating the cost of a SLP instance.
30353         (vect_analyze_slp_instance): Use it from here, after building
30354         the SLP tree.
30356 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
30358         PR middle-end/56883
30359         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30360         expand_omp_for_static_chunk): Use simple_p = true in
30361         force_gimple_operand_gsi calls when assigning to addressable decls.
30363 2013-04-09  Jeff Law  <law@redhat.com>
30365         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30366         when the boolean was created by converting a wider object which
30367         had a boolean range.
30369 2013-04-09  Richard Biener  <rguenther@suse.de>
30371         * tree-vectorizer.h (slp_void_p): Remove.
30372         (slp_tree): Typedef before _slp_tree declaration.
30373         (struct _slp_tree): Use a vector of slp_tree as children.
30374         (vect_get_place_in_interleaving_chain): Remove.
30375         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30376         Move ...
30377         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30378         and make static.
30379         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30380         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30381         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30382         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30383         Use slp_node instead of slp_void_p and adjust.
30385 2013-04-09  Richard Biener  <rguenther@suse.de>
30387         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30388         work that is not necessary.
30390 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
30392         PR tree-optimization/56854
30393         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30394         forward into clobber stmts if it would change MEM_REF lhs into
30395         non-MEM_REF.
30397 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
30399         * tree.c (type_hash_lookup, type_hash_add): Make static.
30400         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30402 2013-04-09  Richard Biener  <rguenther@suse.de>
30404         * tree.h (unsave_expr_now): Remove.
30405         * tree-inline.c (mark_local_for_remap_r): Remove.
30406         (unsave_expr_1): Likewise.
30407         (unsave_r): Likewise.
30408         (unsave_expr_now): Likewise.
30409         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30410         (propagate_tree_value): Likewise.
30412 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
30414         * doc/rtl.texi (sequence): Rewrite documentation to match the
30415         current use of SEQUENCE rtl objects.
30416         * rtl.def (SEQUENCE): Likewise.
30418         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30419         Update documentation.
30420         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30421         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30423         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30425 2013-04-08  Teresa Johnson  <tejohnson@google.com>
30427         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30428         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30429         methods.
30430         (estimate_edge_size_and_time): Add comment to suggest using rounding
30431         methods.
30432         (estimate_node_size_and_time): Ditto.
30433         (remap_edge_change_prob): Use helper rounding divide methods.
30434         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30435         (gimple_mod_pow2_value_transform): Ditto.
30436         (gimple_mod_subtract_transform): Ditto.
30437         (gimple_ic_transform): Ditto.
30438         (gimple_stringops_transform): Ditto.
30439         * stmt.c (conditional_probability): Ditto.
30440         (emit_case_dispatch_table): Ditto.
30441         * lto-cgraph.c (merge_profile_summaries): Ditto.
30442         * tree-optimize.c (execute_fixup_cfg): Ditto.
30443         * cfgcleanup.c (try_forward_edges): Ditto.
30444         * cfgloopmanip.c (scale_loop_profile): Ditto.
30445         (loopify): Ditto.
30446         (duplicate_loop_to_header_edge): Ditto.
30447         (lv_adjust_loop_entry_edge): Ditto.
30448         * tree-vect-loop.c (vect_transform_loop): Ditto.
30449         * profile.c (compute_branch_probabilities): Ditto.
30450         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30451         * lto-streamer-in.c (input_cfg): Ditto.
30452         * gimple-streamer-in.c (input_bb): Ditto.
30453         * ipa-cp.c (update_profiling_info): Ditto.
30454         (update_specialized_profile): Ditto.
30455         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30456         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30457         rounding methods.
30458         * sched-rgn.c (compute_dom_prob_ps): Ditto.
30459         (compute_trg_info): Ditto.
30460         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30461         (purge_dead_edges): Ditto.
30462         * loop-unswitch.c (unswitch_loop): Ditto.
30463         * cgraphclones.c (cgraph_clone_edge): Ditto.
30464         (cgraph_clone_node): Ditto.
30465         * tree-inline.c (copy_bb): Ditto.
30466         (copy_edges_for_bb): Ditto.
30467         (initialize_cfun): Ditto.
30468         (copy_cfg_body): Ditto.
30469         (expand_call_inline): Ditto.
30471 2013-04-08  Kai Tietz  <ktietz@redhat.com>
30473         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30474         TARGET_CYGWIN64 by TARGET_64BIT.
30476 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30478         * config/epiphany/epiphany.md (GPR_1): New constant.
30479         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30480         * config/epiphany/epiphany.c (gen_compare_reg):
30481         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30482         is already in place.
30483         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30484         Don't require being called during rtl expansion; If y operlaps r0,
30485         return 0.
30486         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30487         (epiphany_expand_epilogue): Likewise.
30489         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30490         Don't use CC_FPmode for ORDERED / UNORDERED.
30491         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30493         * config/epiphany/constraints.md (CnL): New constraint.
30494         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30495         * config/epiphany/predicates.md (add_operand): Allow 1024.
30497         * config/epiphany/epiphany.md (logical_op): New code iterator.
30498         (op_mnc): New code attribute.
30499         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30500         (mov_f+1, mov_f+2): New peephole2 patterns.
30502         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30503         (cstoresi4): Also allow re-use of zero result when doing a NE
30504         comparison to a non-zero operand.
30505         Use (clobber (scratch)) for first insn if the gpr output is not needed.
30507         * config/epiphany/epiphany.md (<insn_opname>v2si3):
30508         Use gen_addsi3_i / gen_subsi3_i.
30510 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30512         PR c++/34949
30513         PR c++/50243
30514         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30515         contain anything but clobbers, at most one __builtin_stack_restore,
30516         optionally debug stmts and final resx, and if it has at least one
30517         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
30518         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30519         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30520         which isn't defaut definition, remove them.
30521         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30522         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30523         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30524         with MEM_REF LHS with SSA_NAME address.
30526 2013-04-08  Jeff Law  <law@redhat.com>
30528         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30530 2013-04-08  Richard Biener  <rguenther@suse.de>
30532         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30533         extra newline.
30534         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30535         determined vector type.
30536         (vect_analyze_data_refs): Likewise.
30537         (vect_get_new_vect_var): Adjust.
30538         (vect_create_destination_var): Preserve SSA name versions.
30539         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30540         not dump anything here.
30542 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30544         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30545         Add member lr_slot_known.
30546         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30547         if necessary.
30548         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30549         Remove code that sets lr_slot_offset according to what a previous
30550         version of epiphany_emit_save_restore used to do.
30551         (epiphany_emit_save_restore): When doing an lr save or restore,
30552         set/verify lr_slot_known and lr_slot_offset.
30554 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
30556         PR target/54338
30557         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30558         in ALL_REGS.
30560 2013-04-08  Richard Biener  <rguenther@suse.de>
30562         * alias.c (find_base_term): Fix thinko in previous change.
30564 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30566         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30567         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30568         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
30569         if possible to compute val.
30570         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30571         For QImode integers don't require anything about precision.  Use
30572         const_with_all_bytes_same to find out if the constant doesn't have
30573         repeated bytes in it.
30575 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30577         * config/s390/s390.c (s390_expand_insv): Only accept insertions
30578         within mode size.
30580 2013-04-08  Marek Polacek  <polacek@redhat.com>
30582         PR rtl-optimization/48182
30583         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30584         value to 1.
30586 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30588         PR target/55487
30589         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30590         nuses, make sure we have a label.
30592 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30594         PR target/56843
30595         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30596         (rs6000_emit_swdiv_low_precision): Remove.
30597         (rs6000_emit_swdiv): Rewrite to handle between one and four
30598         iterations of Newton-Raphson generally; modify required number of
30599         iterations for some cases.
30600         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30602 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
30604         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30605         set-but-unused variable.
30607         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30608         basic blocks of released function bodies garbage-collectable.
30610         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30611         (struct rtl_opt_pass): Add TODO_df_finish.
30613         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30615 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30617         * config/arm/constraints.md (q): New constraint.
30618         * config/arm/ldrdstrd.md: New file.
30619         * config/arm/arm.md (ldrdstrd.md) New include.
30620         (arm_movdi): Use "q" instead of "r" constraint
30621         for double-word memory access.
30622         (movdf_soft_insn): Likewise.
30623         * config/arm/vfp.md (movdi_vfp): Likewise.
30624         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30625         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30626         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30627         (mem_ok_for_ldrd_strd): Likewise.
30628         (output_move_double): Update assertion.
30630 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30632         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30634 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30636         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30637         define_insn_and_split.
30638         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30640 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30642         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30643         define_insn_and_split.
30644         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30645         (shiftsi3_compare): New pattern.
30646         (rrx): New pattern.
30647         * config/arm/unspecs.md (UNSPEC_RRX): New.
30649 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30651         * config/arm/arm.md (negdi_extendsidi): New pattern.
30652         (negdi_zero_extendsidi): Likewise.
30654 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30656         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30657         define_insn_and_split.
30658         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30659         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30661 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30663         * config/arm/arm.md (arm_subdi3): Convert define_insn into
30664         define_insn_and_split.
30665         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30666         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30668 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30670         * config/arm/arm.md (subsi3_carryin): New pattern.
30671         (subsi3_carryin_const): Likewise.
30672         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30673         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30675 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30677         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30679 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30681         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30682         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30684 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30686         * config/arm/arm.c (arm_expand_builtin): Change fcode
30687         type to unsigned int.
30689 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30691         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30693 2013-04-04  Ian Lance Taylor  <iant@google.com>
30695         * doc/standards.texi (Standards): The Go frontend supports the Go 1
30696         language standard.
30698 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
30700         PR middle-end/56729
30701         * df-scan.c (df_insn_delete): Disable failing assert.
30703 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30705         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30706         New function prototype.
30707         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30708         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30709         (arm_builtin_vectorized_function): New function.
30711 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30713         * config/arm/arm_neon_builtins.def: New file.
30714         * config/arm/arm.c (neon_builtin_data): Move contents to
30715         arm_neon_builtins.def.
30716         (enum arm_builtins): Include neon builtin definitions.
30717         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30718         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30720 2013-04-04  Marek Polacek  <polacek@redhat.com>
30722         PR tree-optimization/48186
30723         * predict.c (maybe_hot_frequency_p): Return false if
30724         HOT_BB_FREQUENCY_FRACTION is 0.
30725         (cgraph_maybe_hot_edge_p): Likewise.
30727 2013-04-04  Richard Biener  <rguenther@suse.de>
30729         PR tree-optimization/56826
30730         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30731         more accurately.
30733 2013-04-04  Richard Biener  <rguenther@suse.de>
30735         PR tree-optimization/56213
30736         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30737         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30739 2013-04-04  Richard Biener  <rguenther@suse.de>
30741         PR tree-optimization/56837
30742         * tree-loop-distribution.c (classify_partition): For non-zero
30743         values require that the value has the same precision as its
30744         mode to be useful as memset value.
30746 2013-04-03  Nick Clifton  <nickc@redhat.com>
30748         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30749         (fmssf4): Use fmsf.s on E3V5 architectures.
30750         (fnmasf4): Use fnmaf.s on E3V5 architectures.
30751         (fnmssf4): Use fnmsf.s on E3V5 architectures.
30753 2013-04-03  Jeff Law  <law@redhat.com>
30755         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30756         (lra-eliminations.o): Likewise.
30758 2013-04-03  Teresa Johnson  <tejohnson@google.com>
30760         * gcov-io.c (compute_working_sets): Moved most of body of old
30761         compute_working_sets here from profile.c.
30762         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30763         (gcov_working_set_t): Moved typedef here from basic-block.h
30764         (compute_working_set): Declare.
30765         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30766         (get_working_sets): Renamed from compute_working_set,
30767         replace most of body with call to new compute_working_sets.
30768         (get_exec_counts): Replace call to compute_working_sets
30769         to get_working_sets.
30770         * profile.h (get_working_sets): Renamed from compute_working_set.
30771         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30772         to get_working_sets.
30773         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30774         * gcov-dump.c (dump_working_sets): New function.
30776 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
30778         * hwint.c (sext_hwi, zext_hwi): New functions.
30779         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30780         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30781         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30782         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30783         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30784         (sext_hwi, zext_hwi): New functions.
30786 2013-04-03  Jeff Law  <law@redhat.com>
30788         PR tree-optimization/56799
30789         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30790         back test for widening conversion erroneously dropped in prior change.
30792 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30794         PR target/56809
30795         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30796         instead of next_real_insn.
30798 2013-04-03  Marek Polacek  <polacek@redhat.com>
30800         PR sanitizer/55702
30801         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30803 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30805         PR target/56809
30806         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30807         next_real_insn.
30808         (thumb1_output_casesi): Likewise.
30809         (thumb2_output_casesi): Likewise.
30811 2013-04-03  Richard Biener  <rguenther@suse.de>
30813         PR tree-optimization/56817
30814         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30815         Split out ...
30816         (tree_unroll_loops_completely_1): ... new function to manually
30817         walk the loop tree, properly defering outer loops of unrolled
30818         loops to later iterations.
30820 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30822         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30823         (vectorizable_load): Likewise.
30824         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30825         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30827 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30829         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30830         BIT_FIELD_REF.
30832 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30834         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30836 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
30838         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30840 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30842         PR tree-optimization/56790
30843         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30844         folding.
30846 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30848         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30849         Handle VEC_MERGE.
30850         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30851         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30852         equal arguments.
30854 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
30856         PR c/19449
30857         * tree.h (force_folding_builtin_constant_p): New decl.
30858         * builtins.c (force_folding_builtin_constant_p): New variable.
30859         (fold_builtin_constant_p): Fold immediately also if
30860         force_folding_builtin_constant_p.
30862 2013-04-03  Richard Biener  <rguenther@suse.de>
30864         PR tree-optimization/56812
30865         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30866         DRs of the same interleaving chain are independent.
30868 2013-04-02  Jason Merrill  <jason@redhat.com>
30870         * gdbinit.in (pbb): Use debug fn.
30872 2013-04-02  Lawrence Crowl  <crowl@google.com>
30874         * sese.h (struct ivtype_map_elt_s): Remove unused.
30875         (extern debug_ivtype_map): Remove unused.
30876         (extern eq_ivtype_map_elts): Remove unused.
30877         * sese.c (debug_ivtype_map): Removed unused.
30878         (debug_ivtype_map_1): Removed unused.
30879         (debug_ivtype_elt): Remove unused.
30880         (eq_ivtype_map_elts): Remove unused.
30882 2013-04-02  Kai Tietz  <ktietz@redhat.com>
30884         PR target/52790
30885         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30886         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30887         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30888         function.
30889         (legitimize_pe_coff_symbol): Likewise.
30890         (is_imported_p): New helper-function.
30891         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30892         for Windows x64 targets.
30893         (ix86_expand_prologue): Optimize for pe-coff targets.
30894         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30895         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30896         medium/large code-model.
30897         (legitimize_pic_address): Likewise.
30898         (legitimize_tls_address): Likewise.
30899         (ix86_expand_call): Likewise.
30900         (x86_output_mi_thunk): Likewise.
30901         (get_dllimport_decl): Add new beimport argument.
30902         (construct_plt_address): Don't assert for x64 pe-coff targets.
30903         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30904         targets.
30905         (SYMBOL_FLAG_STUBVAR): New macro.
30906         (SYMBOL_REF_STUBVAR_P): Likewise.
30907         * config/i386/winnt.c (stub_list): New structure.
30908         (stub_head): New local variable.
30909         (i386_pe_record_stub): New function.
30910         (i386_pe_file_end): Emit refptr-stubs.
30912 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
30914         PR rtl-optimization/56745
30915         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30916         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30918         PR c++/34949
30919         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30920         and both of them are MEM_REFs, just compare first argument for
30921         equality and attempt to deal even with differing offsets.
30923         PR c++/34949
30924         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30925         of gimple_clobber_p to be MEM_REF.
30926         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30927         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
30928         after gimplification.
30929         * asan.c (get_mem_ref_of_assignment): Don't instrument
30930         gimple_clobber_p stmts.
30931         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30932         gimple_clobber_p stmt if they have MEM_REF lhs and
30933         are dead because of another gimple_clobber_p stmt.
30934         * tree-ssa-live.c (clear_unused_block_pointer): Treat
30935         gimple_clobber_p stmts like debug stmts.
30936         (remove_unused_locals): Remove clobbers with MEM_REF lhs
30937         that refer to unused VAR_DECLs or uninitialized values.
30938         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30939         gimple_clobber_p stmts if they refer to removed parameters.
30940         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30941         formatting.
30943 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
30945         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30946         using SWI48 mode attribute.
30948 2013-04-02  Wei Mi  <wmi@google.com>
30950         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30951         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30952         *<rotate_insn><mode>3_mask in i386.md.
30954 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30956         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30958 2013-04-02  Richard Biener  <rguenther@suse.de>
30960         PR tree-optimization/56778
30961         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30962         Runtime alias tests are not supported for gather loads.
30963         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30964         stmts referenced from SSA operands before updating SSA form.
30966 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
30967             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30969         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30970         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30971         * config/arm/cortex-a53.md: New file.
30972         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30973         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30974         * config/arm/arm.c (arm_issue_rate): Likewise.
30975         * config/arm/arm-tune.md: Regenerate
30976         * config/arm/arm-tables.opt: Regenerate.
30977         * config/arm/arm-cores.def: Add cortex-a53.
30979 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30981         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30982         non-static link.
30984 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30986         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30987         scalar load/store operations using B/H registers.
30988         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30990 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30992         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30993         scalar move.
30994         * config/aarch64/aarch64.c
30995         (aarch64_simd_scalar_immediate_valid_for_move): New.
30996         * config/aarch64/aarch64-protos.h
30997         (aarch64_simd_scalar_immediate_valid_for_move): New.
30998         * config/aarch64/constraints.md (Dh, Dq): New.
30999         * config/aarch64/iterators.md (hq): New.
31001 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
31003         * reorg.c (get_branch_condition): Deal with conditional returns.
31004         (fill_simple_delay_slots): Remove dead code dealing with jumps.
31006 2013-04-01  Wei Mi  <wmi@google.com>
31008         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
31009         Truncate operand 2 using %b asm operand modifier.
31010         (*<shift_insn><mode>3_mask): Ditto.
31011         (*<rotate_insn><mode>3_mask): Ditto.
31013 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
31015         PR middle-end/56798
31016         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
31018 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
31020         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
31021         of next_real_insn.
31022         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
31024 2013-03-30  Lawrence Crowl  <crowl@google.com>
31026         * dse.c (clear_alias_sets): Remove never set.
31027         (disqualified_clear_alias_sets): Remove never set.
31028         (clear_alias_mode_pool): Remove never set.
31029         (dse_step0): Remove condition that is never true.
31030         (canon_address): Remove condition that is never true.
31031         (dse_step7): Remove condition that is never true.
31032         (rest_of_handle_dse): Remove condition that is never true.
31033         (rest_of_handle_dse::did_global): Remove never read from above.
31034         (dse_step2_spill): Remove never called from above.
31035         (dse_step5_spill): Remove never called from above.
31037 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
31039         * doc/md.texi (Standard Names) <casesi>: Update documentation for
31040         JUMP_TABLE_DATA changes.
31041         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
31042         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
31043         (Insns) <jump_table_data>: New entry.
31044         * doc/tm.texi: Regenerate.
31046         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
31048         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
31049         for table jump at the end of a basic block using tablejump_p.
31050         * targhooks.c (default_invalid_within_doloop): Likewise.
31051         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
31052         target hook implementation that is identical to the default hook.
31053         (rs6000_invalid_within_doloop): Remove.
31055         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
31056         unused variable from tablejump_p call.
31058         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
31059         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
31060         (INSN_DELETED_P): Likewise.
31061         (emit_jump_table_data): New prototype.
31062         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
31063         after 4th as unused.
31064         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
31065         * sched-vis.c (print_insn): Likewise.
31066         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
31067         insn for compatibility with back ends that use next_active_insn to
31068         identify jump table data.
31069         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
31070         (remove_insn): Likewise.
31071         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
31072         to be emitted.
31073         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
31074         (emit_jump_table_data): New function.
31076         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
31077         basic block, a JUMP_TABLE_DATA never is.
31078         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
31079         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
31080         off from code handling real insns.
31081         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
31082         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
31083         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
31084         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
31085         is not a NONDEBUG_INSN_P.
31086         * ira-costs.c (scan_one_insn): Likewise.
31087         * jump.c (mark_all_labels): Likewise.
31088         (mark_jump_label_1): Likewise.
31089         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31090         * lra.c (get_insn_freq): Expect all insns reaching here to be in
31091         a basic block.
31092         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
31093         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
31094         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
31095         JUMP_TABLE_DATA_P insns.
31096         (calculate_elim_costs_all_insns): Likewise.
31097         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
31098         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
31099         (delete_output_reload): Code style fixups.
31100         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
31101         insn flags on this non-insn.
31102         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
31103         as scheduling barriers, for pre-change compatibility.
31104         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
31105         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
31107         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
31108         redundant JUMP_TABLE_DATA_P test.
31109         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
31110         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31111         (frv_for_each_packet): Likewise.
31112         * config/i386/i386.c (min_insn_size): Likewise.
31113         (ix86_avoid_jump_mispredicts): Likewise.
31114         * config/m32r/m32r.c (m32r_is_insn): Likewise.
31115         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
31116         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31117         (mips16_insn_length): Robustify.
31118         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
31119         (mips16_split_long_branches): Likewise.
31120         * config/pa/pa.c (pa_combine_instructions): Likewise.
31121         * config/rs6000/rs6000.c (get_next_active_insn): Treat
31122         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
31123         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
31124         as contributing to pool range lengths.
31125         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
31126         Remove redundant JUMP_TABLE_DATA_P test.
31127         (sh_loop_align): Likewise.
31128         (split_branches): Likewise.
31129         (sh_insn_length_adjustment): Likewise.
31130         * config/spu/spu.c (get_branch_target): Likewise.
31132 2013-03-29  Jan Hubicka  <jh@suse.cz>
31134         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
31135         gcov streaming; stream hot bb threshold to ltrans.
31136         * predict.c (get_hot_bb_threshold): Break out from ....
31137         (maybe_hot_count_p): ... here.
31138         (set_hot_bb_threshold): New function.
31139         * lto-section-in.c (lto_section_name): Add profile.
31140         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
31141         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
31142         and data-streamer.h
31143         (histogram_entry): New structure.
31144         (histogram, histogram_pool): New global vars.
31145         (histogram_hash): New structure.
31146         (histogram_hash::hash): New method.
31147         (histogram_hash::equal): Likewise.
31148         (account_time_size): New function.
31149         (cmp_counts): New function.
31150         (dump_histogram): New function.
31151         (ipa_profile_generate_summary): New function.
31152         (ipa_profile_write_summary): New function.
31153         (ipa_profile_read_summary): New function.
31154         (ipa_profile): Decide on threshold.
31155         (pass_ipa_profile): Add ipa_profile_write_summary and
31156         ipa_profile_read_summary.
31157         * Makefile.in (ipa.o): Update dependencies.
31158         * lto-streamer.h (LTO_section_ipa_profile): New section.
31160 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
31162         * tree.h (VAR_P): New.
31164 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
31166         PR lto/56777
31167         * doc/invoke.texi ([-fwhole-program]): Fix typo.
31169 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
31171         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
31172         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31173         (control_flow_insn_p): Likewise.
31174         * cfgrtl.c (duplicate_insn_chain): Likewise.
31175         * final.c (get_attr_length_1): Likewise.
31176         (shorten_branches): Likewise.
31177         (final_scan_insn): Likewise.
31178         * function.c (instantiate_virtual_regs): Likewise.
31179         * gcse.c (insert_insn_end_basic_block): Likewise.
31180         * ira-costs.c (scan_one_insn): Likewise.
31181         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31182         * lra.c (check_rtl): Likewise.
31183         * reload1.c (elimination_costs_in_insn): Likewise.
31184         * reorg.c (follow_jumps): Likewise.
31186         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
31187         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31188         (thumb_far_jump_used_p): Likewise.
31189         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
31190         (workaround_speculation): Likewise.
31191         (add_sched_insns_for_speculation): Likewise.
31192         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
31193         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31194         (frv_for_each_packet): Likewise.
31195         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
31196         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
31197         (final_emit_insn_group_barriers): Likewise.
31198         * config/m32r/m32r.c (m32r_is_insn): Likewise.
31199         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31200         (mips16_insn_length): Likewise.
31201         * config/pa/pa.c (pa_reorg): Likewise.
31202         (pa_combine_instructions): Likewise.
31203         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
31204         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
31205         (sh_reorg): Likewise.
31206         (split_branches): Likewise.
31207         * config/spu/spu.c (get_branch_target): Likewise.
31209         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
31210         JUMP_TABLE_DATA_P.
31212 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
31214         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
31215         Fix declaration name.
31217 2013-03-28  Lawrence Crowl  <crowl@google.com>
31219         * graphds.h (struct graph.indicies): Remove unused.
31220         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
31221         (SCOP_ORIGINAL_PDDRS): Remove unused.
31222         * sese.h (extern insert_loop_close_phis): Removed unused.
31223         (extern insert_guard_phis): Removed unused.
31224         (extern ivtype_map_elt_info): Removed unused.
31225         (new_ivtype_map_elt): Removed unused.
31226         * sese.c (ivtype_map_elt_info): Removed unused.
31228 2013-03-28  Lawrence Crowl  <crowl@google.com>
31230         * Makefile.in: Add several missing include dependences.
31231         (DUMPFILE_H): New.
31232         (test-dump.o): New.  This object is not added to any executable,
31233         but is present for ad-hoc testing.
31234         * bitmap.c
31235         (debug (const bitmap_head_def &)): New.
31236         (debug (const bitmap_head_def *)): New.
31237         * bitmap.h
31238         (extern debug (const bitmap_head_def &)): New.
31239         (extern debug (const bitmap_head_def *)): New.
31240         * cfg.c
31241         (debug (edge_def &)): New.
31242         (debug (edge_def *)): New.
31243         * cfghooks.c
31244         (debug (basic_block_def &)): New.
31245         (debug (basic_block_def *)): New.
31246         * dumpfile.h
31247         (dump_node (const_tree, int, FILE *)): Correct source file.
31248         * dwarf2out.c
31249         (debug (die_struct &)): New.
31250         (debug (die_struct *)): New.
31251         * dwarf2out.h
31252         (extern debug (die_struct &)): New.
31253         (extern debug (die_struct *)): New.
31254         * gimple-pretty-print.c
31255         (debug (gimple_statement_d &)): New.
31256         (debug (gimple_statement_d *)): New.
31257         * gimple-pretty-print.h
31258         (extern debug (gimple_statement_d &)): New.
31259         (extern debug (gimple_statement_d *)): New.
31260         * ira-build.c
31261         (debug (ira_allocno_copy &)): New.
31262         (debug (ira_allocno_copy *)): New.
31263         (debug (ira_allocno &)): New.
31264         (debug (ira_allocno *)): New.
31265         * ira-int.h
31266         (extern debug (ira_allocno_copy &)): New.
31267         (extern debug (ira_allocno_copy *)): New.
31268         (extern debug (ira_allocno &)): New.
31269         (extern debug (ira_allocno *)): New.
31270         * ira-lives.c
31271         (debug (live_range &)): New.
31272         (debug (live_range *)): New.
31273         * lra-int.h
31274         (debug (lra_live_range &)): New.
31275         (debug (lra_live_range *)): New.
31276         * lra-lives.c
31277         (debug (lra_live_range &)): New.
31278         (debug (lra_live_range *)): New.
31279         * omega.c
31280         (debug (omega_pb_d &)): New.
31281         (debug (omega_pb_d *)): New.
31282         * omega.h
31283         (extern debug (omega_pb_d &)): New.
31284         (extern debug (omega_pb_d *)): New.
31285         * print-rtl.c
31286         (debug (const rtx_def &)): New.
31287         (debug (const rtx_def *)): New.
31288         * print-tree.c
31289         (debug_tree (tree): Move within file.
31290         (debug_raw (const tree_node &)): New.
31291         (debug_raw (const tree_node *)): New.
31292         (dump_tree_via_hooks (const tree_node *, int)): New.
31293         (debug (const tree_node &)): New.
31294         (debug (const tree_node *)): New.
31295         (debug_verbose (const tree_node &)): New.
31296         (debug_verbose (const tree_node *)): New.
31297         (debug_head (const tree_node &)): New.
31298         (debug_head (const tree_node *)): New.
31299         (debug_body (const tree_node &)): New.
31300         (debug_body (const tree_node *)): New.
31301         (debug_vec_tree (tree): Move and reimplement in terms of dump.
31302         (debug (vec<tree, va_gc> &)): New.
31303         (debug (vec<tree, va_gc> *)): New.
31304         * rtl.h
31305         (extern debug (const rtx_def &)): New.
31306         (extern debug (const rtx_def *)): New.
31307         * sbitmap.c
31308         (debug_raw (simple_bitmap_def &)): New.
31309         (debug_raw (simple_bitmap_def *)): New.
31310         (debug (simple_bitmap_def &)): New.
31311         (debug (simple_bitmap_def *)): New.
31312         * sbitmap.h
31313         (extern debug (simple_bitmap_def &)): New.
31314         (extern debug (simple_bitmap_def *)): New.
31315         (extern debug_raw (simple_bitmap_def &)): New.
31316         (extern debug_raw (simple_bitmap_def *)): New.
31317         * sel-sched-dump.c
31318         (debug (vinsn_def &)): New.
31319         (debug (vinsn_def *)): New.
31320         (debug_verbose (vinsn_def &)): New.
31321         (debug_verbose (vinsn_def *)): New.
31322         (debug (expr_def &)): New.
31323         (debug (expr_def *)): New.
31324         (debug_verbose (expr_def &)): New.
31325         (debug_verbose (expr_def *)): New.
31326         (debug (vec<rtx> &)): New.
31327         (debug (vec<rtx> *)): New.
31328         * sel-sched-dump.h
31329         (extern debug (vinsn_def &)): New.
31330         (extern debug (vinsn_def *)): New.
31331         (extern debug_verbose (vinsn_def &)): New.
31332         (extern debug_verbose (vinsn_def *)): New.
31333         (extern debug (expr_def &)): New.
31334         (extern debug (expr_def *)): New.
31335         (extern debug_verbose (expr_def &)): New.
31336         (extern debug_verbose (expr_def *)): New.
31337         (extern debug (vec<rtx> &)): New.
31338         (extern debug (vec<rtx> *)): New.
31339         * sel-sched-ir.h
31340         (_list_iter_cond_expr): Make inline instead of static.
31341         * sreal.c
31342         (debug (sreal &)): New.
31343         (debug (sreal *)): New.
31344         * sreal.h
31345         (extern debug (sreal &)): New.
31346         (extern debug (sreal *)): New.
31347         * tree.h
31348         (extern debug_raw (const tree_node &)): New.
31349         (extern debug_raw (const tree_node *)): New.
31350         (extern debug (const tree_node &)): New.
31351         (extern debug (const tree_node *)): New.
31352         (extern debug_verbose (const tree_node &)): New.
31353         (extern debug_verbose (const tree_node *)): New.
31354         (extern debug_head (const tree_node &)): New.
31355         (extern debug_head (const tree_node *)): New.
31356         (extern debug_body (const tree_node &)): New.
31357         (extern debug_body (const tree_node *)): New.
31358         (extern debug (vec<tree, va_gc> &)): New.
31359         (extern debug (vec<tree, va_gc> *)): New.
31360         * tree-cfg.c
31361         (debug (struct loop &)): New.
31362         (debug (struct loop *)): New.
31363         (debug_verbose (struct loop &)): New.
31364         (debug_verbose (struct loop *)): New.
31365         * tree-dump.c: Add header dependence.
31366         * tree-flow.h
31367         (extern debug (struct loop &)): New.
31368         (extern debug (struct loop *)): New.
31369         (extern debug_verbose (struct loop &)): New.
31370         (extern debug_verbose (struct loop *)): New.
31371         * tree-data-ref.c
31372         (debug (data_reference &)): New.
31373         (debug (data_reference *)): New.
31374         (debug (vec<data_reference_p> &)): New.
31375         (debug (vec<data_reference_p> *)): New.
31376         (debug (vec<ddr_p> &)): New.
31377         (debug (vec<ddr_p> *)): New.
31378         * tree-data-ref.h
31379         (extern debug (data_reference &)): New.
31380         (extern debug (data_reference *)): New.
31381         (extern debug (vec<data_reference_p> &)): New.
31382         (extern debug (vec<data_reference_p> *)): New.
31383         (extern debug (vec<ddr_p> &)): New.
31384         (extern debug (vec<ddr_p> *)): New.
31385         * tree-ssa-alias.c
31386         (debug (pt_solution &)): New.
31387         (debug (pt_solution *)): New.
31388         * tree-ssa-alias.h
31389         (extern debug (pt_solution &)): New.
31390         (extern debug (pt_solution *)): New.
31391         * tree-ssa-alias.c
31392         (debug (_var_map &)): New.
31393         (debug (_var_map *)): New.
31394         (debug (tree_live_info_d &)): New.
31395         (debug (tree_live_info_d *)): New.
31396         * tree-ssa-alias.h
31397         (extern debug (_var_map &)): New.
31398         (extern debug (_var_map *)): New.
31399         (extern debug (tree_live_info_d &)): New.
31400         (extern debug (tree_live_info_d *)): New.
31402 2013-03-28  Jan Hubicka  <jh@suse.cz>
31404         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31406 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
31408         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31409         record only when desired or required.
31411 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
31413         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31414         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
31416 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31418         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31419         (*andsi3_compare0_uxtw): New pattern.
31420         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31421         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31423 2013-03-28  Jan Hubicka  <jh@suse.cz>
31425         * data-streamer-in.c (streamer_read_gcov_count): New function.
31426         * gimple-streamer-out.c: Include value-prof.h.
31427         (output_gimple_stmt): Output histogram.
31428         (output_bb): Use streamer_write_gcov_count.
31429         * value-prof.c: Include data-streamer.h
31430         (dump_histogram_value): Add HIST_TYPE_MAX.
31431         (stream_out_histogram_value): New function.
31432         (stream_in_histogram_value): New function.
31433         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31434         (stream_out_histogram_value, stream_in_histogram_value): Declare.
31435         * data-streamer-out.c (streamer_write_gcov_count): New function.
31436         (streamer_write_gcov_count_stream): New function.
31437         * lto-cgraph.c (lto_output_edge): Update counter streaming.
31438         (lto_output_node): Likewise.
31439         (input_node, input_edge): Likewise.
31440         * lto-streamer-out.c (output_cfg): Update streaming.
31441         * lto-streamer-in.c (input_cfg): Likewise.
31442         * data-streamer.h (streamer_write_gcov_count,
31443         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31444         * gimple-streamer-in.c: Include value-prof.h
31445         (input_gimple_stmt): Input histograms.
31446         (input_bb): Update profile streaming.
31448 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31450         * genmodes.c (emit_max_int): New function.
31451         (emit_insn_modes_h): Added call to emit_max_function.
31452         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31453         Added doc.
31454         * machmode.def: Fixed comment.
31456 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31458         * combine.c (try_combine): Removed useless assert.
31459         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31461 2013-03-28  Marek Polacek  <polacek@redhat.com>
31462             Richard Biener  <rguenther@suse.de>
31464         PR tree-optimization/56695
31465         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31466         build signed result of a vector comparison.
31467         * tree-cfg.c (verify_gimple_comparison): Check that a result
31468         of a vector comparison has signed type.
31470 2013-03-28  Richard Biener  <rguenther@suse.de>
31472         PR tree-optimization/37021
31473         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31474         do not restrict gaps between groups.
31475         * tree-vect-stmts.c (vectorizable_load): Properly account for
31476         a gap between groups.
31478 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
31480         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31481         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31482         is not enabled.
31484 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
31486         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31487         * doc/extend.texi (Named Address Spaces): Ditto.
31488         (Variable Attributes): Ditto.
31490 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31492         * config.build: Add support for cygwin x64 target.
31493         * config.gcc: Likewise.
31494         * config.host: Likewise.
31495         * configure.ac: Likewise
31496         * configure: Regenerated.
31498 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31500         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31501         * config/i386/t-cygwin-w64: New file.
31502         * config/i386/cygwin-w64.h: New file.
31503         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31504         and add support for x64-cygwin target.
31505         (CPP_SPEC): Likewise.
31506         (CXX_WRAP_SPEC_LIST): Undefine before define.
31507         (LIBGCJ_SONAME): Use 15 as version.
31509 2013-03-27  Richard Biener  <rguenther@suse.de>
31511         PR tree-optimization/56716
31512         * tree-ssa-structalias.c (perform_var_substitution): Adjust
31513         dumping for ref nodes.
31515 2013-03-27  Martin Jambor  <mjambor@suse.cz>
31517         PR tree-optimization/55334
31518         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31519         restricted pointers to arrays.
31521 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
31523         * Makefile.in (.SUFFIXES): Add .cc.
31524         (.c.o): Apply same recipe for implicit rule .cc.o.
31526 2013-03-27  Richard Biener  <rguenther@suse.de>
31528         PR tree-optimization/37021
31529         * tree-vect-data-refs.c (vect_check_strided_load): Allow
31530         REALPART/IMAGPART_EXPRs around the supported refs.
31531         * tree-ssa-structalias.c (find_func_aliases): Assume that
31532         floating-point values are not used to transfer pointers.
31534 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
31536         * target.def (TARGET_HAS_IFUNC_P): New target hook.
31537         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31538         * doc/tm.texi: Regenerate.
31539         * targhooks.h (default_has_ifunc_p): New.
31540         * targhooks.c (default_has_ifunc_p): Ditto.
31541         * config/linux-protos.h: New file.
31542         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31543         hook for linux which disables support of indirect functions in android.
31544         * config/linux-android.c: New file.
31545         * config/t-linux-android.c: Ditto.
31546         * config.gcc: Added new object file linux-android.o.
31547         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31548         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31549         * varasm.c (do_assemble_alias): Likewise.
31550         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31551         doesn't support indirect functions.
31552         * configure: Regenerate.
31554 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
31556         PR target/56102
31557         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31558         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31559         mult-word mode.
31561 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31563         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31565 2013-03-27  Terry Guo  <terry.guo@arm.com>
31567         * config/arm/arm-cores.def: Added core cortex-r7.
31568         * config/arm/arm-tune.md: Regenerated.
31569         * config/arm/arm-tables.opt: Regenerated.
31570         * doc/invoke.texi: Added entry for core cortex-r7.
31572 2013-03-27  Walter Lee  <walt@tilera.com>
31574         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31575         double-decrement of next_scratch_regno.
31577 2013-03-27  Walter Lee  <walt@tilera.com>
31579         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31580         input operands.
31581         (insn_v1mulus): Ditto.
31582         (insn_v2muls): Ditto.
31584 2013-03-27  Walter Lee  <walt@tilera.com>
31586         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31587         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31589 2013-03-27  Walter Lee  <walt@tilera.com>
31591         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31592         (*sibcall_value): Ditto.
31594 2013-03-27  Walter Lee  <walt@tilera.com>
31596         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31597         (insn_mnz_v8qi): ... this ...
31598         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
31599         vector equivalent.
31600         (insn_v<n>mnz): Replaced by ...
31601         (insn_v1mnz): ... this ...
31602         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
31603         equivalent.
31604         (insn_mz_<mode>): Replaced by ...
31605         (insn_mz_v8qi): ... this ...
31606         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
31607         vector equivalent.
31608         (insn_v<n>mz): Replaced by ...
31609         (insn_v1mz): ... this ...
31610         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
31611         equivalent.
31613 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
31615         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31617 2013-03-26  Roland McGrath  <mcgrathr@google.com>
31619         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31620         than fprintf with a non-constant, non-format string.
31622 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31624         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31625         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
31626         operand 0 predicate.
31627         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31628         attribute.  Use general_x64nomem_operand as operand 1 predicate.
31629         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31630         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31631         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31632         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31633         (mov<mode>_insv_1): Remove expander.  Merge insn with
31634         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31635         Use general_x64nomem_operand as operand 1 predicate.
31636         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31637         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31638         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31639         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31640         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
31641         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31642         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31643         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31644         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
31645         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31646         (general_x64nomem_operand): Ditto.
31648 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31650         * config/rtems.opt: Add -pthread option.
31652 2013-03-26  Richard Biener  <rguenther@suse.de>
31654         * alias.c (find_base_term): Avoid redundant and not used recursion.
31655         (base_alias_check): Get the initial base term from the caller.
31656         (true_dependence_1): Compute and pass base terms to base_alias_check.
31657         (write_dependence_p): Likewise.
31658         (may_alias_p): Likewise.
31660 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
31662         * config/aarch64/aarch64.c (aarch64_classify_address): Support
31663         PC-relative load in SI modes and above only.
31665 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
31667         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31668         * config/arm/iwmmxt.md (WCGR0): Update.
31669         (WCGR1, WCGR2, WCGR3): Likewise.
31671 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31673         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31674         Use x64 and nox64 isa attributes.
31676 2013-03-26  Richard Biener  <rguenther@suse.de>
31678         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31679         alignment computations and rely on get_object_alignment_1
31680         for the !TYPE_P case.
31681         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31683 2013-03-26  Walter Lee  <walt@tilera.com>
31685         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31686         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31688 2013-03-25  Jeff Law  <law@redhat.com>
31690         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31691         check for INTEGRAL_TYPE_P that was missing due to checking in
31692         wrong version of prior patch.
31694 2013-03-25  Walter Lee  <walt@tilera.com>
31696         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31697         TILEGX_INSN_SHUFFLEBYTES1.
31698         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31699         shufflebytes1.
31700         (tilegx_builtins): Ditto.
31701         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31703 2013-03-25  Walter Lee  <walt@tilera.com>
31705         * config/tilegx/tilegx.md (floatsisf2): New pattern.
31706         (floatunssisf2): New pattern.
31707         (floatsidf2): New pattern.
31708         (floatunssidf2): New pattern.
31710 2013-03-25  Walter Lee  <walt@tilera.com>
31712         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31713         tests for constraint J, K, N, P.
31715 2013-03-25  Walter Lee  <walt@tilera.com>
31717         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31718         Use indirect/pcrel encoding.
31719         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31720         Ditto.
31722 2013-03-25  Steve Ellcey  <sellcey@mips.com>
31724         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31725         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31726         * config/mips/mips.c (mips_option_override): Set IMADD default.
31727         * config/mips/mips.h (PTF_AVOID_IMADD): New.
31728         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31729         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31730         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31731         * doc/invoke.texi (-mimadd/-mno-imadd): New.
31733 2013-03-25  Jeff Law  <law@redhat.com>
31735         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31736         slightly to avoid creating and folding useless trees.  Simplify
31737         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31739 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
31741         * config/i386/i386.md (*zero_extendsidi2): Merge with
31742         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
31743         * config/i386/predicates.md (x86_64_zext_operand): Rename from
31744         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
31745         targets.  Clarify comment.
31747 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31749         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31750         pass-through jump functions differently.
31751         (ipa_read_jump_function): Likewise.  Also use setter functions to set
31752         up jump functions.
31754 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31756         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31757         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31758         process it.
31759         (ipa_get_indirect_edge_target): New function.
31760         (devirtualization_time_bonus): New parameter known_aggs, pass it to
31761         ipa_get_indirect_edge_target.  Update all callers.
31762         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
31763         ipa_get_indirect_edge_target_1 instead of calling
31764         ipa_get_indirect_edge_target.
31765         (create_specialized_node): Pass aggvlas to
31766         ipcp_discover_new_direct_edges.
31768 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31770         * config/arm/arm.md (f_sels, f_seld): New types.
31771         (*cmov<mode>): New pattern.
31772         * config/arm/predicates.md (arm_vsel_comparison_operator): New
31773         predicate.
31775 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31777         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31778         POSIX-printf for mingw-hosted  builds.
31780 2013-03-25  Richard Biener  <rguenther@suse.de>
31782         PR middle-end/56694
31783         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31784         must-not-throw stmt location.
31786 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31788         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31789         Emit load-acquire versions when acq is true.
31790         (arm_emit_store_exclusive): Add rel parameter.
31791         Emit store-release versions when rel is true.
31792         (arm_split_compare_and_swap): Use acquire-release instructions
31793         instead.
31794         of barriers when appropriate.
31795         (arm_split_atomic_op): Likewise.
31796         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31797         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31798         (VUNSPEC_SLX): Likewise.
31799         (VUNSPEC_LDA): Likewise.
31800         (VUNSPEC_STL): Likewise.
31801         * config/arm/sync.md (atomic_load<mode>): New pattern.
31802         (atomic_store<mode>): Likewise.
31803         (arm_load_acquire_exclusive<mode>): Likewise.
31804         (arm_load_acquire_exclusivesi): Likewise.
31805         (arm_load_acquire_exclusivedi): Likewise.
31806         (arm_store_release_exclusive<mode>): Likewise.
31808 2013-03-25  Catherine Moore  <clm@codesourcery.com>
31810         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31811         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31812         * config/mip/predicates.md (lwsp_swsp_operand,
31813         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31814         sb16_operand, db4_operand, db7_operand, ib3_operand,
31815         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31816         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31817         andi16_operand): New predicates.
31818         * config/mips/mips.md (compression): New attribute.
31819         (enabled): New attribute.
31820         (length): Consider compression in computing length.
31821         (shift_compression): New code attribute.
31822         (*add<mode>3): New operands. Record compression.
31823         (sub<mode>3): Likewise.
31824         (one_cmpl<mode>2): Likewise.
31825         (*and<mode>3): Likewise.
31826         (*ior<mode>3): Likewise.
31827         (unnamed pattern for xor): Likewise.
31828         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31829         (*<optab><mode>3): Likewise.
31830         (*mov<mode>_internal: Likewise.
31831         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31832         (mips_unsigned_immediate_p): New.
31833         (umips_lwsp_swsp_address_p): New.
31834         (m16_based_address_p): New.
31835         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31836         (mips_unsigned_immediate_p): New prototype.
31837         (lwsp_swsp_address_p): New prototype.
31838         (m16_based_address_p): New prototype.
31839         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31840         (mips_signed_immediate_p): New function.
31841         (m16_based_address_p): New function.
31842         (lwsp_swsp_address_p): New function.
31843         (mips_print_operand_punctuation): Recognize short delay slot insns
31844         for microMIPS.add<mode>3"
31846 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31848         PR target/56720
31849         * config/arm/iterators.md (v_cmp_result): New mode attribute.
31850         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31852 2013-03-25  Richard Biener  <rguenther@suse.de>
31854         PR tree-optimization/56689
31855         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31856         any edge.
31858 2013-03-25  Richard Biener  <rguenther@suse.de>
31860         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31861         of bitmap.
31862         (memory_references): Likewise.
31863         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31864         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31865         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31866         (gather_mem_refs_in_loops): Fold into ...
31867         (analyze_memory_references): ... this.  Move initialization
31868         to tree_ssa_lim_initialize.
31869         (fill_always_executed_in): Rename to ...
31870         (fill_always_executed_in_1): ... this.
31871         (fill_always_executed_in): Move contains_call computation to
31872         this new function from ...
31873         (tree_ssa_lim_initialize): ... here.
31874         (tree_ssa_lim): Call fill_always_executed_in.
31876 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31878         * postreload.c (reload_combine): Fix code detecting returns.
31880 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31882         * function.c (emit_use_return_register_into_block): On cc0 targets,
31883         do not emit the sequence between cc0 setter and user.
31885 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31887         * config/i386/predicates.md (local_symbolic_operand): Interpret
31888         dll-imported symbols as none-local.
31890 2013-03-25  Richard Biener  <rguenther@suse.de>
31892         * tree-ssa-loop-im.c (struct depend): Remove.
31893         (struct lim_aux_data): Make depends a vec of gimples.
31894         (free_lim_aux_data): Adjust.
31895         (add_dependency): Likewise.
31896         (set_level): Likewise.
31898 2013-03-25  Richard Biener  <rguenther@suse.de>
31900         PR middle-end/56434
31901         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31902         the pointer returned by calls with ECF_MALLOC set.
31904 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31906         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31908 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31910         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31911         using MMXMODE mode iterator.
31912         (*move<mode>_internal): Merge with *movv2sf_internal and
31913         *movv2sf_internal_rex64 using MMXMODE mode iterator.
31915 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31917         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31918         (record_last_mem_set_info): Likewise.
31920         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31921         of XNEWVEC followed by memset.
31922         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31924 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31926         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31927         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31928         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31929         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31930         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31931         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31932         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31933         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31934         BARRIER_P instead of GET_CODE.
31936 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31938         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31939         inaccuracy in the probing code.
31941         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31942         (ctrapdi4): Likewise.
31944 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31946         * calls.c (expand_call): Add missing guard to code handling return
31947         of non-BLKmode structures in MSB.
31948         * function.c (expand_function_end): Likewise.
31950 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31952         * combine.c (try_combine): Adjust comment.  Do not add the set of
31953         insn #0 if the destination indirectly is set or dies in insn #2.
31954         Tidy up code to distribute a new note.
31956 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31958         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31959         also for alternatives 16 and 17.
31961 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31963         * config/i386/sse.md (*mov<mode>_internal): Merge with
31964         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
31965         Emit insn template depending on type attribute.  Use
31966         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31967         movd instead of movq mnemonic for interunit moves.  Rewrite mode
31968         attribute calculation.  Remove unit attribute calculation.
31969         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31970         Set prefix_data16 attribute for DImode ssemov types.
31971         Use Ym instead of y for SSE-MMX conversion alternatives.
31972         Reorder operand constraints.
31974 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
31976         * df.h (df_insn_delete): Adjust prototype.
31977         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31978         and let it decide whether mark the basic block dirty.
31979         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31980         * df-scan.c (df_insn_info_delete): New helper function, split
31981         off from df_insn_delete.
31982         (df_scan_free_bb_info): Use it.
31983         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31984         Likewise.
31985         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
31986         that the insn is actually an insn and it has a non-NULL basic block.
31987         Do not mark basic block dirty if only deleting a DEBUG_INSN.
31989 2013-03-22  Richard Biener  <rguenther@suse.de>
31991         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31992         dep_ref members.
31993         (mem_ref_alloc): Do not allocate them.
31994         (refs_independent_p): Do not query or maintain a cache.
31996 2013-03-22  Richard Biener  <rguenther@suse.de>
31998         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31999         (gather_mem_refs_in_loops): Do not compute it.
32000         (analyze_memory_references): Do not allocate it.
32001         (tree_ssa_lim_finalize): Do not free it.
32002         (for_all_locs_in_loop): Do not query all_refs_in_loop.
32004 2013-03-22  Richard Biener  <rguenther@suse.de>
32006         * is-a.h (as_a): Use gcc_checking_assert.
32008 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
32010         * config/aarch64/aarch64.c (aarch64_print_operand): New
32011         format specifier for printing a constant in hex.
32012         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
32013         format specifier for printing second operand.
32015 2013-03-22  Richard Biener  <rguenther@suse.de>
32017         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
32018         bitmaps.
32019         (gather_mem_refs_in_loops): Perform store accumulation here.
32020         (create_vop_ref_mapping_loop): Remove.
32021         (create_vop_ref_mapping): Likewise.
32022         (analyze_memory_references): Initialize refs_stored_in_loop.
32023         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
32024         (record_indep_loop): Remove.
32025         (record_dep_loop): New function.
32026         (ref_indep_loop_p_1): Adjust to only walk over references
32027         in the loop, not its subloops.
32028         (ref_indep_loop_p): Rename to ...
32029         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
32030         maintaining a more fine-grained cache.
32031         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
32032         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
32034 2013-03-22  Richard Biener  <rguenther@suse.de>
32036         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
32037         (struct mem_ref): Make accesses_in_loop a vec of a vec of
32038         aggregate mem_ref_loc.
32039         (free_mem_ref_locs): Inline into ...
32040         (memref_free): ... this and adjust.
32041         (mem_ref_alloc): Adjust.
32042         (mem_ref_locs_alloc): Remove.
32043         (record_mem_ref_loc): Adjust.
32044         (get_all_locs_in_loop): Rewrite into ...
32045         (for_all_locs_in_loop): ... this iterator.
32046         (rewrite_mem_ref_loc): New functor.
32047         (rewrite_mem_refs): Use for_all_locs_in_loop.
32048         (sm_set_flag_if_changed): New functor.
32049         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
32050         (ref_always_accessed): New functor.
32051         (ref_always_accessed_p): Use for_all_locs_in_loop.
32053 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
32055         * tree-pass.h (PROP_gimple_lvec): New.
32056         * passes.c (dump_properties): Handle PROP_gimple_lvec.
32057         (init_optimization_passes): Move pass_lower_vector.
32058         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
32059         PROP_gimple_lvec.
32060         (pass_lower_vector): Provide PROP_gimple_lvec.
32061         (pass_lower_vector_ssa): Likewise.
32062         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
32064 2013-03-21  Mark Wielaard  <mjw@redhat.com>
32066         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
32068 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
32070         * config/i386/i386.md (*movdi_internal): Disparage slightly
32071         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
32072         conversion alternatives.
32074 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
32076         PR middle-end/48087
32077         * diagnostic.def (DK_WERROR): New kind.
32078         * diagnostic.h (werrorcount): Define.
32079         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
32080         promoted to DK_ERROR, increment DK_WERROR counter instead of
32081         DK_ERROR counter.
32082         * toplev.c (toplev_main): Call print_ignored_options even if
32083         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
32084         even if just werrorcount is non-zero.
32086         PR debug/55608
32087         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
32088         on failure.
32089         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
32090         (string_cst_pool_decl): New function.
32091         (optimize_one_addr_into_implicit_ptr): New function.
32092         (resolve_addr_in_expr): Optimize DWARF location expression
32093         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
32094         which doesn't live in memory, but has DW_AT_location or
32095         DW_AT_const_value, or refers to a string literal, into
32096         DW_OP_GNU_implicit_pointer.
32097         (optimize_location_into_implicit_ptr): New function.
32098         (resolve_addr): If removing DW_AT_location of a variable because
32099         it was DW_OP_addr of address of the variable, but the variable doesn't
32100         live in memory, try to emit const value attribute for the initializer.
32102 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
32104         * tree.h (VECTOR_TYPE_P): New macro.
32105         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
32106         TYPE_MODE): Use it.
32107         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
32108         VEC_COND_EXPR cannot be lvalues.
32109         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
32111 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
32113         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
32114         Restrict the transformation to equal modes.
32116 2013-03-21  Richard Biener  <rguenther@suse.de>
32118         PR tree-optimization/39326
32119         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
32120         (MEM_ANALYZABLE): Adjust.
32121         (record_mem_ref_loc): Move bitmap ops ...
32122         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
32123         unanalyzable refs, do not record locations for it.
32124         (analyze_memory_references): Allocate ref zero as shared
32125         unanalyzable ref.
32126         (refs_independent_p): Do not test for unanalyzed mems here.
32127         (ref_indep_loop_p_1): Special-case disambiguation against
32128         the unanalyzed ref.
32129         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
32131 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
32133         * config/arm/arm-protos.h (tune_params): Add
32134         prefer_neon_for_64bits field.
32135         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
32136         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
32137         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
32138         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
32139         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
32140         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
32141         (arm_option_override): Handle -mneon-for-64bits new option.
32142         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
32143         (prefer_neon_for_64bits): Declare new variable.
32144         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
32145         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
32146         (arch_enabled): Handle new arch types. Remove support for onlya8
32147         and nota8.
32148         (one_cmpldi2): Use new arch names.
32149         (zero_extend<mode>di2, extend<mode>di2): Ditto.
32150         * config/arm/arm.opt (mneon-for-64bits): Add option.
32151         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
32152         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
32153         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
32154         of onlya8.
32155         * doc/invoke.texi (-mneon-for-64bits): Document.
32157 2013-03-21  Richard Biener  <rguenther@suse.de>
32159         PR tree-optimization/39326
32160         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
32161         (sort_bbs_in_loop_postorder_cmp): New function.
32162         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
32164 2013-03-21  Richard Biener  <rguenther@suse.de>
32166         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
32167         (vect_insert_into_interleaving_chain): Likewise.
32168         (vect_drs_dependent_in_basic_block): Inline ...
32169         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
32170         split out from ...
32171         (vect_analyze_data_ref_dependence): ... here.  Simplify.
32172         (vect_check_interleaving): Simplify.
32173         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
32174         (vect_slp_analyze_data_ref_dependences): ... this new function.
32175         (dr_group_sort_cmp): New function.
32176         (vect_analyze_data_ref_accesses): Compute data-reference groups
32177         here instead of in vect_analyze_data_ref_dependence.  Use
32178         a more efficient algorithm.
32179         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
32180         vect_slp_analyze_data_ref_dependences.  Call
32181         vect_analyze_data_ref_accesses earlier.
32182         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
32183         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
32184         (vect_slp_analyze_data_ref_dependences): New prototype.
32186 2013-03-21  Richard Biener  <rguenther@suse.de>
32188         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
32189         ref is stored in the loop.
32190         (find_refs_for_sm): Walk only over all stores.
32191         (store_motion_loop): Allocate from lim_bitmap_obstack.
32192         (store_motion): Likewise.
32194 2013-03-21  Richard Biener  <rguenther@suse.de>
32196         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
32197         Update virtual SSA form.
32199 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32201         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
32202         * configure: Regenerate.
32203         * config.in: Regenerate.
32204         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
32205         if !HAVE_LD_EH_FRAME_CIEV3.
32207 2013-03-21  Richard Biener  <rguenther@suse.de>
32209         * tree-cfg.c (verify_expr_no_block): New function.
32210         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
32211         nor DECL_VALUE_EXPR have locations with associated blocks.
32212         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
32213         (clear_unused_block_pointer): Remove code dealing with
32214         blocks in DECL_DEBUG_EXPR locations.
32216 2013-03-21  Richard Biener  <rguenther@suse.de>
32218         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
32219         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
32220         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
32221         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
32222         instead of DECL_DEBUG_EXPR_IS_FROM.
32223         * gimplify.c (gimplify_modify_expr): Likewise.
32224         * tree-cfg.c (verify_expr_location_1): Likewise.
32225         * tree-complex.c (create_one_component_var): Likewise.
32226         * tree-sra.c (create_access_replacement): Likewise.
32227         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
32228         (clear_unused_block_pointer): Likewise.
32229         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
32230         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
32231         * var-tracking.c (var_debug_decl): Likewise.
32232         (track_expr_p): Likewise.
32233         * tree-inline.c (add_local_variables): Likewise.  Set
32234         DECL_HAS_DEBUG_EXPR_P after copying it.
32235         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
32236         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
32238 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
32240         PR bootstrap/56656
32241         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
32242         * configure: Regenerate.
32243         * config.in: Regenerate.
32244         * config/i386/i386.md (*movdf_internal): Use
32245         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32246         movd instead of movq mnemonic for interunit moves.
32247         (*movdi_internal): Ditto.
32249 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32251         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
32252         (abd<mode>_3): New pattern.
32253         (aba<mode>_3): New pattern.
32254         (fabd<mode>_3): New pattern.
32256 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32258         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
32259         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
32260         occurrence of REGISTER_PREFIX as its empty string.
32262 2013-03-20  Jeff Law  <law@redhat.com>
32264         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
32265         addititional equivalences for equality comparisons between an SSA_NAME
32266         and a constant where the SSA_NAME was set from a widening conversion.
32268 2013-03-20  Walter Lee  <walt@tilera.com>
32270         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32272 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32274         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32275         depending on type attribute.
32276         (*movti_internal): Ditto.
32277         (*movtf_internal): Ditto.
32278         (*movxf_internal): Ditto.
32279         (*movdf_internal): Ditto.
32280         (*movsf_internal): Ditto.
32282 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32284         * config/i386/i386.md (*movti_internal): Set prefix attribute to
32285         maybe_vex for sselog1 and ssemov types.
32286         (*movdi_internal): Reorder operand constraints.
32287         (*movsi_internal): Ditto.  Set prefix attribute to
32288         maybe_vex for sselog1 and ssemov types.
32289         (*movtf_internal): Set prefix attribute to maybe_vex
32290         for sselog1 and ssemov types.
32291         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
32292         DImode ssemov types.  Reorder operand constraints.
32293         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
32294         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
32295         attribute for SImode ssemov types.  Reorder operand constraints.
32297 2013-03-20  Martin Jambor  <mjambor@suse.cz>
32299         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32300         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32302 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
32304         * config/rs6000/predicates.md (indexed_address, update_address_mem
32305         update_indexed_address_mem): New predicates.
32306         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32307         attribute for load/store instructions.
32308         * config/rs6000/dfp.md (movsd_store): Likewise.
32309         (movsd_load): Likewise.
32310         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32311         (unnamed HI->DI extend define_insn): Likewise.
32312         (unnamed SI->DI extend define_insn): Likewise.
32313         (unnamed QI->SI extend define_insn): Likewise.
32314         (unnamed QI->HI extend define_insn): Likewise.
32315         (unnamed HI->SI extend define_insn): Likewise.
32316         (unnamed HI->SI extend define_insn): Likewise.
32317         (extendsfdf2_fpr): Likewise.
32318         (movsi_internal1): Likewise.
32319         (movsi_internal1_single): Likewise.
32320         (movhi_internal): Likewise.
32321         (movqi_internal): Likewise.
32322         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32323         attribute for load/store instructions.
32324         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32325         instructions.
32326         (mov<mode>_softfloat): Likewise.
32327         (mov<mode>_hardfloat32): Likewise.
32328         (mov<mode>_hardfloat64): Likewise.
32329         (mov<mode>_softfloat64): Likewise.
32330         (movdi_internal32): Likewise.
32331         (movdi_internal64): Likewise.
32332         (probe_stack_<mode>): Likewise.
32334 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
32336         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32337         floating point, and decimal floating point to reload iterator.
32339         * config/rs6000/constraints.md (wl constraint): New constraints to
32340         return FLOAT_REGS if certain options are used to reduce the number
32341         of separate patterns that exist in the file.
32342         (wx constraint): Likewise.
32343         (wz constraint): Likewise.
32345         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32346         -mdebug=reg, print wg, wl, wx, and wz constraints.
32347         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32348         Initialize the reload functions for 64-bit binary/decimal floating
32349         point types.
32350         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32351         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32352         create the buffer on the stack to overcome not having a 32-bit
32353         load and store.
32354         (rs6000_emit_move): Likewise.
32355         (rs6000_secondary_memory_needed_rtx): Likewise.
32356         (rs6000_alloc_sdmode_stack_slot): Likewise.
32357         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32358         via xxlxor, just like DFmode 0.0.
32360         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32361         define as 1 if we are running on a power7 or newer.
32362         (enum r6000_reg_class_enum): Add new constraints.
32364         * config/rs6000/dfp.md (movsd): Delete, combine with binary
32365         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
32366         with other moves by using conditional constraits (wg).  Use LFIWZX
32367         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
32368         (movsd splitter): Likewise.
32369         (movsd_hardfloat): Likewise.
32370         (movsd_softfloat): Likewise.
32372         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32373         binary and decimal floating point moves.
32374         (fmove_ok): New attributes to combine binary and decimal floating
32375         point moves, and to combine power6x (mfpgpr) moves along normal
32376         floating moves.
32377         (real_value_to_target): Likewise.
32378         (f32_lr): Likewise.
32379         (f32_lm): Likewise.
32380         (f32_li): Likewise.
32381         (f32_sr): Likewise.
32382         (f32_sm): Likewise.
32383         (f32_si): Likewise.
32384         (movsf): Combine binary and decimal floating point moves.  Combine
32385         power6x (mfpgpr) moves with other moves by using conditional
32386         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
32387         (mov<mode> for SFmode/SDmode); Likewise.
32388         (SFmode/SDmode splitters): Likewise.
32389         (movsf_hardfloat): Likewise.
32390         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32391         (movsf_softfloat): Likewise.
32392         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32394         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32395         wx and wz constraints.
32397         * config/rs6000/constraints.md (wg constraint): New constraint to
32398         return FLOAT_REGS if -mmfpgpr (power6x) was used.
32400         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32401         constraint.
32403         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32404         -mdebug=reg, print wg, wl, wx, and wz constraints.
32405         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32406         Initialize the reload functions for 64-bit binary/decimal floating
32407         point types.
32408         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32409         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32410         create the buffer on the stack to overcome not having a 32-bit
32411         load and store.
32412         (rs6000_emit_move): Likewise.
32413         (rs6000_secondary_memory_needed_rtx): Likewise.
32414         (rs6000_alloc_sdmode_stack_slot): Likewise.
32415         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32416         via xxlxor, just like DFmode 0.0.
32418         * config/rs6000/dfp.md (movdd): Delete, combine with binary
32419         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
32420         with other moves by using conditional constraits (wg).  Use LFIWZX
32421         and STFIWX for loading SDmode on power7.
32422         (movdd splitters): Likewise.
32423         (movdd_hardfloat32): Likewise.
32424         (movdd_softfloat32): Likewise.
32425         (movdd_hardfloat64_mfpgpr): Likewise.
32426         (movdd_hardfloat64): Likewise.
32427         (movdd_softfloat64): Likewise.
32429         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32430         64-bit binary and decimal floating point moves.
32431         (FMOVE64X): Likewise.
32432         (movdf): Combine 64-bit binary and decimal floating point moves.
32433         Combine power6x (mfpgpr) moves with other moves by using
32434         conditional constraits (wg).
32435         (mov<mode> for DFmode/DDmode): Likewise.
32436         (DFmode/DDmode splitters): Likewise.
32437         (movdf_hardfloat32): Likewise.
32438         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32439         (movdf_softfloat32): Likewise.
32440         (movdf_hardfloat64_mfpgpr): Likewise.
32441         (movdf_hardfloat64): Likewise.
32442         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32443         (movdf_softfloat64): Likewise.
32444         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32445         (reload_<mode>_load): Move to later in the file so they aren't in
32446         the middle of the floating point move insns.
32447         (reload_<mode>_store): Likewise.
32449         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32450         constraint.
32452         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32453         constraint if -mdebug=reg.
32454         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32455         Enable using dd reload support if needed.
32457         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32458         binary and decimal floating point moves in rs6000.md.
32459         (movtd_internal): Likewise.
32461         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32462         decimal floating point moves.
32463         (movtf): Likewise.
32464         (movtf_internal): Likewise.
32465         (mov<mode>_internal, TDmode/TFmode): Likewise.
32466         (movtf_softfloat): Likewise.
32467         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32469         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32470         movdi_internal64, using wg constraint for move direct operations.
32471         (movdi_internal64): Likewise.
32473         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32474         MODES_TIEABLE_P for selected modes.  Print the numerical value of
32475         the various virtual registers. Use GPR/FPR first/last values,
32476         instead of hard coding the register numbers.  Print which modes
32477         have reload functions registered.
32478         (rs6000_option_override_internal): If -mdebug=reg, trace the options
32479         settings before/after setting cpu, target and subtarget settings.
32480         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32481         and for secondary reload failures in rs6000_secondary_reload_inner.
32482         (rs6000_secondary_reload_fail): Likewise.
32483         (rs6000_secondary_reload_inner): Likewise.
32485         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32486         macros for first/last GPR and FPR registers.
32487         (LAST_GPR_REGNO): Likewise.
32488         (FIRST_FPR_REGNO): Likewise.
32489         (LAST_FPR_REGNO): Likewise.
32491         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32492         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32493         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32494         (vcond<mode><mode>): Likewise.
32495         (vcondu<mode><mode>): Likewise.
32496         (vector_gtu<mode>): Likewise.
32497         (vector_gte<mode>): Likewise.
32498         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32499         to prevent the compiler from converting DImode operations to TImode.
32500         (ior<mode>3): Likewise.
32501         (and<mode>3): Likewise.
32502         (one_cmpl<mode>2): Likewise.
32503         (nor<mode>3): Likewise.
32504         (andc<mode>3): Likewise.
32506         * config/rs6000/constraints.md (wt constraint): New constraint
32507         that returns VSX_REGS if TImode is allowed in VSX registers.
32509         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32510         constant under VSX.
32512         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32513         similar to TImode, but it is restricted to being in the GPRs.
32515         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32516         TImode to occupy a single VSX register.
32518         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32519         -mvsx-timode for power7/power8.
32520         (power7 cpu): Likewise.
32521         (power8 cpu): Likewise.
32523         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32524         sure that TFmode/TDmode take up two registers if they are ever
32525         allowed in the upper VSX registers.
32526         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32527         registers.
32528         (rs6000_init_hard_regno_mode_ok): Likewise.
32529         (rs6000_debug_reg_global): Add debugging for PTImode and wt
32530         constraint.  Print if LRA is turned on.
32531         (rs6000_option_override_internal): Give an error if -mvsx-timode
32532         and VSX is not enabled.
32533         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
32534         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32535         to reg+offset addressing.  Use PTImode when checking offset
32536         addresses for validity.
32537         (reg_offset_addressing_ok_p): Likewise.
32538         (rs6000_legitimate_offset_address_p): Likewise.
32539         (rs6000_legitimize_address): Likewise.
32540         (rs6000_legitimize_reload_address): Likewise.
32541         (rs6000_legitimate_address_p): Likewise.
32542         (rs6000_eliminate_indexed_memrefs): Likewise.
32543         (rs6000_emit_move): Likewise.
32544         (rs6000_secondary_reload): Likewise.
32545         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
32546         reloads to fpr registers to continue to use reg+offset addressing,
32547         but 64-bit reloads to altivec registers need reg+reg addressing.
32548         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32549         it.  Treat LO_SUM like a PLUS operation.
32550         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32551         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32552         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32553         registers to share a register with a smaller sized type, since VSX
32554         puts scalars in the upper 64-bits.
32555         (print_operand): Add support for PTImode.
32556         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32557         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32558         registers, but don't have arithmetic support.
32559         (rs6000_memory_move_cost): Add test for VSX.
32560         (rs6000_opt_masks): Add -mvsx-timode.
32562         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32563         for TImode.
32564         (VSs): Likewise.
32565         (VSr): Use wt constraint for TImode.
32566         (VSv): Drop TImode support.
32567         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32568         (vsx_movti_64bit): Likewise.
32569         (vsx_movti_32bit): Likewise.
32570         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32571         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32572         one '?' on the appropriate output constraint.  Do not allow TImode
32573         logical operations on 32-bit systems.
32574         (vsx_ior<mode>3): Likewise.
32575         (vsx_xor<mode>3): Likewise.
32576         (vsx_one_cmpl<mode>2): Likewise.
32577         (vsx_nor<mode>3): Likewise.
32578         (vsx_andc<mode>3): Likewise.
32579         (vsx_concat_<mode>): Likewise.
32580         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32582         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32583         OPTION_MASK_VSX_TIMODE.
32584         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32585         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32587         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32588         (TI2 iterator): New iterator for TImode, PTImode.
32589         (wd mode attribute): Add values for vector types.
32590         (movti_string): Replace TI move operations with operations for TImode
32591         and PTImode.  Add support for TImode being allowed in VSX registers.
32592         (mov<mode>_string, TImode/PTImode): Likewise.
32593         (movti_ppc64): Likewise.
32594         (mov<mode>_ppc64, TImode/PTImode): Likewise.
32595         (TI mode splitters): Likewise.
32597         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32598         constraint.
32600 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
32602         PR tree-optimization/56355
32603         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32604         Also handle integers with undefined overflow.
32606 2013-03-20  Catherine Moore  <clm@codesourcery.com>
32607             Maciej W. Rozycki  <macro@codesourcery.com>
32608             Tom de Vries  <tom@codesourcery.com>
32609             Nathan Sidwell  <nathan@codesourcery.com>
32610             Iain Sandoe  <iain@codesourcery.com>
32611             Nathan Froyd  <froydnj@codesourcery.com>
32612             Chao-ying Fu  <fu@mips.com>
32614         * doc/extend.texi: (micromips, nomicromips, nocompression):
32615         Document new function attributes.
32616         * doc/invoke.texi (minterlink-compressed, mmicromips,
32617         m14k, m14ke, m14kec): Document new options.
32618         (minterlink-mips16): Update documentation.
32619         * doc/md.texi (ZC, ZD): Document new constraints.
32620         * configure.ac (gcc_cv_as_micromips): Check if linker
32621         supports the .set micromips directive.
32622         * configure: Regenerate.
32623         * config.in: Regenerate.
32624         * config/mips/mips-tables.opt: Regenerate.
32625         * config/mips/micromips.md: New file.
32626         * constraints.md (ZC, ZD): New constraints.
32627         * config/mips/predicates.md (movep_src_register): New predicate.
32628         (movep_src_operand): New predicate.
32629         (non_volatile_mem_operand): New predicate.
32630         * config/mips/mips.md (multimem): New type.
32631         (length): Differentiate between 17-bit and 18-bit branch offsets.
32632         (MOVEP1, MOVEP2): New mode iterator.
32633         (mov_<load>l): Use ZC constraint.
32634         (mov_<load>r): Likewise.
32635         (mov_<store>l): Likewise.
32636         (mov_<store>r): Likewise.
32637         (*branch_equality<mode>_inverted): Add microMIPS support.
32638         (*branch_equality<mode>): Likewise.
32639         (*jump_absolute): Likewise.
32640         (indirect_jump_<mode>): Likewise.
32641         (tablejump_<mode>): Likewise.
32642         (<optab>_internal): Likewise.
32643         (sibcall_internal): Likewise.
32644         (sibcall_value_internal): Likewise.
32645         (prefetch): Use constraint ZD.
32646         * config/mips/mips.opt (minterlink-compressed): New option.
32647         (minterlink-mips16): Now an alias for minterlink-compressed.
32648         (mmicromips): New option.
32649         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32650         (compare_and_swap_12): Likewise.
32651         (sync_add<mode>): Likewise.
32652         (sync_<optab>_12): Likewise.
32653         (sync_old_<optab>_12): Likewise.
32654         (sync_new_<optab>_12): Likewise.
32655         (sync_nand_12): Likewise.
32656         (sync_old_nand_12): Likewise.
32657         (sync_new_nand_12): Likewise.
32658         (sync_sub<mode>): Likewise.
32659         (sync_old_add<mode>): Likewise.
32660         (sync_old_sub<mode>): Likewise.
32661         (sync_new_add<mode>): Likewise.
32662         (sync_new_sub<mode>): Likewise.
32663         (sync_<optab><mode>): Likewise.
32664         (sync_old_<optab><mode>): Likewise.
32665         (sync_new_<optab><mode>): Likewise.
32666         (sync_nand<mode>): Likewise.
32667         (sync_old_nand<mode>): Likewise.
32668         (sync_new_nand<mode>): Likewise.
32669         (sync_lock_test_and_set<mode>): Likewise.
32670         (test_and_set_12): Likewise.
32671         (atomic_compare_and_swap<mode>): Likewise.
32672         (atomic_exchange<mode>_llsc): Likewise.
32673         (atomic_fetch_add<mode>_llsc): Likewise.
32674         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32675         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32676         (umips_save_restore_pattern_p): Likewise.
32677         (umips_load_store_pair_p): Likewise.
32678         (umips_output_load_store_pair): Likewise.
32679         (umips_movep_target_p): Likewise.
32680         (umips_12bit_offset_address_p): Likewise.
32681         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32682         (mips_base_mips16): Rename this...
32683         (mips_base_compression_flags): ...to this. Update all uses.
32684         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32685         (mips_mips16_decl_p): Delete.
32686         (mips_nomips16_decl_p): Delete.
32687         (mips_get_compress_on_flags): New function.
32688         (mips_get_compress_off_flags): New function.
32689         (mips_get_compress_mode): New function.
32690         (mips_get_compress_on_name): New function.
32691         (mips_get_compress_off_name): New function.
32692         (mips_insert_attributes): Support multiple compression types.
32693         (mips_merge_decl_attributes): Likewise.
32694         (umips_12bit_offset_address_p): New function.
32695         (mips_start_function_definition): Emit .set micromips directive.
32696         (mips_call_may_need_jalx_p): New function.
32697         (mips_function_ok_for_sibcall): Add microMIPS support.
32698         (mips_print_operand_punctuation): Support short delay slots and
32699         compact jumps.
32700         (umips_swm_mask, umips_swm_encoding): New.
32701         (umips_build_save_restore): New function.
32702         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32703         (was_mips16_p): Remove.
32704         (old_compression_mode): New.
32705         (mips_set_compression_mode): New function.
32706         (mips_set_current_function): Add microMIPS support.
32707         (mips_option_override): Likewise.
32708         (umips_save_restore_pattern_p): New function.
32709         (umips_output_save_restore): New function.
32710         (umips_load_store_pair_p_1): New function.
32711         (umips_load_store_pair_p): New function.
32712         (umips_output_load_store_pair_1): New function.
32713         (umips_output_load_store_pair): New function.
32714         (umips_movep_target_p) New function.
32715         (mips_prepare_pch_save): Add microMIPS support.
32716         * config/mips/mips.h (TARGET_COMPRESSION): New.
32717         (TARGET_CPU_CPP_BUILTINS): Update macro
32718         to use new compression flags and to support microMIPS.
32719         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32720         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32721         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32722         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32723         (ASM_SPEC): Support mmicromips and mno-micromips.
32724         (M16STORE_REG_P): New macro.
32725         (MIPS_CALL): Support TARGET_MICROMIPS.
32726         (MICROMIPS_J): New macro.
32727         (mips_base_mips16): Rename this...
32728         (mips_base_compression_flags): ...to this.
32729         (UMIPS_12BIT_OFFSET_P): New macro.
32730         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32731         (MULTILIB_DIRNAMES): Likewise.
32732 2013-03-20  Richard Biener  <rguenther@suse.de>
32734         PR tree-optimization/56661
32735         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32736         the result does not have to be distinct.
32738 2013-03-20  Richard Biener  <rguenther@suse.de>
32740         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32741         remap_gimple_op_r.
32743 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32744             Steven Bosscher  <steven@gcc.gnu.org>
32746         PR rtl-optimization/56605
32747         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32749 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32751         PR bootstrap/56656
32752         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32753         that require movd instead of movq.
32755 2013-03-20  Richard Biener  <rguenther@suse.de>
32757         * tree-ssa-structalias.c (struct variable_info): Add pointer
32758         to the first field of an aggregate with sub-vars.  Make
32759         this and the pointer to the next subfield its ID.
32760         (vi_next): New function.
32761         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32762         storedanything_id, integer_id): Increment by one.
32763         (new_var_info, get_call_vi, lookup_call_clobber_vi,
32764         get_call_clobber_vi): Adjust.
32765         (solution_set_expand): Simplify and speedup.
32766         (solution_set_add): Inline into ...
32767         (set_union_with_increment): ... this.  Adjust accordingly.
32768         (do_sd_constraint): Likewise.
32769         (do_ds_constraint): Likewise.
32770         (do_complex_constraint): Simplify.
32771         (build_pred_graph): Adjust.
32772         (solve_graph): Likewise.  Simplify and speedup.
32773         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32774         get_constraint_for_component_ref, get_constraint_for_1,
32775         first_vi_for_offset, first_or_preceding_vi_for_offset,
32776         create_function_info_for, create_variable_info_for_1,
32777         create_variable_info_for, intra_create_variable_infos): Adjust.
32778         (init_base_vars): Push NULL for ID zero.
32779         (compute_points_to_sets): Adjust.
32781 2013-03-20  Richard Biener  <rguenther@suse.de>
32783         * cfgloop.c (verify_loop_structure): Streamline and avoid
32784         ICEing on corrupt loop tree.
32785         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32786         loop tree.
32788 2013-03-20  Richard Biener  <rguenther@suse.de>
32790         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32791         check whether an SSA update is needed.
32793 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
32795         * config/mips/constraints.md (T): Rename to...
32796         (Yf): ...this.
32797         (U): Rename to...
32798         (Yd): ...this.
32799         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32800         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32802 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32804         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32805         (*subsi3_carryin_uxtw): Likewise.
32807 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32809         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32810         (*rorsi3_insn_uxtw): Likewise.
32812 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32814         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32815         (*extrsi5_insn_uxtw): Likewise.
32817 2013-03-19  Richard Biener  <rguenther@suse.de>
32819         PR tree-optimization/56273
32820         * passes.c (init_optimization_passes): Move second VRP after DOM.
32822 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
32824         * config/i386/i386.md (*movti_internal): Merge from
32825         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
32826         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
32827         nox64 isa attributes.
32829 2013-03-18  Richard Biener  <rguenther@suse.de>
32831         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32832         (unite): Likewise.
32833         (merge_node_constraints): Likewise.
32834         (build_succ_graph): Likewise.
32835         (valid_graph_edge): Inline into single caller.
32836         (unify_nodes): Likewise.  Use bitmap_set_bit return value
32837         and cache varinfo.
32838         (scc_visit): Fix formatting and variable use.
32839         (do_sd_constraint): Use gcc_checking_assert.
32840         (do_ds_constraint): Likewise.
32841         (do_complex_constraint): Likewise.
32842         (condense_visit): Likewise.  Cleanup.
32843         (dump_pred_graph): New function.
32844         (perform_var_substitution): Dump the pred-graph before
32845         variable substitution.
32846         (find_equivalent_node): Use gcc_checking_assert.
32847         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32849 2013-03-18  Richard Biener  <rguenther@suse.de>
32851         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32852         Remove cond_expr_stmt_list argument and do not gimplify the
32853         built expression.
32854         (vect_loop_versioning): Adjust.
32855         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32856         Cleanup to use less temporaries.
32857         (vect_create_data_ref_ptr): Cleanup.
32859 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32861         PR tree-optimization/56635
32862         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32863         require types_compatible_p types.
32865 2013-03-18  Nick Clifton  <nickc@redhat.com>
32867         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32868         spurious backslash.
32870         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32871         Add missing line to comment describing function.
32873 2013-03-18  Richard Biener  <rguenther@suse.de>
32875         PR tree-optimization/56210
32876         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32877         Handle string / character search functions.
32878         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32880 2013-03-18  Richard Biener  <rguenther@suse.de>
32882         PR middle-end/56483
32883         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32884         and implement properly.
32885         * gimple.h (gimple_cond_single_var_p): Remove.
32887 2013-03-18  Richard Biener  <rguenther@suse.de>
32889         * tree-data-ref.h (find_data_references_in_loop): Declare.
32890         * tree-data-ref.c (get_references_in_stmt): Use a stack
32891         vector pre-allocated in the callers.
32892         (find_data_references_in_stmt): Adjust.
32893         (graphite_find_data_references_in_stmt): Likewise.
32894         (create_rdg_vertices): Likewise.
32895         (find_data_references_in_loop): Export.
32896         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32897         Compute dependences here...
32898         (vect_analyze_data_refs): ...not here.  When we encounter
32899         a non-vectorizable data reference in basic-block vectorization
32900         truncate the data reference vector.  Do not bother to
32901         fixup data-dependence information for gather loads.
32902         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32903         of data references, as reported.
32905 2013-03-18  Richard Biener  <rguenther@suse.de>
32907         PR tree-optimization/3713
32908         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
32909         has_constants and expr.
32910         (stmt_has_constants): Properly valueize SSA names when deciding
32911         whether the stmt has constants.
32913 2013-03-18  Richard Biener  <rguenther@suse.de>
32915         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32916         whole function when there is nothing to do.
32917         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32918         * tree-vectorizer.c (vectorize_loops): Update virtual and
32919         loop-closed SSA once.
32920         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32922 2013-03-18  Richard Biener  <rguenther@suse.de>
32924         PR middle-end/56113
32925         * domwalk.c (bb_postorder): New global static.
32926         (cmp_bb_postorder): New function.
32927         (walk_dominator_tree): Replace scheme imposing an order for
32928         visiting dominator sons by one sorting them at the time they
32929         are pushed on the stack.
32931 2013-03-18  Richard Biener  <rguenther@suse.de>
32933         PR tree-optimization/39326
32934         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32935         (struct mem_ref): Replace mem member with ao_ref typed member.
32936         (MEM_ANALYZABLE): Adjust.
32937         (memref_eq): Likewise.
32938         (mem_ref_alloc): Likewise.
32939         (gather_mem_refs_stmt): Likewise.
32940         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32941         (execute_sm_if_changed_flag_set): Adjust.
32942         (execute_sm): Likewise.
32943         (ref_always_accessed_p): Likewise.
32944         (refs_independent_p): Likewise.
32945         (can_sm_ref_p): Likewise.
32947 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32949         PR c/56566
32950         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32951         return 1 even for !unsignedp.
32953 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32955         * config/i386/i386.md (isa): Add x64 and nox64.
32956         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32957         (*pushtf): Enable *roF alternative for x64 isa only.
32958         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
32959         mode attribute of integer alternatives to DImode for TARGET_64BIT.
32960         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
32961         (*movtf_internal): Merge from *movtf_internal_rex64 and
32962         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
32963         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
32964         nox64 isa attributes.
32965         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
32966         nox64 isa attributes.
32967         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32969 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32971         * config/alpha/alpha.c (TARGET_LRA_P): New define.
32973 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
32975         PR target/56640
32976         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32977         class names.  Remove trailing comma after "ALL_REGS".
32979 2013-03-16  Jan Hubicka  <jh@suse.cz>
32981         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32982         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32983         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32984         of cgraph_get_create_node.
32985         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32987 2013-03-16  Jason Merrill  <jason@redhat.com>
32989         PR debug/49090
32990         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32991         with DW_AT_default_value.
32993 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
32995         * BASE-VER: Set to 4.9.0.
32997 2013-03-14  Andi Kleen  <ak@linux.intel.com>
32999         PR target/56619
33000         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
33001         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
33002         Document _x* TSX intrinsics.
33004 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
33005             David Holsgrove  <david.holsgrove@xilinx.com>
33007         * configure.ac: Add MicroBlaze TLS support detection.
33008         * configure: Regenerate.
33009         * config/microblaze/microblaze-protos.h
33010         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
33011         symbol_mentioned_p, label_mentioned_p): Add prototypes.
33012         * config/microblaze/microblaze.c (microblaze_address_type): Add
33013         ADDRESS_TLS and tls_reloc address types.
33014         (microblaze_address_info): Add tls_reloc.
33015         (TARGET_HAVE_TLS): Define.
33016         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
33017          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
33018          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
33019         load_tls_operand,  microblaze_call_tls_get_addr,
33020         microblaze_legitimize_tls_address): New functions.
33021         (microblaze_classify_unspec): Handle UNSPEC_TLS.
33022         (get_base_reg): Use microblaze_tls_symbol_p.
33023         (microblaze_classify_address): Handle TLS.
33024         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
33025         label_mentioned_p and microblaze_tls_referenced_p.
33026         (microblaze_legitimize_address): Handle TLS.
33027         (microblaze_address_insns): Handle ADDRESS_TLS.
33028         (pic_address_needs_scratch): Handle TLS.
33029         (print_operand_address): Handle TLS.
33030         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
33031         (microblaze_expand_move): Handle TLS.
33032         (microblaze_legitimate_constant_p): Check
33033         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
33034         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
33035         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
33036         (PIC_OFFSET_TABLE_REGNUM): Set.
33037         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
33038         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
33039         (addsi3, movsi_internal2, movdf_internal): Update constraints
33040         * config/microblaze/predicates.md (arith_plus_operand): Define
33041         (move_operand): Redefine as move_src_operand,
33042         check microblaze_tls_referenced_p.
33044 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
33046         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
33047         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
33049 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
33051         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
33052         CC mode for AND.
33054 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
33056         PR tree-optimization/53265
33057         * common.opt (Waggressive-loop-optimizations): New option.
33058         * tree-ssa-loop-niter.c: Include tree-pass.h.
33059         (do_warn_aggressive_loop_optimizations): New function.
33060         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
33061         if number_of_latch_executions returned constant.
33062         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
33063         early.  If number_of_latch_executions returned constant, set
33064         nb_iterations_upper_bound back to it.
33065         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
33066         field.
33067         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
33068         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
33070         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
33071         (MULTILIB_OSDIRNAMES): Set.
33072         * genmultilib: If defaultosdirname doesn't start with :: , set
33073         defaultosdirname2 instead, clear it and emit two . multilib_raw
33074         entries instead of just one.
33076 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
33078         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33079         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
33080         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33081         (SUBTARGET_OVERRIDE_OPTIONS): New.
33083 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
33085         PR target/49880
33086         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
33087         (musermode): Convert to Var(TARGET_USERMODE).
33088         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
33089         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
33090         * config/sh/sh.c (sh_option_override): Use
33091         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
33092         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
33093         condition.
33094         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
33095         TARGET_SH4.
33096         (udivsi3_i4_single, divsi3_i4_single): Use
33097         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
33099 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
33101         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
33102         default setting.
33104 2013-03-13  Richard Biener  <rguenther@suse.de>
33106         PR tree-optimization/56608
33107         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
33108         calls when vectorizing basic-blocks.
33110 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
33112         PR plugins/45078
33113         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
33114         tm_file.
33116 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
33118         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
33120 2013-03-11  Jan Hubicka  <jh@suse.cz>
33122         PR lto/56557
33123         * lto-streamer-out.c (output_symbol_p): Skip references from
33124         constructors of external variables.
33126 2013-03-11  Jan Hubicka  <jh@suse.cz>
33128         PR middle-end/56571
33129         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
33130         from pseudos.
33131         * emit-rtl.c (verify_rtx_sharing): Likewise.
33132         (copy_insn_1): Likewise.
33133         * rtl.c (copy_rtx): Likewise.
33135 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
33137         PR target/56591
33138         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
33139         output_operand_lossage message.
33141 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
33143         PR target/56470
33144         * arm.c (shift_op): Validate RTL pattern on the fly.
33145         (arm_print_operand, case 'S'): Don't use shift_operator to validate
33146         the RTL.
33148 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33150         PR target/56347
33151         * config/pa/pa.md (call_value): Check for calls to powf and direct to
33152         new call patterns that clobber %fr12.
33153         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
33154         split and postreload patterns.
33155         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
33156         registers %fr12 and %fr12R as call used.
33158 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
33160         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
33161         (canon_address, record_store, replace_read, check_mem_read_rtx,
33162         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
33163         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
33164         rest_of_handle_dse): Likewise.
33166 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
33168         PR middle-end/56524
33169         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
33170         Add base_optabs.
33171         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
33172         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
33173         (save_optabs_if_changed): Replace with...
33174         (init_tree_optimization_optabs): ...this.
33175         * optabs.c (save_optabs_if_changed): Rename to...
33176         (init_tree_optimization_optabs): ...this.  Take the optimization node
33177         as argument.  Do nothing if the base optabs are already correct.
33178         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
33179         to recompute optabs.
33180         * function.h (function): Remove optabs field.
33181         * function.c (invoke_set_current_function_hook): Call
33182         init_tree_optimization_optabs.  Use the result to initialize
33183         this_fn_optabs.
33185 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
33187         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
33188         if GTMA_HAS_NO_INSTRUMENTATION.
33189         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
33190         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
33191         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
33192         * gimple-pretty-print.c (dump_gimple_transaction): Handle
33193         GTMA_HAS_NO_INSTRUMENTATION.
33195 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
33197         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
33198         libasan_preinit.o.
33200 2013-03-08  Marek Polacek  <polacek@redhat.com>
33201             Jakub Jelinek  <jakub@redhat.com>
33203         PR tree-optimization/56478
33204         * predict.c (is_comparison_with_loop_invariant_p): Change the
33205         type of loop_step to tree.
33206         (predict_loops): Adjust.
33207         (predict_iv_comparison): Perform the computations on double_ints.
33209 2013-03-08  Richard Biener  <rguenther@suse.de>
33211         PR tree-optimization/56570
33212         * tree-cfg.c (verify_expr_location_1): Verify locations for
33213         DECL_DEBUG_EXPR.
33214         * tree-sra.c (create_access_replacement): Strip locations
33215         from DECL_DEBUG_EXPRs.
33217 2013-03-08  Richard Biener  <rguenther@suse.de>
33219         * tree-inline.c (expand_call_inline): Do not associate
33220         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
33221         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
33223 2013-03-08  Richard Biener  <rguenther@suse.de>
33225         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
33226         or block changes with -Og.  Fix for location / block encoding
33227         changes and PHI arguments with locations.
33229 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
33231         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
33232         for all counters.
33233         (struct output_info): Likewise.
33234         (register_overhead): Remove bad gcc_assert.
33235         (bitmap_find_bit): If there is only a single bitmap element, do not
33236         count a miss as a search.
33237         (print_statistics): Update for counter type changes.
33238         (dump_bitmap_statistics): Likewise.  Print headers such that they
33239         are properly lined up with the printed counters.
33241 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
33243         PR tree-optimization/56559
33244         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
33245         check that it has only a single use.
33247 2013-03-07  Richard Biener  <rguenther@suse.de>
33249         * doc/invoke.texi (fwhole-program): Discourage use in combination
33250         with -flto.
33252 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
33254         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
33256         PR tree-optimization/56539
33257         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
33258         instead of GSI_CONTINUE_LINKING as last argument to
33259         force_gimple_operand_gsi.  Adjust function comment.
33261         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
33262         aarch64-cores.def.
33264         PR middle-end/56548
33265         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
33266         promoted mode, convert the result back to the original mode.
33268 2013-03-06  Richard Biener  <rguenther@suse.de>
33270         PR middle-end/56294
33271         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33272         (insert_updated_phi_nodes_compare_uids): New function.
33273         (update_ssa): Sort symbols_to_rename after UID before
33274         traversing it to insert PHI nodes.
33276 2013-03-06  Richard Biener  <rguenther@suse.de>
33278         PR middle-end/50494
33279         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33280         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33282         Revert
33283         2013-02-13  Richard Biener  <rguenther@suse.de>
33285         PR lto/50494
33286         * varasm.c (output_constant_def_1): Get the decl representing
33287         the constant as argument.
33288         (output_constant_def): Wrap output_constant_def_1.
33289         (make_decl_rtl): Use output_constant_def_1 with the decl
33290         representing the constant.
33291         (build_constant_desc): Optionally re-use a decl already
33292         representing the constant.
33293         (tree_output_constant_def): Adjust.
33295 2013-03-06  Joey Ye  <joey.ye@arm.com>
33297         PR lto/50293
33298         * gcc.c (convert_white_space): New function.
33299         (main): Handles white space in function name.
33301 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
33303         PR target/56529
33304         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33305         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
33306         to SH_DIV_CALL_TABLE for TARGET_SH2.
33307         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33308         list.
33309         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33310         call-table options.
33312 2013-03-05  Sterling Augustine  <saugustine@google.com>
33313             Cary Coutant  <ccoutant@google.com>
33315         PR debug/55364
33316         * dwarf2out.c (resolve_addr): Don't call
33317         remove_loc_list_addr_table_entries a second time for the same
33318         expression.
33320 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33322         PR debug/56510
33323         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33324         (avoid_complex_debug_insns): New function.
33325         (expand_debug_locations): Call it.
33327         PR rtl-optimization/56484
33328         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33329         lifetimes of hard registers on small register class machines.
33331 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
33333         * config/microblaze/microblaze-protos.h: Rename
33334         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33335         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33336         fast_interrupt.
33337         (microblaze_fast_interrupt_function_p): New function.
33338         (microblaze_is_interrupt_handler): Rename to
33339         microblaze_is_interrupt_variant and add fast_interrupt check.
33340         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33341         (save_restore_insns): Likewise.
33342         (compute_frame_size): Likewise.
33343         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33344         (microblaze_globalize_label): Likewise.
33345         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33346         * config/microblaze/microblaze.md: Use wrapper
33347         microblaze_is_interrupt_variant.
33349 2013-03-05  Kai Tietz  <ktietz@redhat.com>
33351         * sdbout.c (sdbout_one_type): Switch to current function's section
33352         supporting cold/hot.
33354 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
33356         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33357         -mxl-reorder.
33359 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33361         PR middle-end/56461
33362         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33363         if VALGRIND_GET_VBITS is defined, temporarily make object
33364         memory all defined, and restore previous valgrind addressability
33365         and definability afterwards.  Free this_object at the end.
33367         PR middle-end/56461
33368         * lra.c (lra): Call lra_clear_live_ranges if live_p,
33369         right before calling lra_create_live_ranges, also call it
33370         when clearing live_p.  Only call lra_clear_live_ranges
33371         at the end if live_p.
33373         PR middle-end/56461
33374         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33376 2013-03-05  Richard Biener  <rguenther@suse.de>
33378         PR tree-optimization/56521
33379         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33380         value-id.
33382 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
33384         PR c++/55135
33385         * except.h (remove_unreachable_eh_regions): New prototype.
33386         * except.c (remove_eh_handler_splicer): New function, split out
33387         of remove_eh_handler.
33388         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
33389         warning about running it on many EH regions one at a time.
33390         (remove_unreachable_eh_regions_worker): New function, walk the
33391         EH tree in depth-first order and remove non-marked regions.
33392         (remove_unreachable_eh_regions): New function.
33393         * tree-eh.c (mark_reachable_handlers): New function, split out
33394         from remove_unreachable_handlers.
33395         (remove_unreachable_handlers): Use mark_reachable_handlers and
33396         remove_unreachable_eh_regions.
33397         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33398         and remove_unreachable_eh_regions.
33400 2013-03-05  Richard Biener  <rguenther@suse.de>
33402         PR middle-end/56525
33403         * loop-init.c (fix_loop_structure): Remove loops in two stages,
33404         not freeing them until the end.
33406 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33408         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33410 2013-03-05  Richard Biener  <rguenther@suse.de>
33412         PR tree-optimization/56270
33413         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33414         of loads after scheduling an SLP instance.
33416 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33418         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33419         tic6x.exp.
33420         (check_gcc_parallelize): Run guality.exp as a separate job from
33421         vect.exp with unsorted.exp and $(dg_target_exps) separately from
33422         struct-layout-1.exp with stackalign.exp.
33424         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33426         PR middle-end/56461
33427         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33428         load_index sbitmap even if some bit in it isn't set.
33430         PR middle-end/56461
33431         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33432         (discover_iteration_bound_by_body_walk): Change queues to
33433         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
33434         spelling in comment.  Call safe_push on queues[bound_index] directly.
33435         Release queues[queue_index] in every iteration unconditionally.
33436         Release bounds vector.
33438         PR middle-end/56461
33439         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33440         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33441         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33442         inner_phis vector.
33444 2013-03-05  Richard Biener  <rguenther@suse.de>
33446         PR lto/56515
33447         * tree-inline.c (remap_blocks_to_null): New function.
33448         (expand_call_inline): When expanding a call stmt without
33449         an associated block inline remap all callee blocks to NULL.
33451 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33453         PR rtl-optimization/56494
33454         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33455         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33456         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33458         PR middle-end/56461
33459         * sel-sched-ir.c (free_sched_pools): Release
33460         succs_info_pool.stack[succs_info_pool.max_top] vectors too
33461         if succs_info_pool.max_top isn't -1.
33463         PR bootstrap/56509
33464         * opts.c (opts_obstack, opts_concat): Moved to...
33465         * opts-common.c (opts_obstack, opts_concat): ... here.
33467 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33469         PR middle-end/56461
33470         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33472 2013-03-04  Martin Jambor  <mjambor@suse.cz>
33474         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33475         all appropriate places.
33477 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
33479         PR tree-optimization/56424
33480         * ipa-split.c (split_function): Do not set the RSO flag if result is
33481         not by reference and its type is a register type.
33483 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
33485         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33486         (microblaze_legitimate_pic_operand): Likewise
33487         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33488         new function microblaze_legitimate_pic_operand
33489         * config/microblaze/microblaze-protos.h
33490         (microblaze_legitimate_pic_operand): Declare.
33492 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33494         * config/microblaze/predicates.md (call_insn_simple_operand):
33495         New predicate for supported rtx code types.
33496         * config/microblaze/microblaze.md (call_internal1): Use
33497         call_insn_simple_operand predicate.
33499 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33501         PR middle-end/56461
33502         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33503         partitions.ordered_remove.
33505         PR middle-end/56461
33506         * tree-vect-stmts.c (vectorizable_conversion): Don't call
33507         vec_oprnds0.create (1) for modifier == NONE.
33509         PR middle-end/56461
33510         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33511         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33512         vec_oprnds1 right before pushing anything to it for
33513         scalar_shift_arg.
33515         PR middle-end/56461
33516         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33517         set nbbs to 0 instead of having separate code path.
33518         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33519         instead of false as last argument if returning NULL.
33521 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
33523         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33524         the attribute is now called "target" instead of "option".
33525         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33526         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
33527         attribute/pragma name for TARGET_OPTION_VALID_P and
33528         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
33529         * doc/tm.texi: Regenerated.
33531 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
33533         * config/microblaze/microblaze.c:
33534         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33535         * config/microblaze/microblaze.h: Add -mxl-reorder to
33536         DRIVER_SELF_SPECS.
33537         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33538         instructions emitted if TARGET_REORDER.
33539         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33540         or 0 for -m/-mno case, but initialises as 2 to detect default use case
33541         separately.
33543 2013-03-01  Xinliang David Li  <davidxl@google.com>
33545         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33546         walk length.
33548 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
33550         PR middle-end/56461
33551         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33552         vector even when returning true.  Fix up function comment formatting.
33554         PR middle-end/56461
33555         * ira-build.c (ira_loop_nodes_count): New variable.
33556         (create_loop_tree_nodes): Initialize it.
33557         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33559         PR middle-end/56461
33560         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33561         method on dr_chain and result_chain.
33562         * tree-vect-stmts.c (vectorizable_store): Only call
33563         result_chain.create if j == 0.
33565         PR middle-end/56461
33566         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33567         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33568         before overwriting it.
33570 2013-03-01  Tobias Burnus  <burnus@net-b.de>
33572         * doc/extended.texi (C Extensions): Change order in @menu
33573         to match @node.
33574         (Other MIPS Built-in Functions): Move last MIPS entry before
33575         "picoChip Built-in Functions".
33576         (SH Built-in Functions): Move after RX Built-in Functions.
33577         * doc/gcc.texi (Introduction): Change order in @menu
33578         to match @node.
33579         * doc/md.texi (Constraints): Ditto.
33580         * gty.texi (Type Information): Ditto.
33581         (User-provided marking routines for template types): Make
33582         subsection.
33583         * doc/invoke.texi (AArch64 Options): Move before
33584         "Adapteva Epiphany Options".
33586 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
33587             Jakub Jelinek  <jakub@redhat.com>
33589         PR sanitizer/56454
33590         * asan.c (gate_asan): Lookup no_sanitize_address instead of
33591         no_address_safety_analysis attribute.
33592         * doc/extend.texi (no_address_safety_attribute): Rename to
33593         no_sanitize_address attribute, mention no_address_safety_analysis
33594         attribute as deprecated alias.
33596 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
33598         PR middle-end/56461
33599         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33600         type to vec<vec<tree> > *.
33601         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
33602         to be vec<tree> instead of vec<tree> *, set vec_defs
33603         to vNULL and call vec_defs.create (number_of_vects), adjust other
33604         uses of vec_defs.
33605         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33606         vectorizable_condition): Adjust vect_get_slp_defs callers.
33608 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33610         * config/aarch64/aarch64.c
33611         (aarch64_float_const_representable): Remove unused variable.
33613 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33615         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33617 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33619         * config/aarch64/aarch64-builtins.c
33620         (aarch64_init_simd_builtins): Make static.
33622 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33624         * config/aarch64/aarch64.c
33625         (aarch64_simd_make_constant): Make static.
33627 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33629         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33630         with no initialization to the RHS of debug statements.
33632 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33634         PR tree-optimization/56294
33635         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33636         Adjust dumping.
33637         (get_access_replacement): Do not call create_access_replacement.
33638         Assert a replacement exists.
33639         (get_repl_default_def_ssa_name): Create the replacement declaration
33640         itself.
33642 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33644         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33645         final_end_function.
33647 2013-02-28  Marek Polacek  <polacek@redhat.com>
33649         PR rtl-optimization/56466
33650         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33651         if we're changing a loop.
33652         (peel_loops_completely): Likewise.
33654 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
33656         PR c++/55813
33657         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33659 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33661         PR target/56445
33662         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33663         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33664         INTX_FTYPE_FX, FX_FTYPE_INTX.
33665         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33667 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33669         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33670         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33671         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33672         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33673         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33674         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33675         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33676         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33677         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33678         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33679         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33680         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33681         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33682         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33683         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33684         (avrxmega6): Increase max flash segments from 5 to 6.
33685         * config/avr/t-multilib: Regenerate.
33686         * config/avr/avr-tables.opt: Regenerate.
33687         * doc/avr-mmcu.texi: Regenerate.
33689 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33691         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33692         (avr_device_to_arch): Rename to avr_device_to_ld.
33693         (avr_device_to_as): New prototype.
33694         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33695         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33696         * config/avr/driver-avr.c (avr_device_to_as): New.
33697         (avr_device_to_arch): Rename to avr_device_to_ld.
33699 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33701         PR middle-end/56461
33702         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33703         method on dr_chain and result_chain.
33705         PR middle-end/56461
33706         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33707         pointer_set_destroy on not_executed_last_iteration.
33709         PR middle-end/56461
33710         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33712         PR middle-end/56461
33713         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33714         FOR_EACH_DEFINED_FUNCTION when freeing state.
33716         PR middle-end/56461
33717         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33718         pool_free.
33719         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33720         overwriting it.
33722         PR middle-end/56461
33723         * ipa-cp.c (decide_whether_version_node): Call vec_free on
33724         known_aggs[i].items and release known_aggs vector.
33726         PR middle-end/56461
33727         * ipa-reference.c (propagate): Free node_info even for alias nodes.
33729 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33731         * config/microblaze/microblaze.c (microblaze_emit_compare):
33732         Use xor for EQ/NE comparisions.
33733         * config/microblaze/microblaze.md (cstoresf4): Add constraints
33734         (cbranchsf4): Adjust operator to comparison_operator.
33736 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33738         PR middle-end/56461
33739         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33740         vector.
33741         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33742         vec_safe_push, always update *slot.
33743         (redirect_edge_var_map_clear): Use vec_free.
33744         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33745         (free_var_map_entry): Use vec_free.
33746         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33747         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33749 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
33751         PR middle-end/45472
33752         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33753         when the may_trap_p bit of the exprs being merged differs.
33754         Reorder tests for speculativeness in the logical and operator.
33756 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33758         * incpath.c (add_standard_paths): Use reconcat instead of concat
33759         where appropriate and avoid leaking memory.
33761         * opts.h: Include obstack.h.
33762         (opts_concat): New prototype.
33763         (opts_obstack): New declaration.
33764         * opts.c (opts_concat): New function.
33765         (opts_obstack): New variable.
33766         (init_options_struct): Call gcc_init_obstack on opts_obstack.
33767         (finish_options): Use opts_concat instead of concat
33768         and XOBNEWVEC instead of XNEWVEC.
33769         * opts-common.c (generate_canonical_option, decode_cmdline_option,
33770         generate_option): Likewise.
33771         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33772         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33774         PR target/56455
33775         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33776         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33778 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33780         PR middle-end/56461
33781         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33783 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33785         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33786         (arm_block_move_unaligned_straight): Likewise.
33787         (arm_adjust_block_mem): Likewise.
33789 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33791         PR target/48901
33792         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33793         temp, cond and label.
33794         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33796         PR target/52500
33797         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33798         * config/c6x/c6x.h (dbx_register_map): Update declaration.
33800         PR target/52501
33801         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33802         of prologue/epilogue functions.
33804         PR target/52550
33805         * config/tilegx/tilegx.c (tilegx_expand_prologue):
33806         Remove unused variable cfa_offset.
33807         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33809         PR target/54639
33810         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33811         type promotion to unsigned.
33813         PR target/54640
33814         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33815         for HOST_WIDE_INT of 32 bit / same size as int.
33816         (arm_block_move_unaligned_straight): Likewise.
33817         (arm_adjust_block_mem): Likewise.
33819         PR target/54662
33820         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33821         ALL_CFLAGS.
33823 2013-02-26  Marek Polacek  <polacek@redhat.com>
33825         PR tree-optimization/56426
33826         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33828 2013-02-26  Richard Biener  <rguenther@suse.de>
33830         PR target/56444
33831         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33832         unused variable loops.
33834 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33836         PR tree-optimization/56448
33837         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33838         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33839         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33840         later operands of the references, or even first operand for
33841         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33843         PR tree-optimization/56443
33844         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33845         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33846         to type_for_mode langhook.
33848 2013-02-25  Matt Turner  <mattst88@gmail.com>
33850         * doc/invoke.texi: Document r4700.
33852 2013-02-25  Richard Biener  <rguenther@suse.de>
33854         PR tree-optimization/56175
33855         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33856         split out from ...
33857         (simplify_bitwise_binary): ... here.  Also guard the conversion
33858         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33860 2013-02-25  Catherine Moore  <clm@codesourcery.com>
33862         Revert:
33863         2013-02-24  Catherine Moore  <clm@codesourcery.com>
33864             Maciej W. Rozycki  <macro@codesourcery.com>
33865             Tom de Vries  <tom@codesourcery.com>
33866             Nathan Sidwell  <nathan@codesourcery.com>
33867             Iain Sandoe  <iain@codesourcery.com>
33868             Nathan Froyd  <froydnj@codesourcery.com>
33869             Chao-ying Fu  <fu@mips.com>
33871         * doc/extend.texi: (micromips, nomicromips, nocompression):
33872         Document new function attributes.
33873         * doc/invoke.texi (minterlink-compressed, mmicromips,
33874         m14k, m14ke, m14kec): Document new options.
33875         (minterlink-mips16): Update documentation.
33876         * doc/md.texi (ZC, ZD): Document new constraints.
33877         * configure.ac (gcc_cv_as_micromips): Check if linker
33878         supports the .set micromips directive.
33879         * configure: Regenerate.
33880         * config.in: Regenerate.
33881         * config/mips/mips-tables.opt: Regenerate.
33882         * config/mips/micromips.md: New file.
33883         * constraints.md (ZC, AD): New constraints.
33884         * config/mips/predicates.md (movep_src_register): New predicate.
33885         (movep_src_operand): New predicate.
33886         (non_volatile_mem_operand): New predicate.
33887         * config/mips/mips.md (multimem): New type.
33888         (length): Differentiate between 17-bit and 18-bit branch offsets.
33889         (MOVEP1, MOVEP2): New mode iterator.
33890         (mov_<load>l): Use ZC constraint.
33891         (mov_<load>r): Likewise.
33892         (mov_<store>l): Likewise.
33893         (mov_<store>r): Likewise.
33894         (*branch_equality<mode>_inverted): Add microMIPS support.
33895         (*branch_equality<mode>): Likewise.
33896         (*jump_absolute): Likewise.
33897         (indirect_jump_<mode>): Likewise.
33898         (tablejump_<mode>): Likewise.
33899         (<optab>_internal): Likewise.
33900         (sibcall_internal): Likewise.
33901         (sibcall_value_internal): Likewise.
33902         (prefetch): Use constraint ZD.
33903         * config/mips/mips.opt (minterlink-compressed): New option.
33904         (minterlink-mips16): Now an alias for minterlink-compressed.
33905         (mmicromips): New option.
33906         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33907         (compare_and_swap_12): Likewise.
33908         (sync_add<mode>): Likewise.
33909         (sync_<optab>_12): Likewise.
33910         (sync_old_<optab>_12): Likewise.
33911         (sync_new_<optab>_12): Likewise.
33912         (sync_nand_12): Likewise.
33913         (sync_old_nand_12): Likewise.
33914         (sync_new_nand_12): Likewise.
33915         (sync_sub<mode>): Likewise.
33916         (sync_old_add<mode>): Likewise.
33917         (sync_old_sub<mode>): Likewise.
33918         (sync_new_add<mode>): Likewise.
33919         (sync_new_sub<mode>): Likewise.
33920         (sync_<optab><mode>): Likewise.
33921         (sync_old_<optab><mode>): Likewise.
33922         (sync_new_<optab><mode>): Likewise.
33923         (sync_nand<mode>): Likewise.
33924         (sync_old_nand<mode>): Likewise.
33925         (sync_new_nand<mode>): Likewise.
33926         (sync_lock_test_and_set<mode>): Likewise.
33927         (test_and_set_12): Likewise.
33928         (atomic_compare_and_swap<mode>): Likewise.
33929         (atomic_exchange<mode>_llsc): Likewise.
33930         (atomic_fetch_add<mode>_llsc): Likewise.
33931         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33932         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33933         (umips_save_restore_pattern_p): Likewise.
33934         (umips_load_store_pair_p): Likewise.
33935         (umips_output_load_store_pair): Likewise.
33936         (umips_movep_target_p): Likewise.
33937         (umips_12bit_offset_address_p): Likewise.
33938         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33939         (mips_base_mips16): Rename this...
33940         (mips_base_compression_flags): ...to this. Update all uses.
33941         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33942         (mips_mips16_decl_p): Delete.
33943         (mips_nomips16_decl_p): Delete.
33944         (mips_get_compress_on_flags): New function.
33945         (mips_get_compress_off_flags): New function.
33946         (mips_get_compress_mode): New function.
33947         (mips_get_compress_on_name): New function.
33948         (mips_get_compress_off_name): New function.
33949         (mips_insert_attributes): Support multiple compression types.
33950         (mips_merge_decl_attributes): Likewise.
33951         (umips_12bit_offset_address_p): New function.
33952         (mips_start_function_definition): Emit .set micromips directive.
33953         (mips_call_may_need_jalx_p): New function.
33954         (mips_function_ok_for_sibcall): Add microMIPS support.
33955         (mips_print_operand_punctuation): Support short delay slots and
33956         compact jumps.
33957         (umips_swm_mask, umips_swm_encoding): New.
33958         (umips_build_save_restore): New function.
33959         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33960         (was_mips16_p): Remove.
33961         (old_compression_mode): New.
33962         (mips_set_compression_mode): New function.
33963         (mips_set_current_function): Add microMIPS support.
33964         (mips_option_override): Likewise.
33965         (umips_save_restore_pattern_p): New function.
33966         (umips_output_save_restore): New function.
33967         (umips_load_store_pair_p_1): New function.
33968         (umips_load_store_pair_p): New function.
33969         (umips_output_load_store_pair_1): New function.
33970         (umips_output_load_store_pair): New function.
33971         (umips_movep_target_p) New function.
33972         (mips_prepare_pch_save): Add microMIPS support.
33973         * config/mips/mips.h (TARGET_COMPRESSION): New.
33974         (TARGET_CPU_CPP_BUILTINS): Update macro
33975         to use new compression flags and to support microMIPS.
33976         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33977         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33978         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33979         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33980         (ASM_SPEC): Support mmicromips and mno-micromips.
33981         (M16STORE_REG_P): New macro.
33982         (MIPS_CALL): Support TARGET_MICROMIPS.
33983         (MICROMIPS_J): New macro.
33984         (mips_base_mips16): Rename this...
33985         (mips_base_compression_flags): ...to this.
33986         (UMIPS_12BIT_OFFSET_P): New macro.
33987         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33988         (MULTILIB_DIRNAMES): Likewise.
33990 2013-02-25  Tom de Vries  <tom@codesourcery.com>
33992         PR rtl-optimization/56131
33993         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33994         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33995         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33997 2013-02-25  Tobias Burnus  <burnus@net-b.de>
33999         * doc/invoke.texi (-fsanitize=): Move from optimization
34000         to debugging options.
34002 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
34004         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
34006 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
34007             Alexander Monakov  <amonakov@ispras.ru>
34009         PR middle-end/56077
34010         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
34011         flush pending lists also on non-jumps.  Adjust comment.
34013 2013-02-24  Catherine Moore  <clm@codesourcery.com>
34014             Maciej W. Rozycki  <macro@codesourcery.com>
34015             Tom de Vries  <tom@codesourcery.com>
34016             Nathan Sidwell  <nathan@codesourcery.com>
34017             Iain Sandoe  <iain@codesourcery.com>
34018             Nathan Froyd  <froydnj@codesourcery.com>
34019             Chao-ying Fu  <fu@mips.com>
34021         * doc/extend.texi: (micromips, nomicromips, nocompression):
34022         Document new function attributes.
34023         * doc/invoke.texi (minterlink-compressed, mmicromips,
34024         m14k, m14ke, m14kec): Document new options.
34025         (minterlink-mips16): Update documentation.
34026         * doc/md.texi (ZC, ZD): Document new constraints.
34027         * configure.ac (gcc_cv_as_micromips): Check if linker
34028         supports the .set micromips directive.
34029         * configure: Regenerate.
34030         * config.in: Regenerate.
34031         * config/mips/mips-tables.opt: Regenerate.
34032         * config/mips/micromips.md: New file.
34033         * constraints.md (ZC, AD): New constraints.
34034         * config/mips/predicates.md (movep_src_register): New predicate.
34035         (movep_src_operand): New predicate.
34036         (non_volatile_mem_operand): New predicate.
34037         * config/mips/mips.md (multimem): New type.
34038         (length): Differentiate between 17-bit and 18-bit branch offsets.
34039         (MOVEP1, MOVEP2): New mode iterator.
34040         (mov_<load>l): Use ZC constraint.
34041         (mov_<load>r): Likewise.
34042         (mov_<store>l): Likewise.
34043         (mov_<store>r): Likewise.
34044         (*branch_equality<mode>_inverted): Add microMIPS support.
34045         (*branch_equality<mode>): Likewise.
34046         (*jump_absolute): Likewise.
34047         (indirect_jump_<mode>): Likewise.
34048         (tablejump_<mode>): Likewise.
34049         (<optab>_internal): Likewise.
34050         (sibcall_internal): Likewise.
34051         (sibcall_value_internal): Likewise.
34052         (prefetch): Use constraint ZD.
34053         * config/mips/mips.opt (minterlink-compressed): New option.
34054         (minterlink-mips16): Now an alias for minterlink-compressed.
34055         (mmicromips): New option.
34056         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34057         (compare_and_swap_12): Likewise.
34058         (sync_add<mode>): Likewise.
34059         (sync_<optab>_12): Likewise.
34060         (sync_old_<optab>_12): Likewise.
34061         (sync_new_<optab>_12): Likewise.
34062         (sync_nand_12): Likewise.
34063         (sync_old_nand_12): Likewise.
34064         (sync_new_nand_12): Likewise.
34065         (sync_sub<mode>): Likewise.
34066         (sync_old_add<mode>): Likewise.
34067         (sync_old_sub<mode>): Likewise.
34068         (sync_new_add<mode>): Likewise.
34069         (sync_new_sub<mode>): Likewise.
34070         (sync_<optab><mode>): Likewise.
34071         (sync_old_<optab><mode>): Likewise.
34072         (sync_new_<optab><mode>): Likewise.
34073         (sync_nand<mode>): Likewise.
34074         (sync_old_nand<mode>): Likewise.
34075         (sync_new_nand<mode>): Likewise.
34076         (sync_lock_test_and_set<mode>): Likewise.
34077         (test_and_set_12): Likewise.
34078         (atomic_compare_and_swap<mode>): Likewise.
34079         (atomic_exchange<mode>_llsc): Likewise.
34080         (atomic_fetch_add<mode>_llsc): Likewise.
34081         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34082         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34083         (umips_save_restore_pattern_p): Likewise.
34084         (umips_load_store_pair_p): Likewise.
34085         (umips_output_load_store_pair): Likewise.
34086         (umips_movep_target_p): Likewise.
34087         (umips_12bit_offset_address_p): Likewise.
34088         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34089         (mips_base_mips16): Rename this...
34090         (mips_base_compression_flags): ...to this. Update all uses.
34091         (mips_attribute_table): Add micromips, nomicromips and nocompression.
34092         (mips_mips16_decl_p): Delete.
34093         (mips_nomips16_decl_p): Delete.
34094         (mips_get_compress_on_flags): New function.
34095         (mips_get_compress_off_flags): New function.
34096         (mips_get_compress_mode): New function.
34097         (mips_get_compress_on_name): New function.
34098         (mips_get_compress_off_name): New function.
34099         (mips_insert_attributes): Support multiple compression types.
34100         (mips_merge_decl_attributes): Likewise.
34101         (umips_12bit_offset_address_p): New function.
34102         (mips_start_function_definition): Emit .set micromips directive.
34103         (mips_call_may_need_jalx_p): New function.
34104         (mips_function_ok_for_sibcall): Add microMIPS support.
34105         (mips_print_operand_punctuation): Support short delay slots and
34106         compact jumps.
34107         (umips_swm_mask, umips_swm_encoding): New.
34108         (umips_build_save_restore): New function.
34109         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34110         (was_mips16_p): Remove.
34111         (old_compression_mode): New.
34112         (mips_set_compression_mode): New function.
34113         (mips_set_current_function): Add microMIPS support.
34114         (mips_option_override): Likewise.
34115         (umips_save_restore_pattern_p): New function.
34116         (umips_output_save_restore): New function.
34117         (umips_load_store_pair_p_1): New function.
34118         (umips_load_store_pair_p): New function.
34119         (umips_output_load_store_pair_1): New function.
34120         (umips_output_load_store_pair): New function.
34121         (umips_movep_target_p) New function.
34122         (mips_prepare_pch_save): Add microMIPS support.
34123         * config/mips/mips.h (TARGET_COMPRESSION): New.
34124         (TARGET_CPU_CPP_BUILTINS): Update macro
34125         to use new compression flags and to support microMIPS.
34126         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34127         (MIPS_ARCH_FLOAT_SPEC): Likewise.
34128         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34129         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34130         (ASM_SPEC): Support mmicromips and mno-micromips.
34131         (M16STORE_REG_P): New macro.
34132         (MIPS_CALL): Support TARGET_MICROMIPS.
34133         (MICROMIPS_J): New macro.
34134         (mips_base_mips16): Rename this...
34135         (mips_base_compression_flags): ...to this.
34136         (UMIPS_12BIT_OFFSET_P): New macro.
34137         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34138         (MULTILIB_DIRNAMES): Likewise.
34140 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
34142         PR target/52555
34143         * target-globals.c (save_target_globals): For init_reg_sets and
34144         target_reinit remporarily set this_fn_optabs to this_target_optabs.
34146 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
34148         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
34149         * config/aarch64/t-aarch64
34150         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
34152 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
34154         PR inline-asm/56148
34155         * lra-constraints.c (process_alt_operands): Reload operand
34156         conflicting with earlier clobber only if no more other conflicting
34157         operands.
34159 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
34161         PR sanitizer/56393
34162         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
34163         if not linking a shared library.
34165 2013-02-22  Seth LaForge  <sethml@google.com>
34167         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
34169 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
34171         * config/arm/arm.md (split for extendsidi): Update condition.
34172         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
34173         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
34174         (qhs_zextenddi_cstr): Likewise.
34176 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
34178         PR middle-end/56420
34179         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
34180         avoid signed wrapping.
34181         (expand_mult): Handle properly multiplication by
34182         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
34183         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
34184         in the compiler if coeff is HOST_WIDE_INT_MIN.
34185         (expand_divmod): Don't make ext_op1 static, change it's type to
34186         uhwi.  Avoid undefined behavior in -INTVAL (op1).
34188         PR rtl-optimization/50339
34189         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
34190         field.
34191         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
34192         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
34193         into splitting_ashiftrt field.
34194         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
34195         ASHIFTRT.
34196         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
34197         choices.
34199 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
34201         PR middle-end/56108
34202         * trans-mem.c (execute_tm_mark): Do not expand transactions that
34203         are sure to go irrevocable.
34205 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
34207         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
34208         scalars are valid operands.
34210 2013-02-21  Martin Jambor  <mjambor@suse.cz>
34212         PR tree-optimization/56310
34213         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
34214         only matching indices and non-negative final offsets.
34215         (intersect_aggregates_with_edge): Pass src_idx to
34216         agg_replacements_to_vector.  Pass src_idx insstead of index to
34217         intersect_with_agg_replacements.
34219 2013-02-21  Martin Jambor  <mjambor@suse.cz>
34221         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
34222         instead of hard-wired defaults.
34224 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
34226         * doc/invoke.texi (MIPS Options): Update documentation of the
34227         floating-point multiply-accumulate instruction restrictions.
34229 2013-02-21  Kostya Serebryany  <kcc@google.com>
34231         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
34232         asan_shadow_offset on x86_64 linux.
34234 2013-02-21  Richard Biener  <rguenther@suse.de>
34236         PR tree-optimization/56415
34237         Revert
34238         2013-02-11  Richard Biener  <rguenther@suse.de>
34240         PR tree-optimization/56273
34241         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34242         first VRP run.
34244 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
34246         PR bootstrap/56258
34247         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
34248         instead of @itemx.
34250         PR inline-asm/56405
34251         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
34252         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
34254 2013-02-20  Jan Hubicka  <jh@suse.cz>
34256         PR tree-optimization/56265
34257         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
34258         when target is referenced for first time.
34260 2013-02-20  Richard Biener  <rguenther@suse.de>
34262         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
34263         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
34264         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
34265         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
34266         not return anything.
34267         (rename_ssa_copies): Do not remove unused locals.
34268         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34269         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34270         * passes.c (execute_function_todo): Do not schedule unused locals
34271         removal if cleanup_tree_cfg did something.
34272         * tree-ssa-live.c (remove_unused_locals): Dump statistics
34273         about the number of removed locals.
34275 2013-02-20  Richard Biener  <rguenther@suse.de>
34277         PR tree-optimization/56398
34278         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34280 2013-02-20  Martin Jambor  <mjambor@suse.cz>
34282         PR tree-optimization/55334
34283         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34284         restricted pointers to arrays.
34286 2013-02-20  Richard Biener  <rguenther@suse.de>
34287             Jakub Jelinek  <jakub@redhat.com>
34289         PR tree-optimization/56396
34290         * tree-ssa-ccp.c (n_const_val): New static variable.
34291         (get_value): Return NULL for SSA names we don't have a lattice
34292         entry for.
34293         (ccp_initialize): Initialize n_const_val.
34294         * tree-ssa-copy.c (n_copy_of): New static variable.
34295         (init_copy_prop): Initialize n_copy_of.
34296         (get_value): Return NULL_TREE for SSA names we don't have a
34297         lattice entry for.
34299 2013-02-20  Martin Jambor  <mjambor@suse.cz>
34301         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34303 2013-02-20  Richard Biener  <rguenther@suse.de>
34305         * genpreds.c (write_lookup_constraint): Do not compare first
34306         letter of the constraint again.
34308 2013-02-20  Richard Biener  <rguenther@suse.de>
34310         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34311         and ceil_log2.
34312         (get_use_iv_cost): Terminate hashtable walk when coming across
34313         an empty entry.
34315 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
34317         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34318         reassociation for avx2 targets.
34320 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34322         * config/microblaze/microblaze.c: microblaze_has_clz = 0
34323         Add version check for v8.10.a to enable microblaze_has_clz
34324         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34325         version and TARGET_PATTERN_COMPARE check
34326         * config/microblaze/microblaze.md: New clzsi2 instruction
34328 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34330         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34331         function before branching.
34333 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
34335         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34336         DUMP_INSN_RTX_UID.
34337         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34339 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
34341         PR middle-end/55889
34342         * sel-sched.c: Include ira.h.
34343         (implicit_clobber_conflict_p): New function.
34344         (moveup_expr): Use it.
34345         * Makefile.in (sel-sched.o): Depend on ira.h.
34347 2013-02-19  Richard Biener  <rguenther@suse.de>
34349         PR tree-optimization/56384
34350         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34351         (vn_hash_type): Split out from ...
34352         (vn_hash_constant_with_type): ... here.
34353         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34354         (vn_phi_eq): Compare types from vn_phi_s structure.
34355         (vn_phi_lookup): Populate vn_phi_s type.
34356         (vn_phi_insert): Likewise.
34358 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
34360         PR tree-optimization/56350
34361         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34362         if haven't found reduction or nested cycle operand, rather than
34363         asserting we must find it.
34365         PR tree-optimization/56381
34366         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34367         to fold_build3.
34369 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
34370             Jakub Jelinek  <jakub@redhat.com>
34372         PR target/52555
34373         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34374         (swap_optab_enable): Same.
34375         (init_all_optabs): Use argument instead of global.
34376         * tree.h (struct tree_optimization_option): New field target_optabs.
34377         * expr.h (init_all_optabs): Add argument to prototype.
34378         (TREE_OPTIMIZATION_OPTABS): New.
34379         (save_optabs_if_changed): Protoize.
34380         * optabs.h: Declare this_fn_optabs.
34381         * optabs.c (save_optabs_if_changed): New.
34382         Declare this_fn_optabs.
34383         (init_optabs): Add argument to init_all_optabs() call.
34384         * function.c (invoke_set_current_function_hook): Handle per
34385         function optabs.
34386         * function.h (struct function): New field optabs.
34387         * config/mips/mips.c (mips_set_mips16_mode): Handle when
34388         optimization_current_node has changed.
34389         * target-globals.h (save_target_globals_default_opts): Protoize.
34390         * target-globals.c (save_target_globals_default_opts): New.
34392 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34394         PR target/56347
34395         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34396         registers %fr12 and %fr12R as call used.
34398         PR target/56214
34399         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34400         and HImode, require all displacements to be an integer multiple of
34401         their mode size.
34402         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34403         only allow QImode and HImode when reload is in progress and strict is
34404         true.  Likewise for symbolic addresses.  Use base14_operand to check
34405         displacements in REG+BASE addresses.
34407 2013-02-18  Richard Biener  <rguenther@suse.de>
34409         PR tree-optimization/56366
34410         * tree-vect-loop.c (get_initial_def_for_induction): Properly
34411         handle sign-conversion of outer-loop initial induction value.
34413 2013-02-18  Richard Biener  <rguenther@suse.de>
34415         PR middle-end/56349
34416         * cfghooks.c (merge_blocks): If we merge a latch into another
34417         block adjust references to it.
34418         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34419         (verify_loop_structure): Verify that a recorded latch is in fact
34420         a latch.
34422 2013-02-18  Richard Biener  <rguenther@suse.de>
34424         PR tree-optimization/56321
34425         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34426         order SSA name release and virtual operand unlinking.
34428 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34430         * config/microblaze/microblaze.md (save_stack_block): Define.
34431         (restore_stack_block): Likewise.
34433 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34435         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34436         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34437         * config/microblaze/microblaze.c (microblaze_option_override):
34438         Bail out early for PIC modes when target does not support PIC.
34440 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34442         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34443         Replace with a microblaze version.
34444         (microblaze_trampoline_init): Adapt for microblaze.
34445         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34446         microblaze.
34448 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
34449             Dodji Seketeli  <dodji@redhat.com>
34451         PR asan/56330
34452         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34453         (instrument_mem_region_access): Do not forget to always put
34454         instrumentation of the of 'base' and 'base + len' in a "if (len !=
34455         0) statement, even for cases where either 'base' or 'base + len'
34456         are not instrumented -- because they have been previously
34457         instrumented.  Simplify the logic by putting all the statements
34458         instrument 'base + len' inside a sequence, and then insert that
34459         sequence right before the current insertion point.  Then, to
34460         instrument 'base + len', just get an iterator on that statement.
34461         And do not forget to update the pointer to iterator the function
34462         received as argument.
34464 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
34466         PR rtl-optimization/56348
34467         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34469 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
34471         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34472         (clean_graph_dump_file): Pass base to start_graph_dump.
34474 2013-02-14  Richard Henderson  <rth@redhat.com>
34476         PR target/55941
34477         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34479 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
34481         * collect2-aix.h: Define F_LOADONLY.
34483 2013-02-14  Richard Biener  <rguenther@suse.de>
34485         PR lto/50494
34486         * varasm.c (output_constant_def_1): Get the decl representing
34487         the constant as argument.
34488         (output_constant_def): Wrap output_constant_def_1.
34489         (make_decl_rtl): Use output_constant_def_1 with the decl
34490         representing the constant.
34491         (build_constant_desc): Optionally re-use a decl already
34492         representing the constant.
34493         (tree_output_constant_def): Adjust.
34495 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
34497         Fix an asan crash
34498         * asan.c (instrument_builtin_call):  Really put the length of the
34499         second source argument into src1_len.
34501 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34503         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34504         argument.  If it is false, don't create edge from then_bb to
34505         fallthru_bb.
34506         (insert_if_then_before_iter): Pass true to it.
34507         (build_check_stmt): Pass false to it.
34508         (transform_statements): Flush hash table only on extended basic
34509         block boundaries, rather than at the beginning of every bb.
34510         Don't flush hash table on nonfreeing_call_p calls.
34511         * tree-flow.h (nonfreeing_call_p): New prototype.
34512         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34514 2013-02-13  David S. Miller  <davem@davemloft.net>
34516         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34518 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
34520         PR target/56184
34521         * ira.c (max_regno_before_ira): Move from ...
34522         (ira): ... here.
34523         (fix_reg_equiv_init): Use max_regno_before_ira instead of
34524         vec_safe_length.
34526 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34528         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34530 2013-02-13  Richard Biener  <rguenther@suse.de>
34532         PR lto/56295
34533         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34534         globals in MEM_REFs.
34536 2013-02-13  Richard Biener  <rguenther@suse.de>
34538         * loop-init.c (loop_optimizer_init): Clear loop state when
34539         re-initializing preserved loops.
34540         * loop-unswitch.c (unswitch_single_loop): Return whether
34541         we unswitched the loop.  Do not verify loop state here.
34542         (unswitch_loops): When we unswitched a loop discover new loops.
34544 2013-02-13  Kostya Serebryany  <kcc@google.com>
34546         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34547         on x86_64 linux.
34548         * sanitizer.def: Rename __asan_init to __asan_init_v1.
34550 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
34552         Avoid instrumenting duplicated memory access in the same basic block
34553         * Makefile.in (asan.o): Add new dependency on hash-table.h
34554         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34555         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34556         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34557         (free_mem_ref_resources, has_mem_ref_been_instrumented)
34558         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34559         (get_mem_ref_of_assignment): New functions.
34560         (get_mem_refs_of_builtin_call): Extract from
34561         instrument_builtin_call and tweak a little bit to make it fit with
34562         the new signature.
34563         (instrument_builtin_call): Use the new
34564         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
34565         of is_gimple_builtin_call.
34566         (instrument_derefs, instrument_mem_region_access): Insert the
34567         instrumented memory reference into the hash table.
34568         (maybe_instrument_assignment): Renamed instrument_assignment into
34569         this, and change it to advance the iterator when instrumentation
34570         actually happened and return true in that case.  This makes it
34571         homogeneous with maybe_instrument_assignment, and thus give a
34572         chance to callers to be more 'regular'.
34573         (transform_statements): Clear the memory reference hash table
34574         whenever we enter a new BB, when we cross a function call, or when
34575         we are done transforming statements.  Use
34576         maybe_instrument_assignment instead of instrumentation.  No more
34577         need to special case maybe_instrument_assignment and advance the
34578         iterator after calling it; it's now handled just like
34579         maybe_instrument_call.  Update comment.
34581 2013-02-13  Richard Biener  <rguenther@suse.de>
34583         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34584         Fix loop discovery code.
34586 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
34588         PR inline-asm/56148
34589         * lra-constraints.c (process_alt_operands): Match early clobber
34590         operand with itself.  Check conflicts with earlyclobber only if
34591         the operand is not reloaded.  Prefer to reload conflicting operand
34592         if earlyclobber and matching operands are the same.
34594 2013-02-12  Richard Biener  <rguenther@suse.de>
34596         PR lto/56297
34597         * lto-streamer-out.c (write_symbol): Do not output symbols
34598         for hard register variables.
34600 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
34602         PR target/54222
34603         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34604         (umulsidi3_insn, mulsidi3_insn): New insns.
34606 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
34608         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34609         (struct tune_params): Add vec_costs field.
34610         * config/arm/arm.c (arm_builtin_vectorization_cost)
34611         (arm_add_stmt_cost): New functions.
34612         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34613         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34614         (arm_default_vec_cost): New struct of type cpu_vec_costs.
34615         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34616         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34617         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34618         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34620 2013-02-12  Richard Biener  <rguenther@suse.de>
34622         PR lto/56295
34623         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34624         decls again if possible.
34626 2013-02-12  Richard Biener  <rguenther@suse.de>
34628         PR middle-end/56288
34629         * tree-ssa.c (verify_ssa_name): Fix check, move
34630         SSA_NAME_IN_FREE_LIST check up.
34632 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
34633             Steven Bosscher   <steven@gcc.gnu.org>
34635         PR rtl-optimization/56151
34636         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34637         equal to op0 or op1, and last_insn pattern is CODE operation
34638         with MEM dest and one of the operands matches that MEM.
34640 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
34642         * doc/extend.texi: Document Function Multiversioning and "default"
34643         parameter string to target attribute.
34644         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34645         target attribute parameter is "default".
34646         (ix86_compare_version_priority): Remove checks for target attribute.
34647         (ix86_mangle_function_version_assembler_name): Change error to sorry.
34648         Remove check for target attribute equal to NULL. Add assert.
34649         (ix86_generate_version_dispatcher_body): Change error to sorry.
34651 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
34652             Jack Howarth  <howarth@bromo.med.uc.edu>
34653             Patrick Marlier  <patrick.marlier@gmail.com>
34655         PR libitm/55693
34656         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34657         define ENDFILE_SPEC as TM_DESTRUCTOR.
34658         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34660 2013-02-11  Alexander Potapenko  <glider@google.com>
34661             Jack Howarth  <howarth@bromo.med.uc.edu>
34662             Jakub Jelinek  <jakub@redhat.com>
34664         PR sanitizer/55617
34665         * config/darwin.c (cdtor_record): Rename ctor_record.
34666         (sort_cdtor_records): Rename sort_ctor_records.
34667         (finalize_dtors): New routine to sort destructors by
34668         priority before use in assemble_integer.
34669         (machopic_asm_out_destructor): Use finalize_dtors if needed.
34671 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
34673         PR rtl-optimization/56275
34674         * simplify-rtx.c (avoid_constant_pool_reference): Check that
34675         offset is non-negative and less than cmode size before
34676         calling simplify_subreg.
34678 2013-02-11  Richard Biener  <rguenther@suse.de>
34680         PR tree-optimization/56264
34681         * cfgloop.h (fix_loop_structure): Adjust prototype.
34682         * loop-init.c (fix_loop_structure): Return the number of
34683         newly discovered loops.
34684         * tree-cfgcleanup.c (repair_loop_structures): When new loops
34685         are discovered, do a full loop-closed SSA rewrite.
34687 2013-02-11  Richard Biener  <rguenther@suse.de>
34689         PR tree-optimization/56273
34690         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34691         first VRP run.
34692         (check_array_ref): Fix missing newline in dumps.
34693         (search_for_addr_array): Likewise.
34695 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
34697         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34699 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
34701         PR target/56256
34702         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34704 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
34706         PR rtl-optimization/56246
34707         * lra-constraints.c (simplify_operand_subreg): Try to reuse
34708         reload pseudo.
34709         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34710         constraints are satisfied.
34712 2013-02-08  Jeff Law  <law@redhat.com>
34714         PR debug/53948
34715         * emit-rtl.c (reg_is_parm_p): New function.
34716         * regs.h (reg_is_parm_p): New prototype.
34717         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34718         callee-clobbered registers.
34720 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
34722         PR target/56043
34723         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34724         If there is no implicit builtin declaration, just return NULL.
34726 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34728         * config/i386/sse.md (FMAMODEM): New mode iterator.
34729         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34730         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34732 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34734         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34735         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34736         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34738 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34740         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34741         (microblaze*-*-elf): Likewise.
34742         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34743         LINK_SPEC.
34744         * config/microblaze/microblaze-c.c: Add builtin defines for
34745         _LITTLE_ENDIAN and _BIG_ENDIAN.
34746         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34747         add to TARGET_DEFAULT flags.
34748         Expand ASM_SPEC and LINK_SPEC.
34749         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34750         * config/microblaze/microblaze.md: Update extendsidi2 and
34751         movdi_internal instructions to use low-order / high-order reg
34752         print_operands.
34753         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34754         options and inversemask / mask of LITTLE_ENDIAN.
34755         * config/microblaze/t-microblaze: Expand multilib options to
34756         include mlittle-endian (le) and update exceptions patterns.
34758 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
34760         PR rtl-optimization/56195
34761         * lra-constraints.c (get_reload_reg): Don't reuse regs
34762         if they have smaller mode than requested, if they have
34763         wider mode than requested, try to return a SUBREG.
34765         PR tree-optimization/56250
34766         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34767         if type is unsigned and code isn't MULT_EXPR.
34769 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34771         PR tree-optimization/56064
34772         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34773         bits according to mode.
34774         * fixed-value.h (fixed_from_double_int)
34775         (const_fixed_from_double_int): Adjust comments.
34777 2013-02-08  Richard Biener  <rguenther@suse.de>
34779         PR lto/56231
34780         * lto-streamer.h (struct data_in): Remove current_file, current_line
34781         and current_col members.
34782         * lto-streamer-out.c (lto_output_location): Stream changed bits
34783         en-block for efficiency.
34784         * lto-streamer-in.c (clear_line_info): Remove.
34785         (lto_input_location): Cache current file, line and column
34786         globally via local statics.  Read changed bits en-block.
34787         (input_function): Do not call clear_line_info.
34788         (lto_read_body): Likewise.
34789         (lto_input_toplevel_asms): Likewise.
34791 2013-02-08  Michael Matz  <matz@suse.de>
34793         PR tree-optimization/52448
34794         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34795         (nt_call_phase): New static.
34796         (add_or_mark_expr): Only mark accesses with newer phase than any
34797         call seen.
34798         (nonfreeing_call_p): New.
34799         (nt_init_block): Update nt_call_phase, mark blocks as visited.
34800         (nt_fini_block): Keep blocks marked as visited.
34801         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34803 2013-02-08  Richard Biener  <rguenther@suse.de>
34805         * ira.c (ira): Free broken dominator information.
34807 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34809         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34811 2013-02-08  Marek Polacek  <polacek@redhat.com>
34813         * cfgloop.c (verify_loop_structure): Add more checking of headers.
34815 2013-02-08  Richard Biener  <rguenther@suse.de>
34817         PR middle-end/56181
34818         * cfgloop.h (flow_loops_find): Adjust.
34819         (bb_loop_header_p): Declare.
34820         * cfgloop.c (bb_loop_header_p): New function split out from ...
34821         (flow_loops_find): ... here.  Adjust function signature,
34822         support incremental loop structure update.
34823         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
34824         * cfgloopmanip.c (fix_loop_structure): Move ...
34825         * loop-init.c (fix_loop_structure): ... here.
34826         (apply_loop_flags): Split out from ...
34827         (loop_optimizer_init): ... here.
34828         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
34829         in incremental mode, only remove dead loops here.
34831 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34833         PR target/54222
34834         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34835         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34836         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34837         (*round<mode>3.libgcc): New insns for fixed-modes.
34838         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34839         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34840         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34841         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34842         implementations.  Define to __builtin_avr_absFX,
34843         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34844         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34845         __builtin_avr_countlsFX, respectively.
34846         * config/avr/avr-c.c (target.h): Include it.
34847         (enum avr_builtin_id): New enum.
34848         (avr_resolve_overloaded_builtin): New static function.
34849         (avr_register_target_pragmas): Use it to set
34850         targetm.resolve_overloaded_builtin.
34851         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34852         tree nodes used by DEF_BUILTIN.
34853         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34854         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34855         <AVR_BUILTIN_xxBITS>: Same.
34857 2013-02-08  Richard Biener  <rguenther@suse.de>
34859         * cfgloop.c (verify_loop_structure): Properly handle
34860         a loop exiting to another loop header.
34861         * ira-int.h (ira_loops): Remove.
34862         * ira.c (ira_loops): Remove.
34863         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34864         (do_reload): Use loop_optimizer_finalize.
34865         * ira-build.c (create_loop_tree_nodes): Use get_loops and
34866         number_of_loops to access the loop tree.
34867         (more_one_region_p): Likewise.
34868         (finish_loop_tree_nodes): Likewise.
34869         (rebuild_regno_allocno_maps): Likewise.
34870         (mark_loops_for_removal): Likewise.
34871         (mark_all_loops_for_removal): Likewise.
34872         (remove_unnecessary_regions): Likewise.
34873         (ira_build): Likewise.
34874         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34876 2013-02-08  Richard Biener  <rguenther@suse.de>
34878         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34879         * ipa-pure-const.c (analyze_function): Avoid calling
34880         mark_irreducible_loops twice.
34881         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34883 2013-02-07  David S. Miller  <davem@davemloft.net>
34885         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34886         on 'reg'.
34887         * var-tracking.c (vt_add_function_parameter): Test the presence of
34888         HAVE_window_save properly and do not remap argument registers when
34889         we have a leaf function.
34891 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
34893         PR bootstrap/56227
34894         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34895         instead of "ll".
34896         * config/i386/i386.c (ix86_print_operand): Ditto.
34898 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34900         * lra-constraints.c (process_alt_operands): Fix recently added comment.
34902 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34904         PR rtl-optimization/56225
34905         * lra-constraints.c (process_alt_operands): Check that reload hard
34906         reg can hold value for strict_low_part.
34908 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34910         PR debug/56154
34911         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34912         dwarf2out_end_function.
34913         (in_first_function_p, maybe_at_text_label_p,
34914         first_loclabel_num_not_at_text_label): New variables.
34915         (dwarf2out_var_location): In the first function find out
34916         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34917         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34918         functions.
34920 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
34922         PR rtl-optimization/56178
34923         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34924         SUBREG of a register.  Tidy up related block of code.
34925         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34926         note if the source is a register or a SUBREG of a register.
34928 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34930         PR target/56228
34931         * config/rs6000/rs6000.md (ptrm): New mode attr.
34932         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34933         call_value_indirect_aix<pttrsize>,
34934         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34935         m in constraints.
34937 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34939         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34940         if -bnortl. Convert to strcmp and strncmp.
34942 2013-02-07  Alan Modra  <amodra@gmail.com>
34944         PR target/54009
34945         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34946         addresses won't wrap when offsetting.
34947         (rs6000_secondary_reload): Provide secondary reloads needed for
34948         wrapping LO_SUM addresses.
34950 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
34952         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34953         MACH, just __MACH__.
34955 2013-02-06  Richard Biener  <rguenther@suse.de>
34957         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34958         instead of calling fix_loop_structure.
34960 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
34962         PR middle-end/56217
34963         * omp-low.c (use_pointer_for_field): Return false if
34964         lower_send_shared_vars doesn't generate any copy-out code.
34966 2013-02-06  Tom de Vries  <tom@codesourcery.com>
34968         PR rtl-optimization/56131
34969         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34970         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
34971         of the label is NULL.  Add comment.
34973 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
34975         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34977         PR sanitizer/55374
34978         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34979         (STATIC_LIBTSAN_LIBS): Likewise.
34980         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34981         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34982         is defined, don't add anything else beyond that.
34983         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34984         (LINK_COMMAND_SPEC): Use them.
34986         PR tree-optimization/56205
34987         * tree-stdarg.c (check_all_va_list_escapes): Return true if
34988         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34989         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34991 2013-02-05  Richard Biener  <rguenther@suse.de>
34993         PR tree-optimization/53342
34994         PR tree-optimization/53185
34995         * tree-vectorizer.h (vect_check_strided_load): Remove.
34996         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34997         not disallow peeling for vectorized strided loads.
34998         (vect_check_strided_load): Make static and simplify.
34999         (vect_analyze_data_refs): Adjust.
35000         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
35001         correctly when vectorizing strided loads.
35003 2013-02-05  Richard Biener  <rguenther@suse.de>
35005         * doc/install.texi: Refer to ISL, not PPL.
35007 2013-02-05  Jan Hubicka  <jh@suse.cz>
35009         PR tree-optimization/55789
35010         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
35012 2013-02-05  Jan Hubicka  <jh@suse.cz>
35014         PR tree-optimization/55789
35015         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
35016         the dead call anyway.
35018 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
35020         PR sanitizer/55374
35021         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
35023 2013-02-04  Alexander Potapenko  <glider@google.com>
35024             Jack Howarth  <howarth@bromo.med.uc.edu>
35025             Jakub Jelinek  <jakub@redhat.com>
35027         PR sanitizer/55617
35028         * config/darwin.c (sort_ctor_records): Stabilized qsort
35029         on constructor priority by using original position.
35030         (finalize_ctors): New routine to sort constructors by
35031         priority before use in assemble_integer.
35032         (machopic_asm_out_constructor): Use finalize_ctors if needed.
35034 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
35036         PR libstdc++/54314
35037         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
35038         about visibility on artificial decls.
35039         * config/sol2.c (solaris_assemble_visibility): Likewise.
35041 2013-02-04  Kai Tietz  <ktietz@redhat.com>
35043         PR target/56186
35044         * config/i386/i386.c (function_value_ms_64): Add additional valtype
35045         argument and improve checking of return-argument types for 16-byte
35046         modes.
35047         (ix86_function_value_1): Add additional valtype argument on call
35048         of function_value_64.
35049         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
35050         handling infunction_value_64 function.
35052 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
35054         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
35056 2013-02-04  Richard Biener  <rguenther@suse.de>
35058         PR tree-optimization/56188
35059         * tree-ssa-structalias.c (label_visit): Consider case with
35060         initially non-empty points-to set.
35061         (perform_var_substitution): Dump node mapping and clean up.
35063 2013-02-04  Richard Guenther  <rguenther@suse.de>
35065         PR lto/56168
35066         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
35067         node prevail as last resort.
35068         (lto_symtab_merge_decls): Remove guard on LTRANS here.
35069         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
35071 2013-02-04  Richard Biener  <rguenther@suse.de>
35073         PR tree-optimization/56113
35074         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
35075         Merge into ...
35076         (equiv_class_lookup_or_add): ... this.
35077         (label_visit): Adjust and fix error in previous patch.
35078         (perform_var_substitution): Adjust.
35080 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
35082         * config/sh/divtab.c: Fix formatting and comments throughout the file.
35083         * config/sh/sh4-300.md: Likewise.
35084         * config/sh/sh4a.md: Likewise.
35085         * config/sh/constraints.md: Likewise.
35086         * config/sh/sh.md: Likewise.
35087         * config/sh/netbsd-elf.h: Likewise.
35088         * config/sh/predicates.md: Likewise.
35089         * config/sh/sh-protos.h: Likewise.
35090         * config/sh/ushmedia.h: Likewise.
35091         * config/sh/linux.h: Likewise.
35092         * config/sh/sh.c: Likewise.
35093         * config/sh/superh.h: Likewise.
35094         * config/sh/elf.h: Likewise.
35095         * config/sh/sh4.md: Likewise.
35096         * config/sh/sh.h: Likewise.
35098 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35100         * config/pa/constraints.md: Adjust unused letters.  Change "T"
35101         constraint to match_test floating_point_store_memory_operand().
35102         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
35103         (base14_operand): New.
35104         (floating_point_store_memory_operand): New.
35105         (integer_store_memory_operand): Revise to use base14_operand and
35106         reg_plus_base_memory_operand.
35107         (move_dest_operand): Allow symbolic_memory_operands.
35108         (symbolic_memory_operand): Check for LO_SOM.
35109         (symbolic_operand): Change default case to break.
35110         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
35111         CONST_DOUBLE values to be reloaded by putting them into memory when
35112         the destination is a floating point register.
35113         (movdf): Remove code to handle CONST_DOUBLE.
35114         (movsf): Likewise.
35115         (reload_indf_r1): New.
35116         (reload_insf_r1): New.
35117         Consistently use "Q" and "T" constraints with integer and floating
35118         point move instructions, respectively.
35119         (movdi): Remove FAIL.
35120         Change predicate for source operand unamed DImode move from
35121         general_operand to move_src_operand.
35122         (umulsidi3): Change predicate for destination operand to
35123         register_operand.
35124         Likewise for similar unamed patterns.
35125         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
35126         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
35127         (hppa_legitimize_address): Simplify mask calculation.
35128         (pa_emit_move_sequence): Revised handling of secondary reloads from
35129         REG+D addresses for floating point loads and stores.  Directly handle
35130         loading CONST0_RTX (mode) to a floating point register.
35131         (pa_secondary_reload): Handle reloading DF and SFmode constant values
35132         to floating point registers.  Don't restrict secondary reloads to
35133         floating point registers to integer modes.  Revise some comments and
35134         cleanup some code.
35135         (TARGET_LEGITIMATE_ADDRESS_P): Define.
35136         (pa_legitimate_address_p): New.
35137         (pa_legitimize_reload_address): New.
35138         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
35139         (STRICT_REG_OK_FOR_BASE_P): New.
35140         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
35141         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
35143 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
35144             Andrew Dixie  <andrewd@gentrack.com>
35146         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
35147         flag set.
35149 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
35151         * expmed.c (extract_bit_field_1): Pass the full width of the
35152         structure to get_best_reg_extraction_insn.
35154 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
35156         PR target/54601
35157         * configure.ac (use_cxa_atexit): Add AIX.
35158         * configure: Regenerate.
35160         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
35162 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
35164         PR debug/54793
35165         * final.c (need_profile_function): New variable.
35166         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
35167         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
35168         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
35169         notes, targetm.asm_out.function_prologue doesn't emit anything,
35170         HAVE_prologue and profiler should be emitted before prologue,
35171         set need_profile_function instead of emitting it.
35172         (final_scan_insn): If need_profile_function, emit
35173         profile_function on the first NOTE_INSN_BASIC_BLOCK or
35174         NOTE_INSN_FUNCTION_BEG note.
35176 2013-02-01  Richard Henderson  <rth@redhat.com>
35178         * config/rs6000/rs6000.md (smulditi3): New.
35179         (umulditi3): New.
35181         * config/alpha/alpha.md (umulditi3): New.
35183 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
35185         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
35186         (ASM_OUTPUT_ALIGNED_LOCAL): New.
35188 2013-02-01  Richard Biener  <rguenther@suse.de>
35190         PR tree-optimization/56113
35191         * tree-ssa-structalias.c (label_visit): Reduce work for
35192         single-predecessor nodes.
35194 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
35196         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
35197         range isn't testing for zero.
35199 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
35201         PR middle-end/56113
35202         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
35204 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
35205             Nick Clifton  <nickc@redhat.com>
35207         * config/v850/constraints.md (Q): Define as a memory constraint.
35208         * config/v850/predicates.md (label_ref_operand): New predicate.
35209         (e3v5_shift_operand): New predicate.
35210         (ior_operator): New predicate.
35211         * config/v850/t-v850: Add e3v5 multilib.
35212         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
35213         (v850_gen_movdi): Prototype.
35214         * config/v850/v850.c: Add support for e3v5 architecture.
35215         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
35216         TARGET_V850E_UP.
35217         (construct_save_jarl): Add e3v5 long JARL support.
35218         (v850_adjust_insn_length): New function.  Adjust length of call
35219         insns when using e3v5 instructions.
35220         (v850_gen_movdi): New function: Generate instructions to move a
35221         DImode value.
35222         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
35223         (CPP_SPEC): Define __v850e3v5__ as appropriate.
35224         (TARGET_USE_FPU): Enable for e3v5.
35225         (CONST_OK_FOR_W): New macro.
35226         (ADJUST_INSN_LENGTH): Define.
35227         * config/v850/v850.md (UNSPEC_LOOP): Define.
35228         (attr cpu): Add v850e3v5.
35229         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
35230         (movdi): New pattern.
35231         (movdi_internal): New pattern.
35232         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
35233         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
35234         (cstoresf4): Likewise.
35235         (cstoredf4): Likewise.
35236         (insv): New pattern.
35237         (rotlso3_a): New pattern.
35238         (rotlsi3_b): New pattern
35239         (rotlsi3_v850e3v5): New pattern.
35240         (doloop_begin): New pattern.
35241         (fix_loop_counter): New pattern.
35242         (doloop_end): New pattern.
35243         (branch_normal): Add e3v5 long branch support.
35244         (branch_invert): Likewise.
35245         (branch_z_normal): Likewise.
35246         (branch_z_invert): Likewise.
35247         (branch_nz_normal): Likewise.
35248         (branch_nz_invert): Likewise.
35249         (call_internal_short): Add e3v5 register-indirect JARL support.
35250         (call_internal_long): Likewise.
35251         (call_value_internal_short): Likewise.
35252         (call_value_internal_long): Likewise.
35253         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
35254         (mloop): New option.
35255         * config.gcc: Add support for configuring v840e3v5 target.
35256         * doc/invoke.texi: Document new v850 specific command line options.
35258 2013-01-31  Paul Koning  <ni1d@arrl.net>
35260         PR debug/55059
35261         PR debug/54508
35262         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
35263         children if parent is a class.
35264         (prune_unused_types_prune): Don't add DW_AT_declaration.
35266 2013-01-31  Richard Biener  <rguenther@suse.de>
35268         PR tree-optimization/56157
35269         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35270         match up operand with SLP child.
35272 2013-01-31  Jason Merrill  <jason@redhat.com>
35274         PR debug/54410
35275         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35276         parameters the first time.
35277         (gen_scheduled_generic_parms_dies): Check completeness here.
35279 2013-01-31  Richard Biener  <rguenther@suse.de>
35281         PR middle-end/53073
35282         * common.opt (faggressive-loop-optimizations): New flag,
35283         enabled by default.
35284         * doc/invoke.texi (faggressive-loop-optimizations): Document.
35285         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35286         infer_loop_bounds_from_undefined by it.
35288 2013-01-31  Richard Biener  <rguenther@suse.de>
35290         PR tree-optimization/56150
35291         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35292         visit virtual operands.
35293         (find_uses_to_rename_bb): Likewise.
35295 2013-01-31  Richard Biener  <rguenther@suse.de>
35297         PR tree-optimization/56150
35298         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35299         mixed store non-store stmts.
35301 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
35303         PR sanitizer/55374
35304         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35305         LIBASAN_EARLY_SPEC is defined.
35306         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35307         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35308         before %o.
35309         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35311         PR c++/55742
35312         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35313         invalid args instead of ICEing on it.
35314         (ix86_valid_target_attribute_tree): Return error_mark_node if
35315         ix86_valid_target_attribute_inner_p failed.
35316         (ix86_valid_target_attribute_p): Return false only if
35317         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
35318         target("default") attribute.
35319         (sorted_attr_string): Change argument from const char * to tree,
35320         merge in all target attribute arguments rather than just one.
35321         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
35322         instead of free.  Avoid using strcat.
35323         (ix86_mangle_function_version_assembler_name): Mangle
35324         target("default") as if no target attribute is present.  Adjust
35325         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
35326         instead of xmalloc and XDELETEVEC instead of free.
35327         (ix86_function_versions): Don't return true if one of the decls
35328         doesn't have target attribute.  If they don't and one of the decls
35329         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
35330         sorted_attr_string caller.  Use XDELETEVEC instead of free.
35331         (ix86_supports_function_versions): Remove.
35332         (make_name): Fix up formatting.
35333         (make_dispatcher_decl): Remove resolver_name and its initialization.
35334         Avoid leaking memory.
35335         (is_function_default_version): Return true if there is
35336         target("default") attribute rather than no target attribute at all.
35337         (make_resolver_func): Avoid leaking memory.
35338         (ix86_generate_version_dispatcher_body): Likewise.
35339         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35340         * target.def (supports_function_versions): Remove.
35341         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35342         * doc/tm.texi: Regenerated.
35344 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
35346         PR rtl-optimization/56144
35347         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35348         for values with side effects.
35350 2013-01-30  Richard Biener  <rguenther@suse.de>
35352         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35353         (sparseset_pop): Likewise.
35354         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
35355         to be able to use quick_push in the worker loop.
35357 2013-01-30  Marek Polacek  <polacek@redhat.com>
35359         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35361 2013-01-30  Richard Biener  <rguenther@suse.de>
35363         PR lto/56147
35364         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35366 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
35368         PR tree-optimization/56064
35369         * fixed-value.c (fixed_from_double_int): New function.
35370         * fixed-value.h (fixed_from_double_int): New prototype.
35371         (const_fixed_from_double_int): New static inline function.
35372         * fold-const.c (native_interpret_fixed): New static function.
35373         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35374         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35375         (native_encode_fixed): New static function.
35376         (native_encode_expr) <FIXED_CST>: Use it.
35377         (native_interpret_int): Move double_int worker code to...
35378         * double-int.c (double_int::from_buffer): ...this new static method.
35379         * double-int.h (double_int::from_buffer): Prototype it.
35381 2013-01-30  Richard Biener  <rguenther@suse.de>
35383         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35384         New pointer-map and obstack.
35385         (init_alias_vars): Allocate pointer-map and obstack.
35386         (delete_points_to_sets): Free them.
35387         (find_what_var_points_to): Cache result.
35388         (find_what_p_points_to): Adjust for changed interface of
35389         find_what_var_points_to.
35390         (compute_points_to_sets): Likewise.
35391         (ipa_pta_execute): Likewise.
35393 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35395         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35396         * configure: Regenerate.
35397         * config.in: Regenerate.
35398         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35399         #nobits/#progbits if supported.
35401 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
35403         PR target/56121
35404         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35405         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35406         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35408 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35410         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35411         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35413 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35415         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35416         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35418 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35420         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35421         declaration.
35422         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35423         * config/arm/cortex-a7.md: New bypasses using
35424         arm_mac_accumulator_is_result.
35426 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35428         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
35429         (cortex_a7_neon_mla): Likewise.
35430         (cortex_a7_fpfmad): New reservation.
35431         (cortex_a7_fpmacs): Use ffmas and update required units.
35432         (cortex_a7_fpmuld): Update required units and latency.
35433         (cortex_a7_fpmacd): Likewise.
35434         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35435         (cortex_a7_neon). Likewise.
35436         (bypass) Update participating units.
35438 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35440         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35441         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35442         from fmac to ffma.
35443         * config/arm/vfp11.md (vfp_farith): Use ffmas.
35444         (vfp_fmul): Use ffmad.
35445         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35446         (cortex_r4_fmacd): Use ffmad.
35447         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35448         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
35449         (cortex_a9_fmacd): Use ffmad.
35450         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35451         (cortex_a8_vfp_macd): Use ffmad.
35452         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35453         (cortex_a5_fpmacd): Use ffmad.
35454         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35455         (cortex_a15_vfp_macd): Use ffmad.
35456         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35458 2013-01-29  Jason Merrill  <jason@redhat.com>
35460         PR libstdc++/54314
35461         * varasm.c (default_assemble_visibility): Don't warn about
35462         visibility on artificial decls.
35464 2013-01-29  Richard Biener  <rguenther@suse.de>
35466         PR tree-optimization/56113
35467         * tree-ssa-structalias.c (equiv_class_lookup): Also return
35468         the bitmap leader.
35469         (label_visit): Free duplicate bitmaps and record the leader instead.
35470         (perform_var_substitution): Adjust.
35472 2013-01-29  Richard Biener  <rguenther@suse.de>
35474         PR tree-optimization/55270
35475         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35476         the CFG, schedule loops for fixup.
35478 2013-01-29  Nick Clifton  <nickc@redhat.com>
35480         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35481         SP_REG.
35483 2013-01-28  Leif Ekblad  <leif@rdos.net>
35485         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35486         * config/i386/i386.h (TARGET_RDOS): New macro.
35487         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35488         * config/i386/i386.c (ix86_option_override_internal): For 64bit
35489         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35490         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35491         DEFAULT_LARGE_SECTION_THRESHOLD.
35492         * config/i386/i386.md (R14_REG, R15_REG): New constants.
35493         * config/i386/rdos.h: New file.
35494         * config/i386/rdos64.h: New file.
35496 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
35498         PR other/54814
35499         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35500         TEST_HARD_REG_BIT.
35502 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35504         PR rtl-optimization/56117
35505         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35506         call cselib_lookup_from_insn on the MEM before calling
35507         add_insn_mem_dependence.
35509 2013-01-28  Richard Biener  <rguenther@suse.de>
35511         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35512         to a stmt that didn't have one.
35513         (copy_phis_for_bb): Likewise for PHI arguments.
35514         (copy_debug_stmt): Likewise for debug stmts.
35516 2013-01-28  Richard Biener  <rguenther@suse.de>
35518         PR tree-optimization/56034
35519         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35520         (partition_builtin_p): Adjust.
35521         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
35522         it is the last partition.
35523         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35524         up the vertex for the definition.
35525         (classify_partition): Classify whether a partition is a
35526         PKIND_REDUCTION, thus has uses outside of the loop.
35527         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35528         Merge all PKIND_REDUCTION partitions into the last partition.
35529         (tree_loop_distribution): Seed partitions from reductions as well.
35531 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35533         PR tree-optimization/56125
35534         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35535         pow(x,c) into sqrt(x) * powi(x, n/2) or
35536         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35537         optimizing for size.
35538         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35539         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35540         integer.
35542         PR tree-optimization/56094
35543         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35544         to UNKNOWN_LOCATION while gimplifying expr.
35546 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
35548         PR target/56114
35549         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35550         operand 0 in movabs insn template for -masm=intel asm alternative.
35551         (*movabs<mode>_2): Ditto for operand 1.
35553 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
35555         PR target/54663
35556         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35557         of microblaze-c.o
35559 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35561         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35562         tm_file.
35564 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35566         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35567         Undef to avoid warning.
35569 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35571         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35572         * configure: Regenerate.
35574 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
35576         PR tree-optimization/56098
35577         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35578         for stmts with volatile ops.
35579         (cond_store_replacement): Don't optimize if assign has volatile ops.
35580         (cond_if_else_store_replacement_1): Don't optimize if either
35581         then_assign or else_assign have volatile ops.
35582         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35583         volatile ops.
35585 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35587         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35589 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35591         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35592         missing ':' in asm example.
35594 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
35596         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35597         entries into lane and laneq entries.
35598         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35599         Remove AdvSIMD scalar modes.
35600         (aarch64_sq<r>dmulh_laneq<mode>): New.
35601         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35602         modes.
35603         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35604         builtin implementations to relfect changes in RTL in aarch64-simd.md.
35605         * config/aarch64/iterators.md (VCOND): New.
35606         (VCONQ): New.
35608 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35610         PR target/54222
35611         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35612         Add NULL LIBNAME argument to existing definitions.
35613         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35614         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35615         * config/avr/avr.c (DEF_BUILTIN): Same.
35616         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35617         (avr_expand_builtin): Expand to a vanilla call if a libgcc
35618         implementation is available (DECL_ASSEMBLER_NAME is set).
35619         (avr_fold_absfx): New static function.
35620         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35621         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35622         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35623         AVR_BUILTIN_ABSLLK.
35624         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35625         (abshk, absk, abslk, absllk): Provide as static inline functions.
35627 2013-01-25  Marek Polacek  <polacek@redhat.com>
35629         PR tree-optimization/56035
35630         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35632 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
35634         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35635         (*movtf_internal_rex64): Add (!o,C) alternative
35636         (*movxf_internal_rex64): Ditto.
35637         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35639 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
35641         * doc/invoke.texi: fix typo.
35642         * doc/objc.texi: fix typo.
35644 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
35646         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35647         for the first two alternatives.
35649 2013-01-24  Diego Novillo  <dnovillo@google.com>
35651         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
35652         (ggc-zone.o): Remove.
35653         * configure.ac: Remove option --with-gc.
35654         * configure: Re-generate.
35655         * doc/install.texi: Remove documentation for --with-gc.
35656         * gengtype.c (write_enum_defn): Remove.  Update all users.
35657         (write_Types_process_field): Remove generation of gt_e_* argument.
35658         (output_type_enum): Remove.  Update all users.
35659         (write_enum_defn): Remove.  Update all users.
35660         (enum alloc_zone): Remove.  Update all users.
35661         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35662         * ggc-common.c (ggc_splay_alloc): Remove first argument.
35663         Update all callers.
35664         (struct ptr_data): Remove field TYPE.  Update all users.
35665         (gt_pch_note_object): Remove argument TYPE.  Update all users.
35666         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35667         Update all users.
35668         * ggc-none.c (ggc_alloc_typed_stat): Remove.
35669         (struct alloc_zone): Remove.
35670         (ggc_internal_alloc_zone_stat): Remove.
35671         (ggc_internal_cleared_alloc_zone_stat): Remove.
35672         * ggc-page.c (ggc_alloc_typed_stat): Remove.
35673         (ggc_pch_count_object): Remove last argument.  Update all users.
35674         (ggc_pch_alloc_object): Remove last argument.  Update all users.
35675         (struct alloc_zone): Remove.
35676         * ggc-zone.c: Remove.
35677         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
35678         (struct alloc_zone): Remove.
35679         (ggc_alloc_typed_stat): Remove.
35680         (ggc_alloc_typed): Remove.
35681         (ggc_splay_alloc): Remove first argument.
35682         (rtl_zone): Remove.  Update all users.
35683         (tree_zone): Remove.  Update all users.
35684         (tree_id_zone): Remove.  Update all users.
35685         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
35686         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
35687         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
35688         * tree-ssanames.c: Remove references to zone allocator in comments.
35690 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
35692         * config/avr/avr.c (avr_out_fract): Make register numbers that
35693         might be outside of source operand signed.
35695 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
35697         * config/i386/constraints.md (Yf): New constraint.
35698         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35699         of f constraint to conditionaly disable x87 register preferences.
35700         (*movdf_internal): Ditto.
35701         (*movsf_internal): Ditto.
35703 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
35705         PR inline-asm/55934
35706         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35707         that have operands with impossible constraints.
35708         Add a FIXME for a speed-up opportunity.
35709         * lra-constraints.c (process_alt_operands): Verify that a class
35710         selected from constraints on asms is valid for the operand mode.
35711         (curr_insn_transform): Remove incorrect comment.
35713 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
35715         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35716         TOC operand is a valid symbol ref in the constant pool.
35718 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35720         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35722 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
35724         PR target/54222
35725         * config/avr/stdfix.h: New file.
35726         * t-avr (stdfix-gcc.h): New rule to build it.
35727         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35729 2013-01-23  Kostya Serebryany  <kcc@google.com>
35731         * config/darwin.h: remove dependency on
35732         CoreFoundation (asan on Mac OS).
35734 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
35736         PR target/49069
35737         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35738         instead of cmpdi_operand for first comparison operand.
35739         Don't assert that comparison operands aren't both constants.
35741 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35743         * doc/install.texi (Downloading the Source): Update references to
35744         downloading separate components.
35746 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35748         * doc/extend.texi (__int128): Improve grammar.
35750 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
35752         PR target/56028
35753         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35754         alternative to (o,r).
35755         (*movdi_internal_rex64): Remove (!o,n) alternative.
35756         (DImode immediate->memory splitter): Remove.
35757         (DImode immediate->memory peephole2): Remove.
35758         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35759         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35760         alternative to (!o,*r).
35761         (*movtf_internal_sse): New pattern.
35762         (*movxf_internal_rex64): New pattern.
35763         (*movxf_internal): Disable for TARGET_64BIT.
35764         (*movdf_internal_rex64): Remove (!o,F) alternative.
35766 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
35768         PR middle-end/56074
35769         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35770         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35771         * tree-vect-loop-manip.c (find_loop_location): Also ignore
35772         stmt locations where LOCATION_LOCUS of the stmt location is
35773         UNKNOWN_LOCATION or BUILTINS_LOCATION.
35775         PR target/55686
35776         * config/i386/i386.md (UNSPEC_STOS): New.
35777         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35778         *strsetqi_1): Add UNSPEC_STOS.
35780 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
35782         PR c++/56067
35783         * doc/invoke.texi: Remove left over -Wsynth example.
35785 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35787         PR tree-optimization/56051
35788         * fold-const.c (fold_binary_loc): Don't fold
35789         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35790         a narrowing conversion, or widening conversion from signed
35791         to unsigned.
35793 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35795         PR rtl-optimization/56023
35796         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35797         dependent on debug instruction.
35799 2013-01-21  Martin Jambor  <mjambor@suse.cz>
35801         PR middle-end/56022
35802         * function.c (allocate_struct_function): Call
35803         invoke_set_current_function_hook earlier.
35805 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35807         * reload1.c (init_reload): Only initialize reload_obstack
35808         during the first call.
35810 2013-01-21  Marek Polacek  <polacek@redhat.com>
35812         * cfgloop.c (verify_loop_structure): Fix up grammar.
35814 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
35816         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35817         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35819 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35821         PR target/56058
35822         * config/arm/marvell-pj4.md: Update copyright year.
35823         Fix up use of alu to alu_reg and simple_alu_imm.
35825 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35827         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35829 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
35831         PR target/55433
35832         * lra-constraints.c (curr_insn_transform): Don't reuse original
35833         insn for secondary memory move when memory mode should be different.
35835 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35837         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35838         atomic_storedi_1): New patterns.
35840 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
35842         btver2 pipeline descriptions.
35843         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35844         descriptions.
35845         * config/i386/i386.md (btver2_decode): New type attributes.
35846         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35847         type attributes.
35848         * config/i386/btver2.md: New file describing btver2 pipelines.
35850 2013-01-19  Andrew Pinski  <apinski@cavium.com>
35852         PR tree-optimization/52631
35853         * tree-ssa-sccvn (visit_use): Before looking up the original
35854         statement, try looking up the simplified expression.
35856 2013-01-19  Anthony Green  <green@moxielogic.com>
35858         * config/moxie/moxie.c (moxie_expand_prologue): Set
35859         current_function_static_stack_size.
35861 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35863         PR tree-optimization/56029
35864         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35865         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35867 2013-01-18  Sharad Singhai  <singhai@google.com>
35869         PR tree-optimization/55995
35870         * dumpfile.c (dump_loc): Print location only if available.
35871         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35873 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
35875         PR target/55433
35876         * lra-constraints.c (curr_insn_transform): Reuse original insn for
35877         secondary memory move.
35878         (inherit_reload_reg): Use rclass instead of cl for
35879         check_secondary_memory_needed_p.
35881 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35883         PR middle-end/56015
35884         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35885         the case where writing real complex part of target modifies op1.
35887 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
35889         * config/aarch64/aarch64-simd.md
35890         (aarch64_vcond_internal<mode>): Handle unordered cases.
35891         * config/aarch64/iterators.md (v_cmp_result): New.
35893 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
35894             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35896         * config/arm/marvell-pj4.md: New file.
35897         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35898         * config/arm/arm.md (generic_sched): Add marvell_pj4.
35899         (generic_vfp): Likewise.
35900         * config/arm/arm-cores.def: Add marvell-pj4.
35901         * config/arm/arm-tune.md: Regenerate.
35902         * config/arm/arm-tables.opt: Regenerate.
35903         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35904         * doc/invoke.texi: Document marvell-pj4.
35906 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
35908         * config/aarch64/arm_neon.h: Map scalar types to standard types.
35910 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35912         PR debug/54114
35913         PR debug/54402
35914         PR debug/49888
35915         * var-tracking.c (negative_power_of_two_p): New.
35916         (global_get_addr_cache, local_get_addr_cache): New.
35917         (get_addr_from_global_cache, get_addr_from_local_cache): New.
35918         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
35919         heading comment.
35920         (vt_stack_offset_p): Remove.
35921         (vt_canon_true_dep): Always canonicalize loc's address.
35922         (clobber_overlapping_mems): Make sure we have a MEM.
35923         (local_get_addr_clear_given_value): New.
35924         (val_reset): Clear local cached entries.
35925         (compute_bb_dataflow): Create and release the local cache.
35926         Disable duplicate MEMs clobbering.
35927         (emit_notes_in_bb): Clobber MEMs likewise.
35928         (vt_emit_notes): Create and release the local cache.
35929         (vt_initialize, vt_finalize): Create and release the global
35930         cache, respectively.
35931         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35933 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35935         PR libmudflap/53359
35936         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35937         not found in the symtab.
35939 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35941         PR debug/56006
35942         PR rtl-optimization/55547
35943         PR rtl-optimization/53827
35944         PR debug/53671
35945         PR debug/49888
35946         * alias.c (offset_overlap_p): New, factored out of...
35947         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
35948         the conservative special case for symbolic constants.  Don't
35949         adjust zero sizes on alignment.
35951 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
35953         PR rtl-optimization/52573
35954         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35955         REG_UNUSED for the same register.
35957 2013-01-17  Richard Biener  <rguenther@suse.de>
35958             Marek Polacek  <polacek@redhat.com>
35960         PR rtl-optimization/55833
35961         * loop-unswitch.c (unswitch_loops): Move loop verification...
35962         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
35963         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35964         Set it to true when we're removing a loop from hierarchy tree in
35965         an irreducible region.
35966         (fix_bb_placements): Adjust caller.
35967         (fix_loop_placements): Likewise.
35969 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
35971         * config/avr/builtins.def (DEF_BUILTIN): Factor out
35972         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35973         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35974         Remove ID.  Adjust comments.
35975         * config/avr/avr-c.c (avr_builtin_name): Remove.
35976         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35977         * config/avr/avr.c (avr_tolower): New static function.
35978         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
35979         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35980         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35981         default expansion.
35983 2013-01-17  Jan Hubicka  <jh@suse.cz>
35985         PR tree-optimization/55273
35986         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35988 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
35990         PR target/55981
35991         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35992         store through atomic_store<mode>_1.
35993         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35995 2013-01-17  Martin Jambor  <mjambor@suse.cz>
35997         PR tree-optimizations/55264
35998         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35999         for virtual methods.
36000         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
36001         virtual methods before inlining is over.
36002         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
36003         virtual functions.
36004         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
36005         non-virtual.
36007 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
36009         PR rtl-optimization/56005
36010         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
36011         pending reads for prefetch.
36013 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
36015         * config/aarch64/aarch64.md
36016         (*cstoresi_neg_uxtw): New pattern.
36017         (*cmovsi_insn_uxtw): New pattern.
36018         (*<optab>si3_uxtw): New pattern.
36019         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
36020         (*<optab>si3_insn_uxtw): New pattern.
36021         (*bswapsi2_uxtw): New pattern.
36023 2013-01-16  Richard Biener  <rguenther@suse.de>
36025         * tree-inline.c (tree_function_versioning): Remove set but
36026         never used variable.
36028 2013-01-16  Richard Biener  <rguenther@suse.de>
36030         PR tree-optimization/55964
36031         * tree-flow.h (rename_variables_in_loop): Remove.
36032         (rename_variables_in_bb): Likewise.
36033         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
36034         (copy_loop_before): Adjust and delete update-ssa status.
36035         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
36036         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
36037         (rename_variables_in_loop): Remove.
36038         (slpeel_update_phis_for_duplicate_loop): Likewise.
36039         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
36040         use available cfg machinery instead of duplicating it.
36041         Update PHI nodes and perform poor-mans SSA update here.
36042         (slpeel_tree_peel_loop_to_edge): Adjust.
36044 2013-01-16  Richard Biener  <rguenther@suse.de>
36046         PR tree-optimization/54767
36047         PR tree-optimization/53465
36048         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
36049         (vrp_visit_phi_node): For PHI arguments coming via backedges
36050         drop all symbolical range information.
36051         (execute_vrp): Compute backedges.
36053 2013-01-16  Richard Biener  <rguenther@suse.de>
36055         * doc/install.texi: Update CLooG and ISL requirements to
36056         0.18.0 and 0.11.1.
36058 2013-01-16  Christian Bruel  <christian.bruel@st.com>
36060         PR target/55301
36061         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
36062         (broken_move): Handle UNSPECV_SP_SWITCH_B.
36063         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
36065 2013-01-16  DJ Delorie  <dj@redhat.com>
36067         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
36068         (UNSPECV_SP_SWITCH_E): New.
36069         (sp_switch_1): Change to an unspec.
36070         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
36071         replace $r15.
36073 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
36075         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
36076         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
36077         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
36078         (expand_mem_thread_fence): Ditto.
36079         (expand_mem_signal_fence): Ditto.
36080         (expand_atomic_load): Ditto.
36081         (expand_atomic_store): Ditto.
36083 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
36085         PR rtl-optimization/55547
36086         PR rtl-optimization/53827
36087         PR debug/53671
36088         PR debug/49888
36089         * alias.c (memrefs_conflict_p): Set sizes to negative after
36090         AND adjustments.
36092 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
36094         PR target/55940
36095         * function.c (thread_prologue_and_epilogue_insns): Always
36096         add crtl->drap_reg to set_up_by_prologue.set, even if
36097         stack_realign_drap is false.
36099 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
36101         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
36102         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
36103         *call): Fix indention.
36105 2013-01-15  Tom de Vries  <tom@codesourcery.com>
36107         PR target/55876
36108         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
36109         Update comment.
36111 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
36113         PR rtl-optimization/55153
36114         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
36116 2013-01-15  Martin Jambor  <mjambor@suse.cz>
36118         PR tree-optimization/55920
36119         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
36120         accesses as grp_to_be_debug_replaced.
36122 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
36124         PR tree-optimization/55920
36125         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
36126         there is non-useless type conversion needed from debug rhs to lhs,
36127         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
36129 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
36130             Mikael Pettersson  <mikpe@it.uu.se>
36132         PR target/43961
36133         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
36134         Thumb.
36135         (ASM_OUTPUT_CASE_LABEL): Remove.
36136         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
36137         * final.c (shorten_branches): Update alignment of labels before
36138         jump tables if CASE_VECTOR_SHORTEN_MODE.
36140 2013-01-15  Richard Biener  <rguenther@suse.de>
36142         PR bootstrap/55961
36143         * system.h: Do not include gmp.h for building host tools.
36145 2013-01-15  Richard Biener  <rguenther@suse.de>
36147         PR middle-end/55882
36148         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
36149         account for bitpos when computing alignment.
36151 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
36153         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
36154         (ix86_target_macros_internal): Likewise.
36156         * config/i386/i386.c (m_CORE2I7): Removed.
36157         (m_CORE_HASWELL): New macro.
36158         (m_CORE_ALL): Likewise.
36159         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
36160         (initial_ix86_arch_features): Likewise.
36161         (processor_target_table): Initializations for Core avx2.
36162         (cpu_names): New names "core-avx2".
36163         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
36164         PROCESSOR_CORE_HASWELL.
36165         (ix86_issue_rate): New case.
36166         (ia32_multipass_dfa_lookahead): Likewise.
36167         (ix86_sched_init_global): Likewise.
36169         * config/i386/i386.h (TARGET_HASWELL): New macro.
36170         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
36171         (processor_type): New PROCESSOR_HASWELL.
36173 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
36175         PR tree-optimization/55955
36176         * tree-vect-loop.c (vectorizable_reduction): Give up early on
36177         *SHIFT_EXPR and *ROTATE_EXPR codes.
36179         PR tree-optimization/48766
36180         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
36181         -ftrapv disable -fwrapv.
36183 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36185         PR target/55974
36186         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
36187         etc. to 1 and not to __flash.
36188         Use LL suffix for __INT24_MAX__ with -mint8.
36189         Use ULL suffix for __UINT24_MAX__ with -mint8.
36191 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36193         * config/avr/avr-arch.h
36194         (struct base_arch_s): Use typedef avr_arch_t instead.
36195         (struct arch_info_s): Use typedef avr_arch_info_t instead.
36196         (struct mcu_type_s): Use typedef avr_mcu_t instead.
36197         * config/avr/avr.c: Same.
36198         * config/avr/avr-devices.c: Same.
36199         * config/avr/driver-avr.c: Same.
36200         * config/avr/gen-avr-mmcu-texi.c: Same.
36201         * config/avr/avr-mcus.def: Adjust comment.
36203 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
36205         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
36206         * config/aarch64/iterators.md (VALLDI): New.
36208 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
36209             Andi Kleen  <ak@linux.intel.com>
36211         PR target/55948
36212         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
36213         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
36214         memmodel flag.
36216 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36218         * config/avr/avr-stdint.h: Remove trailing blanks.
36219         * config/avr/avr-log.h: Same.
36220         * config/avr/avr-arch.h: Same.
36221         * config/avr/avr-devices.c: Same.
36222         * config/avr/avr-dimode.md: Same.
36223         * config/avr/predicates.md: Same.
36224         * config/avr/avr-c.c: Same.  And fix typo.
36226         * config/avr/avr-protos.h: Same.  And:
36227         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
36228         (init_cumulative_args): Rename to avr_init_cumulative_args.
36229         (expand_prologue): Rename to avr_expand_prologue.
36230         (expand_epilogue): Rename to avr_expand_epilogue.
36231         (adjust_insn_length): Rename to avr_adjust_insn_length.
36232         (notice_update_cc): Rename to avr_notice_update_cc.
36233         (final_prescan_insn): Rename to avr_final_prescan_insn.
36234         * config/avr/avr.c: Same.
36235         * config/avr/avr.h: Same.
36236         * config/avr/avr.md: Remove trailing blanks.
36237         (prologue): Use avr_expand_prologue.
36238         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
36240 2013-01-14  Richard Biener  <rguenther@suse.de>
36242         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
36243         verify_location, collect_subblocks): New functions.
36244         (verify_gimple_in_cfg): Verify that locations only reference
36245         BLOCKs in the functions BLOCK tree.
36247 2013-01-14  Richard Biener  <rguenther@suse.de>
36249         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
36250         PHI argument.
36251         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
36252         unshare reference.
36253         (insert_out_of_ssa_copy_on_edge): Likewise.
36254         (rewrite_close_phi_out_of_ssa): Likewise.
36255         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
36256         debug expressions.
36257         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
36258         propagated constants.
36259         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
36260         can not be shared.
36262 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36264         * config/avr/avr-modes.def: Add GPL copyright notice.
36266 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
36268         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36269         MEMMODEL_MASK to determine memory model.
36270         (atomic_store<mode>): Ditto from operands[2].
36271         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36273 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
36275         PR fortran/55935
36276         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36277         (fold_gimple_assign): Don't call unshare_expr here.
36278         (fold_ctor_reference): Call unshare_expr.
36280 2013-01-13  Terry Guo  <terry.guo@arm.com>
36282         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36283         * doc/fragments.texi: Document MULTILIB_REUSE.
36284         * gcc.c (multilib_reuse): New internal spec.
36285         (set_multilib_dir): Also search multilib from multilib_reuse.
36286         * genmultilib (tmpmultilib3): Refactor code.
36287         (tmpmultilib4): Ditto.
36288         (multilib_reuse): New multilib argument.
36290 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
36292         * Makefile.in: Update copyright.
36294 2013-01-12  Tom de Vries  <tom@codesourcery.com>
36296         PR middle-end/55890
36297         * calls.c (expand_call): Check if arg_nr is valid.
36299 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
36301         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36302         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36303         documentation.  Add missing '__' in front of
36304         __builtin_ia32_packssdw256.
36306 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36308         PR target/55719
36309         * config/s390/s390.c (s390_preferred_reload_class): Do not return
36310         NO_REGS for larl operands.
36311         (s390_reload_larl_operand): Use s390_load_address instead of
36312         emit_move_insn.
36314 2013-01-11  Richard Biener  <rguenther@suse.de>
36316         * tree-cfg.c (verify_node_sharing_1): Split out from ...
36317         (verify_node_sharing): ... here.
36318         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36320 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
36322         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36323         Substitute TREECHECKING.
36324         * configure: Regenerate.
36325         * Makefile.in (TREECHECKING): New.
36327 2013-01-11  Richard Guenther  <rguenther@suse.de>
36329         PR tree-optimization/44061
36330         * tree-vrp.c (extract_range_basic): Compute zero as
36331         value-range for __builtin_constant_p of function parameters.
36333 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
36335         Update copyright years.
36337 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
36339         PR rtl-optimization/55672
36340         * lra-eliminations.c (mark_not_eliminable): Permit addition with
36341         const to be eliminable.
36343 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
36345         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36346         * configure: Regenerate.
36348 2013-01-10  Richard Biener  <rguenther@suse.de>
36350         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36352 2013-01-10  Richard Biener  <rguenther@suse.de>
36354         PR bootstrap/55792
36355         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36356         locations for virtual PHI arguments.
36357         (rewrite_update_phi_arguments): Likewise.
36359 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
36361         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36362         on to assembler.
36364 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
36366         PR tree-optimization/55921
36367         * tree-complex.c (expand_complex_asm): New function.
36368         (expand_complex_operations_1): Call it for GIMPLE_ASM.
36370 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36372         PR target/55718
36373         * config/s390/s390.c (s390_symref_operand_p)
36374         (s390_loadrelative_operand_p): Merge the two functions.
36375         (s390_check_qrst_address, print_operand_address): Add parameters
36376         to s390_loadrelative_operand_p invokation.
36377         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36378         (s390_reload_larl_operand, s390_secondary_reload): Use
36379         s390_loadrelative_operand_p instead of s390_symref_operand_p.
36380         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36382 2013-01-09  Mike Stump  <mikestump@comcast.net>
36384         * dse.c (record_store): Remove unnecessary assert.
36386 2013-01-09  Jan Hubicka  <jh@suse.cz>
36388         PR tree-optimization/55569
36389         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36390         * cfgloop.h (scale_loop_profile): Likewise.
36392 2013-01-09  Jan Hubicka  <jh@suse.cz>
36394         PR lto/45375
36395         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36396         functions.
36397         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36399 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
36401         PR middle-end/55114
36402         * expr.h (maybe_emit_group_store): Declare.
36403         * expr.c (maybe_emit_group_store): New function.
36404         * builtins.c (expand_builtin_int_roundingfn): Call it.
36405         (expand_builtin_int_roundingfn_2): Likewise.
36407 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
36409         PR rtl-optimization/55829
36410         * lra-constraints.c (match_reload): Add code for absent output.
36411         (curr_insn_transform): Add code for reloads of matched inputs
36412         without output.
36414 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
36416         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36417         attribute of movddup insn to DF.
36418         (*vec_interleave_lowv2df): Ditto.
36419         (vec_dupv2df): Ditto.
36421 2013-01-09  Jan Hubicka  <jh@suse.cz>
36423         PR tree-optimiation/55875
36424         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36425         EVERY_ITERATION parameter.
36426         (number_of_iterations_exit): Check if exit is executed every iteration.
36427         (idx_infer_loop_bounds): Similarly here.
36428         (n_of_executions_at_most): Simplify
36429         to only test for cases where statement is dominated by the
36430         particular bound; handle correctly the "postdominance" test.
36431         (scev_probably_wraps_p): Use max loop iterations info
36432         as a global bound first.
36434 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
36435             Nick Clifton  <nickc@redhat.com>
36437         * config/v850/v850.md (cbranchsf4): New pattern.
36438         (cstoresf4): New pattern.
36439         (cbranchdf4): New pattern.
36440         (cstoredf4): New pattern.
36441         (movsicc): Disallow floating point comparisons.
36442         (cmpsf_le_insn): Fix order of operators.
36443         (cmpsf_lt_insn): Likewise.
36444         (cmpsf_eq_insn): Likewise.
36445         (cmpdf_le_insn): Likewise.
36446         (cmpdf_lt_insn): Likewise.
36447         (cmpdf_eq_insn): Likewise.
36448         (cmpsf_ge_insn): Use LE comparison.
36449         (cmpdf_ge_insn): Likewise.
36450         (cmpsf_gt_insn): Use LT comparison.
36451         (cmpdf_gt_insn): Likewise.
36452         (cmpsf_ne_insn): Delete pattern.
36453         (cmpdf_ne_insn): Delete pattern.
36454         * config/v850/v850.c (v850_gen_float_compare): Use
36455         gen_cmpdf_eq_insn for NE comparison.
36456         (v850_float_z_comparison_operator)
36457         (v850_float_nz_comparison_operator): Move from here ...
36458         * config/v850/predicates.md: ... to here.  Move GT and GE
36459         comparisons into v850_float_z_comparison_operator.
36460         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36461         Delete prototype.
36462         (v850_float_nz_comparison_operator): Likewise.
36464 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36466         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36467         with calls to gen_insvsi/gen_insvdi.
36469 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
36471         * config/i386/i386.c (initial_ix86_tune_features): Set up
36472         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36474 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
36475             Jakub Jelinek  <jakub@redhat.com>
36477         PR tree-optimization/48189
36478         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36479         If nitercst is 0, don't predict the exit edge.
36481 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36483         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36484         in asm_fprintf with reg_names.
36485         (aarch64_print_operand_address): Likewise.
36486         (aarch64_return_addr): Likewise.
36487         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36489 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36491         * config/pa/pa.h (VAL_U6_BITS_P): Define.
36492         (INT_U6_BITS): Likewise.
36493         * config/pa/predicates.md (uint6_operand): New predicate.
36494         (shift5_operand, shift6_operand): Likewise.
36495         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36496         arith32_operand.
36497         (lshrdi3): Use shift6_operand.
36498         (shrpsi4, shrpdi4): New insn patterns.
36499         (extzv): Delete expander.
36500         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
36501         predicates in unamed zero extract patterns.  Tighten common constraint.
36502         (extv): Delete expander.
36503         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
36504         predicates in unamed sign extract patterns.  Tighten common constraint.
36505         (insv): Delete expander.
36506         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
36507         predicates in unamed insert patterns.  Tighten common constraint.
36508         Change uint32_operand predicate to uint6_operand predicate in unamed
36509         DImode pattern to insert constant values of type 1...1xxxx.
36511 2013-01-04  Jan Hubicka  <jh@suse.cz>
36513         PR tree-optimization/55823
36514         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36515         issue.
36517 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36518             Uros Bizjak  <ubizjak@gmail.com>
36520         PR rtl-optimization/55845
36521         * df-problems.c (can_move_insns_across): Stop scanning at
36522         volatile_insn_p source instruction or give up if
36523         across_from .. across_to range contains any volatile_insn_p
36524         instructions.
36526 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36528         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36529         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36530         Declare.
36531         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36532         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36534 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36536         PR fortran/55341
36537         * asan.c (asan_clear_shadow): New function.
36538         (asan_emit_stack_protection): Use it.
36540 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36542         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36543         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36544         with tab instead of space.
36546 2013-01-08  Nick Clifton  <nickc@redhat.com>
36548         * config/rl78/rl78.c (rl78_expand_prologue): Always select
36549         register bank 0 at the start of an interrupt handler.
36550         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36551         MDBH registers.
36553 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36555         * config/aarch64/aarch64-simd.md
36556         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36557         (aarch64_simd_bsl): Likewise.
36558         (aarch64_vcond_internal<mode>): Likewise.
36559         (vcond<mode><mode>): Likewise.
36560         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36561         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36563 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36565         * config/aarch64/aarch64-builtins.c
36566         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36568 2013-01-08  Martin Jambor  <mjambor@suse.cz>
36570         PR debug/55579
36571         * tree-sra.c (analyze_access_subtree): Return true also after
36572         potentially creating a debug-only replacement.
36574 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36576         PR middle-end/55890
36577         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36579         PR tree-optimization/54120
36580         * tree-vrp.c (range_fits_type_p): Don't allow
36581         src_precision < precision from signed vr to unsigned_p
36582         if vr->min or vr->max is negative.
36583         (simplify_float_conversion_using_ranges): Test can_float_p
36584         against CODE_FOR_nothing.
36586 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36587             Richard Biener  <rguenther@suse.de>
36589         PR middle-end/55851
36590         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36591         types instead of just INTEGER_TYPE types.
36593 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
36595         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36596         TF_SIZE): Define.
36598 2013-01-07  Steve Ellcey  <sellcey@mips.com>
36600         PR target/42661
36601         * config/mips/mips.opt: Change mad to mmad to match documentation.
36603 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36605         PR target/55897
36606         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36607         .progmemx.data now.
36609 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36611         PR target/55897
36612         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36613         (avr_addrspace_t): Add .section_name field.
36614         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36615         array size.
36616         (avr_addrspace): Same.  Initialize .section_name.  Remove last
36617         NULL entry.  Put __memx into .progmemx.data.
36618         (progmem_section_prefix): Remove.
36619         (avr_asm_init_sections): No need to initialize progmem_section.
36620         (avr_asm_named_section): Use avr_addrspace[].section_name to get
36621         section name prefix.
36622         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
36623         retrieve the progmem section.
36624         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36625         boundary to run over avr_addrspace[].
36626         (avr_register_target_pragmas): Ditto.
36628 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
36630         * varasm.c (output_constant_def_contents): For asan_protect_global
36631         protected strings, adjust DECL_ALIGN if needed, before testing for
36632         anchored symbols.
36633         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36634         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
36635         normal decls.
36636         (output_object_block): For asan protected decls, emit asan padding
36637         after their contents.
36638         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36639         (asan_finish_file): Test it here instead.
36641 2013-01-07  Nick Clifton  <nickc@redhat.com>
36642             Matthias Klose  <doko@debian.org>
36643             Doug Kwan  <dougkwan@google.com>
36644             H.J. Lu  <hongjiu.lu@intel.com>
36646         PR driver/55470
36647         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36649         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36651         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36653         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36655         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36657 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36659         PR target/54461
36660         * doc/install.texi (Cross-Compiler-Specific Options): Document
36661         --with-avrlibc.
36663 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
36665         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36666         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36667         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36668         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36669         vqmovun_high_s64): Fix source operand number and update copyright.
36671 2013-01-07  Richard Biener  <rguenther@suse.de>
36673         PR middle-end/55890
36674         * gimple.h (gimple_call_builtin_p): New overload.
36675         * gimple.c (validate_call): New function.
36676         (gimple_call_builtin_p): Likewise.
36677         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36678         Use gimple_call_builtin_p.
36679         (find_func_clobbers): Likewise.
36680         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36681         (strlen_optimize_stmt): Likewise.
36683 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36685         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36686         (vld1q_dup_*): Likewise.
36687         (vld1_*): Likewise.
36688         (vld1q_*): Likewise.
36689         (vld1_lane_*): Likewise.
36690         (vld1q_lane_*): Likewise.
36692 2013-01-07  Richard Biener  <rguenther@suse.de>
36694         * lto-streamer.h (LTO_minor_version): Bump to 2.
36696 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36698         * config/aarch64/aarch64-protos.h
36699         (aarch64_const_double_zero_rtx_p): Rename to...
36700         (aarch64_float_const_zero_rtx_p): ...this.
36701         (aarch64_float_const_representable_p): New.
36702         (aarch64_output_simd_mov_immediate): Likewise.
36703         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36704         move immediate case.
36705         * config/aarch64/aarch64.c
36706         (aarch64_const_double_zero_rtx_p): Rename to...
36707         (aarch64_float_const_zero_rtx_p): ...this.
36708         (aarch64_print_operand): Allow printing of new constants.
36709         (aarch64_valid_floating_const): New.
36710         (aarch64_legitimate_constant_p): Check for valid floating-point
36711         constants.
36712         (aarch64_simd_valid_immediate): Likewise.
36713         (aarch64_vect_float_const_representable_p): New.
36714         (aarch64_float_const_representable_p): Likewise.
36715         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36716         (aarch64_output_simd_mov_immediate): New.
36717         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36718         (*movdf_aarch64): Likewise.
36719         * config/aarch64/constraints.md (Ufc): New.
36720         (Y): call aarch64_float_const_zero_rtx.
36721         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36723 2013-01-07  Richard Biener  <rguenther@suse.de>
36725         PR tree-optimization/55888
36726         PR tree-optimization/55862
36727         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36728         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36729         not if it is contained therein.
36731 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36733         * config/avr/t-avr: Typo.
36735 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36737         PR55243
36738         * config/avr/t-avr: Don't automatically rebuild
36739         $(srcdir)/config/avr/t-multilib
36740         $(srcdir)/config/avr/avr-tables.opt
36741         $(srcdir)/doc/avr-mmcu.texi
36742         (avr-mcus): New phony target to build them on request.
36743         (s-avr-mlib, s-avr-mmcu-texi): Remove.
36744         * avr/avr-mcus.def: Adjust comments.
36746 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
36748         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36750 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36752         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36754 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36756         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36758 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
36760         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36761         to generate profiling.
36762         * config/rs6000/aix64.h (LIB_SPEC): Same.
36764 2013-01-04  Andrew Pinski  <apinski@cavium.com>
36766         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36767         New function.
36768         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36770 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
36772         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36773         unconditionally.
36774         (ix86_expand_move): Ditto.
36775         (ix86_zero_extend_to_Pmode): Ditto.
36776         (ix86_expand_call): Ditto.
36777         (ix86_expand_special_args_builtin): Ditto.
36778         (ix86_expand_builtin): Ditto.
36780 2013-01-04  Richard Biener  <rguenther@suse.de>
36782         PR tree-optimization/55862
36783         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36784         translating them through PHI nodes.
36786 2013-01-04  Martin Jambor  <mjambor@suse.cz>
36788         PR tree-optimization/55755
36789         * tree-sra.c (sra_modify_assign): Do not check that an access has no
36790         children when trying to avoid producing a VIEW_CONVERT_EXPR.
36792 2013-01-04  Marek Polacek  <polacek@redhat.com>
36794         PR middle-end/55859
36795         * opts.c (default_options_optimization): Clarify error message.
36797 2013-01-04  Richard Biener  <rguenther@suse.de>
36799         PR middle-end/55863
36800         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36801         reassociation.
36803 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36805         PR target/53789
36806         * config/pa/pa.md (movsi): Revert previous change.
36807         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36808         references.
36810 2013-01-03  Richard Henderson  <rth@redhat.com>
36812         * config/i386/i386.c (ix86_expand_move): Always assign to op1
36813         after eliminating TLS symbols.
36815 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
36817         PR bootstrap/50167
36818         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36819         * graphite-poly.c (debug_gmp_value): Likewise.
36821 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
36823         PR target/55712
36824         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36825         selected code model, define __code_mode_small__, __code_model_medium__,
36826         __code_model_large__, __code_model_32__ or __code_model_kernel__.
36827         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36828         xchg temporary register with %k.  Declare temporary register as
36829         early clobbered.
36830         [__x86_64__]: For medium and large code models, preserve %rbx register.
36832 2013-01-03  Richard Biener  <rguenther@suse.de>
36834         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36835         (dump_subscript): Adjust.
36836         (finalize_ddr_dependent): Do not dump redundant info.
36837         (analyze_siv_subscript): Adjust.
36838         (subscript_dependence_tester): Likewise.
36839         (compute_affine_dependence): Likewise.
36841 2013-01-03  Richard Biener  <rguenther@suse.de>
36843         Revert
36844         2013-01-03  Richard Biener  <rguenther@suse.de>
36846         PR tree-optimization/55857
36847         * tree-vect-stmts.c (vectorizable_load): Do not setup
36848         re-alignment for invariant loads.
36850         2013-01-02  Richard Biener  <rguenther@suse.de>
36852         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36853         invariant load do not generate a vector load from the scalar location.
36855 2013-01-03  Richard Biener  <rguenther@suse.de>
36857         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36858         for not vectorizing.
36859         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36860         not build INDIRECT_REFs, call get_name once only.
36861         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
36862         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36864 2013-01-03  Richard Biener  <rguenther@suse.de>
36866         PR tree-optimization/55857
36867         * tree-vect-stmts.c (vectorizable_load): Do not setup
36868         re-alignment for invariant loads.
36870 2013-01-03  Richard Biener  <rguenther@suse.de>
36872         PR lto/55848
36873         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36874         prefer a built-in decl.
36876 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36878         * gcc.c (process_command): Update copyright notice dates.
36879         * gcov.c (print_version): Likewise.
36880         * gcov-dump.c (print_version): Likewise.
36882         PR rtl-optimization/55838
36883         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36884         iv0.step, iv1.step and step.
36886 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36887             Marc Glisse  <marc.glisse@inria.fr>
36889         PR tree-optimization/55832
36890         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36891         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36892         integer_{one,zero}_node.
36894 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36896         PR debug/54402
36897         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36898         * var-tracking.c (reverse_op): Don't add reverse ops to
36899         VALUEs that have already
36900         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36902 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
36904         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36906 2013-01-02  Teresa Johnson  <tejohnson@google.com>
36908         * dumpfile.c (dump_loc): Print filename with location.
36909         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36910         new location_t parameter to emit complete unroll message with
36911         new dump framework.
36912         (canonicalize_loop_induction_variables): Compute loops location
36913         and pass to try_unroll_loop_completely.
36914         * loop-unroll.c (report_unroll_peel): New function.
36915         (peel_loops_completely): Use new dump format with location
36916         for main dumpfile message, and invoke report_unroll_peel on success.
36917         (decide_unrolling_and_peeling): Ditto.
36918         (decide_peel_once_rolling): Remove old dumpfile message subsumed
36919         by report_unroll_peel.
36920         (decide_peel_completely): Ditto.
36921         (decide_unroll_constant_iterations): Ditto.
36922         (decide_unroll_runtime_iterations): Ditto.
36923         (decide_peel_simple): Ditto.
36924         (decide_unroll_stupid): Ditto.
36925         * cfgloop.c (get_loop_location): New function.
36926         * cfgloop.h (get_loop_location): Declare.
36928 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36930         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36931         NULL.
36933 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36935         PR middle-end/55198
36936         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36937         BLKmode objects when EXPAND_MEMORY is specified.
36939 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36941         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36942         in loop predicate.
36943         (fold_builtin_cpu): Do not share cpu model decls across statements.
36945 2013-01-02  Jason Merrill  <jason@redhat.com>
36947         PR c++/55804
36948         * tree.c (build_array_type_1): Revert earlier change.
36950 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
36952         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36953         "cortex-a57".
36954         * config/aarch64/aarch64-tune.md: Re-generate.
36956 2013-01-02  Richard Biener  <rguenther@suse.de>
36958         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36959         invariant load do not generate a vector load from the scalar location.
36961 2013-01-02  Richard Biener  <rguenther@suse.de>
36963         PR bootstrap/55784
36964         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36965         * configure: Regenerate.
36967 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36969         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36970         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36971         (expand_builtin_int_roundingfn_2): Keep the original target around
36972         for the fallback case.
36974 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36976         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36977         to be clear for sign changes.
36979 2013-01-01  Jan Hubicka  <jh@suse.cz>
36981         * ipa-inline-analysis.c: Fix formatting.
36983 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
36985         PR tree-optimization/55831
36986         * tree-vect-loop.c (get_initial_def_for_induction): Use
36987         gsi_after_labels instead of gsi_start_bb.
36989 Copyright (C) 2013 Free Software Foundation, Inc.
36991 Copying and distribution of this file, with or without modification,
36992 are permitted in any medium without royalty provided the copyright
36993 notice and this notice are preserved.