2013-12-06 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobb763531126be0c20bb5cb569eb80e43eb73371aa
1 2013-12-06  Richard Biener  <rguenther@suse.de>
3         PR tree-optimization/59058
4         * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1
5         member.
6         (LOOP_VINFO_NITERSM1): New macro.
7         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
8         the vector loop entry test in terms of scalar latch executions.
9         (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
10         * tree-vect-loop.c (vect_get_loop_niters): Also return the
11         number of latch executions.
12         (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
13         (vect_analyze_loop_form): Likewise.
14         (vect_generate_tmps_on_preheader): Compute the number of
15         vectorized iterations differently.
17 2013-12-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19         * config/score/score.c (score_force_temporary): Delete function.
20         (score_split_symbol): Ditto.
21         * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
22         parentheses to silence ambiguity warning and reindent.
24 2013-12-05  Marek Polacek  <polacek@redhat.com>
26         * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
28 2013-12-05  H.J. Lu  <hongjiu.lu@intel.com>
30         * config.gcc: Support --with-cpu=ia.
32         * config/i386/i386.c (cpu_names): Add "ia".
33         (processor_alias_table): Likewise.
34         (ix86_option_override_internal): Disallow -march=ia.
35         * config/i386/i386.h (target_cpu_default): Add
36         TARGET_CPU_DEFAULT_ia.
38         * doc/invoke.texi: Document -mtune=ia.
40 2013-12-05  Vladimir Makarov  <vmakarov@redhat.com>
42         PR rtl-optimization/59317
43         * lra-constraints.c (in_class_p): Don't ignore insn with constant
44         as a source.
46 2013-12-05  Martin Jambor  <mjambor@suse.cz>
48         PR ipa/58253
49         * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
50         non-BLKmode in their naturally aligned type.
52 2013-12-05  Marek Polacek  <polacek@redhat.com>
54         PR sanitizer/59333
55         PR sanitizer/59397
56         * ubsan.c: Include rtl.h and expr.h.
57         (ubsan_encode_value): Add new parameter.  If expanding, assign
58         a stack slot for DECL_RTL of the temporary and call expand_assignment.
59         Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
60         (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
61         * ubsan.h (ubsan_encode_value): Adjust declaration.
62         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
63         ubsan_build_overflow_builtin above expand_normal call.  Surround this call
64         with push_temp_slots and pop_temp_slots.
65         (ubsan_expand_si_overflow_neg_check): Likewise.
66         (ubsan_expand_si_overflow_mul_check): Likewise.
68 2013-12-05  Yufeng Zhang  <yufeng.zhang@arm.com>
70         * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
71         the get_alternative_base call with flag_expensive_optimizations.
72         (alloc_cand_and_find_basis): Likewise.
74 2013-12-05  Tejas Belagod  <tejas.belagod@arm.com>
76         * rtlanal.c (set_noop_p): Return nonzero in case of redundant vec_select
77         for overlapping register lanes.
79 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
81         * config/i386/i386.c (ix86_expand_builtin): Generate
82         reg for readflags built-in when optimizing.
83         * config/i386/i386.md (*pushfl<mode>): Rename to ...
84         (pushfl<mode>2): This. Fix iterator.
85         (*popfl<mode>): Rename to ...
86         (*popfl<mode>1): This. Fix iterator.
88 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
90         * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
91         (IX86_BUILTIN_WRITE_FLAGS): Ditto.
92         (ix86_init_mmx_sse_builtins): Define
93         __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
94         __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
95         (ix86_expand_builtin): Expand them.
96         * config/i386/ia32intrin.h (__readeflags): New.
97         (__writeeflags): Ditto.
98         * gcc/config/i386/i386.md (*pushfl<mode>): Ditto.
99         (*popfl<mode>1): Ditto.
101 2013-12-05  Richard Biener  <rguenther@suse.de>
103         PR tree-optimization/59374
104         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
105         Commonize known and unknown dependence case fixing the allowed
106         read-write dependence case and dropping code that should not
107         matter.
109 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
111         * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
112         generation of predicated version.
113         (epilogue_deallocate_stack): Ditto.
114         (prologue_allocate_stack_pr): Add explicit predicated version.
115         (epilogue_deallocate_stack_pr): Ditto.
116         * config/ia64/ia64.c (ia64_single_set): Use explicit version.
118 2013-12-05  Alan Modra  <amodra@gmail.com>
120         * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
121         build != host.
122         <recursive call for build != host>: Clear GMPINC.  Don't bother
123         saving CFLAGS.
125 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
126             Marek Polacek  <polacek@redhat.com>
128         * opts.c (common_handle_option): Handle
129         -fsanitize=signed-integer-overflow.
130         * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
131         negv<mode>3, negv<mode>3_1): Define expands.
132         (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define
133         insns.
134         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
135         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
136         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
137         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
138         * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
139         PROB_ALWAYS): Define.
140         (ubsan_build_overflow_builtin): Declare.
141         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
142         internal functions.
143         * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
144         (ubsan_build_overflow_builtin): New function.
145         (instrument_si_overflow): Likewise.
146         (ubsan_pass): Add signed integer overflow checking.
147         (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
148         * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
149         * internal-fn.c: Include ubsan.h and target.h.
150         (ubsan_expand_si_overflow_addsub_check): New function.
151         (ubsan_expand_si_overflow_neg_check): Likewise.
152         (ubsan_expand_si_overflow_mul_check): Likewise.
153         (expand_UBSAN_CHECK_ADD): Likewise.
154         (expand_UBSAN_CHECK_SUB): Likewise.
155         (expand_UBSAN_CHECK_MUL): Likewise.
156         * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
157         (-A) + B -> B - A when doing the signed integer overflow checking.
158         * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
159         Define.
160         * tree-vrp.c (extract_range_basic): Handle internal calls.
161         * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
162         optabs.
163         * asan.c: Include predict.h.
164         (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
165         * predict.c: Move the PROB_* macros...
166         * predict.h (enum br_predictor): ...here.
167         (PROB_LIKELY, PROB_UNLIKELY): Define.
168         * trans-mem.c: Include predict.h.
169         (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
170         PROB_LIKELY, PROB_UNLIKELY): Don't define here.
172 2013-12-04  Jeff Law  <law@redhat.com>
174         * common.opt: Split up -fisolate-erroneous-paths into
175         -fisolate-erroneous-paths-dereference and
176         -fisolate-erroneous-paths-attribute.
177         * invoke.texi: Corresponding changes.
178         * gimple.c (infer_nonnull_range):  Add and use new arguments
179         to control what kind of statements can be used to infer a
180         non-null range.
181         * gimple.h (infer_nonnull_range): Update prototype.
182         * tree-vrp.c (infer_value_range): Corresponding changes.
183         * opts.c (default_options_table): Update due to option split.
184         * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
185         (find_implicit_erroneous_behaviour): Pass additional arguments
186         to infer_nonnull_range.
187         (find_explicit_erroneous_behaviour): Similarly.
188         (gate_isolate_erroneous_paths): Check both of the new
189         options.
191 2013-12-04  Jeff Law  <law@redhat.com>
193         * expr.c (expand_assignment): Update comments.
195 2013-12-04  Tobias Burnus  <burnus@net-b.de>
197         PR debug/37132
198         * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
199         * tree.def (NAMELIST_DECL): Add.
200         * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
201         * tree.c (initialize_tree_contains_struct): Add asserts for it.
202         * dwarf2out.c (gen_namelist_decl): New function.
203         (gen_decl_die, dwarf2out_decl): Call it.
204         (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
205         * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
206         (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
207         call.
208         * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
210 2013-12-03  Xinliang David Li  <davidxl@google.com>
212         * tree-ssa-structalias.c (constraint_set_union): Change return type
213         from void to bool.
214         (merge_node_constraints): Ditto.
215         (unify_nodes): Update changed set when constraints set changes.
217 2013-12-04  H.J. Lu  <hongjiu.lu@intel.com>
219         * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
220         -fsanitize=address.
221         * configure: Regenerated.
223         * gdbasan.in: New file.
225 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
227         PR rtl-optimization/58726
228         * combine.c (force_to_mode): Fix comment typo.  Don't destructively
229         modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
231 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
232             Uros Bizjak  <ubizjak@gmail.com>
234         PR target/59163
235         * config/i386/i386.c (ix86_legitimate_combined_insn): If for
236         !TARGET_AVX there is misaligned MEM operand with vector mode
237         and get_attr_ssememalign is 0, return false.
238         (ix86_expand_special_args_builtin): Add get_pointer_alignment
239         computed alignment and for non-temporal loads/stores also
240         at least GET_MODE_ALIGNMENT as MEM_ALIGN.
241         * config/i386/sse.md
242         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
243         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
244         <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
245         <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
246         sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
247         sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
248         *vec_interleave_highv2df, *vec_interleave_lowv2df,
249         *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
250         sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
251         sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
252         sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
253         sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
254         sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
255         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
256         * config/i386/i386.md (ssememalign): New define_attr.
258 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
260         PR tree-optimization/59355
261         * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
262         * opts.c (common_handle_option): Fix comment spelling.
264 2013-12-04  Yufeng Zhang  <yufeng.zhang@arm.com>
266         * gimple-ssa-strength-reduction.c: Include tree-affine.h.
267         (name_expansions): New static variable.
268         (alt_base_map): Ditto.
269         (get_alternative_base): New function.
270         (find_basis_for_candidate): For CAND_REF, optionally call
271         find_basis_for_base_expr with the returned value from
272         get_alternative_base.
273         (record_potential_basis): Add new parameter 'base' of type 'tree';
274         add an assertion of non-NULL base; use base to set node->base_expr.
275         (alloc_cand_and_find_basis): Update; call record_potential_basis
276         for CAND_REF with the returned value from get_alternative_base.
277         (replace_refs): Dump details on the replacing.
278         (execute_strength_reduction): Call pointer_map_create for
279         alt_base_map; call free_affine_expand_cache with &name_expansions.
281 2013-12-03  Wei Mi  <wmi@google.com>
283         PR rtl-optimization/59020
284         * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
285         (sched_analyze_insn): Call try_group_insn.
286         (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
287         * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
288         (group_insns_for_macro_fusion): Removed.
289         (sched_init): Remove calling group_insns_for_macro_fusion.
291 2013-12-03  Peter Bergner  <bergner@vnet.ibm.com>
293         * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
294         typo in macro name.
295         (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
297 2013-12-03  Vladimir Makarov  <vmakarov@redhat.com>
299         * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
300         LR_REGNUM.
301         (aarch64_can_eliminate): Don't check elimination source when
302         frame_pointer_required is false.
304 2013-12-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
306         * config/avr/avr.c (avr_option_override): Warn if asked to generate
307         position independent code.
308         * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
310 2013-12-03   H.J. Lu  <hongjiu.lu@intel.com>
312         PR target/59363
313         * config/i386/i386.c (emit_memset): Adjust destination address
314         after gen_strset.
315         (expand_setmem_epilogue): Likewise.
317 2013-12-03  Marek Polacek  <polacek@redhat.com>
319         PR middle-end/56344
320         * calls.c (expand_call): Disallow passing huge arguments by value.
322 2013-12-03  Jakub Jelinek  <jakub@redhat.com>
324         PR tree-optimization/59362
325         * tree-object-size.c (object_sizes): Change into array of
326         vec<unsigned HOST_WIDE_INT>.
327         (compute_builtin_object_size): Check computed bitmap for
328         non-NULL instead of object_sizes.  Call safe_grow on object_sizes
329         vector if new SSA_NAMEs appeared.
330         (init_object_sizes): Check computed bitmap for non-NULL.
331         Call safe_grow on object_sizes elements instead of initializing
332         it with XNEWVEC.
333         (fini_object_sizes): Call release on object_sizes elements, don't
334         set it to NULL.
336         PR middle-end/59011
337         * gimplify.c (nonlocal_vla_vars): New variable.
338         (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
339         nonlocal_vla_vars chain.
340         (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
341         if outer_bind has DECL_INITIAL (current_function_decl) block.
343         PR target/58864
344         * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
345         New functions.
346         * expr.h (struct saved_pending_stack_adjust): New type.
347         (save_pending_stack_adjust, restore_pending_stack_adjust): New
348         prototypes.
349         * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
350         and get_last_insn before do_pending_stack_adjust, call
351         restore_pending_stack_adjust after delete_insns_since.
352         * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
353         before calling emit_conditional_move.
354         * expmed.c (expand_sdiv_pow2): Likewise.
355         * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
357 2013-12-02  Jeff Law  <law@redhat.com>
359         PR tree-optimization/59322
360         * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
361         Remove code which copied jump threading paths.
363 2013-12-02  Sriraman Tallam  <tmsriram@google.com>
365         PR target/58944
366         * config/i386/i386.opt (ix86_arch_string): Mark this variable
367         for saving in cl_target_option.
368         (ix86_tune_string): Ditto.
369         (ix86_cmodel): Ditto.
370         (ix86_abi): Ditto.
371         (ix86_asm_dialect): Ditto.
372         (ix86_branch_cost): Ditto.
373         (ix86_dump_tunes): Ditto.
374         (ix86_force_align_arg_pointer): Ditto.
375         (ix86_force_drap): Ditto.
376         (ix86_incoming_stack_boundary_arg): Ditto.
377         (ix86_pmode): Ditto.
378         (ix86_preferred_stack_boundary_arg): Ditto.
379         (ix86_recip_name): Ditto.
380         (ix86_regparm): Ditto.
381         (ix86_section_threshold): Ditto.
382         (ix86_sse2avx): Ditto.
383         (ix86_stack_protector_guard): Ditto.
384         (ix86_stringop_alg): Ditto.
385         (ix86_tls_dialect): Ditto.
386         (ix86_tune_ctrl_string): Ditto.
387         (ix86_tune_memcpy_strategy): Ditto.
388         (ix86_tune_memset_strategy): Ditto.
389         (ix86_tune_no_default): Ditto.
390         (ix86_veclibabi_type): Ditto.
391         * config/i386/i386.c (function_specific_save): Save the above
392         variables in gcc_options to cl_target_option.
393         (function_specific_restore): Do the reverse done in
394         function_specific_save.
395         (ix86_valid_target_attribute_tree): Change ix86_arch_string
396         and ix86_tune_string to use the opts structure.
397         (ix86_option_override_internal):Change
398         ix86_incoming_stack_boundary_arg to
399         opts->x_ix86_incoming_stack_boundary_arg
401 2013-12-02  Joern Rennecke  <joern.rennecke@embecosm.com>
403         * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
404         in #ifndef IN_LIBGCC2 / #endif.
406 2013-12-02  Jakub Jelinek  <jakub@redhat.com>
408         PR tree-optimization/59358
409         * tree-vrp.c (union_ranges): To check for the partially overlapping
410         ranges or adjacent ranges, also compare *vr0max with vr1max.
412 2013-12-02  Sterling Augustine Â <saugustine@google.com>
414         * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
415         when there isn't a skeleton die.
417 2013-12-02  Marek Polacek  <polacek@redhat.com>
419         PR sanitizer/59353
420         * doc/invoke.texi: Document -fsanitize=return.
422 2013-12-02  Tobias Burnus  <burnus@net-b.de>
423             Manuel López-Ibáñez  <manu@gcc.gnu.org>
425         PR middle-end/59257
426         * doc/invoke.texi: Add missing @opindex.
427         (-fsanitize=): Use @gcctabopt instead of @itemize.
429 2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
431         Fix C++0x memory model for unaligned fields in packed, aligned(4)
432         structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
433         targets like arm-none-eabi.
434         * expr.c (expand_assignment): Handle normal fields like bit regions.
436 2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
438         PR target/58115
439         * function.c (invoke_set_current_function_hook): Call
440         targetm.set_current_function after setting this_fn_optabs.
442 2013-12-02  Richard Biener  <rguenther@suse.de>
444         PR tree-optimization/59139
445         * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
446         code in get_val_for.
447         (get_val_for): Use gcc_checking_asserts.
449 2013-12-02  Richard Biener  <rguenther@suse.de>
451         PR middle-end/59199
452         * tree-ssa-operands.c (opf_implicit): Remove.
453         (opf_address_taken): New flag.
454         (get_expr_operands): Remove early out, pass down opf_address_taken for
455         ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
456         (get_indirect_ref_operands): Rename to ...
457         (get_mem_ref_operands): ... this.
458         (get_asm_expr_operands): Rename to ...
459         (get_asm_stmt_operands): ... this.
461 2013-12-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
463         * ipa-inline.c (check_callers): Add missed pointer de-reference.
465 2013-12-02  Eric Botcazou  <ebotcazou@adacore.com>
467         PR tree-optimization/59356
468         * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
469         offset computation using the precision of the index type.
471 2013-12-02  Yvan Roux  <yvan.roux@linaro.org>
473         PR target/58785
474         * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
475         when rclass is GENERAL_REGS.
477 2013-12-02 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
479         * loop-unroll.c (decide_unroll_constant_iterations): Check macro
480         TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
482 2013-12-01  Eric Botcazou  <ebotcazou@adacore.com>
484         * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
485         identifier node.
487 2013-12-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
489         * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
491 2013-11-30  Paulo Matos  <pmatos@broadcom.com>
492             Eric Botcazou  <ebotcazou@adacore.com>
494         * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
495         as applied to nonzero_sign_valid when last_set_mode has less precision
496         than mode.
498 2013-11-30  Tobias Burnus  <burnus@net-b.de>
500         PR sanitizer/59275
501         * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
502         environment variable and link to a list with flags.
503         (-fsanitize=thread): Ditto and update link.
505 2013-11-29  Vladimir Makarov  <vmakarov@redhat.com>
507         PR rtl-optimization/59340
508         * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
510         Revert
511         2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
513         * lra.c (lra): Set lra_in_progress before check_rtl call.
514         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
515         adding clobber regs when LRA is running.
517 2013-11-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
519         PR target/59289
520         * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
522 2013-11-29  Richard Biener  <rguenther@suse.de>
524         PR middle-end/59208
525         * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
526         free_stmt_operands, update_stmt_operands): Add struct function
527         argument.
528         * tree-ssa-operands.c: Remove uses of cfun, propagate struct
529         function argument from fini_ssa_operands, verify_ssa_operands,
530         free_stmt_operands and update_stmt_operands everywhere.
531         * tree-ssanames.h (release_ssa_name_fn): New.
532         (release_ssa_name): Inline wrapper around release_ssa_name_fn.
533         * tree-ssanames.c (release_ssa_name): Rename to ...
534         (release_ssa_name_fn): ... this and add struct function argument.
535         * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
536         (update_stmt_fn): New function.
537         * tree-cfg.c (move_block_to_fn): Adjust.
538         * tree-if-conv.c (free_bb_predicate): Likewise.
539         * tree-ssa.c (verify_ssa): Likewise.
540         (delete_tree_ssa): Likewise.
541         * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
542         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
543         update_stmt_fn instead of update_stmt.
545 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
547         * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
548         for LRA.
550 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
552         * config/arm/arm.md (store_minmaxsi): Use only when
553         optimize_function_for_size_p.
555 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
556             Yury Gribov  <y.gribov@samsung.com>
558         PR sanitizer/59063
559         * config/gnu-user.h: Removed old code for setting up sanitizer libs.
560         * gcc.c: Using libsanitizer spec instead of explicit libs.
562 2013-11-29  Ilya Enkovich  <ilya.enkovich@intel.com>
564         Reverted:
565         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
566         * cgraph.h (varpool_node): Add need_bounds_init field.
567         * lto-cgraph.c (lto_output_varpool_node): Output
568         need_bounds_init value.
569         (input_varpool_node): Read need_bounds_init value.
570         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
572         Reverted:
573         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
574         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
575         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
576         (gen_type_die_with_usage): Skip pointer bounds.
577         (dwarf2out_global_decl): Likewise.
579         Reverted:
580         2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
581         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
582         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
583         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
584         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
585         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
586         (gimple_call_with_bounds_p): New.
587         (gimple_call_set_with_bounds): New.
588         (gimple_call_num_nobnd_args): Remove.
589         (gimple_call_nobnd_arg): Remove.
590         * tree.h (CALL_WITH_BOUNDS_P): New.
591         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
593         Reverted:
594         2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
595         * common.opt (fcheck-pointer-bounds): Move to ...
596         * c-family/c.opt: ... here.
597         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
598         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
599         * langhooks.h (lang_hooks): Remove chkp_supported field.
600         * toplev.c (process_options): Remove chkp_supported check.
602         Reverted:
603         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
604         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
605         * tree.h (POINTER_BOUNDS_P): New.
606         (BOUNDED_TYPE_P): New.
607         (BOUNDED_P): New.
608         (pointer_bounds_type_node): New.
609         * tree.c (build_common_tree_nodes): Initialize
610         pointer_bounds_type_node.
611         * gimple.h (gimple_call_get_nobnd_arg_index): New.
612         (gimple_call_num_nobnd_args): New.
613         (gimple_call_nobnd_arg): New.
614         (gimple_return_retbnd): New.
615         (gimple_return_set_retbnd): New
616         * gimple.c (gimple_build_return): Increase number of ops
617         for return statement.
618         (gimple_call_get_nobnd_arg_index): New.
619         * gimple-pretty-print.c (dump_gimple_return): Print second op.
621         Reverted:
622         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
623         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
624         with "chkp ctor" and "bnd_legacy" attributes.
625         * gimplify.c (gimplify_init_constructor): Avoid infinite
626         loop during gimplification of bounds initializer.
628         Reverted:
629         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
630         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
631         (handle_bnd_legacy): New.
632         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
633         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
634         attributes.
636         Reverted:
637         2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
638         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
639         (BT_FN_PTR_CONST_PTR): New.
640         (BT_FN_CONST_PTR_CONST_PTR): New.
641         (BT_FN_PTR_CONST_PTR_SIZE): New.
642         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
643         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
644         (BT_FN_VOID_CONST_PTR_SIZE): New.
645         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
646         * chkp-builtins.def: New.
647         * builtins.def: include chkp-builtins.def.
648         (DEF_CHKP_BUILTIN): New.
649         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
650         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
651         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
652         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
653         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
654         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
655         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
656         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
657         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
658         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
659         * common.opt (fcheck-pointer-bounds): New.
660         * toplev.c (process_options): Check Pointer Bounds Checker is
661         supported.
662         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
664         Reverted:
665         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
666         * target.def (builtin_chkp_function): New.
667         (chkp_bound_type): New.
668         (chkp_bound_mode): New.
669         (fn_abi_va_list_bounds_size): New.
670         (load_bounds_for_arg): New.
671         (store_bounds_for_arg): New.
672         * targhooks.h (default_load_bounds_for_arg): New.
673         (default_store_bounds_for_arg): New.
674         (default_fn_abi_va_list_bounds_size): New.
675         (default_chkp_bound_type): New.
676         (default_chkp_bound_mode): New.
677         (default_builtin_chkp_function): New.
678         * targhooks.c (default_load_bounds_for_arg): New.
679         (default_store_bounds_for_arg): New.
680         (default_fn_abi_va_list_bounds_size): New.
681         (default_chkp_bound_type): New.
682         (default_chkp_bound_mode); New.
683         (default_builtin_chkp_function): New.
684         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
685         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
686         (TARGET_STORE_BOUNDS_FOR_ARG): New.
687         (TARGET_BUILTIN_CHKP_FUNCTION): New.
688         (TARGET_CHKP_BOUND_TYPE): New.
689         (TARGET_CHKP_BOUND_MODE): New.
690         * doc/tm.texi: Regenerated.
691         * langhooks.h (lang_hooks): Add chkp_supported field.
692         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
693         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
695         Reverted:
696         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
697         * config/i386/constraints.md (B): New.
698         (Ti): New.
699         (Tb): New.
700         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
701         * config/i386/i386-modes.def (BND32): New.
702         (BND64): New.
703         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
704         * config/i386/i386.c (isa_opts): Add mmpx.
705         (regclass_map): Add bound registers.
706         (dbx_register_map): Likewise.
707         (dbx64_register_map): Likewise.
708         (svr4_dbx_register_map): Likewise.
709         (PTA_MPX): New.
710         (ix86_option_override_internal): Support MPX ISA.
711         (ix86_conditional_register_usage): Support bound registers.
712         (print_reg): Likewise.
713         (ix86_code_end): Add MPX bnd prefix.
714         (output_set_got): Likewise.
715         (ix86_output_call_insn): Likewise.
716         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
717         (ix86_print_operand_punct_valid_p): Likewise.
718         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
719         UNSPEC_BNDMK_ADDR.
720         (ix86_class_likely_spilled_p): Add bound regs support.
721         (ix86_hard_regno_mode_ok): Likewise.
722         (x86_order_regs_for_local_alloc): Likewise.
723         (ix86_bnd_prefixed_insn_p): New.
724         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
725         (FIXED_REGISTERS): Add bound registers.
726         (CALL_USED_REGISTERS): Likewise.
727         (REG_ALLOC_ORDER): Likewise.
728         (HARD_REGNO_NREGS): Likewise.
729         (TARGET_MPX): New.
730         (VALID_BND_REG_MODE): New.
731         (FIRST_BND_REG): New.
732         (LAST_BND_REG): New.
733         (reg_class): Add BND_REGS.
734         (REG_CLASS_NAMES): Likewise.
735         (REG_CLASS_CONTENTS): Likewise.
736         (BND_REGNO_P): New.
737         (ANY_BND_REG_P): New.
738         (BNDmode): New.
739         (HI_REGISTER_NAMES): Add bound registers.
740         * config/i386/i386.md (UNSPEC_BNDMK): New.
741         (UNSPEC_BNDMK_ADDR): New.
742         (UNSPEC_BNDSTX): New.
743         (UNSPEC_BNDLDX): New.
744         (UNSPEC_BNDLDX_ADDR): New.
745         (UNSPEC_BNDCL): New.
746         (UNSPEC_BNDCU): New.
747         (UNSPEC_BNDCN): New.
748         (UNSPEC_MPX_FENCE): New.
749         (BND0_REG): New.
750         (BND1_REG): New.
751         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
752         (length_immediate): Likewise.
753         (prefix_0f): Likewise.
754         (memory): Likewise.
755         (prefix_rep): Check for bnd prefix.
756         (length_nobnd): New.
757         (length): Use length_nobnd if specified.
758         (BND): New.
759         (bnd_ptr): New.
760         (BNDCHECK): New.
761         (bndcheck): New.
762         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
763         (*jcc_2): Likewise.
764         (jump): Likewise.
765         (simple_return_internal): Likewise.
766         (simple_return_pop_internal): Likewise.
767         (*indirect_jump): Add MPX bnd prefix.
768         (*tablejump_1): Likewise.
769         (simple_return_internal_long): Likewise.
770         (simple_return_indirect_internal): Likewise.
771         (<mode>_mk): New.
772         (*<mode>_mk): New.
773         (mov<mode>): New.
774         (*mov<mode>_internal_mpx): New.
775         (<mode>_<bndcheck>): New.
776         (*<mode>_<bndcheck>): New.
777         (<mode>_ldx): New.
778         (*<mode>_ldx): New.
779         (<mode>_stx): New.
780         (*<mode>_stx): New.
781         * config/i386/predicates.md (lea_address_operand): Rename to...
782         (address_no_seg_operand): ... this.
783         (address_mpx_no_base_operand): New.
784         (address_mpx_no_index_operand): New.
785         (bnd_mem_operator): New.
786         * config/i386/i386.opt (mmpx): New.
787         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
788         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
790         Reverted:
791         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
792         * mode-classes.def (MODE_POINTER_BOUNDS): New.
793         * tree.def (POINTER_BOUNDS_TYPE): New.
794         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
795         (POINTER_BOUNDS_MODE): New.
796         (make_pointer_bounds_mode): New.
797         * machmode.h (POINTER_BOUNDS_MODE_P): New.
798         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
799         (layout_type): Support POINTER_BOUNDS_TYPE.
800         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
801         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
802         (type_contains_placeholder_1): Likewise.
803         * tree.h (POINTER_BOUNDS_TYPE_P): New.
804         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
805         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
807 2013-11-29  Richard Biener  <rguenther@suse.de>
809         PR middle-end/59338
810         * tree-cfg.c (verify_expr): Restrict bounds verification of
811         BIT_FIELD_REF arguments to non-aggregate typed base objects.
813 2013-11-29  Richard Biener  <rguenther@suse.de>
815         PR tree-optimization/59334
816         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
817         in previous commit.
819 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
820             Richard Biener  <rguenther@suse.de>
822         PR lto/59326
823         * omp-low.c (simd_clone_create): Return NULL if for definition
824         !cgraph_function_with_gimple_body_p (old_node).  Call cgraph_get_body
825         before calling cgraph_function_versioning.
826         (expand_simd_clones): Look for "omp declare simd" attribute first.
827         Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
828         Punt if node->global.inlined_to.
829         (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
830         Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
831         * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
833 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
835         PR lto/59326
836         * tree-core.h (enum omp_clause_schedule_kind): Add
837         OMP_CLAUSE_SCHEDULE_LAST.
838         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
839         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
840         (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
841         (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
842         * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
843         (DFS_write_tree_body): Handle OMP_CLAUSE.
844         * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
845         (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
846         (write_ts_omp_clause_tree_pointers): New function.
847         (streamer_write_tree_body): Call it for OMP_CLAUSE.
848         (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
849         * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
850         (unpack_value_fields): Call it for OMP_CLAUSE.
851         (streamer_alloc_tree): Handle OMP_CLAUSE.
852         (lto_input_ts_omp_clause_tree_pointers): New function.
853         (streamer_read_tree_body): Call it for OMP_CLAUSE.
855 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
857         * doc/implement-c.texi: Document C11 implementation-defined
858         behavior.  Refer to -ffp-contract=fast for contraction behavior.
859         * doc/invoke.texi (-std=c99, std=c11): Update description of
860         completeness.
861         (-std=gnu99): Don't mention as future default.
862         (-std=gnu11): Mention as intended future default.
863         * doc/standards.texi: Update descriptions of C99 and C11 support.
864         Limit statement about C99 facilities for freestanding
865         implementations to some platforms only.
867 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
869         PR middle-end/59327
870         * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
872 2013-11-28  Vladimir Makarov  <vmakarov@redhat.com>
874         PR target/57293
875         * ira.h (ira_setup_eliminable_regset): Remove parameter.
876         * ira.c (ira_setup_eliminable_regset): Ditto.  Add
877         SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
878         Don't call lra_init_elimination.
879         (ira): Call ira_setup_eliminable_regset without arguments.
880         * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
881         from ira_setup_eliminable_regset call.
882         * gcse.c (calculate_bb_reg_pressure): Ditto.
883         * haifa-sched.c (sched_init): Ditto.
884         * lra.h (lra_init_elimination): Remove the prototype.
885         * lra-int.h (lra_insn_recog_data): New member sp_offset.  Move
886         used_insn_alternative upper.
887         (lra_eliminate_regs_1): Add one more parameter.
888         (lra-eliminate): Ditto.
889         * lra.c (lra_invalidate_insn_data): Set sp_offset.
890         (setup_sp_offset): New.
891         (lra_process_new_insns): Call setup_sp_offset.
892         (lra): Add argument to lra_eliminate calls.
893         * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
894         (get_equiv_with_elimination): New.
895         (process_addr_reg): Call get_equiv_with_elimination instead of
896         get_equiv_substitution.
897         (equiv_address_substitution): Ditto.
898         (loc_equivalence_change_p): Ditto.
899         (loc_equivalence_callback, lra_constraints): Ditto.
900         (curr_insn_transform): Ditto.  Print the sp offset
901         (process_alt_operands): Prevent stack pointer reloads.
902         (lra_constraints): Remove one argument from lra_eliminate call.
903         Move it up.  Mark used hard regs bfore it.  Use
904         get_equiv_with_elimination instead of get_equiv_substitution.
905         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
906         assert for param values combination.  Use sp offset.  Add argument
907         to lra_eliminate_regs_1 calls.
908         (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
909         (curr_sp_change): New static var.
910         (mark_not_eliminable): Add parameter.  Update curr_sp_change.
911         Don't prevent elimination to sp if we can calculate its change.
912         Pass the argument to mark_not_eliminable calls.
913         (eliminate_regs_in_insn): Add a parameter.  Use sp offset.  Add
914         argument to lra_eliminate_regs_1 call.
915         (update_reg_eliminate): Move calculation of hard regs for spill
916         lower.  Switch off lra_in_progress temporarily to generate regs
917         involved into elimination.
918         (lra_init_elimination): Rename to init_elimination.  Make it
919         static.  Set up insn sp offset, check the offsets at the end of BBs.
920         (process_insn_for_elimination): Add parameter.  Pass its value to
921         eliminate_regs_in_insn.
922         (lra_eliminate): : Add parameter.  Pass its value to
923         process_insn_for_elimination.  Add assert for param values
924         combination.  Call init_elimination.  Don't update offsets in
925         equivalence substitutions.
926         * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
927         for created stack slot.
928         (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
929         onto stack slot.
931 2013-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
933         * config/arm/iterators.md (vrint_conds): New int attribute.
934         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
935         (smax<mode>3): Likewise.
936         (smin<mode>3): Likewise.
938 2013-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
940         * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
941         * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
942         * tree-ssanames.h (set_range_info): Add range_type argument.
943         (duplicate_ssa_name_range_info): Likewise.
944         * tree-ssanames.c (set_range_info): Take the range type as argument
945         and store it in SSA_NAME_ANTI_RANGE_P.
946         (duplicate_ssa_name_range_info): Likewise.
947         (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
948         (set_nonzero_bits): Update call to set_range_info.
949         (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
950         * tree-ssa-copy.c (fini_copy_prop): Likewise.
951         * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
952         (vrp_finalize): Likewise, passing anti-ranges directly.
954 2013-11-28  Richard Biener  <rguenther@suse.de>
956         PR tree-optimization/59330
957         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
958         and fix delayed marking of free calls not necessary.
960 2013-11-28  Andrew MacLeod  <amacleod@redhat.com>
962         * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
963         is_gimple_reg_type.
964         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
966 2013-11-28  Terry Guo  <terry.guo@arm.com>
968         * config/arm/arm.c (v7m_extra_costs): New table.
969         (arm_v7m_tune): Use it.
971 2013-11-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
973         * config/sol2.h (TIME_LIBRARY): Define.
975 2013-11-28  Richard Biener  <rguenther@suse.de>
977         PR lto/59323
978         * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
979         CONST_DECLs in function context are not indexable.
981 2013-11-28  Chung-Ju Wu  <jasonwucj@gmail.com>
983         * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
984         not optimized for size.
986 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
988         * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
989         fields.
990         (expand_stack_vars): For -fsanitize=address, use (and set initially)
991         data->asan_base as base for vars and update asan_alignb.
992         (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
993         Pass them to asan_emit_stack_protection.
994         * asan.c (asan_detect_stack_use_after_return): New variable.
995         (asan_emit_stack_protection): Add pbase and alignb arguments.
996         Implement use after return sanitization.
997         * asan.h (asan_emit_stack_protection): Adjust prototype.
998         (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
1000 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
1002         * common.opt: Introduced a new option -fsimd-cost-model.
1003         * doc/invoke.texi: Introduced a new openmp-simd warning and
1004         a new -fsimd-cost-model option.
1005         * tree-vectorizer.h (unlimited_cost_model): Interface updated
1006         to rely on the particular loop info.
1007         * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
1008         (vect_peeling_hash_choose_best_peeling): Ditto.
1009         (vect_enhance_data_refs_alignment): Ditto.
1010         * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
1011         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
1012         plus added openmp-simd warining.
1014 2013-11-27   H.J. Lu  <hongjiu.lu@intel.com>
1016         PR rtl-optimization/59311
1017         * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
1018         * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
1020 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1022         * var-tracking.c (track_expr_p): Do not track declarations for parts
1023         of tracked parameters.
1024         (add_stores): Do not track values for tracked parameters passed in
1025         multiple locations.
1026         (vt_get_decl_and_offset): Handle PARALLEL.
1027         (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
1029 2013-11-27  Jeff Law  <law@redhat.com>
1031         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
1032         clobber the loop structure thread_block was unsuccessful.  If
1033         thread_block was unsuccessful, cleanup appropriately.
1035 2013-11-27  Chen Liqin <liqin.gcc@gmail.com>
1037         * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
1038         (score_char_to_class): Likewise.
1040 2013-11-27  Kenneth Zadeck  <zadeck@naturalbridge.com>
1042         * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
1043         the overflow bit set.
1045 2013-11-27  Richard Biener  <rguenther@suse.de>
1047         PR middle-end/58723
1048         * cgraphbuild.c (build_cgraph_edges): Do not build edges
1049         for internal calls.
1050         (rebuild_cgraph_edges): Likewise.
1051         * ipa-inline-analysis.c (estimate_function_body_sizes):
1052         Skip internal calls.
1053         * tree-inline.c (estimate_num_insns): Estimate size of internal
1054         calls as 0.
1055         (gimple_expand_calls_inline): Do not try inline-expanding
1056         internal calls.
1057         * lto-streamer-in.c (input_cfg): Stream loop safelen,
1058         force_vect and simduid.
1059         (input_struct_function_base): Stream has_force_vect_loops
1060         and has_simduid_loops.
1061         (input_function): Adjust.
1062         * lto-streamer-out.c (output_cfg): Stream loop safelen,
1063         force_vect and simduid.
1064         (output_struct_function_base): Stream has_force_vect_loops
1065         and has_simduid_loops.
1067 2013-11-27  Kai Tietz  <ktietz@redhat.com>
1069         * config/i386/winnt.c (i386_pe_section_type_flags): Use const
1070         pointer cast.
1072 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
1074         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
1075         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
1077 2013-11-27  Marek Polacek  <polacek@redhat.com>
1079         PR sanitizer/59306
1080         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
1081         instead of walk_gimple_op.
1082         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
1084 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
1085             Jakub Jelinek  <jakub@redhat.com>
1087         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
1088         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
1089         (struct cgraph_node): Add simdclone and simd_clones fields.
1090         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
1091         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
1092         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1093         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
1094         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1095         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
1096         * doc/tm.texi: Regenerated.
1097         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
1098         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
1099         attribute is present.
1100         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
1101         (simd_clone_vector_of_formal_parm_types): New function.
1102         (simd_clone_struct_alloc, simd_clone_struct_copy,
1103         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
1104         simd_clone_compute_base_data_type, simd_clone_mangle,
1105         simd_clone_create, simd_clone_adjust_return_type,
1106         create_tmp_simd_array, simd_clone_adjust_argument_types,
1107         simd_clone_init_simd_arrays): New functions.
1108         (struct modify_stmt_info): New type.
1109         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
1110         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
1111         functions.
1112         (pass_data_omp_simd_clone): New variable.
1113         (pass_omp_simd_clone): New class.
1114         (make_pass_omp_simd_clone): New function.
1115         * passes.def (pass_omp_simd_clone): New.
1116         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1117         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
1118         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
1119         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
1120         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
1121         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
1122         * tree-vect-data-refs.c: Include cgraph.h.
1123         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
1124         and find_data_references_in_bb, if find_data_references_in_stmt
1125         fails, still allow calls to #pragma omp declare simd functions
1126         in #pragma omp simd loops unless they contain data references among
1127         the call arguments or in lhs.
1128         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1129         calls with no lhs.
1130         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
1131         without lhs.
1132         * tree-vectorizer.h (enum stmt_vec_info_type): Add
1133         call_simd_clone_vec_info_type.
1134         (struct _stmt_vec_info): Add simd_clone_fndecl field.
1135         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
1136         * tree-vect-stmts.c: Include tree-ssa-loop.h,
1137         tree-scalar-evolution.h and cgraph.h.
1138         (vectorizable_call): Handle calls without lhs.  Assert
1139         !stmt_can_throw_internal instead of failing for it.  Don't update
1140         EH stuff.
1141         (struct simd_call_arg_info): New.
1142         (vectorizable_simd_clone_call): New function.
1143         (vect_transform_stmt): Call it.
1144         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
1145         calls without lhs.
1146         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
1147         if cgraph_function_with_gimple_body_p is true.
1149 2013-11-27  Tom de Vries  <tom@codesourcery.com>
1150             Marc Glisse  <marc.glisse@inria.fr>
1152         PR middle-end/59037
1153         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
1154         BIT_FIELD_REF.
1155         * gimple-fold.c (gimple_fold_indirect_ref): Same.
1156         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
1157         out-of-bounds.
1159 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1161         PR middle-end/59138
1162         * expr.c (emit_group_store): Don't write past the end of the structure.
1163         (store_bit_field): Fix formatting.
1165 2013-11-27  Richard Biener  <rguenther@suse.de>
1167         PR tree-optimization/59288
1168         * tree-vect-loop.c (get_initial_def_for_induction): Do not
1169         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
1171 2013-11-27  Marek Polacek  <polacek@redhat.com>
1173         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
1174         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
1175         rather than ADDR_EXPRs.
1177 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1179         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
1181 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
1183         * gengtype.c (struct seen_tag): New.
1184         (already_seen_tag): New.
1185         (mark_tag_as_seen): New.
1186         (walk_subclasses): Support having multiple subclasses using the
1187         same tag by tracking which tags have already been seen, and using
1188         this to avoid adding duplicate cases to the "switch" statement.
1189         The call to already_seen_tag introduces an O(N^2) when running
1190         gengtype on N, the number of tags, due to the repeated linear
1191         search, but currently max(N) is relatively small (the number of
1192         GSS codes, which is 26).
1193         (walk_type): Pass in a seen_tag for use by the walk_subclasses
1194         recursion.
1196         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
1197         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
1198         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
1199         GIMPLE_OMP_RETURN happens to share the data layout of
1200         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
1201         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
1202         underlying GSS value from GSS_OMP_PARALLEL to
1203         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
1204         not directly related; they merely share in-memory layout.
1205         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
1206         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
1208         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
1209         Rename to...
1210         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
1211         ...these.
1212         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
1213         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
1214         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
1215         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
1216         ...these.
1218         * gimple.h (gimple_statement_resx): New subclass of
1219         gimple_statement_eh_ctrl, with the invariant that
1220         stmt->code == GIMPLE_RESX.
1221         (gimple_statement_eh_dispatch): New subclass of
1222         gimple_statement_eh_ctrl, with the invariant that
1223         stmt->code == GIMPLE_EH_DISPATH.
1225         (gimple_statement_omp_parallel): The existing class expressed
1226         a layout (GSS_OMP_PARALLEL), but the codes with that layout
1227         are not all related, so it makes more sense for this class to
1228         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
1229         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
1230         rename the existing gimple_statement_omp_parallel class to...
1231         (gimple_statement_omp_parallel_layout): ...this, expressing
1232         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
1233         (gimple_statement_omp_taskreg): New subclass of
1234         gimple_statement_omp_parallel_layout, expressing the invariant
1235         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
1236         as used by the various gimple_omp_taskreg_ accessors.
1237         (gimple_statement_omp_parallel): Reintroduce this class, this time
1238         as a subclass of gimple_statement_omp_taskreg to express the
1239         invariant stmt->code == GIMPLE_OMP_PARALLEL.
1240         (gimple_statement_omp_target) New class, subclassing
1241         gimple_statement_omp_parallel_layout, to express the invariant
1242         stmt->code == GIMPLE_OMP_TARGET.
1243         (gimple_statement_omp_task): Update to inherit from
1244         gimple_statement_omp_taskreg rather than
1245         gimple_statement_omp_parallel.
1247         (gimple_statement_omp_single): Rename to...
1248         (gimple_statement_omp_single_layout): ...this, expressing the
1249         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
1250         (gimple_statement_omp_single): ...and reintroduce this name as
1251         a subclass of gimple_statement_omp_single_layout, expressing
1252         the invariant that code == GIMPLE_OMP_SINGLE.
1253         (gimple_statement_omp_teams): New class, subclassing
1254         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
1256         (gimple_statement_omp_atomic_store): Rename to...
1257         (gimple_statement_omp_atomic_store_layout): ...this, expressing
1258         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
1259         (gimple_statement_omp_atomic_store): ...and reintroduce this
1260         name as a subclass of gimple_statement_omp_atomic_store_layout
1261         with code == GIMPLE_OMP_ATOMIC_STORE.
1262         (gimple_statement_omp_return): New class, subclassing
1263         gimple_statement_omp_atomic_store_layout for the code
1264         GIMPLE_OMP_RETURN.
1266         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
1267         (is_a_helper <gimple_statement_resx>::test): New.
1268         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
1269         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
1270         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1271         (is_a_helper <gimple_statement_omp_return>::test): New.
1272         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
1273         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
1274         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1275         GIMPLE_OMP_TARGET.
1276         (is_a_helper <gimple_statement_omp_target>::test): New.
1277         (is_a_helper <gimple_statement_omp_single>::test): Only check
1278         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1279         (is_a_helper <gimple_statement_omp_teams>::test): New.
1281         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
1282         (is_a_helper <const gimple_statement_resx>::test): New.
1283         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
1284         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
1285         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1286         (is_a_helper <const gimple_statement_omp_return>::test): New.
1287         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
1288         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
1289         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1290         GIMPLE_OMP_TARGET.
1291         (is_a_helper <const gimple_statement_omp_target>::test): New.
1292         (is_a_helper <const gimple_statement_omp_single>::test): Only
1293         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1294         (is_a_helper <const gimple_statement_omp_teams>::test): New.
1296         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
1297         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
1298         gimple_statement_omp_atomic_store with downcasts to
1299         gimple_statement_omp_return, thus requiring that the code be
1300         GIMPLE_OMP_RETURN.
1301         (gimple_resx_region, gimple_resx_set_region): Replace bogus
1302         downcasts to gimple_statement_eh_ctrl with downcasts to
1303         gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
1304         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
1305         Replace bogus downcasts to const gimple_statement_eh_ctrl with
1306         downcasts to gimple_statement_eh_dispatch, thus requiring that
1307         the code be GIMPLE_EH_DISPATCH.
1308         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
1309         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
1310         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
1311         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
1312         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
1313         gimple_statement_omp_parallel with downcasts to
1314         gimple_statement_omp_taskreg, thus requiring that the code be
1315         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
1316         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
1317         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
1318         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
1319         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
1320         gimple_omp_target_set_data_arg): Replace bogus downcasts to
1321         gimple_statement_omp_parallel with downcasts to
1322         gimple_statement_omp_target, thus requiring that the code be
1323         GIMPLE_OMP_TARGET.
1324         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
1325         gimple_omp_teams_set_clauses): Replace bogus downcasts to
1326         gimple_statement_omp_single with downcasts to
1327         gimple_statement_omp_teams, thus requiring that the code be
1328         GIMPLE_OMP_TEAMS.
1330         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
1331         gimple_statement_resx.
1332         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
1333         gimple_statement_eh_dispatch.
1335 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
1337         PR tree-optimization/59014
1338         * tree-vrp.c (register_edge_assert_for_1): Don't look
1339         through conversions from non-integral types or through
1340         narrowing conversions.
1342         PR target/59229
1343         * config/i386/i386.c (device_alg): Fix up formatting.
1344         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
1345         similarly to count && count < epilogue_size_needed.  Fix up
1346         comment typo.
1347         * builtins.c (determine_block_size): Fix comment typo.
1349         PR sanitizer/59258
1350         * ubsan.c (ubsan_source_location): Don't add any location
1351         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
1352         (ubsan_create_data): Strip block info from LOC.
1354         PR middle-end/59273
1355         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1356         if there isn't optab handler for the corresponding vector PLUS_EXPR.
1358         PR rtl-optimization/59166
1359         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1360         DF_REF_LOC in validate_change call.
1361         (split_live_ranges_for_shrink_wrap): Likewise.
1363         PR middle-end/59150
1364         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1365         of references to constant size types in simd loops, defer emitting
1366         initializer for the new_var, emit it later on only if not using
1367         SIMD arrays for it.
1369         PR middle-end/59152
1370         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1371         for the inner loop if collapse_bb is non-NULL.
1372         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1374 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
1376         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1377         a constant immediate before force_reg.
1379 2013-11-26  Richard Biener  <rguenther@suse.de>
1381         PR tree-optimization/59245
1382         * tree-vrp.c (set_value_range): Assert that we don't have
1383         overflowed constants (but our infinities).
1384         (set_value_range_to_value): Drop all overflow flags.
1385         (vrp_visit_phi_node): Likewise.
1386         (vrp_visit_assignment_or_call): Use set_value_range_to_value
1387         to set a constant range.
1389 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1391         PR target/59290
1392         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1393         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1394         for zero_extend case.
1396 2013-11-26   H.J. Lu  <hongjiu.lu@intel.com>
1398         PR bootstrap/55552
1399         * configure.ac (install_gold_as_default): New.  Set to yes for
1400         --disable-ld or --enable-gold=default.
1401         (gcc_cv_ld_gold_srcdir): New.
1402         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
1403         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1404         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1405         * configure: Regenerated.
1407         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1408         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1409         (original) [collect-ld && -fuse-ld=bfd]: Set to
1410         $ORIGINAL_LD_BFD_FOR_TARGET.
1411         (original) [collect-ld && -fuse-ld=gold]: Set to
1412         $ORIGINAL_LD_GOLD_FOR_TARGET.
1413         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1414         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1416 2013-11-26  Terry Guo  <terry.guo@arm.com>
1418         * config/arm/arm.c (require_pic_register): Handle high pic base
1419         register for thumb-1.
1420         (arm_load_pic_register): Also initialize high pic base register.
1421         * doc/invoke.texi: Update documentation for option -mpic-register.
1423 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
1425         PR target/58314
1426         PR target/50751
1427         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1428         Prefix function names with 'sh_'.  Make them non-static.
1429         * config/sh/sh-protos.h (sh_disp_addr_displacement,
1430         sh_max_mov_insn_displacement): Add declarations.
1431         * config/sh/constraints.md (Q): Reject QImode.
1432         (Sdd): Use match_code "mem".
1433         (Snd): Fix erroneous matching of non-memory operands.
1434         * config/sh/predicates.md (short_displacement_mem_operand): New
1435         predicate.
1436         (general_movsrc_operand): Disallow PC relative QImode loads.
1437         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1438         (*movqi, *movhi): Merge both insns into...
1439         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
1440         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
1441         on the operand types.
1443 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
1445         * config/epiphany/epiphany.c (epiphany_expand_prologue):
1446         Remove unused variable save_config.
1447         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1448         assert.
1450 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1452         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1453         using other intrinsics.
1454         (vtbx3_<psu>8): Likewise.
1456 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1458         * config/aarch64/aarch64-builtins.c
1459         (aarch64_types_bsl_p_qualifiers): New.
1460         (aarch64_types_bsl_s_qualifiers): Likewise.
1461         (aarch64_types_bsl_u_qualifiers): Likewise.
1462         (TYPES_BSL_P): Likewise.
1463         (TYPES_BSL_S): Likewise.
1464         (TYPES_BSL_U): Likewise.
1465         (BUILTIN_VALLDIF): Likewise.
1466         (BUILTIN_VDQQH): Likewise.
1467         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1468         * config/aarch64/aarch64-simd.md
1469         (aarch64_simd_bsl<mode>_internal): Handle more modes.
1470         (aarch64_simd_bsl<mode>): Likewise.
1471         * config/aarch64/arm_neon.h
1472         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1473         * config/aarch64/iterators.md (VALLDIF): New.
1474         (Vbtype): Handle more modes.
1476 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1478         * config/aarch64/aarch64-builtins.c
1479         (aarch64_type_qualifiers): Add qualifier_poly.
1480         (aarch64_build_scalar_type): Also build Poly types.
1481         (aarch64_build_vector_type): Likewise.
1482         (aarch64_build_type): Likewise.
1483         (aarch64_build_signed_type): New.
1484         (aarch64_build_unsigned_type): Likewise.
1485         (aarch64_build_poly_type): Likewise.
1486         (aarch64_init_simd_builtins): Also handle Poly types.
1488 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1490         * config/aarch64/aarch64-builtins.c
1491         (VAR1): Use new naming scheme for aarch64_builtins.
1492         (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
1494 2013-11-26  Richard Biener  <rguenther@suse.de>
1496         PR tree-optimization/59287
1497         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1498         Remove no longer necessary special-casing of union accesses.
1500 2013-11-26  Richard Biener  <rguenther@suse.de>
1502         * pretty-print.c (output_buffer::~output_buffer): Really
1503         free the obstacks.
1505 2013-11-25  Jeff Law  <law@redhat.com>
1507         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1508         invalidate loop information.
1510 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1512         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1514 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1516         PR target/53976
1517         PR target/59243
1518         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1519         comments.
1520         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1521         previously visited basic blocks before recursing instead of only one
1522         basic block.
1524 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1526         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1527         * config/aarch64/aarch64-cores.def (cortex-a53):
1528         Use cortexa53 tuning struct.
1530 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
1532         PR bootstrap/59260
1533         * fold-const.c: Include hash-table.h.
1535 2013-11-25  Marek Polacek  <polacek@redhat.com>
1537         PR sanitizer/59258
1538         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1540 2013-11-25  Richard Biener  <rguenther@suse.de>
1542         * tree-dfa.c: Remove unused convert.h include.
1544 2013-11-25  Terry Guo  <terry.guo@arm.com>
1546         * doc/invoke.texi (-mslow-flash-data): Document new option.
1547         * config/arm/arm.opt (mslow-flash-data): New option.
1548         * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
1549         Declare it.
1550         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1551         are disabled.
1552         (arm_disable_literal_pool): Declare it.
1553         * config/arm/arm.c (arm_disable_literal_pool): New variable.
1554         (arm_option_override): Handle new option.
1555         (thumb2_legitimate_address_p): Don't allow symbol references when
1556         literal pools are disabled.
1557         (arm_max_const_double_inline_cost): New function.
1558         * config/arm/arm.md (types.md): Include it before ...
1559         (use_literal_pool): New attribute.
1560         (enabled): Use new attribute.
1561         (split pattern): Replace symbol+offset with MOVW/MOVT.
1563 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1565         PR bootstrap/59279
1566         Revert previous commit.
1568 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1570         * jump.c (reset_insn_reg_label_operand_notes): New function,
1571         split out from ...
1572         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
1573         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1574         split out from ...
1575         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
1576         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1577         expensive CFG cleanup is called for.
1578         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1579         (cfg_layout_finalize): Delete dead jump tables before re-building
1580         the insns chain.
1581         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1582         basic blocks, not before.
1583         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1585         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1586         insns chain of a scheduling extended basic block, they cannot appear
1587         there in cfglayout mode.
1589 2013-11-24  Tobias Burnus  <burnus@net-b.de>
1591         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1593 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1595         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1596         for little endian.
1598 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1600         * graphite-sese-to-poly.c: Don't include extra "expr.h".
1602 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1604         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1606 2013-11-23  David Edelson  <dje.gcc@gmail.com>
1607             Andrew Dixie  <andrewd@gentrack.com>
1609         PR target/33704
1610         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1611         (COLLECT_SHARED_FINI_FUNC): Define.
1613         * collect2.c (aix_shared_initname): Declare.
1614         (aix_shared_fininame): Declare.
1615         (symkind): Add SYM_AIXI and SYM_AIXD.
1616         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1617         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1618         (aixlazy_flag): Parse.
1619         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1620         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1622 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
1624         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1625         (rs6000_xcoff_select_section): Place decls with stricter alignment
1626         into named sections.
1627         (rs6000_xcoff_unique_section): Allow unique sections for
1628         uninitialized data with strict alignment.
1630 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
1632         PR tree-optimization/59154
1633         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1634         rhs1 of a cast and new_op is invariant, fold_convert it.
1635         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1636         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1638 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
1640         PR target/56788
1641         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1642         Declare as MULTI_ARG_1_SF instruction.
1643         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1644         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1645         from *xop_vmfrcz_<mode>.
1646         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1647         to merge scalar result with __A.
1648         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1649         result with __A.
1651 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1653         * gimplify.h (recalculate_side_effects): Delete.
1654         * gimplify.c (recalculate_side_effects): Make static and add comment.
1656 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1658         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1659         for the destination of a define_peephole2.  Likewise register_operand
1660         rather than arith_reg_operand.  Remove constraints from
1661         define_peephole2s.
1663 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1665         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1666         Delete.
1667         (mn10300_store_multiple_operation_p): Declare.
1668         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1669         Rename to...
1670         (mn10300_store_multiple_operation_p): ...this and remove mode
1671         argument.
1672         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1673         Define.
1675 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1677         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1678         (pop_multiple_operation): Delete.
1679         (analyze_push_multiple_operation): Declare.
1680         (analyze_pop_multiple_operation): Declare.
1681         * config/bfin/bfin.c (push_multiple_operation): Rename to...
1682         (analyze_push_multiple_operation): ...this and remove mode argument.
1683         (pop_multiple_operation): Rename to...
1684         (analyze_pop_multiple_operation): ...this and remove mode argument.
1685         * config/bfin/predicates.md (push_multiple_operation): Define.
1686         (pop_multiple_operation): Likewise.
1688 2013-11-23  Alan Modra  <amodra@gmail.com>
1690         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1692 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1694         PR sanitizer/59061
1695         * common.opt (static-liblsan): Add.
1696         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1697         Define.
1698         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
1699         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1700         SANITIZE_RETURN.
1701         * opts.c (common_handle_option): Handle -fsanitize=leak.
1702         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1703         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1704         (LIBUBSAN_EARLY_SPEC): Remove.
1705         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1706         (SANITIZER_SPEC): Add -fsanitize=leak handling.
1707         (sanitize_spec_function): Handle %sanitize(leak).
1708         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1710 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
1711             Jakub Jelinek  <jakub@redhat.com>
1713         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1714         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1715         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
1716         (ipa_modify_formal_parameters): Adjust caller.  Remove
1717         synth_parm_prefix argument.  Use operator enum instead of bit fields.
1718         Add assert for properly handling vector of references.  Handle
1719         creating brand new parameters.
1720         (ipa_modify_call_arguments): Use operator enum instead of bit
1721         fields.
1722         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
1723         used.
1724         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1725         New functions.
1726         (ipa_dump_param_adjustments): Rename reduction to new_decl.
1727         Use operator enum instead of bit fields.
1728         * ipa-prop.h (enum ipa_parm_op): New.
1729         (struct ipa_parm_adjustment): New field op.  Rename reduction
1730         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1731         and copy_param.
1732         (ipa_modify_formal_parameters): Remove last argument.
1733         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1734         ipa_get_adjustment_candidate): New prototypes.
1735         * tree-sra.c (turn_representatives_into_adjustments): Use operator
1736         enum.  Set arg_prefix.
1737         (get_adjustment_for_base): Use operator enum.
1738         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1739         ipa-prop.c.
1740         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1741         (ipa_sra_modify_function_body): Same.  No longer static.
1742         (sra_ipa_reset_debug_stmts): Use operator enum.
1743         (modify_function): Do not pass prefix argument.
1745 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1747         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1748         (ubsan_pass): Ignore clobber stmts.
1750         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1751         * opts.c (common_handle_option): Add -fsanitize=return.
1752         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1753         or it into SANITIZE_UNDEFINED.
1755         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1756         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1757         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1758         Don't instrument accesses to VAR_DECLs which are known to fit
1759         into their bounds and the vars are known to have shadow bytes
1760         indicating allowed access.
1761         (asan_dynamic_init_call): New function.
1762         (asan_add_global): If vnode->dynamically_initialized,
1763         set __has_dynamic_init to 1 instead of 0.
1764         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1765         * asan.h (asan_dynamic_init_call): New prototype.
1766         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1768 2013-11-22  Martin Jambor  <mjambor@suse.cz>
1770         PR rtl-optimization/10474
1771         * ira.c (interesting_dest_for_shprep_1): New function.
1772         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1773         also check parallels.
1775 2013-11-22  Jeff Law  <law@redhat.com>
1777         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1778         NULL for RHS, which we used to invalidate equivalences.
1779         (record_temporary_equivalences_from_phis): New bitmap arguments
1780         and a boolean indicating if we have passed a backedge.  If we
1781         have passed a backedge, then set the appropriate bit in the
1782         bitmaps for the SRC & DEST of PHIs creating equivalences.
1783         (invalidate_equivalences, dummy_simplify): New functions.
1784         (cond_arg_set_in_b): Remove.
1785         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1786         arguments and a boolean indicating if we have passed a backedge.
1787         If we have passed a backedge, then perform invalidations as needed.
1788         (thread_around_empty_blocks): If we have seen a backedge, then
1789         use the dummy simplify routine.
1790         (thread_through_normal_block): Likewise.  Pass bitmaps and
1791         backedge status to children.  Do not pessimize so much when
1792         traversing backedges in the CFG.
1793         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1794         If we have seen a backedge, then use the dummy simplify routine.
1795         Do not pessimize so much when traversing backedges.
1797 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
1799         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1800         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1802 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
1804         * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
1805         PTA_PCLMUL and PTA_RDRND for Silvermont.
1806         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1807         for Silvermont.
1809         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1811 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1813         * hooks.h (hook_uint_mode_0): Add Prototype.
1814         * hooks.c (hook_uint_mode_0): New default function.
1815         * target.def (atomic_align_for_mode): New target hook.
1816         * tree.c (build_atomic_base): Add alignment override parameter.
1817         (build_common_tree_nodes): Use atomic alignment override.
1818         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1819         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1821 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1823         * gimple.h: Remove all includes.
1824         (recalculate_side_effects): Move prototype to gimplify.h.
1825         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1826         * gengtype.c (open_base_files): Add gimple.h include list.
1827         * gimplify.h (recalculate_side_effects): Relocate prototype here.
1828         * gimple.c: Adjust include list.
1829         (recalculate_side_effects): Move to gimplify.c.
1830         * gimplify.c: Adjust include list.
1831         (recalculate_side_effects): Relocate from gimple.c.
1832         * alias.c: Add required include files removed from gimple.h.
1833         * asan.c: Likewise.
1834         * builtins.c: Likewise.
1835         * calls.c: Likewise.
1836         * cfgexpand.c: Likewise.
1837         * cfgloop.c: Likewise.
1838         * cfgloopmanip.c: Likewise.
1839         * cgraphbuild.c: Likewise.
1840         * cgraph.c: Likewise.
1841         * cgraphclones.c: Likewise.
1842         * cgraphunit.c: Likewise.
1843         * cilk-common.c: Likewise.
1844         * data-streamer.c: Likewise.
1845         * data-streamer-in.c: Likewise.
1846         * data-streamer-out.c: Likewise.
1847         * dse.c: Likewise.
1848         * dwarf2out.c: Likewise.
1849         * emit-rtl.c: Likewise.
1850         * except.c: Likewise.
1851         * expr.c: Likewise.
1852         * fold-const.c: Likewise.
1853         * function.c: Likewise.
1854         * gimple-builder.c: Likewise.
1855         * gimple-expr.c: Likewise.
1856         * gimple-fold.c: Likewise.
1857         * gimple-iterator.c: Likewise.
1858         * gimple-low.c: Likewise.
1859         * gimple-pretty-print.c: Likewise.
1860         * gimple-ssa-isolate-paths.c: Likewise.
1861         * gimple-ssa-strength-reduction.c: Likewise.
1862         * gimple-streamer-in.c: Likewise.
1863         * gimple-streamer-out.c: Likewise.
1864         * gimple-walk.c: Likewise.
1865         * gimplify-me.c: Likewise.
1866         * graphite-blocking.c: Likewise.
1867         * graphite.c: Likewise.
1868         * graphite-clast-to-gimple.c: Likewise.
1869         * graphite-dependences.c: Likewise.
1870         * graphite-interchange.c: Likewise.
1871         * graphite-optimize-isl.c: Likewise.
1872         * graphite-poly.c: Likewise.
1873         * graphite-scop-detection.c: Likewise.
1874         * graphite-sese-to-poly.c: Likewise.
1875         * internal-fn.c: Likewise.
1876         * ipa.c: Likewise.
1877         * ipa-cp.c: Likewise.
1878         * ipa-devirt.c: Likewise.
1879         * ipa-inline-analysis.c: Likewise.
1880         * ipa-inline.c: Likewise.
1881         * ipa-profile.c: Likewise.
1882         * ipa-prop.c: Likewise.
1883         * ipa-pure-const.c: Likewise.
1884         * ipa-reference.c: Likewise.
1885         * ipa-split.c: Likewise.
1886         * ipa-utils.c: Likewise.
1887         * langhooks.c: Likewise.
1888         * lto-cgraph.c: Likewise.
1889         * lto-compress.c: Likewise.
1890         * lto-opts.c: Likewise.
1891         * lto-section-in.c: Likewise.
1892         * lto-section-out.c: Likewise.
1893         * lto-streamer.c: Likewise.
1894         * lto-streamer-in.c: Likewise.
1895         * lto-streamer-out.c: Likewise.
1896         * omp-low.c: Likewise.
1897         * opts-global.c: Likewise.
1898         * passes.c: Likewise.
1899         * predict.c: Likewise.
1900         * profile.c: Likewise.
1901         * sese.c: Likewise.
1902         * stmt.c: Likewise.
1903         * stor-layout.c: Likewise.
1904         * symtab.c: Likewise.
1905         * targhooks.c: Likewise.
1906         * toplev.c: Likewise.
1907         * tracer.c: Likewise.
1908         * trans-mem.c: Likewise.
1909         * tree-affine.c: Likewise.
1910         * tree.c: Likewise.
1911         * tree-call-cdce.c: Likewise.
1912         * tree-cfg.c: Likewise.
1913         * tree-cfgcleanup.c: Likewise.
1914         * tree-chrec.c: Likewise.
1915         * tree-complex.c: Likewise.
1916         * tree-data-ref.c: Likewise.
1917         * tree-dfa.c: Likewise.
1918         * tree-eh.c: Likewise.
1919         * tree-emutls.c: Likewise.
1920         * tree-if-conv.c: Likewise.
1921         * tree-inline.c: Likewise.
1922         * tree-into-ssa.c: Likewise.
1923         * tree-loop-distribution.c: Likewise.
1924         * tree-nested.c: Likewise.
1925         * tree-nrv.c: Likewise.
1926         * tree-object-size.c: Likewise.
1927         * tree-outof-ssa.c: Likewise.
1928         * tree-parloops.c: Likewise.
1929         * tree-phinodes.c: Likewise.
1930         * tree-predcom.c: Likewise.
1931         * tree-pretty-print.c: Likewise.
1932         * tree-profile.c: Likewise.
1933         * tree-scalar-evolution.c: Likewise.
1934         * tree-sra.c: Likewise.
1935         * tree-ssa-address.c: Likewise.
1936         * tree-ssa-alias.c: Likewise.
1937         * tree-ssa.c: Likewise.
1938         * tree-ssa-ccp.c: Likewise.
1939         * tree-ssa-coalesce.c: Likewise.
1940         * tree-ssa-copy.c: Likewise.
1941         * tree-ssa-copyrename.c: Likewise.
1942         * tree-ssa-dce.c: Likewise.
1943         * tree-ssa-dom.c: Likewise.
1944         * tree-ssa-dse.c: Likewise.
1945         * tree-ssa-forwprop.c: Likewise.
1946         * tree-ssa-ifcombine.c: Likewise.
1947         * tree-ssa-live.c: Likewise.
1948         * tree-ssa-loop.c: Likewise.
1949         * tree-ssa-loop-ch.c: Likewise.
1950         * tree-ssa-loop-im.c: Likewise.
1951         * tree-ssa-loop-ivcanon.c: Likewise.
1952         * tree-ssa-loop-ivopts.c: Likewise.
1953         * tree-ssa-loop-manip.c: Likewise.
1954         * tree-ssa-loop-niter.c: Likewise.
1955         * tree-ssa-loop-prefetch.c: Likewise.
1956         * tree-ssa-loop-unswitch.c: Likewise.
1957         * tree-ssa-math-opts.c: Likewise.
1958         * tree-ssanames.c: Likewise.
1959         * tree-ssa-operands.c: Likewise.
1960         * tree-ssa-phiopt.c: Likewise.
1961         * tree-ssa-phiprop.c: Likewise.
1962         * tree-ssa-pre.c: Likewise.
1963         * tree-ssa-propagate.c: Likewise.
1964         * tree-ssa-reassoc.c: Likewise.
1965         * tree-ssa-sccvn.c: Likewise.
1966         * tree-ssa-sink.c: Likewise.
1967         * tree-ssa-strlen.c: Likewise.
1968         * tree-ssa-structalias.c: Likewise.
1969         * tree-ssa-tail-merge.c: Likewise.
1970         * tree-ssa-ter.c: Likewise.
1971         * tree-ssa-threadedge.c: Likewise.
1972         * tree-ssa-threadupdate.c: Likewise.
1973         * tree-ssa-uncprop.c: Likewise.
1974         * tree-ssa-uninit.c: Likewise.
1975         * tree-stdarg.c: Likewise.
1976         * tree-streamer.c: Likewise.
1977         * tree-streamer-in.c: Likewise.
1978         * tree-streamer-out.c: Likewise.
1979         * tree-switch-conversion.c: Likewise.
1980         * tree-tailcall.c: Likewise.
1981         * tree-vect-data-refs.c: Likewise.
1982         * tree-vect-generic.c: Likewise.
1983         * tree-vect-loop.c: Likewise.
1984         * tree-vect-loop-manip.c: Likewise.
1985         * tree-vectorizer.c: Likewise.
1986         * tree-vect-patterns.c: Likewise.
1987         * tree-vect-slp.c: Likewise.
1988         * tree-vect-stmts.c: Likewise.
1989         * tree-vrp.c: Likewise.
1990         * tsan.c: Likewise.
1991         * ubsan.c: Likewise.
1992         * value-prof.c: Likewise.
1993         * varpool.c: Likewise.
1994         * var-tracking.c: Likewise.
1995         * vtable-verify.c: Likewise.
1996         * config/darwin.c: Likewise.
1997         * config/aarch64/aarch64-builtins.c: Likewise.
1998         * config/aarch64/aarch64.c: Likewise.
1999         * config/alpha/alpha.c: Likewise.
2000         * config/i386/i386.c: Likewise.
2001         * config/i386/winnt.c: Likewise.
2002         * config/ia64/ia64.c: Likewise.
2003         * config/m32c/m32c.c: Likewise.
2004         * config/mep/mep.c: Likewise.
2005         * config/mips/mips.c: Likewise.
2006         * config/rs6000/rs6000.c: Likewise.
2007         * config/s390/s390.c: Likewise.
2008         * config/sh/sh.c: Likewise.
2009         * config/sparc/sparc.c: Likewise.
2010         * config/spu/spu.c: Likewise.
2011         * config/stormy16/stormy16.c: Likewise.
2012         * config/tilegx/tilegx.c: Likewise.
2013         * config/tilepro/tilepro.c: Likewise.
2014         * config/xtensa/xtensa.c: Likewise.
2016 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
2018         PR target/59216
2019         * arm.md (negdi_extendsidi): Fix invalid split.
2021 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
2023         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
2024         (vmov_n_f64): Likewise.
2025         (vmov_n_p8): Likewise.
2026         (vmov_n_p16): Likewise.
2027         (vmov_n_s8): Likewise.
2028         (vmov_n_s16): Likewise.
2029         (vmov_n_s32): Likewise.
2030         (vmov_n_s64): Likewise.
2031         (vmov_n_u8): Likewise.
2032         (vmov_n_u16): Likewise.
2033         (vmov_n_u32): Likewise.
2034         (vmov_n_u64): Likewise.
2035         (vmovq_n_f32): Likewise.
2036         (vmovq_n_f64): Likewise.
2037         (vmovq_n_p8): Likewise.
2038         (vmovq_n_p16): Likewise.
2039         (vmovq_n_s8): Likewise.
2040         (vmovq_n_s16): Likewise.
2041         (vmovq_n_s32): Likewise.
2042         (vmovq_n_s64): Likewise.
2043         (vmovq_n_u8): Likewise.
2044         (vmovq_n_u16): Likewise.
2045         (vmovq_n_u32): Likewise.
2046         (vmovq_n_u64): Likewise.
2048 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
2050         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2051         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
2052         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
2053         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
2054         and also change to float UNSPEC.
2055         (reduc_maxmin_uns>_<mode>): Remove V2DI.
2056         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
2057         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
2058         result access for big-endian.
2059         (__LANE0): New macro used to fix up lane access of 'across-lanes'
2060         intrinsics for big-endian.
2061         * config/aarch64/iterators.md (VDQV): Add V2DI.
2062         (VDQV_S): New.
2063         (vp): New mode attribute.
2065 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
2067         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2068         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
2069         big-endian.
2071 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
2073         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
2074         for big-endian element order.
2075         (aarch64_simd_vec_setv2di): Likewise.
2076         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
2077         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
2078         (vec_extract): Expand using aarch64_get_lane.
2079         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
2081 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
2083         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
2084         and stores to be ABI compliant.
2086 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
2088         * input.h (input_line): Remove.
2089         (input_filename): Likewise.
2090         (in_system_header): Likewise.
2091         * tree.h (EXPR_LOC_OR_HERE): Remove.
2092         * config/bfin/bfin.c (output_file_start): Remove use of
2093         input_filename macro.
2094         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
2095         * gimplify.c (internal_get_tmp_var): Likewise.
2096         EXPR_LOC_OR_HERE macro.
2097         (shortcut_cond_expr): Likewise.
2098         * tree-diagnostic.c (diagnostic_report_current_function): Remove
2099         use of input_filename macro.
2100         * tree.c (get_file_function_name): Likewise.
2102 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
2104         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
2106 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
2108         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
2109         (same sized) elements even if the type of the CONSTRUCTOR has
2110         vector mode and target is a REG.
2112 2013-11-22  Richard Biener  <rguenther@suse.de>
2114         Revert
2115         2013-11-21  Richard Biener  <rguenther@suse.de>
2117         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2118         nb_iterations_upper_bound by one.
2120 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
2122         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
2123         for Silvermont.
2125         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
2126         core-avx-i, core-avx2 and slm.
2128 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
2130         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
2132 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
2134         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
2135         (stzx_24_<mode>): Likewise mra_operand.
2137 2013-11-22  Jeff Law  <law@redhat.com>
2139         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
2140         (thread_block_1): Do not cancel jump threads which go from
2141         inside a loop, through the header, then back inside the loop.
2142         (bb_ends_with_multiway_branch): New function.
2143         (thread_through_all_blocks): Handle threading cases which start
2144         in a loop through the loop header to a point in the loop.
2146         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
2147         jump thread path properly.
2149 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
2151         * vec.h (auto_vec): New class.
2152         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
2153         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
2154         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
2155         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
2156         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
2157         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2158         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
2159         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
2160         appropriate instead of vec for local variables.
2162 2013-11-21  Teresa Johnson  <tejohnson@google.com>
2164         PR target/59233
2165         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
2166         not understood by old_insns_match_p.
2168 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
2170         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
2171         little endian change.
2172         (vec_pack_sfix_trunc_v2df): Likewise.
2173         (vec_pack_ufix_trunc_v2df): Likewise.
2174         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
2175         double checking of endianness.
2177 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
2179         * tree-vect-generic.c (optimize_vector_constructor): New function.
2180         (expand_vector_operations_1): Call it.
2182 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
2184         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
2185         ix86_zero_extend_to_Pmode where appropriate.
2186         (ix86_expand_builtin): Ditto.
2188 2013-11-21  Cary Coutant  <ccoutant@google.com>
2190         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
2191         (add_linkage_name): Don't add linkage name for -g1.
2192         (decls_for_scope): Process subblocks for -g1.
2193         (dwarf2out_source_line): Output line tables for -g1.
2194         (dwarf2out_finish): Likewise.
2195         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
2196         unused scopes for -g1.
2197         * opts.c (common_handle_option): Handle -g same as -g2.
2198         * doc/invoke.texi: Update description for -g1.
2200 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
2202         * doc/extend.texi: Document htm builtins.
2204 2013-11-21  Jeff Law  <law@redhat.com>
2206         PR tree-optimization/59221
2207         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
2208         temporary equivalences when threading through joiner blocks.
2210 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
2212         PR rtl-optimization/55950
2213         * real.c (real_sqrt): Remove function.
2214         * real.h (real_sqrt): Remove prototype.
2215         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
2216         SQRT using real_sqrt.
2218 2013-11-21  Richard Biener  <rguenther@suse.de>
2220         PR tree-optimization/59058
2221         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
2222         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
2223         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
2224         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
2225         (NITERS_KNOWN_P): Fold into ...
2226         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
2227         (LOOP_VINFO_PEELING_FOR_NITER): Add.
2228         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2229         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2230         (vect_do_peeling_for_alignment): Re-use precomputed niter
2231         instead of re-emitting it.
2232         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2233         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2234         * tree-vect-loop.c (vect_get_loop_niters): Use
2235         number_of_latch_executions.
2236         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
2237         (vect_analyze_loop_form): Simplify.
2238         (vect_analyze_loop_operations): Move epilogue peeling code ...
2239         (vect_analyze_loop_2): ... here and adjust it to compute
2240         LOOP_VINFO_PEELING_FOR_NITER.
2241         (vect_estimate_min_profitable_iters): Use
2242         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2243         (vect_build_loop_niters): Emit on the preheader.
2244         (vect_generate_tmps_on_preheader): Likewise.
2245         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
2246         of recomputing it.  Adjust.
2248 2013-11-21  Richard Biener  <rguenther@suse.de>
2250         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2251         LOC_LINE): Remove wrappers and fix all users.
2252         (struct _loop_vec_info): Remove loop_line_number member.
2253         (LOOP_VINFO_LOC): Remove.
2254         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
2255         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
2256         and LOC_LINE.
2258 2013-11-21  Richard Biener  <rguenther@suse.de>
2260         * tree-ssa-forwprop.c (simplify_vce): New function.
2261         (ssa_forward_propagate_and_combine): Call it.
2263 2013-11-21  Richard Biener  <rguenther@suse.de>
2265         * tree-vect-loop-manip.c (vect_build_loop_niters,
2266         vect_generate_tmps_on_preheader): Move ...
2267         * tree-vect-loop.c (vect_build_loop_niters,
2268         vect_generate_tmps_on_preheader): ... here and simplify.
2269         (vect_transform_loop): Call them here and pass down results
2270         to consumers.
2271         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
2272         Get niter variables from caller.
2273         (vect_do_peeling_for_alignment): Likewise.
2274         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
2275         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2276         Adjust prototypes.
2278 2013-11-21  Richard Biener  <rguenther@suse.de>
2280         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2281         nb_iterations_upper_bound by one.
2283 2013-11-21  Richard Biener  <rguenther@suse.de>
2285         PR tree-optimization/59058
2286         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
2287         (build_size_arg_loc): Apply niter adjustment here.
2288         (generate_memset_builtin): Adjust.
2289         (generate_memcpy_builtin): Likewise.
2290         (classify_partition): Do not use number_of_exit_cond_executions
2291         but record whether niter needs to be adjusted.
2293 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
2295         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
2296         could throw.
2298 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
2300         PR target/53976
2301         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
2302         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
2303         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
2304         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
2305         sh_optimize_sett_clrt pass.o to extra_objs.
2307 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
2309         * cfg.c (dump_edge_info): Remove redundant comment.
2310         * cfgcleanup.c (outgoing_edges_match): Reword reference to
2311         EXIT_BLOCK_PTR in comment.
2312         (try_optimize_cfg): Likewise.
2313         * cfgrtl.c (last_bb_in_partition): Likewise.
2314         * cgraph.c (cgraph_node_cannot_return): Likewise.
2315         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2316         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2317         * ipa-split.c (consider_split): Likewise.
2318         * profile.c (find_spanning_tree): Likewise.
2319         * sched-int.h (common_sched_info_def.add_block): Likewise.
2320         * dominance.c (calc_dfs_tree_nonrec): Reword references in
2321         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
2322         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
2323         in comments to now removed ENTRY_BLOCK_PTR macro.
2324         (tree_forwarder_block_p): Reword reference in comment to
2325         EXIT_BLOCK_PTR.
2326         * tree-inline.c (copy_cfg_body): Reword references in comments to
2327         now removed ENTRY_BLOCK_PTR macro.
2328         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2329         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
2330         a comma to the comment to clarify the meaning.
2332 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
2334         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
2335         Move to gimplify.c.
2336         (free_gimplify_stack): Add prototype.
2337         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
2338         (struct gimplify_ctx): Relocate here.
2339         (gimplify_ctxp): Make static.
2340         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
2341         list of struct gimplify_ctx.
2342         (push_gimplify_context): Add default parameters and allocate a struct
2343         from the pool.
2344         (pop_gimplify_context): Free a struct back to the pool.
2345         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2346         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2347         use a local 'struct gimplify_ctx'.
2348         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2349         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2350         Likewise.
2351         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2352         lower_omp_ordered, lower_omp_critical, lower_omp_for,
2353         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2354         lower_omp_teams, execute_lower_omp): Likewise.
2355         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2356         * tree-inline.c (optimize_inline_calls): Likewise.
2358 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2360         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2361         (vsx_extract_<mode>): Likewise.
2362         (*vsx_extract_<mode>_one_le): New LE variant on
2363         *vsx_extract_<mode>_zero.
2364         (vsx_extract_v4sf): Adjust for little endian.
2366 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
2368         PR rtl-optimization/59133
2369         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
2370         new pseudos.
2371         (lra_create_new_reg_with_unique_value): Pass new argument value.
2372         (lra_emit_add, lra_emit_move): Ditto.
2373         * lra-constraints.c (in_class_p): Add check for move for a new insn.
2374         (change_class): Rename to lra_change_class.  Move to lra-int.h.
2375         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2376         change_class.
2377         (process_addr_reg, process_addr): Ditto.
2378         (curr_insn_transform): Ditto.  Add check on old pseudo for
2379         optional reload.
2380         * lra-int.h (lra_get_regno_hard_regno): Move below.
2381         (lra_change_class): Renamed change_class from lra.c.
2383 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
2385         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2386         the children of a NULL pointer.
2388 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
2390         * lra.c (lra): Set lra_in_progress before check_rtl call.
2391         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2392         adding clobber regs when LRA is running.
2394 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
2396         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2397         restriction for ISA_MIPS32R2.
2398         (ISA_HAS_LXC1_SXC1): New macro.
2399         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2400         (ISA_HAS_NMADD4_NMSUB4): Likewise.
2401         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2402         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2403         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2404         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2405         (*<ANYF:storex>_<P:mode>): Likewise.
2407 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
2409         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2410         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2411         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2412         * config/mips/mips.md (recip_condition): Remove mode attribute.
2413         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2414         <recip_condition>.
2415         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2417 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2419         PR target/59207
2420         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2421         Make sure neg2_ovf is set before being used.
2423 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
2425         * plugin.def: Add comment about register_callback and
2426         invoke_plugin_callbacks_full.
2428         * plugin.c (register_callback, invoke_plugin_callbacks_full):
2429         Handle PLUGIN_INCLUDE_FILE event.
2431 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2433         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2434         allow subregs of TDmode in FPRs of smaller size in little-endian.
2435         (rs6000_split_multireg_move): When splitting an access to TDmode
2436         in FPRs, do not use simplify_gen_subreg.
2438 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
2440         PR middle-end/21718
2441         * real.c: Remove comment about decimal string conversion and
2442         rounding errors.
2443         (real_from_string): Use MPFR to convert nonzero decimal constant
2444         to REAL_VALUE_TYPE.
2446 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2448         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2449         endianness of the D registers for the legacy encodings.
2451 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
2453         PR rtl-optimization/54300
2454         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2455         outputs in a single-set are killed from the value chains.
2457 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2459         * cgraph.h (varpool_node): Add need_bounds_init field.
2460         * lto-cgraph.c (lto_output_varpool_node): Output
2461         need_bounds_init value.
2462         (input_varpool_node): Read need_bounds_init value.
2463         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2465 2013-11-20  Jan Hubicka  <jh@suse.cz>
2467         * opts.c (finish_options): Imply -ffat-lto-objects with
2468         -fno-use-linker-plugin.
2469         * common.opt (fuse-linker-plugin): Add var.
2471 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2473         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2474         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2475         (gen_type_die_with_usage): Skip pointer bounds.
2476         (dwarf2out_global_decl): Likewise.
2478 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2480         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2481         from all insns.
2483 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
2485         PR target/57756
2486         * config/i386/i386.c (ix86_option_override_internal): Add missed
2487         argument prefix for 'ix86_fpmath'.
2488         * config/i386/ssemath.h: Add missed definition of
2489         TARGET_FPMATH_DEFAULT_P macros.
2491 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2492             Mike Stump  <mikestump@comcast.net>
2493             Richard Sandiford  <rdsandiford@googlemail.com>
2495         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2496         instead of TREE_INT_CST_LOW, in cases where there is a protecting
2497         tree_fits_shwi_p or tree_fits_uhwi_p.
2498         * builtins.c (fold_builtin_powi): Likewise.
2499         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2500         Likewise.
2501         * dbxout.c (dbxout_symbol): Likewise.
2502         * expr.c (expand_expr_real_1): Likewise.
2503         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2504         (fold_binary_loc): Likewise.
2505         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2506         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2507         * omp-low.c (lower_omp_for_lastprivate): Likewise.
2508         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2509         * stor-layout.c (compute_record_mode): Likewise.
2510         * tree-cfg.c (verify_expr): Likewise.
2511         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2512         * tree-pretty-print.c (dump_array_domain): Likewise.
2513         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2514         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2515         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2516         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2517         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2518         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2519         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2520         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2521         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2522         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2523         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2524         (create_variable_info_for_1): Likewise.
2525         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2526         (vect_verify_datarefs_alignment): Likewise.
2527         (vect_analyze_data_ref_accesses): Likewise.
2528         (vect_prune_runtime_alias_test_list): Likewise.
2529         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2531 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2533         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2534         overflow.  Use tree_to_shwi.
2536 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2538         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2539         HOST_WIDE_INTs when folding (x >> c) << c.
2541 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2542             Dominik Vogt  <vogt@linux.vnet.ibm.com>
2544         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2545         int comparisons with an out of range condition code.
2546         (s390_optimize_nonescaping_tx): Skip empty BBs.
2547         Generate the new tbegin RTX when removing the FPR clobbers (with
2548         two SETs).
2549         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
2550         result before doing the retry calculations.
2551         (s390_init_builtins): Make tbegin "returns_twice" and tabort
2552         "noreturn".
2553         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2554         the TDB setting part of an tbegin.
2555         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2556         ("tx_assist"): Set unused argument to an immediate zero instead of
2557         loading zero into a GPR and pass it as argument.
2558         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2559         Remove inline and related attributes.
2560         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2561         (__TM_is_illegal, __TM_is_footprint_exceeded)
2562         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2564 2013-11-20  Richard Biener  <rguenther@suse.de>
2566         PR lto/59035
2567         * lto-opts.c (lto_write_options): Write defaults only if
2568         they were not explicitely specified.  Also write
2569         -ffp-contract default.
2570         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2571         conservatively.
2572         (run_gcc): Pass through -ffp-contract.
2574 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2576         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2578 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2580         * gcc/config/aarch64/aarch64-builtins.c
2581         (aarch64_simd_itype): Remove.
2582         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2583         (VAR1): Use qualifiers.
2584         (aarch64_build_scalar_type): New.
2585         (aarch64_build_vector_type): Likewise.
2586         (aarch64_build_type): Likewise.
2587         (aarch64_init_simd_builtins): Refactor, remove special cases,
2588         consolidate main loop.
2589         (aarch64_simd_expand_args): Likewise.
2591 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
2593         PR c/53001
2594         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2596 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
2598         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2600 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2602         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2603         to "vec<>" instances.
2604         (build_pretty_printer): Register the vec<>* prettyprinter.
2606 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2608         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2609         (GdbSubprinter.handles_type): New.
2610         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2611         (GdbSubprinterRegex): New subclass of GdbSubprinter.
2612         (GdbPrettyPrinters.add_printer): Remove in favor of...
2613         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2614         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2615         (GdbPrettyPrinters.__call__): Update search for subprinter
2616         to use handles_type method.
2617         (build_pretty_printer): Update registration of subprinters to
2618         use the new API above, supporting multiple spelling of each type,
2619         and allowing for future regex-based subprinters.
2621 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2623         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2624         V16QI vector splat case for little endian.
2626 2013-11-19  Jeff Law  <law@redhat.com>
2628         * tree-ssa-threadedge.c (thread_across_edge): After threading
2629         through a joiner, allow threading a normal block requiring duplication.
2631         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2632         jump threading requests that would muck up the loop structures.
2634         * tree-ssa-threadupdate.c: Fix trailing whitespace.
2635         * tree-ssa-threadupdate.h: Likewise.
2637 2013-11-19  Mike Stump  <mikestump@comcast.net>
2639         * gdbinit.in: Add pmz to print out mpz values.
2641 2013-11-20  Jan Hubicka  <jh@suse.cz>
2643         * common.opt (ffat-lto-objects): Disable by default.
2644         * doc/invoke.texi (fat-lto-objects): Update documentation.
2645         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2647 2013-11-19  Martin Jambor  <mjambor@suse.cz>
2649         PR rtl-optimization/59099
2650         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2651         here.
2652         (ira): Move init_reg_equiv and call to
2653         split_live_ranges_for_shrink_wrap up, remove analyses around call
2654         to find_moveable_pseudos.
2656 2013-11-20  Alan Modra  <amodra@gmail.com>
2658         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2659         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2660         to strict alignment on older processors when little-endian.
2661         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2662         for ELFv2.
2664 2013-11-19  Teresa Johnson  <tejohnson@google.com>
2666         * common/config/i386/i386-common.c: Enable
2667         -freorder-blocks-and-partition at -O2 and up for x86.
2668         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2669         * opts.c (finish_options): Only warn if
2670         -freorder-blocks-and-partition was set on command line.
2672 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
2674         * final.c (final_scan_insn): Emit a label for the split
2675         cold function part.  Label name is formed by suffixing
2676         the original function name with "cold".
2678 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2680         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2681         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2682         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2683         (EXIT_BLOCK_PTR_FOR_FN): ...this.
2684         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2685         cfun be explicit.
2686         (EXIT_BLOCK_PTR): Likewise.
2687         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2688         (FOR_ALL_BB_FN): Update for renaming of
2689         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2691         * cfg.c (init_flow): Likewise.
2692         (check_bb_profile): Likewise.
2693         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2694         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2695         * cfghooks.c (account_profile_record): Likewise.
2696         * cfgloop.c (init_loops_structure): Likewise.
2697         * cgraphbuild.c (record_eh_tables): Likewise.
2698         (compute_call_stmt_bb_frequency): Likewise.
2699         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2700         * lto-streamer-in.c (input_cfg): Likewise.
2701         * predict.c (maybe_hot_frequency_p): Likewise.
2702         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2703         * tree-inline.c (initialize_cfun): Likewise.
2704         (copy_cfg_body): Likewise.
2705         (copy_body): Likewise.
2706         (tree_function_versioning): Likewise.
2708         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2709         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2710         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2711         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2712         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2713         (connect_traces): Likewise.
2714         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2715         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2716         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2717         macro.
2718         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2719         EXIT_BLOCK_PTR.
2720         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2721         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2722         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2723         (rotate_loop): Likewise.
2724         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2725         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2726         EXIT_BLOCK_PTR.
2727         (alloc_aux_for_edges): Likewise.
2728         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2729         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2730         EXIT_BLOCK_PTR.
2731         (compact_blocks): Likewise.
2732         (clear_edges): Likewise.
2733         * cfganal.c (single_pred_before_succ_order): Remove usage of
2734         ENTRY_BLOCK_PTR macro.
2735         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2736         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2737         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2738         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2739         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2740         EXIT_BLOCK_PTR.
2741         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2742         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2743         EXIT_BLOCK_PTR.
2744         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2745         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2746         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2747         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2748         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2749         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2750         EXIT_BLOCK_PTR.
2751         (print_edge_list): Likewise.
2752         (create_edge_list): Likewise.
2753         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2754         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2755         EXIT_BLOCK_PTR.
2756         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2757         macro.
2758         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2759         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2760         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2761         (try_optimize_cfg): Likewise.
2762         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2763         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2764         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2765         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2766         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2767         (try_forward_edges): Likewise.
2768         (try_simplify_condjump): Likewise.
2769         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2770         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2771         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2772         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2773         EXIT_BLOCK_PTR.
2774         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2775         (expand_gimple_tailcall): Likewise.
2776         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2777         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2778         (tidy_fallthru_edges): Likewise.
2779         (verify_flow_info): Likewise.
2780         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2781         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2782         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2783         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2784         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2785         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2786         (get_loop_body_in_dom_order): Likewise.
2787         (get_loop_body): Likewise.
2788         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2789         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2790         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2791         macro.
2792         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2793         (fix_bb_placement): Likewise.
2794         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2795         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2796         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2797         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2798         EXIT_BLOCK_PTR.
2799         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2800         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2801         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2802         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2803         macro.
2804         (fixup_fallthru_exit_predecessor): Remove uses of macros:
2805         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2806         (fixup_reorder_chain): Likewise.
2807         (relink_block_chain): Likewise.
2808         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2809         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2810         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2811         (force_one_exit_fallthru): Likewise.
2812         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2813         EXIT_BLOCK_PTR.
2814         (rtl_verify_edges): Likewise.
2815         (commit_edge_insertions): Likewise.
2816         (commit_one_edge_insertion): Likewise.
2817         (rtl_split_edge): Likewise.
2818         (force_nonfallthru_and_redirect): Likewise.
2819         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2820         (skip_insns_after_block): Likewise.
2821         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2822         EXIT_BLOCK_PTR.
2823         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2824         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2825         EXIT_BLOCK_PTR.
2826         (contains_no_active_insn_p): Likewise.
2827         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2828         (entry_of_function): Likewise.
2829         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2830         (fixup_new_cold_bb): Likewise.
2831         (patch_jump_insn): Likewise.
2832         (try_redirect_by_replacing_jump): Likewise.
2833         (block_label): Likewise.
2834         (could_fall_through): Likewise.
2835         (can_fallthru): Likewise.
2836         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2837         ENTRY_BLOCK_PTR macro.
2838         (rebuild_cgraph_edges): Likewise.
2839         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2840         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2841         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2842         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2843         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2844         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2845         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2846         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2847         macro.
2848         (reg_nonzero_bits_for_combine): Likewise.
2849         (set_nonzero_bits_and_sign_copies): Likewise.
2850         (combine_instructions): Likewise.
2851         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2852         EXIT_BLOCK_PTR.
2853         (bypass_conditional_jumps): Likewise.
2854         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2855         (find_implicit_sets): Likewise.
2856         (cprop_jump): Likewise.
2857         * cse.c (cse_cc_succs): Likewise.
2858         (cse_find_path): Likewise.
2859         * df-problems.c (df_lr_confluence_0): Likewise.
2860         * df-scan.c (df_entry_block_defs_collect): Remove usage of
2861         ENTRY_BLOCK_PTR macro.
2862         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2863         * dominance.c (iterate_fix_dominators): Remove usage of
2864         ENTRY_BLOCK_PTR macro.
2865         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2866         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2867         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2868         EXIT_BLOCK_PTR.
2869         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2870         macro.
2871         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2872         EXIT_BLOCK_PTR.
2873         * domwalk.c (cmp_bb_postorder): Likewise.
2874         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2875         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2876         macro.
2877         (sjlj_emit_function_enter): Likewise.
2878         * final.c (compute_alignments): Likewise.
2879         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2880         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2881         (reposition_prologue_and_epilogue_notes): Remove usage of
2882         EXIT_BLOCK_PTR macro.
2883         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2884         EXIT_BLOCK_PTR.
2885         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2886         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2887         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2888         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2889         (compute_code_hoist_vbeinout): Likewise.
2890         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2891         (pre_expr_reaches_here_p_work): Likewise.
2892         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2893         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2894         EXIT_BLOCK_PTR.
2895         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2896         ENTRY_BLOCK_PTR macro.
2897         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2898         macro.
2899         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2900         ENTRY_BLOCK_PTR macro.
2901         * graphite-scop-detection.c (build_scops): Likewise.
2902         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2903         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2904         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2905         macro.
2906         (unlink_bb_notes): Likewise.
2907         (create_check_block_twin): Likewise.
2908         (init_before_recovery): Likewise.
2909         (sched_extend_bb): Likewise.
2910         (priority): Likewise.
2911         * hw-doloop.c (reorder_loops): Likewise.
2912         (discover_loop): Likewise.
2913         * ifcvt.c (dead_or_predicable): Remove uses of macros:
2914         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2915         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2916         (block_has_only_trap): Likewise.
2917         (cond_exec_find_if_block): Likewise.
2918         (merge_if_block): Likewise.
2919         * ipa-inline-analysis.c (param_change_prob): Remove usage of
2920         ENTRY_BLOCK_PTR macro.
2921         (record_modified): Likewise.
2922         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2923         EXIT_BLOCK_PTR macro.
2924         (local_pure_const): Likewise.
2925         * ipa-split.c (split_function): Remove uses of macros:
2926         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2927         (find_split_points): Likewise.
2928         (consider_split): Likewise.
2929         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2930         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2931         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2932         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2933         * ira-emit.c (entered_from_non_parent_p): Remove usage of
2934         ENTRY_BLOCK_PTR macro.
2935         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2936         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2937         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2938         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2939         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2940         macro.
2941         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2942         EXIT_BLOCK_PTR.
2943         (compute_farthest): Likewise.
2944         (compute_available): Likewise.
2945         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2946         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2947         EXIT_BLOCK_PTR.
2948         (compute_earliest): Likewise.
2949         (compute_antinout_edge): Likewise.
2950         * loop-iv.c (simplify_using_initial_values): Remove usage of
2951         ENTRY_BLOCK_PTR macro.
2952         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2953         macro.
2954         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2955         macro.
2956         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2957         macro.
2958         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2959         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2960         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2961         macro.
2962         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2963         macro.
2964         * lto-streamer-out.c (output_cfg): Likewise.
2965         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2966         EXIT_BLOCK_PTR.
2967         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2968         * mode-switching.c (optimize_mode_switching): Likewise.
2969         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2970         * modulo-sched.c (rest_of_handle_sms): Likewise.
2971         (canon_loop): Likewise.
2972         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2973         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2974         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2975         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2976         macro.
2977         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2978         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2979         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2980         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2981         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2982         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2983         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2984         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2985         (gimple_predict_edge): Likewise.
2986         (probably_never_executed): Likewise.
2987         * profile.c (find_spanning_tree): Remove uses of macros:
2988         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2989         (branch_prob): Likewise.
2990         (compute_branch_probabilities): Likewise.
2991         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2992         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2993         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2994         (set_bb_counts): Likewise.
2995         (correct_negative_edge_counts): Likewise.
2996         (get_exec_counts): Likewise.
2997         (instrument_values): Likewise.
2998         (instrument_edges): Likewise.
2999         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
3000         EXIT_BLOCK_PTR.
3001         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
3002         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
3003         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3004         (reg_to_stack): Likewise.
3005         * regs.h (REG_N_SETS): Likewise.
3006         * reload.c (find_dummy_reload): Likewise.
3007         (combine_reloads): Likewise.
3008         (push_reload): Likewise.
3009         * reload1.c (has_nonexceptional_receiver): Remove usage of
3010         EXIT_BLOCK_PTR macro.
3011         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
3012         macro.
3013         (find_basic_block): Likewise.
3014         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3015         (schedule_ebbs): Likewise.
3016         * sched-int.h (sel_sched_p): Likewise.
3017         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
3018         macro.
3019         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3020         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
3021         EXIT_BLOCK_PTR.
3022         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
3023         (extend_rgns): Likewise.
3024         (find_single_block_region): Likewise.
3025         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
3026         ENTRY_BLOCK_PTR macro.
3027         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
3028         (sel_create_recovery_block): Likewise.
3029         (bb_ends_ebb_p): Likewise.
3030         (sel_bb_end): Likewise.
3031         (sel_bb_head): Likewise.
3032         (free_lv_sets): Likewise.
3033         (init_lv_sets): Likewise.
3034         (tidy_control_flow): Likewise.
3035         (maybe_tidy_empty_bb): Likewise.
3036         * sel-sched-ir.h (_succ_iter_cond): Likewise.
3037         (_succ_iter_start): Likewise.
3038         (sel_bb_empty_or_nop_p): Likewise.
3039         (get_loop_exit_edges_unique_dests): Likewise.
3040         (inner_loop_header_p): Likewise.
3041         * sel-sched.c (create_block_for_bookkeeping): Likewise.
3042         (find_block_for_bookkeeping): Likewise.
3043         * store-motion.c (remove_reachable_equiv_notes): Likewise.
3044         (insert_store): Likewise.
3045         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
3046         ENTRY_BLOCK_PTR macro.
3047         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
3048         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
3049         (gate_tm_init): Likewise.
3050         (tm_region_init): Likewise.
3051         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
3052         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3053         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
3054         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3055         EXIT_BLOCK_PTR.
3056         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
3057         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
3058         EXIT_BLOCK_PTR.
3059         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
3060         macro.
3061         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
3062         EXIT_BLOCK_PTR.
3063         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
3064         macro.
3065         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3066         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
3067         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
3068         (build_gimple_cfg): Likewise.
3069         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
3070         (gimple_can_merge_blocks_p): Likewise.
3071         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
3072         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3073         * tree-complex.c (update_parameter_components): Remove usage of
3074         ENTRY_BLOCK_PTR macro.
3075         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
3076         EXIT_BLOCK_PTR macro.
3077         * tree-inline.c (tree_function_versioning): Remove uses of macros:
3078         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3079         (delete_unreachable_blocks_update_callgraph): Likewise.
3080         (initialize_cfun): Likewise.
3081         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
3082         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
3083         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
3084         * tree-into-ssa.c (update_ssa): Likewise.
3085         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
3086         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
3087         (rewrite_into_ssa): Likewise.
3088         (rewrite_debug_stmt_uses): Likewise.
3089         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
3090         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3091         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
3092         ENTRY_BLOCK_PTR macro.
3093         * tree-scalar-evolution.h (block_before_loop): Likewise.
3094         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3095         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
3096         EXIT_BLOCK_PTR.
3097         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
3098         macro.
3099         (propagate_dereference_distances): Remove uses of macros:
3100         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3101         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
3102         macro.
3103         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
3104         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
3105         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
3106         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
3107         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3108         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
3109         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
3110         (mark_control_dependent_edges_necessary): Remove uses of macros:
3111         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3112         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
3113         ENTRY_BLOCK_PTR macro.
3114         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
3115         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
3116         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3117         (calculate_live_on_exit): Likewise.
3118         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3119         (loe_visit_block): Likewise.
3120         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
3121         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3122         (live_on_entry): Likewise.
3123         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
3124         EXIT_BLOCK_PTR macro.
3125         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
3126         ENTRY_BLOCK_PTR macro.
3127         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
3128         (bound_difference): Likewise.
3129         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
3130         of EXIT_BLOCK_PTR macro.
3131         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
3132         of ENTRY_BLOCK_PTR macro.
3133         * tree-ssa-math-opts.c (register_division_in): Likewise.
3134         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
3135         * tree-ssa-pre.c (compute_avail): Likewise.
3136         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
3137         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
3138         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3139         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
3140         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
3141         EXIT_BLOCK_PTR.
3142         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
3143         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
3144         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3145         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
3146         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3147         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
3148         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3149         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
3150         (find_pdom): Likewise.
3151         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3152         * tree-stdarg.c (reachable_at_most_once): Likewise.
3153         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
3154         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3155         (eliminate_tail_call): Likewise.
3156         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
3157         macro.
3158         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
3159         * var-tracking.c (vt_initialize): Remove uses of macros:
3160         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3161         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
3162         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
3163         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
3164         EXIT_BLOCK_PTR.
3165         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
3166         macro.
3167         * config/bfin/bfin.c (hwloop_optimize): Likewise.
3168         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
3169         of EXIT_BLOCK_PTR macro.
3170         * config/arm/arm.c (require_pic_register): Remove usage of
3171         ENTRY_BLOCK_PTR macro.
3172         (arm_r3_live_at_start_p): Likewise.
3173         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
3174         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3175         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
3176         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
3177         ENTRY_BLOCK_PTR macro.
3178         * config/i386/i386.c (ix86_count_insn): Likewise.
3179         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
3180         (ix86_pad_short_function): Likewise.
3181         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3182         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
3183         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
3184         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
3185         (ix86_expand_epilogue): Likewise.
3186         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
3187         (ia64_expand_prologue): Likewise.
3189 2013-11-19  Catherine Moore  <clm@codesourcery.com>
3191         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
3192         * config/mips/mips.opt (mfix-rm7000): New option.
3193         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
3194         * config/mips/mips.c (mips_reorg_process_insns): Disable
3195         noreorder for TARGET_FIX_RM7000.
3197 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
3199         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
3201 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3203         * config/arm/arm.c (arm_new_rtx_costs):
3204         Handle narrow mode add-shifts properly.
3205         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
3206         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
3207         Declare extern.
3209 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
3211         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
3213 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3215         * config/rs6000/vector.md ("mov<mode>"): Do not call
3216         rs6000_emit_le_vsx_move to move into or out of GPRs.
3217         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
3218         source and destination are not GPR hard regs.
3220 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3222         * basic-block.h (n_edges_for_function): Rename macro to...
3223         (n_edges_for_fn): ...this.
3224         (n_edges): Eliminate macro as work towards making uses of
3225         cfun be explicit.
3227         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
3228         to "n_edges_for_fn".
3230         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
3231         (clear_edges): Likewise.
3232         (free_edge): Likewise.
3233         * cfghooks.c (dump_flow_info): Likewise.
3234         * cprop.c (is_too_expensive): Likewise.
3235         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3236         * gcse.c (is_too_expensive): Likewise.
3237         (prune_insertions_deletions): Likewise.
3238         * mcf.c (create_fixup_graph): Likewise.
3239         * sched-rgn.c (haifa_find_rgns): Likewise.
3240         * tree-cfg.c (gimple_dump_cfg): Likewise.
3241         * var-tracking.c (variable_tracking_main_1): Likewise.
3243 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3245         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
3246         length lines.
3248 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3250         * config/aarch64/aarch64.md
3251         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
3253 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3255         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
3257 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
3259         * varasm.c (align_variable): Give error instead of warning for
3260         unsupported alignment.
3261         (assemble_noswitch_variable): Likewise.
3263 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
3265         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
3266         cb_file_change.
3268 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
3270         * loop-doloop.c (doloop_optimize_loops): Remove unused
3271         loop iterator argument from FOR_EACH_LOOP.
3273 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3275         Convert gimple types from a union to C++ inheritance.
3276         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
3277         * coretypes.h (union gimple_statement_d): Remove declaration.
3278         (gimple): Convert from being a "union gimple_statement_d *"
3279         to a "struct gimple_statement_base *".
3280         (const_gimple): Likewise (with "const").
3281         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
3282         (ggc_alloc_cleared_gimple_statement_stat): ...this.
3283         * gimple-pretty-print.c (debug): Change parameter from a
3284         "gimple_statement_d &" to a "gimple_statement_base &".
3285         (debug): Change parameter from a "gimple_statement_d *" to
3286         a "gimple_statement_base *".
3287         * gimple-pretty-print.h (debug): Update declarations as above.
3288         * gimple.c (gimple_alloc_stat): Update for renaming of
3289         ggc_alloc_cleared_gimple_statement_d_stat to
3290         ggc_alloc_cleared_gimple_statement_stat.
3291         * gimple.h: Include "is-a.h" for use by is_a_helper
3292         specializations in followup autogenerated patch.
3293         (struct gimple statement_base): Make this type usable as a base
3294         class by adding "desc", "tag" and "variable_size" to GTY, thus
3295         using opting-in to gengtype's support for simple inheritance.
3296         (gimple_statement_with_ops_base): Convert to a subclass of
3297         gimple_statement_base, dropping initial "gsbase" field.  Note that
3298         this type is abstract, with no GSS_ value, and thus no GTY tag value.
3299         (gimple_statement_with_ops): Convert to a subclass of
3300         gimple_statement_with_ops_base, dropping initial "opbase" field.
3301         Add tag value to GTY marking.  Update marking of op field to
3302         reflect how num_ops field is accessed via inheritance.
3303         (gimple_statement_with_memory_ops_base): Convert to a subclass of
3304         gimple_statement_with_ops_base, dropping initial "opbase" field.
3305         Add tag value to GTY marking.
3306         (gimple_statement_with_memory_ops): Convert to a subclass of
3307         public gimple_statement_with_memory_ops_base, dropping initial
3308         "membase" field.  Add tag value to GTY marking.  Update marking
3309         of op field to reflect how num_ops field is accessed via inheritance.
3310         (gimple_statement_call): Analogous changes that also update the
3311         marking of the "u" union.
3312         (gimple_statement_omp): Convert to a subclass of
3313         gimple_statement_base, dropping initial "gsbase" field, adding
3314         tag value to GTY marking.
3315         (gimple_statement_bind): Likewise.
3316         (gimple_statement_catch): Likewise.
3317         (gimple_statement_eh_filter): Likewise.
3318         (gimple_statement_eh_else): Likewise.
3319         (gimple_statement_eh_mnt): Likewise.
3320         (gimple_statement_phi): Likewise.
3321         (gimple_statement_eh_ctrl): Likewise.
3322         (gimple_statement_try): Likewise.
3323         (gimple_statement_wce): Likewise.
3324         (gimple_statement_asm): Convert to a subclass of
3325         gimple_statement_with_memory_ops_base, dropping initial
3326         "membase" field, adding tag value to GTY marking, and updating
3327         marking of op field.
3328         (gimple_statement_omp_critical): Convert to a subclass of
3329         gimple_statement_omp, dropping initial "omp" field, adding tag
3330         value to GTY marking.
3331         (gimple_statement_omp_for): Likewise.
3332         (gimple_statement_omp_parallel): Likewise.
3333         (gimple_statement_omp_task): Convert to a subclass of
3334         gimple_statement_omp_parallel, dropping initial "par" field,
3335         adding tag value to GTY marking.
3336         (gimple_statement_omp_sections): Convert to a subclass of
3337         gimple_statement_omp, dropping initial "omp" field, adding
3338         tag value to GTY marking.
3339         (gimple_statement_omp_continue): Convert to a subclass of
3340         gimple_statement_base, dropping initial "gsbase" field, adding
3341         tag value to GTY marking.
3342         (gimple_statement_omp_single): Convert to a subclass of
3343         gimple_statement_omp, dropping initial "omp" field, adding
3344         tag value to GTY marking.
3345         (gimple_statement_omp_atomic_load): Convert to a subclass of
3346         gimple_statement_base, dropping initial "gsbase" field, adding
3347         tag value to GTY marking.
3348         (gimple_statement_omp_atomic_store): Convert to a subclass of
3349         gimple_statement_base, dropping initial "gsbase" field, adding
3350         tag value to GTY marking.
3351         (gimple_statement_transaction): Convert to a subclass of
3352         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3353         field, adding tag value to GTY marking.
3354         (union gimple_statement_d): Remove.
3355         * system.h (CONST_CAST_GIMPLE): Update to use
3356         "struct gimple_statement_base *" rather than
3357         "union gimple_statement_d *".
3358         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3359         gimple_statement_d to gimple_statement_base.
3361         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3362         (gimple_set_use_ops): Port from union to usage of as_a.
3363         (gimple_set_vuse): Likewise.
3364         (gimple_set_vdef): Likewise.
3365         (gimple_call_internal_fn): Port from union to a static_cast,
3366         given that the type has already been asserted.
3367         (gimple_omp_body_ptr): Port from unchecked union usage to
3368         a static_cast.
3369         (gimple_omp_set_body): Likewise.
3371         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3372         gimple types to a true class hierarchy.
3373         (update_call_edge_frequencies): Likewise.
3374         (gsi_insert_seq_nodes_before): Likewise.
3375         (gsi_insert_seq_nodes_after): Likewise.
3376         (gsi_split_seq_after): Likewise.
3377         (gsi_set_stmt): Likewise.
3378         (gsi_split_seq_before): Likewise.
3379         (gsi_remove): Likewise.
3380         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3381         (gsi_next): Likewise.
3382         (gsi_prev): Likewise.
3383         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3384         * gimple-ssa.h (gimple_vuse_op): Likewise.
3385         (gimple_vdef_op): Likewise.
3386         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3387         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3388         * gimple.c (gimple_set_code): Likewise.
3389         (gimple_alloc_stat): Likewise.
3390         (gimple_set_subcode): Likewise.
3391         (gimple_build_call_internal_1): Likewise.
3392         (gimple_check_failed): Likewise.
3393         (gimple_call_flags): Likewise.
3394         (gimple_set_bb): Likewise.
3395         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3396         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3397         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3398         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3399         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3400         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3401         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3402         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3403         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3404         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3405         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3406         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3407         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3408         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3409         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3410         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3411         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3412         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3413         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3414         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3415         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3416         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3417         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3418         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3419         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3420         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3421         Likewise.
3422         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3423         Likewise.
3424         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3425         Likewise.
3426         (is_a_helper <const gimple_statement_omp_atomic_store>
3427         (const_gimple)): Likewise.
3428         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3429         Likewise.
3430         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3431         Likewise.
3432         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3433         Likewise.
3434         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3435         Likewise.
3436         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3437         Likewise.
3438         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3439         Likewise.
3440         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3441         Likewise.
3442         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3443         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3444         Likewise.
3445         (gimple_seq_last): Update for conversion of gimple types to a true
3446         class hierarchy.
3447         (gimple_seq_set_last): Likewise.
3448         (gimple_code): Likewise.
3449         (gimple_bb): Likewise.
3450         (gimple_block): Likewise.
3451         (gimple_set_block): Likewise.
3452         (gimple_location): Likewise.
3453         (gimple_location_ptr): Likewise.
3454         (gimple_set_location): Likewise.
3455         (gimple_no_warning_p): Likewise.
3456         (gimple_set_no_warning): Likewise.
3457         (gimple_set_visited): Likewise.
3458         (gimple_visited_p): Likewise.
3459         (gimple_set_plf): Likewise.
3460         (gimple_plf): Likewise.
3461         (gimple_set_uid): Likewise.
3462         (gimple_uid): Likewise.
3463         (gimple_init_singleton): Likewise.
3464         (gimple_modified_p): Likewise.
3465         (gimple_set_modified): Likewise.
3466         (gimple_expr_code): Likewise.
3467         (gimple_has_volatile_ops): Likewise.
3468         (gimple_set_has_volatile_ops): Likewise.
3469         (gimple_omp_subcode): Likewise.
3470         (gimple_omp_set_subcode): Likewise.
3471         (gimple_omp_return_set_nowait): Likewise.
3472         (gimple_omp_section_set_last): Likewise.
3473         (gimple_omp_parallel_set_combined_p): Likewise.
3474         (gimple_omp_atomic_set_need_value): Likewise.
3475         (gimple_omp_atomic_set_seq_cst): Likewise.
3476         (gimple_num_ops): Likewise.
3477         (gimple_set_num_ops): Likewise.
3478         (gimple_assign_nontemporal_move_p): Likewise.
3479         (gimple_assign_set_nontemporal_move): Likewise.
3480         (gimple_assign_rhs_code): Likewise.
3481         (gimple_assign_set_rhs_code): Likewise.
3482         (gimple_call_internal_p): Likewise.
3483         (gimple_call_with_bounds_p): Likewise.
3484         (gimple_call_set_with_bounds): Likewise.
3485         (gimple_call_set_tail): Likewise.
3486         (gimple_call_tail_p): Likewise.
3487         (gimple_call_set_return_slot_opt): Likewise.
3488         (gimple_call_return_slot_opt_p): Likewise.
3489         (gimple_call_set_from_thunk): Likewise.
3490         (gimple_call_from_thunk_p): Likewise.
3491         (gimple_call_set_va_arg_pack): Likewise.
3492         (gimple_call_va_arg_pack_p): Likewise.
3493         (gimple_call_set_nothrow): Likewise.
3494         (gimple_call_set_alloca_for_var): Likewise.
3495         (gimple_call_alloca_for_var_p): Likewise.
3496         (gimple_call_copy_flags): Likewise.
3497         (gimple_cond_code): Likewise.
3498         (gimple_cond_set_code): Likewise.
3499         (gimple_cond_make_false): Likewise.
3500         (gimple_cond_make_true): Likewise.
3501         (gimple_asm_volatile_p): Likewise.
3502         (gimple_asm_set_volatile): Likewise.
3503         (gimple_asm_set_input): Likewise.
3504         (gimple_asm_input_p): Likewise.
3505         (gimple_try_kind): Likewise.
3506         (gimple_try_set_kind): Likewise.
3507         (gimple_try_catch_is_cleanup): Likewise.
3508         (gimple_try_set_catch_is_cleanup): Likewise.
3509         (gimple_wce_cleanup_eh_only): Likewise.
3510         (gimple_wce_set_cleanup_eh_only): Likewise.
3511         (gimple_debug_bind_p): Likewise.
3512         (gimple_debug_source_bind_p): Likewise.
3513         (gimple_omp_for_set_kind): Likewise.
3514         (gimple_omp_for_set_combined_p): Likewise.
3515         (gimple_omp_for_set_combined_into_p): Likewise.
3516         (gimple_omp_target_set_kind): Likewise.
3517         (gimple_transaction_subcode): Likewise.
3518         (gimple_transaction_set_subcode): Likewise.
3519         (gimple_predict_predictor): Likewise.
3520         (gimple_predict_set_predictor): Likewise.
3521         (gimple_predict_outcome): Likewise.
3522         (gimple_predict_set_outcome): Likewise.
3523         (gimple_transaction_set_label): Likewise.
3524         (gimple_transaction_set_body): Likewise.
3525         (gimple_transaction_label_ptr): Likewise.
3526         (gimple_transaction_label): Likewise.
3527         (gimple_transaction_body_ptr): Likewise.
3528         (gimple_omp_continue_set_control_use): Likewise.
3529         (gimple_omp_continue_control_use_ptr): Likewise.
3530         (gimple_omp_continue_control_use): Likewise.
3531         (gimple_omp_continue_set_control_def): Likewise.
3532         (gimple_omp_continue_control_def_ptr): Likewise.
3533         (gimple_omp_continue_control_def): Likewise.
3534         (gimple_omp_atomic_load_rhs_ptr): Likewise.
3535         (gimple_omp_atomic_load_rhs): Likewise.
3536         (gimple_omp_atomic_load_set_rhs): Likewise.
3537         (gimple_omp_atomic_load_lhs_ptr): Likewise.
3538         (gimple_omp_atomic_load_lhs): Likewise.
3539         (gimple_omp_atomic_load_set_lhs): Likewise.
3540         (gimple_omp_atomic_store_val_ptr): Likewise.
3541         (gimple_omp_atomic_store_val): Likewise.
3542         (gimple_omp_atomic_store_set_val): Likewise.
3543         (gimple_omp_for_cond): Likewise.
3544         (gimple_omp_for_set_cond): Likewise.
3545         (gimple_omp_sections_set_control): Likewise.
3546         (gimple_omp_sections_control_ptr): Likewise.
3547         (gimple_omp_sections_control): Likewise.
3548         (gimple_omp_sections_set_clauses): Likewise.
3549         (gimple_omp_sections_clauses_ptr): Likewise.
3550         (gimple_omp_sections_clauses): Likewise.
3551         (gimple_omp_teams_set_clauses): Likewise.
3552         (gimple_omp_teams_clauses_ptr): Likewise.
3553         (gimple_omp_teams_clauses): Likewise.
3554         (gimple_omp_target_set_data_arg): Likewise.
3555         (gimple_omp_target_data_arg_ptr): Likewise.
3556         (gimple_omp_target_data_arg): Likewise.
3557         (gimple_omp_target_set_child_fn): Likewise.
3558         (gimple_omp_target_child_fn_ptr): Likewise.
3559         (gimple_omp_target_child_fn): Likewise.
3560         (gimple_omp_target_set_clauses): Likewise.
3561         (gimple_omp_target_clauses_ptr): Likewise.
3562         (gimple_omp_target_clauses): Likewise.
3563         (gimple_omp_single_set_clauses): Likewise.
3564         (gimple_omp_single_clauses_ptr): Likewise.
3565         (gimple_omp_single_clauses): Likewise.
3566         (gimple_omp_task_set_arg_align): Likewise.
3567         (gimple_omp_task_arg_align_ptr): Likewise.
3568         (gimple_omp_task_arg_align): Likewise.
3569         (gimple_omp_task_set_arg_size): Likewise.
3570         (gimple_omp_task_arg_size_ptr): Likewise.
3571         (gimple_omp_task_arg_size): Likewise.
3572         (gimple_omp_task_set_copy_fn): Likewise.
3573         (gimple_omp_task_copy_fn_ptr): Likewise.
3574         (gimple_omp_task_copy_fn): Likewise.
3575         (gimple_omp_task_set_data_arg): Likewise.
3576         (gimple_omp_task_data_arg_ptr): Likewise.
3577         (gimple_omp_task_data_arg): Likewise.
3578         (gimple_omp_task_set_child_fn): Likewise.
3579         (gimple_omp_task_child_fn_ptr): Likewise.
3580         (gimple_omp_task_child_fn): Likewise.
3581         (gimple_omp_task_set_clauses): Likewise.
3582         (gimple_omp_task_clauses_ptr): Likewise.
3583         (gimple_omp_task_clauses): Likewise.
3584         (gimple_omp_parallel_set_data_arg): Likewise.
3585         (gimple_omp_parallel_data_arg_ptr): Likewise.
3586         (gimple_omp_parallel_data_arg): Likewise.
3587         (gimple_omp_parallel_set_child_fn): Likewise.
3588         (gimple_omp_parallel_child_fn_ptr): Likewise.
3589         (gimple_omp_parallel_child_fn): Likewise.
3590         (gimple_omp_parallel_set_clauses): Likewise.
3591         (gimple_omp_parallel_clauses_ptr): Likewise.
3592         (gimple_omp_parallel_clauses): Likewise.
3593         (gimple_omp_for_set_pre_body): Likewise.
3594         (gimple_omp_for_pre_body_ptr): Likewise.
3595         (gimple_omp_for_set_incr): Likewise.
3596         (gimple_omp_for_incr_ptr): Likewise.
3597         (gimple_omp_for_incr): Likewise.
3598         (gimple_omp_for_set_final): Likewise.
3599         (gimple_omp_for_final_ptr): Likewise.
3600         (gimple_omp_for_final): Likewise.
3601         (gimple_omp_for_set_initial): Likewise.
3602         (gimple_omp_for_initial_ptr): Likewise.
3603         (gimple_omp_for_initial): Likewise.
3604         (gimple_omp_for_set_index): Likewise.
3605         (gimple_omp_for_index_ptr): Likewise.
3606         (gimple_omp_for_index): Likewise.
3607         (gimple_omp_for_collapse): Likewise.
3608         (gimple_omp_for_set_clauses): Likewise.
3609         (gimple_omp_for_clauses_ptr): Likewise.
3610         (gimple_omp_for_clauses): Likewise.
3611         (gimple_omp_critical_set_name): Likewise.
3612         (gimple_omp_critical_name_ptr): Likewise.
3613         (gimple_omp_critical_name): Likewise.
3614         (gimple_eh_dispatch_set_region): Likewise.
3615         (gimple_eh_dispatch_region): Likewise.
3616         (gimple_resx_set_region): Likewise.
3617         (gimple_resx_region): Likewise.
3618         (gimple_phi_set_arg): Likewise.
3619         (gimple_phi_arg): Likewise.
3620         (gimple_phi_set_result): Likewise.
3621         (gimple_phi_result_ptr): Likewise.
3622         (gimple_phi_result): Likewise.
3623         (gimple_phi_num_args): Likewise.
3624         (gimple_phi_capacity): Likewise.
3625         (gimple_wce_set_cleanup): Likewise.
3626         (gimple_wce_cleanup_ptr): Likewise.
3627         (gimple_try_set_cleanup): Likewise.
3628         (gimple_try_set_eval): Likewise.
3629         (gimple_try_cleanup_ptr): Likewise.
3630         (gimple_try_eval_ptr): Likewise.
3631         (gimple_eh_else_set_e_body): Likewise.
3632         (gimple_eh_else_set_n_body): Likewise.
3633         (gimple_eh_else_e_body_ptr): Likewise.
3634         (gimple_eh_else_n_body_ptr): Likewise.
3635         (gimple_eh_must_not_throw_set_fndecl): Likewise.
3636         (gimple_eh_must_not_throw_fndecl): Likewise.
3637         (gimple_eh_filter_set_failure): Likewise.
3638         (gimple_eh_filter_set_types): Likewise.
3639         (gimple_eh_filter_failure_ptr): Likewise.
3640         (gimple_eh_filter_types_ptr): Likewise.
3641         (gimple_eh_filter_types): Likewise.
3642         (gimple_catch_set_handler): Likewise.
3643         (gimple_catch_set_types): Likewise.
3644         (gimple_catch_handler_ptr): Likewise.
3645         (gimple_catch_types_ptr): Likewise.
3646         (gimple_catch_types): Likewise.
3647         (gimple_asm_string): Likewise.
3648         (gimple_asm_set_label_op): Likewise.
3649         (gimple_asm_label_op): Likewise.
3650         (gimple_asm_set_clobber_op): Likewise.
3651         (gimple_asm_clobber_op): Likewise.
3652         (gimple_asm_set_output_op): Likewise.
3653         (gimple_asm_output_op_ptr): Likewise.
3654         (gimple_asm_output_op): Likewise.
3655         (gimple_asm_set_input_op): Likewise.
3656         (gimple_asm_input_op_ptr): Likewise.
3657         (gimple_asm_input_op): Likewise.
3658         (gimple_asm_nlabels): Likewise.
3659         (gimple_asm_nclobbers): Likewise.
3660         (gimple_asm_noutputs): Likewise.
3661         (gimple_asm_ninputs): Likewise.
3662         (gimple_bind_set_block): Likewise.
3663         (gimple_bind_block): Likewise.
3664         (gimple_bind_add_seq): Likewise.
3665         (gimple_bind_add_stmt): Likewise.
3666         (gimple_bind_set_body): Likewise.
3667         (gimple_bind_body_ptr): Likewise.
3668         (gimple_bind_append_vars): Likewise.
3669         (gimple_bind_set_vars): Likewise.
3670         (gimple_bind_vars): Likewise.
3671         (gimple_call_clobber_set): Likewise.
3672         (gimple_call_use_set): Likewise.
3673         (gimple_call_set_internal_fn): Likewise.
3674         (gimple_call_set_fntype): Likewise.
3675         (gimple_call_fntype): Likewise.
3676         (gimple_omp_return_lhs_ptr): Likewise.
3677         (gimple_omp_return_lhs): Likewise.
3678         (gimple_omp_return_set_lhs): Likewise.
3679         (gimple_omp_taskreg_set_data_arg): Likewise.
3680         (gimple_omp_taskreg_data_arg_ptr): Likewise.
3681         (gimple_omp_taskreg_data_arg): Likewise.
3682         (gimple_omp_taskreg_set_child_fn): Likewise.
3683         (gimple_omp_taskreg_child_fn_ptr): Likewise.
3684         (gimple_omp_taskreg_child_fn): Likewise.
3685         (gimple_omp_taskreg_set_clauses): Likewise.
3686         (gimple_omp_taskreg_clauses_ptr): Likewise.
3687         (gimple_omp_taskreg_clauses): Likewise.
3688         (gimple_vuse): Likewise.
3689         (gimple_vdef): Likewise.
3690         (gimple_vuse_ptr): Likewise.
3691         (gimple_vdef_ptr): Likewise.
3692         * tree-inline.c (copy_debug_stmt): Likewise.
3693         * tree-phinodes.c (make_phi_node): Likewise.
3695         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3696         (is_a_helper <gimple_statement_with_ops>::test): New.
3697         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3698         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3700         * gimple-streamer-in.c (input_gimple_stmt): Port from union
3701         access to use of as_a.
3702         * gimple.c (gimple_build_asm_1): Likewise.
3703         (gimple_build_try): Likewise.  Also, return a specific subclass
3704         rather than just gimple.
3705         (gimple_build_resx): Port from union access to use of as_a.
3706         (gimple_build_eh_dispatch): Likewise.
3707         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
3708         now that gengtype no longer provides a typed allocator function.
3709         (gimple_copy): Likewise.
3710         * gimple.h (gimple_build_try): Return a specific subclass rather
3711         than just gimple.
3712         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3713         with subclass access by making use of new return type of
3714         gimple_build_try.
3715         * tree-phinodes.c: (allocate_phi_node): Return a
3716         "gimple_statement_phi *" rather than just a gimple.
3717         (resize_phi_node): Likewise.
3718         (make_phi_node): Replace union access with subclass access by
3719         making use of new return type of allocate_phi_node.
3720         (reserve_phi_args_for_new_edge): Replace union access with as_a.
3721         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3722         than just a gimple.
3723         (remove_phi_args): Update for change to remove_phi_arg_num.
3725         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3726         code field to reflect inheritance, rather than embedding of
3727         the base gimple type.
3729 2013-11-19  Richard Biener  <rguenther@suse.de>
3731         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3732         and destructor and make fel_next a member function.
3733         (fel_next): Transform into ...
3734         (loop_iterator::next): ... this.
3735         (fel_init): Transform into ...
3736         (loop_iterator::loop_iterator): ... this.
3737         (loop_iterator::~loop_iterator): New.
3738         (FOR_EACH_LOOP): Remove loop-iterator argument.
3739         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3740         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3741         graphite-clast-to-gimple.c, graphite-scop-detection.c,
3742         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3743         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3744         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3745         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3746         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3747         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3748         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3749         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3750         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3751         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
3752         FOR_EACH_LOOP_BREAK with break.
3754 2013-11-19  Richard Biener  <rguenther@suse.de>
3756         PR tree-optimization/59164
3757         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3758         Uncomment assert.
3759         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3760         whether we can create an epilogue loop to reflect thecases where
3761         we create one.
3763 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
3765         * graphite-sese-to-poly.c: Include expr.h.
3767 2013-11-19  Richard Biener  <rguenther@suse.de>
3769         PR middle-end/58956
3770         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3771         loads into stmts that may clobber it.
3773 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
3775         * cgraphunit.c (symtab_terminator): New variable.
3776         (queued_nodes): Renamed from first.  Use symtab_terminator as
3777         initializer.
3778         (analyze_functions): Adjust accordingly.
3779         (cgraph_process_new_functions): Return void.
3780         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3782 2013-11-19  Marek Polacek  <polacek@redhat.com>
3784         * opts.c (common_handle_option): Add -fsanitize=null option.
3785         Turn off -fdelete-null-pointer-checks option when doing the
3786         NULL pointer checking.
3787         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3788         * tree-pass.h (make_pass_ubsan): Declare.
3789         (make_pass_sanopt): Declare.
3790         * timevar.def (TV_TREE_UBSAN): New timevar.
3791         * passes.def: Add pass_sanopt and pass_ubsan.
3792         * ubsan.h (ubsan_null_ckind): New enum.
3793         (ubsan_mismatch_data): New struct.
3794         (ubsan_expand_null_ifn): Declare.
3795         (ubsan_create_data): Adjust declaration.
3796         (ubsan_type_descriptor): Likewise.
3797         * asan.c: Include "ubsan.h".
3798         (pass_data_sanopt): New pass.
3799         (execute_sanopt): New function.
3800         (gate_sanopt): Likewise.
3801         (make_pass_sanopt): Likewise.
3802         (class pass_sanopt): New class.
3803         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3804         gimple-iterator.h and cfgloop.h.
3805         (PROB_VERY_UNLIKELY): Define.
3806         (tree_type_map_hash): New function.
3807         (ubsan_type_descriptor): Add new parameter.
3808         Improve type name generation.
3809         (ubsan_create_data): Add new parameter.  Add pointer data into
3810         ubsan structure.
3811         (ubsan_expand_null_ifn): New function.
3812         (instrument_member_call): Likewise.
3813         (instrument_mem_ref): Likewise.
3814         (instrument_null): Likewise.
3815         (ubsan_pass): Likewise.
3816         (gate_ubsan): Likewise.
3817         (make_pass_ubsan): Likewise.
3818         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3819         (class pass_ubsan): New class.
3820         (pass_data_ubsan): New pass.
3821         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3822         * internal-fn.c (expand_UBSAN_NULL): New function.
3823         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3824         even when !flag_toplevel_reorder.
3825         * internal-fn.def (UBSAN_NULL): New.
3827 2013-11-19  Jan Hubicka  <jh@suse.cz>
3829         * cgraph.c (cgraph_create_indirect_edge): Use
3830         get_polymorphic_call_info.
3831         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3832         maybe_in_construction and maybe_derived_type.
3833         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3834         (ipa_dummy_polymorphic_call_context): New global var.
3835         (possible_polymorphic_call_targets): Add context paramter.
3836         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3837         (possible_polymorphic_call_target_p): Likewise.
3838         (get_polymorphic_call_info): New function.
3839         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3840         (add_type_duplicate): Remove forgotten debug output.
3841         (method_class_type): Add sanity check.
3842         (maybe_record_node): Add FINALP parameter.
3843         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3844         by info by get_binfo_at_offset.
3845         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3846         parameters; pass them to record-binfo.
3847         (polymorphic_call_target_d): Add context and FINAL.
3848         (polymorphic_call_target_hasher::hash): Hash context.
3849         (polymorphic_call_target_hasher::equal): Compare context.
3850         (free_polymorphic_call_targets_hash):
3851         (get_class_context): New function.
3852         (contains_type_p): New function.
3853         (get_polymorphic_call_info): New function.
3854         (walk_bases): New function.
3855         (possible_polymorphic_call_targets): Add context parameter; honnor it.
3856         (dump_possible_polymorphic_call_targets): Dump context.
3857         (possible_polymorphic_call_target_p): Add context.
3858         (update_type_inheritance_graph): Update comment.s
3859         (ipa_set_jf_known_type): Assert that compoentn type is known.
3860         (ipa_note_param_call): Do not tamper with offsets.
3861         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3862         outer type.
3863         (update_indirect_edges_after_inlining): Likewise.
3864         (ipa_write_indirect_edge_info): Stream new fields.
3865         (ipa_read_indirect_edge_info): Stream in new fields.
3867 2013-11-19  Jan Hubicka  <jh@suse.cz>
3869         * tree-pretty-print.c (dump_generic_node): Print class type of
3870         OBJ_TYPE_REF.
3872 2013-11-19  Joey Ye  <joey.ye@arm.com>
3874         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3875         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3876         for new option.
3877         * config/arm/arm.c (arm_option_override): By default disable
3878         -marm-pic-data-is-text-relative.
3879         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3880         (arm_assemble_integer): Likewise.
3881         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3882         New macro to initialize -marm-pic-data-is-text-relative.
3884 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
3886         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3887         (address_cost_data): New field.
3888         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3889         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
3891 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
3893         * config/aarch64/aarch64.md: Remove v8type from all insns.
3895 2013-11-19  Richard Biener  <rguenther@suse.de>
3897         PR tree-optimization/57517
3898         * tree-predcom.c (combinable_refs_p): Verify the combination
3899         is always executed when the refs are.
3901 2013-11-19  Jeff Law  <law@redhat.com>
3903         * tree-ssa-threadupdate.c: Include ssa-iterators.h
3904         (copy_phi_arg_into_existing_phi): New function.
3905         (any_remaining_duplicated_blocks): Likewise.
3906         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3907         blocks on a jump threading path.
3909         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
3910         thread through a joiner which has the latch edge.
3912 2013-11-19  Jan Hubicka  <jh@suse.cz>
3914         * md.texi (setmem): Document new parameter.
3915         * optabs.c (maybe_gen_insn): Support 9 operands.
3916         * builtins.c (determine_block_size): Add probable_max_size;
3917         support anti-ranges.
3918         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3919         probable_max_size.
3920         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3921         emit_block_move, clear_storage_hints, set_storage_via_setmem):
3922         Likewise.
3923         * expr.h (emit_block_move_hints, clear_storage_hints,
3924         set_storage_via_setmem): Update prototype.
3925         * i386.md (setmem, movmem patterns): Add 9th operand.
3926         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3927         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3928         argument; pass it to decide_alg.
3930 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3932         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3933         (n_basic_blocks_for_fn): ...this.
3935         (n_basic_blocks): Eliminate macro as work towards making uses of
3936         cfun be explicit.
3938         * cfgloop.c (init_loops_structure): Update for renaming of
3939         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3940         * graph.c (draw_cfg_nodes_no_loops): Likewise.
3941         * ipa-utils.c (ipa_merge_profiles): Likewise.
3942         * lto-streamer-in.c (make_new_block): Likewise.
3943         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3944         (dump_function_to_file): Likewise.
3946         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3947         macro with "n_basic_blocks_for_fn (cfun)".
3948         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3949         (duplicate_computed_gotos): Likewise.
3950         (reorder_basic_blocks): Likewise.
3951         * bt-load.c (augment_live_range): Likewise.
3952         * cfg.c (expunge_block): Likewise.
3953         (compact_blocks): Likewise.
3954         * cfganal.c (single_pred_before_succ_order): Likewise.
3955         (compute_idf): Likewise.
3956         (flow_dfs_compute_reverse_init): Likewise.
3957         (pre_and_rev_post_order_compute): Likewise.
3958         (pre_and_rev_post_order_compute_fn): Likewise.
3959         (inverted_post_order_compute): Likewise.
3960         (post_order_compute): Likewise.
3961         (print_edge_list): Likewise.
3962         (find_unreachable_blocks): Likewise.
3963         (mark_dfs_back_edges): Likewise.
3964         * cfgcleanup.c (try_optimize_cfg): Likewise.
3965         (try_forward_edges): Likewise.
3966         * cfghooks.c (dump_flow_info): Likewise.
3967         * cfgloop.c (verify_loop_structure): Likewise.
3968         (get_loop_body): Likewise.
3969         (flow_loops_find): Likewise.
3970         * cfgloopmanip.c (add_loop): Likewise.
3971         (remove_path): Likewise.
3972         (find_path): Likewise.
3973         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3974         (rtl_verify_bb_layout): Likewise.
3975         (entry_of_function): Likewise.
3976         (rtl_create_basic_block): Likewise.
3977         * coverage.c (coverage_compute_cfg_checksum): Likewise.
3978         * cprop.c (one_cprop_pass): Likewise.
3979         (is_too_expensive): Likewise.
3980         * df-core.c (df_compute_cfg_image): Likewise.
3981         (df_compact_blocks): Likewise.
3982         (df_worklist_dataflow_doublequeue): Likewise.
3983         * dominance.c (calculate_dominance_info): Likewise.
3984         (calc_dfs_tree): Likewise.
3985         (calc_dfs_tree_nonrec): Likewise.
3986         (init_dom_info): Likewise.
3987         * domwalk.c (cmp_bb_postorder): Likewise.
3988         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3989         (generate_setjmp_warnings): Likewise.
3990         * fwprop.c (build_single_def_use_links): Likewise.
3991         * gcse.c (is_too_expensive): Likewise.
3992         (one_code_hoisting_pass): Likewise.
3993         (one_pre_gcse_pass): Likewise.
3994         * graphite.c (graphite_initialize): Likewise.
3995         * haifa-sched.c (haifa_sched_init): Likewise.
3996         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3997         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3998         * ira-build.c (ira_build): Likewise.
3999         * lcm.c (compute_nearerout): Likewise.
4000         (compute_available): Likewise.
4001         (compute_laterin): Likewise.
4002         (compute_antinout_edge): Likewise.
4003         * lra-lives.c (lra_create_live_ranges): Likewise.
4004         * lra.c (has_nonexceptional_receiver): Likewise.
4005         * mcf.c (create_fixup_graph): Likewise.
4006         * profile.c (branch_prob): Likewise.
4007         * reg-stack.c (convert_regs_2): Likewise.
4008         * regrename.c (regrename_analyze): Likewise.
4009         * reload1.c (has_nonexceptional_receiver): Likewise.
4010         * reorg.c (dbr_schedule): Likewise.
4011         * sched-deps.c (sched_deps_init): Likewise.
4012         * sched-ebb.c (schedule_ebbs): Likewise.
4013         * sched-rgn.c (extend_regions): Likewise.
4014         (schedule_insns): Likewise.
4015         (sched_rgn_init): Likewise.
4016         (extend_rgns): Likewise.
4017         (haifa_find_rgns): Likewise.
4018         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
4019         (sel_recompute_toporder): Likewise.
4020         * sel-sched.c (run_selective_scheduling): Likewise.
4021         * store-motion.c (one_store_motion_pass): Likewise.
4022         (remove_reachable_equiv_notes): Likewise.
4023         * tracer.c (tracer): Likewise.
4024         (tail_duplicate): Likewise.
4025         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
4026         (dump_cfg_stats): Likewise.
4027         (gimple_dump_cfg): Likewise.
4028         (create_bb): Likewise.
4029         (build_gimple_cfg): Likewise.
4030         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
4031         * tree-inline.c (optimize_inline_calls): Likewise.
4032         (fold_marked_statements): Likewise.
4033         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
4034         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4035         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4036         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
4037         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4038         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
4039         * tree-ssa-pre.c (do_pre): Likewise.
4040         (init_pre): Likewise.
4041         (compute_avail): Likewise.
4042         * tree-ssa-reassoc.c (init_reassoc): Likewise.
4043         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4044         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
4045         (init_worklist): Likewise.
4046         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4047         * var-tracking.c (variable_tracking_main_1): Likewise.
4048         (vt_find_locations): Likewise.
4049         (vt_stack_adjustments): Likewise.
4050         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
4051         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
4053 2013-11-18  Jan Hubicka  <jh@suse.cz>
4055         * profile.c (compute_branch_probabilities): Do not sanity check
4056         run_max.
4058 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
4060         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
4061         GET_MODE_PRECISION.
4062         * fold-const.c (fold_single_bit_test_into_sign_test)
4063         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
4065 2013-11-18  Teresa Johnson  <tejohnson@google.com>
4067         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
4068         cfglayout after bb reordering.
4069         * passes.def: Move compgotos before bb reordering since it goes into
4070         cfglayout.
4072 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
4074         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
4075         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
4076         static.
4077         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
4078         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
4079         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
4080         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
4081         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
4082         Remove all_lto_gen_passes.
4083         * passes.c (pass_manager::dump_passes): Remove its use.
4084         (pass_manager::register_pass): Likewise.
4085         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
4086         (pass_manager::pass_manager): Don't initialize or use it.
4087         (write_lto): New static function.
4088         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
4089         instead of using all_lto_gen_passes.
4090         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
4091         pass_ipa_lto_finish_out): Delete.
4092         * tree-pass.h (make_pass_ipa_lto_gimple_out,
4093         make_pass_ipa_lto_finish_out): Don't declare.
4095 2013-11-18  Jeff Law  <law@redhat.com>
4097         * tree-ssa-threadupdate.c (redirection_data): Record two
4098         duplicated blocks instead of just one.
4099         (local_info): Explain why we don't create a template for the
4100         second duplicated block in a thread path.
4101         (create_block_for_threading): Accept argument indicating array
4102         index into redirection_data to store its result.
4103         (lookup_redirection_data): Initialize both duplicate blocks.
4104         (ssa_create_duplicates): If a jump threading path needs multiple
4105         blocks duplicated, then duplicate them.
4106         (ssa_fix_duplicate_block_edges): Corresponding changes.
4107         (ssa_fixup_template_block, thread_single_edge):  Likewise.
4109 2013-11-18  Marek Polacek  <polacek@redhat.com>
4111         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
4113 2013-11-18  Andrew Pinski <apinski@cavium.com>
4114             Steve Ellcey  <sellcey@mips.com>
4116         PR target/56552
4117         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
4118         type restriction from equality_operator on conditonal move.
4119         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
4120         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
4122 2013-11-18  Jeff Law  <law@redhat.com>
4124         * tree-ssa-threadupdate.c: Fix file block comment.
4125         Fix minor indention issue.
4127 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
4129         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
4130         ix86_address_subreg_operand.  Move subreg checks to
4131         ix86_validate_address_register.  Move address override check to
4132         ix86_legitimate_address_p.
4133         (ix86_validate_address_register): New function.
4134         (ix86_legitimate_address_p): Call ix86_validate_address_register
4135         to validate base and index registers.  Add address override check
4136         from ix86_decompose_address.
4137         (ix86_decompose_address): Remove.
4139 2013-11-18  Richard Biener  <rguenther@suse.de>
4141         PR tree-optimization/59125
4142         PR tree-optimization/54570
4143         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
4144         is not complete do not treat component-references with offset zero
4145         but different fields as equal.
4146         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
4147         (compute_object_sizes): Apply TLC.  Propagate the constant
4148         results into all uses and fold their stmts.
4149         * passes.def (pass_all_optimizations): Move pass_object_sizes
4150         after the first pass_forwprop and before pass_fre.
4152 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4154         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4155         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4156         (tree_ctz): Remove cast to unsigned type.
4157         * builtins.c (fold_builtin_memory_op): Likewise.
4158         * dwarf2out.c (descr_info_loc): Likewise.
4159         * godump.c (go_output_typedef): Likewise.
4160         * omp-low.c (expand_omp_simd): Likewise.
4161         * stor-layout.c (excess_unit_span): Likewise.
4162         * tree-object-size.c (addr_object_size): Likewise.
4163         * tree-sra.c (analyze_all_variable_accesses): Likewise.
4164         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4165         (simplify_rotate): Likewise.
4166         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
4167         (handle_pointer_plus): Likewise.
4168         * tree-switch-conversion.c (check_range): Likewise.
4169         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
4170         * tsan.c (instrument_builtin_call): Likewise.
4171         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
4172         * trans-mem.c (tm_log_add): Likewise.
4173         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
4174         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
4175         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
4176         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
4178 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4180         * tree.h (host_integerp, tree_low_cst): Delete.
4181         * tree.c (host_integerp, tree_low_cst): Delete.
4183 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4185         * expr.h: Update comments to refer to tree_to_[su]hwi rather
4186         than tree_low_cst.
4187         * fold-const.c (fold_binary_loc): Likewise.
4188         * expr.c (store_constructor): Use tree_to_uhwi rather than
4189         tree_low_cst.
4190         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
4191         * stmt.c (emit_case_dispatch_table): Likewise.
4192         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4194 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4196         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
4197         config/aarch64/aarch64.c, config/alpha/predicates.md,
4198         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
4199         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
4200         config/mep/mep-pragma.c, config/mips/mips.c,
4201         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
4202         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
4203         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
4204         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
4205         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
4206         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
4207         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
4208         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
4209         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
4210         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
4212 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4214         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
4215         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
4216         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
4217         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
4218         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
4219         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
4220         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
4221         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
4222         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
4223         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
4224         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
4226 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4228         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
4229         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
4231 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4233         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
4234         than host_integerp.
4236 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4238         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
4239         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
4240         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
4241         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
4242         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4243         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
4244         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
4245         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
4246         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
4247         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
4248         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
4249         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
4250         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
4251         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
4252         tree_fits_uhwi_p throughout.
4254 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4256         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
4257         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
4258         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
4259         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
4260         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
4261         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
4262         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
4263         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
4264         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
4265         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4266         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
4267         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
4268         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4269         throughout.
4271 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4273         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
4274         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
4276 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4278         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
4279         flag if it kills its address, not its post-increment.
4281 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
4283         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4284         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4285         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4286         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4287         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4288         (gimple_call_with_bounds_p): New.
4289         (gimple_call_set_with_bounds): New.
4290         (gimple_call_num_nobnd_args): Remove.
4291         (gimple_call_nobnd_arg): Remove.
4292         * tree.h (CALL_WITH_BOUNDS_P): New.
4293         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4295 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
4297         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
4298         (symtab_node_name): Rename to symtab_node::name.
4299         (cgraph_node_asm_name): Remove.
4300         (varpool_node_asm_name): Remove.
4301         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
4302         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
4303         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
4304         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
4305         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
4307 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4309         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
4310         * config/arm/arm.c (arm_cortex_a53_tune): New.
4311         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
4313 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4315         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
4316         (case ${target}): Add bdver4.
4317         * config/i386/bdver3.md: Add bdver4.
4318         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4319         -march=native recognize bdver4 processors.
4320         * config/i386/i386-c.c (ix86_target_macros_internal): Add
4321         bdver4 def_and_undef
4322         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
4323         (m_BDVER4): New definition.
4324         (m_AMD_MULTIPLE): Includes m_BDVER4.
4325         (processor_target_table): Add bdver4 entry.
4326         (static const char *const cpu_names): Add bdver4 entry.
4327         (software_prefetching_beneficial_p): Add bdver3.
4328         (ix86_option_override_internal): Add bdver4 instruction sets.
4329         (ix86_issue_rate): Add bdver4.
4330         (ix86_adjust_cost): Add bdver4.
4331         (ia32_multipass_dfa_lookahead): Add bdver4.
4332         (enum processor_model): Add M_AMDFAM15H_BDVER4.
4333         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
4334         (has_dispatch): Add bdver4.
4335         * config/i386/i386.h (TARGET_BDVER4): New definition.
4336         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
4337         (enum processor_type): Add PROCESSOR_BDVER4.
4338         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
4339         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
4340         * doc/extend.texi: Add details about bdver4.
4341         * doc/invoke.texi: Add details about bdver4. Add
4342         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
4344 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4346         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4347         sdmode_stack_slot also in little-endian mode.
4349 2013-11-17  Jan Hubicka  <jh@suse.cz>
4351         * doc/md.texi (setmem, movstr): Update documentation.
4352         * builtins.c (determine_block_size): New function.
4353         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4354         (expand_builtin_memset_args): Use it and pass it to
4355         set_storage_via_setmem.
4356         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4357         parameters; update call to expander.
4358         (emit_block_move_hints): Add min_size/max_size parameters.
4359         (clear_storage_hints): Likewise.
4360         (set_storage_via_setmem): Likewise.
4361         (clear_storage): Update.
4362         * expr.h (emit_block_move_hints, clear_storage_hints,
4363         set_storage_via_setmem): Update prototypes.
4364         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4365         (ix86_expand_movmem, ix86_expand_setmem): Remove.
4366         (ix86_expand_movmem, ix86_expand_setmem): Remove.
4367         * i386.md (movmem, setmem): Pass parameters.
4369 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
4371         PR target/59153
4372         * config/i386/i386.c (ix86_address_subreg_operand): Do not
4373         reject non-integer subregs.
4374         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4375         Move check for invalid x32 constant addresses ...
4376         (ix86_legitimate_address_p): ... here.
4378 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4380         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4381         parameter and use it in REG_FRAME_RELATED_EXPR note.
4382         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4383         parameter.
4384         (rs6000_emit_prologue): Likewise, but for little endian VSX
4385         stores, pass the source register of the store instead.
4387 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
4389         * gimple.h: Reorder prototypes to match .c declaration order, and
4390         remove protyotypes for functions not in gimple.c.
4391         (LABEL): Move to tree-into-ssa.c.
4392         * gimple.c: Remove unused prototypes.
4393         (get_base_address): Move to tree.c.
4394         * tree.c (get_base_address): Relocate from gimple.c.
4395         * builtins.h (validate_gimple_arglist): Add prototype.
4396         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4397         * cfgexpand.h: New File.
4398         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4399         * tree.h (build_addr): Move to tree-nested.h.
4400         * tree-nested.h: New File.
4401         (build_addr, lower_nested_functions, insert_field_into_struct): Add
4402         prototypes.
4403         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4404         * ipa-inline-analysis.c: Include cfgexpand.h.
4405         * cgraphunit.c: Include tree-nested.h.
4406         * omp-low.c: Likewise.
4407         * tree-parloops.c: Likewise.
4408         * gimple-low.h: Likewise.
4409         * tree-profile.h: Likewise.
4410         * expr.c: Include cfgexpand.h.
4411         * tree-affine.c: Likewise.
4412         * tree-ssa.c: Likewise.
4413         * tree-ssa-loop-im.c: Include trans-mem.h.
4414         * tree-ssa-tail-merge.c: Likewise.
4415         * value-prof.c: Include builtins.h and tree-nested.h.
4416         * tree-into-ssa.c (LABEL): Define here.
4418 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
4420         * config/arc/arc.c (arc_predicate_delay_insns): New function.
4421         (pass_data_arc_predicate_delay_insns): New pass_data instance.
4422         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4423         (make_pass_arc_predicate_delay_insns): New function.
4424         (arc_init): Register pass_arc_predicate_delay_insns if
4425         flag_delayed_branch is active.
4427 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
4429         * config/arc/constraints.md (Rcq): Simplify register number test.
4431 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4433         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4435 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
4437         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4438         is null.
4440 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4442         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4443         * gimple-pretty-print.c (dump_omp_for): Add case for
4444         GF_OMP_FOR_KIND_CILKSIMD.
4445         * gimple.h (enum gf_mask): Restructure entries to add
4446         GF_OMP_FOR_KIND_CILKSIMD.
4447         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4448         (gimplify_omp_for): Handle CILK_SIMD.
4449         (gimplify_expr): Add ccase for CILK_SIMD.
4450         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4451         (build_outer_var_ref): Same.
4452         (check_omp_nesting_restrictions): Same.
4453         (lower_rec_input_clauses): Same.
4454         (lower_lastprivate_clauses): Same.
4455         (expand_omp_for): Same.
4456         (execute_expand_omp): Check flag_enable_cilkplus.
4457         (execute_lower_omp): Same.
4458         (diagnose_sb_0): Handle CILK_SIMD.
4459         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4460         (setjmp_or_longjmp_p): New.
4461         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4462         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4463         * tree.def: Add tree code for CILK_SIMD.
4465 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4467         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4468         Remove.
4469         (altivec_vperm_<mode>): Revert earlier little endian change.
4470         (*altivec_vperm_<mode>_internal): Remove.
4471         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4472         (*altivec_vperm_<mode>_uns_internal): Remove.
4473         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4475 2013-11-15  Jeff Law  <law@redhat.com>
4477         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4478         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
4479         * gimple-ssa-isolate-paths.c
4480         (find_implicit_erroneous_behaviour): Corresponding changes.
4481         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4482         (find_explicit_erroneous_behaviour): Likewise.
4484 2013-11-15  Jeff Law  <law@redhat.com>
4486         * ifcvt.c (find_cond_trap): Properly handle case where
4487         trap_bb == else_bb.
4489 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
4491         * configure: Regenerate.
4493 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
4495         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4496         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4497         where it is incorrect or missing.
4499 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
4501         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4502         host_integerp test.
4503         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4504         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4505         constant.
4506         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4507         pair with a TREE_CODE test and TREE_INT_CST_LOW.
4508         * tree-vect-generic.c (expand_vector_divmod): Likewise.
4510 2013-11-15  Richard Biener  <rguenther@suse.de>
4512         PR tree-optimization/50262
4513         * tree-ssa-alias.h (struct pt_solution): Split
4514         vars_contains_global into vars_contains_nonlocal,
4515         vars_contains_escaped and vars_contains_escaped_heap.
4516         * tree-ssa-structalias.c (label_visit): Expand comment.
4517         (handle_lhs_call): Adjust comment.
4518         (set_uids_in_ptset): Set the new flags appropriately.
4519         (pt_solution_set): Adjust.
4520         (pt_solution_set_var): Likewise.
4521         (pt_solution_ior_into): Likewise.
4522         (pt_solution_includes_global): Likewise.
4523         (pt_solutions_intersect_1): Optimize escaped handling.
4524         (compute_points_to_sets): Remove heap variable globalization.
4525         (ipa_escaped_pt): Adjust initializer.
4526         (pass_data_ipa_pta): Do not run TODO_update_ssa.
4527         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4528         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4530 2013-11-15  Richard Biener  <rguenther@suse.de>
4532         * tree-loop-distribution.c (tree_loop_distribution): Make sure
4533         to distribute all stores.
4535 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4537         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4539 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
4541         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4542         * configure.ac: Determine target_header_dir earlier.
4543         (--with-glibc-version): New configure option.
4544         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4545         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4546         * configure: Regenerate.
4547         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4548         native toolchains for default.
4549         (--with-glibc-version): Document.
4551 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
4553         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4555 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
4557         * lto-streamer-in.c (input function): Call cgraph_create_node if
4558         cgraph_get_node failed.
4560 2013-11-14   Olivier Hainque  <hainque@adacore.com>
4562         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4563         defer allocation of DECL_IGNORED_P variables at toplevel unless really
4564         small.  Factorize size threshold computation from the existing one.
4565         (expand_used_vars): Refine comment.
4567 2013-11-14  Cong Hou  <congh@google.com>
4569         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4570         address field as it can be obtained from dr.  Rename the struct.
4571         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4572         steps of data references during sort.
4573         (vect_prune_runtime_alias_test_list): Adjust with the change to
4574         struct dr_with_seg_len.
4575         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4576         Adjust with the change to struct dr_with_seg_len.
4578 2013-11-14  Jeff Law  <law@redhat.com>
4580         PR middle-end/59127
4581         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4582         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4583         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4584         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4585         edges, then ignore it.  If the statement exhibiting erroneous
4586         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4587         then we can not optimize.
4588         (find_explicit_erroneous_behaviour): Likewise.
4590 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
4592         * gimplify-me.h:  New file.  Add prototypes.
4593         * gimplify.h: Don't include gimple.h.
4594         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4595         Relocate from gimple.h.
4596         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4597         is_gimple_sizepos): Move to gimplify.h.
4598         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4599         (enum gsi_iterator_update): Move to gimple-iterator.h.
4600         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4601         * gimplify-me.c: New File.
4602         (force_gimple_operand_1, force_gimple_operand,
4603         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4604         gimple_regimplify_operands): Relocate from gimplify.c.
4605         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4606         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4607         gimple_regimplify_operands): Move to gimplify-me.c.
4608         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4609         from gimple.h.
4610         * Makefile.in (OBJS): Add gimplify-me.o
4611         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4612         required.
4613         * cfgloopmanip.c: Likewise.
4614         * cgraphunit.c: Likewise.
4615         * cilk-common.c: Likewise.
4616         * fold-const.c: Likewise.
4617         * function.c: Likewise.
4618         * gimple-expr.c: Likewise.
4619         * gimple-fold.c: Likewise.
4620         * gimple-ssa-strength-reduction.c: Likewise.
4621         * gimple.c: Likewise.
4622         * graphite-clast-to-gimple.c: Likewise.
4623         * graphite-sese-to-poly.c: Likewise.
4624         * ipa-prop.c: Likewise.
4625         * ipa-split.c: Likewise.
4626         * ipa.c: Likewise.
4627         * langhooks.c: Likewise.
4628         * omp-low.c: Likewise.
4629         * sese.c: Likewise.
4630         * stor-layout.c: Likewise.
4631         * targhooks.c: Likewise.
4632         * trans-mem.c: Likewise.
4633         * tree-affine.c: Likewise.
4634         * tree-cfg.c: Likewise.
4635         * tree-cfgcleanup.c: Likewise.
4636         * tree-complex.c: Likewise.
4637         * tree-if-conv.c: Likewise.
4638         * tree-inline.c: Likewise.
4639         * tree-loop-distribution.c: Likewise.
4640         * tree-nested.c: Likewise.
4641         * tree-parloops.c: Likewise.
4642         * tree-predcom.c: Likewise.
4643         * tree-profile.c: Likewise.
4644         * tree-scalar-evolution.c: Likewise.
4645         * tree-sra.c: Likewise.
4646         * tree-ssa-address.c: Likewise.
4647         * tree-ssa-ccp.c: Likewise.
4648         * tree-ssa-dce.c: Likewise.
4649         * tree-ssa-forwprop.c: Likewise.
4650         * tree-ssa-ifcombine.c: Likewise.
4651         * tree-ssa-loop-im.c: Likewise.
4652         * tree-ssa-loop-ivopts.c: Likewise.
4653         * tree-ssa-loop-manip.c: Likewise.
4654         * tree-ssa-loop-niter.c: Likewise.
4655         * tree-ssa-loop-prefetch.c: Likewise.
4656         * tree-ssa-loop-unswitch.c: Likewise.
4657         * tree-ssa-math-opts.c: Likewise.
4658         * tree-ssa-phiopt.c: Likewise.
4659         * tree-ssa-phiprop.c: Likewise.
4660         * tree-ssa-pre.c: Likewise.
4661         * tree-ssa-propagate.c: Likewise.
4662         * tree-ssa-reassoc.c: Likewise.
4663         * tree-ssa-sccvn.c: Likewise.
4664         * tree-ssa-strlen.c: Likewise.
4665         * tree-ssa.c: Likewise.
4666         * tree-switch-conversion.c: Likewise.
4667         * tree-tailcall.c: Likewise.
4668         * tree-vect-data-refs.c: Likewise.
4669         * tree-vect-generic.c: Likewise.
4670         * tree-vect-loop-manip.c: Likewise.
4671         * tree-vect-loop.c: Likewise.
4672         * tree-vect-patterns.c: Likewise.
4673         * tree-vect-stmts.c: Likewise.
4674         * tree.c: Likewise.
4675         * tsan.c: Likewise.
4676         * value-prof.c: Likewise.
4677         * config/aarch64/aarch64.c: Likewise.
4678         * config/alpha/alpha.c: Likewise.
4679         * config/darwin.c: Likewise.
4680         * config/i386/i386.c: Likewise.
4681         * config/ia64/ia64.c: Likewise.
4682         * config/mep/mep.c: Likewise.
4683         * config/mips/mips.c: Likewise.
4684         * config/rs6000/rs6000.c: Likewise.
4685         * config/s390/s390.c: Likewise.
4686         * config/sh/sh.c: Likewise.
4687         * config/sparc/sparc.c: Likewise.
4688         * config/spu/spu.c: Likewise.
4689         * config/stormy16/stormy16.c: Likewise.
4690         * config/tilegx/tilegx.c: Likewise.
4691         * config/tilepro/tilepro.c: Likewise.
4692         * config/xtensa/xtensa.c: Likewise.
4694 2013-11-14  Diego Novillo  <dnovillo@google.com>
4696         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4698 2013-11-14  Diego Novillo  <dnovillo@google.com>
4700         * tree.h: Include fold-const.h.
4701         (aggregate_value_p): Moved to function.h.
4702         (alloca_call_p): Moved to calls.h.
4703         (allocate_struct_function): Moved to function.h.
4704         (apply_tm_attr): Moved to attribs.h.
4705         (array_at_struct_end_p): Moved to expr.h.
4706         (array_ref_element_size): Moved to tree-dfa.h.
4707         (array_ref_low_bound): Moved to tree-dfa.h.
4708         (array_ref_up_bound): Moved to tree.h.
4709         (assemble_alias): Moved to cgraph.h.
4710         (bit_from_pos): Moved to stor-layout.h.
4711         (build_addr): Moved to tree-nested.h.
4712         (build_duplicate_type): Moved to tree-inline.h.
4713         (build_fold_addr_expr): Moved to fold-const.h.
4714         (build_fold_addr_expr_with_type): Moved to fold-const.h.
4715         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4716         (build_fold_indirect_ref): Moved to fold-const.h.
4717         (build_fold_indirect_ref_loc): Moved to fold-const.h.
4718         (build_personality_function): Moved to tree.h.
4719         (build_range_check): Moved to fold-const.h.
4720         (build_simple_mem_ref): Moved to fold-const.h.
4721         (build_simple_mem_ref_loc): Moved to fold-const.h.
4722         (build_tm_abort_call): Moved to trans-mem.h.
4723         (byte_from_pos): Moved to stor-layout.h.
4724         (call_expr_flags): Moved to calls.h.
4725         (can_move_by_pieces): Moved to expr.h.
4726         (categorize_ctor_elements): Moved to expr.h.
4727         (change_decl_assembler_name): Moved to gcc-symtab.h.
4728         (combine_comparisons): Moved to fold-const.h.
4729         (complete_ctor_at_level_p): Moved to tree.h.
4730         (component_ref_field_offset): Moved to tree-dfa.h.
4731         (compute_builtin_object_size): Moved to tree-object-size.h.
4732         (compute_record_mode): Moved to stor-layout.h.
4733         (constant_boolean_node): Moved to fold-const.h.
4734         (constructor_static_from_elts_p): Moved to varasm.h.
4735         (cxx11_attribute_p): Moved to attribs.h.
4736         (debug_body): Moved to print-tree.h.
4737         (debug_find_tree): Moved to tree-inline.h.
4738         (debug_fold_checksum): Moved to fold-const.h.
4739         (debug_head): Moved to print-tree.h.
4740         (debug_head): Moved to print-tree.h.
4741         (debug_raw): Moved to print-tree.h.
4742         (debug_tree): Moved to print-tree.h.
4743         (debug_vec_tree): Moved to print-tree.h.
4744         (debug_verbose): Moved to print-tree.h.
4745         (debug_verbose): Moved to print-tree.h.
4746         (decl_attributes): Moved to attribs.h.
4747         (decl_binds_to_current_def_p): Moved to varasm.h.
4748         (decl_default_tls_model): Moved to varasm.h.
4749         (decl_replaceable_p): Moved to varasm.h.
4750         (div_if_zero_remainder): Moved to fold-const.h.
4751         (double_int mem_ref_offset): Moved to fold-const.h.
4752         (dump_addr): Moved to print-tree.h.
4753         (element_precision): Moved to machmode.h.
4754         (expand_dummy_function_end): Moved to function.h.
4755         (expand_function_end): Moved to function.h.
4756         (expand_function_start): Moved to function.h.
4757         (expand_label): Moved to stmt.h.
4758         (expr_first): Moved to tree-iterator.h.
4759         (expr_last): Moved to tree-iterator.h.
4760         (finalize_size_functions): Moved to stor-layout.h.
4761         (finish_builtin_struct): Moved to stor-layout.h.
4762         (finish_record_layout): Moved to stor-layout.h.
4763         (fixup_signed_type): Moved to stor-layout.h.
4764         (fixup_unsigned_type): Moved to stor-layout.h.
4765         (flags_from_decl_or_type): Moved to calls.h.
4766         (fold): Moved to fold-const.h.
4767         (fold_abs_const): Moved to fold-const.h.
4768         (fold_binary): Moved to fold-const.h.
4769         (fold_binary_loc): Moved to fold-const.h.
4770         (fold_binary_to_constant): Moved to fold-const.h.
4771         (fold_build1): Moved to fold-const.h.
4772         (fold_build1_initializer_loc): Moved to fold-const.h.
4773         (fold_build1_loc): Moved to fold-const.h.
4774         (fold_build1_stat_loc): Moved to fold-const.h.
4775         (fold_build2): Moved to fold-const.h.
4776         (fold_build2_initializer_loc): Moved to fold-const.h.
4777         (fold_build2_loc): Moved to fold-const.h.
4778         (fold_build2_stat_loc): Moved to fold-const.h.
4779         (fold_build3): Moved to fold-const.h.
4780         (fold_build3_loc): Moved to fold-const.h.
4781         (fold_build3_stat_loc): Moved to fold-const.h.
4782         (fold_build_call_array): Moved to fold-const.h.
4783         (fold_build_call_array_initializer): Moved to fold-const.h.
4784         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4785         (fold_build_call_array_loc): Moved to fold-const.h.
4786         (fold_build_cleanup_point_expr): Moved to fold-const.h.
4787         (fold_convert): Moved to fold-const.h.
4788         (fold_convert_loc): Moved to fold-const.h.
4789         (fold_convertible_p): Moved to fold-const.h.
4790         (fold_defer_overflow_warnings): Moved to fold-const.h.
4791         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4792         (fold_fma): Moved to fold-const.h.
4793         (fold_ignored_result): Moved to fold-const.h.
4794         (fold_indirect_ref): Moved to fold-const.h.
4795         (fold_indirect_ref_1): Moved to fold-const.h.
4796         (fold_indirect_ref_loc): Moved to fold-const.h.
4797         (fold_read_from_constant_string): Moved to fold-const.h.
4798         (fold_real_zero_addition_p): Moved to fold-const.h.
4799         (fold_single_bit_test): Moved to fold-const.h.
4800         (fold_strip_sign_ops): Moved to fold-const.h.
4801         (fold_ternary): Moved to fold-const.h.
4802         (fold_ternary_loc): Moved to fold-const.h.
4803         (fold_unary): Moved to tree-data-ref.h.
4804         (fold_unary_ignore_overflow): Moved to fold-const.h.
4805         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4806         (fold_unary_loc): Moved to fold-const.h.
4807         (fold_unary_to_constant): Moved to fold-const.h.
4808         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4809         (fold_undefer_overflow_warnings): Moved to fold-const.h.
4810         (folding_initializer): Moved to fold-const.h.
4811         (free_temp_slots): Moved to function.h.
4812         (generate_setjmp_warnings): Moved to function.h.
4813         (get_attribute_name): Moved to attribs.h.
4814         (get_identifier): Moved to stringpool.h.
4815         (get_identifier_with_length): Moved to stringpool.h.
4816         (get_inner_reference): Moved to tree.h.
4817         (gimple_alloca_call_p): Moved to calls.h.
4818         (gimplify_parameters): Moved to function.h.
4819         (highest_pow2_factor): Moved to expr.h.
4820         (indent_to): Moved to print-tree.h.
4821         (init_attributes): Moved to attribs.h.
4822         (init_dummy_function_start): Moved to function.h.
4823         (init_function_start): Moved to function.h.
4824         (init_inline_once): Moved to tree-inline.h.
4825         (init_object_sizes): Moved to tree-object-size.h.
4826         (init_temp_slots): Moved to function.h.
4827         (init_tree_optimization_optabs): Moved to optabs.h.
4828         (initialize_sizetypes): Moved to stor-layout.h.
4829         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4830         (initializer_constant_valid_p): Moved to varasm.h.
4831         (int_const_binop): Moved to fold-const.h.
4832         (internal_reference_types): Moved to stor-layout.h.
4833         (invert_tree_comparison): Moved to fold-const.h.
4834         (invert_truthvalue): Moved to fold-const.h.
4835         (invert_truthvalue_loc): Moved to fold-const.h.
4836         (is_tm_ending_fndecl): Moved to trans-mem.h.
4837         (is_tm_may_cancel_outer): Moved to trans-mem.h.
4838         (is_tm_pure): Moved to trans-mem.h.
4839         (is_tm_safe): Moved to trans-mem.h.
4840         (layout_decl): Moved to stor-layout.h.
4841         (layout_type): Moved to stor-layout.h.
4842         (lookup_attribute_spec): Moved to attribs.h.
4843         (make_accum_type): Moved to stor-layout.h.
4844         (make_decl_one_only): Moved to varasm.h.
4845         (make_decl_rtl): Moved to tree.h.
4846         (make_decl_rtl_for_debug): Moved to varasm.h.
4847         (make_fract_type): Moved to stor-layout.h.
4848         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4849         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4850         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4851         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4852         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4853         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4854         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4855         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4856         (make_range): Moved to fold-const.h.
4857         (make_range_step): Moved to fold-const.h.
4858         (make_sat_signed_accum_type): Moved to stor-layout.h.
4859         (make_sat_signed_fract_type): Moved to stor-layout.h.
4860         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4861         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4862         (make_signed_accum_type): Moved to stor-layout.h.
4863         (make_signed_fract_type): Moved to stor-layout.h.
4864         (make_signed_type): Moved to stor-layout.h.
4865         (make_unsigned_accum_type): Moved to stor-layout.h.
4866         (make_unsigned_fract_type): Moved to stor-layout.h.
4867         (make_unsigned_type): Moved to stor-layout.h.
4868         (mark_decl_referenced): Moved to varasm.h.
4869         (mark_referenced): Moved to varasm.h.
4870         (may_negate_without_overflow_p): Moved to fold-const.h.
4871         (maybe_get_identifier): Moved to stringpool.h.
4872         (merge_ranges): Moved to fold-const.h.
4873         (merge_weak): Moved to varasm.h.
4874         (mode_for_size_tree): Moved to stor-layout.h.
4875         (multiple_of_p): Moved to fold-const.h.
4876         (must_pass_in_stack_var_size): Moved to calls.h.
4877         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4878         (native_encode_expr): Moved to fold-const.h.
4879         (native_interpret_expr): Moved to fold-const.h.
4880         (non_lvalue): Moved to fold-const.h.
4881         (non_lvalue_loc): Moved to fold-const.h.
4882         (normalize_offset): Moved to stor-layout.h.
4883         (normalize_rli): Moved to stor-layout.h.
4884         (notice_global_symbol): Moved to varasm.h.
4885         (omit_one_operand): Moved to fold-const.h.
4886         (omit_one_operand_loc): Moved to fold-const.h.
4887         (omit_two_operands): Moved to fold-const.h.
4888         (omit_two_operands_loc): Moved to fold-const.h.
4889         (operand_equal_p): Moved to tree-data-ref.h.
4890         (parse_input_constraint): Moved to stmt.h.
4891         (parse_output_constraint): Moved to stmt.h.
4892         (place_field): Moved to stor-layout.h.
4893         (pop_function_context): Moved to function.h.
4894         (pop_temp_slots): Moved to function.h.
4895         (pos_from_bit): Moved to stor-layout.h.
4896         (preserve_temp_slots): Moved to function.h.
4897         (print_node): Moved to print-tree.h.
4898         (print_node_brief): Moved to print-tree.h.
4899         (print_rtl): Moved to rtl.h.
4900         (process_pending_assemble_externals): Moved to varasm.h.
4901         (ptr_difference_const): Moved to fold-const.h.
4902         (push_function_context): Moved to function.h.
4903         (push_struct_function): Moved to function.h.
4904         (push_temp_slots): Moved to function.h.
4905         (record_tm_replacement): Moved to trans-mem.h.
4906         (relayout_decl): Moved to stor-layout.h.
4907         (resolve_asm_operand_names): Moved to stmt.h.
4908         (resolve_unique_section): Moved to varasm.h.
4909         (rli_size_so_far): Moved to stor-layout.h.
4910         (rli_size_unit_so_far): Moved to stor-layout.h.
4911         (round_down): Moved to fold-const.h.
4912         (round_down_loc): Moved to fold-const.h.
4913         (round_up): Moved to fold-const.h.
4914         (round_up_loc): Moved to fold-const.h.
4915         (set_decl_incoming_rtl): Moved to emit-rtl.h.
4916         (set_decl_rtl): Moved to tree.h.
4917         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4918         (set_user_assembler_name): Moved to varasm.h.
4919         (setjmp_call_p): Moved to calls.h.
4920         (size_binop): Moved to fold-const.h.
4921         (size_binop_loc): Moved to fold-const.h.
4922         (size_diffop): Moved to fold-const.h.
4923         (size_diffop_loc): Moved to fold-const.h.
4924         (size_int_kind): Moved to fold-const.h.
4925         (stack_protect_epilogue): Moved to function.h.
4926         (start_record_layout): Moved to stor-layout.h.
4927         (supports_one_only): Moved to varasm.h.
4928         (swap_tree_comparison): Moved to fold-const.h.
4929         (tm_malloc_replacement): Moved to trans-mem.h.
4930         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4931         (tree build_invariant_address): Moved to fold-const.h.
4932         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4933         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4934         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4935         (tree_expr_nonnegative_p): Moved to fold-const.h.
4936         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4937         (tree_output_constant_def): Moved to varasm.h.
4938         (tree_overlaps_hard_reg_set): Moved to stmt.h.
4939         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4940         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4941         (tree_swap_operands_p): Moved to fold-const.h.
4942         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4943         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4944         (update_alignment_for_field): Moved to stor-layout.h.
4945         (use_register_for_decl): Moved to function.h.
4946         (variable_size): Moved to rtl.h.
4947         (vector_type_mode): Moved to stor-layout.h.
4948         * cgraph.h: Corresponding changes.
4949         * emit-rtl.h: Corresponding changes.
4950         * expr.h: Corresponding changes.
4951         * function.h: Corresponding changes.
4952         * optabs.h: Corresponding changes.
4953         * trans-mem.h: Corresponding changes.
4954         Protect against multiple inclusion.
4955         * tree-inline.h: Corresponding changes.
4956         * tree-iterator.h: Corresponding changes.
4957         * tree-dfa.h: Include expr.h.
4958         * tree-ssanames.h: Include stringpool.h.
4959         * attribs.h: New file.
4960         * calls.h: New file.
4961         * fold-const.h: New file.
4962         * gcc-symtab.h: New file.
4963         * print-rtl.h: New file.
4964         * print-tree.h: New file.
4965         * stmt.h: New file.
4966         * stor-layout.h: New file.
4967         * strinpool.h: New file.
4968         * tree-nested.h: New file
4969         * tree-object-size.h: New file.
4970         * varasm.h: New file.
4972 2013-11-14  Diego Novillo  <dnovillo@google.com>
4974         * alias.c: Include varasm.h.
4975         Include expr.h.
4976         * asan.c: Include calls.h.
4977         Include stor-layout.h.
4978         Include varasm.h.
4979         * attribs.c: Include stringpool.h.
4980         Include attribs.h.
4981         Include stor-layout.h.
4982         * builtins.c: Include stringpool.h.
4983         Include stor-layout.h.
4984         Include calls.h.
4985         Include varasm.h.
4986         Include tree-object-size.h.
4987         * calls.c: Include stor-layout.h.
4988         Include varasm.h.
4989         Include stringpool.h.
4990         Include attribs.h.
4991         * cfgexpand.c: Include stringpool.h.
4992         Include varasm.h.
4993         Include stor-layout.h.
4994         Include stmt.h.
4995         Include print-tree.h.
4996         * cgraph.c: Include varasm.h.
4997         Include calls.h.
4998         Include print-tree.h.
4999         * cgraphclones.c: Include stringpool.h.
5000         Include function.h.
5001         Include emit-rtl.h.
5002         Move inclusion of rtl.h earlier in the file.
5003         * cgraphunit.c: Include varasm.h.
5004         Include stor-layout.h.
5005         Include stringpool.h.
5006         * cilk-common.c: Include stringpool.h.
5007         Include stor-layout.h.
5008         * combine.c: Include stor-layout.h.
5009         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
5010         Include stringpool.h.
5011         Include calls.h.
5012         * config/aarch64/aarch64.c: Include stringpool.h.
5013         Include stor-layout.h.
5014         Include calls.h.
5015         Include varasm.h.
5016         * config/alpha/alpha.c: Include stor-layout.h.
5017         Include calls.h.
5018         Include varasm.h.
5019         * config/arc/arc.c: Include varasm.h.
5020         Include stor-layout.h.
5021         Include stringpool.h.
5022         Include calls.h.
5023         * config/arm/arm.c: Include stringpool.h.
5024         Include stor-layout.h.
5025         Include calls.h.
5026         Include varasm.h.
5027         * config/avr/avr-c.c: Include stor-layout.h.
5028         * config/avr/avr-log.c: Include print-tree.h.
5029         * config/avr/avr.c: Include print-tree.h.
5030         Include calls.h.
5031         Include stor-layout.h.
5032         Include stringpool.h.
5033         * config/bfin/bfin.c: Include varasm.h.
5034         Include calls.h.
5035         * config/c6x/c6x.c: Include stor-layout.h.
5036         Include varasm.h.
5037         Include calls.h.
5038         Include stringpool.h.
5039         * config/cr16/cr16.c: Include stor-layout.h.
5040         Include calls.h.
5041         * config/cris/cris.c: Include varasm.h.
5042         Include stor-layout.h.
5043         Include calls.h.
5044         Include stmt.h.
5045         * config/darwin.c: Include stringpool.h.
5046         Include varasm.h.
5047         Include stor-layout.h.
5048         * config/epiphany/epiphany.c: Include stor-layout.h.
5049         Include varasm.h.
5050         Include calls.h.
5051         Include stringpool.h.
5052         * config/fr30/fr30.c: Include stor-layout.h.
5053         Include varasm.h.
5054         * config/frv/frv.c: Include varasm.h.
5055         Include stor-layout.h.
5056         Include stringpool.h.
5057         * config/h8300/h8300.c: Include stor-layout.h.
5058         Include varasm.h.
5059         Include calls.h.
5060         Include stringpool.h.
5061         * config/i386/i386.c: Include stringpool.h.
5062         Include attribs.h.
5063         Include calls.h.
5064         Include stor-layout.h.
5065         Include varasm.h.
5066         * config/i386/winnt-cxx.c: Include stringpool.h.
5067         Include attribs.h.
5068         * config/i386/winnt.c: Include stringpool.h.
5069         Include varasm.h.
5070         * config/ia64/ia64-c.c: Include stringpool.h.
5071         * config/ia64/ia64.c: Include stringpool.h.
5072         Include stor-layout.h.
5073         Include calls.h.
5074         Include varasm.h.
5075         * config/iq2000/iq2000.c: Include stor-layout.h.
5076         Include calls.h.
5077         Include varasm.h.
5078         * config/lm32/lm32.c: Include calls.h.
5079         * config/m32c/m32c.c: Include stor-layout.h.
5080         Include varasm.h.
5081         Include calls.h.
5082         * config/m32r/m32r.c: Include stor-layout.h.
5083         Include varasm.h.
5084         Include stringpool.h.
5085         Include calls.h.
5086         * config/m68k/m68k.c: Include calls.h.
5087         Include stor-layout.h.
5088         Include varasm.h.
5089         * config/mcore/mcore.c: Include stor-layout.h.
5090         Include varasm.h.
5091         Include stringpool.h.
5092         Include calls.h.
5093         * config/mep/mep.c: Include varasm.h.
5094         Include calls.h.
5095         Include stringpool.h.
5096         Include stor-layout.h.
5097         * config/microblaze/microblaze.c: Include varasm.h.
5098         Include stor-layout.h.
5099         Include calls.h.
5100         * config/mips/mips.c: Include varasm.h.
5101         Include stringpool.h.
5102         Include stor-layout.h.
5103         Include calls.h.
5104         * config/mmix/mmix.c: Include varasm.h.
5105         Include stor-layout.h.
5106         Include calls.h.
5107         * config/mn10300/mn10300.c: Include stor-layout.h.
5108         Include varasm.h.
5109         Include calls.h.
5110         * config/moxie/moxie.c: Include stor-layout.h.
5111         Include varasm.h.
5112         Include calls.h.
5113         * config/msp430/msp430.c: Include stor-layout.h.
5114         Include calls.h.
5115         * config/nds32/nds32.c: Include stor-layout.h.
5116         Include varasm.h.
5117         Include calls.h.
5118         * config/pa/pa.c: Include stor-layout.h.
5119         Include stringpool.h.
5120         Include varasm.h.
5121         Include calls.h.
5122         * config/pdp11/pdp11.c: Include stor-layout.h.
5123         Include varasm.h.
5124         Include calls.h.
5125         * config/picochip/picochip.c: Include calls.h.
5126         Include stor-layout.h.
5127         Include stringpool.h.
5128         Include varasm.h.
5129         * config/rl78/rl78.c: Include varasm.h.
5130         Include stor-layout.h.
5131         Include calls.h.
5132         * config/rs6000/rs6000-c.c: Include stor-layout.h.
5133         Include stringpool.h.
5134         * config/rs6000/rs6000.c: Include stringpool.h.
5135         Include stor-layout.h.
5136         Include calls.h.
5137         Include print-tree.h.
5138         Include varasm.h.
5139         * config/rx/rx.c: Include varasm.h.
5140         Include stor-layout.h.
5141         Include calls.h.
5142         * config/s390/s390.c: Include print-tree.h.
5143         Include stringpool.h.
5144         Include stor-layout.h.
5145         Include varasm.h.
5146         Include calls.h.
5147         * config/score/score.c: Include stringpool.h.
5148         Include calls.h.
5149         Include varasm.h.
5150         Include stor-layout.h.
5151         * config/sh/sh-c.c: Include stringpool.h.
5152         Include attribs.h.h.
5153         * config/sh/sh.c: Include stringpool.h.
5154         Include stor-layout.h.
5155         Include calls.h.
5156         Include varasm.h.
5157         * config/sol2-c.c: Include stringpool.h.
5158         Include attribs.h.
5159         * config/sol2-cxx.c: Include stringpool.h.
5160         * config/sol2.c: Include stringpool.h.
5161         Include varasm.h.
5162         * config/sparc/sparc.c: Include stringpool.h.
5163         Include stor-layout.h.
5164         Include calls.h.
5165         Include varasm.h.
5166         * config/spu/spu-c.c: Include stringpool.h.
5167         * config/spu/spu.c: Include stringpool.h.
5168         Include stor-layout.h.
5169         Include calls.h.
5170         Include varasm.h.
5171         * config/stormy16/stormy16.c: Include stringpool.h.
5172         Include stor-layout.h.
5173         Include varasm.h.
5174         Include calls.h.
5175         * config/tilegx/tilegx.c: Include stringpool.h.
5176         Include stor-layout.h.
5177         Include varasm.h.
5178         Include calls.h.
5179         * config/tilepro/tilepro.c: Include stringpool.h.
5180         Include stor-layout.h.
5181         Include varasm.h.
5182         Include calls.h.
5183         * config/v850/v850-c.c: Include stringpool.h.
5184         Include attribs.h.
5185         * config/v850/v850.c: Include stringpool.h.
5186         Include stor-layout.h.
5187         Include varasm.h.
5188         Include calls.h.
5189         * config/vax/vax.c: Include calls.h.
5190         Include varasm.h.
5191         * config/vms/vms.c: Include stringpool.h.
5192         * config/vxworks.c: Include stringpool.h.
5193         * config/xtensa/xtensa.c: Include stringpool.h.
5194         Include stor-layout.h.
5195         Include calls.h.
5196         Include varasm.h.
5197         * convert.c: Include stor-layout.h.
5198         * coverage.c: Include stringpool.h.
5199         Include stor-layout.h.
5200         * dbxout.c: Include varasm.h.
5201         Include stor-layout.h.
5202         * dojump.c: Include stor-layout.h.
5203         * dse.c: Include stor-layout.h.
5204         * dwarf2asm.c: Include stringpool.h.
5205         Include varasm.h.
5206         * dwarf2cfi.c: Include stor-layout.h.
5207         * dwarf2out.c: Include rtl.h.
5208         Include stringpool.h.
5209         Include stor-layout.h.
5210         Include varasm.h.
5211         Include function.h.
5212         Include emit-rtl.h.
5213         Move inclusion of rtl.h earlier in the file.
5214         * emit-rtl.c: Include varasm.h.
5215         * except.c: Include stringpool.h.
5216         Include stor-layout.h.
5217         * explow.c: Include stor-layout.h.
5218         * expmed.c: Include stor-layout.h.
5219         * expr.c: Include stringpool.h.
5220         Include stor-layout.h.
5221         Include attribs.h.
5222         Include varasm.h.
5223         * final.c: Include varasm.h.
5224         * fold-const.c: Include stor-layout.h.
5225         Include calls.h.
5226         Include tree-iterator.h.
5227         * function.c: Include stor-layout.h.
5228         Include varasm.h.
5229         Include stringpool.h.
5230         * genattrtab.c (write_header): Emit includes for varasm.h,
5231         stor-layout.h and calls.h.
5232         * genautomata.c (main): Likewise.
5233         * genemit.c: Likewise.
5234         * genopinit.c: Likewise.
5235         * genoutput.c (output_prologue): Likewise.
5236         * genpeep.c: Likewise.
5237         * genpreds.c (write_insn_preds_c): Likewise.
5238         * gengtype.c (open_base_files): Add stringpool.h.
5239         * gimple-expr.c: Include stringpool.h.
5240         Include stor-layout.h.
5241         * gimple-fold.c: Include stringpool.h.
5242         Include expr.h.
5243         Include stmt.h.
5244         Include stor-layout.h.
5245         * gimple-low.c: Include tree-nested.h.
5246         Include calls.h.
5247         * gimple-pretty-print.c: Include stringpool.h.
5248         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
5249         Include expr.h.
5250         * gimple-walk.c: Include stmt.h.
5251         * gimple.c: Include calls.h.
5252         Include stmt.h.
5253         Include stor-layout.h.
5254         * gimplify.c: Include stringpool.h.
5255         Include calls.h.
5256         Include varasm.h.
5257         Include stor-layout.h.
5258         Include stmt.h.
5259         Include print-tree.h.
5260         Include expr.h.
5261         * gimplify-me.c: Include stmt.h
5262         Include stor-layout.h
5263         * internal-fn.c: Include stor-layout.h.
5264         * ipa-devirt.c: Include print-tree.h.
5265         Include calls.h.
5266         * ipa-inline-analysis.c: Include stor-layout.h.
5267         Include stringpool.h.
5268         Include print-tree.h.
5269         * ipa-inline.c: Include trans-mem.h.
5270         Include calls.h.
5271         * ipa-prop.c: Include expr.h.
5272         Include stor-layout.h.
5273         Include print-tree.h.
5274         * ipa-pure-const.c: Include print-tree.h.
5275         Include calls.h.
5276         * ipa-reference.c: Include calls.h.
5277         * ipa-split.c: Include stringpool.h.
5278         Include expr.h.
5279         Include calls.h.
5280         * ipa.c: Include calls.h.
5281         Include stringpool.h.
5282         * langhooks.c: Include stringpool.h.
5283         Include attribs.h.
5284         * lto-cgraph.c: Include stringpool.h.
5285         * lto-streamer-in.c: Include stringpool.h.
5286         * lto-streamer-out.c: Include stor-layout.h.
5287         Include stringpool.h.
5288         * omp-low.c: Include stringpool.h.
5289         Include stor-layout.h.
5290         Include expr.h.
5291         * optabs.c: Include stor-layout.h.
5292         Include stringpool.h.
5293         Include varasm.h.
5294         * passes.c: Include varasm.h.
5295         * predict.c: Include calls.h.
5296         * print-rtl.c: Include print-tree.h.
5297         * print-tree.c: Include varasm.h.
5298         Include print-rtl.h.
5299         Include stor-layout.h.
5300         * realmpfr.c: Include stor-layout.h.
5301         * reg-stack.c: Include varasm.h.
5302         * sdbout.c: Include varasm.h.
5303         Include stor-layout.h.
5304         * simplify-rtx.c: Include varasm.h.
5305         * stmt.c: Include varasm.h.
5306         Include stor-layout.h.
5307         * stor-layout.c: Include stor-layout.h.
5308         Include stringpool.h.
5309         Include varasm.h.
5310         Include print-tree.h.
5311         * symtab.c: Include rtl.h.
5312         Include print-tree.h.
5313         Include varasm.h.
5314         Include function.h.
5315         Include emit-rtl.h.
5316         * targhooks.c: Include stor-layout.h.
5317         Include varasm.h.
5318         * toplev.c: Include varasm.h.
5319         Include tree-inline.h.
5320         * trans-mem.c: Include calls.h.
5321         Include function.h.
5322         Include rtl.h.
5323         Include emit-rtl.h.
5324         * tree-affine.c: Include expr.h.
5325         * tree-browser.c: Include print-tree.h.
5326         * tree-call-cdce.c: Include stor-layout.h.
5327         * tree-cfg.c: Include trans-mem.h.
5328         Include stor-layout.h.
5329         Include print-tree.h.
5330         * tree-complex.c: Include stor-layout.h.
5331         * tree-data-ref.c: Include expr.h.
5332         * tree-dfa.c: Include stor-layout.h.
5333         * tree-eh.c: Include expr.h.
5334         Include calls.h.
5335         * tree-emutls.c: Include stor-layout.h.
5336         Include varasm.h.
5337         * tree-if-conv.c: Include stor-layout.h.
5338         * tree-inline.c: Include stor-layout.h.
5339         Include calls.h.
5340         * tree-loop-distribution.c: Include stor-layout.h.
5341         * tree-nested.c: Include stringpool.h.
5342         Include stor-layout.h.
5343         * tree-object-size.c: Include tree-object-size.h.
5344         * tree-outof-ssa.c: Include stor-layout.h.
5345         * tree-parloops.c: Include stor-layout.h.
5346         Include tree-nested.h.
5347         * tree-pretty-print.c: Include stor-layout.h.
5348         Include expr.h.
5349         * tree-profile.c: Include varasm.h.
5350         Include tree-nested.h.
5351         * tree-scalar-evolution.c: Include expr.h.
5352         * tree-sra.c: Include stor-layout.h.
5353         * tree-ssa-address.c: Include stor-layout.h.
5354         * tree-ssa-ccp.c: Include stor-layout.h.
5355         * tree-ssa-dce.c: Include calls.h.
5356         * tree-ssa-dom.c: Include stor-layout.h.
5357         * tree-ssa-forwprop.c: Include stor-layout.h.
5358         * tree-ssa-ifcombine.c: Include stor-layout.h.
5359         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5360         * tree-ssa-loop-niter.c: Include calls.h.
5361         Include expr.h.
5362         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5363         * tree-ssa-math-opts.c: Include stor-layout.h.
5364         * tree-ssa-operands.c: Include stmt.h.
5365         Include print-tree.h.
5366         * tree-ssa-phiopt.c: Include stor-layout.h.
5367         * tree-ssa-reassoc.c: Include stor-layout.h.
5368         * tree-ssa-sccvn.c: Include stor-layout.h.
5369         * tree-ssa-sink.c: Include stor-layout.h.
5370         * tree-ssa-strlen.c: Include stor-layout.h.
5371         * tree-ssa-structalias.c: Include stor-layout.h.
5372         Include stmt.h.
5373         * tree-ssa-tail-merge.c: Include stor-layout.h.
5374         Include trans-mem.h.
5375         * tree-ssa-uncprop.c: Include stor-layout.h.
5376         * tree-ssa.c: Include stor-layout.h.
5377         * tree-ssanames.c: Include stor-layout.h.
5378         * tree-streamer-in.c: Include stringpool.h.
5379         * tree-streamer-out.c: Include stor-layout.h.
5380         * tree-switch-conversion.c: Include varasm.h.
5381         Include stor-layout.h.
5382         * tree-tailcall.c: Include stor-layout.h.
5383         * tree-vect-data-refs.c: Include stor-layout.h.
5384         * tree-vect-generic.c: Include stor-layout.h.
5385         * tree-vect-loop.c: Include stor-layout.h.
5386         * tree-vect-patterns.c: Include stor-layout.h.
5387         * tree-vect-slp.c: Include stor-layout.h.
5388         * tree-vect-stmts.c: Include stor-layout.h.
5389         * tree-vectorizer.c: Include stor-layout.h.
5390         * tree-vrp.c: Include stor-layout.h.
5391         Include calls.h.
5392         * tree.c: Include stor-layout.h.
5393         Include calls.h.
5394         Include attribs.h.
5395         Include varasm.h.
5396         * tsan.c: Include expr.h.
5397         * ubsan.c: Include stor-layout.h.
5398         Include stringpool.h.
5399         * value-prof.c: Include tree-nested.h.
5400         Include calls.h.
5401         * var-tracking.c: Include varasm.h.
5402         Include stor-layout.h.
5403         * varasm.c: Include stor-layout.h.
5404         Include stringpool.h.
5405         Include gcc-symtab.h.
5406         Include varasm.h.
5407         * varpool.c: Include varasm.h.
5408         * vmsdbgout.c: Include varasm.h.
5409         * xcoffout.c: Include varasm.h.
5411 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
5413         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5414         use (.&-4) idiom.
5416 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5418         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5420 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5421             Alan Modra  <amodra@gmail.com>
5423         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5424         (RS6000_SAVE_TOC): Remove.
5425         (RS6000_TOC_SAVE_SLOT): New macro.
5426         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5427         (rs6000_parm_start): Use it.
5428         (rs6000_function_arg_advance_1): Likewise.
5429         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5430         (rs6000_emit_epilogue): Likewise.
5431         (rs6000_call_aix): Likewise.
5432         (rs6000_output_function_prologue): Do not save/restore r11
5433         around calling _mcount for ABI_ELFv2.
5435 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5436             Alan Modra  <amodra@gmail.com>
5438         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5439         Add prototype.
5440         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5441         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5442         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5443         (rs6000_function_parms_need_stack): Likewise.
5444         (rs6000_reg_parm_stack_space): Likewise.
5445         (rs6000_function_arg): Do not replace BLKmode by Pmode when
5446         returning a register argument.
5448 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5449             Michael Gschwind  <mkg@us.ibm.com>
5451         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5452         (ALTIVEC_ARG_MAX_RETURN): Likewise.
5453         (FUNCTION_VALUE_REGNO_P): Use them.
5454         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5455         (rs6000_return_in_msb): New function.
5456         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5457         Handle aggregates of up to 16 bytes for ELFv2.
5458         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5460 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5461             Michael Gschwind  <mkg@us.ibm.com>
5463         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5464         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5465         (rs6000_discover_homogeneous_aggregate): Likewise.
5466         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5467         (rs6000_function_arg_advance_1): Likewise.
5468         (rs6000_function_arg): Likewise.
5469         (rs6000_arg_partial_bytes): Likewise.
5470         (rs6000_psave_function_arg): Handle BLKmode arguments.
5472 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5473             Michael Gschwind  <mkg@us.ibm.com>
5475         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5476         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5477         (rs6000_discover_homogeneous_aggregate): Likewise.
5478         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5479         (rs6000_function_arg_advance_1): Likewise.
5480         (rs6000_function_arg): Likewise.
5481         (rs6000_arg_partial_bytes): Likewise.
5482         (rs6000_psave_function_arg): Handle BLKmode arguments.
5484 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5486         * config/rs6000/rs6000.c (machine_function): New member
5487         r2_setup_needed.
5488         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5489         (rs6000_output_mi_thunk): Set r2_setup_needed.
5490         (rs6000_output_function_prologue): Output global entry point
5491         prologue and local entry point marker if needed for ABI_ELFv2.
5492         Output -mprofile-kernel code here.
5493         (output_function_profiler): Do not output -mprofile-kernel
5494         code here; moved to rs6000_output_function_prologue.
5495         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5497         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5498         (rs6000_output_function_entry): Likewise.
5499         (rs6000_assemble_integer): Likewise.
5500         (rs6000_elf_encode_section_info): Likewise.
5501         (rs6000_elf_declare_function_name): Do not create dot symbols
5502         or .opd section for ABI_ELFv2.
5504         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5505         (rs6000_trampoline_init): Likewise.
5506         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5508         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
5509         for function descriptors in ABI_ELFv2.
5511         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5512         on ABI_AIX only, not ABI_ELFv2.
5513         ("*call_value_indirect_aix<mode>"): Likewise.
5514         ("*call_indirect_elfv2<mode>"): New pattern.
5515         ("*call_value_indirect_elfv2<mode>"): Likewise.
5517         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5518         check for function descriptors in ABI_ELFv2.
5519         ("current_file_function_operand"): Likewise.
5521         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5522         (toc): Undefine.
5523         (FUNC_NAME): Define ELFv2 variant.
5524         (JUMP_TARGET): Likewise.
5525         (FUNC_START): Likewise.
5526         (HIDDEN_FUNC): Likewise.
5527         (FUNC_END): Likeiwse.
5529 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5531         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5532         and --with-abi=elfv2.
5533         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5534         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5535         (mabi=elfv2): Likewise.
5536         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5537         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5538         if !RS6000_BI_ARCH.
5539         (ELFv2_ABI_CHECK): New macro.
5540         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5541         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5542         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5543         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5544         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5546         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5547         (debug_stack_info): Likewise.
5548         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5549         (rs6000_legitimize_tls_address): Likewise.
5550         (rs6000_conditional_register_usage): Likewise.
5551         (rs6000_emit_move): Likewise.
5552         (init_cumulative_args): Likewise.
5553         (rs6000_function_arg_advance_1): Likewise.
5554         (rs6000_function_arg): Likewise.
5555         (rs6000_arg_partial_bytes): Likewise.
5556         (rs6000_output_function_entry): Likewise.
5557         (rs6000_assemble_integer): Likewise.
5558         (rs6000_savres_strategy): Likewise.
5559         (rs6000_stack_info): Likewise.
5560         (rs6000_function_ok_for_sibcall): Likewise.
5561         (rs6000_emit_load_toc_table): Likewise.
5562         (rs6000_savres_routine_name): Likewise.
5563         (ptr_regno_for_savres): Likewise.
5564         (rs6000_emit_prologue): Likewise.
5565         (rs6000_emit_epilogue): Likewise.
5566         (rs6000_output_function_epilogue): Likewise.
5567         (output_profile_hook): Likewise.
5568         (output_function_profiler): Likewise.
5569         (rs6000_trampoline_size): Likewise.
5570         (rs6000_trampoline_init): Likewise.
5571         (rs6000_elf_output_toc_section_asm_op): Likewise.
5572         (rs6000_elf_encode_section_info): Likewise.
5573         (rs6000_elf_reloc_rw_mask): Likewise.
5574         (rs6000_elf_declare_function_name): Likewise.
5575         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5576         except that rs6000_compat_align_parm is always assumed false.
5577         (rs6000_gimplify_va_arg): Likewise.
5578         (rs6000_call_aix): Update comment.
5579         (rs6000_sibcall_aix): Likewise.
5580         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5581         Treat ABI_ELFv2 the same as ABI_AIX.
5582         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5583         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5584         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5585         ("load_toc_aix_si"): Likewise.
5586         ("load_toc_aix_di"): Likewise.
5587         ("call"): Likewise.
5588         ("call_value"): Likewise.
5589         ("*call_local_aix<mode>"): Likewise.
5590         ("*call_value_local_aix<mode>"): Likewise.
5591         ("*call_nonlocal_aix<mode>"): Likewise.
5592         ("*call_value_nonlocal_aix<mode>"): Likewise.
5593         ("*call_indirect_aix<mode>"): Likewise.
5594         ("*call_value_indirect_aix<mode>"): Likewise.
5595         ("sibcall"): Likewise.
5596         ("sibcall_value"): Likewise.
5597         ("*sibcall_aix<mode>"): Likewise.
5598         ("*sibcall_value_aix<mode>"): Likewise.
5599         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5600         ("current_file_function_operand"): Likewise.
5602 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5604         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5605         by making use of the fact that for vector / floating point arguments
5606         passed both in VRs/FPRs and in the fixed parameter area, the partial
5607         bytes mechanism is in fact not used.
5609 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5611         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5612         (rs6000_finish_function_arg): Likewise.
5613         (rs6000_function_arg): Use rs6000_psave_function_arg and
5614         rs6000_finish_function_arg to handle both vector and floating
5615         point arguments that are also passed in GPRs / the stack.
5617 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5619         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5620         (USE_ALTIVEC_FOR_ARG_P): Likewise.
5621         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5622         (rs6000_function_arg_advance_1):Likewise.
5623         (rs6000_darwin64_record_arg_recurse): Likewise.
5624         (rs6000_function_arg): Likewise.
5625         (rs6000_arg_partial_bytes): Likewise.
5627 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5629         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5630         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5631         (rs6000_savres_strategy): Likewise.
5632         (rs6000_return_addr): Likewise.
5633         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5634         testing for ABI_V4 (since ABI_DARWIN is impossible here).
5635         (rs6000_emit_prologue): Likewise.
5636         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5637         (rs6000_elf_declare_function_name): Remove duplicated test.
5638         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5639         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5640         ("load_toc_v4_PIC_1_normal"): Likewise.
5641         ("load_toc_v4_PIC_1_476"): Likewise.
5642         ("load_toc_v4_PIC_1b"): Likewise.
5643         ("load_toc_v4_PIC_1b_normal"): Likewise.
5644         ("load_toc_v4_PIC_1b_476"): Likewise.
5645         ("load_toc_v4_PIC_2"): Likewise.
5646         ("load_toc_v4_PIC_3b"): Likewise.
5647         ("load_toc_v4_PIC_3c"): Likewise.
5648         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5649         (RS6000_SAVE_AREA): Likewise.
5650         (FP_ARG_MAX_REG): Likewise.
5651         (RETURN_ADDRESS_OFFSET): Likewise.
5652         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5653         of ABI_AIX.
5654         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5655         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5657 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5659         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5660         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
5661         Create call insn directly instead of via various gen_... routines.
5662         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5663         (rs6000_sibcall_aix): New function.
5664         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5665         (TOC_SAVE_OFFSET_64BIT): Likewise.
5666         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5667         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5668         (AIX_FUNC_DESC_SC_32BIT): Likewise.
5669         (AIX_FUNC_DESC_SC_64BIT): Likewise.
5670         ("call" expander): Call rs6000_call_aix.
5671         ("call_value" expander): Likewise.
5672         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5673         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5674         ("*call_indirect_aix<mode>"): ... by this insn pattern.
5675         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5676         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5677         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5678         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5679         ("*call_nonlocal_aix<mode>"): ... this pattern.
5680         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5681         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5682         ("*call_local_aix<mode>"): New insn pattern.
5683         ("*call_value_local_aix<mode>"): Likewise.
5684         ("sibcall" expander): Call rs6000_sibcall_aix.
5685         ("sibcall_value" expander): Likewise.  Move earlier in file.
5686         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5687         ("*sibcall_aix<mode>"): ... this pattern.
5688         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5689         ("*sibcall_value_aix<mode>"): ... this pattern.
5690         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5691         (rs6000_call_aix): Add prototype.
5692         (rs6000_sibcall_aix): Likewise.
5694 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5696         PR sanitizer/59122
5697         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5698         isn't confused by the artificial decl.
5700 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5702         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5703         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5704         Instead, add USEs of all modified call-saved CR fields to the
5705         insn storing the result to the stack slot, and provide an
5706         appropriate REG_FRAME_RELATED_EXPR for that insn.
5707         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5708         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5710 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5711             Alan Modra  <amodra@gmail.com>
5713         * function.c (assign_parms): Use all.reg_parm_stack_space instead
5714         of re-evaluating REG_PARM_STACK_SPACE target macro.
5715         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
5716         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5717         (assign_parm_find_entry_rtl): Update call.
5718         * calls.c (initialize_argument_information): Update call.
5719         (emit_library_call_value_1): Likewise.
5720         * expr.h (locate_and_pad_parm): Update prototype.
5722 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5724         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5725         arguments.
5727 2013-11-14  DJ Delorie  <dj@redhat.com>
5729         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5730         to 16 bits.
5732 2013-11-14  Jeff Law  <law@redhat.com>
5734         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5735         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5737 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5739         * doc/invoke.texi: Update documentation for AArch64's -mcpu
5740         and -mtune options.
5742 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5744         * config/aarch64/aarch64-cores.def (example-1): Remove.
5745         (example-2): Likewise.
5746         * config/aarch64/aarch64-tune.md: Regenerate.
5747         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5748         (generic_sched): Remove "large", "small".
5749         * config/aarch64/large.md: Delete.
5750         * config/aarch64/small.md: Delete.
5752 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5754         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5755         * config/aarch64/aarch64-tune.md: Regenerate.
5756         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5757         (generic_sched): "no" if we are tuning for cortexa15.
5758         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5759         relative path.
5761 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5763         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5764         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5765         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5766         (all_cores): Use cortexa53 when tuning for "generic".
5767         (aarch64_override_options): Fix comment.
5768         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5769         * config/aarch64/aarch64-generic.md: Delete.
5771 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5773         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5775 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5777         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5778         (generic_rtx_cost_table): Remove.
5779         (aarch64_rtx_costs): Use fields from cpu_cost_table.
5780         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5781         insn_extra_cost.
5782         (cpu_rtx_cost_table): Remove.
5784 2013-11-14  Julian Brown  <julian@codesourcery.com>
5785             Joey Ye  <joey.ye@arm.com>
5787         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5788         (arm_v7m_tune): New.
5789         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5790         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5791         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5792         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5794 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
5796         PR target/57491
5797         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5798         flag setting.
5800 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5801             Uros Bizjak  <ubizjak@gmail.com>
5803         PR target/59101
5804         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5805         operands[2] satisfies_constraint_Z that might have bit 31 set.
5807 2013-11-13  Jeff Law  <law@redhat.com>
5809         PR tree-optimization/59102
5810         * gimple-ssa-isolate-paths.c
5811         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5812         gimple assignment before looking at gimple_assign_lhs.
5814 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5816         * ira.c: Add comment about threads at the top of file.
5818 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5820         * ira-color.c (coalesce_allocnos): Don't allocate and free
5821         sorted_copies.
5823 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5825         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5826         equality for GIMPLE_ASSIGN.
5828 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5830         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5831         function out of ...
5832         (gimple_equal_p): ... here.
5834 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5836         * trans-mem.c (is_tm_ending): New function.
5837         * gimple.h (is_tm_ending): Declare.
5838         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5839         BUILT_IN_TM_COMMIT.
5840         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5842 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5844         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5846 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
5848         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
5849         (struct walk_stmt_info):  Relocate here from gimple.h.
5850         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
5851         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5852         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5853         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5854         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5855         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5856         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5857         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5858         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5859         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5860         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5861         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5862         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5863         (struct walk_stmt_info): Move to gimple-walk.h.
5864         (gimple_seq_set_location): Move to gimple.c
5865         * gimple-walk.c: New File.
5866         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5867         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5868         walk_stmt_load_store_ops): Relocate here from gimple.c.
5869         * gimple-iterator.c: Include gimple-iterator.h.
5870         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5871         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5872         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5873         gimple-walk.c.
5874         (gimple_seq_set_location): Relocate from gimple.h.
5875         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5876         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5877         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5878         * Makefile.in (OBJS): Add gimple-walk.o
5879         * asan.c: Update Include list as required for gimple-iterator.h and
5880         gimple-walk.h.
5881         * cfgexpand.c: Likewise.
5882         * cfgloop.c: Likewise.
5883         * cfgloopmanip.c: Likewise.
5884         * cgraph.c: Likewise.
5885         * cgraphbuild.c: Likewise.
5886         * cgraphunit.c: Likewise.
5887         * gimple-fold.c: Likewise.
5888         * gimple-low.c: Likewise.
5889         * gimple-pretty-print.c: Likewise.
5890         * gimple-ssa-isolate-paths.c: Likewise.
5891         * gimple-ssa-strength-reduction.c: Likewise.
5892         * gimple-streamer-in.c: Likewise.
5893         * gimple-streamer-out.c: Likewise.
5894         * gimplify.c: Likewise.
5895         * graphite-blocking.c: Likewise.
5896         * graphite-clast-to-gimple.c: Likewise.
5897         * graphite-dependences.c: Likewise.
5898         * graphite-interchange.c: Likewise.
5899         * graphite-optimize-isl.c: Likewise.
5900         * graphite-poly.c: Likewise.
5901         * graphite-scop-detection.c: Likewise.
5902         * graphite-sese-to-poly.c: Likewise.
5903         * graphite.c: Likewise.
5904         * ipa-inline-analysis.c: Likewise.
5905         * ipa-profile.c: Likewise.
5906         * ipa-prop.c: Likewise.
5907         * ipa-pure-const.c: Likewise.
5908         * ipa-split.c: Likewise.
5909         * lto-streamer-in.c: Likewise.
5910         * lto-streamer-out.c: Likewise.
5911         * omp-low.c: Likewise.
5912         * predict.c: Likewise.
5913         * profile.c: Likewise.
5914         * sese.c: Likewise.
5915         * tracer.c: Likewise.
5916         * trans-mem.c: Likewise.
5917         * tree-call-cdce.c: Likewise.
5918         * tree-cfg.c: Likewise.
5919         * tree-cfgcleanup.c: Likewise.
5920         * tree-complex.c: Likewise.
5921         * tree-data-ref.c: Likewise.
5922         * tree-dfa.c: Likewise.
5923         * tree-eh.c: Likewise.
5924         * tree-emutls.c: Likewise.
5925         * tree-if-conv.c: Likewise.
5926         * tree-inline.c: Likewise.
5927         * tree-into-ssa.c: Likewise.
5928         * tree-loop-distribution.c: Likewise.
5929         * tree-nested.c: Likewise.
5930         * tree-nrv.c: Likewise.
5931         * tree-object-size.c: Likewise.
5932         * tree-outof-ssa.c: Likewise.
5933         * tree-parloops.c: Likewise.
5934         * tree-predcom.c: Likewise.
5935         * tree-profile.c: Likewise.
5936         * tree-scalar-evolution.c: Likewise.
5937         * tree-sra.c: Likewise.
5938         * tree-ssa-ccp.c: Likewise.
5939         * tree-ssa-coalesce.c: Likewise.
5940         * tree-ssa-copy.c: Likewise.
5941         * tree-ssa-copyrename.c: Likewise.
5942         * tree-ssa-dce.c: Likewise.
5943         * tree-ssa-dom.c: Likewise.
5944         * tree-ssa-dse.c: Likewise.
5945         * tree-ssa-forwprop.c: Likewise.
5946         * tree-ssa-ifcombine.c: Likewise.
5947         * tree-ssa-live.c: Likewise.
5948         * tree-ssa-loop-ch.c: Likewise.
5949         * tree-ssa-loop-im.c: Likewise.
5950         * tree-ssa-loop-ivcanon.c: Likewise.
5951         * tree-ssa-loop-ivopts.c: Likewise.
5952         * tree-ssa-loop-manip.c: Likewise.
5953         * tree-ssa-loop-niter.c: Likewise.
5954         * tree-ssa-loop-prefetch.c: Likewise.
5955         * tree-ssa-loop.c: Likewise.
5956         * tree-ssa-math-opts.c: Likewise.
5957         * tree-ssa-phiopt.c: Likewise.
5958         * tree-ssa-phiprop.c: Likewise.
5959         * tree-ssa-pre.c: Likewise.
5960         * tree-ssa-propagate.c: Likewise.
5961         * tree-ssa-reassoc.c: Likewise.
5962         * tree-ssa-sink.c: Likewise.
5963         * tree-ssa-strlen.c: Likewise.
5964         * tree-ssa-structalias.c: Likewise.
5965         * tree-ssa-tail-merge.c: Likewise.
5966         * tree-ssa-ter.c: Likewise.
5967         * tree-ssa-threadedge.c: Likewise.
5968         * tree-ssa-threadupdate.c: Likewise.
5969         * tree-ssa-uncprop.c: Likewise.
5970         * tree-ssa-uninit.c: Likewise.
5971         * tree-ssa.c: Likewise.
5972         * tree-stdarg.c: Likewise.
5973         * tree-switch-conversion.c: Likewise.
5974         * tree-tailcall.c: Likewise.
5975         * tree-vect-data-refs.c: Likewise.
5976         * tree-vect-generic.c: Likewise.
5977         * tree-vect-loop-manip.c: Likewise.
5978         * tree-vect-loop.c: Likewise.
5979         * tree-vect-patterns.c: Likewise.
5980         * tree-vect-slp.c: Likewise.
5981         * tree-vect-stmts.c: Likewise.
5982         * tree-vectorizer.c: Likewise.
5983         * tree-vrp.c: Likewise.
5984         * tree.c: Likewise.
5985         * tsan.c: Likewise.
5986         * value-prof.c: Likewise.
5987         * vtable-verify.c: Likewise.
5989 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5991         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5992         fix.
5994 2013-11-13  Jeff Law  <law@redhat.com>
5996         * PR middle-end/59119
5997         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5998         function, extracted from gimple_ssa_isolate_erroneous_paths.
5999         (find_explicit_erroneous_behaviour): Similarly.
6000         (insert_trap_and_remove_trailing_statements): Remove statements
6001         in reverse order.
6003 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
6005         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
6006         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
6007         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
6008         looking at INSN_CODE.
6009         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
6010         active_insn_p object, respect basic block boundaries.
6011         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
6012         follows immediately after the jump table data label.
6013         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
6014         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
6015         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
6017 2013-11-13  Teresa Johnson  <tejohnson@google.com>
6019         PR ipa/58862
6020         * predict.c (drop_profile): Error is currently too strict.
6021         (handle_missing_profiles): Pass call_count to drop_profile.
6023 2013-11-13  Teresa Johnson  <tejohnson@google.com>
6025         PR ipa/58862
6026         * ipa-inline.c (edge_badness): Fix overflow.
6028 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
6030         PR rtl-optimization/59036
6031         * ira-color.c (struct allocno_color_data): Add new members
6032         first_thread_allocno, next_thread_allocno, thread_freq.
6033         (sorted_copies): New static var.
6034         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
6035         (allocno_thread_conflict_p, merge_threads)
6036         (form_threads_from_copies, form_threads_from_bucket)
6037         (form_threads_from_colorable_allocno, init_allocno_threads): New
6038         functions.
6039         (bucket_allocno_compare_func): Add comparison by thread frequency
6040         and threads.
6041         (add_allocno_to_ordered_bucket): Rename to
6042         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
6043         (push_only_colorable): Call form_threads_from_bucket.
6044         (color_pass): Call init_allocno_threads.  Use
6045         consideration_allocno_bitmap instead of coloring_allocno_bitmap
6046         for nuillify allocno color data.
6047         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
6048         (coalesce_allocnos): Use static sorted copies.
6050 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
6052         * passes.c (execute_todo): Don't call do_per_function if
6053         flags are zero.
6054         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
6055         execute_function_dump if dump_file is NULL.
6057 2013-11-13  Martin Jambor  <mjambor@suse.cz>
6059         * cgraph.c (cgraph_get_create_node): Do what
6060         cgraph_get_create_real_symbol_node used to do.
6061         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
6062         call cgraph_get_create_node.
6063         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
6064         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
6065         cgraph_get_create_node.  Assert we get a node.
6067 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
6069         * config/aarch64/aarch64-simd.md (vec_extract): New.
6071 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
6073         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
6074         the constraint.
6076 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
6078         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
6079         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
6080         or if optimization is enabled.
6081         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
6082         require that all the names based on a PARM_DECL or a RESULT_DECL that
6083         isn't ignored for debug info be coalesced.
6085 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6087         * config/c6x/c6x.c: Include "gimple-expr.h".
6089 2013-11-13  Richard Biener  <rguenther@suse.de>
6091         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
6092         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
6093         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
6094         dealing with type mismatches inside component reference chains.
6096 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
6098         PR tree-optimization/59077
6099         * ipa-pure-const.c (better_state): Update *state.
6101 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
6103         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
6104         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
6105         Update offset calculations.
6107 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
6109         PR ada/35998
6110         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
6111         for fields.  Do not add the attribute if the size is negative.
6113 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6115         * config/arm/arm.c: Include aarch-cost-tables.h.
6116         (generic_extra_costs): Move from here...
6117         * config/arm/aarch-cost-tables.h: ... To here.  New file.
6119 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6120             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6121             Sergey Lega  <sergey.s.lega@intel.com>
6122             Anna Tikhonova  <anna.tikhonova@intel.com>
6123             Ilya Tocar  <ilya.tocar@intel.com>
6124             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6125             Ilya Verbin  <ilya.verbin@intel.com>
6126             Kirill Yukhin  <kirill.yukhin@intel.com>
6127             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6129         * config/i386/i386.c (ix86_print_operand): Support z-masking.
6130         * config/i386/predicate.md (const_0_to_4_operand): New.
6131         (const_0_to_5_operand): Ditto.
6132         * config/i386/sse.md (UNSPEC_COMPRESS): New.
6133         (UNSPEC_COMPRESS_STORE): Ditto.
6134         (UNSPEC_EXPAND): Ditto.
6135         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
6136         (define_mode_attr ssescalarsize): Ditto.
6137         (avx512f_load<mode>_mask): Ditto.
6138         (avx512f_store<mode>_mask): Ditto.
6139         (avx512f_storedqu<mode>_mask): Ditto.
6140         (avx512f_vmcmp<mode>3_mask): Ditto.
6141         (avx512f_fmadd_<mode>_mask): Ditto.
6142         (avx512f_fmadd_<mode>_mask3): Ditto.
6143         (avx512f_fmsub_<mode>_mask): Ditto.
6144         (avx512f_fmsub_<mode>_mask3): Ditto.
6145         (avx512f_fnmadd_<mode>_mask): Ditto.
6146         (avx512f_fnmadd_<mode>_mask3): Ditto.
6147         (avx512f_fnmsub_<mode>_mask): Ditto.
6148         (avx512f_fnmsub_<mode>_mask3): Ditto.
6149         (avx512f_fmaddsub_<mode>_mask): Ditto.
6150         (avx512f_fmaddsub_<mode>_mask3): Ditto.
6151         (avx512f_fmsubadd_<mode>_mask): Ditto.
6152         (avx512f_fmsubadd_<mode>_mask3): Ditto.
6153         (vec_unpacku_float_lo_v16si): Ditto.
6154         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
6155         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
6156         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
6157         (vec_extract_lo_<mode>_maskm): Ditto.
6158         (vec_extract_hi_<mode>_maskm): Ditto.
6159         (avx512f_vternlog<mode>_mask): Ditto.
6160         (avx512f_shufps512_mask): Ditto.
6161         (avx512f_fixupimm<mode>_mask): Ditto.
6162         (avx512f_shufpd512_mask): Ditto.
6163         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
6164         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
6165         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
6166         (ashr<mode>3<mask_name>): Ditto.
6167         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
6168         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
6169         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
6170         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
6171         (avx512f_pshufdv3_mask): Ditto.
6172         (avx512f_perm<mode>_mask): Ditto.
6173         (avx512f_vpermi2var<mode>3_mask): Ditto.
6174         (avx512f_vpermt2var<mode>3_mask): Ditto.
6175         (avx512f_compress<mode>_mask): Ditto.
6176         (avx512f_compressstore<mode>_mask): Ditto.
6177         (avx512f_expand<mode>_mask): Ditto.
6178         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
6179         to support masking.
6180         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
6181         (<plusminus_insn><mode>3<mask_name>): Ditto.
6182         (*<plusminus_insn><mode>3<mask_name>): Ditto.
6183         (mul<mode>3<mask_name>): Ditto.
6184         (*mul<mode>3<mask_name>): Ditto.
6185         (<sse>_div<mode>3<mask_name>): Ditto.
6186         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
6187         (<sse>_sqrt<mode>2<mask_name>): Ditto.
6188         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
6189         (<code><mode>3<mask_name>/smaxmin): Ditto.
6190         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
6191         (*<code><mode>3<mask_name>/smaxmin): Ditto.
6192         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
6193         (ufloatv16siv16sf2<mask_name>): Ditto.
6194         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
6195         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
6196         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
6197         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
6198         (ufloatv8siv8df<mask_name>): Ditto.
6199         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
6200         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
6201         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
6202         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
6203         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
6204         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
6205         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
6206         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
6207         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
6208         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
6209         (vec_extract_lo_<mode><mask_name>): Ditto.
6210         (vec_extract_hi_<mode><mask_name>): Ditto.
6211         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6212         (avx512f_movddup512<mask_name>): Ditto.
6213         (avx512f_unpcklpd512<mask_name>): Ditto.
6214         (*avx512f_unpcklpd512<mask_name>): Ditto.
6215         (*avx512f_vmscalef<mode>): Ditto.
6216         (avx512f_scalef<mode><mask_name>): Ditto.
6217         (avx512f_getexp<mode><mask_name>): Ditto.
6218         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
6219         (avx512f_rndscale<mode><mask_name>): Ditto.
6220         (avx512f_shufps512_1<mask_name>): Ditto.
6221         (avx512f_shufpd512_1<mask_name>): Ditto.
6222         (<plusminus_insn><mode>3<mask_name>): Ditto.
6223         (*<plusminus_insn><mode>3<mask_name>): Ditto.
6224         (vec_widen_umult_even_v16si<mask_name>): Ditto.
6225         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
6226         (vec_widen_smult_even_v16si<mask_name>): Ditto.
6227         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
6228         (mul<mode>3<mask_name>): Ditto.
6229         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
6230         (<shift_insn><mode>3<mask_name>): Ditto.
6231         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
6232         (avx512f_<rotate><mode><mask_name>): Ditto.
6233         (<code><mode>3<mask_name>/maxmin): Ditto.
6234         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
6235         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
6236         (*andnot<mode>3<mask_name>): Ditto.
6237         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
6238         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
6239         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
6240         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
6241         (vec_set_lo_<mode><mask_name>): Ditto.
6242         (vec_set_hi_<mode><mask_name>): Ditto.
6243         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
6244         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
6245         (avx512f_pshufd_1<mask_name>): Ditto.
6246         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
6247         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
6248         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
6249         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
6250         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
6251         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
6252         (avx512er_exp2<mode><mask_name>): Ditto.
6253         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
6254         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
6255         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
6256         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
6257         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
6258         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
6259         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
6260         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
6261         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
6262         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
6263         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
6264         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
6265         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
6266         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
6267         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
6268         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
6269         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
6270         (avx512f_getmant<mode><mask_name>): Ditto.
6271         (clz<mode>2<mask_name>): Ditto.
6272         (<mask_codefor>conflict<mode><mask_name>): Ditto.
6273         (*srcp14<mode>): Remove visibility.
6274         (*rsqrt14<mode>): Ditto.
6275         (*fma_fmsub_<mode>): Ditto.
6276         (*fma_fnmadd_<mode>): Ditto.
6277         (*avx512f_rndscale<mode>): Ditto.
6278         * config/i386/subst.md: New file.
6280 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
6282         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
6283         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
6284         (atomic_load_explicit, atomic_exchange_explicit)
6285         (atomic_compare_exchange_strong_explicit)
6286         (atomic_compare_exchange_weak_explicit): Use __auto_type to
6287         declare variable initialized with PTR argument.
6289 2013-11-12  Jeff Law  <law@redhat.com>
6291         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
6292         backedge_seen_p.  Set, use and pass it to children appropriately.
6293         (thread_through_normal_block): Similarly.
6294         (thread_across_edge): Similarly.
6296         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
6297         memory references as volatile.
6298         (insert_trap_and_remove_trailing_statements): Fix comment.
6300 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
6302         PR other/58712
6303         * ira-costs.c (record_operand_costs): Check operands number for
6304         the single set.
6306 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6308         PR target/59054
6309         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
6310         constraints that would allow DImode into the traditional Altivec
6311         registers, but cause undesirable code generation when loading 0 as
6312         a constant.
6313         (movdi_internal64): Likewise.
6314         (cmp<mode>_fpr): Do not use %x for CR register output.
6315         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
6316         -mallow-upper-sf debug switches are used.
6318 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
6320         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
6321         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
6322         Relocate prototypes from gimple.h.
6323         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
6324         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
6325         from gimple.h.
6326         * gimple.h: Move some prototypes to gimplify.h.
6327         (gimple_predicate, enum fallback, enum gimplify_status): Move to
6328         gimplify.h.
6329         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
6330         Relocate from gimpify.c.
6331         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6332         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
6333         is_gimple_reg_rhs) Relocate from gimplify.c.
6334         * gimplify.c (mark_addressable): Move to gimple-expr.c.
6335         (gimple_seq_add_stmt_without_update): Move to gimple.c.
6336         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6337         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
6338         is_gimple_reg_rhs): Move to gimple-expr.c.
6339         (should_carry_location_p): Move to gimple.c.
6340         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
6341         to gimple.h.
6342         (annotate_one_with_location, annotate_all_with_location_after,
6343         annotate_all_with_location): Move to gimple.c.
6344         (compare_case_labels, sort_case_labels,
6345         preprocess_case_label_vec_for_gimple): Move to gimple.c.
6346         (rhs_predicate_for): Make static.
6347         (gimplify_assign): Relocate from gimple.c.
6348         * gimple.c (gimplify_assign): Move to gimplify.c.
6349         (gimple_seq_add_stmt_without_update, should_carry_location_p,
6350         annotate_one_with_location, annotate_all_with_location_after,
6351         annotate_all_with_location, compare_case_labels, sort_case_labels,
6352         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6353         * tree.h (unshare_expr, unshare_expr_without_location,
6354         mark_addressable): Move prototypes to gimplify.h.
6355         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6356         tmp_var_id_num
6357         * asan.c: Include gimplify.h rather than gimple.h.
6358         * cfgloopmanip.c: Likewise.
6359         * cgraphunit.c: Likewise.
6360         * cilk-common.c: Likewise.
6361         * dwarf2out.c: Dont include gimple.h.
6362         * fold-const.c: Include gimplify.h rather than gimple.h.
6363         * function.c: Likewise.
6364         * gimple-fold.c: Likewise.
6365         * gimple-ssa-strength-reduction.c: Likewise.
6366         * graphite-clast-to-gimple.c: Likewise.
6367         * graphite-sese-to-poly.c: Likewise.
6368         * ipa-prop.c: Likewise.
6369         * ipa-split.c: Likewise.
6370         * ipa.c: Likewise.
6371         * langhooks.c: Dont include gimple.h.
6372         * loop-init.c: Include gimplify.h rather than gimple.h.
6373         * omp-low.c: Likewise.
6374         * sese.c: Likewise.
6375         * stor-layout.c: Likewise.
6376         * targhooks.c: Likewise.
6377         * trans-mem.c: Likewise.
6378         * tree-affine.c: Likewise.
6379         * tree-cfg.c: Likewise.
6380         * tree-cfgcleanup.c: Likewise.
6381         * tree-complex.c: Likewise.
6382         * tree-if-conv.c: Likewise.
6383         * tree-inline.c: Likewise.
6384         * tree-iterator.c: Likewise.
6385         * tree-loop-distribution.c: Likewise.
6386         * tree-nested.c: Likewise.
6387         * tree-parloops.c: Likewise.
6388         * tree-predcom.c: Likewise.
6389         * tree-profile.c: Likewise.
6390         * tree-scalar-evolution.c: Likewise.
6391         * tree-sra.c: Likewise.
6392         * tree-ssa-address.c: Likewise.
6393         * tree-ssa-ccp.c: Likewise.
6394         * tree-ssa-dce.c: Likewise.
6395         * tree-ssa-forwprop.c: Likewise.
6396         * tree-ssa-ifcombine.c: Likewise.
6397         * tree-ssa-loop-im.c: Likewise.
6398         * tree-ssa-loop-ivopts.c: Likewise.
6399         * tree-ssa-loop-manip.c: Likewise.
6400         * tree-ssa-loop-niter.c: Likewise.
6401         * tree-ssa-loop-prefetch.c: Likewise.
6402         * tree-ssa-loop-unswitch.c: Likewise.
6403         * tree-ssa-math-opts.c: Likewise.
6404         * tree-ssa-phiopt.c: Likewise.
6405         * tree-ssa-phiprop.c: Likewise.
6406         * tree-ssa-pre.c: Likewise.
6407         * tree-ssa-propagate.c: Likewise.
6408         * tree-ssa-reassoc.c: Likewise.
6409         * tree-ssa-sccvn.c: Likewise.
6410         * tree-ssa-strlen.c: Likewise.
6411         * tree-ssa.c: Likewise.
6412         * tree-switch-conversio: Likewise.n.c
6413         * tree-tailcall.c: Likewise.
6414         * tree-vect-data-refs.c: Likewise.
6415         * tree-vect-generic.c: Likewise.
6416         * tree-vect-loop-manip.c: Likewise.
6417         * tree-vect-loop.c: Likewise.
6418         * tree-vect-patterns.c: Likewise.
6419         * tree-vect-stmts.c: Likewise.
6420         * tsan.c: Likewise.
6421         * value-prof.c: Likewise.
6422         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6423         * config/alpha/alpha.c: Likewise.
6424         * config/darwin.c: Likewise.
6425         * config/i386/i386.c: Likewise.
6426         * config/ia64/ia64.c: Likewise.
6427         * config/mep/mep.c: Likewise.
6428         * config/mips/mips.c: Likewise.
6429         * config/rs6000/rs6000.c: Likewise.
6430         * config/s390/s390.c: Likewise.
6431         * config/sh/sh.c: Likewise.
6432         * config/sparc/sparc.c: Likewise.
6433         * config/spu/spu.c: Likewise.
6434         * config/stormy16/stormy16.c: Likewise.
6435         * config/tilegx/tilegx.c: Likewise.
6436         * config/tilepro/tilepro.c: Likewise.
6437         * config/xtensa/xtensa.c: Likewise.
6439 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
6441         * tree.c (grow_tree_vec_stat): New function ...
6442         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6443         and macro front-end.
6445 2013-11-12  Marek Polacek  <polacek@redhat.com>
6447         * final.c (update_alignments): Initialize label to NULL_RTX.
6449 2013-11-12  Jeff Law  <law@redhat.com>
6451         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6452         (insert_trap_and_remove_trailing_statements): New argument OP which
6453         is the NULL pointer.  Emit the trap after the load/store through
6454         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
6455         when trivial to do so.
6456         (isolate_path): Corresponding changes.
6457         (gimple_ssa_isolate_erroneous_path): Likewise.
6459 2013-11-12  Teresa Johnson  <tejohnson@google.com>
6460             Jan Hubicka  <jh@suse.cz>
6462         * predict.c (drop_profile): New function.
6463         (handle_missing_profiles): Ditto.
6464         (counts_to_freqs): Don't overwrite estimated frequencies
6465         when function has no profile counts.
6466         * predict.h (handle_missing_profiles): Declare.
6467         * tree-inline.c (freqs_to_counts): New function.
6468         (copy_cfg_body): Invoke freqs_to_counts as needed.
6469         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6471 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6473         PR target/59088
6474         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6475         Set for m_HASWELL.
6476         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6478 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6480         PR target/59084
6481         * config/i386/i386.c (ix86_option_override_internal): Check
6482         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6483         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6484         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6485         MASK_AVX256_SPLIT_UNALIGNED_STORE.
6487         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6488         Clear m_COREI7_AVX and update comments.
6489         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6491 2013-11-12  Martin Jambor  <mjambor@suse.cz>
6493         PR rtl-optimization/10474
6494         * ira.c (interesting_dest_for_shprep): New function.
6495         (split_live_ranges_for_shrink_wrap): Likewise.
6496         (find_moveable_pseudos): Move calculation of dominance info,
6497         df_analysios and the final anlyses to...
6498         (ira): ...here, call split_live_ranges_for_shrink_wrap.
6500 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
6502         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6503         Handle type conversion.
6505 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
6506             Jan Hubicka  <jh@suse.cz>
6508         * cgraph.c (dump_cgraph_node): Profile dump added.
6509         * cgraph.h (struct cgraph_node): New time profile variable added.
6510         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6511         * gcov-io.h (gcov_type): New profiler type introduced.
6512         * ipa-profile.c (lto_output_node): Streaming for time profile added.
6513         (input_node): Time profiler is read from LTO stream.
6514         * predict.c (maybe_hot_count_p): Hot prediction changed.
6515         * profile.c (instrument_values): New case for time profiler added.
6516         (compute_value_histograms): Read of time profile.
6517         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6518         * tree-profile.c (init_ic_make_global_vars): Time profiler
6519         function added.
6520         (gimple_init_edge_profiler): TP function instrumentation.
6521         (gimple_gen_time_profiler): New.
6522         * value-prof.c (gimple_add_histogram_value): Support for time profiler
6523         added.
6524         (dump_histogram_value): TP type added to dumps.
6525         (visit_hist): More sensitive check that takes TP into account.
6526         (gimple_find_values_to_profile): TP instrumentation.
6527         * value-prof.h (hist_type): New histogram type added.
6528         (struct histogram_value_t): Pointer to struct function added.
6529         * libgcc/Makefile.in: New GCOV merge function for TP added.
6530         * libgcov.c: function_counter variable introduced.
6531         (_gcov_merge_time_profile): New.
6532         (_gcov_time_profiler): New.
6534 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
6535             Jeff Law  <law@redhat.com>
6537         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6538         ao_ref_init_from_ptr_and_size for builtins.
6540 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
6541             H.J. Lu  <hongjiu.lu@intel.com>
6543         PR target/58853
6544         * config/i386/x86-tune.def
6545         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6546         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6547         * config/i386/i386.h
6548         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6549         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
6550         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6551         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6552         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6553         misaligned_prologue_used.  Check that
6554         desired_aling <= epilogue_size_needed.
6556 2013-11-11  Cong Hou  <congh@google.com>
6558         PR tree-optimization/59050
6559         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6561 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6563         PR middle-end/59049
6564         * expmed.c (emit_store_flag): Fail for const-const comparison.
6566 2013-11-11  Tristan Gingold  <gingold@adacore.com>
6567             Eric Botcazou  <ebotcazou@adacore.com>
6569         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6570         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6571         * tree.def (CONSTRUCTOR): Likewise.
6572         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
6573         * gimplify.c (gimplify_init_constructor): Do not clear the object when
6574         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6576 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
6578         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6579         diagnostic_finish.
6581 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6583         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6584         comparisons.
6586 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6588         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6590 2013-11-08  Jeff Law  <law@redhat.com>
6592         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6593         threading paths first, then perform PHI node checks if applicable.
6595 2013-11-10  Karlson2k  <k2k@narod.ru>
6596             Kai Tietz  <ktietz@redhat.com>
6598         PR plugin/52872
6599         * configure.ac: Adding for exported symbols check
6600         and for rdynamic-check executable-extension.
6601         * configure: Regenerated.
6603 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
6605         * mode-switching.c (optimize_mode_switching): Mark block as
6606         nontransparent, if last_mode at block exit is different from no_mode.
6608 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6610         * function.c (NAME__MAIN): Move to...
6611         * cfgexpand.c (NAME__MAIN): ...here.
6613 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
6615         * target.def (can_use_doloop_p): New hook.
6616         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6617         * doc/tm.texi: Regenerate.
6618         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6619         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6620         * hooks.c (hook_bool_dint_dint_uint_true): New function.
6621         * targhooks.h (can_use_doloop_if_innermost): Declare.
6622         * targhooks.c (can_use_doloop_if_innermost): New function.
6623         * target.h: Include double-int.h.
6624         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6625         Remove iteration count, maximum iteration count, loop depth and
6626         enter-at-top inputs from doloop_begin and doloop_end.
6627         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6628         interface.
6629         * config/arc/arc.c (arc_can_use_doloop_p): New function.
6630         (TARGET_CAN_USE_DOLOOP_P): Define.
6631         * config/arm/thumb2.md (doloop_end): Update for new interface.
6632         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6633         * config/bfin/bfin.md (doloop_end): Update for new interface.
6634         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6635         (TARGET_CAN_USE_DOLOOP_P): Define.
6636         * config/c6x/c6x.md (doloop_end): Update for new interface.
6637         * config/ia64/ia64.md (doloop_end): Update for new interface.
6638         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6639         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6640         interface.
6641         * config/mep/mep.c (mep_emit_doloop): Likewise.
6642         (TARGET_CAN_USE_DOLOOP_P): Define.
6643         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6644         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6645         * config/s390/s390.md (doloop_end): Update for new interface.
6646         * config/sh/sh.md (doloop_end): Likewise.
6647         * config/spu/spu.md (doloop_end): Likewise.
6648         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6649         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6650         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6651         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6652         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6653         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6654         interface.
6655         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6657 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
6659         PR other/59055
6660         * doc/extend.texi: Move Cilk Plus Builtins node before Other
6661         Builtins node.
6663 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
6664             Joseph Myers  <joseph@codesourcery.com>
6666         * ginclude/stdatomic.h: New file.
6667         * Makefile.in (USER_H): Add stdatomic.h.
6669 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6671         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6672         comparisons.
6674 2013-11-08  Jeff Law  <law@redhat.com>
6676         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6677         * tree-ssa-threadupdate.c (delete_thread_path): New function.
6678         (ssa_redirect_edges, thread_block_1): Use it.
6679         (thread_through_loop_header, mark_threaded_blocks): Likewise.
6680         (thread_through_all_blocks, register_jump_thread): Likewise.
6681         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6683 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
6685         * config/arm/aarch-common.c
6686         (search_term): New typedef.
6687         (shift_rtx_costs): New array.
6688         (arm_rtx_shift_left_p): New.
6689         (arm_find_sub_rtx_with_search_term): Likewise.
6690         (arm_find_sub_rtx_with_code): Likewise.
6691         (arm_early_load_addr_dep): Add sanity checking.
6692         (arm_no_early_alu_shift_dep): Likewise.
6693         (arm_no_early_alu_shift_value_dep): Likewise.
6694         (arm_no_early_mul_dep): Likewise.
6695         (arm_no_early_store_addr_dep): Likewise.
6697 2013-11-08  Richard Biener  <rguenther@suse.de>
6699         PR tree-optimization/59047
6700         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6702 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
6704         * common.opt (fcheck-pointer-bounds): Move to ...
6705         * c-family/c.opt: ... here.
6706         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6707         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6708         * langhooks.h (lang_hooks): Remove chkp_supported field.
6709         * toplev.c (process_options): Remove chkp_supported check.
6711 2013-11-08  Richard Biener  <rguenther@suse.de>
6713         PR tree-optimization/59038
6714         PR tree-optimization/58955
6715         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6716         previous change.  Handle known dependences correctly.
6718 2013-11-08  Tom de Vries  <tom@codesourcery.com>
6720         * config/rs6000/t-xilinx: Remove duplicate contents.
6722 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
6723             Joseph Myers  <joseph@codesourcery.com>
6725         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6726         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6727         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6728         (struct tree_base): Add atomic_flag field.
6729         * tree.h (TYPE_ATOMIC): New accessor macro.
6730         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6731         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6732         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6733         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6734         * tree.c (set_type_quals): Set TYPE_ATOMIC.
6735         (find_atomic_core_type): New function.
6736         (build_qualified_type): Adjust alignment for qualified types.
6737         (build_atomic_base): New function
6738         (build_common_tree_nodes): Build atomicQI_type_node,
6739         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6740         atomicTI_type_node.
6741         * print-tree.c (print_node): Print atomic qualifier.
6742         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6743         * target.def (atomic_assign_expand_fenv): New hook.
6744         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6745         * doc/tm.texi: Regenerate.
6746         * targhooks.c (default_atomic_assign_expand_fenv): New function.
6747         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6748         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6749         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6750         function type.
6751         * config/i386/i386.c (enum ix86_builtins): Add
6752         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6753         IX86_BUILTIN_FNCLEX.
6754         (bdesc_special_args): Add __builtin_ia32_fnstenv,
6755         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6756         (ix86_expand_builtin): Handle the new built-in functions.
6757         (ix86_atomic_assign_expand_fenv): New function.
6758         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6759         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6760         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6761         (fnstenv, fldenv, fnstsw, fnclex): New insns.
6763 2013-11-07  Steve Ellcey  <sellcey@mips.com>
6765         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6766         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6767         (MULTILIB_DIRNAMES): Add fp64 directory.
6768         (MULTILIB_EXCEPTIONS): Add new exclusions.
6770 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
6772         * gimplify.c (gimple_regimplify_operands): Do not set
6773         SSA_NAME_DEF_STMT.
6774         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6775         (rewrite_close_phi_out_of_ssa): Same.
6776         (rewrite_phi_out_of_ssa): Same.
6777         (rewrite_degenerate_phi): Same.
6778         (handle_scalar_deps_crossing_scop_limits): Same.
6779         * tree-if-conv.c (predicate_scalar_phi): Same.
6780         * tree-parloops.c (create_loads_for_reductions): Same.
6781         (create_final_loads_for_reduction): Same.
6782         (create_loads_and_stores_for_name): Same.
6783         (transform_to_exit_first_loop): Same.
6784         (create_parallel_loop): Same.
6785         * tree-ssa-loop-im.c
6786         (move_computations_dom_walker::before_dom_children): Same.
6787         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6788         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6789         * tree-ssa-propagate.c (substitute_and_fold): Same.
6790         * tree-vect-loop.c (vect_finalize_reduction): Same.
6791         * tree-vect-stmts.c (vectorizable_call): Same.
6793 2013-11-07  Mike Stump  <mikestump@comcast.net>
6795         * config/pdp11/pdp11.c: Include dbxout.h.
6796         * config/picochip/picochip.c: Likewise.
6798 2013-11-07  Cong Hou  <congh@google.com>
6800         PR tree-optimization/56764
6801         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6802         Combine alias checks if it is possible to amortize the runtime
6803         overhead.  Return the number of alias checks after merging.
6804         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6805         Use the function vect_create_cond_for_alias_checks () to check
6806         the number of alias checks.
6808 2013-11-07  Jeff Law  <law@redhat.com>
6810         * varpool.c (ctor_for_folding): Fix typo in comment.
6812 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
6814         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6815         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
6817 2013-11-07  Jeff Law  <law@redhat.com>
6819         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6821         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6822         No longer check if we have __builtin_trap, assume it's available.
6824 2013-11-07  Diego Novillo  <dnovillo@google.com>
6826         * attribs.c (lookup_scoped_attribute_spec): Make static.
6827         (get_attribute_namespace): Likewise.
6828         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6829         (validate_arglist): Move earlier in the file. Make static.
6830         (expand_stack_restore): Move from stmt.c
6831         (expand_stack_save): Move from stmt.c
6832         (rewrite_call_expr_array): Move earlier in the file.
6833         (rewrite_call_expr_valist): Likewise.
6834         * cfgexpand.c: Include hard-reg-set.h before tree.h
6835         Include recog.h.
6836         Include output.h.
6837         (expand_asm_loc): Move from stmt.c.
6838         (n_occurrences): Move from stmt.c.
6839         (check_operand_nalternatives): Move from stmt.c.
6840         (tree_conflicts_with_clobbers_p): Move from stmt.c.
6841         (expand_asm_operands): Move from stmt.c
6842         (expand_asm_stmt): Move from stmt.c
6843         (expand_computed_goto): Move from stmt.c
6844         (expand_goto): Move from stmt.c
6845         (expand_null_return_1): Move from stmt.c
6846         (expand_null_return): Move from stmt.c
6847         (expand_value_return): Move from stmt.c
6848         (expand_return): Move from stmt.c
6849         (expand_main_function): Move from function.c
6850         (stack_protect_prologue): Move from function.c
6851         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6852         (build_function_decl_skip_args): Move from tree.c.
6853         * explow.c (tree_expr_size): Move from tree.c.
6854         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6855         (fields_length): Move from tree.c.
6856         * fold-const.c (size_low_cst): Move from tree.c.
6857         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6858         (tree_expr_nonzero_p): Make static. Move earlier in the file.
6859         (fold_build3_initializer_loc): Remove.
6860         (tree_invalid_nonnegative_warnv_p): Make static.
6861         * function.c (expand_main_function): Move to cfgexpand.c.
6862         (stack_protect_prologue): Move to cfgexpand.c.
6863         (set_insn_locations): Move earlier in the file.
6864         * gimple-fold.c: Include langhooks.h.
6865         (truth_type_for): Move from tree.c.
6866         * print-tree.c (print_vec_tree): Remove.
6867         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6868         (expand_goto): Move to cfgexpand.c.
6869         (n_occurrences): Move to cfgexpand.c.
6870         (expand_asm_loc): Move to cfgexpand.c
6871         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6872         (expand_asm_operands): Move to cfgexpand.c.
6873         (expand_asm_stmt): Move to cfgexpand.c.
6874         (check_operand_nalternatives): Move to cfgexpand.c
6875         (expand_null_return): Move to cfgexpand.c.
6876         (expand_value_return): Move to cfgexpand.c.
6877         (expand_null_return_1): Move to cfgexpand.c.
6878         (expand_return): Move to cfgexpand.c.
6879         (expand_stack_save): Move to builtins.c.
6880         (expand_stack_restore): Move to builtins.c
6881         * symtab.c: Include output.h.
6882         (decl_assembler_name_hash): Move from tree.c.
6883         (decl_assembler_name_equal): Move from tree.c.
6884         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6885         * tree-eh.c (in_array_bounds_p): Move from tree.c.
6886         (range_in_array_bounds_p): Move from tree.c.
6887         * tree-object-size.c (fini_object_sizes): Make static.
6888         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6889         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6890         * tree.c (decl_assembler_name_equal): Move to symtab.c.
6891         (tree_expr_size): Move to explow.c.
6892         (decl_assembler_name_hash): Move to symtab.c.
6893         (real_twop): Remove.
6894         (tree_expr_size): Move to explow.c.
6895         (stabilize_reference_1): Move earlier in the file. Make static.
6896         (omp_remove_redundant_declare_simd_attrs): Remove.
6897         (simple_cst_list_equal): Move earlier in the file. Make static.
6898         (size_low_cst): Move to fold-const.c.
6899         (build_type_no_quals): Remove.
6900         (build_function_type_skip_args): Move to cgraphclones.c.
6901         (build_function_decl_skip_args): Move to cgraphclones.c.
6902         (in_array_bounds_p): Move to tree-eh.c.
6903         (range_in_array_bounds_p): Move to tree-eh.c.
6904         (truth_type_for): Move to gimple-fold.c.
6905         (list_equal_p): Remove.
6906         * tree.h (decl_assembler_name_equal): Remove.
6907         (decl_assembler_name_hash): Remove.
6908         (truth_type_for): Remove.
6909         (build_type_no_quals): Remove.
6910         (build_function_decl_skip_args): Remove.
6911         (in_array_bounds_p): Remove.
6912         (range_in_array_bounds_p): Remove.
6913         (size_low_cst): Remove.
6914         (omp_remove_redundant_declare_simd_attrs): Remove.
6915         (tree_expr_size): Remove.
6916         (fields_length): Remove.
6917         (stabilize_reference_1): Remove.
6918         (expand_goto): Remove.
6919         (expand_stack_save): Remove.
6920         (expand_stack_restore): Remove.
6921         (expand_return): Remove.
6922         (fold_build3_initializer_loc): Remove.
6923         (tree_expr_nonzero_p): Remove.
6924         (tree_invalid_nonnegative_warnv_p): Remove.
6925         (tree_expr_nonzero_warnv_p): Remove.
6926         (fold_builtin_snprintf_chk): Remove.
6927         (validate_arglist): Remove.
6928         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6929         (simple_cst_list_equal): Remove.
6930         (real_twop): Remove.
6931         (expand_main_function): Remove.
6932         (stack_protect_prologue): Remove.
6933         (print_vec_tree): Remove.
6934         (lookup_scoped_attribute_spec): Remove.
6935         (get_attribute_namespace): Remove.
6936         (expand_computed_goto): Remove.
6937         (expand_asm_stmt): Remove.
6938         (list_equal_p): Remove.
6939         (ssa_name_nonnegative_p): Remove.
6940         (fini_object_sizes): Remove.
6941         (addr_expr_of_non_mem_decl_p): Remove.
6942         (is_tm_safe_or_pure): Move to trans-mem.c.
6943         (more_const_call_expr_args_p): Remove.
6944         (save_vtable_map_decl): Remove.
6946 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
6948         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6949         linker plugins, too.
6951         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6952         link to libgomp and its dependencies.
6953         * config/ia64/hpux.h (LIB_SPEC): Likewise.
6954         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6955         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6956         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6958 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
6960         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6961         (determine_value_range): Add loop argument.  Use get_range_info to
6962         improve range.
6963         (bound_difference): Adjust caller.
6965 2013-11-07  Richard Biener  <rguenther@suse.de>
6966             Jakub Jelinek  <jakub@redhat.com>
6968         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6969         latches from header PHI arguments from the latch edge.
6971 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
6973         PR c++/58176
6974         * varasm.c (output_constant): Handle NULLPTR_TYPE.
6976 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6978         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6979         misaligned_prologue_used when it has been set.
6981 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
6982             Jakub Jelinek  <jakub@redhat.com>
6984         PR sanitizer/59029
6985         * asan.c (get_mem_refs_of_builtin_call): Allow
6986         integer literals as addresses in instrumented builtins.
6988 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6990         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6991         Explain why plus_constant is not used.
6993 2013-11-07  Richard Biener  <rguenther@suse.de>
6995         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6996         (canonicalize_value): ... this.  Also handle stripping of
6997         TREE_OVERFLOW.
6998         (get_value, set_lattice_value, get_value_for_expr): Adjust.
6999         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
7000         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
7002 2013-11-07  Richard Biener  <rguenther@suse.de>
7004         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
7006 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7008         PR target/59034
7009         * config/i386/i386.md (push peepholer/splitter): Use Pmode
7010         with stack_pointer_rtx.
7012 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
7014         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
7015         using operand_equal_p.
7017 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
7019         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
7020         * tree-affine.c (get_inner_reference_aff): Return base.
7021         * tree-affine.h (get_inner_reference_aff): Change prototype.
7023 2013-11-06  Tobias Burnus  <burnus@net-b.de>
7025         * doc/invoke.texi (Wdate-time): Fix typo.
7027 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
7029         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
7030         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
7031         fp_arith_reg_operand instead of arith_reg_operand.
7033 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
7035         * config/sh/sh.md (adddi3): Remove empty constraints.
7036         Remove can_create_pseudo_p and arith_reg_operand check.
7037         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
7038         Split before reload.
7040 2013-11-06  Jeff Law  <law@redhat.com>
7041             Tom Tromey  <tromey@redhat.com>
7043         * gdbinit.in: Disable strict type checking.
7045 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
7047         * tree-pass.h (make_pass_live_range_shrinkage): New external.
7048         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
7049         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
7050         (rest_of_handle_live_range_shrinkage): Ditto
7051         (class pass_live_range_shrinkage): Ditto.
7052         (pass_data_live_range_shrinkage): Ditto.
7053         (make_pass_live_range_shrinkage): Ditto.
7054         * sched-int.h (initialize_live_range_shrinkage): New prototype.
7055         (finish_live_range_shrinkage): Ditto.
7056         * sched-deps.c (create_insn_reg_set): Make void return value.
7057         * passes.def: Add pass_live_range_shrinkage.
7058         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
7059         * haifa-sched.c (live_range_shrinkage_p): New.
7060         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
7061         New functions.
7062         (rank_for_schedule): Add code for pressure relief through live
7063         range shrinkage.
7064         (schedule_insn): Print more debug info.
7065         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
7066         through live range shrinkage.
7067         * doc/invoke.texi (-flive-range-shrinkage): New.
7068         * common.opt (flive-range-shrinkage): New.
7070 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
7072         PR target/59021
7073         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
7074         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
7075         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
7076         RTXes that return in AVX256 register.
7078 2013-11-06  Richard Biener  <rguenther@suse.de>
7080         PR tree-optimization/58653
7081         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
7082         (prepare_initializers_chain): Adjust.
7084 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
7086         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
7087         (gimple_in_transaction): Use bb_in_transaction.
7088         * basic-block.h (bb_in_transaction): Relocate here and rename.
7089         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
7091 2013-11-06  Richard Biener  <rguenther@suse.de>
7093         * tree.c (drop_tree_overflow): New function.
7094         * tree.h (drop_tree_overflow): Declare.
7095         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
7096         * tree-vrp.c (range_int_cst_singleton_p): Use
7097         is_overflow_infinity instead of testing TREE_OVERFLOW.
7098         (extract_range_from_assert): Likewise.
7099         (zero_nonzero_bits_from_vr): Likewise.
7100         (extract_range_basic): Likewise.
7101         (register_new_assert_for): Use drop_tree_overflow.
7102         (vrp_visit_phi_node): Likewise.
7104 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
7106         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
7107         checking for leaf functions without dynamic stack allocation.
7108         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
7109         (ia64_expand_prologue): Likewise.
7110         * config/mips/mips.c (mips_expand_prologue): Likewise.
7111         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7112         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7113         (sparc_flat_expand_prologue): Likewise.
7115 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
7117         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
7118         (__ST3_LANE_FUNC): Likewise.
7119         (__ST4_LANE_FUNC): Likewise.
7121 2013-11-06  Nick Clifton  <nickc@redhat.com>
7123         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
7124         name returned by msp430_mcu_name.
7125         (LIB_SPEC): If a -T option has not been specified then set a
7126         default, mcu-specific, linker script.
7127         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
7128         * config/msp430/msp430.c (msp430x_names): Likewise.
7129         Alpha sort the names for ease of comparison.
7130         (msp430_mcu_name): New function:  Returns a string suitable for
7131         use as a C preprocessor symbol based upon the name of the MCU
7132         being targeted.
7133         (msp430_option_override): Accept msp430x and msp430xv2 as generic
7134         mcu names.
7135         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
7137         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
7138         unless it is the last part of a spec substring.
7139         * doc/invoke.texi (Spec Files): Document space insertion
7140         behaviour of %*.
7142 2013-11-06  Christian Bruel  <christian.bruel@st.com>
7144         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
7145         Factorize probabilities, Use adjust_address instead of
7146         adjust_automodify_address when possible. Enable for optimize.
7147         (sh_expand_strlen): New function.
7148         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
7149         * config/sh/sh.md (strlensi): New pattern.
7150         (UNSPEC_BUILTIN_STRLEN): Define.
7152 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
7154         PR middle-end/58970
7155         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
7156         (expand_assignment): If *bitpos is negative, set *offset
7157         and adjust *bitpos, so that it is not negative.
7159 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
7161         * config/i386/bdver3.md : Added two additional decoder units
7162         to support issue rate of 4 and remodeled vector unit.
7163         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
7164         architectures is set to 4.
7165         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
7166         lookahead is set to 4 for BD architectures.
7168 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7170         * config/rs6000/rs6000.c (rs6000_option_override_internal):
7171         Remove restriction against use of VSX instructions when generating
7172         code for little endian mode.
7174 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7176         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
7177         for both big and little endian.
7178         (mulv8hi3): Swap input operands for merge high and merge low
7179         instructions for little endian.
7181 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7183         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
7184         define_insn to define_expand that uses even patterns for big
7185         endian and odd patterns for little endian.
7186         (vec_widen_smult_even_v16qi): Likewise.
7187         (vec_widen_umult_even_v8hi): Likewise.
7188         (vec_widen_smult_even_v8hi): Likewise.
7189         (vec_widen_umult_odd_v16qi): Likewise.
7190         (vec_widen_smult_odd_v16qi): Likewise.
7191         (vec_widen_umult_odd_v8hi): Likewise.
7192         (vec_widen_smult_odd_v8hi): Likewise.
7193         (altivec_vmuleub): New define_insn.
7194         (altivec_vmuloub): Likewise.
7195         (altivec_vmulesb): Likewise.
7196         (altivec_vmulosb): Likewise.
7197         (altivec_vmuleuh): Likewise.
7198         (altivec_vmulouh): Likewise.
7199         (altivec_vmulesh): Likewise.
7200         (altivec_vmulosh): Likewise.
7202 2013-11-05  Mike Stump  <mikestump@comcast.net>
7204         * Makefile.in (mostlyclean): Remove c-family objects.
7206 2013-11-05  Ian Lance Taylor  <iant@google.com>
7208         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7209         If possible, add .cfi directives to record change to bx.
7210         * config/i386/i386.c (ix86_emit_cfi): New function.
7211         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7213 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
7215         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
7216         immediately after a label for a tablejump pattern.
7218         * config/arm/arm.c (is_jump_table): Remove.
7219         (create_fix_barrier): Use tablejump_p instead.
7220         (arm_reorg): Likewise.
7221         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
7222         (thumb2_output_casesi): Likewise.
7223         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
7224         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
7225         casesi_shift_media, casesi_load_media): Likewise.
7226         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
7227         * config/microblaze/microblaze.md: Likewise.
7229 2013-11-05  Tobias Burnus  <burnus@net-b.de>
7231         * doc/invoke.texi (-Wdate-time): Document.
7233 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
7235         * double-int.c (lshift_double, rshift_double): Remove
7236         SHIFT_COUNT_TRUNCATED handling.
7238 2013-11-05  Jeff Law  <law@redhat.com>
7240         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
7241         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
7242         * gimple-ssa-isolate-paths.c: New file.
7243         * gimple.c (check_loadstore): New function.
7244         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
7245         Verify OP is in the argument list and the argument corresponding
7246         to OP is a pointer type.  Use operand_equal_p rather than
7247         pointer equality when testing if OP is on the nonnull list.
7248         Use check_loadstore rather than count_ptr_derefs.  Handle
7249         GIMPLE_RETURN statements.
7250         * tree-vrp.c (infer_nonnull_range): Remove.
7251         * gimple.h (infer_nonnull_range): Declare.
7252         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
7253         * passes.def: Add pass_isolate_erroneous_paths.
7254         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
7255         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
7256         * tree-ssa.c (struct count_ptr_d): Remove.
7257         (count_ptr_derefs, count_uses_and_derefs): Remove.
7258         * tree-ssa.h (count_uses_and_derefs): Remove.
7260 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
7262         PR rtl-optimization/58997
7263         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
7264         get_iv_value to be in iv->mode rather than iv->extend_mode.
7265         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
7266         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
7267         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
7268         mode.
7270 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
7272         * gimple.h: Move some prototypes to gimple-expr.h and add to include
7273         list.
7274         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
7275         Move to gimple-expr.h.
7276         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
7277         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
7278         is_gimple_id, virtual_operand_p, is_gimple_addressable,
7279         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
7280         Relocate here.
7281         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
7282         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
7283         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
7284         is_gimple_address, is_gimple_invariant_address,
7285         is_gimple_ip_invariant_address, is_gimple_min_invariant,
7286         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
7287         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
7288         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
7289         gimple_decl_printable_name, useless_type_conversion_p,
7290         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
7291         gimple-expr.[ch].
7292         * gimple-expr.c: New File.
7293         (useless_type_conversion_p, gimple_set_body, gimple_body,
7294         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
7295         gimple_can_coalesce_p, extract_ops_from_tree_1,
7296         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
7297         is_gimple_address, is_gimple_invariant_address,
7298         is_gimple_ip_invariant_address, is_gimple_min_invariant,
7299         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
7300         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
7301         is_gimple_mem_ref_addr): Relocate here.
7302         * Makefile.in (OBJS): Add gimple-expr.o.
7304 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
7306         * gengtype-parse.c (struct_field_seq): Support empty structs.
7308 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
7310         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
7312 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
7314         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
7315         for !TARGET_80387.
7316         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
7317         _SOFT_FLOAT here.
7318         (LONG_DOUBLE_TYPE_SIZE): New define.
7319         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
7321 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
7323         PR c++/58724
7324         * doc/extend.texi [visibility ("visibility_type")]: Add example
7325         about visibility attribute on namespace declaration.
7327 2013-11-05  Richard Biener  <rguenther@suse.de>
7329         PR ipa/58492
7330         * passes.def (all_passes): Start with pass_fixup_cfg again.
7332 2013-11-05  Richard Biener  <rguenther@suse.de>
7334         PR tree-optimization/58955
7335         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
7336         edge direction.
7338 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7340         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
7341         little endian.
7342         (vec_pack_ufix_trunc_v2df): Likewise.
7344 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
7346         PR middle-end/58981
7347         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7348         pattern, instead of word_mode.
7350         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7351         Pmode for size.
7352         (set_storage_via_setmem): Likewise.
7354 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
7356         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7357         gimple.h and the rest of the condition in eliminate_build.
7358         (eliminate_build): Call new routine.
7359         * gimple.h (phi_ssa_name_p): Delete.
7361 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
7363         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7364         case of no prefix and reserving zero slots, because when that's the
7365         case we'll never get here.
7366         * vec.h (va_heap::reserve): Don't try and handle
7367         vec_prefix::calculate_allocation returning zero because that should
7368         never happen.
7370 2013-11-05  Richard Biener  <rguenther@suse.de>
7372         PR middle-end/58941
7373         * tree-dfa.c (get_ref_base_and_extent): Merge common code
7374         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
7375         process trailing array detection before diving into the
7376         view-converted object (and possibly apply some extra offset).
7378 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
7380         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7381         New function.
7382         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7384 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
7386         PR tree-optimization/58958
7387         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7388         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7390 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
7392         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7393         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7395 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
7397         PR tree-optimization/58984
7398         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7399         set *SIZE_P if non-NULL on success.
7400         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7401         callers.
7402         (ipcp_transform_function): Likewise.  Punt if size of access
7403         is different from TYPE_SIZE on v->value's type.
7405 2013-11-05  Tobias Burnus  <burnus@net-b.de>
7407         * doc/invoke.texi (-fopenmp-simd): Document new option.
7408         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7409         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7410         * tree.c (attribute_value_equal): Ditto.
7412 2013-11-04  Wei Mi  <wmi@google.com>
7414         * sched-rgn.c (add_branch_dependences): Keep insns in
7415         a SCHED_GROUP at the end of BB to remain their location.
7417 2013-11-04  Wei Mi  <wmi@google.com>
7419         * config/i386/i386.c (memory_address_length): Extract a part
7420         of code to rip_relative_addr_p.
7421         (rip_relative_addr_p): New Function.
7422         (ix86_macro_fusion_p): Ditto.
7423         (ix86_macro_fusion_pair_p): Ditto.
7424         * config/i386/i386.h: Add new tune features about macro-fusion.
7425         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7426         * doc/tm.texi: Generated.
7427         * doc/tm.texi.in: Ditto.
7428         * haifa-sched.c (try_group_insn): New Function.
7429         (group_insns_for_macro_fusion): Ditto.
7430         (sched_init): Call group_insns_for_macro_fusion.
7431         * target.def: Add two hooks: macro_fusion_p and
7432         macro_fusion_pair_p.
7434 2013-11-04  Kostya Serebryany  <kcc@google.com>
7436         Update to match the changed asan API.
7437         * asan.c (asan_function_start): New function.
7438         (asan_emit_stack_protection): Update the string stored in the
7439         stack red zone to match new API.  Store the PC of the current
7440         function in the red zone.
7441         (asan_global_struct): Update the __asan_global definition to match
7442         the new API.
7443         (asan_add_global): Ditto.
7444         * asan.h (asan_function_start): New prototype.
7445         * final.c (final_start_function): Call asan_function_start.
7446         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7447         to __asan_init_v3.
7449 2013-11-04  Wei Mi  <wmi@google.com>
7451         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7452         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7453         * config/i386/i386.c (ix86_option_override_internal): Ditto.
7454         (ix86_issue_rate): Ditto.
7455         (ix86_adjust_cost): Ditto.
7456         (ia32_multipass_dfa_lookahead): Ditto.
7457         (ix86_sched_init_global): Ditto.
7458         (get_builtin_code_for_version): Ditto.
7459         * config/i386/i386.h (enum target_cpu_default): Ditto.
7460         (enum processor_type): Ditto.
7461         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7463 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7465         PR rtl-optimization/58967
7466         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7467         !lra_in_progress for mode sizes bigger word.
7469 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7471         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7472         arguments to merge instruction for little endian.
7473         (vec_widen_umult_lo_v16qi): Likewise.
7474         (vec_widen_smult_hi_v16qi): Likewise.
7475         (vec_widen_smult_lo_v16qi): Likewise.
7476         (vec_widen_umult_hi_v8hi): Likewise.
7477         (vec_widen_umult_lo_v8hi): Likewise.
7478         (vec_widen_smult_hi_v8hi): Likewise.
7479         (vec_widen_smult_lo_v8hi): Likewise.
7481 2013-11-04  Ian Lance Taylor  <iant@google.com>
7483         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7484         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7485         builtins that take pointers.
7486         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7487         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7488         (run_gcc): Pass -fnon-call-exceptions.
7490 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7492         * optabs.c (expand_vec_perm): Revert one incorrect line from
7493         2013-10-31 change.
7495         PR tree-optimization/58978
7496         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7497         use_stmt by single_imm_use directly.  Only call single_imm_use
7498         on SSA_NAMEs.
7500 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7502         PR rtl-optimization/58968
7503         * lra-spills.c (return_regno_p): New function.
7504         (lra_final_code_change): Use it.
7506 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
7508         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7509         * target.def (float_exceptions_rounding_supported_p): New hook.
7510         * targhooks.c (default_float_exceptions_rounding_supported_p): New
7511         function.
7512         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7513         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7514         New @hook.
7515         * doc/tm.texi: Regenerate.
7516         * config.gcc (powerpc*-*-linux*): Set extra_objs.
7517         * config/rs6000/rs6000-linux.c: New file.
7518         * config/rs6000/rs6000-protos.h
7519         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7520         * config/rs6000/linux.h
7521         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7522         * config/rs6000/linux64.h
7523         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7524         * config/rs6000/t-linux (rs6000-linux.o): New rule.
7525         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7527 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7529         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7530         Replace the define_insn_and_split with a define_insn and two
7531         define_splits, with the split after reload re-permuting the source
7532         register to its original value.
7533         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7534         (*vsx_le_perm_store_v8hi): Likewise.
7535         (*vsx_le_perm_store_v16qi): Likewise.
7537 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7539         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
7540         little endian.
7542 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7544         PR tree-optimization/58946
7545         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7546         bbs with bbinfo[idx].op != NULL before all blocks with
7547         bbinfo[idx].op == NULL.
7549 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
7551         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7552         (avr_dump_double_int_hex): Likewise.
7553         (avr_log_vadump): Remove %D and %X handling.
7554         * config/avr/avr.c (avr_double_int_push_digit): Delete.
7555         (avr_map_op_t): Change map from double_int to unsigned int.
7556         (avr_map_op): Update accordingly.
7557         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7558         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7559         unsigned ints rather than double_ints.
7561 2013-11-03  Marek Polacek  <polacek@redhat.com>
7563         Implement -fsanitize=vla-bound.
7564         * opts.c (common_handle_option): Handle vla-bound.
7565         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7566         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7567         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7569 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7571         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7572         little endian.
7574 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
7576         * config/i386/constraints.md (Ts, Tv): New address constrains.
7577         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7578         constraint for address_no_seg_operand.
7579         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7580         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7581         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7582         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7583         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7584         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7585         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7586         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7587         constraint for vsib_address_operand.
7589 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
7591         * gcse.c (pre_delete): Remove references to regmove from comments.
7592         * recog.c: (validate_replace_rtx_1): Likewise.
7593         * config/rl78/rl78.c: Likewise.
7594         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7595         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7596         * common/config/mmix/mmix-common.c: Likewise.
7598 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
7600         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7601         * gimplify.c (gimplify_compound_lval): Likewise.
7602         * graphite-clast-to-gimple.c (gloog): Likewise.
7603         * graphite-dependences.c (loop_is_parallel_p): Likewise.
7604         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7605         (limit_scop); Likewise.
7606         (build_scops): Likewise.
7607         (dot_scop): Likewise.
7608         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7609         (build_scop_drs): Likewise.
7610         (insert_stmts): Likewise.
7611         (insert_out_of_ssa_copy): Likewise.
7612         (remove_phi): Likewise.
7613         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7614         * hw-doloop.c (discover_loop): Likewise.
7615         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7616         * tree-dfa.c (dump_enumerated_decls): Likewise.
7617         * tree-if-conv.c (if_convertable_loop_p): Likewise.
7618         * tree-inline.c (tree_function_versioning): Likewise.
7619         * tree-loop-distribution.c (build_rdg): Likewise.
7620         (rdg_flag_vertex_and_dependent): Likewise.
7621         (distribute_loop): Likewise.
7622         * tree-parloops.c (loop_parallel_p): Likewise.
7623         (eliminate_local_variables): Likewise.
7624         (separate_decls_in_region): Likewise.
7625         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7626         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7627         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7628         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7629         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7630         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7631         (vectorizable_condition): Likewise.
7633 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
7635         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7636         * configure: Regenerate.
7637         * config/i386/i386.md (*movdi_internal): Change
7638         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7639         (*movdf_internal): Ditto.
7640         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7641         * config/i386/sse.md (vec_concatv2di): Output interunit movq
7642         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7644 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
7646         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7647         after comment.
7649 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7651         Automated part of renaming of symtab_node_base to symtab_node.
7653         Patch autogenerated by rename_symtab.py from
7654         https://github.com/davidmalcolm/gcc-refactoring-scripts
7655         revision 58bb219cc090b2f4516a9297d868c245495ee622
7656         with ChangeLog entry fixed up by hand.
7658         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7659         symtab_node.
7660         (cgraph_node_for_asm): Likewise.
7661         * cgraph.h (symtab_node_base): Likewise.
7662         (cgraph_node): Likewise.
7663         (varpool_node): Likewise.
7664         (is_a_helper <cgraph_node>::test): Likewise.
7665         (is_a_helper <varpool_node>::test): Likewise.
7666         (symtab_nodes): Likewise.
7667         (symtab_register_node): Likewise.
7668         (symtab_unregister_node): Likewise.
7669         (symtab_remove_node): Likewise.
7670         (symtab_get_node): Likewise.
7671         (symtab_node_for_asm): Likewise.
7672         (symtab_node_asm_name): Likewise.
7673         (symtab_node_name): Likewise.
7674         (symtab_insert_node_to_hashtable): Likewise.
7675         (symtab_add_to_same_comdat_group): Likewise.
7676         (symtab_dissolve_same_comdat_group_list): Likewise.
7677         (dump_symtab_node): Likewise.
7678         (debug_symtab_node): Likewise.
7679         (dump_symtab_base): Likewise.
7680         (verify_symtab_node): Likewise.
7681         (verify_symtab_base): Likewise.
7682         (symtab_used_from_object_file_p): Likewise.
7683         (symtab_alias_ultimate_target): Likewise.
7684         (symtab_resolve_alias): Likewise.
7685         (fixup_same_cpp_alias_visibility): Likewise.
7686         (symtab_for_node_and_aliases): Likewise.
7687         (symtab_nonoverwritable_alias): Likewise.
7688         (availability symtab_node_availability): Likewise.
7689         (symtab_semantically_equivalent_p): Likewise.
7690         (fixup_same_cpp_alias_visibility): Likewise.
7691         (symtab_prevail_in_asm_name_hash): Likewise.
7692         (cgraph): Likewise.
7693         (varpool): Likewise.
7694         (varpool_first_variable): Likewise.
7695         (varpool_next_variable): Likewise.
7696         (varpool_first_static_initializer): Likewise.
7697         (varpool_next_static_initializer): Likewise.
7698         (varpool_first_defined_variable): Likewise.
7699         (varpool_next_defined_variable): Likewise.
7700         (cgraph_first_defined_function): Likewise.
7701         (cgraph_next_defined_function): Likewise.
7702         (cgraph_first_function): Likewise.
7703         (cgraph_next_function): Likewise.
7704         (cgraph_first_function_with_gimple_body): Likewise.
7705         (cgraph_next_function_with_gimple_body): Likewise.
7706         (symtab_alias_target): Likewise.
7707         (symtab_real_symbol_p): Likewise.
7708         (symtab_can_be_discarded): Likewise.
7709         * cgraphbuild.c (mark_address): Likewise.
7710         (mark_load): Likewise.
7711         (mark_store): Likewise.
7712         * cgraphunit.c (decide_is_symbol_needed): Likewise.
7713         (first): Likewise.
7714         (enqueue_node): Likewise.
7715         (referred_to_p): Likewise.
7716         (cgraph_process_same_body_aliases): Likewise.
7717         (analyze_functions): Likewise.
7718         (handle_alias_pairs): Likewise.
7719         (output_weakrefs): Likewise.
7720         (compile): Likewise.
7721         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7722         * ipa-inline-analysis.c (inline_write_summary): Likewise.
7723         * ipa-prop.c (remove_described_reference): Likewise.
7724         (try_decrement_rdesc_refcount): Likewise.
7725         (ipa_edge_duplication_hook): Likewise.
7726         * ipa-ref.c (ipa_record_reference): Likewise.
7727         (ipa_maybe_record_reference): Likewise.
7728         (ipa_clone_ref): Likewise.
7729         (ipa_clone_references): Likewise.
7730         (ipa_clone_referring): Likewise.
7731         (ipa_find_reference): Likewise.
7732         (ipa_remove_stmt_references): Likewise.
7733         (ipa_clear_stmts_in_references): Likewise.
7734         * ipa-ref.h (symtab_node_base): Likewise.
7735         (ipa_ref): Likewise.
7736         (ipa_record_reference): Likewise.
7737         (ipa_maybe_record_reference): Likewise.
7738         (ipa_clone_references): Likewise.
7739         (ipa_clone_referring): Likewise.
7740         (ipa_clone_ref): Likewise.
7741         (ipa_find_reference): Likewise.
7742         (ipa_remove_stmt_references): Likewise.
7743         (ipa_clear_stmts_in_references): Likewise.
7744         * ipa-reference.c (ipa_reference_write_optimization_summary):
7745         Likewise.
7746         * ipa.c (enqueue_node): Likewise.
7747         (process_references): Likewise.
7748         (walk_polymorphic_call_targets): Likewise.
7749         (symtab_remove_unreachable_nodes): Likewise.
7750         (address_taken_from_non_vtable_p): Likewise.
7751         (comdat_can_be_unshared_p_1): Likewise.
7752         (comdat_can_be_unshared_p): Likewise.
7753         (can_replace_by_local_alias): Likewise.
7754         (function_and_variable_visibility): Likewise.
7755         * is-a.h: Likewise (within example in comment).
7756         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7757         (lto_symtab_encoder_encode): Likewise.
7758         (lto_symtab_encoder_delete_node): Likewise.
7759         (lto_symtab_encoder_in_partition_p): Likewise.
7760         (lto_set_symtab_encoder_in_partition): Likewise.
7761         (output_refs): Likewise.
7762         (compute_ltrans_boundary): Likewise.
7763         (output_symtab): Likewise.
7764         (input_node): Likewise.
7765         (input_ref): Likewise.
7766         (input_edge): Likewise.
7767         (input_cgraph_1): Likewise.
7768         (input_refs): Likewise.
7769         (output_cgraph_opt_summary): Likewise.
7770         (input_node_opt_summary): Likewise.
7771         (input_cgraph_opt_section): Likewise.
7772         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7773         Likewise.
7774         * lto-streamer-out.c (lto_output): Likewise.
7775         (output_symbol_p): Likewise.
7776         (produce_symtab): Likewise.
7777         * lto-streamer.h (lto_encoder_entry): Likewise.
7778         (lto_free_function_in_decl_state_for_node): Likewise.
7779         (lto_symtab_encoder_encode): Likewise.
7780         (lto_symtab_encoder_delete_node): Likewise.
7781         (lto_symtab_encoder_in_partition_p): Likewise.
7782         (lto_set_symtab_encoder_in_partition): Likewise.
7783         (lto_symtab_encoder_lookup): Likewise.
7784         (lsei_node): Likewise.
7785         (lto_symtab_encoder_deref): Likewise.
7786         * symtab.c (symtab_hash): Likewise.
7787         (assembler_name_hash): Likewise.
7788         (symtab_nodes): Likewise.
7789         (hash_node): Likewise.
7790         (eq_node): Likewise.
7791         (hash_node_by_assembler_name): Likewise.
7792         (eq_assembler_name): Likewise.
7793         (insert_to_assembler_name_hash): Likewise.
7794         (unlink_from_assembler_name_hash): Likewise.
7795         (symtab_prevail_in_asm_name_hash): Likewise.
7796         (symtab_register_node): Likewise.
7797         (symtab_insert_node_to_hashtable): Likewise.
7798         (symtab_unregister_node): Likewise.
7799         (symtab_get_node): Likewise.
7800         (symtab_remove_node): Likewise.
7801         (symtab_initialize_asm_name_hash): Likewise.
7802         (symtab_node_for_asm): Likewise.
7803         (symtab_add_to_same_comdat_group): Likewise.
7804         (symtab_dissolve_same_comdat_group_list): Likewise.
7805         (symtab_node_asm_name): Likewise.
7806         (symtab_node_name): Likewise.
7807         (dump_symtab_base): Likewise.
7808         (dump_symtab_node): Likewise.
7809         (dump_symtab): Likewise.
7810         (debug_symtab_node): Likewise.
7811         (verify_symtab_base): Likewise.
7812         (verify_symtab_node): Likewise.
7813         (verify_symtab): Likewise.
7814         (symtab_used_from_object_file_p): Likewise.
7815         (symtab_node_availability): Likewise.
7816         (symtab_alias_ultimate_target): Likewise.
7817         (fixup_same_cpp_alias_visibility): Likewise.
7818         (symtab_resolve_alias): Likewise.
7819         (symtab_for_node_and_aliases): Likewise.
7820         (symtab_for_node_and_aliases): Likewise.
7821         (symtab_nonoverwritable_alias_1): Likewise.
7822         (symtab_nonoverwritable_alias): Likewise.
7823         (symtab_semantically_equivalent_p): Likewise.
7824         * value-prof.c (init_node_map): Likewise.
7825         * varasm.c (find_decl): Likewise.
7826         * varpool.c (varpool_node_for_asm): Likewise.
7827         (varpool_remove_unreferenced_decls): Likewise.
7829 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7831         Manual part of renaming of symtab_node_base to symtab_node.
7833         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7834         clashes with the preferred name for the base class.
7835         (const_symtab_node): Remove redundant typedef.
7837 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7839         * optabs.c (expand_vec_perm): Avoid vector mode punning
7840         SUBREGs in SET_DEST.
7841         * expmed.c (store_bit_field_1): Likewise.
7842         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7843         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7844         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7845         * config/i386/i386.c (ix86_expand_vector_move_misalign,
7846         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7847         ix86_expand_sse_unpack, ix86_expand_args_builtin,
7848         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7849         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7850         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7851         expand_vec_perm_vpshufb2_vpermq,
7852         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7853         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7854         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7855         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
7856         than *d itself.
7858 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
7860         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7861         Use gcc_unreachable for unhandled modes.  Do not check results of
7862         expand_simple_binop.  If not expanded to target, move the result.
7864 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
7865             Shiva Chen  <shiva0217@gmail.com>
7867         * config.gcc (nds32*-*-*): Add nds32 target.
7868         * config/nds32/nds32.c: New file.
7869         * config/nds32/nds32.h: New file.
7870         * config/nds32/nds32.md: New file.
7871         * config/nds32/constants.md: New file.
7872         * config/nds32/constraints.md: New file.
7873         * config/nds32/iterators.md: New file.
7874         * config/nds32/nds32-doubleword.md: New file.
7875         * config/nds32/nds32-intrinsic.md: New file.
7876         * config/nds32/nds32_intrinsic.h: New file.
7877         * config/nds32/nds32-modes.def: New file.
7878         * config/nds32/nds32-multiple.md: New file.
7879         * config/nds32/nds32.opt: New file.
7880         * config/nds32/nds32-opts.h: New file.
7881         * config/nds32/nds32-protos.h: New file.
7882         * config/nds32/nds32-peephole2.md: New file.
7883         * config/nds32/pipelines.md: New file.
7884         * config/nds32/predicates.md: New file.
7885         * config/nds32/t-mlibs: New file.
7886         * common/config/nds32: New directory and files.
7888         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7889         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7890         * doc/install.texi (Cross-Compiler-Specific Options): Document
7891         --with-nds32-lib for nds32 target.
7892         * doc/extend.texi (Function Attributes, Target Builtins): Document
7893         nds32 specific attributes.
7895 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
7897         * lra-constraints (process_alt_operands): Use the result
7898         elimination register for operand when matching constraints.
7900 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7902         * tree-vrp.c (maybe_set_nonzero_bits): New function.
7903         (remove_range_assertions): Call it.
7905         * tree.c (tree_ctz): New function.
7906         * tree.h (tree_ctz): New prototype.
7907         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7908         first argument from tree to const_tree.
7909         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7910         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7911         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7912         static.
7913         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7914         * tree-vect-loop.c (vect_analyze_loop_operations,
7915         vect_transform_loop): Don't force scalar loop for bound just because
7916         number of iterations is unknown, only do it if it is not known to be
7917         a multiple of vectorization_factor.
7918         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7920         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7921         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
7922         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7923         (set_nonzero_bits, get_nonzero_bits): New prototypes.
7924         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7925         a default def isn't partially constant.
7926         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7927         is known to be partially zero.
7928         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7929         to see if a default def isn't partially constant.
7930         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7931         creation of a range, if VR_RANGE, try to improve nonzero_bits from
7932         the range.
7933         (set_nonzero_bits, get_nonzero_bits): New functions.
7935         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7936         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7937         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7938         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7939         uses but in the condition and ASSERT_EXPR and the other successor of
7940         the predecessor bb is __builtin_unreachable (), set_range_info of the
7941         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7943 2013-10-31  Martin Jambor  <mjambor@suse.cz>
7945         PR rtl-optimization/58934
7946         Revert:
7947         2013-10-30  Martin Jambor  <mjambor@suse.cz>
7948         PR rtl-optimization/10474
7949         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7950         nor df analysis.
7951         (interesting_dest_for_shprep): New function.
7952         (split_live_ranges_for_shrink_wrap): Likewise.
7953         (ira): Calculate dominance info and df analysis. Call
7954         split_live_ranges_for_shrink_wrap.
7956 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
7957             Yury Gribov  <y.gribov@samsung.com>
7959         PR sanitizer/58543
7960         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7961         shadow pointer to avoid clobbering the main one.
7963 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7965         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7967 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7969         PR bootstrap/58933
7970         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
7971         it for calling update_costs_from_allocno.
7972         (assign_hard_reg): Call restore_costs_from_copies only for
7973         !retry_p.  Pass new argument to update_costs_from_copies.
7974         (color_pass): Pass new argument to update_costs_from_copies.
7975         (ira_mark_allocation_change): Ditto.
7977 2013-10-30  Sharad Singhai  <singhai@google.com>
7979         PR middle-end/58134
7980         * opts.c (common_handle_option): Remove deprecated option
7981         -ftree-vectorizer-verbose.
7982         * doc/invoke.texi (Debugging Options): Ditto.
7983         * opts-global.c (handle_common_deferred_options): Ditto.
7984         (dump_remap_tree_vectorizer_verbose): Delete.
7985         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7987 2013-10-30  DJ Delorie  <dj@redhat.com>
7989         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7990         that take no arguments.
7992 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7994         PR other/58545
7995         * reload1.c (update_eliminables_and_spill): New function, broken
7996         out of reload.
7997         (reload): Use it.  Check for frame size change after frame size
7998         alignment, and call update_eliminables_and_spill first if continue-ing.
8000 2013-10-30  Cong Hou  <congh@google.com>
8002         PR target/58762
8003         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
8004         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
8005         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
8007 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
8009         PR rtl-optimization/58369
8010         * reload1.c (compute_reload_subreg_offset): New function.
8011         (choose_reload_regs): Use it to pass endian-correct
8012         offset to subreg_regno_offset.
8014 2013-10-30  Tobias Burnus  <burnus@net-b.de>
8016         PR other/33426
8017         * tree-cfg.c (replace_loop_annotate): Replace warning by
8018         warning_at.
8020 2013-10-30  Jason Merrill  <jason@redhat.com>
8022         * configure.ac (loose_warn): Add -Wno-format if
8023         --disable-build-format-warnings.
8025 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
8027         * cgraphunit.c (analyze_functions): Split symtab_node declarations
8028         onto multiple lines to make things easier for rename_symtab.py.
8030         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
8031         (symtab_semantically_equivalent_p): Likewise.
8033 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
8035         PR target/58784
8036         * lra.c (check_rtl): Remove address check before LRA work.
8038 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
8040         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
8041         POINTER_PLUS_EXPR in the defining statement.
8043 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
8045         * regmove.c: Remove.
8046         * tree-pass.h (make_pass_regmove): Remove.
8047         * timevar.def (TV_REGMOVE): Remove.
8048         * passes.def (pass_regmove): Remove.
8049         * opts.c (default_options_table): Remove entry for regmove.
8050         * doc/passes.texi: Remove regmove pass description.
8051         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
8052         options.
8053         (-fdump-rtl-regmove): Ditto.
8054         * common.opt (foptimize-register-move, fregmove): Ignore.
8055         * Makefile.in (OBJS): Remove regmove.o.
8056         * regmove.c: Remove.
8057         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
8058         and type.
8059         (struct ira_allocno) New member allocno_prefs.
8060         (ALLOCNO_PREFS): New macro.
8061         (ira_prefs, ira_prefs_num): New external vars.
8062         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
8063         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
8064         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
8065         Ditto.
8066         (ira_add_allocno_copy_to_list): Remove prototype.
8067         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
8068         (ira_pref_iterator): New type.
8069         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
8070         (FOR_EACH_PREF): New macro.
8071         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
8072         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
8073         code.
8074         (ira_setup_alts): New function.
8075         (decrease_live_ranges_number): New function.
8076         (ira): Call the above function.
8077         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
8078         (ira_create_allocno): Initialize allocno prefs.
8079         (pref_pool, pref_vec): New static vars.
8080         (initiate_prefs, find_allocno_pref, ira_create_pref): New
8081         functions.
8082         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
8083         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
8084         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
8085         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
8086         (ira_add_allocno_copy_to_list): Make static.  Rename to
8087         add_allocno_copy_to_list.
8088         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
8089         swap_allocno_copy_ends_if_necessary.
8090         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
8091         ira_remove_allocno_prefs.
8092         (ira_flattening): Ditto.
8093         (ira_build): Call initiate_prefs, print_prefs.
8094         (ira_destroy): Call finish_prefs.
8095         * ira-color.c (struct update_cost_record): New.
8096         (struct allocno_color_data): Add new member update_cost_records.
8097         (update_cost_record_pool): New static var.
8098         (init_update_cost_records, get_update_cost_record): New functions.
8099         (free_update_cost_record_list, finish_update_cost_records): Ditto.
8100         (struct update_cost_queue_elem): Add member from.
8101         (initiate_cost_update): Call init_update_cost_records.
8102         (finish_cost_update): Call finish_update_cost_records.
8103         (queue_update_cost, get_next_update_cost): Add new param from.
8104         (Update_allocno_cost, update_costs_from_allocno): New functions.
8105         (update_costs_from_prefs): Ditto.
8106         (update_copy_costs): Rename to update_costs_from_copies.
8107         (restore_costs_from_copies): New function.
8108         (update_conflict_hard_regno_costs): Don't go back.
8109         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
8110         more debug info.
8111         (pop_allocnos): Add priniting more debug info.
8112         (color_allocnos): Remove prefs for conflicting hard regs.
8113         Call update_costs_from_prefs.
8114         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
8115         (get_dup_num): Rename, modify, and move to ira.c
8116         (process_regs_for_copy): Add prefs.
8117         (add_insn_allocno_copies): Put src as first arg of
8118         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
8119         * ira-costs.c (record_reg_classes): Modify and move code into
8120         record_operands_costs.
8121         (find_costs_and_classes): Create prefs for the hard reg of small
8122         reg class.
8123         (process_bb_node_for_hard_reg_moves): Add prefs.
8125 2013-10-30  Richard Biener  <rguenther@suse.de>
8127         PR middle-end/57100
8128         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
8129         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
8130         as worker for ...
8131         (pre_and_rev_post_order_compute): ... which now wraps it.
8132         * graph.c (draw_cfg_nodes_no_loops): Use
8133         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
8134         on cfun.
8136 2013-10-30  Christian Bruel  <christian.bruel@st.com>
8138         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
8139         (sh_expand_cmpstr): Handle known align and schedule improvements.
8140         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
8141         * config/sh/sh.md (cmpstrnsi): New pattern.
8143 2013-10-30  Martin Jambor  <mjambor@suse.cz>
8145         PR rtl-optimization/10474
8146         * ira.c (find_moveable_pseudos): Do not calculate dominance info
8147         nor df analysis.
8148         (interesting_dest_for_shprep): New function.
8149         (split_live_ranges_for_shrink_wrap): Likewise.
8150         (ira): Calculate dominance info and df analysis. Call
8151         split_live_ranges_for_shrink_wrap.
8153 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8155         PR target/58854
8156         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
8158 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8160         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
8161         * tree.h (POINTER_BOUNDS_P): New.
8162         (BOUNDED_TYPE_P): New.
8163         (BOUNDED_P): New.
8164         (pointer_bounds_type_node): New.
8165         * tree.c (build_common_tree_nodes): Initialize
8166         pointer_bounds_type_node.
8167         * gimple.h (gimple_call_get_nobnd_arg_index): New.
8168         (gimple_call_num_nobnd_args): New.
8169         (gimple_call_nobnd_arg): New.
8170         (gimple_return_retbnd): New.
8171         (gimple_return_set_retbnd): New
8172         * gimple.c (gimple_build_return): Increase number of ops
8173         for return statement.
8174         (gimple_call_get_nobnd_arg_index): New.
8175         * gimple-pretty-print.c (dump_gimple_return): Print second op.
8177 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8179         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
8180         with "chkp ctor" and "bnd_legacy" attributes.
8181         * gimplify.c (gimplify_init_constructor): Avoid infinite
8182         loop during gimplification of bounds initializer.
8184 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8186         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
8187         (handle_bnd_legacy): New.
8188         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
8189         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
8190         attributes.
8192 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
8194         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
8195         (BT_FN_PTR_CONST_PTR): New.
8196         (BT_FN_CONST_PTR_CONST_PTR): New.
8197         (BT_FN_PTR_CONST_PTR_SIZE): New.
8198         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
8199         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
8200         (BT_FN_VOID_CONST_PTR_SIZE): New.
8201         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
8202         * chkp-builtins.def: New.
8203         * builtins.def: include chkp-builtins.def.
8204         (DEF_CHKP_BUILTIN): New.
8205         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
8206         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
8207         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
8208         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
8209         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
8210         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
8211         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
8212         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
8213         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
8214         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
8215         * common.opt (fcheck-pointer-bounds): New.
8216         * toplev.c (process_options): Check Pointer Bounds Checker is
8217         supported.
8218         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
8220 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8222         * target.def (builtin_chkp_function): New.
8223         (chkp_bound_type): New.
8224         (chkp_bound_mode): New.
8225         (fn_abi_va_list_bounds_size): New.
8226         (load_bounds_for_arg): New.
8227         (store_bounds_for_arg): New.
8228         * targhooks.h (default_load_bounds_for_arg): New.
8229         (default_store_bounds_for_arg): New.
8230         (default_fn_abi_va_list_bounds_size): New.
8231         (default_chkp_bound_type): New.
8232         (default_chkp_bound_mode): New.
8233         (default_builtin_chkp_function): New.
8234         * targhooks.c (default_load_bounds_for_arg): New.
8235         (default_store_bounds_for_arg): New.
8236         (default_fn_abi_va_list_bounds_size): New.
8237         (default_chkp_bound_type): New.
8238         (default_chkp_bound_mode); New.
8239         (default_builtin_chkp_function): New.
8240         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
8241         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8242         (TARGET_STORE_BOUNDS_FOR_ARG): New.
8243         (TARGET_BUILTIN_CHKP_FUNCTION): New.
8244         (TARGET_CHKP_BOUND_TYPE): New.
8245         (TARGET_CHKP_BOUND_MODE): New.
8246         * doc/tm.texi: Regenerated.
8247         * langhooks.h (lang_hooks): Add chkp_supported field.
8248         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
8249         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
8251 2013-10-29  Andrew Pinski <apinski@cavium.com>
8253         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
8254         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
8255         fails, combining the branches anyways.
8256         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
8257         increases the number of combinings.
8258         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
8260 2013-10-29  Mike Stump  <mikestump@comcast.net>
8262         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
8263         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
8264         (make_vector_mode): Increase namebuf to 16.
8265         (emit_insn_modes_h): When processing BImode, don't
8266         also match partial int modes.
8267         (emit_class_narrowest_mode): Likewise.
8269         * config/bfin/bfin-modes.def: Add precision to PDI.
8270         * config/m32c/m32c-modes.def: Add precision to PSI.
8271         * config/msp430/msp430-modes.def: Add precision to PSI.
8272         * config/rs6000/rs6000-modes.def: Add precision to PTI.
8273         * config/sh/sh-modes.def: Add precision to PSI and PDI.
8275 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
8277         PR target/54236
8278         * config/sh/sh.md (*addc): Rename existing variations to ...
8279         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
8280         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
8281         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
8282         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
8284 2013-10-29  Teresa Johnson  <tejohnson@google.com>
8286         PR ipa/58862
8287         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
8288         insanities when updating probabilities.
8290 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8292         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
8293         prettyprinter for cgraph_node to reflect the conversion of the
8294         symtable types to a C++ class hierarchy: it now *is* a
8295         symtab_node_base, rather than having one (named "symbol").
8297 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
8299         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
8300         __cilkrts_pop_frame.  If matched, then return true for built-in
8301         function name.
8302         (expand_builtin): Added BUILT_IN_CILK_DETACH and
8303         BUILT_IN_CILK_POP_FRAME case.
8304         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
8305         (lhs_cilk_detect_spawn): Likewise.
8306         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
8307         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
8308         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
8309         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
8310         (LANG_HOOKS_CILKPLUS): Likewise.
8311         * tree.h (CILK_SPAWN_FN): Likewise.
8312         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
8313         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
8314         (OBJS): Added cilk-common.o.
8315         (BUILTINS_DEF): Added cilk-builtins.def.
8316         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
8317         (lhd_cilk_detect_spawn): Likewise.
8318         * langhooks.h (lang_hooks_for_cilkplus): New struct.
8319         (struct lang_hooks): Added new field called "cilkplus."
8320         * cilk-common.c: New file.
8321         * cilk.h: Likewise.
8322         * cilk-builtins.def: Likewise.
8323         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
8324         "__cilk" macro and set it to 200.
8325         * function.h (struct function::cilk_frame_decl): New field.
8326         (struct function::is_cilk_function): Likewise.
8327         (struct function::calls_cilk_spawn): Likewise.
8328         * gimplify.c (gimplify_call_expr): Added a check if the function call
8329         being gimplified is a spawn detach point.  If so, then add pop_frame
8330         and detach function calls.
8331         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
8332         for gimplifying _Cilk_spawn and _Cilk_sync statements.
8333         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
8334         function.  If so, added a _Cilk_sync and gimplified it.
8335         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
8336         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
8337         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
8338         spawner function.
8339         (can_inline_edge_p): Prevent inling of spawnee function.
8340         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
8341         for functions that use Cilk keywords.
8342         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
8343         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
8344         CILK_SYNC_STMT cases.
8345         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8346         trees.
8347         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8348         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8349         * passes.texi (Cilk Keywords): New section that describes the compiler
8350         code changes for handling Cilk Keywords.
8352 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8354         Patch autogenerated by refactor_symtab.py from
8355         https://github.com/davidmalcolm/gcc-refactoring-scripts
8356         revision 58bb219cc090b2f4516a9297d868c245495ee622
8358         * asan.c (asan_finish_file): Update for conversion of symtab types to
8359         a true class hierarchy.
8360         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8361         * cgraph.c (cgraph_get_body): Likewise.
8362         (cgraph_get_create_real_symbol_node): Likewise.
8363         (verify_cgraph_node): Likewise.
8364         (verify_edge_corresponds_to_fndecl): Likewise.
8365         (verify_edge_count_and_frequency): Likewise.
8366         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8367         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8368         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8369         (cgraph_node_cannot_return): Likewise.
8370         (cgraph_set_pure_flag_1): Likewise.
8371         (cgraph_set_const_flag_1): Likewise.
8372         (cgraph_set_nothrow_flag_1): Likewise.
8373         (cgraph_make_node_local_1): Likewise.
8374         (cgraph_for_node_and_aliases): Likewise.
8375         (cgraph_for_node_thunks_and_aliases): Likewise.
8376         (cgraph_node_can_be_local_p): Likewise.
8377         (cgraph_node_cannot_be_local_p_1): Likewise.
8378         (cgraph_function_body_availability): Likewise.
8379         (dump_cgraph_node): Likewise.
8380         (cgraph_rtl_info): Likewise.
8381         (cgraph_mark_address_taken_node): Likewise.
8382         (cgraph_remove_node): Likewise.
8383         (cgraph_release_function_body): Likewise.
8384         (cgraph_update_edges_for_call_stmt_node): Likewise.
8385         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8386         (cgraph_make_edge_direct): Likewise.
8387         (cgraph_resolve_speculation): Likewise.
8388         (cgraph_speculative_call_info): Likewise.
8389         (cgraph_turn_edge_to_speculative): Likewise.
8390         (cgraph_create_edge_1): Likewise.
8391         (cgraph_set_call_stmt): Likewise.
8392         (cgraph_node_for_asm): Likewise.
8393         (cgraph_add_thunk): Likewise.
8394         (cgraph_same_body_alias): Likewise.
8395         (cgraph_create_function_alias): Likewise.
8396         (cgraph_create_node): Likewise.
8397         (cgraph_create_empty_node): Likewise.
8398         (record_function_versions): Likewise.
8399         (used_from_object_file_p): Likewise.
8400         * cgraph.h (symtab_can_be_discarded): Likewise.
8401         (symtab_real_symbol_p): Likewise.
8402         (cgraph_mark_force_output_node): Likewise.
8403         (cgraph_edge_recursive_p): Likewise.
8404         (symtab_alias_target): Likewise.
8405         (varpool_all_refs_explicit_p): Likewise.
8406         (varpool_can_remove_if_no_refs): Likewise.
8407         (cgraph_only_called_directly_or_aliased_p): Likewise.
8408         (cgraph_next_function_with_gimple_body): Likewise.
8409         (cgraph_first_function_with_gimple_body): Likewise.
8410         (cgraph_function_with_gimple_body_p): Likewise.
8411         (cgraph_next_function): Likewise.
8412         (cgraph_first_function): Likewise.
8413         (cgraph_next_defined_function): Likewise.
8414         (cgraph_first_defined_function): Likewise.
8415         (varpool_next_defined_variable): Likewise.
8416         (varpool_first_defined_variable): Likewise.
8417         (varpool_next_static_initializer): Likewise.
8418         (varpool_first_static_initializer): Likewise.
8419         (varpool_next_variable): Likewise.
8420         (varpool_first_variable): Likewise.
8421         (varpool_node_name): Likewise.
8422         (varpool): Likewise.
8423         (cgraph): Likewise.
8424         (is_a_helper <varpool_node>::test): Likewise.
8425         (is_a_helper <cgraph_node>::test): Likewise.
8426         (varpool_variable_node): Likewise.
8427         (cgraph_function_or_thunk_node): Likewise.
8428         (varpool_alias_target): Likewise.
8429         (cgraph_alias_target): Likewise.
8430         (cgraph_node_name): Likewise.
8431         (varpool_node_asm_name): Likewise.
8432         (cgraph_node_asm_name): Likewise.
8433         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8434         (cgraph_rebuild_references): Likewise.
8435         (rebuild_cgraph_edges): Likewise.
8436         (record_eh_tables): Likewise.
8437         (build_cgraph_edges): Likewise.
8438         (mark_store): Likewise.
8439         (mark_load): Likewise.
8440         (mark_address): Likewise.
8441         (record_type_list): Likewise.
8442         (record_reference): Likewise.
8443         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8444         (cgraph_materialize_clone): Likewise.
8445         (cgraph_function_versioning): Likewise.
8446         (cgraph_copy_node_for_versioning): Likewise.
8447         (update_call_expr): Likewise.
8448         (cgraph_find_replacement_node): Likewise.
8449         (cgraph_create_virtual_clone): Likewise.
8450         (cgraph_clone_node): Likewise.
8451         * cgraphunit.c (compile): Likewise.
8452         (output_weakrefs): Likewise.
8453         (output_in_order): Likewise.
8454         (expand_function): Likewise.
8455         (assemble_thunks_and_aliases): Likewise.
8456         (expand_thunk): Likewise.
8457         (mark_functions_to_output): Likewise.
8458         (handle_alias_pairs): Likewise.
8459         (analyze_functions): Likewise.
8460         (walk_polymorphic_call_targets): Likewise.
8461         (varpool_finalize_decl): Likewise.
8462         (process_function_and_variable_attributes): Likewise.
8463         (cgraph_process_same_body_aliases): Likewise.
8464         (analyze_function): Likewise.
8465         (cgraph_add_new_function): Likewise.
8466         (cgraph_finalize_function): Likewise.
8467         (referred_to_p): Likewise.
8468         (cgraph_reset_node): Likewise.
8469         (cgraph_process_new_functions): Likewise.
8470         (enqueue_node): Likewise.
8471         (decide_is_symbol_needed): Likewise.
8472         * coverage.c (coverage_compute_profile_id): Likewise.
8473         * dbxout.c (dbxout_expand_expr): Likewise.
8474         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8475         (reference_to_unused): Likewise.
8476         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8477         * gimplify.c (unvisit_body): Likewise.
8478         (unshare_body): Likewise.
8479         * ipa-cp.c (ipcp_generate_summary): Likewise.
8480         (ipcp_decision_stage): Likewise.
8481         (identify_dead_nodes): Likewise.
8482         (decide_whether_version_node): Likewise.
8483         (decide_about_value): Likewise.
8484         (perhaps_add_new_callers): Likewise.
8485         (create_specialized_node): Likewise.
8486         (update_profiling_info): Likewise.
8487         (ipcp_propagate_stage): Likewise.
8488         (estimate_local_effects): Likewise.
8489         (good_cloning_opportunity_p): Likewise.
8490         (devirtualization_time_bonus): Likewise.
8491         (propagate_constants_accross_call): Likewise.
8492         (initialize_node_lattices): Likewise.
8493         (ipcp_cloning_candidate_p): Likewise.
8494         (determine_versionability): Likewise.
8495         (print_all_lattices): Likewise.
8496         (print_lattice): Likewise.
8497         (ipcp_discover_new_direct_edges): Likewise.
8498         * ipa-devirt.c (ipa_devirt): Likewise.
8499         (likely_target_p): Likewise.
8500         (update_type_inheritance_graph): Likewise.
8501         (possible_polymorphic_call_target_p): Likewise.
8502         (dump_possible_polymorphic_call_targets): Likewise.
8503         (devirt_variable_node_removal_hook): Likewise.
8504         (record_binfo): Likewise.
8505         (maybe_record_node): Likewise.
8506         (build_type_inheritance_graph): Likewise.
8507         * ipa-inline-analysis.c (inline_write_summary): Likewise.
8508         (inline_generate_summary): Likewise.
8509         (inline_analyze_function): Likewise.
8510         (do_estimate_growth): Likewise.
8511         (simple_edge_hints): Likewise.
8512         (estimate_node_size_and_time): Likewise.
8513         (estimate_edge_devirt_benefit): Likewise.
8514         (compute_inline_parameters): Likewise.
8515         (estimate_function_body_sizes): Likewise.
8516         (compute_bb_predicates): Likewise.
8517         (initialize_inline_failed): Likewise.
8518         (dump_inline_summary): Likewise.
8519         (dump_inline_edge_summary): Likewise.
8520         * ipa-inline-transform.c (inline_transform): Likewise.
8521         (preserve_function_body_p): Likewise.
8522         (save_inline_function_body): Likewise.
8523         (inline_call): Likewise.
8524         (clone_inlined_nodes): Likewise.
8525         (can_remove_node_now_p): Likewise.
8526         (can_remove_node_now_p_1): Likewise.
8527         * ipa-inline.c (early_inliner): Likewise.
8528         (early_inline_small_functions): Likewise.
8529         (inline_always_inline_functions): Likewise.
8530         (ipa_inline): Likewise.
8531         (flatten_function): Likewise.
8532         (inline_small_functions): Likewise.
8533         (speculation_useful_p): Likewise.
8534         (recursive_inlining): Likewise.
8535         (update_caller_keys): Likewise.
8536         (reset_edge_caches): Likewise.
8537         (update_edge_key): Likewise.
8538         (edge_badness): Likewise.
8539         (relative_time_benefit): Likewise.
8540         (want_inline_self_recursive_call_p): Likewise.
8541         (want_inline_small_function_p): Likewise.
8542         (want_early_inline_function_p): Likewise.
8543         (num_calls): Likewise.
8544         (can_early_inline_edge_p): Likewise.
8545         (can_inline_edge_p): Likewise.
8546         (report_inline_failed_reason): Likewise.
8547         * ipa-profile.c (ipa_profile): Likewise.
8548         (ipa_propagate_frequency): Likewise.
8549         (ipa_propagate_frequency_1): Likewise.
8550         (ipa_profile_generate_summary): Likewise.
8551         * ipa-prop.c (ipcp_transform_function): Likewise.
8552         (read_replacements_section): Likewise.
8553         (ipa_prop_read_section): Likewise.
8554         (ipa_modify_call_arguments): Likewise.
8555         (ipa_print_node_params): Likewise.
8556         (propagate_controlled_uses): Likewise.
8557         (update_indirect_edges_after_inlining): Likewise.
8558         (remove_described_reference): Likewise.
8559         (ipa_make_edge_direct_to_target): Likewise.
8560         (ipa_analyze_node): Likewise.
8561         (ipa_analyze_params_uses): Likewise.
8562         (ipa_compute_jump_functions): Likewise.
8563         (ipa_get_callee_param_type): Likewise.
8564         (ipa_print_node_jump_functions): Likewise.
8565         (ipa_initialize_node_params): Likewise.
8566         (ipa_populate_param_decls): Likewise.
8567         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8568         (write_agg_replacement_chain): Likewise.
8569         (ipa_write_node_info): Likewise.
8570         (ipa_edge_duplication_hook): Likewise.
8571         (try_decrement_rdesc_refcount): Likewise.
8572         * ipa-pure-const.c (propagate_nothrow): Likewise.
8573         (propagate_pure_const): Likewise.
8574         (pure_const_read_summary): Likewise.
8575         (pure_const_write_summary): Likewise.
8576         (analyze_function): Likewise.
8577         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8578         (ipa_ref_referring_ref_list): Likewise.
8579         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8580         (ipa_remove_stmt_references): Likewise.
8581         (ipa_find_reference): Likewise.
8582         (ipa_dump_referring): Likewise.
8583         (ipa_dump_references): Likewise.
8584         (ipa_record_reference): Likewise.
8585         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8586         (ipa_reference_write_optimization_summary): Likewise.
8587         (write_node_summary_p): Likewise.
8588         (propagate): Likewise.
8589         (read_write_all_from_decl): Likewise.
8590         (generate_summary): Likewise.
8591         (analyze_function): Likewise.
8592         (propagate_bits): Likewise.
8593         (ipa_reference_get_not_written_global): Likewise.
8594         (ipa_reference_get_not_read_global): Likewise.
8595         * ipa-split.c (execute_split_functions): Likewise.
8596         (split_function): Likewise.
8597         * ipa-utils.c (ipa_merge_profiles): Likewise.
8598         (dump_cgraph_node_set): Likewise.
8599         (ipa_reverse_postorder): Likewise.
8600         (ipa_edge_within_scc): Likewise.
8601         (ipa_get_nodes_in_cycle): Likewise.
8602         (ipa_free_postorder_info): Likewise.
8603         (ipa_reduced_postorder): Likewise.
8604         (searchc): Likewise.
8605         (recursive_call_p): Likewise.
8606         * ipa.c (ipa_cdtor_merge): Likewise.
8607         (record_cdtor_fn): Likewise.
8608         (function_and_variable_visibility): Likewise.
8609         (varpool_externally_visible_p): Likewise.
8610         (cgraph_externally_visible_p): Likewise.
8611         (comdat_can_be_unshared_p): Likewise.
8612         (comdat_can_be_unshared_p_1): Likewise.
8613         (address_taken_from_non_vtable_p): Likewise.
8614         (ipa_discover_readonly_nonaddressable_vars): Likewise.
8615         (symtab_remove_unreachable_nodes): Likewise.
8616         (walk_polymorphic_call_targets): Likewise.
8617         (process_references): Likewise.
8618         (enqueue_node): Likewise.
8619         (has_addr_references_p): Likewise.
8620         (cgraph_non_local_node_p_1): Likewise.
8621         * is-a.h (varpool_analyze_node): Likewise.
8622         * lto-cgraph.c (input_symtab): Likewise.
8623         (merge_profile_summaries): Likewise.
8624         (input_cgraph_1): Likewise.
8625         (input_edge): Likewise.
8626         (input_varpool_node): Likewise.
8627         (input_node): Likewise.
8628         (input_overwrite_node): Likewise.
8629         (compute_ltrans_boundary): Likewise.
8630         (output_refs): Likewise.
8631         (lto_output_varpool_node): Likewise.
8632         (lto_output_node): Likewise.
8633         (reachable_from_other_partition_p): Likewise.
8634         (referenced_from_other_partition_p): Likewise.
8635         (lto_output_edge): Likewise.
8636         (output_node_opt_summary): Likewise.
8637         (add_node_to): Likewise.
8638         (reachable_from_this_partition_p): Likewise.
8639         (lto_set_symtab_encoder_in_partition): Likewise.
8640         (lto_symtab_encoder_in_partition_p): Likewise.
8641         (lto_set_symtab_encoder_encode_initializer): Likewise.
8642         (lto_symtab_encoder_encode_initializer_p): Likewise.
8643         (lto_set_symtab_encoder_encode_body): Likewise.
8644         (lto_symtab_encoder_encode_body_p): Likewise.
8645         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8646         Likewise.
8647         * lto-streamer-in.c (lto_read_body): Likewise.
8648         (fixup_call_stmt_edges): Likewise.
8649         (fixup_call_stmt_edges_1): Likewise.
8650         * lto-streamer-out.c (produce_symtab): Likewise.
8651         (output_symbol_p): Likewise.
8652         (write_symbol): Likewise.
8653         (lto_output): Likewise.
8654         (copy_function): Likewise.
8655         (output_function): Likewise.
8656         * passes.c (function_called_by_processed_nodes_p): Likewise.
8657         (ipa_write_optimization_summaries): Likewise.
8658         (ipa_write_summaries): Likewise.
8659         (do_per_function_toporder): Likewise.
8660         (do_per_function): Likewise.
8661         (dump_passes): Likewise.
8662         * symtab.c (symtab_semantically_equivalent_p): Likewise.
8663         (symtab_nonoverwritable_alias): Likewise.
8664         (symtab_nonoverwritable_alias_1): Likewise.
8665         (symtab_for_node_and_aliases): Likewise.
8666         (symtab_resolve_alias): Likewise.
8667         (fixup_same_cpp_alias_visibility): Likewise.
8668         (symtab_alias_ultimate_target): Likewise.
8669         (symtab_used_from_object_file_p): Likewise.
8670         (verify_symtab_base): Likewise.
8671         (dump_symtab_base): Likewise.
8672         (symtab_node_name): Likewise.
8673         (symtab_node_asm_name): Likewise.
8674         (symtab_dissolve_same_comdat_group_list): Likewise.
8675         (symtab_add_to_same_comdat_group): Likewise.
8676         (symtab_unregister_node): Likewise.
8677         (symtab_insert_node_to_hashtable): Likewise.
8678         (symtab_register_node): Likewise.
8679         (unlink_from_assembler_name_hash): Likewise.
8680         (insert_to_assembler_name_hash): Likewise.
8681         (eq_assembler_name): Likewise.
8682         (hash_node_by_assembler_name): Likewise.
8683         (eq_node): Likewise.
8684         (hash_node): Likewise.
8685         * toplev.c (wrapup_global_declaration_2): Likewise.
8686         * trans-mem.c (ipa_tm_execute): Likewise.
8687         (ipa_tm_transform_clone): Likewise.
8688         (ipa_tm_transform_transaction): Likewise.
8689         (ipa_tm_transform_calls_redirect): Likewise.
8690         (ipa_tm_insert_gettmclone_call): Likewise.
8691         (ipa_tm_insert_irr_call): Likewise.
8692         (ipa_tm_create_version): Likewise.
8693         (ipa_tm_create_version_alias): Likewise.
8694         (ipa_tm_mark_forced_by_abi_node): Likewise.
8695         (ipa_tm_mark_force_output_node): Likewise.
8696         (ipa_tm_diagnose_tm_safe): Likewise.
8697         (ipa_tm_mayenterirr_function): Likewise.
8698         (ipa_tm_scan_irr_function): Likewise.
8699         (ipa_tm_note_irrevocable): Likewise.
8700         (ipa_tm_scan_calls_clone): Likewise.
8701         (get_cg_data): Likewise.
8702         * tree-eh.c (tree_could_trap_p): Likewise.
8703         * tree-emutls.c (ipa_lower_emutls): Likewise.
8704         (create_emultls_var): Likewise.
8705         (lower_emutls_function_body): Likewise.
8706         (gen_emutls_addr): Likewise.
8707         (emutls_decl): Likewise.
8708         (new_emutls_decl): Likewise.
8709         * tree-inline.c (tree_function_versioning): Likewise.
8710         (optimize_inline_calls): Likewise.
8711         (expand_call_inline): Likewise.
8712         (estimate_num_insns): Likewise.
8713         (copy_bb): Likewise.
8714         (delete_unreachable_blocks_update_callgraph): Likewise.
8715         * tree-nested.c (gimplify_all_functions): Likewise.
8716         (create_nesting_tree): Likewise.
8717         (check_for_nested_with_variably_modified): Likewise.
8718         * tree-pretty-print.c (dump_function_header): Likewise.
8719         * tree-profile.c (tree_profiling): Likewise.
8720         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8721         (modify_function): Likewise.
8722         (convert_callers): Likewise.
8723         (convert_callers_for_node): Likewise.
8724         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8725         (associate_varinfo_to_alias): Likewise.
8726         (create_variable_info_for): Likewise.
8727         (get_constraint_for_ssa_var): Likewise.
8728         * tree-vectorizer.c (increase_alignment): Likewise.
8729         * tree.c (find_decls_types_in_var): Likewise.
8730         (find_decls_types_in_node): Likewise.
8731         (free_lang_data_in_decl): Likewise.
8732         * value-prof.c (gimple_ic_transform): Likewise.
8733         (gimple_ic): Likewise.
8734         (check_ic_target): Likewise.
8735         (init_node_map): Likewise.
8736         * varasm.c (decl_binds_to_current_def_p): Likewise.
8737         (default_binds_local_p_1): Likewise.
8738         (dump_tm_clone_pairs): Likewise.
8739         (assemble_alias): Likewise.
8740         (find_decl): Likewise.
8741         (mark_decl_referenced): Likewise.
8742         * varpool.c (varpool_for_node_and_aliases): Likewise.
8743         (varpool_extra_name_alias): Likewise.
8744         (varpool_create_variable_alias): Likewise.
8745         (add_new_static_var): Likewise.
8746         (varpool_finalize_named_section_flags): Likewise.
8747         (varpool_remove_unreferenced_decls): Likewise.
8748         (enqueue_node): Likewise.
8749         (varpool_assemble_decl): Likewise.
8750         (assemble_aliases): Likewise.
8751         (varpool_analyze_node): Likewise.
8752         (cgraph_variable_initializer_availability): Likewise.
8753         (varpool_add_new_variable): Likewise.
8754         (ctor_for_folding): Likewise.
8755         (dump_varpool_node): Likewise.
8756         (varpool_remove_initializer): Likewise.
8757         (varpool_remove_node): Likewise.
8758         (varpool_node_for_decl): Likewise.
8759         (varpool_create_empty_node): Likewise.
8760         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8761         (ix86_get_function_versions_dispatcher): Likewise.
8763 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8765         * cgraph.h (symtab_node_base): Convert to a class;
8766         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8767         chain_next/prev from symtab_node_def.
8768         (cgraph_node): Inherit from symtab_node; add GTY option
8769         tag ("SYMTAB_FUNCTION").
8770         (varpool_node): Inherit from symtab_node; add GTY option
8771         tag ("SYMTAB_VARIABLE").
8772         (symtab_node_def): Remove.
8773         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8774         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8775         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8776         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8778         * ipa-ref.h (symtab_node_def): Drop.
8779         (symtab_node): Change underlying type from symtab_node_def to
8780         symtab_node_base.
8781         (const_symtab_node): Likwise.
8783         * is-a.h: Update examples in comment.
8785         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8786         (assembler_name_hash): Likewise.
8788 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
8790         * doc/tree-ssa.texi (gimple_phi_result): Document.
8791         (gimple_phi_num_args, gimple_phi_arg): Likewise.
8792         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8793         (PHI_RESULT, PHI_NUM_ARGS): Remove.
8794         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8796 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8798         * expr.h: Revert change and include tree-core.h.
8799         * rtl.h: Revert change and don't include tree-core.h.
8801 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8803         * config/darwin.c: Include gimple.h.
8804         * config/i386/winnt.c: Likewise.
8806 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
8808         PR tree-optimization/19831
8809         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8811 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8813         * tree-outof-ssa.h: Remove include files.
8814         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8815         * expr.c: Likewise.
8816         * tree-ssa-coalesce.c: Likewise.
8817         * cfgexpand.c: Likewise.
8818         * tree-ssa-ter.c: Likewise.
8819         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8820         * lto-streamer.h: Likewise.
8821         * cgraphbuild.c: Add gimple.h to include list.
8822         * data-streamer-in.c: Likewise.
8823         * ipa-cp.c: Likewise.
8824         * tree-streamer.c: Likewise.
8825         * lto-compress.c: Likewise.
8826         * ipa-reference.c: Likewise.
8827         * data-streamer-out.c: Likewise.
8828         * lto-cgraph.c: Likewise.
8829         * cgraphclones.c: Likewise.
8830         * ipa-utils.c: Likewise.
8831         * data-streamer.c: Likewise.
8832         * ipa-split.c: Likewise.
8833         * lto-section-in.c: Likewise.
8834         * tree-streamer-out.c: Likewise.
8835         * ipa-prop.c: Likewise.
8836         * tree-streamer-in.c: Likewise.
8837         * symtab.c: Likewise.
8838         * opts-global.c: Likewise.
8839         * lto-opts.c: Likewise.
8840         * lto-section-out.c: Likewise.
8841         * lto-streamer.c: Likewise.
8842         * rtl.h: Add tree-core.h to include list.
8843         * expr.h: Remove tree-core.h from include list.
8844         * gimple.h: Likewise.
8845         * ipa-utils.h: Likewise.
8846         * streamer-hooks.h: Likewise.
8847         * streamer-hooks.c: Include input.h.
8849 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8851         * config/arm/arm.c (cortexa7_extra_costs): New table.
8852         (arm_cortex_a7_tune): New.
8853         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8855 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
8857         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8859 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8861         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8862         to use autogenerated markers for a class-hierarchy, every class
8863         must have a GTY marker.
8864         * gengtype.h (struct type): Add linked list of subclasses to
8865         the "s" member of the union.
8866         (add_subclass): New decl.
8867         * gengtype-state.c (read_state_struct_type): Set up subclass
8868         linked list.
8869         * gengtype.c (get_ultimate_base_class): New.
8870         (add_subclass): New.
8871         (new_structure): Set up subclass linked list.
8872         (set_gc_used_type): Propagate usage information to subclasses.
8873         (output_mangled_typename): Use get_ultimate_base_class.
8874         (walk_subclasses): Use the subclass linked list, avoiding an
8875         O(N^2) when writing out all types.
8876         (walk_type): Issue an error if the base class is missing a tag,
8877         rather than generating bogus C code.  Add a gcc_unreachable
8878         default case, in case people omit tags from concrete subclasses,
8879         or get the values wrong.
8880         (write_func_for_structure): Issue an error for subclasses for
8881         which the base doesn't have a "desc", since otherwise the
8882         autogenerated routines for the base would silently fail to visit
8883         any subclass fields.
8884         (write_root): Use get_ultimate_base_class, tweaking constness of
8885         tp to match that function's signature.
8887 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8889         * doc/gty.texi (GTY Options): Add note about inheritance to
8890         description of desc and tag.
8891         (Inheritance and GTY): New.
8893 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8895         * gengtype-parse.c (opts_have): Drop "static" so that
8896         we can use this from gengtype.c.
8897         * gengtype.c (set_gc_used_type): Mark any base class as used;
8898         update field traversal to visit inherited fields.
8899         (output_mangled_typename):  Convert references to classes within
8900         an inheritance hierarchy to reference the ultimate base class,
8901         since only it will have gt_ functions.
8902         (get_string_option): New.
8903         (walk_subclasses): New.
8904         (walk_type): Treat GTY structs that have a "desc" as being the
8905         root of an inheritance hierarchy.  Generate a switch on it
8906         within the marking function which walks all subclasses, adding
8907         cases for them via walk_subclasses.  For subclasses, visit all
8908         fields of the type (including inherited ones).
8909         (write_func_for_structure): Don't write fns for subclasses, only
8910         for the ultimate base class within an inheritance hierarchy.
8911         Subclasses-marking will be handled by the base class marking functions.
8912         (write_types): Likewise.
8913         (write_local_func_for_structure): Likewise.
8914         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8915         a "tag" option (and are thus concrete subclasses).
8916         (write_root): Use the marker function for the ultimate base class.
8917         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8918         (opts_have): Add declaration.
8920 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
8922         * lra-spills.c (lra_final_code_change): Remove useless move insns
8923         originated from moves of pseudos.
8925 2013-10-28  Jeff Law  <law@redhat.com>
8927         * lower-subreg.c (resolve_simple_move): Fix comment typo.
8929 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
8931         * df-scan.c (df_collection_rec): Adjust.
8932         (copy_defs): New constant.
8933         (copy_uses): Likewise.
8934         (copy_eq_uses): Likewise.
8935         (copy_mw): Likewise.
8936         (copy_all): Likewise.
8937         (df_insn_rescan): Adjust.
8938         (df_notes_rescan): Likewise.
8939         (df_swap_refs): Likewise.
8940         (df_sort_and_compress_refs): Likewise.
8941         (df_sort_and_compress_mws): Likewise.
8942         (df_install_refs): Likewise.
8943         (df_install_mws): Likewise.
8944         (df_refs_add_to_chains): Add flags parameter controlling which vectors
8945         are coppied.
8946         (df_bb_refs_record): Adjust.
8947         (df_record_entry_block_defs): Likewise.
8948         (df_record_exit_block_defs): Likewise.
8949         (df_refs_verify): Likewise.
8950         (df_mws_verify): Likewise.
8951         (df_insn_refs_verify): Likewise.
8952         (df_bb_verify): Likewise.
8953         * ipa-pure-const.c (finish_state): Remove.
8954         (propagate): Adjust.
8955         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8956         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8957         var-tracking.c: Adjust.
8958         * vec.c (stack_vecs): Remove.
8959         (register_stack_vec): Likewise.
8960         (stack_vec_register_index): Likewise.
8961         (unregister_stack_vec): Likewise.
8962         * vec.h (struct va_stack): Remove.
8963         (struct vec<T, A, vl_ptr>): Specialize as
8964         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8965         allocation strategy compatable with the vl_ptr layout.
8966         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8967         specialization anyway.
8968         (class stack_vec): New class.
8969         (vec_stack_alloc): Remove.
8970         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8972 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8973             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8974             Sergey Lega  <sergey.s.lega@intel.com>
8975             Anna Tikhonova  <anna.tikhonova@intel.com>
8976             Ilya Tocar  <ilya.tocar@intel.com>
8977             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8978             Ilya Verbin  <ilya.verbin@intel.com>
8979             Kirill Yukhin  <kirill.yukhin@intel.com>
8980             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8982         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8983         (*prefetch_avx512pf_<mode>): New.
8984         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8985         (avx512f_maskcmp<mode>3): Ditto.
8986         (vashrv16si3): Ditto.
8988 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8989             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8990             Sergey Lega  <sergey.s.lega@intel.com>
8991             Anna Tikhonova  <anna.tikhonova@intel.com>
8992             Ilya Tocar  <ilya.tocar@intel.com>
8993             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8994             Ilya Verbin  <ilya.verbin@intel.com>
8995             Kirill Yukhin  <kirill.yukhin@intel.com>
8996             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8998         * config/i386/i386.md (any_truncate): New.
8999         (trunsuffix): Ditto.
9000         * config/i386/predicates.md (const_8_to_9_operand): New.
9001         (const_10_to_11_operand): Ditto.
9002         (const_12_to_13_operand): Ditto.
9003         (const_14_to_15_operand): Ditto.
9004         (const_16_to_19_operand): Ditto.
9005         (const_20_to_23_operand): Ditto.
9006         (const_24_to_27_operand): Ditto.
9007         (const_28_to_31_operand): Ditto.
9008         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
9009         (cvtusi2<ssescalarmodesuffix>32): New.
9010         (cvtusi2<ssescalarmodesuffix>64): Ditto.
9011         (ufloatv16siv16sf2): Ditto.
9012         (avx512f_fix_notruncv16sfv16si): Ditto.
9013         (avx512f_ufix_notruncv16sfv16si): Ditto.
9014         (avx512f_vcvtss2usi): Ditto.
9015         (avx512f_vcvtss2usiq): Ditto.
9016         (avx512f_vcvttss2usi): Ditto.
9017         (avx512f_vcvttss2usiq): Ditto.
9018         (avx512f_vcvtsd2usi): Ditto.
9019         (avx512f_vcvtsd2usiq): Ditto.
9020         (avx512f_vcvttsd2usi): Ditto.
9021         (avx512f_vcvttsd2usiq): Ditto.
9022         (ufloatv8siv8df): Ditto.
9023         (avx512f_cvtdq2pd512_2): Ditto.
9024         (avx512f_cvtpd2dq512): Ditto.
9025         (avx512f_ufix_notruncv8dfv8si): Ditto.
9026         (avx512f_cvtpd2ps512): Ditto.
9027         (vec_unpacks_lo_v16sf): Ditto.
9028         (vec_unpacks_hi_v16sf): Ditto.
9029         (vec_unpacks_float_hi_v16si): Ditto.
9030         (vec_unpacks_float_lo_v16si): Ditto.
9031         (avx512f_unpckhps512): Ditto.
9032         (avx512f_unpcklps512): Ditto.
9033         (avx512f_movshdup512): Ditto.
9034         (avx512f_movsldup512): Ditto.
9035         (vec_extract_lo_v32hi): Ditto.
9036         (vec_extract_hi_v32hi): Ditto.
9037         (vec_extract_lo_v64qi): Ditto.
9038         (vec_extract_hi_v64qi): Ditto.
9039         (avx512f_unpckhpd512): Ditto.
9040         (avx512f_movddup512): Ditto.
9041         (avx512f_unpcklpd512): Ditto.
9042         (*avx512f_unpcklpd512): Ditto.
9043         (avx512f_shufps512_1): Ditto.
9044         (avx512f_shufpd512_1): Ditto.
9045         (avx512f_interleave_highv8di): Ditto.
9046         (avx512f_interleave_lowv8di): Ditto.
9047         (PMOV_DST_MODE): Ditto.
9048         (pmov_src_mode): Ditto.
9049         (pmov_src_lower): Ditto.
9050         (pmov_suff): Ditto.
9051         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
9052         (*avx512f_<code>v8div16qi2): Ditto.
9053         (*avx512f_<code>v8div16qi2_store): Ditto.
9054         (vec_widen_umult_even_v16si): Ditto.
9055         (*vec_widen_umult_even_v16si): Ditto.
9056         (vec_widen_smult_even_v16si): Ditto.
9057         (*vec_widen_smult_even_v16si): Ditto.
9058         (avx512f_interleave_highv16si): Ditto.
9059         (avx512f_interleave_lowv16si): Ditto.
9060         (avx512f_<code>v16qiv16si2): Ditto.
9061         (avx512f_<code>v16hiv16si2): Ditto.
9062         (avx512f_<code>v8qiv8di2): Ditto.
9063         (avx512f_<code>v8hiv8di2): Ditto.
9064         (avx512f_<code>v8siv8di2): Ditto.
9065         (avx512cd_maskb_vec_dupv8di): Ditto.
9066         (avx512cd_maskw_vec_dupv16si): Ditto.
9067         (avx512f_vcvtph2ps512): Ditto.
9068         (avx512f_vcvtps2ph512): Ditto.
9069         (VEC_EXTRACT_MODE): Extened with wider modes.
9070         (VEC_PERM_AVX2): Ditto.
9071         (VEC_PERM_CONST): Ditto.
9073 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9075         * config/arc/arc.c (arc_ccfsm_post_advance):
9076         Add comment about TYPE_RETURN.
9078 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
9080         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
9081         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
9082         (strip_offset): Convert offset to unsigned number.
9084 2013-10-27  Tom de Vries  <tom@codesourcery.com>
9086         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
9087         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
9089 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
9091         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
9092         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
9093         (TARGET_BIG_ENDIAN): New macro.
9094         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
9095         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
9096         * config/sh/sh.c: Likewise.
9097         * config/sh/sh.h: Likewise.
9099 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
9101         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
9102         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
9104 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
9106         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
9107         Fix formatting.
9108         (cmpstr_t, cmpstrsi): Fix formatting.
9110 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
9112         PR target/52483
9113         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
9114         addressing, do not use general_operand for memory operands.
9116 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
9118         Revert:
9119         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
9120         * lra-spills.c (lra_final_code_change): Remove useless move insns.
9122 2013-10-26  Jeff Law  <law@redhat.com>
9124         * predict.c (PRED_MUDFLAP): Remove.
9125         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
9127         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
9128         (OBJS): Remove tree-nomudflap.o
9129         (GTFILES): Remove tree-mudflap.c
9130         * builtins.c (expand_builtin_alloc): Remove mudflap support.
9131         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9132         (mfwrap_spec, mflib_spec): Likewise.
9133         (cpp_unique_options, cc1_options, static_specs): Likewise.
9134         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
9135         * passes.def: Likewise.
9136         * toplev.c (compile_file, process_options): Likewise.
9137         * tree-inline.c (copy_tree_r): Likewise.
9138         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
9139         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
9140         (build_constant_desc, output_constant_def_contents): Likewise.
9141         (categorize_decl_for_section): Likewise.
9142         * tree-mudflap.c: Removed.
9143         * tree-mudflap.h: Removed.
9144         * tree-nomudflap.c: Removed.
9145         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
9146         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
9147         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9148         * config/sol2.h (MFLIB_SPEC): Likewise.
9149         * doc/install.texi: Remove mudflap references.
9150         * doc/passes.texi: Similarly.
9151         * doc/sourcebuild.texi: Similarly.
9152         * doc/invoke.texi: Remove mudlfap related options.
9154 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
9156         PR rtl-optimization/58759
9157         * lra-constraints.c (lra_constraints): Remove wrong condition to
9158         remove insn setting up an equivalent pseudo.
9160 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
9162         * config/rs6000/rs6000-protos.h
9163         (rs6000_secondary_memory_needed_mode): New prototype.
9164         * config/rs6000/rs6000.c: Include ira.h.
9165         (TARGET_LRA_P): Redefine.
9166         (rs6000_legitimate_offset_address_p): Call
9167         legitimate_constant_pool_address_p in strict mode for LRA.
9168         (rs6000_legitimate_address_p): Ditto.
9169         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
9170         (rs6000_emit_move): Add LRA version of code to generate load/store
9171         of SDmode values.
9172         (rs6000_secondary_memory_needed_mode): New.
9173         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
9174         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
9175         constants, memory, and FP registers.
9176         (rs6000_lra_p): New.
9177         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
9178         * config/rs6000/rs6000.opt (mlra): New option.
9179         * lra-spills.c (lra_final_code_change): Remove useless move insns.
9181 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
9183         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
9184         has_single_use () and not do the conversion if has_single_use ()
9185         returns false for the multiplication result.
9187 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
9189         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
9190         to "NODE", since this works on a "tree", not an
9191         "enum tree_code".
9192         (CONSTANT_CLASS_P): Likewise.
9193         (TYPE_P): Likewise.
9194         (DECL_P): Likewise.
9195         (INDIRECT_REF_P): Likewise.
9196         (REFERENCE_CLASS_P): Likewise.
9197         (COMPARISON_CLASS_P): Likewise.
9198         (UNARY_CLASS_P): Likewise.
9199         (BINARY_CLASS_P): Likewise.
9200         (STATEMENT_CLASS_P): Likewise.
9201         (VL_EXP_CLASS_P): Likewise.
9202         (EXPRESSION_CLASS_P): Likewise.
9203         (IS_TYPE_OR_DECL_P): Likewise.
9205 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
9207         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
9208         ADDR_EXPR in the defining statement.
9210 2013-10-25  Richard Biener  <rguenther@suse.de>
9212         PR tree-optimization/58626
9213         * tree-loop-distribution.c (enum rdg_dep_type): Remove
9214         anti_dd, output_dd and input_dd.
9215         (struct rdg_edge): Remove level and relation members.
9216         (RDGE_LEVEL, RDGE_RELATION): Remove.
9217         (dot_rdg_1): Adjust.
9218         (create_rdg_edge_for_ddr): Remove.
9219         (create_rdg_edges_for_scalar): Adjust.
9220         (create_edge_for_control_dependence): Likewise.
9221         (create_rdg_edges): Split into ...
9222         (create_rdg_flow_edges): ... this
9223         (create_rdg_cd_edges): ... and this.
9224         (free_rdg): Adjust.
9225         (build_rdg): Likewise, do not compute data dependences or
9226         add edges for them.
9227         (pg_add_dependence_edges): New function.
9228         (pgcmp): Likewise.
9229         (distribute_loop): First apply all non-dependence based
9230         partition mergings.  Then compute dependences between partitions
9231         and merge and order partitions according to them.
9233 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
9235         PR rtl-optimization/58831
9236         * alias.c (init_alias_analysis): At the beginning of each iteration,
9237         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
9239 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
9241         * recog.c (search_ofs): New static variable moved from...
9242         (peep2_find_free_register): ...here.
9243         (peephole2_optimize): Initialize it.
9245 2013-10-25  Tobias Burnus  <burnus@net-b.de>
9247         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
9249 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
9251         * config/i386/i386.h (TARGET_MPX): New define.
9252         (TARGET_MPX_P): Ditto.
9254 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
9256         * config/i386/constraints.md (B): New.
9257         (Ti): New.
9258         (Tb): New.
9259         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9260         * config/i386/i386-modes.def (BND32): New.
9261         (BND64): New.
9262         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9263         * config/i386/i386.c (isa_opts): Add mmpx.
9264         (regclass_map): Add bound registers.
9265         (dbx_register_map): Likewise.
9266         (dbx64_register_map): Likewise.
9267         (svr4_dbx_register_map): Likewise.
9268         (PTA_MPX): New.
9269         (ix86_option_override_internal): Support MPX ISA.
9270         (ix86_conditional_register_usage): Support bound registers.
9271         (print_reg): Likewise.
9272         (ix86_code_end): Add MPX bnd prefix.
9273         (output_set_got): Likewise.
9274         (ix86_output_call_insn): Likewise.
9275         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9276         (ix86_print_operand_punct_valid_p): Likewise.
9277         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9278         UNSPEC_BNDMK_ADDR.
9279         (ix86_class_likely_spilled_p): Add bound regs support.
9280         (ix86_hard_regno_mode_ok): Likewise.
9281         (x86_order_regs_for_local_alloc): Likewise.
9282         (ix86_bnd_prefixed_insn_p): New.
9283         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
9284         (FIXED_REGISTERS): Add bound registers.
9285         (CALL_USED_REGISTERS): Likewise.
9286         (REG_ALLOC_ORDER): Likewise.
9287         (HARD_REGNO_NREGS): Likewise.
9288         (TARGET_MPX): New.
9289         (VALID_BND_REG_MODE): New.
9290         (FIRST_BND_REG): New.
9291         (LAST_BND_REG): New.
9292         (reg_class): Add BND_REGS.
9293         (REG_CLASS_NAMES): Likewise.
9294         (REG_CLASS_CONTENTS): Likewise.
9295         (BND_REGNO_P): New.
9296         (ANY_BND_REG_P): New.
9297         (BNDmode): New.
9298         (HI_REGISTER_NAMES): Add bound registers.
9299         * config/i386/i386.md (UNSPEC_BNDMK): New.
9300         (UNSPEC_BNDMK_ADDR): New.
9301         (UNSPEC_BNDSTX): New.
9302         (UNSPEC_BNDLDX): New.
9303         (UNSPEC_BNDLDX_ADDR): New.
9304         (UNSPEC_BNDCL): New.
9305         (UNSPEC_BNDCU): New.
9306         (UNSPEC_BNDCN): New.
9307         (UNSPEC_MPX_FENCE): New.
9308         (BND0_REG): New.
9309         (BND1_REG): New.
9310         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9311         (length_immediate): Likewise.
9312         (prefix_0f): Likewise.
9313         (memory): Likewise.
9314         (prefix_rep): Check for bnd prefix.
9315         (length_nobnd): New.
9316         (length): Use length_nobnd if specified.
9317         (BND): New.
9318         (bnd_ptr): New.
9319         (BNDCHECK): New.
9320         (bndcheck): New.
9321         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
9322         (*jcc_2): Likewise.
9323         (jump): Likewise.
9324         (simple_return_internal): Likewise.
9325         (simple_return_pop_internal): Likewise.
9326         (*indirect_jump): Add MPX bnd prefix.
9327         (*tablejump_1): Likewise.
9328         (simple_return_internal_long): Likewise.
9329         (simple_return_indirect_internal): Likewise.
9330         (<mode>_mk): New.
9331         (*<mode>_mk): New.
9332         (mov<mode>): New.
9333         (*mov<mode>_internal_mpx): New.
9334         (<mode>_<bndcheck>): New.
9335         (*<mode>_<bndcheck>): New.
9336         (<mode>_ldx): New.
9337         (*<mode>_ldx): New.
9338         (<mode>_stx): New.
9339         (*<mode>_stx): New.
9340         * config/i386/predicates.md (lea_address_operand): Rename to...
9341         (address_no_seg_operand): ... this.
9342         (address_mpx_no_base_operand): New.
9343         (address_mpx_no_index_operand): New.
9344         (bnd_mem_operator): New.
9345         * config/i386/i386.opt (mmpx): New.
9346         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9347         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9349 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
9351         * mode-classes.def (MODE_POINTER_BOUNDS): New.
9352         * tree.def (POINTER_BOUNDS_TYPE): New.
9353         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9354         (POINTER_BOUNDS_MODE): New.
9355         (make_pointer_bounds_mode): New.
9356         * machmode.h (POINTER_BOUNDS_MODE_P): New.
9357         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9358         (layout_type): Support POINTER_BOUNDS_TYPE.
9359         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9360         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9361         (type_contains_placeholder_1): Likewise.
9362         * tree.h (POINTER_BOUNDS_TYPE_P): New.
9363         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9364         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9366 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
9368         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9369         mode of address computation when calling memory_address_addr_space.
9371 2013-08-24  Richard Henderson  <rth@twiddle.net>
9373         PR rtl/58542
9374         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9375         instead of create_convert_operand_to.
9376         (maybe_emit_sync_lock_test_and_set): Likewise.
9377         (expand_atomic_compare_and_swap): Likewise.
9378         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9380 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
9382         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9383         Change param_is to use the struct and not the pointer to the struct.
9385 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
9387         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9388         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9389         Move to targhooks.c.
9390         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9391         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9392         Relocate from gimplify.c.
9393         * targhooks.h: Add 2 prototypes.
9394         * tree.h: Delete 2 prototypes.
9396 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
9398         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9399         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9401 2013-10-24  Cong Hou  <congh@google.com>
9403         * convert.c (convert_to_real): Guard those unsafe math function
9404         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
9405         specially.
9407 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
9409         PR ipa/58712
9410         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9411         as argument.
9412         (cgraph_create_edge): Use the new argument.
9413         (cgraph_create_indirect_edge): Likewise.
9415 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
9417         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9418         TYPE_UNCOND_BRANCH.
9419         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9420         changes statep->state.
9422 2013-10-24  Tobias Burnus  <burnus@net-b.de>
9424         PR other/33426
9425         * tree-cfg.c (replace_loop_annotate): New function.
9426         (execute_build_cfg): Call it.
9427         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9428         * internal-fn.c (expand_ANNOTATE): New function.
9429         * internal-fn.def (ANNOTATE): Define as new internal function.
9430         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9431         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9432         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9433         * doc/extend.texi (Pragmas): Document #pragma ivdep.
9434         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9436 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
9437             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9439         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9440         Special case reload SP+C into none GENERAL_REGS.
9442 2013-10-24  Michael Matz  <matz@suse.de>
9444         * gengtype.c (is_file_equal): Check that files will be same length.
9446 2013-10-25  Christian Bruel  <christian.bruel@st.com>
9448         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9449         * config/sh/t-sh (sh-mem.o): New rule.
9450         * config/sh/sh-mem.cc (expand_block_move): Moved here.
9451         (sh_expand_cmpstr): New function.
9452         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9453         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9454         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9455         (rotlhi3_8): Rename.
9457 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9459         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9460         * Makefile.in (CXXDEPMODE): Assign and change users.
9461         (CCDEPMODE): Delete.
9462         * configure: Regenerate.
9464 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
9466         * gengtype-parse.c (require_without_advance): New.
9467         (type): For GTY-marked types that are not GTY((user)), parse any
9468         base classes, requiring them to be single-inheritance, and not
9469         be templates.  For non-GTY-marked types and GTY((user)),
9470         continue to skip over any C++ inheritance specification.
9471         * gengtype-state.c (state_writer::write_state_struct_type):
9472         Write base class of type (if any).
9473         (read_state_struct_type): Read base class of type (if any).
9474         * gengtype.c (new_structure): Add a "base_class" parameter.
9475         (create_optional_field_): Update for new parameter to new_structure.
9476         (adjust_field_rtx_def): Likewise.
9477         (adjust_field_tree_exp): Likewise.
9478         * gengtype.h (struct type): Add "base_class" field to the s
9479         union field.
9480         (new_structure): Add "base" parameter.
9482 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
9484         PR target/57756
9485         * config/i386/i386.c (ix86_option_override_internal):
9486         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9487         (ix86_valid_target_attribute_tree):
9488         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9489         Change TARGET_SSE to TARGET_SSE_P (opts->...)
9491 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9493         * tree-ssa-loop.h: Remove include files.
9494         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9495         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9496         * graphite-clast-to-gimple.c: Likewise.
9497         * graphite-scop-detection.c: Likewise.
9498         * graphite-sese-to-poly.c: Likewise.
9499         * ipa-inline-analysis.c: Likewise.
9500         * ipa-pure-const.c: Likewise.
9501         * loop-init.c: Likewise.
9502         * passes.c: Likewise.
9503         * predict.c: Likewise.
9504         * tree-cfg.c: Likewise.
9505         * tree-cfgcleanup.c: Likewise.
9506         * tree-chrec.c: Likewise.
9507         * tree-data-ref.c: Likewise.
9508         * tree-loop-distribution.c: Likewise.
9509         * tree-parloops.c: Likewise.
9510         * tree-predcom.c: Likewise.
9511         * tree-scalar-evolution.c: Likewise.
9512         * tree-ssa-address.c: Likewise.
9513         * tree-ssa.c: Likewise.
9514         * tree-ssa-dce.c: Likewise.
9515         * tree-ssa-loop.c: Likewise.
9516         * tree-ssa-loop-im.c: Likewise.
9517         * tree-ssa-loop-ivcanon.c: Likewise.
9518         * tree-ssa-loop-ivopts.c: Likewise.
9519         * tree-ssa-loop-manip.c: Likewise.
9520         * tree-ssa-loop-niter.c: Likewise.
9521         * tree-ssa-loop-prefetch.c: Likewise.
9522         * tree-ssa-loop-unswitch.c: Likewise.
9523         * tree-ssa-reassoc.c: Likewise.
9524         * tree-vect-data-refs.c: Likewise.
9525         * tree-vect-loop.c: Likewise.
9526         * tree-vect-loop-manip.c: Likewise.
9527         * tree-vectorizer.c: Likewise.
9528         * tree-vect-stmts.c: Likewise.
9529         * tree-vrp.c: Likewise.
9531 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9533         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9535 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9537         PR tree-optimization/58775
9538         PR tree-optimization/58791
9539         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9540         (insert_stmt_after): Rewritten, don't move the stmt, but really
9541         insert it.
9542         (get_stmt_uid_with_default): Remove.
9543         (build_and_add_sum): Use insert_stmt_after and
9544         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
9545         (update_range_test): Set uid on stmts added by
9546         force_gimple_operand_gsi.  Don't immediately modify statements
9547         in inter-bb optimization, just update oe->op values.
9548         (optimize_range_tests): Return bool whether any changed have been made.
9549         (update_ops): New function.
9550         (struct inter_bb_range_test_entry): New type.
9551         (maybe_optimize_range_tests): Perform statement changes here.
9552         (not_dominated_by, appears_later_in_bb, get_def_stmt,
9553         ensure_ops_are_available): Remove.
9554         (find_insert_point): Rewritten.
9555         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9556         return LHS of the (new resp. old) stmt.  Don't call
9557         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9558         instead of last, move new stmt at the right place.
9559         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9560         (negate_value): Likewise.  Set uids.
9561         (break_up_subtract_bb): Initialize uids.
9562         (reassociate_bb): Adjust rewrite_expr_tree caller.
9563         (do_reassoc): Don't call renumber_gimple_stmt_uids.
9565 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
9567         PR target/58838
9568         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9569         TARGET_32BIT final condition.
9570         (mulsi3_internal2 and splitter): Same.
9572 2013-10-23  Jeff Law  <law@redhat.com>
9574         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9575         through joiner blocks with abnormal outgoing edges.
9577         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9578         Add parameter JOINERS, to allow/disallow threading through joiner
9579         blocks.
9580         (thread_block): New.  Call thread_block_1.
9581         (mark_threaded_blocks): Remove code to filter out certain cases
9582         of threading through joiner blocks.
9583         (thread_through_all_blocks): Document how we can have a dangling
9584         edge AUX field and clear it.
9586 2013-10-23  Ian Lance Taylor  <iant@google.com>
9588         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9589         (C++ Dialect Options): Likewise.
9590         (Optimize Options): Likewise.
9592 2013-10-23  Tom de Vries  <tom@codesourcery.com>
9594         PR tree-optimization/58805
9595         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9597 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9599         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9600         sequence based on get_range_info returned range.
9602 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9604         * tree-ssa.h: Remove all #include's
9605         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9606         * alias.c: Move required includes from tree-ssa.h.
9607         * asan.c: Likewise.
9608         * builtins.c: Likewise.
9609         * calls.c: Likewise.
9610         * cfgexpand.c: Likewise.
9611         * cfghooks.c: Likewise.
9612         * cfgloop.c: Likewise.
9613         * cfgloopmanip.c: Likewise.
9614         * cgraph.c: Likewise.
9615         * cgraphbuild.c: Likewise.
9616         * cgraphclones.c: Likewise.
9617         * cgraphunit.c: Likewise.
9618         * dse.c: Likewise.
9619         * except.c: Likewise.
9620         * expr.c: Likewise.
9621         * final.c: Likewise.
9622         * fold-const.c: Likewise.
9623         * ggc-page.c: Likewise.
9624         * gimple-builder.c: Likewise.
9625         * gimple-fold.c: Likewise.
9626         * gimple-iterator.c: Likewise.
9627         * gimple-low.c: Likewise.
9628         * gimple-pretty-print.c: Likewise.
9629         * gimple-ssa-strength-reduction.c: Likewise.
9630         * gimple-streamer-in.c: Likewise.
9631         * gimple-streamer-out.c: Likewise.
9632         * gimplify.c: Likewise.
9633         * graphite-blocking.c: Likewise.
9634         * graphite-clast-to-gimple.c: Likewise.
9635         * graphite-dependences.c: Likewise.
9636         * graphite-interchange.c: Likewise.
9637         * graphite-optimize-isl.c: Likewise.
9638         * graphite-poly.c: Likewise.
9639         * graphite-scop-detection.c: Likewise.
9640         * graphite-sese-to-poly.c: Likewise.
9641         * graphite.c: Likewise.
9642         * ipa-cp.c: Likewise.
9643         * ipa-inline-analysis.c: Likewise.
9644         * ipa-inline-transform.c: Likewise.
9645         * ipa-inline.c: Likewise.
9646         * ipa-prop.c: Likewise.
9647         * ipa-pure-const.c: Likewise.
9648         * ipa-reference.c: Likewise.
9649         * ipa-split.c: Likewise.
9650         * ipa-utils.c: Likewise.
9651         * loop-init.c: Likewise.
9652         * lto-cgraph.c: Likewise.
9653         * lto-section-in.c: Likewise.
9654         * lto-section-out.c: Likewise.
9655         * lto-streamer-in.c: Likewise.
9656         * lto-streamer-out.c: Likewise.
9657         * lto-streamer.c: Likewise.
9658         * omp-low.c: Likewise.
9659         * passes.c: Likewise.
9660         * predict.c: Likewise.
9661         * print-tree.c: Likewise.
9662         * profile.c: Likewise.
9663         * sese.c: Likewise.
9664         * targhooks.c: Likewise.
9665         * tracer.c: Likewise.
9666         * trans-mem.c: Likewise.
9667         * tree-call-cdce.c: Likewise.
9668         * tree-cfg.c: Likewise.
9669         * tree-cfgcleanup.c: Likewise.
9670         * tree-chrec.c: Likewise.
9671         * tree-complex.c: Likewise.
9672         * tree-data-ref.c: Likewise.
9673         * tree-dfa.c: Likewise.
9674         * tree-eh.c: Likewise.
9675         * tree-emutls.c: Likewise.
9676         * tree-if-conv.c: Likewise.
9677         * tree-inline.c: Likewise.
9678         * tree-into-ssa.c: Likewise.
9679         * tree-loop-distribution.c: Likewise.
9680         * tree-mudflap.c: Likewise.
9681         * tree-nested.c: Likewise.
9682         * tree-nrv.c: Likewise.
9683         * tree-object-size.c: Likewise.
9684         * tree-outof-ssa.c: Likewise.
9685         * tree-parloops.c: Likewise.
9686         * tree-phinodes.c: Likewise.
9687         * tree-predcom.c: Likewise.
9688         * tree-pretty-print.c: Likewise.
9689         * tree-profile.c: Likewise.
9690         * tree-scalar-evolution.c: Likewise.
9691         * tree-sra.c: Likewise.
9692         * tree-ssa-address.c: Likewise.
9693         * tree-ssa-alias.c: Likewise.
9694         * tree-ssa-ccp.c: Likewise.
9695         * tree-ssa-coalesce.c: Likewise.
9696         * tree-ssa-copy.c: Likewise.
9697         * tree-ssa-copyrename.c: Likewise.
9698         * tree-ssa-dce.c: Likewise.
9699         * tree-ssa-dom.c: Likewise.
9700         * tree-ssa-dse.c: Likewise.
9701         * tree-ssa-forwprop.c: Likewise.
9702         * tree-ssa-ifcombine.c: Likewise.
9703         * tree-ssa-live.c: Likewise.
9704         * tree-ssa-loop-ch.c: Likewise.
9705         * tree-ssa-loop-im.c: Likewise.
9706         * tree-ssa-loop-ivcanon.c: Likewise.
9707         * tree-ssa-loop-ivopts.c: Likewise.
9708         * tree-ssa-loop-manip.c: Likewise.
9709         * tree-ssa-loop-niter.c: Likewise.
9710         * tree-ssa-loop-prefetch.c: Likewise.
9711         * tree-ssa-loop-unswitch.c: Likewise.
9712         * tree-ssa-loop.c: Likewise.
9713         * tree-ssa-math-opts.c: Likewise.
9714         * tree-ssa-operands.c: Likewise.
9715         * tree-ssa-phiopt.c: Likewise.
9716         * tree-ssa-phiprop.c: Likewise.
9717         * tree-ssa-pre.c: Likewise.
9718         * tree-ssa-propagate.c: Likewise.
9719         * tree-ssa-reassoc.c: Likewise.
9720         * tree-ssa-sccvn.c: Likewise.
9721         * tree-ssa-sink.c: Likewise.
9722         * tree-ssa-strlen.c: Likewise.
9723         * tree-ssa-structalias.c: Likewise.
9724         * tree-ssa-tail-merge.c: Likewise.
9725         * tree-ssa-ter.c: Likewise.
9726         * tree-ssa-threadedge.c: Likewise.
9727         * tree-ssa-threadupdate.c: Likewise.
9728         * tree-ssa-uncprop.c: Likewise.
9729         * tree-ssa-uninit.c: Likewise.
9730         * tree-ssa.c: Likewise.
9731         * tree-ssanames.c: Likewise.
9732         * tree-stdarg.c: Likewise.
9733         * tree-streamer-in.c: Likewise.
9734         * tree-switch-conversion.c: Likewise.
9735         * tree-tailcall.c: Likewise.
9736         * tree-vect-data-refs.c: Likewise.
9737         * tree-vect-generic.c: Likewise.
9738         * tree-vect-loop-manip.c: Likewise.
9739         * tree-vect-loop.c: Likewise.
9740         * tree-vect-patterns.c: Likewise.
9741         * tree-vect-slp.c: Likewise.
9742         * tree-vect-stmts.c: Likewise.
9743         * tree-vectorizer.c: Likewise.
9744         * tree-vrp.c: Likewise.
9745         * tree.c: Likewise.
9746         * tsan.c: Likewise.
9747         * value-prof.c: Likewise.
9748         * var-tracking.c: Likewise.
9749         * varpool.c: Likewise.
9750         * vtable-verify.c: Likewise.
9752 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9754         * config/tilegx/tilegx.c: Include "tree.h".
9756 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9758         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9759         the info, not after it.
9760         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9761         dump_ssaname_info call.
9762         (pp_gimple_stmt_1): Adjust caller.
9763         (dump_phi_nodes): Likewise.  Don't print "# " here.
9765 2013-10-22  Jan Hubicka  <jh@suse.cz>
9767         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9768         tuning flag.
9769         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9770         * i386.c (expand_small_movmem_or_setmem): New function.
9771         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9772         function.
9773         (alg_usable_p): Add support for value ranges; cleanup.
9774         (ix86_expand_set_or_movmem): Add support for misaligned moves.
9776 2013-10-22  Sterling Augustine  <saugustine@google.com>
9778         * doc/invoke.texi: Document -ggnu-pubnames.
9779         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9780         logic.
9781         * dwarf2out.c: Include gdb/gdb-index.h.
9782         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9783         debug_generate_pub_sections.
9784         (is_java, output_pubtables, output_pubname): New functions.
9785         (include_pubname_in_output): Handle debug_generate_pub_sections at
9786         level 2.
9787         (size_of_pubnames): Use new local space_for_flags based on
9788         debug_generate_pub_sections.
9789         (output_pubnames): Unify pubnames and pubtypes output logic.
9790         Genericize comments.  Call output_pubname.
9791         (dwarf2out_finish): Move logic to output_pubnames and call it.
9793 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
9795         PR target/58779
9796         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9797         Remove CCCmode handling.
9798         <case LTU>: Return 'c' suffix for CCCmode.
9799         <case GEU>: Return 'nc' suffix for CCCmode.
9800         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9801         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9802         (*sub<mode>3_cc_overflow): Ditto.
9803         (*subsi3_zext_cc_overflow): Ditto.
9805 2013-10-22  Steve Ellcey  <sellcey@mips.com>
9807         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
9808         (AND (NOT OP1) (NOT OP2)).
9810 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
9812         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9813         meaning of merge-high and merge-low masks for little endian; avoid
9814         use of vector-pack masks for little endian for mismatched modes.
9816 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9818         * config/tilepro/tilepro.c: Include "tree.h".
9820 2013-10-22  Andreas Schwab  <schwab@suse.de>
9822         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9823         with PRE_DEC.
9825 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
9827         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9828         [Ed Smith-Rowland]): New entries.
9829         ([Stephen M. Webb]): Update.
9831 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
9833         * tree-ssa-ter.h: Remove duplicate copy of file contents.
9835 2013-10-21  Marek Polacek  <polacek@redhat.com>
9837         PR middle-end/58809
9838         * fold-const.c (fold_range_test): Return 0 if the type is not
9839         an integral type.
9841 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
9843         * system.h: Move hwint.h include further down.
9844         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
9845         gcc_checking_asserts.
9846         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9848 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9850         Fix volatile issues in optimize_bit_field_compare.
9851         * fold-const.c (optimize_bit_field_compare): Bail out if
9852         lvolatilep or rvolatilep.
9854 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9856         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9857         and get_inner_reference returning different pmode for non-volatile
9858         bit-field members dependent on flag_strict_volatile_bitfields.
9859         * stor-layout.c (layout_decl): Remove special handling of
9860         flag_strict_volatile_bitfields.
9861         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9862         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9864 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
9866         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9867         calculations.
9869 2013-10-21  Jeff Law  <law@redhat.com>
9871         * tree-ssa-threadedge.c (thread_through_normal_block): New
9872         argument VISITED.  Remove VISISTED as a local variable.  When we
9873         have a threadable jump, verify the destination of the jump has not
9874         been visised.
9875         (thread_across_edge): Allocate VISITED bitmap once at function
9876         scope and use it throughout.  Make sure to set appropriate bits in
9877         VISITED for E (start of jump thread path).
9878         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9879         through a joiner if any edge on the path has a recorded jump thread.
9881 2013-10-21  Ian Lance Taylor  <iant@google.com>
9883         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9884         don't imply that attributes can solve all problems.
9885         (Directory Options): Fix typo.
9887 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9889         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9890         extend and extend_add.
9892 2013-10-21  Richard Biener  <rguenther@suse.de>
9894         PR tree-optimization/58794
9895         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9896         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9898 2013-10-21  Richard Biener  <rguenther@suse.de>
9900         PR middle-end/58742
9901         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9902         to (T) X for sign-changing conversions (or no conversion).
9904 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
9906         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9908 2013-10-20  Jan Hubicka  <jh@suse.cz>
9910         * config/i386/i386-tune.def: Add comment; organize into categories
9912 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9914         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9915         argument.  Update function comment.
9916         (expand_set_or_movmem_via_rep): New function combining
9917         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9918         (expand_movmem_via_rep_mov): Remove.
9919         expand_setmem_via_rep_stos): Remove.
9920         (expand_movmem_epilogue): Update calls correspondingly.
9921         (expand_setmem_epilogue_via_loop): Likewise.
9922         (emit_memset): New.
9923         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9924         (expand_set_or_movmem_prologue): New function combining
9925         expand_movmem_prologue and expand_setmem_prologue.
9926         (expand_movmem_prologue): Remove.
9927         (expand_setmem_prologue): Remove.
9928         (expand_set_or_movmem_constant_prologue): New function combining
9929         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9930         (expand_constant_movmem_prologue): Remove.
9931         (expand_constant_setmem_prologue): Remove.
9932         (promote_duplicated_reg): Allow vector-const0 value.
9933         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9934         and ix86_expand_setmem.
9935         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9936         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9938 2013-10-21  Diego Novillo  <dnovillo@google.com>
9940         * asan.c: Include tree.h
9941         * bb-reorder.c: Likewise.
9942         * cfgcleanup.c: Likewise.
9943         * cfgloopmanip.c: Likewise.
9944         * data-streamer-in.c: Likewise.
9945         * data-streamer-out.c: Likewise.
9946         * data-streamer.c: Likewise.
9947         * dwarf2cfi.c: Likewise.
9948         * graphite-blocking.c: Likewise.
9949         * graphite-clast-to-gimple.c: Likewise.
9950         * graphite-dependences.c: Likewise.
9951         * graphite-interchange.c: Likewise.
9952         * graphite-optimize-isl.c: Likewise.
9953         * graphite-poly.c: Likewise.
9954         * graphite-scop-detection.c: Likewise.
9955         * graphite-sese-to-poly.c: Likewise.
9956         * graphite.c: Likewise.
9957         * ipa-devirt.c: Likewise.
9958         * ipa-profile.c: Likewise.
9959         * ipa.c: Likewise.
9960         * ira.c: Likewise.
9961         * loop-init.c: Likewise.
9962         * loop-unroll.c: Likewise.
9963         * lower-subreg.c: Likewise.
9964         * lto/lto-object.c: Likewise.
9965         * recog.c: Likewise.
9966         * reginfo.c: Likewise.
9967         * tree-loop-distribution.c: Likewise.
9968         * tree-parloops.c: Likewise.
9969         * tree-ssa-strlen.c: Likewise.
9970         * tree-streamer.c: Likewise.
9971         * value-prof.c: Likewise.
9972         * target-globals.c: Likewise.
9973         * expr.h: Include tree-core.h instead of tree.h.
9974         * gimple.h: Likewise.
9975         * ipa-prop.h: Likewise.
9976         * ipa-utils.h: Likewise.
9977         * lto-streamer.h: Likewise.
9978         * streamer-hooks.h: Likewise.
9979         * ipa-reference.h: Include cgraph.h instead of tree.h.
9980         * cgraph.h: Include basic-block.h instead of tree.h.
9981         * tree-streamer.h: Do not include tree.h.
9982         * genattrtab.c (write_header): Generate inclusion of tree.h.
9983         * genautomata.c (main): Likewise.
9984         * genemit.c: Likewise.
9985         * genopinit.c: Likewise.
9986         * genoutput.c (output_prologue): Likewise.
9987         * genpeep.c: Likewise.
9989 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9991         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9992         little endian.
9993         (vec_unpacku_hi_v8hi): Likewise.
9994         (vec_unpacku_lo_v16qi): Likewise.
9995         (vec_unpacku_lo_v8hi): Likewise.
9997 2013-10-20  Jan Hubicka  <jh@suse.cz>
9999         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
10000         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
10001         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
10003 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
10005         * config/mips/mips.h (ISA_HAS_WSBH): Define.
10006         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
10007         constants.
10008         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
10010 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
10012         PR target/58603
10013         * system.h: Undef m_slot.
10015 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10017         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
10018         all elements for both endian flavors.
10020 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
10022         PR target/58792
10023         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
10024         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
10025         and SI_REG for 64bit SYSV ABI targets.
10027 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
10029         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
10030         to multi_reg_return.  Clarify that we are skipping USEs of multiple
10031         return registers.  Use bool type where appropriate.
10033 2013-10-18  Jan Hubicka  <jh@suse.cz>
10035         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
10036         for cold functions.
10037         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
10038         (X86_TUNE_PUSH_MEMORY): Likewise.
10039         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
10040         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
10041         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
10042         New.
10043         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
10044         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
10045         Remove.
10046         (ix86_option_override_internal): Update to use tune features instead
10047         of variables.
10049 2013-10-18  Cong Hou  <congh@google.com>
10051         PR tree-optimization/58508
10052         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
10053         statement that contains data refs with zero-step.
10055 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
10057         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
10058         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
10059         * gimple-low.c (gimple_check_call_arg,
10060         gimple_check_call_matching_types): Move to cgraph.c.
10061         * gimple-low.h: Remove prototype.
10062         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
10063         Relocate from gimple-low.c.
10064         * cgraph.h: Add prototype.  Don't include basic-block.h.
10065         * gimplify.c: Add gimple-low to include list.
10066         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
10067         * tree-eh.c: Add gimple-low to include list.
10068         * tree-nested.c: Likewise.
10069         * cfgexpand.c: Add tree-ssa-address.h to include list.
10070         * expr.c: Likewise.
10071         * gimple-fold.c: Likewise.
10072         * gimple-ssa-strength-reduction.c: Likewise.
10073         * trans-mem.c: Likewise.
10074         * tree-mudflap.c: Likewise.
10075         * tree-ssa-loop-ivopts.c: Likewise.
10076         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
10077         (degenerate_phi_result): Move to tree-phinodes.c.
10078         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
10079         * tree-ssa-threadedge.c: Likewise.
10080         * tree-vrp.c: Likewise.
10081         * tree-phinodes.c (degenerate_phi_result): Relocate here.
10082         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
10083         * tree-phinodes.h (degenerate_phi_result): Add prototype.
10084         * tree-ssa-copy.c: Include tree-ssa-dom.h.
10085         * tree-ssa-forwprop.c: Likewise.
10086         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
10087         pass_data_cleanup_cfg_post_optimizing,
10088         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
10089         * tree-optimize.c: Delete File.
10090         * graphite.c: Include tree-cfgcleanup.h.
10091         * passes.c: Likewise.
10092         * tree-cfg.c: Likewise.
10093         * tree-profile.c: Likewise.
10094         * tree-ssa-dse.c: Likewise.
10095         * tree-ssa-loop-ivcanon.c: Likewise.
10096         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
10097         * tree-outof-ssa.c: Include sbitmap.h.
10098         * tree-ssa-live.c: Likewise.
10099         * tree-ssa-propagate.c: Likewise.
10100         * tree-ssa-structalias.c: Likewise.
10101         * tree-stdarg.c: Likewise.
10102         * Makefile.in (OBJS): Delete tree-optimize.o.
10103         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
10104         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
10105         * varasm.c: Include basic-block.h.
10106         * cfgloop.h: Include function.h instead of basic-block.h
10107         (bb_loop_depth): Move to cfgloop.c.
10108         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
10110 2013-10-18  Teresa Johnson  <tejohnson@google.com>
10112         * predict.c (probably_never_executed): Compare frequency-based
10113         count to number of training runs.
10114         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
10116 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10118         * config/arm/arm.c (cortexa9_extra_costs): New table.
10119         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
10121 2013-10-18  Jeff Law  <law@redhat.com>
10123         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
10125         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
10126         (register_jump_thread): Add "registered_jump_thread" debug
10127         counter support.
10128         * dbgcnt.def (registered_jump_thread): New debug counter.
10130 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
10132         * config/rs6000/rs6000.c: Include cgraph.h.
10134 2013-10-18  Teresa Johnson  <tejohnson@google.com>
10136         * tree-ssa-tail-merge.c (replace_block_by): Update edge
10137         weights during merging.
10139 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
10141         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
10142         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
10143         * tree-ssa-operands.h: Remove prototype.
10144         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
10145         * gimple.c (virtual_operand_p): Relocate from gimple.c.
10146         * gimple.h: Add prototype.
10147         * gimple-ssa.h: Include tree-ssa-operands.h.
10148         * tree-dump.c: Add tree-cfg.h to include list.
10149         * tree-ssa-alias.c: Add ipa-reference.h to include list.
10150         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
10151         * config/i386/i386.c: Don't include tree-flow.h.
10152         * config/rs6000/rs6000.c: Likewise.
10154 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10156         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
10158 2013-10-18  Richard Biener  <rguenther@suse.de>
10160         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
10161         or TYPE_UNSIGNED of integral types.
10162         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
10163         NULL_TREE for zero-precision integral types.
10165 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
10167         * config/aarch64/arm_neon.h
10168         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
10170 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
10172         PR target/57756
10173         * opth-gen.awk: Define target_flags_explicit.
10175 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
10177         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
10178         fields to the reg_addr array that describes the valid addressing
10179         mode for any register, general purpose registers, floating point
10180         registers, and Altivec registers.
10181         (FIRST_RELOAD_REG_CLASS): Likewise.
10182         (LAST_RELOAD_REG_CLASS): Likewise.
10183         (struct reload_reg_map_type): Likewise.
10184         (reload_reg_map_type): Likewise.
10185         (RELOAD_REG_VALID): Likewise.
10186         (RELOAD_REG_MULTIPLE): Likewise.
10187         (RELOAD_REG_INDEXED): Likewise.
10188         (RELOAD_REG_OFFSET): Likewise.
10189         (RELOAD_REG_PRE_INCDEC): Likewise.
10190         (RELOAD_REG_PRE_MODIFY): Likewise.
10191         (reg_addr): Likewise.
10192         (mode_supports_pre_incdec_p): New helper functions to say whether
10193         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
10194         (mode_supports_pre_modify_p): Likewise.
10195         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
10196         print the valid address mode bits for each mode.
10197         (rs6000_debug_print_mode): Likewise.
10198         (rs6000_debug_reg_global): Likewise.
10199         (rs6000_setup_reg_addr_masks): New function to set up the address
10200         mask bits for each type.
10201         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
10202         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
10203         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
10204         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
10205         PRE_MODIFY are supported.
10206         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
10207         registers, instead of {src,dest}_av_p.
10208         (rs6000_print_options_internal): Tweak the debug output slightly.
10210 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
10212         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
10213         isa attribute.
10215 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
10217         * tree-flow.h (struct omp_region): Move to omp-low.c.
10218         Remove omp_ prototypes and variables.
10219         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
10220         (copy_var_decl): Relocate prototype from tree-flow.h.
10221         * gimple.c (copy_var_decl): Relocate from omp-low.c.
10222         * tree.h: Move prototype to omp-low.h.
10223         * omp-low.h: New File.  Relocate prototypes here.
10224         * omp-low.c (struct omp_region): Make local here.
10225         (root_omp_region): Make static.
10226         (copy_var_decl) Move to gimple.c.
10227         (new_omp_region): Make static.
10228         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
10229         * tree-cfg.c: Include omp-low.h.
10230         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
10231         * gimplify.c: Include omp-low.h.
10232         * tree-parloops.c: Likewise.
10234 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
10236         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
10237         operands are in memory, prefer to force non-matched operand 1 to
10238         the register.
10240 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
10242         PR target/58673
10243         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
10244         restrict TImode addresses to single indirect registers if both
10245         -mquad-memory and -mvsx-timode are used.
10246         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
10247         we should emit load/store quad.  Remove using %y for quad memory
10248         addresses.
10250         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
10251         constraints to allow load/store quad on machines where TImode is
10252         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
10253         for TImode to load integer constants.
10255 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10257         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
10259 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10261         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
10262         handling of STACK_REG.
10264 2013-10-17  Richard Biener  <rguenther@suse.de>
10266         PR tree-optimization/58143
10267         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
10268         New function.
10269         (rewrite_to_defined_overflow): Likewise.
10270         (move_computations_dom_walker::before_dom): Rewrite stmts
10271         with undefined signed overflow that are not always executed
10272         into unsigned arithmetic.
10274 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
10276         PR target/57756
10277         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
10278         explicit isa flag to be an options variable, instead of using
10279         global_options_set.  Remove define from rs6000.h.
10280         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
10282         * config/rs6000/rs6000.c (rs6000_option_override_internal):
10283         Initialize rs6000_isa_flags_explicit.
10284         (rs6000_function_specific_save): Add gcc_options* parameter, so
10285         that the powerpc builds after the 2013-10-15 changes.
10286         (rs6000_function_specific_restore): Likewise.
10288 2013-10-16  DJ Delorie  <dj@redhat.com>
10290         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
10291         op is a REG before checking REGNO.
10292         (rl78_alloc_physical_registers): Verify pattern is a SET before
10293         checking SET_SRC.
10295 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10297         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
10298         endianness.
10299         (vec_unpacks_lo_v4sf): Likewise.
10300         (vec_unpacks_float_hi_v4si): Likewise.
10301         (vec_unpacks_float_lo_v4si): Likewise.
10302         (vec_unpacku_float_hi_v4si): Likewise.
10303         (vec_unpacku_float_lo_v4si): Likewise.
10305 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10307         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
10308         (vsx_concat_v2sf): Likewise.
10310 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
10312         * config/aarch64/aarch64.md
10313         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
10315 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
10317         PR tree-optimization/58697
10318         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
10319         estimated_loop_iterations_int.
10320         (max_stmt_executions_int): Call get_max_loop_iterations_int.
10321         (get_max_loop_iterations_int): New.  HWINT version of
10322         get_max_loop_iterations.
10323         * cfgloop.h: Add prototypes.
10324         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
10325         * loop-unroll.c (decide_peel_once_rolling): Call
10326         get_estimated_loop_iterations_int.
10327         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
10328         * tree-ssa-loop-niter.h: Tweak prototypes.
10330 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
10332         * gengtype-parse.c (struct_field_seq): Ignore access-control
10333         keywords ("public:" etc).
10335 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10337         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
10338         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
10340 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
10342         * config/arm/arm.opt (mlra): New option.
10343         * config/arm/arm.c (arm_lra_p): New function.
10344         (TARGET_LRA_P): Define.
10346 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
10348         * tree-core.h (tree_code_name): Remove.
10349         * tree.h (get_tree_code_name): New prototype.
10350         * tree.c (tree_code_name): Make static.
10351         (get_tree_code_name): New function.
10352         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10353         tree_class_check_failed, tree_range_check_failed,
10354         tree_not_class_check_failed, omp_clause_check_failed,
10355         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10356         wrapper get_tree_code_name instead of calling tree_code_name directly.
10357         * tree-vrp.c (dump_asserts_for): Likewise.
10358         * tree-dump.c (dequeue_and_dump): Likewise.
10359         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10360         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10361         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10362         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10363         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10364         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10365         dump_gimple_omp_for): Likewise.
10366         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10367         * tree-ssa-pre.c (print_pre_expr): Likewise.
10368         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10369         * print-tree.c (print_node_brief, print_node): Likewise.
10370         * gimple.c (gimple_check_failed): Likewise.
10371         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10372         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10373         * config/mep/mep.c (mep_validate_vliw): Likewise.
10374         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10375         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10377 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
10379         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10380         for AMD bdver3.
10382 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
10384         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10385         (MULTILIB_MATCHES): Add multilib for -march=v8.
10387 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
10389         PR target/57756
10390         * optc-save-gen.awk: Add extra parameter to the save and restore
10391         target calls.
10392         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
10393         * tree.c (build_optimization_node): New parameter.  Add extra parameter
10394         to call to cl_optimization_save.
10395         (build_target_option_node): New parameter. Add extra parameter
10396         to call to cl_target_option_save.
10397         * tree.h (build_optimization_node): New parameter.
10398         (build_target_option_node): New parameter.
10399         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10400         build_optimization_node and build_target_option_node.
10401         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10402         (handle_pragma_push_options): Ditto.
10403         * toplev.c (process_options): Ditto.
10404         * opts.c (init_options_struct): Check for opts_set non-null.
10405         * target.def (target_option.save): New parameter.
10406         (target_option.restore): New parameter.
10407         * tm.texi: Generate.
10408         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10409         (ix86_pragma_target_parse): Ditto.
10410         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10411         parameters.
10412         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10413         to  build_optimization_node and build_target_option_node.
10414         (rs6000_valid_attribute_p): Ditto.
10415         (rs6000_pragma_target_parse): Ditto.
10416         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10417         data.
10418         * config/i386/i386.h:
10419         TARGET_64BIT_P: New Macro
10420         TARGET_MMX_P: New Macro.
10421         TARGET_3DNOW_P: New Macro.
10422         TARGET_3DNOW_A_P: New Macro.
10423         TARGET_SSE_P: New Macro.
10424         TARGET_SSE2_P: New Macro.
10425         TARGET_SSE3_P: New Macro.
10426         TARGET_SSSE3_P: New Macro.
10427         TARGET_SSE4_1_P: New Macro.
10428         TARGET_SSE4_2_P: New Macro.
10429         TARGET_AVX_P: New Macro.
10430         TARGET_AVX2_P: New Macro.
10431         TARGET_AVX512F_P: New Macro.
10432         TARGET_AVX512PF_P: New Macro.
10433         TARGET_AVX512ER_P: New Macro.
10434         TARGET_AVX512CD_P: New Macro.
10435         TARGET_FMA_P: New Macro.
10436         TARGET_SSE4A_P: New Macro.
10437         TARGET_FMA4_P: New Macro.
10438         TARGET_XOP_P: New Macro.
10439         TARGET_LWP_P: New Macro.
10440         TARGET_ABM_P: New Macro.
10441         TARGET_BMI_P: New Macro.
10442         TARGET_BMI2_P: New Macro.
10443         TARGET_LZCNT_P: New Macro.
10444         TARGET_TBM_P: New Macro.
10445         TARGET_POPCNT_P: New Macro.
10446         TARGET_SAHF_P: New Macro.
10447         TARGET_MOVBE_P: New Macro.
10448         TARGET_CRC32_P: New Macro.
10449         TARGET_AES_P: New Macro.
10450         TARGET_PCLMUL_P: New Macro.
10451         TARGET_CMPXCHG16B_P: New Macro.
10452         TARGET_FSGSBASE_P: New Macro.
10453         TARGET_RDRND_P: New Macro.
10454         TARGET_F16C_P: New Macro.
10455         TARGET_RTM_P: New Macro.
10456         TARGET_HLE_P: New Macro.
10457         TARGET_RDSEED_P: New Macro.
10458         TARGET_PRFCHW_P: New Macro.
10459         TARGET_ADX_P: New Macro.
10460         TARGET_FXSR_P: New Macro.
10461         TARGET_XSAVE_P: New Macro.
10462         TARGET_XSAVEOPT_P: New Macro.
10463         TARGET_LP64_P: New Macro.
10464         TARGET_X32_P: New Macro.
10465         TARGET_FPMATH_DEFAULT_P: New Macro.
10466         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10467         * config/i386/i386.c (ix86_option_override_internal): New parameters.
10468         opts and opts_set.
10469         Change ix86_tune_string to access opts->x_ix86_tune_string.
10470         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10471         Change ix86_arch_string to access opts->x_ix86_arch_string.
10472         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10473         Change ix86_pmode to access opts->x_ix86_pmode.
10474         Change ix86_abi to access opts->x_ix86_abi.
10475         Change ix86_cmodel to access opts->x_ix86_cmodel.
10476         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10477         Change ix86_isa_flags_explicit to access
10478         opts->x_ix86_isa_flags_explicit.
10479         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10480         Change ix86_regparm to access opts->x_ix86_regparm.
10481         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10482         Change ix86_preferred_stack_boundary_arg to access
10483         opts->x_ix86_preferred_stack_boundary_arg.
10484         Change ix86_force_align_arg_pointer to access
10485         opts->x_ix86_force_align_arg_pointer.
10486         Change ix86_incoming_stack_boundar_arg to access
10487         opts->x_ix86_incoming_stack_boundar_arg.
10488         Change ix86_fpmath to access opts->x_ix86_fpmath.
10489         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10490         Change ix86_recip_name to access opts->x_ix86_recip_name.
10491         Change ix86_stack_protector_guard to access
10492         opts->x_ix86_stack_protector_guard.
10493         Change ix86_tune_memcpy_strategy to access
10494         opts->x_ix86_tune_memcpy_strategy.
10495         Change ix86_tune_memset_strategy to access
10496         opts->x_ix86_tune_memset_strategy.
10497         Change global_options to access opts.
10498         Change global_options_set to access opts_set.
10499         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10500         Change TARGET_MMX to TARGET_MMX_P (opts->...).
10501         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10502         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10503         Change TARGET_SSE to TARGET_SSE_P (opts->...).
10504         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10505         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10506         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10507         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10508         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10509         Change TARGET_AVX to TARGET_AVX_P (opts->...).
10510         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10511         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10512         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10513         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10514         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10515         Change TARGET_FMA to TARGET_FMA_P (opts->...).
10516         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10517         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10518         Change TARGET_XOP to TARGET_XOP_P (opts->...).
10519         Change TARGET_LWP to TARGET_LWP_P (opts->...).
10520         Change TARGET_ABM to TARGET_ABM_P (opts->...).
10521         Change TARGET_BMI to TARGET_BMI_P (opts->...).
10522         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10523         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10524         Change TARGET_TBM to TARGET_TBM_P (opts->...).
10525         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10526         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10527         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10528         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10529         Change TARGET_AES to TARGET_AES_P (opts->...).
10530         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10531         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10532         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10533         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10534         Change TARGET_F16C to TARGET_F16C_P (opts->...).
10535         Change TARGET_RTM to TARGET_RTM_P (opts->...).
10536         Change TARGET_HLE to TARGET_HLE_P (opts->...).
10537         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10538         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10539         Change TARGET_ADX to TARGET_ADX_P (opts->...).
10540         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10541         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10542         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10543         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10544         Change TARGET_X32 to TARGET_X32_P (opts->...).
10545         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10546         Change TARGET_FLOAT_RETURNS_IN_80387 to
10547         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10548         (ix86_function_specific_save): New parameter. Use opts-> fields
10549         to replace global fields.
10550         (ix86_function_specific_restore): Ditto.
10551         (ix86_valid_target_attribute_inner_p): New parameters.
10552         Fix recursive call.
10553         Fix call to ix86_handle_option and set_option.
10554         (ix86_valid_target_attribute_tree): New parameters.
10555         Change global_options to access opts.
10556         Change global_options_set to access opts_set.
10557         Fix call to ix86_valid_target_attribute_inner_p.
10558         Change ix86_tune_string to access opts->x_ix86_tune_string.
10559         Change ix86_arch_string to access opts->x_ix86_arch_string.
10560         Change ix86_fpmath to access opts->x_ix86_fpmath
10561         Fix call to ix86_option_override_internal.
10562         Fix call to ix86_add_new_builtins.
10563         Fix calls to build_optimization_node and build_target_option_node.
10564         (ix86_valid_target_attribute_p): Remove access to global_options.
10565         Use new gcc_options structure func_options.
10566         Fix call to ix86_valid_target_attribute_tree.
10567         Fix call to  build_optimization_node.
10568         (get_builtin_code_for_version): Fix call to
10569         ix86_valid_target_attribute_tree.
10571 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
10573         * Makefile.in (PICFLAG): New.
10574         (enable_host_shared): New.
10575         (INTERNAL_CFLAGS): Use PICFLAG.
10576         (LIBIBERTY): Use pic build of libiberty.a if configured with
10577         --enable-host-shared.
10578         * configure.ac: Add --enable-host-shared, setting up new
10579         PICFLAG variable.
10580         * configure: Regenerate.
10581         * doc/install.texi (--enable-shared): Add note contrasting it with ...
10582         (--enable-host-shared): New option.
10584 2013-10-15  Richard Biener  <rguenther@suse.de>
10586         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10587         for built-in functions.
10589 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10591         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10592         (optimize_range_tests_1): New function,
10593         extracted from optimize_range_tests.
10594         (optimize_range_tests_xor): Similarly.
10595         (optimize_range_tests_diff): New function.
10596         (optimize_range_tests): Use optimize_range_tests_1.
10598 2013-10-15  Cong Hou  <congh@google.com>
10600         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10601         requirement of the reduction pattern so that one operand of the
10602         reduction operation can come from outside of the loop.
10604 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10606         * config/arm/neon-schedgen.ml: Remove.
10607         * config/arm/cortex-a9-neon.md: Remove comment regarding
10608         neon-schedgen.ml.
10610 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10612         * config/arm/types: Remove old neon types.
10614 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10616         * config/arm/cortex-a7.md
10617         (cortex_a7_neon_type): New.
10618         (cortex_a7_neon_mul): Update for new types.
10619         (cortex_a7_neon_mla): Likewise.
10620         (cortex_a7_neon): Likewise.
10622 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10624         * config/arm/cortex-a15-neon.md
10625         (cortex_a15_neon_type): New,
10627         (cortex_a15_neon_int_1): Remove.
10628         (cortex_a15_neon_int_2): Likewise.
10629         (cortex_a15_neon_int_3): Likewise.
10630         (cortex_a15_neon_int_4): Likewise.
10631         (cortex_a15_neon_int_5): Likewise.
10632         (cortex_a15_neon_vqneg_vqabs): Likewise.
10633         (cortex_a15_neon_vmov): Likewise.
10634         (cortex_a15_neon_vaba): Likewise.
10635         (cortex_a15_neon_vaba_qqq): Likewise.
10636         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10637         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10638         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10639         Likewise.
10640         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10641         (cortex_a15_neon_mla_qqq_8_16): Likewise.
10642         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10643         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10644         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10645         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10646         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10647         (cortex_a15_neon_shift_1): Likewise.
10648         (cortex_a15_neon_shift_2): Likewise.
10649         (cortex_a15_neon_shift_3): Likewise.
10650         (cortex_a15_neon_vshl_ddd): Likewise.
10651         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10652         (cortex_a15_neon_vsra_vrsra): Likewise.
10653         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10654         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10655         (cortex_a15_neon_bp_3cycle): Likewise.
10656         (cortex_a15_neon_ldm_2): Likewise.
10657         (cortex_a15_neon_stm_2): Likewise.
10658         (cortex_a15_neon_mcr): Likewise.
10659         (cortex_a15_neon_mrc): Likewise.
10660         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10661         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10662         (cortex_a15_neon_fp_vmul_ddd): Likewise.
10663         (cortex_a15_neon_fp_vmul_qqd): Likewise.
10664         (cortex_a15_neon_fp_vmla_ddd): Likewise.
10665         (cortex_a15_neon_fp_vmla_qqq): Likewise.
10666         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10667         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10668         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10669         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10670         (cortex_a15_neon_bp_simple): Likewise.
10671         (cortex_a15_neon_bp_2cycle): Likewise.
10672         (cortex_a15_neon_bp_3cycle): Likewise.
10673         (cortex_a15_neon_vld1_1_2_regs): Likewise.
10674         (cortex_a15_neon_vld1_3_4_regs): Likewise.
10675         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10676         (cortex_a15_neon_vld2_4_regs): Likewise.
10677         (cortex_a15_neon_vld3_vld4): Likewise.
10678         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10679         (cortex_a15_neon_vst1_3_4_regs): Likewise.
10680         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10681         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10682         (cortex_a15_neon_vst3_vst4): Rename to...
10683         (cortex_a15_neon_vst4): This, update for new attributes.
10684         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10685         (cortex_a15_neon_vld3_vld4_lane): Likewise.
10686         (cortex_a15_neon_vst1_vst2_lane): Likewise.
10687         (cortex_a15_neon_vst3_vst4_lane): Likewise.
10688         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10689         (cortex_a15_neon_ldm_2): Likewise.
10690         (cortex_a15_neon_stm_2): Likewise.
10691         (cortex_a15_neon_mcr): Likewise.
10692         (cortex_a15_neon_mcr_2_mcrr): Likewise.
10693         (cortex_a15_neon_mrc): Likewise.
10694         (cortex_a15_neon_mrrc): Likewise.
10696         (cortex_a15_neon_abd): New.
10697         (cortex_a15_neon_abd_q): Likewise.
10698         (cortex_a15_neon_aba): Likewise.
10699         (cortex_a15_neon_aba_q): Likewise.
10700         (cortex_a15_neon_acc): Likewise.
10701         (cortex_a15_neon_acc_q): Likewise.
10702         (cortex_a15_neon_arith_basic): Likewise.
10703         (cortex_a15_neon_arith_complex): Likewise.
10704         (cortex_a15_neon_multiply): Likewise.
10705         (cortex_a15_neon_multiply_q): Likewise.
10706         (cortex_a15_neon_mla): Likewise.
10707         (cortex_a15_neon_mla_q): Likewise.
10708         (cortex_a15_neon_sat_mla_long): Likewise.
10709         (cortex_a15_neon_shift_acc): Likewise.
10710         (cortex_a15_neon_shift_imm_basic): Likewise.
10711         (cortex_a15_neon_shift_imm_complex): Likewise.
10712         (cortex_a15_neon_shift_reg_basic): Likewise.
10713         (cortex_a15_neon_shift_reg_basic_q): Likewise.
10714         (cortex_a15_neon_shift_reg_complex): Likewise.
10715         (cortex_a15_neon_shift_reg_complex_q): Likewise.
10716         (cortex_a15_neon_fp_negabs): Likewise
10717         (cortex_a15_neon_fp_arith): Likewise
10718         (cortex_a15_neon_fp_arith_q): Likewise
10719         (cortex_a15_neon_fp_cvt_int): Likewise
10720         (cortex_a15_neon_fp_cvt_int_q): Likewise
10721         (cortex_a15_neon_fp_cvt_16): Likewise
10722         (cortex_a15_neon_fp_mul): Likewise
10723         (cortex_a15_neon_fp_mul_q): Likewise
10724         (cortex_a15_neon_fp_mla): Likewise
10725         (cortex_a15_neon_fp_mla_q): Likewise
10726         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10727         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10728         (cortex_a15_neon_bitops): Likewise.
10729         (cortex_a15_neon_bitops_q): Likewise.
10730         (cortex_a15_neon_from_gp): Likewise.
10731         (cortex_a15_neon_from_gp_q): Likewise.
10732         (cortex_a15_neon_tbl3_tbl4): Likewise.
10733         (cortex_a15_neon_zip_q): Likewise.
10734         (cortex_a15_neon_to_gp): Likewise.
10735         (cortex_a15_neon_load_a): Likewise.
10736         (cortex_a15_neon_load_b): Likewise.
10737         (cortex_a15_neon_load_c): Likewise.
10738         (cortex_a15_neon_load_d): Likewise.
10739         (cortex_a15_neon_load_e): Likewise.
10740         (cortex_a15_neon_load_f): Likewise.
10741         (cortex_a15_neon_store_a): Likewise.
10742         (cortex_a15_neon_store_b): Likewise.
10743         (cortex_a15_neon_store_c): Likewise.
10744         (cortex_a15_neon_store_d): Likewise.
10745         (cortex_a15_neon_store_e): Likewise.
10746         (cortex_a15_neon_store_f): Likewise.
10747         (cortex_a15_neon_store_g): Likewise.
10748         (cortex_a15_neon_store_h): Likewise.
10749         (cortex_a15_vfp_to_from_gp): Likewise.
10751 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10753         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10755         (cortex_a9_neon_vshl_ddd): Remove.
10756         (cortex_a9_neon_vst3_vst4): Likewise.
10757         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10759         (cortex_a9_neon_bit_ops_q): New.
10761         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10762         (cortex_a9_neon_int_2): Likewise.
10763         (cortex_a9_neon_int_3): Likewise.
10764         (cortex_a9_neon_int_4): Likewise.
10765         (cortex_a9_neon_int_5): Likewise.
10766         (cortex_a9_neon_vqneg_vqabs): Likewise.
10767         (cortex_a9_neon_vmov): Likewise.
10768         (cortex_a9_neon_vaba): Likewise.
10769         (cortex_a9_neon_vaba_qqq): Likewise.
10770         (cortex_a9_neon_shift_1): Likewise.
10771         (cortex_a9_neon_shift_2): Likewise.
10772         (cortex_a9_neon_shift_3): Likewise.
10773         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10774         (cortex_a9_neon_vsra_vrsra): Likewise.
10775         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10776         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10777         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10778         Likewise.
10779         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10780         (cortex_a9_neon_mla_qqq_8_16): Likewise.
10781         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10782         Likewise.
10783         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10784         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10785         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10786         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10787         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10788         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10789         (cortex_a9_neon_fp_vsum): Likewise.
10790         (cortex_a9_neon_fp_vmul_ddd): Likewise.
10791         (cortex_a9_neon_fp_vmul_qqd): Likewise.
10792         (cortex_a9_neon_fp_vmla_ddd): Likewise.
10793         (cortex_a9_neon_fp_vmla_qqq): Likewise.
10794         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10795         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10796         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10797         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10798         (cortex_a9_neon_bp_simple): Likewise.
10799         (cortex_a9_neon_bp_2cycle): Likewise.
10800         (cortex_a9_neon_bp_3cycle): Likewise.
10801         (cortex_a9_neon_ldr): Likewise.
10802         (cortex_a9_neon_str): Likewise.
10803         (cortex_a9_neon_vld1_1_2_regs): Likewise.
10804         (cortex_a9_neon_vld1_3_4_regs): Likewise.
10805         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10806         (cortex_a9_neon_vld2_4_regs): Likewise.
10807         (cortex_a9_neon_vld3_vld4): Likewise.
10808         (cortex_a9_neon_vld1_vld2_lane): Likewise.
10809         (cortex_a9_neon_vld3_vld4_lane): Likewise.
10810         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10811         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10812         (cortex_a9_neon_vst1_3_4_regs): Likewise.
10813         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10814         (cortex_a9_neon_vst1_vst2_lane): Likewise.
10815         (cortex_a9_neon_vst3_vst4_lane): Likewise.
10816         (cortex_a9_neon_mcr): Likewise.
10817         (cortex_a9_neon_mcr_2_mcrr): Likewise.
10818         (cortex_a9_neon_mrc): Likewise.
10819         (cortex_a9_neon_mrrc): Likewise.
10821 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10823         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10825         (cortex_a8_neon_vshl_ddd): Remove.
10826         (cortex_a8_neon_vst3_vst4): Likewise.
10827         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10829         (cortex_a8_neon_bit_ops_q): New.
10831         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10832         (cortex_a8_neon_int_2): Likewise..
10833         (cortex_a8_neon_int_3): Likewise.
10834         (cortex_a8_neon_int_5): Likewise.
10835         (cortex_a8_neon_vqneg_vqabs): Likewise.
10836         (cortex_a8_neon_int_4): Likewise.
10837         (cortex_a8_neon_vaba): Likewise.
10838         (cortex_a8_neon_vaba_qqq): Likewise.
10839         (cortex_a8_neon_shift_1): Likewise.
10840         (cortex_a8_neon_shift_2): Likewise.
10841         (cortex_a8_neon_shift_3): Likewise.
10842         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10843         (cortex_a8_neon_vsra_vrsra): Likewise.
10844         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10845         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10846         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10847         Likewise.
10848         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10849         (cortex_a8_neon_mla_qqq_8_16): Likewise.
10850         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10851         Likewise.
10852         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10853         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10854         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10855         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10856         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10857         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10858         (cortex_a8_neon_fp_vsum): Likewise.
10859         (cortex_a8_neon_fp_vmul_ddd): Likewise.
10860         (cortex_a8_neon_fp_vmul_qqd): Likewise.
10861         (cortex_a8_neon_fp_vmla_ddd): Likewise.
10862         (cortex_a8_neon_fp_vmla_qqq): Likewise.
10863         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10864         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10865         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10866         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10867         (cortex_a8_neon_bp_simple): Likewise.
10868         (cortex_a8_neon_bp_2cycle): Likewise.
10869         (cortex_a8_neon_bp_3cycle): Likewise.
10870         (cortex_a8_neon_ldr): Likewise.
10871         (cortex_a8_neon_str): Likewise.
10872         (cortex_a8_neon_vld1_1_2_regs): Likewise.
10873         (cortex_a8_neon_vld1_3_4_regs): Likewise.
10874         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10875         (cortex_a8_neon_vld2_4_regs): Likewise.
10876         (cortex_a8_neon_vld3_vld4): Likewise.
10877         (cortex_a8_neon_vld1_vld2_lane): Likewise.
10878         (cortex_a8_neon_vld3_vld4_lane): Likewise.
10879         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10880         (cortex_a8_neon_vst1_3_4_regs): Likewise.
10881         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10882         (cortex_a8_neon_vst1_vst2_lane): Likewise.
10883         (cortex_a8_neon_vst3_vst4_lane): Likewise.
10884         (cortex_a8_neon_mcr): Likewise.
10885         (cortex_a8_neon_mcr_2_mcrr): Likewise.
10886         (cortex_a8_neon_mrc): Likewise.
10887         (cortex_a8_neon_mrrc): Likewise.
10889 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10891         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10892         (fp): New.
10893         * config/aarch64/aarch64-simd.md (neon_type): Remove.
10894         (aarch64_simd_dup<mode>): Add "type" attribute.
10895         (aarch64_dup_lane<mode>): Likewise.
10896         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10897         (*aarch64_simd_mov<mode>): Likewise.
10898         (aarch64_simd_mov_from_<mode>low): Likewise.
10899         (aarch64_simd_mov_from_<mode>high): Likewise.
10900         (orn<mode>3): Likewise.
10901         (bic<mode>3): Likewise.
10902         (add<mode>3): Likewise.
10903         (sub<mode>3): Likewise.
10904         (mul<mode>3): Likewise.
10905         (*aarch64_mul3_elt<mode>): Likewise.
10906         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10907         (*aarch64_mul3_elt_to_128df): Likewise.
10908         (*aarch64_mul3_elt_to_64v2df): Likewise.
10909         (neg<mode>2): Likewise.
10910         (abs<mode>2): Likewise.
10911         (abd<mode>_3): Likewise.
10912         (aba<mode>_3): Likewise.
10913         (fabd<mode>_3): Likewise.
10914         (*fabd_scalar<mode>3): Likewise.
10915         (and<mode>3): Likewise.
10916         (ior<mode>3): Likewise.
10917         (xor<mode>3): Likewise.
10918         (one_cmpl<mode>2): Likewise.
10919         (aarch64_simd_vec_set<mode>): Likewise.
10920         (aarch64_simd_lshr<mode>): Likewise.
10921         (aarch64_simd_ashr<mode>): Likewise.
10922         (aarch64_simd_imm_shl<mode>): Likewise.
10923         (aarch64_simd_reg_sshl<mode): Likewise.
10924         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10925         (aarch64_simd_reg_shl<mode>_signed): Likewise.
10926         (aarch64_simd_vec_setv2di): Likewise.
10927         (aarch64_simd_vec_set<mode>): Likewise.
10928         (aarch64_mla<mode>): Likewise.
10929         (*aarch64_mla_elt<mode>): Likewise.
10930         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10931         (aarch64_mls<mode>): Likewise.
10932         (*aarch64_mls_elt<mode>): Likewise.
10933         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10934         (<su><maxmin><mode>3): Likewise.
10935         (move_lo_quad_<mode>): Likewise.
10936         (aarch64_simd_move_hi_quad_<mode>): Likewise.
10937         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10938         (vec_pack_trunc_<mode>): Likewise.
10939         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10940         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10941         (*aarch64_<su>mlal_lo<mode>): Likewise.
10942         (*aarch64_<su>mlal_hi<mode>): Likewise.
10943         (*aarch64_<su>mlsl_lo<mode>): Likewise.
10944         (*aarch64_<su>mlsl_hi<mode>): Likewise.
10945         (*aarch64_<su>mlal<mode>): Likewise.
10946         (*aarch64_<su>mlsl<mode>): Likewise.
10947         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10948         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10949         (add<mode>3): Likewise.
10950         (sub<mode>3): Likewise.
10951         (mul<mode>3): Likewise.
10952         (div<mode>3): Likewise.
10953         (neg<mode>2): Likewise.
10954         (abs<mode>2): Likewise.
10955         (fma<mode>4): Likewise.
10956         (*aarch64_fma4_elt<mode>): Likewise.
10957         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10958         (*aarch64_fma4_elt_to_128df): Likewise.
10959         (*aarch64_fma4_elt_to_64v2df): Likewise.
10960         (fnma<mode>4): Likewise.
10961         (*aarch64_fnma4_elt<mode>): Likewise.
10962         (*aarch64_fnma4_elt_<vswap_width_name><mode>
10963         (*aarch64_fnma4_elt_to_128df): Likewise.
10964         (*aarch64_fnma4_elt_to_64v2df): Likewise.
10965         (<frint_pattern><mode>2): Likewise.
10966         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10967         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10968         (vec_unpacks_lo_v4sf): Likewise.
10969         (aarch64_float_extend_lo_v2df): Likewise.
10970         (vec_unpacks_hi_v4sf): Likewise.
10971         (aarch64_float_truncate_lo_v2sf): Likewise.
10972         (aarch64_float_truncate_hi_v4sf): Likewise.
10973         (aarch64_vmls<mode>): Likewise.
10974         (<su><maxmin><mode>3): Likewise.
10975         (<maxmin_uns><mode>3): Likewise.
10976         (reduc_<sur>plus_<mode>): Likewise.
10977         (reduc_<sur>plus_v2di): Likewise.
10978         (reduc_<sur>plus_v2si): Likewise.
10979         (reduc_<sur>plus_<mode>): Likewise.
10980         (aarch64_addpv4sf): Likewise.
10981         (clz<mode>2): Likewise.
10982         (reduc_<maxmin_uns>_<mode>): Likewise.
10983         (reduc_<maxmin_uns>_v2di): Likewise.
10984         (reduc_<maxmin_uns>_v2si): Likewise.
10985         (reduc_<maxmin_uns>_<mode>): Likewise.
10986         (reduc_<maxmin_uns>_v4sf): Likewise.
10987         (aarch64_simd_bsl<mode>_internal): Likewise.
10988         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10989         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10990         (aarch64_get_lane<mode>): Likewise.
10991         (*aarch64_combinez<mode>): Likewise.
10992         (aarch64_combine<mode>): Likewise.
10993         (aarch64_simd_combine<mode>): Likewise.
10994         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10995         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10996         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10997         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10998         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10999         (aarch64_<sur>h<addsub><mode>): Likewise.
11000         (aarch64_<sur><addsub>hn<mode>): Likewise.
11001         (aarch64_<sur><addsub>hn2<mode>): Likewise.
11002         (aarch64_pmul<mode>): Likewise.
11003         (aarch64_<su_optab><optab><mode>): Likewise.
11004         (aarch64_<sur>qadd<mode>): Likewise.
11005         (aarch64_sqmovun<mode>): Likewise.
11006         (aarch64_<sur>qmovn<mode>): Likewise.
11007         (aarch64_s<optab><mode>): Likewise.
11008         (aarch64_sq<r>dmulh<mode>): Likewise.
11009         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
11010         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
11011         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
11012         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
11013         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
11014         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
11015         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
11016         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
11017         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11018         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
11019         (aarch64_sqdmull<mode>): Likewise.
11020         (aarch64_sqdmull_lane<mode>_internal): Likewise.
11021         (aarch64_sqdmull_n<mode>): Likewise.
11022         (aarch64_sqdmull2<mode>_internal): Likewise.
11023         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11024         (aarch64_sqdmull2_n<mode>_internal): Likewise.
11025         (aarch64_<sur>shl<mode>): Likewise.
11026         (aarch64_<sur>q<r>shl<mode>
11027         (aarch64_<sur>shll_n<mode>): Likewise.
11028         (aarch64_<sur>shll2_n<mode>): Likewise.
11029         (aarch64_<sur>shr_n<mode>): Likewise.
11030         (aarch64_<sur>sra_n<mode>): Likewise.
11031         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
11032         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
11033         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
11034         (aarch64_cm<optab><mode>): Likewise.
11035         (aarch64_cm<optab>di): Likewise.
11036         (aarch64_cm<optab><mode>): Likewise.
11037         (aarch64_cm<optab>di): Likewise.
11038         (aarch64_cmtst<mode>): Likewise.
11039         (aarch64_cmtstdi): Likewise.
11040         (aarch64_cm<optab><mode>): Likewise.
11041         (*aarch64_fac<optab><mode>): Likewise.
11042         (aarch64_addp<mode>): Likewise.
11043         (aarch64_addpdi): Likewise.
11044         (sqrt<mode>2): Likewise.
11045         (vec_load_lanesoi<mode>): Likewise.
11046         (vec_store_lanesoi<mode>): Likewise.
11047         (vec_load_lanesci<mode>): Likewise.
11048         (vec_store_lanesci<mode>): Likewise.
11049         (vec_load_lanesxi<mode>): Likewise.
11050         (vec_store_lanesxi<mode>): Likewise.
11051         (*aarch64_mov<mode>): Likewise.
11052         (aarch64_ld2<mode>_dreg): Likewise.
11053         (aarch64_ld2<mode>_dreg): Likewise.
11054         (aarch64_ld3<mode>_dreg): Likewise.
11055         (aarch64_ld3<mode>_dreg): Likewise.
11056         (aarch64_ld4<mode>_dreg): Likewise.
11057         (aarch64_ld4<mode>_dreg): Likewise.
11058         (aarch64_tbl1<mode>): Likewise.
11059         (aarch64_tbl2v16qi): Likewise.
11060         (aarch64_combinev16qi): Likewise.
11061         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
11062         (aarch64_st2<mode>_dreg): Likewise.
11063         (aarch64_st2<mode>_dreg): Likewise.
11064         (aarch64_st3<mode>_dreg): Likewise.
11065         (aarch64_st3<mode>_dreg): Likewise.
11066         (aarch64_st4<mode>_dreg): Likewise.
11067         (aarch64_st4<mode>_dreg): Likewise.
11068         (*aarch64_simd_ld1r<mode>): Likewise.
11069         (aarch64_frecpe<mode>): Likewise.
11070         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
11071         (aarch64_frecps<mode>): Likewise.
11073 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
11075         * config/arm/iterators.md (V_elem_ch): New.
11076         (q): Likewise.
11077         (VQH_type): Likewise.
11078         * config/arm/arm.md (is_neon_type): New.
11079         (conds): Use is_neon_type.
11080         (anddi3_insn): Update type attribute.
11081         (xordi3_insn): Likewise.
11082         (one_cmpldi2): Likewise.
11083         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
11084         * config/arm/neon.md (neon_mov): Update type attribute.
11085         (*movmisalign<mode>_neon_store): Likewise.
11086         (*movmisalign<mode>_neon_load): Likewise.
11087         (vec_set<mode>_internal): Likewise.
11088         (vec_set<mode>_internal): Likewise.
11089         (vec_setv2di_internal): Likewise.
11090         (vec_extract<mode>): Likewise.
11091         (vec_extract<mode>): Likewise.
11092         (vec_extractv2di): Likewise.
11093         (*add<mode>3_neon): Likewise.
11094         (adddi3_neon): Likewise.
11095         (*sub<mode>3_neon): Likewise.
11096         (subdi3_neon): Likewise.
11097         (fma<VCVTF:mode>4): Likewise.
11098         (fma<VCVTF:mode>4_intrinsic): Likewise.
11099         (*fmsub<VCVTF:mode>4): Likewise.
11100         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
11101         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
11102         (ior<mode>3): Likewise.
11103         (and<mode>3): Likewise.
11104         (orn<mode>3_neon): Likewise.
11105         (orndi3_neon): Likewise.
11106         (bic<mode>3_neon): Likewise.
11107         (bicdi3_neon): Likewise.
11108         (xor<mode>3): Likewise.
11109         (one_cmpl<mode>2): Likewise.
11110         (abs<mode>2): Likewise.
11111         (neg<mode>2): Likewise.
11112         (negdi2_neon): Likewise.
11113         (*umin<mode>3_neon): Likewise.
11114         (*umax<mode>3_neon): Likewise.
11115         (*smin<mode>3_neon): Likewise.
11116         (*smax<mode>3_neon): Likewise.
11117         (vashl<mode>3): Likewise.
11118         (vashr<mode>3_imm): Likewise.
11119         (vlshr<mode>3_imm): Likewise.
11120         (ashl<mode>3_signed): Likewise.
11121         (ashl<mode>3_unsigned): Likewise.
11122         (neon_load_count): Likewise.
11123         (ashldi3_neon_noclobber): Likewise.
11124         (ashldi3_neon): Likewise.
11125         (signed_shift_di3_neon): Likewise.
11126         (unsigned_shift_di3_neon): Likewise.
11127         (ashrdi3_neon_imm_noclobber): Likewise.
11128         (lshrdi3_neon_imm_noclobber): Likewise.
11129         (<shift>di3_neon): Likewise.
11130         (widen_ssum<mode>3): Likewise.
11131         (widen_usum<mode>3): Likewise.
11132         (quad_halves_<code>v4si): Likewise.
11133         (quad_halves_<code>v4sf): Likewise.
11134         (quad_halves_<code>v8hi): Likewise.
11135         (quad_halves_<code>v16qi): Likewise.
11136         (reduc_splus_v2di): Likewise.
11137         (neon_vpadd_internal<mode>): Likewise.
11138         (neon_vpsmin<mode>): Likewise.
11139         (neon_vpsmax<mode>): Likewise.
11140         (neon_vpumin<mode>): Likewise.
11141         (neon_vpumax<mode>): Likewise.
11142         (*ss_add<mode>_neon): Likewise.
11143         (*us_add<mode>_neon): Likewise.
11144         (*ss_sub<mode>_neon): Likewise.
11145         (*us_sub<mode>_neon): Likewise.
11146         (neon_vadd<mode>_unspec): Likewise.
11147         (neon_vaddl<mode>): Likewise.
11148         (neon_vaddw<mode>): Likewise.
11149         (neon_vhadd<mode>): Likewise.
11150         (neon_vqadd<mode>): Likewise.
11151         (neon_vaddhn<mode>): Likewise.
11152         (neon_vmul<mode>): Likewise.
11153         (neon_vfms<VCVTF:mode>): Likewise.
11154         (neon_vmlal<mode>): Likewise.
11155         (neon_vmls<mode>): Likewise.
11156         (neon_vmlsl<mode>): Likewise.
11157         (neon_vqdmulh<mode>): Likewise.
11158         (neon_vqdmlal<mode>): Likewise.
11159         (neon_vqdmlsl<mode>): Likewise.
11160         (neon_vmull<mode>): Likewise.
11161         (neon_vqdmull<mode>): Likewise.
11162         (neon_vsub<mode>_unspec): Likewise.
11163         (neon_vsubl<mode>): Likewise.
11164         (neon_vsubw<mode>): Likewise.
11165         (neon_vqsub<mode>): Likewise.
11166         (neon_vhsub<mode>): Likewise.
11167         (neon_vsubhn<mode>): Likewise.
11168         (neon_vceq<mode>): Likewise.
11169         (neon_vcge<mode>): Likewise.
11170         (neon_vcgeu<mode>): Likewise.
11171         (neon_vcgt<mode>): Likewise.
11172         (neon_vcgtu<mode>): Likewise.
11173         (neon_vcle<mode>): Likewise.
11174         (neon_vclt<mode>): Likewise.
11175         (neon_vcage<mode>): Likewise.
11176         (neon_vcagt<mode>): Likewise.
11177         (neon_vtst<mode>): Likewise.
11178         (neon_vabd<mode>): Likewise.
11179         (neon_vabdl<mode>): Likewise.
11180         (neon_vaba<mode>): Likewise.
11181         (neon_vabal<mode>): Likewise.
11182         (neon_vmax<mode>): Likewise.
11183         (neon_vmin<mode>): Likewise.
11184         (neon_vpaddl<mode>): Likewise.
11185         (neon_vpadal<mode>): Likewise.
11186         (neon_vpmax<mode>): Likewise.
11187         (neon_vpmin<mode>): Likewise.
11188         (neon_vrecps<mode>): Likewise.
11189         (neon_vrsqrts<mode>): Likewise.
11190         (neon_vqabs<mode>): Likewise.
11191         (neon_vqneg<mode>): Likewise.
11192         (neon_vcls<mode>): Likewise.
11193         (clz<mode>2): Likewise.
11194         (popcount<mode>2): Likewise.
11195         (neon_vrecpe<mode>): Likewise.
11196         (neon_vrsqrte<mode>): Likewise.
11197         (neon_vget_lane<mode>_sext_internal): Likewise.
11198         (neon_vget_lane<mode>_zext_internal): Likewise.
11199         (neon_vdup_n<mode>): Likewise.
11200         (neon_vdup_n<mode>): Likewise.
11201         (neon_vdup_nv2di): Likewise.
11202         (neon_vdup_lane<mode>_interal): Likewise.
11203         (*neon_vswp<mode>): Likewise.
11204         (neon_vcombine<mode>): Likewise.
11205         (float<mode><V_cvtto>2): Likewise.
11206         (floatuns<mode><V_cvtto>2): Likewise.
11207         (fix_trunc<mode><V_cvtto>2): Likewise.
11208         (fixuns_trunc<mode><V_cvtto>2
11209         (neon_vcvt<mode>): Likewise.
11210         (neon_vcvt<mode>): Likewise.
11211         (neon_vcvtv4sfv4hf): Likewise.
11212         (neon_vcvtv4hfv4sf): Likewise.
11213         (neon_vcvt_n<mode>): Likewise.
11214         (neon_vcvt_n<mode>): Likewise.
11215         (neon_vmovn<mode>): Likewise.
11216         (neon_vqmovn<mode>): Likewise.
11217         (neon_vqmovun<mode>): Likewise.
11218         (neon_vmovl<mode>): Likewise.
11219         (neon_vmul_lane<mode>): Likewise.
11220         (neon_vmul_lane<mode>): Likewise.
11221         (neon_vmull_lane<mode>): Likewise.
11222         (neon_vqdmull_lane<mode>): Likewise.
11223         (neon_vqdmulh_lane<mode>): Likewise.
11224         (neon_vqdmulh_lane<mode>): Likewise.
11225         (neon_vmla_lane<mode>): Likewise.
11226         (neon_vmla_lane<mode>): Likewise.
11227         (neon_vmlal_lane<mode>): Likewise.
11228         (neon_vqdmlal_lane<mode>): Likewise.
11229         (neon_vmls_lane<mode>): Likewise.
11230         (neon_vmls_lane<mode>): Likewise.
11231         (neon_vmlsl_lane<mode>): Likewise.
11232         (neon_vqdmlsl_lane<mode>): Likewise.
11233         (neon_vext<mode>): Likewise.
11234         (neon_vrev64<mode>): Likewise.
11235         (neon_vrev32<mode>): Likewise.
11236         (neon_vrev16<mode>): Likewise.
11237         (neon_vbsl<mode>_internal): Likewise.
11238         (neon_vshl<mode>): Likewise.
11239         (neon_vqshl<mode>): Likewise.
11240         (neon_vshr_n<mode>): Likewise.
11241         (neon_vshrn_n<mode>): Likewise.
11242         (neon_vqshrn_n<mode>): Likewise.
11243         (neon_vqshrun_n<mode>): Likewise.
11244         (neon_vshl_n<mode>): Likewise.
11245         (neon_vqshl_n<mode>): Likewise.
11246         (neon_vqshlu_n<mode>): Likewise.
11247         (neon_vshll_n<mode>): Likewise.
11248         (neon_vsra_n<mode>): Likewise.
11249         (neon_vsri_n<mode>): Likewise.
11250         (neon_vsli_n<mode>): Likewise.
11251         (neon_vtbl1v8qi): Likewise.
11252         (neon_vtbl2v8qi): Likewise.
11253         (neon_vtbl3v8qi): Likewise.
11254         (neon_vtbl4v8qi): Likewise.
11255         (neon_vtbl1v16qi): Likewise.
11256         (neon_vtbl2v16qi): Likewise.
11257         (neon_vcombinev16qi): Likewise.
11258         (neon_vtbx1v8qi): Likewise.
11259         (neon_vtbx2v8qi): Likewise.
11260         (neon_vtbx3v8qi): Likewise.
11261         (neon_vtbx4v8qi): Likewise.
11262         (*neon_vtrn<mode>_insn): Likewise.
11263         (*neon_vzip<mode>_insn): Likewise.
11264         (*neon_vuzp<mode>_insn): Likewise.
11265         (neon_vld1<mode>): Likewise.
11266         (neon_vld1_lane<mode>): Likewise.
11267         (neon_vld1_lane<mode>): Likewise.
11268         (neon_vld1_dup<mode>): Likewise.
11269         (neon_vld1_dup<mode>): Likewise.
11270         (neon_vld1_dupv2di): Likewise.
11271         (neon_vst1<mode>): Likewise.
11272         (neon_vst1_lane<mode>): Likewise.
11273         (neon_vst1_lane<mode>): Likewise.
11274         (neon_vld2<mode>): Likewise.
11275         (neon_vld2<mode>): Likewise.
11276         (neon_vld2_lane<mode>): Likewise.
11277         (neon_vld2_lane<mode>): Likewise.
11278         (neon_vld2_dup<mode>): Likewise.
11279         (neon_vst2<mode>): Likewise.
11280         (neon_vst2<mode>): Likewise.
11281         (neon_vst2_lane<mode>): Likewise.
11282         (neon_vst2_lane<mode>): Likewise.
11283         (neon_vld3<mode>): Likewise.
11284         (neon_vld3qa<mode>): Likewise.
11285         (neon_vld3qb<mode>): Likewise.
11286         (neon_vld3_lane<mode>): Likewise.
11287         (neon_vld3_lane<mode>): Likewise.
11288         (neon_vld3_dup<mode>): Likewise.
11289         (neon_vst3<mode>): Likewise.
11290         (neon_vst3qa<mode>): Likewise.
11291         (neon_vst3qb<mode>): Likewise.
11292         (neon_vst3_lane<mode>): Likewise.
11293         (neon_vst3_lane<mode>): Likewise.
11294         (neon_vld4<mode>): Likewise.
11295         (neon_vld4qa<mode>): Likewise.
11296         (neon_vld4qb<mode>): Likewise.
11297         (neon_vld4_lane<mode>): Likewise.
11298         (neon_vld4_lane<mode>): Likewise.
11299         (neon_vld4_dup<mode>): Likewise.
11300         (neon_vst4<mode>): Likewise.
11301         (neon_vst4qa<mode>): Likewise.
11302         (neon_vst4qb<mode>): Likewise.
11303         (neon_vst4_lane<mode>): Likewise.
11304         (neon_vst4_lane<mode>): Likewise.
11305         (neon_vec_unpack<US>_lo_<mode>): Likewise.
11306         (neon_vec_unpack<US>_hi_<mode>): Likewise.
11307         (neon_vec_<US>mult_lo_<mode>): Likewise.
11308         (neon_vec_<US>mult_hi_<mode>): Likewise.
11309         (neon_vec_<US>shiftl_<mode>): Likewise.
11310         (neon_unpack<US>_<mode>): Likewise.
11311         (neon_vec_<US>mult_<mode>): Likewise.
11312         (vec_pack_trunc_<mode>): Likewise.
11313         (neon_vec_pack_trunc_<mode>): Likewise.
11314         (neon_vabd<mode>_2): Likewise.
11315         (neon_vabd<mode>_3): Likewise.
11317 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
11319         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
11320         (load_pair): Update type attribute.
11321         (store_pair): Update type attribute.
11322         * config/aarch64/iterators.md (q): New.
11324 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
11326         * config/arm/types.md: Add new types for Neon insns.
11328 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11329             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11330             Sergey Lega  <sergey.s.lega@intel.com>
11331             Anna Tikhonova  <anna.tikhonova@intel.com>
11332             Ilya Tocar  <ilya.tocar@intel.com>
11333             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11334             Ilya Verbin  <ilya.verbin@intel.com>
11335             Kirill Yukhin  <kirill.yukhin@intel.com>
11336             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11338         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
11339         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
11340         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
11341         (rcp14<mode>): New.
11342         (srcp14<mode>): Ditto.
11343         (rsqrt14<mode>): Ditto.
11344         (rsqrt14<mode>): Ditto.
11345         (avx512f_vmscalef<mode>): Ditto.
11346         (avx512f_scalef<mode>): Ditto.
11347         (avx512f_getexp<mode>): Ditto.
11348         (avx512f_sgetexp<mode>): Ditto.
11349         (avx512f_fixupimm<mode>): Ditto.
11350         (avx512f_sfixupimm<mode>): Ditto.
11351         (avx512f_rndscale<mode>): Ditto.
11352         (*avx512er_exp2<mode>): Ditto.
11353         (*avx512er_rcp28<mode>): Ditto.
11354         (avx512er_rsqrt28<mode>): Ditto.
11355         (avx512f_getmant<mode>): Ditto.
11356         (avx512f_getmant<mode>): Ditto.
11357         (avx512f_rndscale<mode>): Fix formatting.
11359 2013-10-15  Martin Jambor  <mjambor@suse.cz>
11361         * ipa-utils.h (ipa_edge_within_scc): Declare.
11362         * ipa-cp.c (edge_within_scc): Moved...
11363         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
11365 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11366             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11367             Sergey Lega  <sergey.s.lega@intel.com>
11368             Anna Tikhonova  <anna.tikhonova@intel.com>
11369             Ilya Tocar  <ilya.tocar@intel.com>
11370             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11371             Ilya Verbin  <ilya.verbin@intel.com>
11372             Kirill Yukhin  <kirill.yukhin@intel.com>
11373             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11375         * config/i386/predicates.md (const_8_to_15_operand): New.
11376         (const_16_to_31_operand): Ditto.
11377         * config/i386/sse.md (V8FI): New.
11378         (V16FI): Ditto.
11379         (reduc_splus_v8df): Ditto.
11380         (reduc_splus_v16sf): Ditto.
11381         (avx512f_vextract<shuffletype>32x4_1): Ditto.
11382         (vec_extract_hi_<mode>): Ditto.
11383         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11384         (vec_set_lo_<mode>): Ditto.
11385         (vec_set_hi_<mode>): Ditto.
11386         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11387         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11388         (avx512f_pshufd_1): Ditto.
11389         (avx512f_broadcast<mode>): Ditto.
11390         (avx512f_broadcast<mode>): Ditto.
11391         (define_split): Split vec_extract_lo into move.
11392         (ssequartermode): Ditto.
11393         (ssedoublemode): Extened with wider modes.
11394         (vec_extract_lo_<mode>): Ditto.
11396 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11397             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11398             Sergey Lega  <sergey.s.lega@intel.com>
11399             Anna Tikhonova  <anna.tikhonova@intel.com>
11400             Ilya Tocar  <ilya.tocar@intel.com>
11401             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11402             Ilya Verbin  <ilya.verbin@intel.com>
11403             Kirill Yukhin  <kirill.yukhin@intel.com>
11404             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11406         * config/i386/predicates.md (register_or_constm1_operand): New.
11407         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11408         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11409         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11410         UNSPEC_SCATTER_PREFETCH
11411         (VI48_512): New.
11412         (avx512f_ucmp<mode>3): Ditto.
11413         (avx512f_vternlog<mode>): Ditto.
11414         (avx512f_align<mode>): Ditto.
11415         (<shift_insn><mode>3): Ditto.
11416         (avx512f_<rotate>v<mode>): Ditto.
11417         (avx512f_<rotate><mode>): Ditto.
11418         (avx512f_eq<mode>3): Ditto.
11419         (avx512f_eq<mode>3_1): Ditto.
11420         (avx512f_gt<mode>3): Ditto.
11421         (avx512f_testm<mode>3): Ditto.
11422         (avx512f_testnm<mode>3): Ditto.
11423         (avx512pf_gatherpf<mode>): Ditto.
11424         (*avx512pf_gatherpf<mode>_mask): Ditto.
11425         (*avx512pf_gatherpf<mode>): Ditto.
11426         (avx512pf_scatterpf<mode>): Ditto.
11427         (*avx512pf_scatterpf<mode>_mask): Ditto.
11428         (*avx512pf_scatterpf<mode>): Ditto.
11429         (avx512f_vec_dup_gpr<mode>): Ditto.
11430         (clz<mode>2): Ditto.
11431         (conflict<mode>): Ditto.
11432         (REDUC_SMINMAX_MODE): Extened with wider modes.
11433         (reduc_<code>_<mode>): Ditto.
11434         (vlshr<mode>3): Ditto.
11435         (vashl<mode>3): Ditto.
11437 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11438             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11439             Sergey Lega  <sergey.s.lega@intel.com>
11440             Anna Tikhonova  <anna.tikhonova@intel.com>
11441             Ilya Tocar  <ilya.tocar@intel.com>
11442             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11443             Ilya Verbin  <ilya.verbin@intel.com>
11444             Kirill Yukhin  <kirill.yukhin@intel.com>
11445             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11447         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11448         UNSPEC_SCATTER.
11449         (VI48F_512): New.
11450         (avx512fmaskmode): Ditto.
11451         (bcstscalarsuff): Ditto.
11452         (avx512f_blendm<mode>): Ditto.
11453         (cmp_imm_predicate): Ditto.
11454         (avx512f_cmp<mode>3): Ditto.
11455         (avx512f_vec_dup<mode>): Ditto.
11456         (avx512f_vec_dup_mem<mode>): Ditto.
11457         (avx512f_vpermi2var<mode>3): Ditto.
11458         (avx512f_vpermt2var<mode>3): Ditto.
11459         (vec_init<mode>): Ditto.
11460         (avx512f_gathersi<mode>): Ditto.
11461         (*avx512f_gathersi<mode>): Ditto.
11462         (*avx512f_gathersi<mode>_2): Ditto.
11463         (avx512f_gatherdi<mode>): Ditto.
11464         (*avx512f_gatherdi<mode>): Ditto.
11465         (*avx512f_gatherdi<mode>_2): Ditto.
11466         (avx512f_scattersi<mode>): Ditto.
11467         (*avx512f_scattersi<mode>): Ditto.
11468         (avx512f_scatterdi<mode>): Ditto.
11469         (*avx512f_scatterdi<mode>): Ditto.
11470         (sseintprefix): Extened with wider modes.
11471         (VEC_GATHER_IDXSI): Ditto.
11472         (VEC_GATHER_IDXDI): Ditto.
11473         (VEC_GATHER_SRCDI): Ditto.
11475 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11476             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11478         * config/arm/t-aprofile: New file.
11479         * config.gcc: Handle --with-multilib-list option.
11481 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
11483         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11484         the input for r2.
11486 2013-10-15  Richard Biener  <rguenther@suse.de>
11488         * tree-loop-distribution.c (build_empty_rdg): Inline into
11489         single user.
11490         (rdg_flag_vertex): Inline into single user.
11491         (rdg_flag_vertex_and_dependent): Likewise.
11492         (build_rdg_partition_for_vertex): Remove processed bitmap.
11493         (rdg_build_partitions): Simplify.
11495 2013-10-15  Richard Biener  <rguenther@suse.de>
11497         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11498         Restructure forwarding through conversions and copies to
11499         avoid performing copy-propagation the wrong way.  Adjust
11500         recursion invocations.
11501         (forward_propagate_addr_expr): Add argument stating if we
11502         are recursing from a single-use.
11503         (ssa_forward_propagate_and_combine): Adjust.
11505 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
11507         * dumpfile.h (gcc::dump_manager): New class, to hold state
11508         relating to dumpfile management.
11509         (get_dump_file_name): Remove in favor of method of dump_manager.
11510         (dump_initialized_p): Likewise.
11511         (dump_start): Likewise.
11512         (dump_finish): Likewise.
11513         (dump_switch_p): Likewise.
11514         (dump_register): Likewise.
11515         (get_dump_file_info): Likewise.
11516         * context.c (gcc::context::context): Construct the dump_manager
11517         instance.
11518         * context.h (gcc::context::get_dumps): New.
11519         (gcc::context::m_dumps): New.
11520         * coverage.c (coverage_init): Port to dump_manager API.
11521         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11522         (extra_dump_files_in_use): Likewise.
11523         (extra_dump_files_alloced): Likewise.
11524         (gcc::dump_manager::dump_manager): New.
11525         (dump_register): Convert to...
11526         (gcc::dump_manager::dump_register): ...method, replacing
11527         function-static next_dump with m_next_dump field.
11528         (get_dump_file_info): Convert to...
11529         (gcc::dump_manager::get_dump_file_info): ...method.
11530         (get_dump_file_name): Convert to...
11531         (gcc::dump_manager::get_dump_file_name): ...method.
11532         (dump_start): Convert to...
11533         (gcc::dump_manager::dump_start): ...method.
11534         (dump_finish): Convert to...
11535         (gcc::dump_manager::dump_finish): ...method.
11536         (dump_begin): Replace body with...
11537         (gcc::dump_manager::dump_begin): ...new method.
11538         (dump_phase_enabled_p): Convert to...
11539         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11540         (dump_phase_enabled_p): Convert to...
11541         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11542         (dump_initialized_p):  Convert to...
11543         (gcc::dump_manager::dump_initialized_p): ...method.
11544         (dump_flag_name): Replace body with...
11545         (gcc::dump_manager::dump_flag_name): ...new method.
11546         (dump_enable_all): Convert to...
11547         (gcc::dump_manager::dump_enable_all): ...new method.
11548         (opt_info_enable_passes): Convert to...
11549         (gcc::dump_manager::opt_info_enable_passes): ...new method.
11550         (dump_switch_p_1): Convert to...
11551         (gcc::dump_manager::dump_switch_p_1): ...new method.
11552         (dump_switch_p):  Convert to...
11553         (gcc::dump_manager::dump_switch_p): ...new method.
11554         (opt_info_switch_p): Port to dump_manager API.
11555         (enable_rtl_dump_file): Likewise.
11556         * opts-global.c (handle_common_deferred_options): Port to new
11557         dump_manager API.
11558         * passes.c (pass_manager::finish_optimization_passes): Likewise.
11559         (pass_manager::register_one_dump_file): Likewise.
11560         (pass_manager::register_pass): Likewise.
11561         (pass_init_dump_file): Likewise.
11562         (pass_fini_dump_file): Likewise.
11563         * statistics.c (statistics_early_init): Likewise.
11565 2013-10-14  Richard Biener  <rguenther@suse.de>
11567         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11568         iterative_hash_canonical_type, gimple_canonical_type_hash,
11569         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11570         gimple_register_canonical_type, print_gimple_types_stats,
11571         free_gimple_type_tables): Move to lto/lto.c
11572         (gt-gimple.h): Do not include.
11573         * gimple.h (gimple_register_canonical_type,
11574         print_gimple_types_stats, free_gimple_type_tables): Remove.
11575         * Makefile.in (GTFILES): Remove gimple.c.
11577 2013-10-14  Travis Snoozy  <quandary@remstate.com>
11579         PR target/58716
11580         * config/msp430/msp430.c (msp430_option_override): Correct thinko
11581         scanning for msp430x targets.
11583 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
11585         PR bootstrap/58509
11586         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11587         (registers_ok_for_ldd_peep): Move around.
11588         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11589         * config/sparc/sparc.md (widening peepholes): Use it.
11591 2013-10-14  Richard Biener  <rguenther@suse.de>
11593         PR middle-end/58712
11594         PR middle-end/55358
11595         * gimple.c (iterative_hash_canonical_type): Make sure to
11596         record the hash into the correct hashtable slot.
11598 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
11600         PR rtl-optimization/58662
11601         * combine.c (try_combine): Take into account death nodes on I2 when
11602         splitting a PARALLEL of two independent SETs.  Fix dump message.
11604 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
11606         PR target/51244
11607         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11608         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11609         extra_objs.
11610         * config/sh/t-sh (sh_treg_combine.o): New entry.
11611         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11612         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11613         (register_sh_passes): New function.  Register sh_treg_combine pass.
11614         (sh_option_override): Invoke it.
11615         (sh_canonicalize_comparison): Handle op0_preserve_value.
11616         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11617         opportunities.  Canonicalize branch condition.
11618         (nott): Allow only if pseudos can be created for non-SH2A.
11620 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
11622         PR target/58690
11623         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11624         (ix86_expand_movmem): Replace copy_addr_to_reg with
11625         ix86_copy_addr_to_reg.
11626         (ix86_expand_setmem): Likewise.
11628 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
11630         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11631         provided by ix86_fp_compare_mode instead of CCFPUmode.
11633 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
11635         * config/aarch64/arm_neon.h
11636         (vtbx<1,3>_<psu>8): Fix register constriants.
11638 2013-10-11  Jeff Law  <law@redhat.com>
11640         PR tree-optimization/58640
11641         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11642         threading paths that cross over two loop entry points.
11644 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11646         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11647         handle vector float as well.
11648         (*vsx_le_perm_load_v4si): Likewise.
11649         (*vsx_le_perm_store_v2di): Likewise.
11650         (*vsx_le_perm_store_v4si): Likewise.
11652 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11654         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11655         directly to circumvent subtract from splat{31} workaround.
11656         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11657         prototype.
11658         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11659         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11660         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11661         (altivec_vperm_<mode>): Convert to define_insn_and_split to
11662         separate big and little endian logic.
11663         (*altivec_vperm_<mode>_internal): New define_insn.
11664         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11665         separate big and little endian logic.
11666         (*altivec_vperm_<mode>_uns_internal): New define_insn.
11667         (vec_permv16qi): Add little endian logic.
11669 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
11671         * doc/extend.texi (returns_nonnull): Remove arguments.
11673 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11674             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11675             Sergey Lega  <sergey.s.lega@intel.com>
11676             Anna Tikhonova  <anna.tikhonova@intel.com>
11677             Ilya Tocar  <ilya.tocar@intel.com>
11678             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11679             Ilya Verbin  <ilya.verbin@intel.com>
11680             Kirill Yukhin  <kirill.yukhin@intel.com>
11681             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11683         * config/i386/sse.md (VI48F_256_512): New.
11684         (avx2_permvar<mode>): Change to ...
11685         (<avx2_avx512f>_permvar<mode>): This.
11687 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11688             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11689             Sergey Lega  <sergey.s.lega@intel.com>
11690             Anna Tikhonova  <anna.tikhonova@intel.com>
11691             Ilya Tocar  <ilya.tocar@intel.com>
11692             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11693             Ilya Verbin  <ilya.verbin@intel.com>
11694             Kirill Yukhin  <kirill.yukhin@intel.com>
11695             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11697         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11698         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11699         * config/i386/sse.md (VI4_AVX): New.
11700         (sf2simodelower): Ditto.
11701         (sse2_cvtps2dq): Change to ...
11702         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11704 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11705             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11706             Sergey Lega  <sergey.s.lega@intel.com>
11707             Anna Tikhonova  <anna.tikhonova@intel.com>
11708             Ilya Tocar  <ilya.tocar@intel.com>
11709             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11710             Ilya Verbin  <ilya.verbin@intel.com>
11711             Kirill Yukhin  <kirill.yukhin@intel.com>
11712             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11714         * config/i386/sse.md (V_512): New.
11715         (VI_512): Ditto.
11716         (vcond<V_512:mode><VF_512:mode>): Ditto.
11717         (vcond<V_512:mode><VI_512:mode>): Ditto.
11718         (vcondu<V_512:mode><VI_512:mode>): Ditto.
11720 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11721             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11722             Sergey Lega  <sergey.s.lega@intel.com>
11723             Anna Tikhonova  <anna.tikhonova@intel.com>
11724             Ilya Tocar  <ilya.tocar@intel.com>
11725             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11726             Ilya Verbin  <ilya.verbin@intel.com>
11727             Kirill Yukhin  <kirill.yukhin@intel.com>
11728             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11730         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11731         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11732         (FMAMODE): Ditto.
11733         (fma<mode>4): Removed condition.
11734         (fms<mode>4): Ditto.
11735         (fnma<mode>4): Ditto.
11736         (fnms<mode>4): Ditto.
11737         (fma4i_fmadd_<mode>): Ditto.
11738         (*fma_fmadd_<mode>): Ditto.
11739         (*fma_fmsub_<mode>): Ditto.
11740         (*fma_fnmadd_<mode>): Ditto.
11741         (*fma_fnmsub_<mode>): Ditto.
11742         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11743         (*fma_fmaddsub_<mode>): Ditto.
11744         (*fma_fmsubadd_<mode>): Ditto.
11745         (*fmai_fmadd_<mode>): Ditto.
11746         (*fmai_fmsub_<mode>): Ditto.
11747         (*fmai_fnmadd_<mode>): Ditto.
11748         (*fmai_fnmsub_<mode>): Ditto.
11750 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11751             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11752             Sergey Lega  <sergey.s.lega@intel.com>
11753             Anna Tikhonova  <anna.tikhonova@intel.com>
11754             Ilya Tocar  <ilya.tocar@intel.com>
11755             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11756             Ilya Verbin  <ilya.verbin@intel.com>
11757             Kirill Yukhin  <kirill.yukhin@intel.com>
11758             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11760         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11761         (VI124_256): Changed to ...
11762         (VI124_256_48_512): This.
11763         (ssepackmode): Extended with wider modes.
11764         (<code><mode>3): Changed iterator.
11765         (*avx2_<code><mode>3): Ditto.
11766         (vec_pack_trunc_<mode>): Ditto.
11768 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11769             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11770             Sergey Lega  <sergey.s.lega@intel.com>
11771             Anna Tikhonova  <anna.tikhonova@intel.com>
11772             Ilya Tocar  <ilya.tocar@intel.com>
11773             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11774             Ilya Verbin  <ilya.verbin@intel.com>
11775             Kirill Yukhin  <kirill.yukhin@intel.com>
11776             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11778         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11779         (VI8F_256_512): Ditto.
11780         (abs<mode>2): Changed iterator.
11781         (avx2_perm<mode>): Changed to ...
11782         (<avx2_avx512f>_perm<mode>): This.
11783         (avx2_perm<mode>_1): Changed to ...
11784         (<avx2_avx512f>_perm<mode>_1): This.
11786 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11787             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11788             Sergey Lega  <sergey.s.lega@intel.com>
11789             Anna Tikhonova  <anna.tikhonova@intel.com>
11790             Ilya Tocar  <ilya.tocar@intel.com>
11791             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11792             Ilya Verbin  <ilya.verbin@intel.com>
11793             Kirill Yukhin  <kirill.yukhin@intel.com>
11794             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11796         * config/i386/sse.md (VI48_AVX512F): New.
11797         (VI48_AVX2): Changed to ...
11798         (VI48_AVX2_48_AVX512F): This.
11799         (avx2_ashrv<mode>): Changed to ...
11800         (<avx2_avx512f>_ashrv<mode>): This.
11801         (avx2_<shift_insn>v<mode>): Changed to ...
11802         (<avx2_avx512f>_<shift_insn>v<mode>): This.
11804 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11805             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11806             Sergey Lega  <sergey.s.lega@intel.com>
11807             Anna Tikhonova  <anna.tikhonova@intel.com>
11808             Ilya Tocar  <ilya.tocar@intel.com>
11809             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11810             Ilya Verbin  <ilya.verbin@intel.com>
11811             Kirill Yukhin  <kirill.yukhin@intel.com>
11812             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11814         * config/i386/sse.md (VI4_AVX512F): New.
11815         (VI8_AVX2_AVX512F): Ditto.
11816         (mul<mode>3): Extended with wider modes.
11817         (*<sse4_1_avx2>_mul<mode>3): Ditto.
11818         (mul<mode>3): Ditto.
11819         (vec_widen_<s>mult_odd_<mode>): Ditto.
11821 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11822             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11823             Sergey Lega  <sergey.s.lega@intel.com>
11824             Anna Tikhonova  <anna.tikhonova@intel.com>
11825             Ilya Tocar  <ilya.tocar@intel.com>
11826             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11827             Ilya Verbin  <ilya.verbin@intel.com>
11828             Kirill Yukhin  <kirill.yukhin@intel.com>
11829             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11831         * config/i386/sse.md (VI2_AVX512F): New.
11832         (VI124_AVX512F): Ditto.
11833         (sseunpackmode): Extended with wider modes.
11834         (sseunpackfltmode): Ditto.
11835         (vec_unpacks_float_hi_<mode>): Ditto.
11836         (vec_unpacks_float_lo_<mode>): Ditto.
11837         (vec_unpacku_float_hi_<mode>): Ditto.
11838         (vec_unpacku_float_lo_<mode>): Ditto.
11839         (vec_unpacks_lo_<mode>): Ditto.
11840         (vec_unpacks_hi_<mode>): Ditto.
11841         (vec_unpacku_lo_<mode>): Ditto.
11842         (vec_unpacku_hi_<mode>): Ditto.
11844 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11845             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11846             Sergey Lega  <sergey.s.lega@intel.com>
11847             Anna Tikhonova  <anna.tikhonova@intel.com>
11848             Ilya Tocar  <ilya.tocar@intel.com>
11849             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11850             Ilya Verbin  <ilya.verbin@intel.com>
11851             Kirill Yukhin  <kirill.yukhin@intel.com>
11852             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11854         * config/i386/i386.md (multdiv): New.
11855         (multdiv_mnemonic): Ditto.
11856         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11857         (<sse>_vm<multdiv_mnemonic><mode>3): This.
11858         (<sse>_vmdiv<mode>3): Removed.
11860 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11861             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11862             Sergey Lega  <sergey.s.lega@intel.com>
11863             Anna Tikhonova  <anna.tikhonova@intel.com>
11864             Ilya Tocar  <ilya.tocar@intel.com>
11865             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11866             Ilya Verbin  <ilya.verbin@intel.com>
11867             Kirill Yukhin  <kirill.yukhin@intel.com>
11868             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11870         * config/i386/sse.md (V): Extended with wider modes.
11871         (VF2): Ditto.
11872         (ssehalfvecmode): Ditto.
11873         (i128): Ditto.
11874         (ssepackfltmode): Ditto.
11875         (avx_vec_concat<mode>): Ditto.
11876         (V_256_512): New iterator.
11877         (VF2_512_256): Ditto.
11878         (si2dfmode): New attribute.
11879         (si2dfmodelower): Ditto.
11880         (sf2dfmode): Ditto.
11881         (concat_tg_mode): Ditto.
11882         (floatv4siv4df2): Changed to ...
11883         (float<si2dfmodelower><mode>2): This.
11884         (avx_cvtps2pd256): Changed to ...
11885         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11886         (vec_pack_trunc_v4df): Changed to ...
11887         (vec_pack_trunc_<mode>): This.
11888         (avx_vpermil<mode>): Changed to ...
11889         (<sse2_avx_avx512f>_vpermil<mode>): This.
11890         (<fixsuffix>fix_truncv8dfv8si2): New.
11891         (vec_pack_sfix_trunc_v8df): Ditto.
11892         (avx512f_rndscale<mode>): Ditto.
11893         (avx512f_roundpd512): Ditto.
11894         (vec_pack_ufix_trunc_<mode>): Updated iterator.
11896 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11897             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11898             Sergey Lega  <sergey.s.lega@intel.com>
11899             Anna Tikhonova  <anna.tikhonova@intel.com>
11900             Ilya Tocar  <ilya.tocar@intel.com>
11901             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11902             Ilya Verbin  <ilya.verbin@intel.com>
11903             Kirill Yukhin  <kirill.yukhin@intel.com>
11904             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11906         * config/i386/i386.md (any_fix): New iterator.
11907         (fixsuffix): New attribute.
11908         * config/i386/sse.md (VF1): Extened with wider modes.
11909         (VI): Ditto.
11910         (VI_AVX2): Ditto.
11911         (VI8): Ditto.
11912         (sseintvecmodelower): Ditto.
11913         (ssescalarmode): Ditto.
11914         (ssescalarnum): Ditto.
11915         (VF1_128_256): New.
11916         (ssexmmmode): Ditto.
11917         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11918         (<sse>_rcp<mode>2): Change iterator.
11919         (rsqrt<mode>2): Ditto.
11920         (<sse>_rsqrt<mode>2): Ditto.
11921         (avx2_vec_dup<mode>): Ditto.
11922         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11923         (round<mode>2_sfix): Ditto.
11924         (avx2_pbroadcast<mode>): Ditto.
11925         (*andnot<mode>3): Handle XI mode.
11926         (*<code><mode>3): Ditto.
11927         (AVXTOSSEMODE): Removed.
11928         (avx_vpermil<mode>): Changed to ...
11929         (<sse2_avx_avx512f>_vpermil<mode>): This.
11931 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11932             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11933             Sergey Lega  <sergey.s.lega@intel.com>
11934             Anna Tikhonova  <anna.tikhonova@intel.com>
11935             Ilya Tocar  <ilya.tocar@intel.com>
11936             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11937             Ilya Verbin  <ilya.verbin@intel.com>
11938             Kirill Yukhin  <kirill.yukhin@intel.com>
11939             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11941         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11942         (<sse>_comi): Ditto.
11943         (<sse>_ucomi): Ditto.
11944         (sse_cvtss2siq_2): Ditto.
11945         (sse2_cvtsd2si): Ditto.
11946         (sse2_cvtsd2siq): Ditto.
11947         (sse2_cvttsd2si): Ditto.
11948         (sse2_cvttsd2siq): Ditto.
11949         (<shift_insn><mode>3): Ditto.
11950         (sse2_cvtsi2sdq): Update constraint and prefix.
11951         (sse_cvtsi2ss): Update prefix.
11952         (sse_cvtsi2ssq): Ditto.
11954 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11956         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11957         ignore internal calls.
11959 2013-10-11  Richard Biener  <rguenther@suse.de>
11961         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11962         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
11963         TREE_OVERFLOW is set.
11965 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
11967         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11969         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11970         * gimple.h: Likewise.
11972         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11974         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11975         macros.
11977         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11979         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11980         * configure: Regenerate.
11982 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11984         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11985         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11986         formatting fixes, use pp_colon instead of pp_character (..., ':'),
11987         similarly pp_right_paren.
11988         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11989         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11990         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11991         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11992         clauses.
11993         (omp_declare_simd_clauses_equal,
11994         omp_remove_redundant_declare_simd_attrs): New functions.
11995         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11996         (walk_tree_1): Handle new OpenMP 4.0 clauses.
11997         * tree.h (OMP_LOOP_CHECK): Define.
11998         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11999         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
12000         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
12001         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
12002         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
12003         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
12004         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
12005         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
12006         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
12007         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
12008         OMP_CLAUSE_SIMDLEN_EXPR): Define.
12009         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
12010         (omp_remove_redundant_declare_simd_attrs): New prototype.
12011         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
12012         GIMPLE_OMP_TEAMS): New codes.
12013         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
12014         * omp-low.c (struct omp_context): Add cancel_label and cancellable
12015         fields.
12016         (target_nesting_level): New variable.
12017         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
12018         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
12019         for collapse > 1 static schedule unless ordered.
12020         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
12021         (determine_parallel_type): Adjust get_ws_args_for caller.
12022         (install_var_field): Handle mask & 4 for double indirection.
12023         (scan_sharing_clauses): Ignore shared clause on teams construct.
12024         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
12025         (create_omp_child_function): If inside target or declare target
12026         constructs, set "omp declare target" attribute on the child function.
12027         (find_combined_for): New function.
12028         (scan_omp_parallel): Handle combined loops.
12029         (scan_omp_target, scan_omp_teams): New functions.
12030         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
12031         restrictions and set ctx->cancellable for cancellable constructs.
12032         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
12033         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
12034         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
12035         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
12036         (omp_clause_aligned_alignment): New function.
12037         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
12038         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
12039         on teams constructs.  Handle user defined reductions and new
12040         OpenMP 4.0 clauses.
12041         (lower_reduction_clauses): Don't set placeholder to address of ref
12042         if it has already the right type.
12043         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
12044         (expand_parallel_call): Use the new non-_start suffixed builtins,
12045         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
12046         and GOMP_parallel_end after the call.
12047         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
12048         (expand_omp_for_init_counts): Handle combined loops.
12049         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
12050         loops.
12051         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
12052         end of cancellable loops.
12053         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
12054         Likewise.  Handle collapse > 1 loops.
12055         (expand_omp_simd): Handle combined loops.
12056         (expand_omp_for): Add inner_stmt argument, adjust callers of
12057         expand_omp_for* functions, use expand_omp_for_static*chunk even
12058         for collapse > 1 unless ordered.
12059         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
12060         of cancellable sections.
12061         (expand_omp_single): Remove need_barrier variable, just rely on
12062         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
12063         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
12064         (expand_omp_atomic_load, expand_omp_atomic_store,
12065         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
12066         (expand_omp_target): New function.
12067         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
12068         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
12069         (build_omp_regions_1): Immediately close region for
12070         GF_OMP_TARGET_KIND_UPDATE.
12071         (maybe_add_implicit_barrier_cancel): New function.
12072         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
12073         cancellation.
12074         (lower_omp_single): Likewise.  Add clobber after the barrier.
12075         (lower_omp_taskgroup): New function.
12076         (lower_omp_for): Handle combined loops.  Adjust
12077         lower_rec_input_clauses caller.  Handle cancellation.
12078         (lower_depend_clauses): New function.
12079         (lower_omp_taskreg): Lower depend clauses.  Adjust
12080         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
12081         cancellation.
12082         (lower_omp_target, lower_omp_teams): New functions.
12083         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
12084         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
12085         and GOMP_cancellation_point calls.
12086         (lower_omp): Fold stmts inside of target region.
12087         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
12088         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12089         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
12090         (BT_FN_VOID_OMPFN_PTR_UINT,
12091         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
12092         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
12093         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
12094         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
12095         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
12096         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
12097         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
12098         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
12099         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
12100         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
12101         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12102         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
12103         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
12104         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
12105         BUILT_IN_GOMP_PARALLEL_END.
12106         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
12107         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12108         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
12109         GF_OMP_FOR_KIND_DISTRIBUTE.
12110         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
12111         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
12112         (dump_gimple_omp_return): Print lhs if it has any.
12113         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
12114         gimple_omp_atomic_seq_cst_p.
12115         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
12116         and GIMPLE_OMP_TEAMS.
12117         * langhooks.c (lhd_omp_mappable_type): New function.
12118         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
12119         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
12120         hook.
12121         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
12122         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
12123         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
12124         (struct gimplify_omp_ctx): Add combined_loop field.
12125         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
12126         on stmts inside of target region.
12127         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
12128         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
12129         ORT_TARGET and ORT_TARGET_DATA.
12130         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
12131         Handle GOVD_MAP.
12132         (omp_notice_threadprivate_variable): Complain about threadprivate
12133         variables in target region.
12134         (omp_notice_variable): Complain about vars with non-mappable type
12135         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
12136         (omp_check_private): Ignore ORT_TARGET* regions.
12137         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
12138         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
12139         (find_combined_omp_for): New function.
12140         (gimplify_omp_for): Handle gimplification of combined loops.
12141         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
12142         OMP_TEAMS.
12143         (gimplify_omp_target_update): New function.
12144         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
12145         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
12146         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
12147         (gimplify_body): If fndecl has "omp declare target" attribute, add
12148         implicit ORT_TARGET context around it.
12149         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
12150         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
12151         * tree-nested.c (convert_nonlocal_reference_stmt,
12152         convert_local_reference_stmt, convert_gimple_call): Handle
12153         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12154         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
12155         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
12156         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
12157         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
12158         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
12159         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
12160         BUILT_IN_GOMP_LOOP_END_CANCEL,
12161         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
12162         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
12163         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
12164         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
12165         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
12166         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
12167         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
12168         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
12169         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
12170         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
12171         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
12172         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
12173         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
12174         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
12175         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
12176         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12177         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
12178         gimple_build_omp_teams): New functions.
12179         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
12180         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
12181         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
12182         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12183         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
12184         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
12185         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
12186         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
12187         GF_OMP_ATOMIC_SEQ_CST): New.
12188         (gimple_build_omp_taskgroup, gimple_build_omp_target,
12189         gimple_build_omp_teams): New prototypes.
12190         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
12191         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12192         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
12193         GIMPLE_OMP_SINGLE as end of range.
12194         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
12195         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
12196         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
12197         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
12198         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
12199         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
12200         gimple_omp_target_kind, gimple_omp_target_set_kind,
12201         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
12202         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
12203         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
12204         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
12205         gimple_omp_teams_set_clauses): New inlines.
12206         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
12207         and GIMPLE_OMP_TASKGROUP.
12208         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
12209         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
12210         enum omp_clause_proc_bind_kind): New.
12211         (union omp_clause_subcode): Add depend_kind, map_kind and
12212         proc_bind_kind fields.
12213         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
12214         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12215         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
12216         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
12217         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12219 2013-10-10  Teresa Johnson  <tejohnson@google.com>
12221         * predict.c (tree_estimate_probability): Add new parameter
12222         for estimate_bb_frequencies.
12223         (estimate_bb_frequencies): Add new parameter to force estimation.
12224         (rebuild_frequencies): When max frequency in function is small,
12225         recompute counts from frequencies.
12226         * predict.h (estimate_bb_frequencies): New parameter.
12228 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
12230         * ipa-inline.c (ipa_inline): Fix leak of "order" when
12231         optimizations are disabled.
12233 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
12235         * coverage.c (coverage_finish): Fix leak of da_file_name.
12237 2013-10-10  Jan Hubicka  <jh@suse.cz>
12239         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
12240         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
12241         Bobcat and generic.
12243 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
12245         PR middle-end/58670
12246         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
12247         if any labels are in FALLTHRU_BB, use a special label emitted
12248         immediately after the asm goto insn rather than label_rtx
12249         of the LABEL_DECL.
12250         (expand_asm_stmt): Adjust caller.
12251         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
12252         edge if the last insn in predecessor is a jump with single successor,
12253         but it isn't simplejump_p.
12255 2013-10-10  Richard Biener  <rguenther@suse.de>
12257         PR tree-optimization/58656
12258         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
12260 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
12262         * gimplify.c: Include expr.h and tm_p.h for targets with special
12263         va-arg padding requirements.
12265 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
12267         * tree-flow.h: Move some prototypes to gimple.h.
12268         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
12269         * gimple.h: Relocate some prototypes from tree-flow.h
12270         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
12271         Move to gimplify.c.
12272         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
12273         (build_va_arg_indirect_ref): Relocate and make static.
12274         (std_gimplify_va_arg_expr): Relocate here.
12275         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
12276         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
12278 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12280         * doc/md.texi: Document the mnemonic attribute.
12282 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12284         PR target/57377
12285         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
12286         (set_attr_alternative x ...) when searching for user defined
12287         mnemonic attribute.
12289 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
12291         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
12293 2013-10-09  Easwaran Raman <eraman@google.com>
12295         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
12296         * cfgexpand.c (defer_stack_allocation): ...use here
12297         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
12299 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12301         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
12302         (operand_equal_for_value_replacement): New function, extracted from
12303         value_replacement and enhanced to catch more cases.
12304         (value_replacement): Use operand_equal_for_value_replacement.
12306 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12308         * loop-doloop.c (doloop_modify, doloop_optimize): Use
12309         get_max_loop_iterations.
12311 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12313         * config/arm/aarch-common.c (arm_early_load_addr_dep):
12314         Place comment above function.
12316 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12318         * tree-flow.h: Remove all remaining prototypes, enums and structs that
12319         are not related to tree-cfg.c.
12320         * tree-ssa-address.h: New file.  Relocate prototypes.
12321         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
12322         (addr_for_mem_ref): New.  Combine call to get_address_description and
12323         return addr_for_mem_ref.
12324         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
12325         * tree-ssa-live.h: Adjust prototypes.
12326         * passes.c: Include tree-ssa-live.h.
12327         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
12328         * graphite.c (graphite_transform_loops): Make static.
12329         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12330         make_pass_graphite, pass_data_graphite_transforms,
12331         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
12332         * ipa-pure-const.c (warn_function_noreturn): Make static.
12333         (execute_warn_function_noreturn, gate_warn_function_noreturn,
12334         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12335         Relocate from tree-cfg.c
12336         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
12337         static.
12338         (execute_warn_function_noreturn, gate_warn_function_noreturn,
12339         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12340         Move to ipa-pure-const.c.
12341         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
12342         Relocate from tree-optimize.c.
12343         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
12344         make_pass_fixup_cfg): Move to tree-cfg.c.
12345         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
12346         Relocate some prototypes.
12347         * tree-data-ref.h (tree_check_data_deps) Add prototype.
12348         * tree-dump.c (dump_function_to_file): Remove prototype.
12349         Add tree-flow.h to the include file.
12350         * tree-dump.h: Remove prototype.
12351         * tree-parloops.h: New File.  Add prototypes.
12352         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12353         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
12354         from tree-ssa-loop.c.
12355         * tree-predcom.c (run_tree_predictive_commoning,
12356         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12357         Relocate here from tree-ssa-loop.c.
12358         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12359         ssa_name_values.release ().
12360         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
12361         (ssa_name_values): Relocate from tree-flow.h.
12362         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12363         * tree-ssa-loop.c (run_tree_predictive_commoning,
12364         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12365         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12366         make_pass_graphite, pass_data_graphite_transforms,
12367         make_pass_graphite_transforms, gate_tree_parallelize_loops,
12368         tree_parallelize_loops, pass_data_parallelize_loops,
12369         make_pass_parallelize_loops): Move to other files.
12370         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12371         moved here.
12372         * tree.h: Remove prototypes from tree-address.c.
12374 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12376         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12377         (struct int_tree_map): Move to tree-hasher.h
12378         (SCALE, LABEL, PERCENT): Move to gimple.h
12379         * tree-flow-inline.h: Delete.  Move functions to other files.
12380         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12381         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12382         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12383         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12384         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12385         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12386         * tree-hasher.h: Don't include tree-flow.h.
12387         (struct int_tree_map): Relocate from tree-flow.h.
12388         * tree-sra.c (contains_view_convert_expr_p): Relocate from
12389         tree-flow-inline.h and make static.
12390         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12391         tree-flow-inline.h.
12392         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12393         tree-flow-inline.h and make static.
12394         * tree.h (is_global_var, may_be_aliased): Relocate from
12395         tree-flow-inline.h.
12396         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12397         * value-prof.c: No longer include tree-flow-inline.h.
12398         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12400 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12402         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
12403         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12404         (enum move_pos): Move to tree-ssa-loop-im.h
12405         * cfgloop.h: Move some prototypes.
12406         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12407         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12408         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
12409         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12410         (loop_containing_stmt): Relocate from tree-flow-inline.h.
12411         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12412         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12413         (enum move_pos): Relocate here.
12414         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12415         tree-ssa-loop.c.
12416         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12417         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12418         make_pass_lim): Relocate here from tree-ssa-loop.c.
12419         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12420         tree-ssa-loop.c.
12421         (loop_edge_to_cancel, unloop_loops): Make static.
12422         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12423         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12424         (tree_complete_unroll, gate_tree_complete_unroll,
12425         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12426         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12427         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12428         * tree-ssa-loop-ivopts.c: Remove local prototypes.
12429         (stmt_invariant_in_loop_p): Remove unused function.
12430         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
12431         * tree-ssa-loop-manip.h: New file.  Add prototypes.
12432         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12433         (gcov_type_to_double_int): Move to cfgloop.h.
12434         (double_int_cmp, bound_index,
12435         estimate_numbers_of_iterations_loop): Make static.
12436         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12437         (max_loop_iterations): Factor out get_max_loop_iterations.
12438         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12439         cfgloop.c.
12440         * tree-ssa-loop-niter.h: New file.  Add prototypes.
12441         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12442         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12443         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12444         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12445         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12446         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12447         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12448         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12449         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12450         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12451         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12452         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12453         pass_data_complete_unroll, make_pass_complete_unroll,
12454         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12455         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12456         tree-ssa-loop-ivcanon.c.
12457         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12458         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12459         tree-ssa-loop-prefetch.c.
12460         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12461         tree-ssa-loop-im.c.
12462         (get_lsm_tmp_name): Relocate and add suffix parameter.
12463         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12464         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12465         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12466         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12467         (get_estimated_loop_iterations): Factor out accessor from
12468         estimated_loop_iterations in tree-ssa-loop-niter.c.
12469         (get_max_loop_iterations): Factor out accessor from
12470         _max_loop_iterations in tree-ssa-niter.c.
12471         * loop-unroll.c (decide_unroll_constant_iterations,
12472         decide_unroll_runtime_iterations, decide_peel_simple,
12473         decide_unroll_stupid): Use new get_* accessors.
12475 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
12477         PR tree-optimization/20318
12478         * doc/extend.texi (returns_nonnull): New function attribute.
12479         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12480         attribute.
12481         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12482         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12484 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
12486         PR middle-end/58570
12487         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12488         false if both components are bitfields.
12490 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12492         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12493         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12494         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12495         * config/aarch64/aarch64.h
12496         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12497         * config/aarch64/aarch64-simd-builtins.def
12498         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12500 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12502         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12504 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12506         * config/aarch64/arm_neon.h (vdiv_f64): Added.
12508 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12510         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12511         (vneg_f64): New intrinsic.
12512         (vneg_s8): Asm replaced with C.
12513         (vneg_s16): Likewise.
12514         (vneg_s32): Likewise.
12515         (vneg_s64): New intrinsic.
12516         (vnegq_f32): Asm replaced with C.
12517         (vnegq_f64): Likewise.
12518         (vnegq_s8): Likewise.
12519         (vnegq_s16): Likewise.
12520         (vnegq_s32): Likewise.
12521         (vnegq_s64): Likewise.
12523 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
12525         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12527 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12529         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12530         packed stack special handling.
12531         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12532         back to fixed stack slots for FPRs saved due to stdarg.
12534 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12536         * config/s390/s390.c (s390_frame_info): Restructure function.
12538 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12540         * config/s390/s390.c (struct s390_frame_layout): New field
12541         gpr_save_slots.
12542         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12543         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12544         regs_ever_clobbered to char*.
12545         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12546         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
12547         (s390_register_info): Enable FPR save slots.  Move/Copy some
12548         functionality into ...
12549         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12550         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12551         function.
12552         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
12553         not imply a stack frame.
12554         (s390_init_frame_layout): Remove variable clobbered_regs.
12555         (s390_update_register_info): Remove function.
12556         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12557         cannot be used for register renaming.
12558         (s390_hard_regno_scratch_ok): New function.
12559         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12560         (s390_initial_elimination_offset): Change offset calculation of
12561         the return address pointer.
12562         (save_gprs): Deal with only r6 being saved from the call-saved regs.
12563         (restore_gprs): Set frame related flag.
12564         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12565         (s390_emit_prologue): Call s390_register_info instead of
12566         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
12567         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12568         (s390_optimize_prologue): Call s390_optimize_register_info.
12569         Try to remove also FPR slot save/restore INSNs.  Remove frame
12570         related flags from restore INSNs.
12572 2013-10-08  DJ Delorie  <dj@redhat.com>
12574         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12575         (movhi): Likewise.
12577         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12578         avoid conflict with the MI use of %c.
12579         * config/rl78/rl78-real.md: change %c to %C throughout.
12580         * config/rl78/rl78-virt.md: Likewise.
12582 2013-10-08  Jan Hubicka  <jh@suse.cz>
12584         * config/i386/i386.c (ix86_option_override_internal): Switch
12585         to SSE math for -ffast-math when target ISA supports SSE2.
12587 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
12589         * tree-flow.h: Remove some prototypes.
12590         * tree.h: Remove some protypes, add a couple.
12591         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12592         using_eh_for_cleanups_p): Add interface routines for front ends.
12593         * tree-eh.h: New file.  Add protoptyes.
12594         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12595         (add_stmt_to_eh_lp_fn): Make static.
12596         (lower_try_finally): Use new using_eh_for_cleanups_p.
12597         * emit-rtl.c: Include tree-eh.h.
12598         * gimple.h: Include tree-eh.h.
12600 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
12602         PR tree-optimization/58480
12603         * tree-vrp.c (infer_nonnull_range): New function.
12604         (infer_value_range): Call infer_nonnull_range.
12606 2013-10-08  Dehao Chen  <dehao@google.com>
12608         PR tree-optimization/58619
12609         * tree-inline.c (copy_phis_for_bb): Combine location data
12610         only if non-null.
12612 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12614         PR target/58423
12615         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12616         RTX_FRAME_RELATED_P on INSN.
12618 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12620         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12621         (altivec_expand_vec_perm_const): Call it.
12623 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12625         * config/rs6000/vector.md (mov<mode>): Emit permuted move
12626         sequences for LE VSX loads and stores at expand time.
12627         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12628         prototype.
12629         * config/rs6000/rs6000.c (rs6000_const_vec): New.
12630         (rs6000_gen_le_vsx_permute): New.
12631         (rs6000_gen_le_vsx_load): New.
12632         (rs6000_gen_le_vsx_store): New.
12633         (rs6000_gen_le_vsx_move): New.
12634         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12635         (*vsx_le_perm_load_v4si): New.
12636         (*vsx_le_perm_load_v8hi): New.
12637         (*vsx_le_perm_load_v16qi): New.
12638         (*vsx_le_perm_store_v2di): New.
12639         (*vsx_le_perm_store_v4si): New.
12640         (*vsx_le_perm_store_v8hi): New.
12641         (*vsx_le_perm_store_v16qi): New.
12642         (*vsx_xxpermdi2_le_<mode>): New.
12643         (*vsx_xxpermdi4_le_<mode>): New.
12644         (*vsx_xxpermdi8_le_V8HI): New.
12645         (*vsx_xxpermdi16_le_V16QI): New.
12646         (*vsx_lxvd2x2_le_<mode>): New.
12647         (*vsx_lxvd2x4_le_<mode>): New.
12648         (*vsx_lxvd2x8_le_V8HI): New.
12649         (*vsx_lxvd2x16_le_V16QI): New.
12650         (*vsx_stxvd2x2_le_<mode>): New.
12651         (*vsx_stxvd2x4_le_<mode>): New.
12652         (*vsx_stxvd2x8_le_V8HI): New.
12653         (*vsx_stxvd2x16_le_V16QI): New.
12655 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
12657         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12659 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12661         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12662         loop to work also for 31bit ABI.
12663         Save the stack pointer for frame_size > 0.
12665 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12667         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12668         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12669         constraint letters from expanders.
12670         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12671         retry count to general_operand.
12672         ("tabort"): Give operand 0 a mode.
12673         ("tabort_1"): Add mode and constraint letter for operand 0.
12674         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12676 2013-10-04  Jeff Law  <law@redhat.com>
12678         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12680         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12681         out of ...
12682         (thread_across_edge): Here.  Call it.
12684 2013-10-04  Cary Coutant  <ccoutant@google.com>
12686         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12687         discarding a location list expression (or a piece of one).
12689 2013-10-03  Jan Hubicka  <jh@suse.cz>
12691         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12692         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
12693         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12695 2013-10-03  Jan Hubicka  <jh@suse.cz>
12697         * config/i386/i386.c (ix86_option_override_internal): Do not enable
12698         accumulate-outgoing-args when producing unwind info.
12700 2013-10-03  Wei Mi  <wmi@google.com>
12702         * lra-constraints.c (insert_move_for_subreg): New function
12703         extracted from simplify_operand_subreg.
12704         (simplify_operand_subreg): Add reload for paradoxical subreg.
12706 2013-10-03  Rong Xu  <xur@google.com>
12708         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12709         the candidate of builtin_expect such that we should fix the
12710         size/time estimation.
12711         (estimate_function_body_sizes): Do the acutally size/time fix-up
12712         for builtin_expect.
12714 2013-10-03  Rong Xu  <xur@google.com>
12716         * predict.c (tree_predict_by_opcode): Get the probability
12717         for builtin_expect from param builtin_expect_probability.
12718         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12719         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12720         * doc/invoke.texi: Add documentation for builtin-expect-probability.
12722 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
12724         PR c++/19476
12725         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12726         * calls.c (alloca_call_p): Use get_callee_fndecl.
12727         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12728         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12729         Likewise.
12730         (vrp_visit_stmt): Remove duplicated code.
12732 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12734         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12735         ceildf2, btruncdf2, instead of vsx_* name.
12737         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12738         iterators to only do V2DF and V4SF here.  Move the DF code to
12739         rs6000.md where it is combined with SF mode.  Replace <VSv> with
12740         just 'v' since only vector operations are handled with these insns
12741         after moving the DF support to rs6000.md.
12742         (vsx_sub<mode>3): Likewise.
12743         (vsx_mul<mode>3): Likewise.
12744         (vsx_div<mode>3): Likewise.
12745         (vsx_fre<mode>2): Likewise.
12746         (vsx_neg<mode>2): Likewise.
12747         (vsx_abs<mode>2): Likewise.
12748         (vsx_nabs<mode>2): Likewise.
12749         (vsx_smax<mode>3): Likewise.
12750         (vsx_smin<mode>3): Likewise.
12751         (vsx_sqrt<mode>2): Likewise.
12752         (vsx_rsqrte<mode>2): Likewise.
12753         (vsx_fms<mode>4): Likewise.
12754         (vsx_nfma<mode>4): Likewise.
12755         (vsx_copysign<mode>3): Likewise.
12756         (vsx_btrunc<mode>2): Likewise.
12757         (vsx_floor<mode>2): Likewise.
12758         (vsx_ceil<mode>2): Likewise.
12759         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12760         (vsx_sminsf3): Likewise.
12761         (vsx_fmadf4): Likewise.
12762         (vsx_fmsdf4): Likewise.
12763         (vsx_nfmadf4): Likewise.
12764         (vsx_nfmsdf4): Likewise.
12765         (vsx_cmpdf_internal1): Likewise.
12767         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12768         simpler to select whether a target has SPE or traditional floating
12769         point support in iterators.
12770         (TARGET_DF_SPE): Likewise.
12771         (TARGET_SF_FPR): Likewise.
12772         (TARGET_DF_FPR): Likewise.
12773         (TARGET_SF_INSN): Macros to say whether floating point support
12774         exists for a given operation for expanders.
12775         (TARGET_DF_INSN): Likewise.
12777         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12778         combining of SF/DF mode operations, using both traditional and VSX
12779         registers.
12780         (Fvsx): Likewise.
12781         (Ff): Likewise.
12782         (Fv): Likewise.
12783         (Fs): Likewise.
12784         (Ffre): Likewise.
12785         (FFRE): Likewise.
12786         (abs<mode>2): Combine SF/DF modes using traditional floating point
12787         instructions.  Add support for using the upper DF registers with
12788         VSX support, and SF registers with power8-vector support.  Update
12789         expanders for operations supported by both the SPE and traditional
12790         floating point units.
12791         (abs<mode>2_fpr): Likewise.
12792         (nabs<mode>2): Likewise.
12793         (nabs<mode>2_fpr): Likewise.
12794         (neg<mode>2): Likewise.
12795         (neg<mode>2_fpr): Likewise.
12796         (add<mode>3): Likewise.
12797         (add<mode>3_fpr): Likewise.
12798         (sub<mode>3): Likewise.
12799         (sub<mode>3_fpr): Likewise.
12800         (mul<mode>3): Likewise.
12801         (mul<mode>3_fpr): Likewise.
12802         (div<mode>3): Likewise.
12803         (div<mode>3_fpr): Likewise.
12804         (sqrt<mode>3): Likewise.
12805         (sqrt<mode>3_fpr): Likewise.
12806         (fre<Fs>): Likewise.
12807         (rsqrt<mode>2): Likewise.
12808         (cmp<mode>_fpr): Likewise.
12809         (smax<mode>3): Likewise.
12810         (smin<mode>3): Likewise.
12811         (smax<mode>3_vsx): Likewise.
12812         (smin<mode>3_vsx): Likewise.
12813         (negsf2): Delete SF operations that are merged with DF.
12814         (abssf2): Likewise.
12815         (addsf3): Likewise.
12816         (subsf3): Likewise.
12817         (mulsf3): Likewise.
12818         (divsf3): Likewise.
12819         (fres): Likewise.
12820         (fmasf4_fpr): Likewise.
12821         (fmssf4_fpr): Likewise.
12822         (nfmasf4_fpr): Likewise.
12823         (nfmssf4_fpr): Likewise.
12824         (sqrtsf2): Likewise.
12825         (rsqrtsf_internal1): Likewise.
12826         (smaxsf3): Likewise.
12827         (sminsf3): Likewise.
12828         (cmpsf_internal1): Likewise.
12829         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12830         (negdf2): Delete DF operations that are merged with SF.
12831         (absdf2): Likewise.
12832         (nabsdf2): Likewise.
12833         (adddf3): Likewise.
12834         (subdf3): Likewise.
12835         (muldf3): Likewise.
12836         (divdf3): Likewise.
12837         (fred): Likewise.
12838         (rsqrtdf_internal1): Likewise.
12839         (fmadf4_fpr): Likewise.
12840         (fmsdf4_fpr): Likewise.
12841         (nfmadf4_fpr): Likewise.
12842         (nfmsdf4_fpr): Likewise.
12843         (sqrtdf2): Likewise.
12844         (smaxdf3): Likewise.
12845         (smindf3): Likewise.
12846         (cmpdf_internal1): Likewise.
12847         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12848         (btrunc<mode>2): Delete separate expander, and combine with the
12849         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
12850         (btrunc<mode>2_fpr): Likewise.
12851         (ceil<mode>2): Likewise.
12852         (ceil<mode>2_fpr): Likewise.
12853         (floor<mode>2): Likewise.
12854         (floor<mode>2_fpr): Likewise.
12855         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12856         Add support for using the upper registers with VSX and
12857         power8-vector.  Move insns to be closer to the define_expands. On
12858         VSX systems, prefer the traditional form of FMA over the VSX
12859         version, since the traditional form allows the target not to
12860         overlap with the inputs.
12861         (fms<mode>4_fpr): Likewise.
12862         (nfma<mode>4_fpr): Likewise.
12863         (nfms<mode>4_fpr): Likewise.
12865 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12866             Richard Earnshaw  <richard.earnshaw@arm.com>
12868         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12869         (struct mult_cost_table): Likewise.
12870         (struct mem_cost_table): Likewise.
12871         (struct fp_cost_table): Likewise.
12872         (struct vector_cost_table): Likewise.
12873         (cpu_cost_table): Likewise.
12874         * config/arm/arm.opt (mold-rts-costs): New option.
12875         (mnew-generic-costs): Likewise.
12876         * config/arm/arm.c (generic_extra_costs): New table.
12877         (cortexa15_extra_costs): Likewise.
12878         (arm_slowmul_tune): Use NULL as new costs.
12879         (arm_fastmul_tune): Likewise.
12880         (arm_strongarm_tune): Likewise.
12881         (arm_xscale_tune): Likewise.
12882         (arm_9e_tune): Likewise.
12883         (arm_v6t2_tune): Likewise.
12884         (arm_cortex_a5_tune): Likewise.
12885         (arm_cortex_a9_tune): Likewise.
12886         (arm_v6m_tune): Likewise.
12887         (arm_fa726te_tune): Likewise.
12888         (arm_cortex_a15_tune): Use cortex15_extra_costs.
12889         (arm_cortex_tune): Use generict_extra_costs.
12890         (shifter_op_p): New function.
12891         (arm_unspec_cost): Likewise.
12892         (LIBCALL_COST): Define.
12893         (arm_new_rtx_costs): New function.
12894         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12895         table is available. Use old costs otherwise unless mnew-generic-costs
12896         is specified.
12897         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12898         (cpu_cost_table): Declare.
12900 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12902         PR target/58460
12903         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12904         (*subs_mul_imm_<mode>)
12905         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12906         (*sub_<shift>_<mode>)
12907         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12908         Remove k constraint.
12910 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
12912         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12913         code.
12914         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12916 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12918         * predict.c (probably_never_executed): New function.
12919         (probably_never_executed_bb_p): Invoke probably_never_executed.
12920         (probably_never_executed_edge_p): Ditto.
12921         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12922         Treat profile insanities conservatively.
12924 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
12926         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12928 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
12930         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12931         use it.  Use smaller increase for scratch.  Don't increase reject
12932         for early clobber scratch.
12933         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12934         setting eliminated regs except setting fp from hfp.
12935         (lra_eliminate): Check lra_insn_recog_data on NULL.
12937 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12939         PR target/58587
12940         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12941         setting -mvsx-timode by default until the underlying problem is fixed.
12942         (RS6000_CPU, power7 defaults): Likewise.
12944 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12946         * config/x-linux (host-linux.o): Remove header dependencies.
12947         Use $(COMPILE) and $(POSTCOMPILE).
12948         * config/t-linux-android (linux-android.o): Ditto.
12950 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12952         * Makefile.in (expmed.o-warn): Remove.
12954 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12956         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12957         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12959 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12961         * dojump.c (do_jump_1): Divide probability between
12962         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12964 2013-10-02  Tom Tromey  <tromey@redhat.com>
12966         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12968 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12970         * tree-flow.h: Remove some prototypes.
12971         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12972         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12973         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12974         mark_virtual_phi_result_for_renaming): Relocate here.
12975         * tree-into-ssa.h: Add prototypes.
12976         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12977         single_pred_before_succ_order.
12978         (blocks_in_phiopt_order): Rename and move to cfganal.c.
12979         (nonfreeing_call_p) Move to gimple.c.
12980         * cfganal.c (single_pred_before_succ_order): Move and renamed from
12981         tree-ssa-phiopt.c.
12982         * basic-block.h (single_pred_before_succ_order): Add prototype.
12983         * gimple.c (nonfreeing_call_p): Relocate here.
12984         * gimple.h: Add prototype.
12985         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12986         * tree-ssa-dom.h: New file.  Relocate prototypes here.
12987         * tree-ssa.h: Include tree-ssa-dom.h.
12989 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12991         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12992         Use $(COMPILE) and $(POSTCOMPILE).
12994         * config/alpha/x-alpha (driver-alpha.o): Ditto.
12996 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12998         * tree-flow.h: Remove some prototypes.
12999         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
13000         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
13001         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
13002         propagate_tree_value*): Move from here to...
13003         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
13004         propagate_tree_value*): Relocate here.
13005         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
13006         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
13007         * gimple-fold.c: Remove gimple-fold.h from include list.
13008         * tree-vrp.c: Remove gimple-fold.h from include list.
13009         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
13010         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
13011         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
13012         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
13013         * sese.c: Add tree-ssa-propagate.h to include list.
13015 2013-10-02  Richard Biener  <rguenther@suse.de>
13017         * tree-loop-distribution.c: Include tree-vectorizer.h for
13018         find_loop_location.
13019         (enum partition_kind): Remove PKIND_REDUCTION.
13020         (struct partition_s): Remove has_writes member, add reduction_p member.
13021         (partition_alloc): Adjust.
13022         (partition_builtin_p): Likewise.
13023         (partition_has_writes): Remove.
13024         (partition_reduction_p): New function.
13025         (partition_merge_into): Likewise.
13026         (generate_code_for_partition): Commonize builtin partition
13027         handling tail.
13028         (rdg_cannot_recompute_vertex_p): Remove.
13029         (already_processed_vertex_p): Likewise.
13030         (rdg_flag_vertex): Do not set has_writes.
13031         (classify_partition): Adjust.
13032         (rdg_build_partitions): Do not set has_writes, treat all
13033         partitions as useful.
13034         (distribute_loop): Record number of library calls generated.  Adjust.
13035         (tree_loop_distribution): Report number of loops and library
13036         calls generated as opt-info.
13038 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
13040         * tree-flow.h: Include new .h files.  Move prototypes.
13041         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
13042         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
13043         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
13044         * tree-pretty-print.h: Add prototypes from tree-flow.h.
13045         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
13046         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
13047         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
13048         * tree.h (get_ref_base_and_extent): Move prototype out.
13049         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
13050         tree-dfa.h.
13051         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
13052         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
13053         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
13054         * tree-scalar-evolution.c: Include tree.h.
13055         * sese.c: Include tree.h.
13056         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
13057         * dwarf2out.c: Include tree-dfa.h.
13058         * tree-chrec.c: Include tree.h.
13059         * tree-data-ref.c: Include tree.h.
13061 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13063         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
13064         Fix whitespace.
13066 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13068         * config/t-sol2 (sol2-c.o): Remove header dependencies.
13069         Use $(COMPILE) and $(POSTCOMPILE).
13070         (sol2-cxx.o): Likewise.
13071         (sol2-stubs.o): Likewise.
13072         (sol2.o): Likewise.
13073         * config/x-solaris (host-solaris.o): Likewise.
13075         * config/sparc/t-sparc (sparc.o): Remove.
13076         (sparc-c.o): Remove header dependencies.
13077         Use $(COMPILE) and $(POSTCOMPILE).
13078         * config/sparc/x-sparc: Likewise.
13080 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
13082         * config/arc/arc-opts.h: Add 2013 to Copyright years.
13083         * config/arc/arc700.md: Likewise.
13084         * config/arc/arc-modes.def: Likewise.
13085         * config/arc/arc-simd.h: Likewise.
13086         * config/arc/t-arc-uClibc: Likewise.
13087         * config/arc/t-arc-newlib: Likewise.
13089 2013-10-02  Renlin Li  <renlin.li@arm.com>
13091         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13092         plus_constant.
13093         (aarch64_expand_epilogue): Likewise.
13095 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13096             Yufeng Zhang  <yufeng.zhang@arm.com>
13098         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
13099         declaration.
13100         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
13101         'base_in' represent a conversion and legal_cast_p_1 holds; set
13102         'base_in' with the returned value from get_unwidened.
13104 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13106         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
13107         plus_constant is not used.
13109 2013-10-01  Wei Mi  <wmi@google.com>
13111         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
13112         * config/i386/i386.md: Add define_peephole2 to
13113         break partial reg stall for cvtss2sd/cvtsd2ss.
13115 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13117         * config/arc/arc.c (pass_arc_ifcvt::clone):
13118         Update for ctxt_ -> m_ctxt change.
13120 2013-10-01  Jeff Law  <law@redhat.com>
13122         * tree-ssa-threadupdate.c (struct redirection_data): Delete
13123         outgoing_edge and intermediate_edge fields.  Instead store the path.
13124         (redirection_data::hash): Hash on the last edge's destination index.
13125         (redirection_data::equal): Check the entire thread path.
13126         (lookup_redirectio_data): Corresponding changes.
13127         (create_edge_and_update_destination_phis): Likewise.
13128         (thread_single_edge): Likewise.
13130 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13131             Diego Novillo <dnovillo@google.com>
13133         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
13134         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
13135         (vld32wh_insn, vld32wl_insn): Delete commented-out old
13136         versions of these patterns.
13138         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
13139         (__builtin_arc_aligned): Likewise.
13141         * config/arc/arc.md: Expand adc_0 comment stating the intended
13142         purpose and why it isn't ready.
13143         Replace commented out call_value_via_label_mixed with a
13144         plain comment about bl_s.
13146         * config/arc/arc.c (stdio.h): Don't include directly.
13147         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
13148         Remove if (1) condition.
13149         (arc_encode_section_info): Fix comment.
13151 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13153         * config/arc/arc.c (arc_conditional_register_usage):
13154         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
13155         Also set reg_alloc_order for DMA config regs.
13157 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13158             Jeremy Bennett  <jeremy.bennett@embecosm.com>
13160         * doc/install.texi (--with-cpu): Mention ARC.
13161         (arc-*-elf32): New paragraph.
13162         (arc-linux-uclibc): Likewise.
13163         * doc/md.texi (Machine Constraints): Add ARC part.
13164         * doc/invoke.texi: (menu): Add ARC Options.
13165         (Machine Dependent Options) <ARC Options>: Add synopsis.
13166         (node ARC Options): Add.
13167         * doc/extend.texi (long_call / short_call attribute): Add ARC.
13168         (ARC Built-in Functions): New section defining
13169         generic ARC built-in functions.
13170         (ARC SIMD Built-in Functions): New section defining SIMD specific
13171         built-in functions.
13172         (Declaring Attributes of Functions): Extended
13173         description of short_call and long_call attributes for ARC and
13174         added index entries.
13176 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
13177             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
13178             Joern Rennecke  <joern.rennecke@embecosm.com>
13179             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
13180             Brendan Kehoe  <brendan@zen.org>
13181             Michael Eager  <eager@eagercon.com>
13182             Simon Cook  <simon.cook@embecosm.com>
13183             Jeremy Bennett  <jeremy.bennett@embecosm.com>
13185         * config/arc, common/config/arc: New directories.
13187 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13188             Brendan Kehoe  <brendan@zen.org>
13189             Simon Cook  <simon.cook@embecosm.com>
13191         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
13193 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
13195         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
13196         * tree-ssa-coalesce.h: New. Move prototype to here.
13197         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
13198         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
13199         (gimple_can_coalesce_p): Move to...
13200         * gimple.c (gimple_can_coalesce_p): Here.
13202 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
13204         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
13205         (dump_decl_set): Move to gimple.c.
13206         * gimple.h: Don't include tree-ssa-operands.h.
13207         (dump_decl_set): Add prototype.
13208         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13209         Move to gimple-ssa.h.
13210         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
13211         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
13212         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
13213         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
13214         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
13215         than PHI_ARG_DEF.
13216         (dump_decl_set): Relocate here.
13217         * gimple-ssa.h: New file.
13218         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13219         Relocate from gimple.h.
13220         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
13221         * tree-ssa-operands.c (swap_ssa_operands): Rename from
13222         swap_tree_operands and remove non-ssa path.
13223         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
13224         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
13225         swap_ssa_operands.
13226         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
13227         vect_is_simple_reduction_1): Use swap_ssa_operands.
13228         * tree-flow.h: Move various prototypes to tree-phinodes.h.
13229         (enum need_phi_state): Move to tree-into-ssa.c.
13230         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13231         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
13232         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
13233         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
13234         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13235         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13236         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13237         num_imm_uses): Move to ssa-iterators.h.
13238         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
13239         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
13240         tree-phinodes.h.
13241         (op_iter_done, op_iter_next_def, op_iter_next_tree,
13242         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
13243         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
13244         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
13245         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
13246         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
13247         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
13248         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
13249         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
13250         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
13251         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
13252         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
13253         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
13254         (set_phi_nodes): Move to tree-phinodes.h.
13255         * tree-ssa-operands.h (enum ssa_op_iter_type,
13256         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
13257         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
13258         (dump_decl_set): Remove prototype.
13259         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
13260         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
13261         (set_phi_nodes): Relocate from tree-flow-inline.h.
13262         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
13263         tree-flow-inline.h
13264         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
13265         include list.  Temporarily add gimple.h to include list.
13266         * ssa-iterators.h: New file.
13267         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13268         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
13269         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
13270         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
13271         Relocate from tree-ssa-operands.h.
13272         (delink_imm_use, link_imm_use_to_list, link_imm_use,
13273         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13274         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13275         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13276         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
13277         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
13278         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
13279         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
13280         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
13281         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
13282         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
13283         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
13284         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
13285         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
13286         Relocate from tree-flow-inline.h.
13287         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
13289 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
13291         * aarch64-simd.md
13292         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
13293         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
13294         Insert '\t' to output template.
13295         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
13296         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
13297         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
13298         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
13300 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
13302         * doc/install.texi (Host/target specific installation notes for GCC):
13303         Put @anchor before @heading.
13304         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
13305         Use @email for email addresses.
13307 2013-10-01  Jeff Law  <law@redhat.com>
13309         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
13310         a vec.  Only delete the path if we create one without successfully
13311         registering a jump thread.
13312         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
13313         as a pointer.
13314         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
13315         (paths): New vector of jump threading paths.
13316         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
13317         (THREAD_PATH): New accessor macro for the entire thread path.
13318         (lookup_redirection_data): Get intermediate and final outgoing edge
13319         from the thread path.
13320         (create_edge_and_update_destination_phis): Copy the threading path.
13321         (ssa_fix_duplicate_block_edges): Get edges and block types from the
13322         jump threading path.
13323         (ssa_redirect_edges): Get edges and block types from the jump threading
13324         path.  Free the path vector.
13325         (thread_block): Get edges from the jump threading path.  Look at the
13326         entire path to see if we thread to a loop exit.  If we cancel a jump
13327         thread request, then free the path vector.
13328         (thread_single_edge): Get edges and block types from the jump threading
13329         path.  Free the path vector.
13330         (thread_through_loop_header): Get edges and block types from the jump
13331         threading path.  Free the path vector.
13332         (mark_threaded_blocks): Iterate over the vector of paths and store
13333         the path on the appropriate edge.  Get edges and block types from the
13334         jump threading path.
13335         (mark_threaded_blocks): Get edges and block types from the jump
13336         threading path.  Free the path vector.
13337         (thread_through_all_blocks): Use the vector of paths rather than
13338         a vector of 3-edge sets.
13339         (register_jump_thread): Accept pointer to a path vector rather
13340         than the path vector itself.  Store the path vector for later use.
13341         Simplify.
13343 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
13344             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13346         PR target/58574
13347         * config/s390/s390.c (s390_split_branches): Modify check for table
13348         jump insns.
13349         (s390_chunkify_start): Rearrange table jump insn check in order to
13350         deal with compare and branch insns correctly.
13352 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
13354         PR target/58578
13355         Revert
13356         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
13357         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
13358         define_insn_and_split.
13359         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13360         (shiftsi3_compare): New pattern.
13361         (rrx): New pattern.
13362         * config/arm/unspecs.md (UNSPEC_RRX): New.
13364 2013-10-01  Alan Modra  <amodra@gmail.com>
13366         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13367         casing inout operands.
13369 2013-10-01  Richard Biener  <rguenther@suse.de>
13371         PR tree-optimization/58553
13372         * tree-loop-distribution.c (struct partition_s): Add niter member.
13373         (classify_partition): Populate niter member for the partition
13374         and properly identify whether the relevant store happens before
13375         or after the loop exit.
13376         (generate_memset_builtin): Use niter member from the partition.
13377         (generate_memcpy_builtin): Likewise.
13379 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
13381         * vec.h (vec_prefix, vec): Prefix member names with "m_".
13382         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13384 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
13386         * basic-block.h (edge_list): Prefix member names with "m_".
13387         * context.h (context): Likewise.
13388         * domwalk.h (dom_walker): Likewise.
13389         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13390         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13391         * hash-table.h (hash_table): Likewise.
13392         * machmode.h (bit_field_mode_iterator): Likewise.
13393         * pass_manager.h (pass_list): Likewise.
13394         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13395         * tree-pass.h (pass_data): Likewise.
13396         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13397         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13398         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13399         * asan.c (pass_data_asan): Update accordingly.
13400         * cfganal.c (control_dependences::find_control_dependence): Likewise.
13401         (control_dependences::control_dependences): Likewise.
13402         (control_dependences::~control_dependences): Likewise.
13403         (control_dependences::~control_dependences): Likewise.
13404         (control_dependences::get_edges_dependent_on): Likewise.
13405         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13406         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13407         * context.c (gcc::context::context): Likewise.
13408         * cprop.c (pass_rtl_cprop::clone): Likewise.
13409         * domwalk.c (dom_walker::walk): Likewise.
13410         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13411         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13412         * mode-switching.c (pass_mode_switching::clone): Likewise.
13413         * passes.c (opt_pass::opt_pass): Likewise.
13414         (pass_manager::pass_manager): Likewise.
13415         * predict.c (pass_strip_predict_hints::clone): Likewise.
13416         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13417         (pass_split_all_insns::clone): Likewise.
13418         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13419         Likewise.
13420         (bit_field_mode_iterator::next_mode): Likewise.
13421         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13422         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13423         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13424         * tree-complex.c (pass_lower_complex::clone): Likewise.
13425         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13426         * tree-object-size.c (pass_object_sizes::clone): Likewise.
13427         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13428         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13429         (pass_fold_builtins::clone): Likewise.
13430         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13431         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13432         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13433         (pass_cd_dce::clone): Likewise.
13434         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13435         (pass_phi_only_cprop::clone): Likewise.
13436         * tree-ssa-dse.c (pass_dse::clone): Likewise.
13437         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13438         * tree-ssa-loop.c (pass_lim::clone): Likewise.
13439         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13440         * tree-ssa-pre.c (pass_fre::clone): Likewise.
13441         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13442         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13443         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13444         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13445         * tree-vrp.c (pass_vrp::clone): Likewise.
13446         * tsan.c (pass_tsan::clone): Likewise.
13448 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
13450         PR middle-end/58564
13451         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13452         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13454         PR middle-end/58564
13455         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13456         optimization, punt if sign_bit_p looked through any zero extension.
13458 2013-09-30  Teresa Johnson  <tejohnson@google.com>
13460         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13461         Update redirected out edge count in joiner case.
13462         (ssa_redirect_edges): Common the joiner and non-joiner cases
13463         so that joiner case gets profile updates.
13465 2013-09-30  Richard Biener  <rguenther@suse.de>
13467         PR tree-optimization/58554
13468         * tree-loop-distribution.c (classify_partition): Require
13469         unconditionally executed stores for memcpy and memset recognition.
13470         (tree_loop_distribution): Calculate dominance info.
13472 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
13474         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13475         (NO_PROFILE_COUNTERS): Likewise.
13476         (PROFILE_HOOK): Likewise.
13477         (FUNCTION_PROFILER): Likewise.
13478         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13480 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
13482         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13483         calls and defines in TARGET_MACHO conditional.
13484         (load_macho_picbase_di): Likewise.
13485         (reload_macho_picbase): Likewise.
13486         (reload_macho_picbase_si): Likewise.
13487         (reload_macho_picbase_di): Likewise.
13488         (nonlocal_goto_receiver): Likewise.
13490 2013-09-30  Nick Clifton  <nickc@redhat.com>
13492         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
13493         that use the MSP430X ISA.
13494         (msp430_option_override): Scan -mmcu command line option for any
13495         MCU name that supports the MSP430X ISA.
13496         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13497         -mmcu options which enable the MSP430X ISA.
13499 2013-09-30  Richard Biener  <rguenther@suse.de>
13501         PR middle-end/58532
13502         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13503         before looking for setjmp-like calls.
13505 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13507         PR target/10901
13508         * config/darwin-protos.h (machopic_get_function_picbase): New.
13509         * config/darwin.c (machopic_get_function_picbase): New.
13510         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13511         label for a new func.  (load_macho_picbase_di): Likewise.
13512         (reload_macho_picbase): New expand.
13513         (reload_macho_picbase_si): New insn.
13514         (reload_macho_picbase_di): New insn.
13515         (nonlocal_goto_receiver): New define and split.
13516         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13517         (unspecv enum): Add UNSPECV_NLGR.
13519 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13521         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13522         that altivec registers are correctly sized on Darwin.
13524 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13526         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13527         darwin-driver.o): Use COMPILE and POSTCOMPILE.
13528         * config/x-darwin (host-darwin.o): Likewise.
13529         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13530         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13531         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13533 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
13535         * doc/invoke.texi: Fix usage of @tie{} command.
13537 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
13539         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13541 2013-09-28  Jan Hubicka  <jh@suse.cz>
13543         * config/i386/x86-tune.def: Add documentation for each of the options;
13544         add whitespace.
13546 2013-09-28  Jan Hubicka  <jh@suse.cz>
13548         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13549         generic.
13550         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13551         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13552         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13553         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13554         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13556 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
13558         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13559         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13560         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13561         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13562         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13563         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13564         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13565         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13566         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13567         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13568         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13569         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13570         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13571         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13572         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13573         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13574         gimple.h, godump.c, graphite-clast-to-gimple.c,
13575         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13576         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13577         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13578         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13579         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13580         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13581         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13582         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13583         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13584         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13585         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13586         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13587         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13588         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13589         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13590         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13591         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13592         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13593         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13594         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13595         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13596         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13597         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13598         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13599         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13600         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13601         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13602         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13603         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13604         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13605         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13606         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13607         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13608         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13609         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13610         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13611         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13612         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13613         whitespace before "(".
13615 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
13617         * expr.h (extract_bit_field): Remove packedp parameter.
13618         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13619         from forward declaration.
13620         (store_split_bit_field): Remove packedp arg from calls to
13621         extract_fixed_bit_field.
13622         (extract_bit_field_1): Remove packedp parameter and packedp
13623         argument from recursive calls and calls to extract_fixed_bit_field.
13624         (extract_bit_field): Remove packedp parameter and corresponding
13625         arg to extract_bit_field_1.
13626         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
13627         to issue warnings.
13628         (extract_split_bit_field): Remove packedp arg from call to
13629         extract_fixed_bit_field.
13630         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13631         (copy_blkmode_from_reg): Likewise.
13632         (copy_blkmode_to_reg): Likewise.
13633         (read_complex_part): Likewise.
13634         (store_field): Likewise.
13635         (expand_expr_real_1): Likewise.
13636         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13637         to extract_bit_field.
13638         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13639         call to extract_bit_field.
13640         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13641         call to extract_bit_field.
13642         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13643         and special packedp behavior from -fstrict-volatile-bitfields
13644         documentation.
13646 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13648         * lra-eliminations.c (init_elim_table): Guard value_p.
13650 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
13652         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13653         DFmode, DImode, and SFmode in the upper VSX registers based on the
13654         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
13655         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
13656         of the VSX register handling.
13658         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13659         (f32_sv): Likewise.
13660         (zero_extendsidi2_lfiwzx): Add support for loading into the
13661         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
13662         only do VSX memory options on Altivec registers.
13663         (extendsidi2_lfiwax): Likewise.
13664         (extendsfdf2_fpr): Likewise.
13665         (mov<mode>_hardfloat, SF/SD modes): Likewise.
13666         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13667         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13668         (movdi_internal64): Likewise.
13670 2013-09-27  Xinliang David Li  <davidxl@google.com>
13672         * opts.c (finish_options): Adjust parameters
13673         according to vect cost model.
13674         (common_handle_option): Set dynamic vect cost
13675         model for FDO.
13676         targhooks.c (default_add_stmt_cost): Compute stmt cost
13677         unconditionally.
13678         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13679         Use helper function.
13680         * tree-vectorizer.h (unlimited_cost_model): New function.
13681         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13682         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13683         function.
13684         (vect_enhance_data_refs_alignment): Ditto.
13685         * flag-types.h: New enum.
13686         * common/config/i386/i386-common.c (ix86_option_init_struct):
13687         No need to initialize vect_cost_model flag.
13688         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13689         unconditionally.
13691 2013-09-27  Diego Novillo  <dnovillo@google.com>
13693         * gimple.h (enum ssa_mode): Remove.
13695 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
13697         * cfgloop.h (number_of_loops): Fix typo in check for null.
13699 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
13701         PR middle-end/58551
13702         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13703         are children of outermost saved_cfun's loop, and set it up to
13704         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
13705         if loop != loop0 and SESE region contains bbs that belong to loop0.
13707 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13709         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13710         (binary_scale_code_p, get_base_term, get_index_term): New functions.
13711         (set_address_segment, set_address_base, set_address_index)
13712         (set_address_disp): Accept the argument unconditionally.
13713         (baseness): Remove must_be_base_p and must_be_index_p checks.
13714         (decompose_normal_address): Classify as much as possible in the
13715         main loop.
13717 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13719         * cse.c (count_reg_usage): Handle INT_LIST.
13720         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13721         * reginfo.c (reg_scan_mark_refs): Likewise.
13722         * reload1.c (eliminate_regs_1): Likewise.
13724 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
13726         PR middle-end/58547
13727         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13728         signed.
13730 2013-09-27  Richard Biener  <rguenther@suse.de>
13732         PR tree-optimization/58459
13733         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13734         restriction not propagating into loops.
13736 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
13738         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13739         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13740         * doc/tree-ssa.texi (Walking use-def chains): Delete.
13742 2013-09-26  Richard Biener  <rguenther@suse.de>
13744         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13746 2013-09-26  Richard Biener  <rguenther@suse.de>
13748         * alias.h (component_uses_parent_alias_set): Rename to ...
13749         (component_uses_parent_alias_set_from): ... this.
13750         * alias.c (component_uses_parent_alias_set): Rename to ...
13751         (component_uses_parent_alias_set_from): ... this and return
13752         the desired parent.
13753         (reference_alias_ptr_type_1): Use the result from
13754         component_uses_parent_alias_set_from instead of stripping
13755         components one at a time.
13756         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13758 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
13760         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13761         Move prototypes to...
13762         * tree-ssa-ter.h: New File.  Move prototypes here.
13763         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13764         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13765         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
13766         from is_replaceable_p.
13767         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13768         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
13769         (process_replaceable): Use ter_is_replaceable_p.
13770         (find_replaceable_in_bb): Use ter_is_replaceable_p.
13771         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
13772         newly refactored ssa_is_replaceable_p.
13773         * cfgexpand.c: Include tree-outof-ssa.h.
13774         * ssaexpand.h: Delete.
13776 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
13778         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13779         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13780         tree-ssa.c
13781         (create_gimple_tmp): Delete.
13782         (get_expr_type, build_assign, build_type_cast): Move to...
13783         * gimple-builder.c: New File.
13784         (get_expr_type): Relocate from gimple.c.
13785         (build_assign, build_type_cast): Change to only create ssanames.
13786         * gimple.h: Move prototypes to...
13787         * gimple-builder.h: New File. Here.
13788         * tree-ssa.h: And here.
13789         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13790         count_uses_and_derefs): Relocate from gimple.c.
13791         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13792         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13793         * tree-ssa-math-opts (execute_cse_reciprocals): Use
13794         gimple_replace_ssa_lhs.
13795         * asan.c: Include gimple-builder.h.
13796         * Makefile.in: Add gimple-builder.o.
13798 2013-09-26  Richard Biener  <rguenther@suse.de>
13800         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13801         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13802         (loe_visit_block): Use gcc_checking_assert.
13803         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13804         gimple_assign_ssa_name_copy_p.
13805         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13806         change.
13808 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
13810         * config/rs6000/t-rs6000 (rs6000.o): Remove.
13811         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13813 2013-09-26  Richard Biener  <rguenther@suse.de>
13815         PR tree-optimization/58539
13816         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13817         the fact that debug statements are not taking part in loop-closed
13818         SSA construction.
13820 2013-09-26  Nick Clifton  <nickc@redhat.com>
13822         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13823         time warning message.
13824         (msp430_print_operand_raw): Delete unused letter parameter.
13825         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13826         (msp430_print_operand_address): New function.
13827         (msp430_print_operand): Move address printing code from here to
13828         new function.
13829         * config/msp430/msp430.md (movsipsi2): Add comment in generated
13830         assembler.
13831         (zero_extendpsisi2): Likewise.
13832         (extendpsisi2): New pattern.
13833         (andneghi3): New pattern.
13835 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
13837         * config/aarch64/aarch64.opt (mlra): New option.
13838         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13839         (TARGET_LRA_P): Define.
13841 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
13843         * expr.c (expand_assignment): Remove obsolete comment.
13845 2013-09-25  Jeff Law  <law@redhat.com>
13847         * tree-flow.h (thread_through_all_blocks): Prototype moved into
13848         tree-ssa-threadupdate.h.
13849         (register_jump_thread): Similarly.
13850         * tree-ssa-threadupdate.h: New header file.
13851         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13852         * tree-vrp.c: Likewise.
13853         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13854         (thread_around_empty_blocks): Change type of path vector argument to
13855         an edge,type pair from just an edge.  Initialize both elements when
13856         appending to a jump threading path.  Tweak references to elements
13857         appropriately.
13858         (thread_across_edge): Similarly.  Release memory for the elements
13859         as needed.
13860         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13861         (dump_jump_thread_path): New function broken out from
13862         register_jump_thread.
13863         (register_jump_thread): Use dump_jump_thread_path.  Change type of
13864         path vector entries.  Search the path for NULL edges and dump
13865         the path if one is found.  Tweak the conversion of path to 3-edge
13866         form to use the block copy type information embedded in the path.
13868 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13870         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13872 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13873             Vladimir Makarov  <vmakarov@redhat.com>
13875         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13876         from the least significant bit.
13877         (strip_address_mutations): Add bitfield operations handling.
13878         (must_be_index_p): Add shifting and rotate operations handling.
13879         (set_address_base): Use must_be_base_p predicate.
13880         (set_address_index): Use must_be_index_p predicate.
13882 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13883             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13884             Sergey Lega  <sergey.s.lega@intel.com>
13885             Anna Tikhonova  <anna.tikhonova@intel.com>
13886             Ilya Tocar  <ilya.tocar@intel.com>
13887             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13888             Ilya Verbin  <ilya.verbin@intel.com>
13889             Kirill Yukhin  <kirill.yukhin@intel.com>
13890             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13892         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13893         Use new names.
13894         (ix86_expand_vector_move_misalign): Support new unaligned load and
13895         stores and use new names.
13896         (CODE_FOR_sse2_storedqu): Rename to ...
13897         (CODE_FOR_sse2_storedquv16qi): ... this.
13898         (CODE_FOR_sse2_loaddqu): Rename to ...
13899         (CODE_FOR_sse2_loaddquv16qi): ... this.
13900         (CODE_FOR_avx_loaddqu256): Rename to ...
13901         (CODE_FOR_avx_loaddquv32qi): ... this.
13902         (CODE_FOR_avx_storedqu256): Rename to ...
13903         (CODE_FOR_avx_storedquv32qi): ... this.
13904         * config/i386/i386.md (fpint_logic): New.
13905         * config/i386/sse.md (VMOVE): Extend for AVX512.
13906         (VF): Ditto.
13907         (VF_128_256): New.
13908         (VF_512): Ditto.
13909         (VI_UNALIGNED_LOADSTORE): Ditto.
13910         (sse2_avx_avx512f): Ditto.
13911         (sse2_avx2): Extend for AVX512.
13912         (sse4_1_avx2): Ditto.
13913         (avx2_avx512f): New.
13914         (sse): Extend for AVX512.
13915         (sse2): Ditto.
13916         (sse4_1): Ditto.
13917         (avxsizesuffix): Ditto.
13918         (sseintvecmode): Ditto.
13919         (ssePSmode): Ditto.
13920         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13921         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13922         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13923         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13924         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13925         (<sse2_avx_avx512f>_storedqu<mode): ... this.
13926         (<sse>_movnt<mode>): Replace constraint "x" with "v".
13927         (STORENT_MODE): Extend for AVX512.
13928         (*absneg<mode>2): Replace constraint "x" with "v".
13929         (*mul<mode>3): Ditto.
13930         (*ieee_smin<mode>3): Ditto.
13931         (*ieee_smax<mode>3): Ditto.
13932         (avx_cmp<mode>3): Replace VF with VF_128_256.
13933         (*<sse>_maskcmp<mode>3_comm): Ditto.
13934         (<sse>_maskcmp<mode>3): Ditto.
13935         (<sse>_andnot<mode>3): Extend for AVX512.
13936         (<code><mode>3, anylogic): Replace VF with VF_128_256.
13937         (<code><mode>3, fpint_logic): New.
13938         (*<code><mode>3): Extend for AVX512.
13939         (avx512flogicsuff): New.
13940         (avx512f_<logic><mode>): Ditto.
13941         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13942         VF_128_256.
13943         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13944         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13945         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13946         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13947         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13948         (xop_vpermil2<mode>3): Ditto.
13949         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13950         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13951         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13952         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13954 2013-09-25  Tom Tromey  <tromey@redhat.com>
13956         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13957         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13958         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13959         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13960         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13961         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13962         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13963         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13964         (GRAPHITE_HTAB_H): Remove.
13966 2013-09-25  Tom Tromey  <tromey@redhat.com>
13968         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13970 2013-09-25  Tom Tromey  <tromey@redhat.com>
13972         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13974 2013-09-25  Tom Tromey  <tromey@redhat.com>
13976         * config/i386/t-i386 (i386.o): Remove.
13977         (i386-c.o): Use COMPILE and POSTCOMPILE.
13979 2013-09-25  Tom Tromey  <tromey@redhat.com>
13981         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13983 2013-09-25  Tom Tromey  <tromey@redhat.com>
13985         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13986         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13987         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13988         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13989         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13990         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13991         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13992         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13993         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13994         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13995         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13996         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13997         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13998         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13999         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
14000         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
14001         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
14002         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
14003         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
14004         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
14005         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
14006         (tree-ssa-pre.o, tree-ssa-sccvn.o)
14007         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
14008         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
14009         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
14010         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
14011         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
14012         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
14013         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
14014         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
14015         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
14016         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
14017         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
14018         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
14019         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
14020         (graphite-clast-to-gimple.o, graphite-dependences.o)
14021         (graphite-interchange.o, graphite-poly.o)
14022         (graphite-scop-detection.o, graphite-sese-to-poly.o)
14023         (graphite-optimize-isl.o, tree-vect-loop.o)
14024         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
14025         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
14026         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
14027         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
14028         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
14029         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
14030         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
14031         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
14032         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
14033         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
14034         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
14035         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
14036         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
14037         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
14038         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
14039         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
14040         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
14041         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
14042         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
14043         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
14044         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
14045         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
14046         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
14047         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
14048         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
14049         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
14050         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
14051         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
14052         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
14053         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
14054         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
14055         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
14056         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
14057         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
14058         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
14059         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
14060         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
14061         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
14062         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
14063         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
14064         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
14065         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
14066         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
14067         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
14068         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
14069         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
14070         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
14071         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
14072         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
14073         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
14074         (gcov-dump.o): Remove.
14075         (default-c.o): Use COMPILE and POSTCOMPILE.
14076         (CFLAGS-gcc.o): New variable.
14077         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
14079 2013-09-25  Tom Tromey  <tromey@redhat.com>
14081         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
14082         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
14083         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
14084         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
14085         (c-family/c-pragma.o, c-family/c-pretty-print.o)
14086         (c-family/c-semantics.o, c-family/c-ada-spec.o)
14087         (c-family/array-notation-common.o, c-family/stub-objc.o)
14088         (c-family/c-ubsan.o): Remove.
14090 2013-09-25  Tom Tromey  <tromey@redhat.com>
14092         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
14094 2013-09-25  Tom Tromey  <tromey@redhat.com>
14096         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
14097         to add -DENABLE_SHARED_LIBGCC.
14098         (gcc.o): Don't use subshell.
14100 2013-09-25  Tom Tromey  <tromey@redhat.com>
14102         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
14103         * configure.ac: Don't invoke AM_PROG_CC_C_O.
14104         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
14105         * configure, config.in: Rebuild.
14107 2013-09-25  Tom Tromey  <tromey@redhat.com>
14109         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
14110         (COMPILE, POSTCOMPILE): New variables.
14111         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
14112         (DEPFILES): New variable.
14113         Include ".Po" files.
14114         * configure.ac: Add checks for dependency checking.
14115         * configure, aclocal.m4: Regenerate.
14117 2013-09-25  Tom Tromey  <tromey@redhat.com>
14119         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
14120         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
14122 2013-09-25  Tom Tromey  <tromey@redhat.com>
14124         * Makefile.in (generated_files): Add options.h,
14125         target-hooks-def.h, insn-opinit.h,
14126         common/common-target-hooks-def.h, pass-instances.def,
14127         c-family/c-target-hooks-def.h.
14129 2013-09-25  Jeff Law  <law@redhat.com>
14131         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
14132         than foo[foo.length () - 1] to access last member in a vec.
14133         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
14135 2013-09-25  Richard Biener  <rguenther@suse.de>
14137         PR middle-end/58521
14138         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
14140 2013-09-25  Jan Hubicka  <jh@suse.cz>
14142         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
14143         test.
14145 2013-09-25  Marek Polacek  <polacek@redhat.com>
14147         PR sanitizer/58420
14148         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
14149         when determining the type name.
14151 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
14153         * config/sh/sh.md: Fix formatting.
14155 2013-09-24  Xinliang David Li  <davidxl@google.com>
14157         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
14158         max peel iterations parameter.
14159         * param.def: New parameter.
14160         * doc/invoke.texi: Document New parameter.
14162 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
14164         * gimple-pretty-print.c: Various whitespace tweaks.
14165         * tree-core.h: Likewise.
14166         * tree-pretty-print.c: Likewise.
14167         * tree-ssa-alias.c: Likewise.
14168         * tree-ssa-copy.c: Likewise.
14169         * tree-ssanames.c: Likewise.
14170         * tree-ssanames.h: Likewise.
14171         * tree-vrp.c: Likewise.
14173 2013-09-24  Alan Modra  <amodra@gmail.com>
14175         PR middle-end/57134
14176         PR middle-end/57586
14177         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
14178         for output operands that disallow regs.  Don't use EXPAND_WRITE on
14179         inout operands.
14181 2013-09-24  Richard Biener  <rguenther@suse.de>
14183         PR middle-end/58513
14184         * tree.c (reference_alias_ptr_type): Move ...
14185         * alias.c (reference_alias_ptr_type): ... here and implement
14186         in terms of the new reference_alias_ptr_type_1.
14187         (ref_all_alias_ptr_type_p): New helper.
14188         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
14189         use ref_all_alias_ptr_type_p.
14190         (get_deref_alias_set): Add flag_strict_aliasing check here.
14191         (reference_alias_ptr_type_1): New function, split out from ...
14192         (get_alias_set): ... here.
14193         (alias_ptr_types_compatible_p): New function.
14194         * alias.h (reference_alias_ptr_type): Declare.
14195         (alias_ptr_types_compatible_p): Likewise.
14196         * tree.h (reference_alias_ptr_type): Remove.
14197         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
14198         to compare MEM_REF alias types.
14200 2013-09-24  Richard Biener  <rguenther@suse.de>
14202         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
14204 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14206         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
14207         reload helper function arrays into a single array reg_addr.
14208         (reload_fpr_gpr): Likewise.
14209         (reload_gpr_vsx): Likewise.
14210         (reload_vsx_gpr): Likewise.
14211         (struct rs6000_reg_addr): Likewise.
14212         (reg_addr): Likewise.
14213         (rs6000_debug_reg_global): Change rs6000_vector_reload,
14214         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
14215         (rs6000_init_hard_regno_mode_ok): Likewise.
14216         (rs6000_secondary_reload_direct_move): Likewise.
14217         (rs6000_secondary_reload): Likewise.
14219         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
14220         constraints: wu, ww, and wy.  Repurpose wv constraint added during
14221         power8 changes.  Put wg constraint in alphabetical order.
14223         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
14224         for future work to add ISA 2.07 VSX single precision support.
14225         (-mvsx-scalar-double): Change default from -1 to 1, update
14226         documentation comment.
14227         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
14228         (-mupper-regs-df): New debug switch to control whether DF values
14229         can go in the traditional Altivec registers.
14230         (-mupper-regs-sf): New debug switch to control whether SF values
14231         can go in the traditional Altivec registers.
14233         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
14234         and wy constraints.
14235         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
14236         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
14237         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
14238         (rs6000_debug_legitimate_address_p): Print if we are running
14239         before, during, or after reload.
14240         (rs6000_secondary_reload): Add a comment.
14241         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
14243         * config/rs6000/constraints.md (wa constraint): Sort w<x>
14244         constraints.  Update documentation string.
14245         (wd constraint): Likewise.
14246         (wf constraint): Likewise.
14247         (wg constraint): Likewise.
14248         (wn constraint): Likewise.
14249         (ws constraint): Likewise.
14250         (wt constraint): Likewise.
14251         (wx constraint): Likewise.
14252         (wz constraint): Likewise.
14253         (wu constraint): New constraint for ISA 2.07 SFmode scalar
14254         instructions.
14255         (ww constraint): Likewise.
14256         (wy constraint): Likewise.
14257         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
14258         in the previous submissions.
14259         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
14261 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
14263         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
14264         (REG_BR_PROB): Say that the probability is stored in an int_list.
14265         * reg-notes.def: Update commentary to mention INT_LIST.
14266         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
14267         (INT_LIST): New rtx.
14268         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
14269         * rtlanal.c (int_reg_note_p): New function.
14270         (alloc_reg_note): Assert that the note does not have an int argument.
14271         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
14272         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
14273         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
14274         rather than an INSN_LIST.  Handle INT_LIST.
14275         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
14276         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
14277         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
14278         Manipulate them as ints rather than rtxes.
14279         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
14280         * regmove.c (copy_src_to_dest): Likewise.
14281         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
14283         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
14284         into the cases that need it.
14285         * config/arm/arm.c (arm_unwind_emit): Likewise.
14287         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
14288         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
14289         * loop-doloop.c (add_test, doloop_modify): Likewise.
14290         * loop-unswitch.c (compare_and_jump_seq): Likewise.
14291         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
14292         * predict.c (combine_predictions_for_insn): Likewise.
14293         * print-rtl.c (print_rtx): Handle INT_LIST.
14294         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
14295         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
14296         * config/arm/arm.c (emit_unlikely_jump): Likewise.
14297         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
14298         (ix86_split_fp_branch, predict_jump): Likewise.
14299         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
14300         * config/sh/sh.c (expand_cbranchsi4): Likewise.
14301         * config/spu/spu.c (ea_load_store_inline): Likewise.
14303         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
14304         value of a REG_BR_PROB note.
14305         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14306         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
14307         * emit-rtl.c (try_split): Likewise.
14308         * predict.c (br_prob_note_reliable_p): Likewise.
14309         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
14310         * reorg.c (mostly_true_jump): Likewise.
14311         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
14312         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14313         * config/i386/i386.c (ix86_print_operand): Likewise.
14314         * config/ia64/ia64.c (ia64_print_operand): Likewise.
14315         * config/mmix/mmix.c (mmix_print_operand): Likewise.
14316         * config/rs6000/rs6000.c (output_cbranch): Likewise.
14317         * config/s390/s390.c (s390_expand_tbegin): Likewise.
14318         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
14319         * config/sparc/sparc.c (output_cbranch): Likewise.
14320         * config/spu/spu.c (get_branch_target): Likewise.
14321         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
14322         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
14324 2013-09-23  Jan Hubicka  <jh@suse.cz>
14326         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
14327         for ipa-devirt.
14328         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
14329         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
14330         of external calls
14331         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
14332         (gimple_fold_call): Dump inconsistent devirtualizations; add
14333         sanity check for type based devirtualizations.
14334         * ipa-prop.c: Include ipa-utils.h
14335         (ipa_intraprocedural_devirtualization): Add sanity check.
14336         (try_make_edge_direct_virtual_call): Likewise.
14338 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
14340         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
14341         assignment statements.
14343 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
14345         * gimple-pretty-print.c (dump_ssaname_info): New function.
14346         (dump_gimple_phi): Call it.
14347         (pp_gimple_stmt_1): Likewise.
14348         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14349         (range_info_def): Declare.
14350         * tree-pretty-print.c (pp_double_int): New function.
14351         (dump_generic_node): Call it.
14352         * tree-pretty-print.h (pp_double_int): Declare.
14353         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14354         * tree-ssanames.h (range_info_def): New structure.
14355         (value_range_type): Move definition here.
14356         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14357         Declare.
14358         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14359         initialization.
14360         (set_range_info): New function.
14361         (get_range_info): Likewise.
14362         (duplicate_ssa_name_range_info): Likewise.
14363         (duplicate_ssa_name_fn): Check pointer type and call
14364         duplicate_ssa_name_range_info.
14365         * tree-ssa-copy.c (fini_copy_prop): Likewise.
14366         * tree-vrp.c (value_range_type): Remove definition, now in
14367         tree-ssanames.h.
14368         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14369         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14370         (SSA_NAME_RANGE_INFO): New macro.
14372 2013-09-23  Richard Biener  <rguenther@suse.de>
14374         PR tree-optimization/58464
14375         * tree-ssa-pre.c (phi_trans_lookup): Remove.
14376         (phi_trans_add): Change to add conditionally on being not present.
14377         (phi_translate_1): Remove recursion detection here.
14378         (phi_translate): Pre-seed the cache with NULL to catch
14379         recursion here in a more generic way.
14380         (bitmap_find_leader): Adjust comment.
14381         (get_representative_for): Dump value-numbers.
14382         (create_expression_by_pieces): Likewise.
14383         (insert_into_preds_of_block): Likewise.
14385 2013-09-23  Christian Bruel  <christian.bruel@st.com>
14387         PR target/58475
14388         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14389         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14391 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
14393         Revert r202780:
14394         2013-09-20  Renlin Li  <renlin.li@arm.com>
14396         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14397         plus_constant.
14398         (aarch64_expand_epilogue): Likewise.
14399         (aarch64_legitimize_reload_address): Likewise.
14401 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
14403         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14404         NULL_TREE before pushing them onto the vector.  Likewise for labels.
14406 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
14408         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14409         comparison operators when -fno-trapping-math is in effect.
14410         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14411         comparison operators in TFmode and assert that unsupported operators
14412         cannot reach here.
14413         (ia64_print_operand): Likewise.
14415 2013-09-21  Jan Hubicka  <jh@suse.cz>
14417         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14418         (sse_typeless_stores): Enable for core
14419         (sse_load0_by_pxor): Likewise.
14420         (four_jump_limit): Disable for core.
14421         (pad_returns): Likewise.
14422         (avoid_vector_decode): Likewise.
14423         (fuse_cmp_and_branch): Enable for cores.
14424         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14426 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
14428         PR middle-end/56791
14429         * config/pa/pa.c (pa_option_override): Disable auto increment and
14430         decrement instructions until reload is completed.
14432         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14433         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14434         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14436 2013-09-20  DJ Delorie  <dj@redhat.com>
14437             Nick Clifton  <nickc@redhat.com>
14439         * config/rl78/rl78.c: Various whitespace and comment tweaks.
14440         (need_to_save): Save bank 0 on interrupts.
14441         (characterize_address): Strip far address wrappers.
14442         (rl78_as_legitimate_address): Likewise.
14443         (transcode_memory_rtx): Likewise.
14444         (rl78_peep_movhi_p): Disable this peephole after devirt.
14445         (rl78_propogate_register_origins): Forget all origins when a
14446         CLOBBER is seen.
14447         * config/rl78/rl78-virt.md: Various whitespace tweaks.
14448         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
14449         peephole2's.
14450         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14451         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14452         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14453         relocating.
14454         * config/rl78/constraints.md: Various whitespace and paren tweaks.
14456 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
14458         * config/pa/pa.md: In "scc" insn patterns, change output template to
14459         handle const0_rtx in reg_or_0_operand operands.
14461 2013-09-20  Martin Husemann  <martin@NetBSD.org>
14463         PR target/56875
14464         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14465         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14467 2013-09-20  Richard Biener  <rguenther@suse.de>
14469         PR middle-end/58484
14470         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14471         remembering SSA name version and block index.
14472         (new_scev_info_str): Adjust.
14473         (hash_scev_info): Likewise.  Also hash the block index.
14474         (eq_scev_info): Adjust.
14475         (find_var_scev_info): Likewise.
14476         (struct instantiate_cache_entry): Remove.
14477         (struct instantiate_cache_type): Use a htab to map name, block
14478         to chrec.
14479         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14480         (get_instantiated_value_entry): Likewise.
14481         (hash_idx_scev_info, eq_idx_scev_info): New functions.
14482         (instantiate_scev_name): Adjust.
14484 2013-09-20  Jeff Law  <law@redhat.com>
14486         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14488 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
14490         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14491         Call aarch64_simd_expand_args to update op[argc].
14493 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14495         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14496         plugin argument.
14498 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14500         * gengtype.c (file_rules): Added rule for *.cc files.
14501         (get_output_file_with_visibility): Give fatal message when no
14502         rules found.
14504 2013-09-20  Renlin Li  <renlin.li@arm.com>
14506         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14507         (aarch64_expand_epilogue): Likewise.
14508         (aarch64_legitimize_reload_address): Likewise.
14510 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14512         PR middle-end/57748
14513         * expr.c (expand_assignment): Remove misalignp code path.
14515 2013-09-20  Marek Polacek  <polacek@redhat.com>
14517         PR sanitizer/58413
14518         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14519         TYPE_PRECISION.  Add asserts.
14521 2013-09-20  Richard Biener  <rguenther@suse.de>
14523         PR tree-optimization/58453
14524         * tree-loop-distribution.c (distribute_loop): Apply the cost
14525         model for -ftree-loop-distribute-patterns, too.
14527 2013-09-20  Richard Biener  <rguenther@suse.de>
14529         PR middle-end/58473
14530         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14531         make type comparison less strict.
14533 2013-09-20  Alan Modra  <amodra@gmail.com>
14535         * configure: Regenerate.
14536         * aclocal.m4: Regenerate.
14538 2013-09-20  Marek Polacek  <polacek@redhat.com>
14540         PR other/58467
14541         * doc/extend.texi: Document that attribute used is meant to be used
14542         on variables with static storage duration.
14544 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14546         PR tree-optimization/58472
14547         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14548         simd_lane_access set inv_p = false.
14549         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14550         the simduid magic VAR_DECL.
14552 2013-09-19  Jan Hubicka  <jh@suse.cz>
14554         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14556 2013-09-17  Jeff Law  <law@redhat.com>
14558         * tree-ssa-dom.c (record_temporary_equivalences): New function
14559         split out of dom_opt_dom_walker::after_dom_children.
14560         (dom_opt_dom_walker::thread_across_edge): Move common code
14561         in here from dom_opt_dom_walker::after_dom_children.
14562         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14564 2013-09-19  Jan Hubicka  <jh@suse.cz>
14566         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14567         (TARGET_GENERIC): Use PROCESOR_GENERIC
14568         (enum processor_type): Unify generic32 and 64.
14569         * i386.md (cpu): Likewise.
14570         * x86-tune.def (use_leave): Enable for generic32.
14571         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14572         * athlon.md: Change generic64 to generic in all occurences.
14573         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14574         (ix86_target_macros_internal): Likewise.
14575         * driver-i386.c (host_detect_local_cpu): Likewise.
14576         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14577         to ..
14578         (generic_memcpy, generic_memset, generic_cost): This one.
14579         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14580         (m_GENERIC32, m_GENERIC64): Remove.
14581         (m_GENERIC): Turn into one flag.
14582         (processor_target): Unify generic tunnings.
14583         (ix86_option_override_internal): Replace generic32/64 by generic.
14584         (ix86_issue_rate): Likewise.
14585         (ix86_adjust_cost): Likewise.
14587 2013-09-19  Jan Hubicka  <jh@suse.cz>
14589         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14590         of speculative flag.
14592 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14594         * omp-low.c (expand_omp_sections): Always pass len - 1 to
14595         GOMP_sections_start, even if !exit_reachable.
14597 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14599         * lra-constraints.c (need_for_all_save_p): Use macro
14600         HARD_REGNO_CALL_PART_CLOBBERED.
14601         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14602         set up pseudo conflict hard regs.
14604 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14606         PR target/58452
14607         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14608         operands.
14610 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14612         PR rtl-optimization/58438
14613         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14614         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14615         from previous subpasses.
14617 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
14619         * arm.c (arm_get_frame_offsets): Validate architecture supports
14620         LDRD/STRD before accepting the tuning preference.
14621         (arm_expand_prologue): Likewise.
14622         (arm_expand_epilogue): Likewise.
14624 2013-09-18  Richard Biener  <rguenther@suse.de>
14626         PR tree-optimization/58417
14627         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14628         have chrecs with symbols defined in the loop as operands.
14629         (chrec_fold_multiply): Likewise.
14630         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14631         parameters before folding binary operations.
14632         (struct instantiate_cache_entry_hasher): Remove.
14633         (struct instantiate_cache_type): Use a pointer-map.
14634         (instantiate_cache_type::instantiate_cache_type): New function.
14635         (instantiate_cache_type::get): Likewise.
14636         (instantiate_cache_type::set): Likewise.
14637         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14638         (get_instantiated_value_entry): Likewise.
14639         (global_cache): New global.
14640         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14641         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14642         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14643         (instantiate_scev_name): Adjust.
14644         (instantiate_scev): Construct global instead of local cache.
14645         (resolve_mixers): Likewise.
14647 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
14648             Paolo Carlini  <paolo.carlini@oracle.com>
14650         PR c++/58458
14651         * doc/implement-cxx.texi: Fix references to the C++ standards.
14653 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
14655         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14656         * tree-vect-data-refs.c (vect_analyze_data_refs): For
14657         simd_lane_access drs, update also DR_ALIGNED_TO.
14659 2013-09-18  Marek Polacek  <polacek@redhat.com>
14661         PR sanitizer/58411
14662         * doc/extend.texi: Document no_sanitize_undefined attribute.
14663         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14664         no_sanitize_undefined attribute.
14666 2013-09-18  Nick Clifton  <nickc@redhat.com>
14668         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14669         (ASM_DECLARE_FUNCTION_NAME): Define.
14671 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
14673         * compare-elim.c (find_comparison_dom_walker): New class
14674         (find_comparisons_in_bb): Rename to
14675         find_comparison_dom_walker::before_dom_children
14676         (find_comparisons): Adjust
14677         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14678         adjust.
14679         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14680         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14681         (init_walk_dominator_tree): Remove declaration.
14682         (fini_walk_dominator_tree): Remove declaration.
14683         * fwprop.c (single_def_use_dom_walker): New class
14684         (single_def_use_enter_block): Convert to
14685         single_def_use_dom_walker::before_dom_children.
14686         (single_def_use_leave_block): Convert to
14687         single_def_use_dom_walker::after_dom_children.
14688         (build_single_def_use_links): Adjust.
14689         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14690         class.
14691         (find_candidates_in_block): Convert to
14692         find_candidates_dom_walker::before_dom_children.
14693         (execute_strength_reduction): Adjust.
14694         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14695         (sese_dom_walker): New class.
14696         (sese_dom_walker::sese_dom_walker): New constructor.
14697         (sese_dom_walker::~sese_dom_walker): New destructor.
14698         (build_sese_conditions_before): Convert to
14699         sese_dom_walker::before_dom_children.
14700         (build_sese_conditions_after): Convert to
14701         sese_dom_walker::after_dom_children.
14702         (build_poly_scop): Adjust
14703         * tree-into-ssa.c (rewrite_dom_walker): New class
14704         (rewrite_enter_block): Convert to
14705         rewrite_dom_walker::before_dom_children.
14706         (rewrite_leave_block): Convert to
14707         rewrite_dom_walker::after_dom_children.
14708         (rewrite_update_dom_walker): New class.
14709         (rewrite_update_enter_block): Convert to
14710         rewrite_update_dom_walker::before_dom_children.
14711         (rewrite_update_leave_block): Convert to
14712         rewrite_update_dom_walker::after_dom_children.
14713         (rewrite_blocks, rewrite_into_ssa): Adjust.
14714         (mark_def_dom_walker): New class.
14715         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14716         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14717         (mark_def_sites_blocks): Convert to
14718         mark_def_dom_walker::before_dom_children.
14719         (mark_def_site_blocks): Remove.
14720         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14721         (tree_ssa_dominator_optimize): Adjust.
14722         (dom_thread_across_edge): Convert to method
14723         dom_opt_dom_walker::thread_across_edge.
14724         (dom_opt_enter_block): Convert to member function
14725         dom_opt_dom_walker::before_dom_children.
14726         (dom_opt_leave_block): Convert to member function
14727         dom_opt_dom_walker::after_dom_children.
14728         * tree-ssa-dse.c (dse_dom_walker): New class.
14729         (dse_enter_block): Convert to member function
14730         dse_dom_walker::before_dom_children.
14731         (tree_ssa_dse): Adjust.
14732         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14733         (determine_invariantness_stmt): Convert to method
14734         invariantness_dom_walker::before_dom_children.
14735         (determine_invariantness): Remove
14736         (move_computations_dom_walker): New class.
14737         (move_computations_stmt): Convert to method
14738         move_computations_dom_walker::before_dom_children.
14739         (move_computations, tree_ssa_lim): Adjust.
14740         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14741         (nt_init_block): Convert to method
14742         notrappping_dom_walker::before_dom_children.
14743         (nt_fini_block): Convert to method
14744         method nontrapping_dom_walker::after_dom_children.
14745         (get_non_trapping): Adjust.
14746         * tree-ssa-pre.c (eliminate_dom_walker): New class.
14747         (eliminate_bb): Convert to method
14748         eliminate_dom_walker::before_dom_children.
14749         (eliminate_leave_block): Convert to method
14750         eliminate_dom_walker::after_dom_children.
14751         (eliminate): Adjust.
14752         * tree-ssa-strlen.c (strlen_dom_walker): New class.
14753         (strlen_enter_block): Convert to method
14754         strlen_dom_walker::before_dom_children.
14755         (strlen_leave_block): Convert to method
14756         method strlen_dom_walker::after_dom_children.
14757         (tree_ssa_strlen): Adjust.
14758         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14759         (tree_ssa_uncprop): Adjust.
14760         (uncprop_leave_block): Convert to method
14761         uncprop_dom_walker::after_dom_children.
14762         (uncprop_leave_block): Convert to method
14763         uncprop_dom_walker::before_dom_children.
14765 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
14767         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14768         branch in same basic block.  Check both src and dest of the move insn.
14770 2013-09-17  Nick Clifton  <nickc@redhat.com>
14772         * config/rl78/rl78-real.md (bf): New pattern.
14773         (bt): New pattern.
14774         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14775         (rl78_print_operand): Do not put a # before a %B.
14776         * config/rl78/rl78.opt: Tweak doc strings.
14778 2013-09-17  DJ Delorie  <dj@redhat.com>
14780         * config/rl78/constraints.md (Wcv): Allow up to $r31.
14781         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14782         (rl78_option_override): Likewise, if -mallregs.
14783         (is_virtual_register): Likewise.
14784         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14785         (REGNO_OK_FOR_BASE_P): Likewise.
14786         * config/rl78/rl78.opt (-mallregs): New.
14788 2013-09-17  Nick Clifton  <nickc@redhat.com>
14790         * config/rl78/rl78.c (need_to_save): Change return type to bool.
14791         For interrupt functions: save all call clobbered registers if the
14792         interrupt handler is not a leaf function.
14793         (rl78_expand_prologue): Always recompute the frame information.
14794         For interrupt functions: only select bank 0 if one of the bank 0
14795         registers is going to be psuhed.
14797 2013-09-17  DJ Delorie  <dj@redhat.com>
14799         * config/rl78/constraints.md: For each W* constraint, rename to C*
14800         and create a W* constraint that checks for an optional ES: prefix
14801         pattern also.
14802         * config/rl78/rl78.md (UNS_ES_ADDR): New.
14803         (es_addr): New.  Used to wrap far addresses.
14804         * config/rl78/rl78-protos.h (rl78_es_addr): New.
14805         (rl78_es_base): New.
14806         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14807         wrapped far addresses.
14808         (rl78_print_operand_1): Unwrap far addresses before processing.
14809         (rl78_lo16): Wrap far addresses in unspecs.
14810         (rl78_es_addr): New.
14811         (rl78_es_base): New.
14812         (insn_ok_now): Check for not-yet-wrapped far addresses.
14813         (transcode_memory_rtx): Properly re-wrap far addresses.
14815 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14817         * config/sparc/t-rtems: Add leon3 multilibs.
14819 2013-09-17  Cong Hou  <congh@google.com>
14821         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14822         when checking the dot production pattern. The type of rhs operand
14823         of multiply is now checked correctly.
14825 2013-09-17  Jeff Law  <law@redhat.com>
14827         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14828         edge implied equivalences into successor phis.
14829         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14830         here from tree-ssa-threadedge.c.
14831         (mark_threaded_blocks): When threading through a joiner, if both
14832         successors of the joiner's clone reach the same block, verify the
14833         PHI arguments are equal.  If not, cancel the jump threading request.
14834         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14835         tree-ssa-threadupdate.c
14836         (thread_across_edge): Don't check PHI argument equality when
14837         threading through joiner block here.
14839 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
14841         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14842         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14843         (warn_uninit, warn_uninitialized_vars,
14844         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14845         Move to tree-ssa-uninit.c.
14846         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14847         (has_undefined_value_p): New.  Pass dependant parts of
14848         ssa_undefined_value_p.
14849         (uninit_undefined_value_p): Use has_undefined_value_p.
14850         (warn_uninit, warn_uninitialized_vars,
14851         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14852         Move from tree-ssa.c.
14853         * tree-ssa.h: Adjust prototypes.
14855 2013-09-17  Jan Hubicka  <jh@suse.cz>
14857         PR middle-end/58332
14858         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14859         * ipa-inline.c (can_inline_edge_p): Do not downgrade
14860         FUNCTION_NOT_OPTIMIZED.
14861         * ipa-inline-analysis.c (compute_inline_parameters): Function
14862         not optimized is not inlinable unless it is alwaysinline.
14863         (inline_analyze_function): Force calls in not optimized
14864         function not inlinable.
14866 2013-09-17  Jan Hubicka  <jh@suse.cz>
14868         PR middle-end/58329
14869         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14870         to return NULL.
14871         * ipa.c (function_and_variable_visibility): Likewise.
14872         * ipa-profile.c (ipa_profile): Likewise.
14874 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14876         PR ipa/58398
14877         * cgraph.c (cgraph_function_body_availability): Check for ifunc
14878         attribute, and don't inline the resolver in this case.
14880 2013-09-17  Teresa Johnson  <tejohnson@google.com>
14882         * coverage.c (get_coverage_counts): Add missing newline.
14884 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14886         PR tree-optimization/58088
14887         * fold-const.c (mask_with_trailing_zeros): New function.
14888         (fold_binary_loc): Make sure we don't recurse infinitely
14889         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14890         Use mask_with_trailing_zeros where appropriate.
14892 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
14894         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14895         of 'prev' var to get better distance estimation.
14897 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14899         * tree-inline.h (struct copy_body_data): Add transform_parameter.
14900         * tree-inline.c (is_parameter_of): New predicate.
14901         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14902         a parameter has been remapped.
14903         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14904         (optimize_inline_calls): Initialize transform_parameter.
14905         (copy_gimple_seq_and_replace_locals): Likewise.
14906         (tree_function_versioning): Likewise.
14907         (maybe_inline_call_in_expr): Likewise.
14909 2013-09-17  Nick Clifton  <nickc@redhat.com>
14911         * config/msp430/msp430-protos.h: Add prototypes for new functions.
14912         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14913         interrupt handlers.
14914         (is_attr_func): New function.
14915         (msp430_is_interrupt_func): New function.
14916         (is_naked_func): New function.
14917         (is_reentrant_func): New function.
14918         (is_critical_func): New function.
14919         (msp430_start_function): Add annotations for function attributes.
14920         (msp430_attr): New function.
14921         (msp430_attribute_table): New.
14922         (msp430_function_section): New function.
14923         (TARGET_ASM_FUNCTION_SECTION): Define.
14924         (msp430_builtin): New enum.
14925         (msp430_init_builtins): New function.
14926         (msp430_builtin_devl): New function.
14927         (msp430_expand_builtin): New function.
14928         (TARGET_INIT_BUILTINS): Define.
14929         (TARGET_EXPAND_BUILTINS): Define.
14930         (TARGET_BUILTIN_DECL): Define.
14931         (msp430_expand_prologue): Add support for naked, interrupt,
14932         critical and reentrant functions.
14933         (msp430_expand_epilogue): Likewise.
14934         (msp430_print_operand): Handle 'O' character.
14935         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14936         NO_TRAMPOLINES.
14937         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14938         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14939         (pushm): Use a 'n' rather than an 'i' constraint.
14940         (msp_return): Add generation of the interrupt return instruction.
14941         (disable_interrupts): New pattern.
14942         (enable_interrupts): New pattern.
14943         (push_intr_state): New pattern.
14944         (pop_intr_state): New pattern.
14945         (bic_SR): New pattern.
14946         (bis_SR): New pattern.
14947         * doc/extend.texi: Document MSP430 function attributes and builtin
14948         functions.
14950 2013-09-17  Richard Biener  <rguenther@suse.de>
14952         PR tree-optimization/58432
14953         * tree-loop-distribution.c (tree_loop_distribution): Also
14954         scan PHIs for outside loop uses and seed a partition from them.
14956 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
14958         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14959         (restructure_reference): Call backtrace_base_for_ref.
14961 2013-09-17  Alan Modra  <amodra@gmail.com>
14963         PR target/57589
14964         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14965         patch.
14967 2013-09-16  DJ Delorie  <dj@redhat.com>
14969         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14970         vregs location for RL78/G10.
14971         (rl78_expand_prologue): Avoid SEL on G10.
14972         (rl78_expand_epilogue): Likewise.
14973         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14974         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14975         __RL78_G10__ when appropriate.
14976         (ASM_SPEC): Pass -mg10 along to the assembler.
14977         * config/rl78/rl78.md (sel_rb): Disable for G10.
14978         * config/rl78/rl78.opt: Add -mg10 option.
14979         * config/rl78/t-rl78: Add -mg10 multilib.
14981 2013-09-16  Xinliang David Li  <davidxl@google.com>
14983         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14984         * omp-low.c (omp_max_vf): Ditto.
14985         (expand_omp_simd): Ditto.
14986         * tree-vectorizer.c (vectorize_loops): Ditto.
14987         (gate_vect_slp): Ditto.
14988         (gate_increase_alignment): Ditto.
14989         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14990         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14991         (gate_tree_vectorize): Name change.
14992         (tree_vectorize): Ditto.
14993         (pass_vectorize::gate): Call new function.
14994         (pass_vectorize::execute): Ditto.
14995         * opts.c: O3 default setting change.
14996         (finish_options): Check new flag.
14997         * doc/invoke.texi: Document new flags.
14998         * common.opt: New flags.
15000 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
15002         * doc/tm.texi.in (Cond Exec Macros): Remove node.
15003         (Condition Code): Don't reference it.
15004         * doc/tm.texi: Regenerate.
15006 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
15008         PR middle-end/58418
15009         * lra-constraints.c (undo_optional_reloads): Consider all optional
15010         reload even if it did not get a hard reg.
15012 2013-09-16  Teresa Johnson  <tejohnson@google.com>
15014         * dumpfile.c (dump_loc): Remove newline emission.
15015         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
15016         emission to dump_printf_loc calls where missing.
15017         (vect_mark_for_runtime_alias_test): Ditto.
15018         (vect_analyze_data_ref_dependence): Ditto.
15019         (vect_analyze_data_ref_dependences): Ditto.
15020         (vect_slp_analyze_data_ref_dependence): Ditto.
15021         (vect_slp_analyze_data_ref_dependences): Ditto.
15022         (vect_compute_data_ref_alignment): Ditto.
15023         (vect_update_misalignment_for_peel): Ditto.
15024         (vect_verify_datarefs_alignment): Ditto.
15025         (vector_alignment_reachable_p): Ditto.
15026         (vect_get_data_access_cost): Ditto.
15027         (vect_enhance_data_refs_alignment): Ditto.
15028         (vect_find_same_alignment_drs): Ditto.
15029         (vect_analyze_data_refs_alignment): Ditto.
15030         (vect_analyze_group_access): Ditto.
15031         (vect_analyze_data_ref_access): Ditto.
15032         (vect_analyze_data_ref_accesses): Ditto.
15033         (vect_prune_runtime_alias_test_list): Ditto.
15034         (vect_analyze_data_refs): Ditto.
15035         (vect_create_addr_base_for_vector_ref): Ditto.
15036         (vect_create_data_ref_ptr): Ditto.
15037         (vect_grouped_store_supported): Ditto.
15038         (vect_grouped_load_supported): Ditto.
15039         * value-prof.c (check_counter): Ditto.
15040         (check_ic_target): Ditto.
15041         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
15042         (vect_recog_widen_mult_pattern): Ditto.
15043         (vect_recog_widen_sum_pattern): Ditto.
15044         (vect_recog_over_widening_pattern): Ditto.
15045         (vect_recog_widen_shift_pattern): Ditto.
15046         (vect_recog_rotate_pattern): Ditto.
15047         (vect_recog_vector_vector_shift_pattern): Ditto.
15048         (vect_recog_divmod_pattern): Ditto.
15049         (vect_recog_mixed_size_cond_pattern): Ditto.
15050         (vect_recog_bool_pattern): Ditto.
15051         (vect_pattern_recog_1): Ditto.
15052         (vect_pattern_recog): Ditto.
15053         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
15054         (vect_is_simple_iv_evolution): Ditto.
15055         (vect_analyze_scalar_cycles_1): Ditto.
15056         (vect_get_loop_niters): Ditto.
15057         (vect_analyze_loop_1): Ditto.
15058         (vect_analyze_loop_form): Ditto.
15059         (vect_analyze_loop_operations): Ditto.
15060         (vect_analyze_loop_2): Ditto.
15061         (vect_analyze_loop): Ditto.
15062         (report_vect_op): Ditto.
15063         (vect_is_slp_reduction): Ditto.
15064         (vect_is_simple_reduction_1): Ditto.
15065         (vect_get_known_peeling_cost): Ditto.
15066         (vect_estimate_min_profitable_iters): Ditto.
15067         (vect_model_reduction_cost): Ditto.
15068         (vect_model_induction_cost): Ditto.
15069         (get_initial_def_for_induction): Ditto.
15070         (vect_create_epilog_for_reduction): Ditto.
15071         (vectorizable_reduction): Ditto.
15072         (vectorizable_induction): Ditto.
15073         (vectorizable_live_operation): Ditto.
15074         (vect_loop_kill_debug_uses): Ditto.
15075         (vect_transform_loop): Ditto.
15076         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
15077         (vect_stmt_relevant_p): Ditto.
15078         (process_use): Ditto.
15079         (vect_mark_stmts_to_be_vectorized): Ditto.
15080         (vect_model_simple_cost): Ditto.
15081         (vect_model_promotion_demotion_cost): Ditto.
15082         (vect_model_store_cost): Ditto.
15083         (vect_get_store_cost): Ditto.
15084         (vect_model_load_cost): Ditto.
15085         (vect_get_load_cost): Ditto.
15086         (vect_init_vector_1): Ditto.
15087         (vect_get_vec_def_for_operand): Ditto.
15088         (vect_finish_stmt_generation): Ditto.
15089         (vectorizable_call): Ditto.
15090         (vectorizable_conversion): Ditto.
15091         (vectorizable_assignment): Ditto.
15092         (vectorizable_shift): Ditto.
15093         (vectorizable_operation): Ditto.
15094         (vectorizable_store): Ditto.
15095         (vectorizable_load): Ditto.
15096         (vectorizable_condition): Ditto.
15097         (vect_analyze_stmt): Ditto.
15098         (vect_transform_stmt): Ditto.
15099         (vect_is_simple_use): Ditto.
15100         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
15101         (vect_can_advance_ivs_p): Ditto.
15102         (vect_update_ivs_after_vectorizer): Ditto.
15103         (vect_do_peeling_for_loop_bound): Ditto.
15104         (vect_gen_niters_for_prolog_loop): Ditto.
15105         (vect_update_inits_of_drs): Ditto.
15106         (vect_create_cond_for_alias_checks): Ditto.
15107         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
15108         (vect_build_slp_tree_1): Ditto.
15109         (vect_supported_load_permutation_p): Ditto.
15110         (vect_analyze_slp_instance): Ditto.
15111         (vect_analyze_slp): Ditto.
15112         (vect_make_slp_decision): Ditto.
15113         (vect_detect_hybrid_slp): Ditto.
15114         (vect_bb_vectorization_profitable_p): Ditto.
15115         (vect_slp_analyze_bb_1): Ditto.
15116         (vect_update_slp_costs_according_to_vf): Ditto.
15117         (vect_get_mask_element): Ditto.
15118         (vect_transform_slp_perm_load): Ditto.
15119         (vect_schedule_slp_instance): Ditto.
15120         (vect_schedule_slp): Ditto.
15121         (vect_slp_transform_bb): Ditto.
15122         * profile.c (read_profile_edge_counts): Ditto.
15123         (compute_branch_probabilities): Ditto.
15124         * coverage.c (get_coverage_counts): Ditto.
15126 2013-09-16  Diego Novillo  <dnovillo@google.com>
15128         * tree-core.h: Add missing comment lines from refactoring of tree.h.
15130 2013-09-16  Jan Hubicka  <jh@suse.cz>
15132         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
15133         abstract functions; for static functions check the presence of body.
15135 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
15137         * config/aarch64/aarch64-simd-builtins.def (fma): New.
15138         * config/aarch64/aarch64-simd.md
15139         (aarch64_mla_elt<mode>): New.
15140         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
15141         (aarch64_mls_elt<mode>): Likewise.
15142         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
15143         (aarch64_fma4_elt<mode>): Likewise.
15144         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
15145         (aarch64_fma4_elt_to_128v2df): Likewise.
15146         (aarch64_fma4_elt_to_64df): Likewise.
15147         (fnma<mode>4): Likewise.
15148         (aarch64_fnma4_elt<mode>): Likewise.
15149         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
15150         (aarch64_fnma4_elt_to_128v2df): Likewise.
15151         (aarch64_fnma4_elt_to_64df): Likewise.
15152         * config/aarch64/iterators.md (VDQSF): New.
15153         * config/aarch64/arm_neon.h
15154         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
15155         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
15157 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
15159         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
15160         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
15161         (aarch64_mul3_elt_to_128df): Likewise.
15162         (aarch64_mul3_elt_to_64v2df): Likewise.
15163         * config/aarch64/iterators.md (VEL): Also handle DFmode.
15164         (VMUL): New.
15165         (VMUL_CHANGE_NLANES) Likewise.
15166         (h_con): Likewise.
15167         (f): Likewise.
15168         * config/aarch64/arm_neon.h
15169         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
15171 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
15173         * config/aarch64/arm_neon.h
15174         (vcvtx_high_f32_f64): Fix parameters.
15176 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15177             Uros Bizjak  <ubizjak@gmail.com>
15179         * config/alpha.c: Include tree-ssanames.h.
15181 2013-09-16  Richard Biener  <rguenther@suse.de>
15183         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
15184         (dot_rdg_1): Handle control_dd.
15185         (create_edge_for_control_dependence): New function.
15186         (create_rdg_edges): Add control dependences if asked for.
15187         (build_rdg): Likewise.
15188         (generate_loops_for_partition): If there are not necessary
15189         control stmts remove all their dependencies.
15190         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
15191         (distribute_loop): Pass on control dependences.
15192         (tree_loop_distribution): Compute control dependences and remove
15193         restriction on number of loop nodes.
15195 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
15197         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
15198         for internal calls.
15200 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
15202         * cse.c (try_const_anchors): Punt on CC modes.
15204 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15206         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
15208 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
15210         PR target/58382
15211         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
15212         calls to word_mode.
15214 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
15216         PR target/48094
15217         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
15218         seen.
15219         (darwin_objc1_section): Likewise.
15220         (darwin_file_end): Emit Image Info section when required.
15222 2013-09-14  Jan Hubicka  <jh@suse.cz>
15224         * tree-into-ssa.c (gate_into_ssa): New.
15225         (pass_data_build_ssa): Use it.
15226         * cgraph.h (expand_thunk): Update prototype.
15227         * cgraphunit.c (analyze_function): Expand thunks early.
15228         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
15229         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
15230         set lowered flag; do not add new function.
15231         (assemble_thunks_and_aliases): Update.
15232         * tree-ssa.c (gate_init_datastructures): New gate.
15233         (pass_data_init_datastructures): Use it.
15235 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
15237         PR target/58269
15238         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
15239         xmm register set described in the psABI.
15241 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
15243         * dwarf2out.c (should_emit_struct_debug): Add check
15244         for type_decl variable is not NULL.
15246 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
15248         * config.gcc: Use new winnt-c.c target hooks
15249         * config/t-winnt: New file
15250         * config/winnt-c.c: New file
15251         * doc/tm.texi.in: Document new hook
15252         * doc/tm.texi: Regenerated
15254 2013-09-13  Jan Hubicka  <jh@suse.cz>
15256         PR middle-end/58094
15257         * ipa-inline.c (check_callers): New function.
15258         (check_caller_edge): Remove.
15259         (want_inline_function_to_all_callers_p): Also permit alises that are
15260         called dirrectly.
15261         (inline_to_all_callers): Terminate the walk when devirtualization
15262         introduce new calls.
15264 2013-09-13  Jan Hubicka  <jh@suse.cz>
15266         * ipa-inline-analysis.c (struct growth_data): Add node.
15267         (do_estimate_growth_1): Fix detection of recursion.
15269 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
15271         PR tree-optimization/58392
15272         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
15273         to avoid shadowing of outer loop variable.  If
15274         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
15275         replace_by_duplicate_decl simduid of loops that have it set and
15276         set dest_cfun->has_simduid_loops and/or
15277         dest_cfun->has_force_vect_loops.
15278         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
15279         instead of maybe_lookup_decl.
15280         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
15281         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
15282         call.  Copy over force_vect and copy and remap simduid.  Set
15283         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
15284         (copy_cfg_body): Remove blocks_to_copy argument.  Use
15285         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
15286         caller.  Don't set cfun->has_simduid_loops and/or
15287         cfun->has_force_vect_loops here.
15288         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
15289         caller.
15290         (expand_call_inline, tree_function_versioning): Adjust copy_body
15291         callers.
15293 2013-09-13  Martin Jambor  <mjambor@suse.cz>
15295         PR bootstrap/58388
15296         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
15297         the assert if the edge was a speculative one.
15299 2013-09-13  Richard Biener  <rguenther@suse.de>
15301         * tree-data-ref.h (known_dependences_p): Move here ...
15302         * tree-loop-distribution.c (known_dependences_p): ... from here.
15303         (dump_rdg_component, debug_rdg_component): Remove.
15304         (dump_rdg): Adjust.
15305         (generate_loops_for_partition): Use gimple_uid instead of
15306         relying on matching stmt visit order.
15307         (rdg_build_partitions): Take starting stmt vector.
15308         (ldist_gen): Merge into ...
15309         (distribute_loop): ... this function.  Do not compute starting
15310         vertices vector.
15311         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
15313 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15315         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
15316         Set type attribute correctly. Set predicable_short_it attribute.
15317         (cmpsi_shiftsi): Remove %? from output template.
15319 2013-09-13  Richard Biener  <rguenther@suse.de>
15321         * tree-loop-distribution.c (struct rdg_component,
15322         rdg_defs_used_in_other_loops_p, free_rdg_components,
15323         rdg_build_components): Remove.
15324         (stmts_from_loop): Do not record virtual PHIs.
15325         (generate_loops_for_partition): Skip virtual PHIs.
15326         (build_rdg_partition_for_component): Rename to ...
15327         (build_rdg_partition_for_vertex): ... this and adjust.
15328         (rdg_build_partitions): Take a vector of starting vertices
15329         instead of components.  Remove unnecessary leftover handling.
15330         (ldist_gen): Do not build components or record other stores.
15331         (distribute_loop): Do not distribute loops containing stmts
15332         with side-effects.
15334 2013-09-13  Christian Bruel  <christian.bruel@st.com>
15336         PR target/58314
15337         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
15339 2013-09-13  Kai Tietz  <ktietz@redhat.com>
15341         * config.gcc: Separate cases for mingw and cygwin targets,
15342         and add 64-bit cygwin target case.
15344         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
15345         dll-export inline-functions.
15346         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15348 2013-09-13  Jeff Law  <law@redhat.com>
15350         PR middle-end/58387
15351         Revert:
15352         2013-09-06  Jeff Law  <law@redhat.com>
15354         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15355         edge implied equivalences into successor phis.
15357 2013-09-12  DJ Delorie  <dj@redhat.com>
15359         * config/rl78/rl78-virt.md: Change from | to \; for asm line
15360         separators.
15362 2013-09-12  Brooks Moses  <bmoses@google.com>
15364         PR driver/42955
15365         * Makefile.in: Do not install driver binaries in $(target)/bin.
15367 2013-09-12  DJ Delorie  <dj@redhat.com>
15369         * config/rl78/rl78.opt (mrelax): New.
15370         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15371         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15373         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15374         between SP and FP.
15375         (rl78_expand_epilogue): Likewise.
15377 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
15379         PR middle-end/58335
15380         * lra-eliminations.c (remove_reg_equal_offset_note): New.
15381         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15382         pointer elimination with using remove_reg_equal_offset_note.
15384 2013-09-12  DJ Delorie  <dj@redhat.com>
15386         * config/msp430/: New port.
15387         * config.gcc (msp430): Added.
15388         * doc/invoke.texi: Document MSP430 options.
15389         * doc/install.texi: Document msp430-elf
15390         * doc/md.texi: Document msp430-elf
15391         * doc/contrib.texi: Document msp430-elf
15393         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15394         PSImode.
15396 2013-09-12  Martin Jambor  <mjambor@suse.cz>
15398         PR ipa/58389
15399         * ipa-prop.c (remove_described_reference): Give up if the edge in the
15400         reference descriptor is NULL.
15401         (ipa_edge_removal_hook): If owning a reference descriptor, set its
15402         edge to NULL.
15404 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
15406         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15407         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15408         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15409         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15410         make_temp_ssa_name): move to tree-ssanames.h
15411         * tree-ssa-alias.h: Move prototype.
15412         * tree-ssa.h: Include tree-ssanames.h.
15413         * tree-ssanames.c (FREE_SSANAMES): Move to here.
15414         * tree-ssanames.h: New.  Move items from tree-flow*.h
15415         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15417 2013-09-12  Richard Biener  <rguenther@suse.de>
15419         PR tree-optimization/58404
15420         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15421         propagate non-invariant addresses into dereferences wrapped
15422         in component references.
15424 2013-09-12  Richard Biener  <rguenther@suse.de>
15426         PR tree-optimization/58402
15427         * passes.def: Move pass_late_warn_uninitialized later.
15429 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
15431         * tree-ssa.h: New.  Move content from tree-flow.h and
15432         tree-flow-inline.h.
15433         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15434         Move prototypes belonging to tree-ssa.c.
15435         * tree-flow-inline.h (redirect_edge_var_map_def,
15436         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15437         tree-ssa.h.
15438         * gimple.h: Adjust prototypes.
15439         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15440         to...
15441         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15442         * tree.h: Move prototype to tree-ssa.h.
15443         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15444         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15445         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15446         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15447         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15448         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15449         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15450         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15451         graphite-blocking.c, graphite-clast-to-gimple.c,
15452         graphite-dependences.c, graphite-interchange.c,
15453         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15454         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15455         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15456         ipa-reference.c, ipa-split.c, ipa-utils.c,
15457         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15458         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15459         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15460         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15461         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15462         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15463         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15464         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15465         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15466         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15467         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15468         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15469         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15470         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15471         value-prof.c, var-tracking.c,
15472         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15474 2013-09-12  Richard Biener  <rguenther@suse.de>
15476         PR tree-optimization/58396
15477         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15478         (build_rdg): Take a loop-nest parameter, fix memleaks.
15479         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15481 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
15483         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15484         for SLM.
15486 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
15488         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15489         The FMA instruction names should have a 'v' prefix.
15491 2013-09-12  Richard Biener  <rguenther@suse.de>
15493         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15494         (dot_rdg): Use popen instead of system in optional code.
15495         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15496         (already_processed_vertex_p): Adjust.
15497         (has_anti_or_output_dependence, predecessor_has_mem_write,
15498         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15499         rdg_flag_uses): Remove.
15500         (rdg_flag_vertex): Simplify.
15501         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15502         remove recursion.
15503         (build_rdg_partition_for_component): Process the first vertex
15504         of a component only.
15505         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15507 2013-09-12  Alan Modra  <amodra@gmail.com>
15509         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15511 2013-09-11  DJ Delorie  <dj@redhat.com>
15512             Nick Clifton  <nickc@redhat.com>
15514         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15515         (rl78_stack_based_mem): New.
15516         * config/rl78/constraints.md (Iv08): New.
15517         (Iv16): New.
15518         (Iv24): New.
15519         (Is09): New.
15520         (Is17): New.
15521         (Is25): New.
15522         (ISsi): New.
15523         (IShi): New.
15524         (ISqi): New.
15525         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15526         (movhi): Likewise.
15527         (movsi): Change from expand to insn-and-split.
15528         (ashrsi3): Clobber AX.
15529         (lshrsi3): New.
15530         (ashlsi3): New.
15531         (cbranchsi4): New.
15532         * config/rl78/rl78.md (CC_REG): Fix.
15533         (addsi3): Allow memory and immediate operands.
15534         (addsi3_internal): Split into...
15535         (addsi3_internal_virt): ...new, and ...
15536         (addsi3_internal_real): ...new.
15537         (subsi): New.
15538         (subsi3_internal_virt): New.
15539         (subsi3_internal_real): New.
15540         (mulsi3): Add memory operand.
15541         (mulsi3_rl78): Likewise.
15542         (mulsi3_g13): Likewise.
15543         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15544         (cbranchqi4_real): Add more constraint options.
15545         (cbranchhi4_real): Expand pattern.
15546         (cbranchhi4_real_signed): New.
15547         (cbranchhi4_real_inverted): New.
15548         (cbranchsi4_real_lt): New.
15549         (cbranchsi4_real_ge): New.
15550         (cbranchsi4_real_signed): New.
15551         (cbranchsi4_real): New.
15552         (peephole2): New.
15553         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15554         constant shifts.
15555         (lshrsi3_virt): Likewise.
15556         (ashlsi3_virt): Likewise.
15557         (cbranchqi4_virt_signed): New.
15558         (cbranchhi4_virt_signed): New.
15559         (cbranchsi4_virt): New.
15560         * config/rl78/rl78.c: Whitespace fixes throughout.
15561         (move_elim_pass): New.
15562         (pass_data_rl78_move_elim): New.
15563         (pass_rl78_move_elim): New.
15564         (make_pass_rl78_move_elim): New.
15565         (rl78_devirt_info): Run devirt earlier.
15566         (rl78_move_elim_info): New.
15567         (rl78_asm_file_start): Register it.
15568         (rl78_split_movsi): New.
15569         (rl78_as_legitimate_address): Allow virtual base registers when
15570         appropriate.
15571         (rl78_addr_space_convert): Remove spurious debug stuff.
15572         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15573         (rl78_print_operand): More cases for not printing '#'.
15574         (rl78_expand_compare): Remove most of the logic.
15575         (content_memory): New.
15576         (clear_content_memory): New.
15577         (get_content_index): New.
15578         (get_content_name): New.
15579         (display_content_memory): New.
15580         (update_content): New.
15581         (record_content): New.
15582         (already_contains): New.
15583         (insn_ok_now): Re-recog insns with virtual registers.
15584         (add_postponed_content_update): New.
15585         (process_postponed_content_update): New.
15586         (gen_and_emit_move): New.
15587         (transcode_memory_rtx): Record new location content.
15588         Use gen_and_emit_move.
15589         (force_into_acc): New.
15590         (move_to_acc): Use gen_and_emit_move.
15591         (move_from_acc): Likewise.
15592         (move_acc_to_reg): Likewise.
15593         (move_to_x): Likewise.
15594         (move_to_hl): Likewise.
15595         (move_to_de): Likewise.
15596         (rl78_alloc_physical_registers_op1): Record location content.
15597         (has_constraint): New.
15598         (rl78_alloc_physical_registers_op2): Record location content.
15599         Optimize use of HL.
15600         (rl78_alloc_physical_registers_ro1): Likewise.
15601         (rl78_alloc_physical_registers_cmp): Likewise.
15602         (rl78_alloc_physical_registers_umul): Likewise.
15603         (rl78_alloc_address_registers_macax): New.
15604         (rl78_alloc_physical_registers): Initialize and set location
15605         content memory as needed.
15606         (rl78_reorg): Make sure split2 is called.
15607         (rl78_rtx_costs): New.
15609 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
15611         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15612         for (not (neg ...)) and (neg (not ...)) cases.
15614 2013-09-11  Richard Biener  <rguenther@suse.de>
15616         PR middle-end/58377
15617         * passes.def: Split critical edges before late uninit warning passes.
15618         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15620 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
15622         PR tree-optimization/58385
15623         * fold-const.c (build_range_check): If both low and high are NULL,
15624         use omit_one_operand_loc to preserve exp side-effects.
15626 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15628         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15630 2013-09-11  Richard Biener  <rguenther@suse.de>
15632         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15633         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15634         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15635         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15636         stmts_from_loop, known_dependences_p, build_empty_rdg,
15637         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15638         * tree-loop-distribution.c: ... here.
15639         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15640         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15641         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15642         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15643         * tree-loop-distribution.c: ... here.
15644         * tree-loop-distribution.c: Include gimple-pretty-print.h.
15645         (struct partition_s): Add loops member.
15646         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15647         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15648         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15650 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15651             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15652             Sergey Lega  <sergey.s.lega@intel.com>
15653             Anna Tikhonova  <anna.tikhonova@intel.com>
15654             Ilya Tocar  <ilya.tocar@intel.com>
15655             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15656             Ilya Verbin  <ilya.verbin@intel.com>
15657             Kirill Yukhin  <kirill.yukhin@intel.com>
15658             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15660         * config/i386/constraints.md (k): New.
15661         (Yk): Ditto.
15662         * config/i386/i386.c (const regclass_map): Add new mask registers.
15663         (dbx_register_map): Ditto.
15664         (dbx64_register_map): Ditto.
15665         (svr4_dbx_register_map): Ditto.
15666         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15667         disabled.
15668         (ix86_preferred_reload_class): Disable constants for mask registers.
15669         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15670         (ix86_hard_regno_mode_ok): Support new mask registers.
15671         (x86_order_regs_for_local_alloc): Ditto.
15672         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15673         (FIXED_REGISTERS): Add new mask registers.
15674         (CALL_USED_REGISTERS): Ditto.
15675         (REG_ALLOC_ORDER): Ditto.
15676         (VALID_MASK_REG_MODE): New.
15677         (FIRST_MASK_REG): Ditto.
15678         (LAST_MASK_REG): Ditto.
15679         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15680         (MAYBE_MASK_CLASS_P): New.
15681         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15682         (REG_CLASS_CONTENTS): Ditto.
15683         (MASK_REGNO_P): New.
15684         (ANY_MASK_REG_P): Ditto.
15685         (HI_REGISTER_NAMES): Add new mask registers.
15686         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15687         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15688         mask registers.
15689         (attribute "type"): Add mskmov, msklog.
15690         (attribute "length_immediate"): Support them.
15691         (attribute "memory"): Ditto.
15692         (attribute "prefix_0f"): Ditto.
15693         (*movhi_internal): Support new mask registers.
15694         (*movqi_internal): Ditto.
15695         (define_split): Split out clobber pattern is a logic
15696         insn on mask registers.
15697         (*k<logic><mode>): New.
15698         (*andhi_1): Extend to support mask regs.
15699         (*andqi_1): Extend to support mask regs.
15700         (kandn<mode>): New.
15701         (define_split): Split and-not to and and not if operands
15702         are not mask regs.
15703         (*<code><mode>_1): Separate HI mode to new pattern...
15704         (*<code>hi_1): This.
15705         (*<code>qi_1): Extend to support mask regs.
15706         (kxnor<mode>): New.
15707         (kortestzhi): Ditto.
15708         (kortestchi): Ditto.
15709         (kunpckhi): Ditto.
15710         (*one_cmpl<mode>2_1): Remove HImode and handle it...
15711         (*one_cmplhi2_1): ...Here, now with mask registers support.
15712         (*one_cmplqi2_1): Support new mask registers.
15713         (HI/QImode arithmetics splitter): Don't split if mask registers
15714         are used.
15715         (HI/QImode not splitter): Ditto.
15716         * config/i386/predicated.md (mask_reg_operand): New.
15717         (general_reg_operand): Ditto.
15719 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15721         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15722         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15724 2013-09-10  Jeff Law  <law@redhat.com>
15726         PR tree-optimization/58380
15727         * tree-ssa-threadupdate.c (thread_block): Recognize another case
15728         of threading through a buried loop header.
15730         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15731         return value for single successor case.
15733 2013-09-10  Jan Hubicka  <jh@suse.cz>
15735         * ipa-devirt.c (ipa_devirt): Enable with LTO.
15737 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
15739         PR target/58361
15740         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15741         support conditional execution.
15742         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15744 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
15746         * lra.c (lra): Clear lra_optional_reload_pseudos before every
15747         constraint pass.
15748         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15749         Check destination too to check move insn.
15750         (undo_optional_reloads): Add check that the original peudo did not
15751         changed its allocation and the optional reload was inherited on last
15752         inheritance pass.  Break loop after deciding to keep optional reload.
15753         (lra_undo_inheritance): Add check that inherited pseudo still in
15754         memory.
15756 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
15758         * config/aarch64/aarch64.md (generic_sched): New.
15759         * config/aarch64/aarch64-generic.md (load): Make conditional
15760         on generic_sched attribute.
15761         (nonload): Likewise.
15763 2013-09-10  Jan Hubicka  <jh@suse.cz>
15765         * lto-cgraph.c: Include ipa-utils.h.
15766         (compute_ltrans_boundary): Also add possible targets into the boundary.
15768 2013-09-10  Jan Hubicka  <jh@suse.cz>
15770         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15771         VAR_DECL of vtable rather than full expression.
15773 2013-09-10  Jan Hubicka  <jh@suse.cz>
15774             Paolo Carlini  <paolo.carlini@oracle.com>
15776         * cgraphunit.c (analyze_functions): Save input_location, set it
15777         to UNKNOWN_LOCATION and restore it at the end.
15779 2013-09-10  Martin Jambor  <mjambor@suse.cz>
15781         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15782         represented by a thunk.
15784 2013-09-10  Jeff Law  <law@redhat.com>
15786         PR tree-optimization/58343
15787         * tree-ssa-threadupdate.c (thread_block): Identify and disable
15788         jump threading requests through loop headers buried in the middle
15789         of a jump threading path.
15791         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15792         in return value/type.
15794 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
15796         PR rtl-optimization/58365
15797         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15798         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15799         it differs.
15801 2013-09-10  Richard Biener  <rguenther@suse.de>
15803         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15804         * tree-data-ref.c (create_rdg_vertices): Collect all data
15805         references, signal failure to the caller, use data-ref API.
15806         (build_rdg): Compute data references only once.  Maintain lifetime
15807         of data references and data dependences from within RDG.
15808         (free_rdg): Free dependence relations.
15809         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15810         inventing extra dependences.
15811         (distribute_loop): Update for RDG API changes.
15813 2013-09-10  Kai Tietz  <ktietz@redhat.com>
15815         * doc/invoke.texi (fms-extensions): Document changed
15816         behavior for ms-abi targets.
15817         * config/i386/i386.c (ix86_option_override_internal):
15818         Set default value of option -fms-extension for ms-abi targets.
15820 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15822         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15824 2013-09-10  Alan Modra  <amodra@gmail.com>
15826         PR target/58330
15827         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15829 2013-09-10  Alan Modra  <amodra@gmail.com>
15831         * config/rs6000/predicates.md (add_cint_operand): New.
15832         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15833         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15834         using add_cint_operand.
15835         (largetoc_high_plus_aix): Likewise.
15837 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
15839         PR tree-optimization/58364
15840         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15841         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15842         the current range can't be an unconditional true or false.
15844 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
15846         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15848 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
15850         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15852 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15854         PR c++/43452
15855         * doc/invoke.texi (-Wdelete-incomplete): Document it.
15857 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
15859         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15860         NO_REGS for immediate that can't be moved directly into FP_REGS.
15862 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15864         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15865         comparison with negated operand.
15866         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15867         RTL form.
15869 2013-09-09  Richard Biener  <rguenther@suse.de>
15871         PR middle-end/58326
15872         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15873         of a subloop record all its block as affecting loop-closed SSA form.
15875 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15877         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15878         of an rtx/bitpos pair.
15879         (store_fixed_bit_field): Update accordingly.
15881 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15883         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15884         GEN_INT.
15885         * builtins.c (expand_errno_check): Likewise.
15886         * dwarf2cfi.c (init_return_column_size): Likewise.
15887         * except.c (sjlj_mark_call_sites): Likewise.
15888         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15889         * lra-constraints.c (emit_inc): Likewise.
15890         * ree.c (combine_set_extension): Likewise.
15891         * regmove.c (fixup_match_2): Likewise.
15892         * reload1.c (inc_for_reload): Likewise.
15894 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15896         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15897         (force_to_mode, simplify_shift_const_1, simplify_comparison):
15898         Use gen_int_mode with the mode of the associated simplify_* call.
15899         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15900         * expmed.c (expand_shift_1): Likewise.
15901         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15902         * loop-iv.c (iv_number_of_iterations): Likewise.
15903         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15904         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15906 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15908         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15909         of the associated expand_* call.
15910         (asan_emit_stack_protection): Likewise.
15911         * builtins.c (round_trampoline_addr): Likewise.
15912         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15913         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15914         (emit_store_flag): Likewise.
15915         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15916         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15917         Likewise.
15918         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15919         * ifcvt.c (noce_try_store_flag_constants): Likewise.
15920         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15921         * modulo-sched.c (generate_prolog_epilog): Likewise.
15922         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15923         (expand_ctz, expand_ffs, expand_unop): Likewise.
15925 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15927         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15928         of the associated gen_rtx_* call.
15929         * caller-save.c (init_caller_save): Likewise.
15930         * combine.c (find_split_point, make_extraction): Likewise.
15931         (make_compound_operation): Likewise.
15932         * dwarf2out.c (mem_loc_descriptor): Likewise.
15933         * explow.c (plus_constant, probe_stack_range): Likewise.
15934         * expmed.c (expand_mult_const): Likewise.
15935         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15936         * reload1.c (init_reload): Likewise.
15937         * valtrack.c (cleanup_auto_inc_dec): Likewise.
15938         * var-tracking.c (adjust_mems): Likewise.
15939         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15940         rather than gen_rtx_fmt_ee.
15942 2013-09-09  Jan Hubicka  <jh@suse.cz>
15944         PR middle-end/58294
15945         * value-prof.c (gimple_ic): Copy also abnormal edges.
15947 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15949         * asan.c (asan_shadow_cst): Use gen_int_mode.
15951 2013-09-08  Jan Hubicka  <jh@suse.cz>
15953         * ipa-profile.c: Add toplevel comment.
15954         (ipa_propagate_frequency_1): Be more conservative when profile is read.
15955         (contains_hot_call_p): New function.
15956         (ipa_propagate_frequency): Set frequencies based on counts when
15957         profile is read.
15958         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15959         profile; do not tamper with profile after inlining if it is read.
15961 2013-09-08  Jan Hubicka  <jh@suse.cz>
15963         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15964         speculative edges.
15966 2013-09-08  Jan Hubicka  <jh@suse.cz>
15968         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15969         summary generation.
15971 2013-09-08  Jeff Law  <law@redhat.com>
15973         PR bootstrap/58340
15974         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15975         of 'found'.
15977 2013-09-08  Andi Kleen  <ak@linux.intel.com>
15979         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15981 2013-09-08  Jan Hubicka  <jh@suse.cz>
15983         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15985 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
15987         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15988         for non-debug insns.
15989         * lra.c (new_insn_reg): Take the containing insn as a parameter.
15990         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15991         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15992         accordingly.
15994 2013-09-08  Jan Hubicka  <jh@suse.cz>
15996         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15997         targets and devirtualize to BUILT_IN_UNREACHABLE.
15998         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15999         * ipa.c (walk_polymorphic_call_targets): New function.
16000         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
16001         functions; use the new timevar.
16002         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
16003         was removed from the program.
16004         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
16005         not consider it in the walk when its vtable is dead.
16006         (possible_polymorphic_call_targets_1): Pass anonymous flag to
16007         record_binfo.
16008         (devirt_variable_node_removal_hook): New function.
16009         (possible_polymorphic_call_targets): Also register
16010         devirt_variable_node_removal_hook.
16011         (ipa_devirt): Do not do non-speculative devirtualization.
16012         (gate_ipa_devirt): One execute if devirtualizing speculatively.
16014 2013-09-08  Jan Hubicka  <jh@suse.cz>
16016         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
16017         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
16018         varpool_remove_variable_insertion_hook): Declare.
16019         * varpool.c (varpool_node_hook_list): New structure.
16020         (first_varpool_node_removal_hook,
16021         first_varpool_variable_insertion_hook): New variables.
16022         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
16023         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
16024         varpool_remove_variable_insertion_hook,
16025         varpool_call_variable_insertion_hooks): New functions.
16026         (varpool_remove_node): Use it.
16028 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
16030         PR c++/54941
16031         * diagnostic.c (diagnostic_build_prefix): When s.file is
16032         "<built-in>" don't output line and column numbers.
16034 2013-09-06  Jan Hubicka  <jh@suse.cz>
16036         * cgraphunit.c (expand_thunk): Get body before touching arguments.
16037         * lto-streamer-out.c: Stream thunks, too.
16038         * lto-streamer-in.c (input_function): Pop cfun here
16039         (lto_read_body): Instead of here.
16041 2013-09-06  Caroline Tice  <cmtice@google.com>
16043         * doc/install.texi: Add documentation for the --enable-vtable-verify
16044         and the --disable-libvtv configure options.
16046 2013-09-06  Jeff Law  <law@redhat.com>
16048         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16049         edge implied equivalences into successor phis.
16051 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
16053         * resource.c (mark_referenced_resources): Handle COND_EXEC.
16055 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
16057         * resource.c (mark_target_live_regs): Compute resources taking
16058         into account if a call is predicated or not.
16060 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
16062         * toplev.c (output_stack_usage): Be prepared for suffixes created by
16063         the compiler in the function names.
16065 2013-09-06  Jan Hubicka  <jh@suse.cz>
16067         PR middle-end/58094
16068         * ipa-inline.c (has_caller_p): New function.
16069         (want_inline_function_to_all_callers_p): Use it.
16070         (sum_callers, inline_to_all_callers): Break out from ...
16071         (ipa_inline): ... here.
16073 2013-09-06  Jan Hubicka  <jh@suse.cz>
16075         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
16076         only when AVX is enabled.
16078 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16080         * config/aarch64/aarch64.md
16081         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
16082         is fpsimd_<load/store>2.
16083         (load_pair<mode>): Likewise.
16084         (store_pair<mode>): Likewise.
16086 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16088         * config/arm/types.md (type): Add "mrs" type.
16089         * config/aarch64/aarch64.md
16090         (aarch64_load_tp_hard): Make type "mrs".
16091         * config/arm/arm.md
16092         (load_tp_hard): Make type "mrs".
16093         * config/arm/cortex-a15.md: Update with new attributes.
16094         * config/arm/cortex-a5.md: Update with new attributes.
16095         * config/arm/cortex-a53.md: Update with new attributes.
16096         * config/arm/cortex-a7.md: Update with new attributes.
16097         * config/arm/cortex-a8.md: Update with new attributes.
16098         * config/arm/cortex-a9.md: Update with new attributes.
16099         * config/arm/cortex-m4.md: Update with new attributes.
16100         * config/arm/cortex-r4.md: Update with new attributes.
16101         * config/arm/fa526.md: Update with new attributes.
16102         * config/arm/fa606te.md: Update with new attributes.
16103         * config/arm/fa626te.md: Update with new attributes.
16104         * config/arm/fa726te.md: Update with new attributes.
16106 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16108         * config/aarch64/aarch64.md
16109         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
16110         (*movtf_aarch64): Likewise.
16111         * config/arm/arm.md
16112         (thumb1_movdi_insn): Use "multiple" for type where more than one
16113         instruction is used for a move.
16114         (*arm32_movhf): Likewise.
16115         (*thumb_movdf_insn): Likewise.
16117 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16119         * config/arm/types.md (type): Rename fcpys to fmov.
16120         * config/arm/vfp.md
16121         (*arm_movsi_vfp): Rename type fcpys as fmov.
16122         (*thumb2_movsi_vfp): Likewise
16123         (*movhf_vfp_neon): Likewise
16124         (*movhf_vfp): Likewise
16125         (*movsf_vfp): Likewise
16126         (*thumb2_movsf_vfp): Likewise
16127         (*movsfcc_vfp): Likewise
16128         (*thumb2_movsfcc_vfp): Likewise
16129         * config/aarch64/aarch64-simd.md
16130         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
16131         * config/aarch64/aarch64.md
16132         (*movsi_aarch64): Replace type mov_reg with fmovs.
16133         (*movdi_aarch64): Likewise
16134         (*movsf_aarch64): Likewise
16135         (*movdf_aarch64): Likewise
16136         * config/arm/arm.c
16137         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
16138         * config/arm/iwmmxt.md
16139         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
16140         * config/arm/arm1020e.md: Update with new attributes.
16141         * config/arm/cortex-a15-neon.md: Update with new attributes.
16142         * config/arm/cortex-a5.md: Update with new attributes.
16143         * config/arm/cortex-a53.md: Update with new attributes.
16144         * config/arm/cortex-a7.md: Update with new attributes.
16145         * config/arm/cortex-a8-neon.md: Update with new attributes.
16146         * config/arm/cortex-a9.md: Update with new attributes.
16147         * config/arm/cortex-m4-fpu.md: Update with new attributes.
16148         * config/arm/cortex-r4f.md: Update with new attributes.
16149         * config/arm/marvell-pj4.md: Update with new attributes.
16150         * config/arm/vfp11.md: Update with new attributes.
16152 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16154         * config/aarch64/aarch64.md
16155         (*madd<mode>): Fix type attribute.
16156         (*maddsi_uxtw): Likewise.
16157         (*msub<mode>): Likewise.
16158         (*msubsi_uxtw): Likewise.
16159         (<su_optab>maddsidi4): Likewise.
16160         (<su_optab>msubsidi4): Likewise.
16162 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16164         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
16165         * config/arm/arm.md (core_cycles): Remove fdiv.
16166         * config/arm/vfp.md:
16167         (*sqrtsf2_vfp): Update for attribute changes.
16168         (*sqrtdf2_vfp): Likewise.
16169         * config/aarch64/aarch64.md:
16170         (sqrt<mode>2): Update for attribute changes.
16171         * config/arm/arm1020e.md: Update with new attributes.
16172         * config/arm/cortex-a15-neon.md: Update with new attributes.
16173         * config/arm/cortex-a5.md: Update with new attributes.
16174         * config/arm/cortex-a53.md: Update with new attributes.
16175         * config/arm/cortex-a7.md: Update with new attributes.
16176         * config/arm/cortex-a8-neon.md: Update with new attributes.
16177         * config/arm/cortex-a9.md: Update with new attributes.
16178         * config/arm/cortex-m4-fpu.md: Update with new attributes.
16179         * config/arm/cortex-r4f.md: Update with new attributes.
16180         * config/arm/marvell-pj4.md: Update with new attributes.
16181         * config/arm/vfp11.md: Update with new attributes.
16183 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16185         * config/arm/types.md
16186         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
16187         * config/aarch64/aarch64.md
16188         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
16189         new attributes.
16190         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16191         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
16192         (float<GPI:mode><GPF:mode>2): Likewise.
16193         * config/arm/vfp.md
16194         (*truncsisf2_vfp): Update with new attributes.
16195         (*truncsidf2_vfp): Likewise.
16196         (fixuns_truncsfsi2): Likewise.
16197         (fixuns_truncdfsi2): Likewise.
16198         (*floatsisf2_vfp): Likewise.
16199         (*floatsidf2_vfp): Likewise.
16200         (floatunssisf2): Likewise.
16201         (floatunssidf2): Likewise.
16202         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
16203         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
16204         * config/arm/arm1020e.md: Update with new attributes.
16205         * config/arm/cortex-a15-neon.md: Update with new attributes.
16206         * config/arm/cortex-a5.md: Update with new attributes.
16207         * config/arm/cortex-a53.md: Update with new attributes.
16208         * config/arm/cortex-a7.md: Update with new attributes.
16209         * config/arm/cortex-a8-neon.md: Update with new attributes.
16210         * config/arm/cortex-a9.md: Update with new attributes.
16211         * config/arm/cortex-m4-fpu.md: Update with new attributes.
16212         * config/arm/cortex-r4f.md: Update with new attributes.
16213         * config/arm/marvell-pj4.md: Update with new attributes.
16214         * config/arm/vfp11.md: Update with new attributes.
16216 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16218         * config/aarch64/arm_neon.h
16219         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
16220         (vqtbx<1,2,3,4><q>_s8): Likewise.
16222 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16224         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
16225         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
16226         (add<mode>3): Add type attribute.
16227         (add<mode>3): Likewise.
16228         (usadd<mode>3): Likewise.
16229         (ssadd<mode>3): Likewise.
16230         (sub<mode>3): Likewise.
16231         (sub<mode>3): Likewise.
16232         (ussub<mode>3): Likewise.
16233         (sssub<mode>3): Likewise.
16234         (ssmulsa3): Likewise.
16235         (usmulusa3): Likewise.
16236         (arm_usatsihi): Likewise.
16237         * config/arm/vfp.md
16238         (*movdi_vfp): Add types for all instructions.
16239         (*movdi_vfp_cortexa8): Likewise.
16240         (*movhf_vfp_neon): Likewise.
16241         (*movhf_vfp): Likewise.
16242         (*movdf_vfp): Likewise.
16243         (*thumb2_movdf_vfp): Likewise.
16244         (*thumb2_movdfcc_vfp): Likewise.
16245         * config/arm/arm.md: Add type attribute to all insn patterns.
16246         (*thumb1_adddi3): Add type attribute.
16247         (*arm_adddi3): Likewise.
16248         (*adddi_sesidi_di): Likewise.
16249         (*adddi_zesidi_di): Likewise.
16250         (*thumb1_addsi3): Likewise.
16251         (addsi3_compare0): Likewise.
16252         (*addsi3_compare0_scratch): Likewise.
16253         (*compare_negsi_si): Likewise.
16254         (cmpsi2_addneg): Likewise.
16255         (*addsi3_carryin_<optab>): Likewise.
16256         (*addsi3_carryin_alt2_<optab>): Likewise.
16257         (*addsi3_carryin_clobercc_<optab>): Likewise.
16258         (*subsi3_carryin): Likewise.
16259         (*subsi3_carryin_const): Likewise.
16260         (*subsi3_carryin_compare): Likewise.
16261         (*subsi3_carryin_compare_const): Likewise.
16262         (*arm_subdi3): Likewise.
16263         (*thumb_subdi3): Likewise.
16264         (*subdi_di_zesidi): Likewise.
16265         (*subdi_di_sesidi): Likewise.
16266         (*subdi_zesidi_di): Likewise.
16267         (*subdi_sesidi_di): Likewise.
16268         (*subdi_zesidi_ze): Likewise.
16269         (thumb1_subsi3_insn): Likewise.
16270         (*arm_subsi3_insn): Likewise.
16271         (*anddi3_insn): Likewise.
16272         (*anddi_zesidi_di): Likewise.
16273         (*anddi_sesdi_di): Likewise.
16274         (*ne_zeroextracts): Likewise.
16275         (*ne_zeroextracts): Likewise.
16276         (*ite_ne_zeroextr): Likewise.
16277         (*ite_ne_zeroextr): Likewise.
16278         (*anddi_notdi_di): Likewise.
16279         (*anddi_notzesidi): Likewise.
16280         (*anddi_notsesidi): Likewise.
16281         (andsi_notsi_si): Likewise.
16282         (thumb1_bicsi3): Likewise.
16283         (*iordi3_insn): Likewise.
16284         (*iordi_zesidi_di): Likewise.
16285         (*iordi_sesidi_di): Likewise.
16286         (*thumb1_iorsi3_insn): Likewise.
16287         (*xordi3_insn): Likewise.
16288         (*xordi_zesidi_di): Likewise.
16289         (*xordi_sesidi_di): Likewise.
16290         (*arm_xorsi3): Likewise.
16291         (*andsi_iorsi3_no): Likewise.
16292         (*smax_0): Likewise.
16293         (*smax_m1): Likewise.
16294         (*arm_smax_insn): Likewise.
16295         (*smin_0): Likewise.
16296         (*arm_smin_insn): Likewise.
16297         (*arm_umaxsi3): Likewise.
16298         (*arm_uminsi3): Likewise.
16299         (*minmax_arithsi): Likewise.
16300         (*minmax_arithsi_): Likewise.
16301         (*satsi_<SAT:code>): Likewise.
16302         (arm_ashldi3_1bit): Likewise.
16303         (arm_ashrdi3_1bit): Likewise.
16304         (arm_lshrdi3_1bit): Likewise.
16305         (*arm_negdi2): Likewise.
16306         (*thumb1_negdi2): Likewise.
16307         (*arm_negsi2): Likewise.
16308         (*thumb1_negsi2): Likewise.
16309         (*negdi_extendsid): Likewise.
16310         (*negdi_zero_extend): Likewise.
16311         (*arm_abssi2): Likewise.
16312         (*thumb1_abssi2): Likewise.
16313         (*arm_neg_abssi2): Likewise.
16314         (*thumb1_neg_abss): Likewise.
16315         (one_cmpldi2): Likewise.
16316         (extend<mode>di2): Likewise.
16317         (*compareqi_eq0): Likewise.
16318         (*arm_extendhisi2addsi): Likewise.
16319         (*arm_movdi): Likewise.
16320         (*thumb1_movdi_insn): Likewise.
16321         (*arm_movt): Likewise.
16322         (*thumb1_movsi_insn): Likewise.
16323         (pic_add_dot_plus_four): Likewise.
16324         (pic_add_dot_plus_eight): Likewise.
16325         (tls_load_dot_plus_eight): Likewise.
16326         (*thumb1_movhi_insn): Likewise.
16327         (*thumb1_movsf_insn): Likewise.
16328         (*movdf_soft_insn): Likewise.
16329         (*thumb_movdf_insn): Likewise.
16330         (cbranchsi4_insn): Likewise.
16331         (cbranchsi4_scratch): Likewise.
16332         (*negated_cbranchsi4): Likewise.
16333         (*tbit_cbranch): Likewise.
16334         (*tlobits_cbranch): Likewise.
16335         (*tstsi3_cbranch): Likewise.
16336         (*cbranchne_decr1): Likewise.
16337         (*addsi3_cbranch): Likewise.
16338         (*addsi3_cbranch_scratch): Likewise.
16339         (*arm_cmpdi_insn): Likewise.
16340         (*arm_cmpdi_unsig): Likewise.
16341         (*arm_cmpdi_zero): Likewise.
16342         (*thumb_cmpdi_zero): Likewise.
16343         (*deleted_compare): Likewise.
16344         (*mov_scc): Likewise.
16345         (*mov_negscc): Likewise.
16346         (*mov_notscc): Likewise.
16347         (*cstoresi_eq0_thumb1_insn): Likewise.
16348         (cstoresi_nltu_thumb1): Likewise.
16349         (cstoresi_ltu_thu): Likewise.
16350         (thumb1_addsi3_addgeu): Likewise.
16351         (*arm_jump): Likewise.
16352         (*thumb_jump): Likewise.
16353         (*check_arch2): Likewise.
16354         (arm_casesi_internal): Likewise.
16355         (thumb1_casesi_dispatch): Likewise.
16356         (*arm_indirect_jump): Likewise.
16357         (*thumb1_indirect_jump): Likewise.
16358         (nop): Likewise.
16359         (*and_scc): Likewise.
16360         (*ior_scc): Likewise.
16361         (*compare_scc): Likewise.
16362         (*cond_move): Likewise.
16363         (*cond_arith): Likewise.
16364         (*cond_sub): Likewise.
16365         (*cmp_ite0): Likewise.
16366         (*cmp_ite1): Likewise.
16367         (*cmp_and): Likewise.
16368         (*cmp_ior): Likewise.
16369         (*ior_scc_scc): Likewise.
16370         (*ior_scc_scc_cmp): Likewise.
16371         (*and_scc_scc): Likewise.
16372         (*and_scc_scc_cmp): Likewise.
16373         (*and_scc_scc_nod): Likewise.
16374         (*negscc): Likewise.
16375         (movcond_addsi): Likewise.
16376         (movcond): Likewise.
16377         (*ifcompare_plus_move): Likewise.
16378         (*if_plus_move): Likewise.
16379         (*ifcompare_move_plus): Likewise.
16380         (*if_move_plus): Likewise.
16381         (*ifcompare_arith_arith): Likewise.
16382         (*if_arith_arith): Likewise.
16383         (*ifcompare_arith_move): Likewise.
16384         (*if_arith_move): Likewise.
16385         (*ifcompare_move_arith): Likewise.
16386         (*if_move_arith): Likewise.
16387         (*ifcompare_move_not): Likewise.
16388         (*if_move_not): Likewise.
16389         (*ifcompare_not_move): Likewise.
16390         (*if_not_move): Likewise.
16391         (*ifcompare_shift_move): Likewise.
16392         (*if_shift_move): Likewise.
16393         (*ifcompare_move_shift): Likewise.
16394         (*if_move_shift): Likewise.
16395         (*ifcompare_shift_shift): Likewise.
16396         (*ifcompare_not_arith): Likewise.
16397         (*ifcompare_arith_not): Likewise.
16398         (*if_arith_not): Likewise.
16399         (*ifcompare_neg_move): Likewise.
16400         (*if_neg_move): Likewise.
16401         (*ifcompare_move_neg): Likewise.
16402         (*if_move_neg): Likewise.
16403         (prologue_thumb1_interwork): Likewise.
16404         (*cond_move_not): Likewise.
16405         (*sign_extract_onebit): Likewise.
16406         (*not_signextract_onebit): Likewise.
16407         (stack_tie): Likewise.
16408         (align_4): Likewise.
16409         (align_8): Likewise.
16410         (consttable_end): Likewise.
16411         (consttable_1): Likewise.
16412         (consttable_2): Likewise.
16413         (consttable_4): Likewise.
16414         (consttable_8): Likewise.
16415         (consttable_16): Likewise.
16416         (*thumb1_tablejump): Likewise.
16417         (prefetch): Likewise.
16418         (force_register_use): Likewise.
16419         (thumb_eh_return): Likewise.
16420         (load_tp_hard): Likewise.
16421         (load_tp_soft): Likewise.
16422         (tlscall): Likewise.
16423         (*arm_movtas_ze): Likewise.
16424         (*arm_rev): Likewise.
16425         (*arm_revsh): Likewise.
16426         (*arm_rev16): Likewise.
16427         * config/arm/thumb2.md
16428         (*thumb2_smaxsi3): Likewise.
16429         (*thumb2_sminsi3): Likewise.
16430         (*thumb32_umaxsi3): Likewise.
16431         (*thumb2_uminsi3): Likewise.
16432         (*thumb2_negdi2): Likewise.
16433         (*thumb2_abssi2): Likewise.
16434         (*thumb2_neg_abss): Likewise.
16435         (*thumb2_movsi_insn): Likewise.
16436         (tls_load_dot_plus_four): Likewise.
16437         (*thumb2_movhi_insn): Likewise.
16438         (*thumb2_mov_scc): Likewise.
16439         (*thumb2_mov_negs): Likewise.
16440         (*thumb2_mov_negs): Likewise.
16441         (*thumb2_mov_nots): Likewise.
16442         (*thumb2_mov_nots): Likewise.
16443         (*thumb2_movsicc_): Likewise.
16444         (*thumb2_movsfcc_soft_insn): Likewise.
16445         (*thumb2_indirect_jump): Likewise.
16446         (*thumb2_and_scc): Likewise.
16447         (*thumb2_ior_scc): Likewise.
16448         (*thumb2_ior_scc_strict_it): Likewise.
16449         (*thumb2_cond_move): Likewise.
16450         (*thumb2_cond_arith): Likewise.
16451         (*thumb2_cond_ari): Likewise.
16452         (*thumb2_cond_sub): Likewise.
16453         (*thumb2_negscc): Likewise.
16454         (*thumb2_movcond): Likewise.
16455         (thumb2_casesi_internal): Likewise.
16456         (thumb2_casesi_internal_pic): Likewise.
16457         (*thumb2_alusi3_short): Likewise.
16458         (*thumb2_mov<mode>_shortim): Likewise.
16459         (*thumb2_addsi_short): Likewise.
16460         (*thumb2_subsi_short): Likewise.
16461         (thumb2_addsi3_compare0): Likewise.
16462         (*thumb2_cbz): Likewise.
16463         (*thumb2_cbnz): Likewise.
16464         (*thumb2_one_cmplsi2_short): Likewise.
16465         (*thumb2_negsi2_short): Likewise.
16466         (*orsi_notsi_si): Likewise.
16467         * config/arm/arm1020e.md: Update with new attributes.
16468         * config/arm/arm1026ejs.md: Update with new attributes.
16469         * config/arm/arm1136jfs.md: Update with new attributes.
16470         * config/arm/arm926ejs.md: Update with new attributes.
16471         * config/arm/cortex-a15.md: Update with new attributes.
16472         * config/arm/cortex-a5.md: Update with new attributes.
16473         * config/arm/cortex-a53.md: Update with new attributes.
16474         * config/arm/cortex-a7.md: Update with new attributes.
16475         * config/arm/cortex-a8.md: Update with new attributes.
16476         * config/arm/cortex-a9.md: Update with new attributes.
16477         * config/arm/cortex-m4.md: Update with new attributes.
16478         * config/arm/cortex-r4.md: Update with new attributes.
16479         * config/arm/fa526.md: Update with new attributes.
16480         * config/arm/fa606te.md: Update with new attributes.
16481         * config/arm/fa626te.md: Update with new attributes.
16482         * config/arm/fa726te.md: Update with new attributes.
16484 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16486         * config/aarch64/aarch64-simd.md
16487         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16488         <vwx> iterator to ensure correct register choice.
16489         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16490         (aarch64_sqdmull_n<mode>): Likewise.
16491         (aarch64_sqdmull2_n<mode>_internal): Likewise.
16492         * config/aarch64/arm_neon.h
16493         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16494         (vml<as><q>_n_<su>16): Likewise.
16495         (vml<as>l_high_lane<q>_<su>16): Likewise.
16496         (vml<as>l_high_n_<su>16): Likewise.
16497         (vml<as>l_lane<q>_<su>16): Likewise.
16498         (vml<as>l_n_<su>16): Likewise.
16499         (vmul<q>_lane<q>_<su>16): Likewise.
16500         (vmul<q>_n_<su>16): Likewise.
16501         (vmull_lane<q>_<su>16): Likewise.
16502         (vmull_n_<su>16): Likewise.
16503         (vmull_high_lane<q>_<su>16): Likewise.
16504         (vmull_high_n_<su>16): Likewise.
16505         (vqrdmulh<q>_n_s16): Likewise.
16507 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
16509         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16510         have the correct lane parameter.
16512 2013-09-06  Richard Biener <rguenther@suse.de>
16514         * cfganal.c (control_dependences::~control_dependences):
16515         Properly free all of the vector.
16517 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
16519         PR target/58269
16520         * config/i386/i386.c (ix86_conditional_register_usage):
16521         Proper initialize extended SSE registers.
16523 2013-09-06  Jan Hubicka  <jh@suse.cz>
16525         PR tree-optimization/58311
16526         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16528 2013-09-06  Jan Hubicka  <jh@suse.cz>
16530         * Makefile.in (tree-sra.o): Update dependencies.
16531         * tree-sra.c: Include ipa-utils.h
16532         (scan_function): Use recursive_call_p.
16533         (has_caller_p): New function.
16534         (cgraph_for_node_and_aliases): Count also callers of aliases.
16536 2013-09-06  Jan Hubicka  <jh@suse.cz>
16538         PR middle-end/58094
16539         * cgraph.h (symtab_semantically_equivalent_p): Declare.
16540         * tree-tailcall.c: Include ipa-utils.h.
16541         (find_tail_calls): Use it.
16542         * ipa-pure-const.c (check_call): Likewise.
16543         * ipa-utils.c (recursive_call_p): New function.
16544         * ipa-utils.h (recursive_call_p): Dclare.
16545         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16546         (symtab_semantically_equivalent_p): New function.
16547         * Makefile.in (tree-tailcall.o): Update dependencies.
16549 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
16551         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16552         non-inlinable part.
16554 2013-09-06  Richard Biener  <rguenther@suse.de>
16556         * lto-streamer.h (lto_global_var_decls): Remove.
16557         * Makefile.in (OBJS): Remove lto-symtab.o.
16558         (lto-symtab.o): Remove.
16559         (GTFILES): Remove lto-symtab.c
16560         * lto-symtab.c: Move to lto/
16562 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16564         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16565         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16566         (UNSPEC_FPINT_RINT): New constant definitions.
16567         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16568         definition with 2 attributes.
16569         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16570         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16571         definitions.
16573 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16575         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16576         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16577         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
16578         attribute to "z196_alone".
16579         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16580         "zEC12_simple".
16582 2013-09-06  Richard Biener  <rguenther@suse.de>
16584         * basic-block.h (class control_dependences): New.
16585         * tree-ssa-dce.c (control_dependence_map): Remove.
16586         (cd): New global.
16587         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16588         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16589         find_pdom, find_control_dependence, find_all_control_dependences):
16590         Move to cfganal.c.
16591         (mark_control_dependent_edges_necessary,
16592         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16593         tree_dce_done, perform_tree_ssa_dce): Adjust.
16594         * cfganal.c (set_control_dependence_map_bit,
16595         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16596         find_all_control_dependences): Move from tree-ssa-dce.c and
16597         implement as methods of control_dependences class.
16598         (control_dependences::control_dependences): New.
16599         (control_dependences::~control_dependences): Likewise.
16600         (control_dependences::get_edges_dependent_on): Likewise.
16601         (control_dependences::get_edge): Likewise.
16603 2013-09-04  Jan Hubicka  <jh@suse.cz>
16605         * tree.c (types_same_for_odr): Drop overactive check.
16606         * ipa-devirt.c (hash_type_name): Likewise.
16608 2013-09-04  Jan Hubicka  <jh@suse.cz>
16610         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16611         (analyze_functions): ... here.
16613 2013-09-04  Jan Hubicka  <jh@suse.cz>
16615         PR middle-end/58201
16616         * cgraphunit.c (analyze_functions): Clear AUX fields
16617         after processing; initialize assembler name has.
16619 2013-09-05  Jeff Law  <law@redhat.com>
16621         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16622         from thread_around_empty_block.  Record threading path into PATH.
16623         Recurse if threading through the initial block is successful.
16624         (thread_across_edge): Corresponding changes to slightly simplify.
16626 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16628         * config/aarch64/aarch64.md
16629         (type): Remove frecpe, frecps, frecpx.
16630         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16631         fix to be a TARGET_SIMD instruction.
16632         (aarch64_frecps): Remove.
16633         * config/aarch64/aarch64-simd.md
16634         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16635         (aarch64_frecps<mode>): Handle all float/vector of float modes.
16637 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16638             Sofiane Naci  <sofiane.naci@arm.com>
16640         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16641         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16642         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16643         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16644         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
16645         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16646         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
16647         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
16648         into "clz, "rbit".  Rename "shift" to "shift_imm".
16649         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16650         changes.  Update for attribute changes all occurrences of arlo_* and
16651         shift* types.
16652         * config/arm/arm-fixed.md: Update for attribute changes
16653         all occurrences of arlo_* types.
16654         * config/arm/thumb2.md: Update for attribute changes all occurrences
16655         of arlo_* types.
16656         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
16657         (cortexa7_older_only): Likewise.
16658         (cortexa7_younger):  Likewise.
16659         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16660         (1020alu_shift_op): Likewise.
16661         (1020alu_shift_reg_op): Likewise.
16662         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16663         (alu_shift_op): Likewise.
16664         (alu_shift_reg_op): Likewise.
16665         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16666         (11_alu_shift_op): Likewise.
16667         (11_alu_shift_reg_op): Likewise.
16668         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16669         (9_alu_shift_reg_op): Likewise.
16670         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16671         attribute changes.
16672         (cortex_a15_alu_shift): Likewise.
16673         (cortex_a15_alu_shift_reg): Likewise.
16674         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16675         attribute changes.
16676         (cortex_a5_alu_shift): Likewise.
16677         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16678         attribute changes.
16679         (cortex_a53_alu_shift): Likewise.
16680         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16681         attribute changes.
16682         (cortex_a7_alu_reg): Likewise.
16683         (cortex_a7_alu_shift): Likewise.
16684         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16685         attribute changes.
16686         (cortex_a8_alu_shift): Likewise.
16687         (cortex_a8_alu_shift_reg): Likewise.
16688         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16689         (cortex_a9_dp_shift): Likewise.
16690         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16691         attribute changes.
16692         * config/arm/cortex-r4.md
16693         (cortex_r4_alu): Update for attribute changes.
16694         (cortex_r4_mov): Likewise.
16695         (cortex_r4_alu_shift_reg): Likewise.
16696         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16697         (526_alu_shift_op): Likewise.
16698         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16699         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16700         (626te_alu_shift_op): Likewise.
16701         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16702         (726te_alu_shift_op): Likewise.
16703         (726te_alu_shift_reg_op): Likewise.
16704         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16705         (mp626_alu_shift_op): Likewise.
16706         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16707         (pj4_alu_conds): Likewise.
16708         (pj4_shift): Likewise.
16709         (pj4_shift_conds): Likewise.
16710         (pj4_alu_shift): Likewise.
16711         (pj4_alu_shift_conds): Likewise.
16712         * config/aarch64/aarch64.md: Update for attribute change
16713         all occurrences of arlo_* and shift* types.
16715 2013-09-05  Mike Stump  <mikestump@comcast.net>
16717         * tree.h: Move documentation for tree_function_decl to tree-core.h
16718         with the declaration.
16720 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
16722         PR target/58139
16723         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16724         looking for widest mode.
16726 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
16728         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16730 2013-09-05  Richard Biener  <rguenther@suse.de>
16732         PR tree-optimization/58137
16733         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16734         Do not create vectors of pointers.
16735         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16736         types for the components of the vector initializer.
16737         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16738         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16740 2013-09-05  Martin Jambor  <mjambor@suse.cz>
16742         * ipa-prop.c (remove_described_reference): Accept missing references,
16743         return false if that hppens, otherwise return true.
16744         (cgraph_node_for_jfunc): New function.
16745         (try_decrement_rdesc_refcount): Likewise.
16746         (try_make_edge_direct_simple_call): Use them.
16747         (ipa_edge_removal_hook): Remove references from rdescs.
16748         (ipa_edge_duplication_hook): Clone rdescs and their references
16749         when the new edge has the same caller as the old one.
16750         * cgraph.c (cgraph_resolve_speculation): Remove speculative
16751         reference before removing any edges.
16753 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
16755         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16756         initial store.
16757         * thumb2.md (thumb2_storewb_parisi): New pattern.
16759 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
16761         * config/aarch64/aarch64-option-extensions.def: Add
16762         AARCH64_OPT_EXTENSION of 'crc'.
16763         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16764         (AARCH64_ISA_CRC): Ditto.
16765         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16766         description of the CRC extension.
16768 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16770         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16771         * config/rs6000/linux.h: Ditto.
16772         * alpha/linux.h: Ditto.
16773         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16774         no_c99_libc_has_function.
16775         * config/c6x/uclinux-elf.h: Ditto.
16776         * config/lm32/uclinux-elf.h: Ditto.
16777         * config/m68k/uclinux.h: Ditto.
16778         * config/moxie/uclinux.h: Ditto.
16779         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16780         (crisv32-*-linux*, cris-*-linux*): Ditto.
16781         * config/bfin/bfin.c: Include "tm_p.h".
16783 2013-09-05  Richard Biener  <rguenther@suse.de>
16785         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16786         check for a definition without a basic-block.
16788 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16789             Sofiane Naci <sofiane.naci@arm.com>
16791         * config/aarch64/aarch64.md
16792         (*movti_aarch64): Rename r_2_f and f_2_r.
16793         (*movsf_aarch64): Likewise.
16794         (*movdf_aarch64): Likewise.
16795         (*movtf_aarch64): Likewise.
16796         (aarch64_movdi_<mode>low): Likewise.
16797         (aarch64_movdi_<mode>high): Likewise.
16798         (aarch64_mov<mode>high_di): Likewise.
16799         (aarch64_mov<mode>low_di): Likewise.
16800         (aarch64_movtilow_tilow): Likewise.
16801         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
16802         values to config/arm/types.md
16803         (attribute "conds"): Update for attribute change.
16804         (anddi3_insn): Likewise.
16805         (iordi3_insn): Likewise.
16806         (xordi3_insn): Likewise.
16807         (one_cmpldi2): Likewise.
16808         * config/arm/types.md (type): Add Neon types.
16809         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16810         use "type" attribute.
16811         (movmisalign<mode>_neon_store): Likewise.
16812         (movmisalign<mode>_neon_load): Likewise.
16813         (vec_set<mode>_internal): Likewise.
16814         (vec_setv2di_internal): Likewise.
16815         (vec_extract<mode>): Likewise.
16816         (vec_extractv2di): Likewise.
16817         (add<mode>3_neon): Likewise.
16818         (adddi3_neon): Likewise.
16819         (sub<mode>3_neon): Likewise.
16820         (subdi3_neon): Likewise.
16821         (mul<mode>3_neon): Likewise.
16822         (mul<mode>3add<mode>_neon): Likewise.
16823         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16824         (fma<VCVTF:mode>4)): Likewise.
16825         (fma<VCVTF:mode>4_intrinsic): Likewise.
16826         (fmsub<VCVTF:mode>4)): Likewise.
16827         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16828         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16829         (ior<mode>3): Likewise.
16830         (and<mode>3): Likewise.
16831         (anddi3_neon): Likewise.
16832         (orn<mode>3_neon): Likewise.
16833         (orndi3_neon): Likewise.
16834         (bic<mode>3_neon): Likewise.
16835         (bicdi3_neon): Likewise.
16836         (xor<mode>3): Likewise.
16837         (one_cmpl<mode>2): Likewise.
16838         (abs<mode>2): Likewise.
16839         (neg<mode>2): Likewise.
16840         (umin<mode>3_neon): Likewise.
16841         (umax<mode>3_neon): Likewise.
16842         (smin<mode>3_neon): Likewise.
16843         (smax<mode>3_neon): Likewise.
16844         (vashl<mode>3): Likewise.
16845         (vashr<mode>3_imm): Likewise.
16846         (vlshr<mode>3_imm): Likewise.
16847         (ashl<mode>3_signed): Likewise.
16848         (ashl<mode>3_unsigned): Likewise.
16849         (neon_load_count): Likewise.
16850         (ashldi3_neon_noclobber): Likewise.
16851         (signed_shift_di3_neon): Likewise.
16852         (unsigned_shift_di3_neon): Likewise.
16853         (ashrdi3_neon_imm_noclobber): Likewise.
16854         (lshrdi3_neon_imm_noclobber): Likewise.
16855         (widen_ssum<mode>3): Likewise.
16856         (widen_usum<mode>3): Likewise.
16857         (quad_halves_<code>v4si): Likewise.
16858         (quad_halves_<code>v4sf): Likewise.
16859         (quad_halves_<code>v8hi): Likewise.
16860         (quad_halves_<code>v16qi): Likewise.
16861         (reduc_splus_v2di): Likewise.
16862         (neon_vpadd_internal<mode>): Likewise.
16863         (neon_vpsmin<mode>): Likewise.
16864         (neon_vpsmax<mode>): Likewise.
16865         (neon_vpumin<mode>): Likewise.
16866         (neon_vpumax<mode>): Likewise.
16867         (ss_add<mode>_neon): Likewise.
16868         (us_add<mode>_neon): Likewise.
16869         (ss_sub<mode>_neon): Likewise.
16870         (us_sub<mode>_neon): Likewise.
16871         (neon_vadd<mode>_unspec): Likewise.
16872         (neon_vaddl<mode>): Likewise.
16873         (neon_vaddw<mode>): Likewise.
16874         (neon_vhadd<mode>): Likewise.
16875         (neon_vqadd<mode>): Likewise.
16876         (neon_vaddhn<mode>): Likewise.
16877         (neon_vmul<mode>): Likewise.
16878         (neon_vmla<mode>): Likewise.
16879         (neon_vmlal<mode>): Likewise.
16880         (neon_vmls<mode>): Likewise.
16881         (neon_vmlsl<mode>): Likewise.
16882         (neon_vqdmulh<mode>): Likewise.
16883         (neon_vqdmlal<mode>): Likewise.
16884         (neon_vqdmlsl<mode>): Likewise.
16885         (neon_vmull<mode>): Likewise.
16886         (neon_vqdmull<mode>): Likewise.
16887         (neon_vsub<mode>_unspec): Likewise.
16888         (neon_vsubl<mode>): Likewise.
16889         (neon_vsubw<mode>): Likewise.
16890         (neon_vqsub<mode>): Likewise.
16891         (neon_vhsub<mode>): Likewise.
16892         (neon_vsubhn<mode>): Likewise.
16893         (neon_vceq<mode>): Likewise.
16894         (neon_vcge<mode>): Likewise.
16895         (neon_vcgeu<mode>): Likewise.
16896         (neon_vcgt<mode>): Likewise.
16897         (neon_vcgtu<mode>): Likewise.
16898         (neon_vcle<mode>): Likewise.
16899         (neon_vclt<mode>): Likewise.
16900         (neon_vcage<mode>): Likewise.
16901         (neon_vcagt<mode>): Likewise.
16902         (neon_vtst<mode>): Likewise.
16903         (neon_vabd<mode>): Likewise.
16904         (neon_vabdl<mode>): Likewise.
16905         (neon_vaba<mode>): Likewise.
16906         (neon_vabal<mode>): Likewise.
16907         (neon_vmax<mode>): Likewise.
16908         (neon_vmin<mode>): Likewise.
16909         (neon_vpaddl<mode>): Likewise.
16910         (neon_vpadal<mode>): Likewise.
16911         (neon_vpmax<mode>): Likewise.
16912         (neon_vpmin<mode>): Likewise.
16913         (neon_vrecps<mode>): Likewise.
16914         (neon_vrsqrts<mode>): Likewise.
16915         (neon_vqabs<mode>): Likewise.
16916         (neon_vqneg<mode>): Likewise.
16917         (neon_vcls<mode>): Likewise.
16918         (clz<mode>2): Likewise.
16919         (popcount<mode>2): Likewise.
16920         (neon_vrecpe): Likewise.
16921         (neon_vrsqrte): Likewise.
16922         (neon_vget_lane<mode>_sext_internal): Likewise.
16923         (neon_vget_lane<mode>_zext_internal): Likewise.
16924         (neon_vdup_n<mode>): Likewise.
16925         (neon_vdup_nv2di): Likewise.
16926         (neon_vdpu_lane<mode>_internal): Likewise.
16927         (neon_vswp<mode>): Likewise.
16928         (float<mode><V_cvtto>2): Likewise.
16929         (floatuns<mode><V_cvtto>2): Likewise.
16930         (fix_trunc<mode><V_cvtto>)2): Likewise
16931         (fixuns_trunc<mode><V_cvtto)2): Likewise.
16932         (neon_vcvt<mode>): Likewise.
16933         (neon_vcvtv4sfv4hf): Likewise.
16934         (neon_vcvtv4hfv4sf): Likewise.
16935         (neon_vcvt_n<mode>): Likewise.
16936         (neon_vmovn<mode>): Likewise.
16937         (neon_vqmovn<mode>): Likewise.
16938         (neon_vqmovun<mode>): Likewise.
16939         (neon_vmovl<mode>): Likewise.
16940         (neon_vmul_lane<mode>): Likewise.
16941         (neon_vmull_lane<mode>): Likewise.
16942         (neon_vqdmull_lane<mode>): Likewise.
16943         (neon_vqdmulh_lane<mode>): Likewise.
16944         (neon_vmla_lane<mode>): Likewise.
16945         (neon_vmlal_lane<mode>): Likewise.
16946         (neon_vqdmlal_lane<mode>): Likewise.
16947         (neon_vmls_lane<mode>): Likewise.
16948         (neon_vmlsl_lane<mode>): Likewise.
16949         (neon_vqdmlsl_lane<mode>): Likewise.
16950         (neon_vext<mode>): Likewise.
16951         (neon_vrev64<mode>): Likewise.
16952         (neon_vrev32<mode>): Likewise.
16953         (neon_vrev16<mode>): Likewise.
16954         (neon_vbsl<mode>_internal): Likewise.
16955         (neon_vshl<mode>): Likewise.
16956         (neon_vqshl<mode>): Likewise.
16957         (neon_vshr_n<mode>): Likewise.
16958         (neon_vshrn_n<mode>): Likewise.
16959         (neon_vqshrn_n<mode>): Likewise.
16960         (neon_vqshrun_n<mode>): Likewise.
16961         (neon_vshl_n<mode>): Likewise.
16962         (neon_vqshl_n<mode>): Likewise.
16963         (neon_vqshlu_n<mode>): Likewise.
16964         (neon_vshll_n<mode>): Likewise.
16965         (neon_vsra_n<mode>): Likewise.
16966         (neon_vsri_n<mode>): Likewise.
16967         (neon_vsli_n<mode>): Likewise.
16968         (neon_vtbl1v8qi): Likewise.
16969         (neon_vtbl2v8qi): Likewise.
16970         (neon_vtbl3v8qi): Likewise.
16971         (neon_vtbl4v8qi): Likewise.
16972         (neon_vtbx1v8qi): Likewise.
16973         (neon_vtbx2v8qi): Likewise.
16974         (neon_vtbx3v8qi): Likewise.
16975         (neon_vtbx4v8qi): Likewise.
16976         (neon_vtrn<mode>_internal): Likewise.
16977         (neon_vzip<mode>_internal): Likewise.
16978         (neon_vuzp<mode>_internal): Likewise.
16979         (neon_vld1<mode>): Likewise.
16980         (neon_vld1_lane<mode>): Likewise.
16981         (neon_vld1_dup<mode>): Likewise.
16982         (neon_vld1_dupv2di): Likewise.
16983         (neon_vst1<mode>): Likewise.
16984         (neon_vst1_lane<mode>): Likewise.
16985         (neon_vld2<mode>): Likewise.
16986         (neon_vld2_lane<mode>): Likewise.
16987         (neon_vld2_dup<mode>): Likewise.
16988         (neon_vst2<mode>): Likewise.
16989         (neon_vst2_lane<mode>): Likewise.
16990         (neon_vld3<mode>): Likewise.
16991         (neon_vld3qa<mode>): Likewise.
16992         (neon_vld3qb<mode>): Likewise.
16993         (neon_vld3_lane<mode>): Likewise.
16994         (neon_vld3_dup<mode>): Likewise.
16995         (neon_vst3<mode>): Likewise.
16996         (neon_vst3qa<mode>): Likewise.
16997         (neon_vst3qb<mode>): Likewise.
16998         (neon_vst3_lane<mode>): Likewise.
16999         (neon_vld4<mode>): Likewise.
17000         (neon_vld4qa<mode>): Likewise.
17001         (neon_vld4qb<mode>): Likewise.
17002         (neon_vld4_lane<mode>): Likewise.
17003         (neon_vld4_dup<mode>): Likewise.
17004         (neon_vst4<mode>): Likewise.
17005         (neon_vst4qa<mode>): Likewise.
17006         (neon_vst4qb<mode>): Likewise.
17007         (neon_vst4_lane<mode>): Likewise.
17008         (neon_vec_unpack<US>_lo_<mode>): Likewise.
17009         (neon_vec_unpack<US>_hi_<mode>): Likewise.
17010         (neon_vec_<US>mult_lo_<mode>): Likewise.
17011         (neon_vec_<US>mult_hi_<mode>): Likewise.
17012         (neon_vec_<US>shiftl_<mode>): Likewise.
17013         (neon_unpack<US>_<mode>): Likewise.
17014         (neon_vec_<US>mult_<mode>): Likewise.
17015         (vec_pack_trunc_<mode>): Likewise.
17016         (neon_vec_pack_trunk_<mode>): Likewise.
17017         (neon_vabd<mode>_2): Likewise.
17018         (neon_vabd<mode>_3): Likewise.
17019         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
17020         (thumb2_movsi_vfp): Likewise.
17021         (movdi_vfp): Likewise.
17022         (movdi_vfp_cortexa8): Likewise.
17023         (movhf_vfp_neon): Likewise.
17024         (movhf_vfp): Likewiwse.
17025         (movsf_vfp): Likewiwse.
17026         (thumb2_movsf_vfp): Likewiwse.
17027         (movdf_vfp): Likewise.
17028         (thumb2_movdf_vfp): Likewise.
17029         (movsfcc_vfp): Likewise.
17030         (thumb2_movsfcc_vfp): Likewise.
17031         (movdfcc_vfp): Likewise.
17032         (thumb2_movdfcc_vfp): Likewise.
17033         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
17034         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
17035         (v10_v2c): Likewise.
17036         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
17037         attribute change.
17038         (cortex_a15_neon_int_2): Likewise.
17039         (cortex_a15_neon_int_3): Likewise.
17040         (cortex_a15_neon_int_4): Likewise.
17041         (cortex_a15_neon_int_5): Likewise.
17042         (cortex_a15_neon_vqneg_vqabs): Likewise.
17043         (cortex_a15_neon_vmov): Likewise.
17044         (cortex_a15_neon_vaba): Likewise.
17045         (cortex_a15_neon_vaba_qqq): Likewise.
17046         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17047         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17048         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
17049         scalar_64_32_long_scalar): Likewise.
17050         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17051         (cortex_a15_neon_mla_qqq_8_16): Likewise.
17052         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17053         lotype_qdd_64_32_long): Likewise.
17054         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17055         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17056         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
17057         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17058         (cortex_a15_neon_shift_1): Likewise.
17059         (cortex_a15_neon_shift_2): Likewise.
17060         (cortex_a15_neon_shift_3): Likewise.
17061         (cortex_a15_neon_vshl_ddd): Likewise.
17062         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17063         (cortex_a15_neon_vsra_vrsra): Likewise.
17064         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
17065         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
17066         (cortex_a15_neon_fp_vmul_ddd): Likewise.
17067         (cortex_a15_neon_fp_vmul_qqd): Likewise.
17068         (cortex_a15_neon_fp_vmla_ddd): Likewise.
17069         (cortex_a15_neon_fp_vmla_qqq): Likewise.
17070         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
17071         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
17072         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17073         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17074         (cortex_a15_neon_bp_simple): Likewise.
17075         (cortex_a15_neon_bp_2cycle): Likewise.
17076         (cortex_a15_neon_bp_3cycle): Likewise.
17077         (cortex_a15_neon_vld1_1_2_regs): Likewise.
17078         (cortex_a15_neon_vld1_3_4_regs): Likewise.
17079         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17080         (cortex_a15_neon_vld2_4_regs): Likewise.
17081         (cortex_a15_neon_vld3_vld4): Likewise.
17082         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17083         (cortex_a15_neon_vst1_3_4_regs): Likewise.
17084         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
17085         (cortex_a15_neon_vst3_vst4): Likewise.
17086         (cortex_a15_neon_vld1_vld2_lane): Likewise.
17087         (cortex_a15_neon_vld3_vld4_lane" 10
17088         (cortex_a15_neon_vst1_vst2_lane): Likewise.
17089         (cortex_a15_neon_vst3_vst4_lane): Likewise.
17090         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
17091         (cortex_a15_neon_ldm_2): Likewise.0
17092         (cortex_a15_neon_stm_2): Likewise.
17093         (cortex_a15_neon_mcr): Likewise.
17094         (cortex_a15_neon_mcr_2_mcrr): Likewise.
17095         (cortex_a15_neon_mrc): Likewise.
17096         (cortex_a15_neon_mrrc): Likewise.
17097         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
17098         change.
17099         (cortex_a15_alu_shift): Likewise.
17100         (cortex_a15_alu_shift_reg): Likewise.
17101         (cortex_a15_mult32): Likewise.
17102         (cortex_a15_mult64): Likewise.
17103         (cortex_a15_block): Likewise.
17104         (cortex_a15_branch): Likewise.
17105         (cortex_a15_load1): Likewise.
17106         (cortex_a15_load3): Likewise.
17107         (cortex_a15_store1): Likewise.
17108         (cortex_a15_store3): Likewise.
17109         (cortex_a15_call): Likewise.
17110         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
17111         (cortex_a5_f2r): Likewise.
17112         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
17113         change.
17114         (cortex_a53_f2r): Likewise.
17115         * config/arm/cortex-a7.md
17116         (cortex_a7_branch): Update for attribute change.
17117         (cortex_a7_call): Likewise.
17118         (cortex_a7_alu_imm): Likewise.
17119         (cortex_a7_alu_reg): Likewise.
17120         (cortex_a7_alu_shift): Likewise.
17121         (cortex_a7_mul): Likewise.
17122         (cortex_a7_load1): Likewise.
17123         (cortex_a7_store1): Likewise.
17124         (cortex_a7_load2): Likewise.
17125         (cortex_a7_store2): Likewise.
17126         (cortex_a7_load3): Likewise.
17127         (cortex_a7_store3): Likewise.
17128         (cortex_a7_load4): Likewise.
17129         (cortex_a7_store4): Likewise.
17130         (cortex_a7_fpalu): Likewise.
17131         (cortex_a7_fconst): Likewise.
17132         (cortex_a7_fpmuls): Likewise.
17133         (cortex_a7_neon_mul): Likewise.
17134         (cortex_a7_fpmacs): Likewise.
17135         (cortex_a7_neon_mla: Likewise.
17136         (cortex_a7_fpmuld: Likewise.
17137         (cortex_a7_fpmacd: Likewise.
17138         (cortex_a7_fpfmad: Likewise.
17139         (cortex_a7_fdivs: Likewise.
17140         (cortex_a7_fdivd: Likewise.
17141         (cortex_a7_r2f: Likewise.
17142         (cortex_a7_f2r: Likewise.
17143         (cortex_a7_f_flags: Likewise.
17144         (cortex_a7_f_loads: Likewise.
17145         (cortex_a7_f_loadd: Likewise.
17146         (cortex_a7_f_stores: Likewise.
17147         (cortex_a7_f_stored: Likewise.
17148         (cortex_a7_neon): Likewise.
17149         * config/arm/cortex-a8-neon.md
17150         (cortex_a8_neon_mrc): Update for attribute change.
17151         (cortex_a8_neon_mrrc): Likewise.
17152         (cortex_a8_neon_int_1): Likewise.
17153         (cortex_a8_neon_int_2): Likewise.
17154         (cortex_a8_neon_int_3): Likewise.
17155         (cortex_a8_neon_int_4): Likewise.
17156         (cortex_a8_neon_int_5): Likewise.
17157         (cortex_a8_neon_vqneg_vqabs): Likewise.
17158         (cortex_a8_neon_vmov): Likewise.
17159         (cortex_a8_neon_vaba): Likewise.
17160         (cortex_a8_neon_vaba_qqq): Likewise.
17161         (cortex_a8_neon_vsma): Likewise.
17162         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17163         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17164         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17165         long_scalar): Likewise.
17166         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17167         (cortex_a8_neon_mla_qqq_8_16): Likewise.
17168         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17169         long_scalar_qdd_64_32_long): Likewise.
17170         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17171         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17172         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
17173         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17174         (cortex_a8_neon_shift_1): Likewise.
17175         (cortex_a8_neon_shift_2): Likewise.
17176         (cortex_a8_neon_shift_3): Likewise.
17177         (cortex_a8_neon_vshl_ddd): Likewise.
17178         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17179         (cortex_a8_neon_vsra_vrsra): Likewise.
17180         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
17181         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
17182         (cortex_a8_neon_fp_vsum): Likewise.
17183         (cortex_a8_neon_fp_vmul_ddd): Likewise.
17184         (cortex_a8_neon_fp_vmul_qqd): Likewise.
17185         (cortex_a8_neon_fp_vmla_ddd): Likewise.
17186         (cortex_a8_neon_fp_vmla_qqq): Likewise.
17187         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
17188         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
17189         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17190         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17191         (cortex_a8_neon_bp_simple): Likewise.
17192         (cortex_a8_neon_bp_2cycle): Likewise.
17193         (cortex_a8_neon_bp_3cycle): Likewise.
17194         (cortex_a8_neon_ldr): Likewise.
17195         (cortex_a8_neon_str): Likewise.
17196         (cortex_a8_neon_vld1_1_2_regs): Likewise.
17197         (cortex_a8_neon_vld1_3_4_regs): Likewise.
17198         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17199         (cortex_a8_neon_vld2_4_regs): Likewise.
17200         (cortex_a8_neon_vld3_vld4): Likewise.
17201         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17202         (cortex_a8_neon_vst1_3_4_regs): Likewise.
17203         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
17204         (cortex_a8_neon_vst3_vst4): Likewise.
17205         (cortex_a8_neon_vld1_vld2_lane): Likewise.
17206         (cortex_a8_neon_vld3_vld4_lane): Likewise.
17207         (cortex_a8_neon_vst1_vst2_lane): Likewise.
17208         (cortex_a8_neon_vst3_vst4_lane): Likewise.
17209         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
17210         (cortex_a8_neon_mcr): Likewise.
17211         (cortex_a8_neon_mcr_2_mcrr): Likewise.
17212         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17213         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
17214         change.
17215         (ca9_neon_mrrc): Likewise.
17216         (cortex_a9_neon_int_1): Likewise.
17217         (cortex_a9_neon_int_2): Likewise.
17218         (cortex_a9_neon_int_3): Likewise.
17219         (cortex_a9_neon_int_4): Likewise.
17220         (cortex_a9_neon_int_5): Likewise.
17221         (cortex_a9_neon_vqneg_vqabs): Likewise.
17222         (cortex_a9_neon_vmov): Likewise.
17223         (cortex_a9_neon_vaba): Likewise.
17224         (cortex_a9_neon_vaba_qqq): Likewise.
17225         (cortex_a9_neon_vsma): Likewise.
17226         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17227         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17228         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17229         long_scalar): Likewise.
17230         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17231         (cortex_a9_neon_mla_qqq_8_16): Likewise.
17232         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17233         long_scalar_qdd_64_32_long): Likewise.
17234         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17235         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17236         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
17237         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17238         (cortex_a9_neon_shift_1): Likewise.
17239         (cortex_a9_neon_shift_2): Likewise.
17240         (cortex_a9_neon_shift_3): Likewise.
17241         (cortex_a9_neon_vshl_ddd): Likewise.
17242         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17243         (cortex_a9_neon_vsra_vrsra): Likewise.
17244         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
17245         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
17246         (cortex_a9_neon_fp_vsum): Likewise.
17247         (cortex_a9_neon_fp_vmul_ddd): Likewise.
17248         (cortex_a9_neon_fp_vmul_qqd): Likewise.
17249         (cortex_a9_neon_fp_vmla_ddd): Likewise.
17250         (cortex_a9_neon_fp_vmla_qqq): Likewise.
17251         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
17252         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
17253         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17254         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17255         (cortex_a9_neon_bp_simple): Likewise.
17256         (cortex_a9_neon_bp_2cycle): Likewise.
17257         (cortex_a9_neon_bp_3cycle): Likewise.
17258         (cortex_a9_neon_ldr): Likewise.
17259         (cortex_a9_neon_str): Likewise.
17260         (cortex_a9_neon_vld1_1_2_regs): Likewise.
17261         (cortex_a9_neon_vld1_3_4_regs): Likewise.
17262         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17263         (cortex_a9_neon_vld2_4_regs): Likewise.
17264         (cortex_a9_neon_vld3_vld4): Likewise.
17265         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17266         (cortex_a9_neon_vst1_3_4_regs): Likewise.
17267         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
17268         (cortex_a9_neon_vst3_vst4): Likewise.
17269         (cortex_a9_neon_vld1_vld2_lane): Likewise.
17270         (cortex_a9_neon_vld3_vld4_lane): Likewise.
17271         (cortex_a9_neon_vst1_vst2_lane): Likewise.
17272         (cortex_a9_neon_vst3_vst4_lane): Likewise.
17273         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
17274         (cortex_a9_neon_mcr): Likewise.
17275         (cortex_a9_neon_mcr_2_mcrr): Likewise.
17276         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17277         (cortex_a9_fps): Likewise.
17278         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
17279         change.
17280         (cortex_m4_fmuls): Likewise.
17281         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
17282         change.
17283         (cortex_r4_mrc): Likewise.
17284         * config/arm/iterators.md: Update comment referring to neon_type.
17285         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
17286         (iwmmxt_movsi_insn): Likewise.
17287         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
17288         attribute change.
17289         (pj4_core_to_vfp): Likewise.
17290         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
17291         attribute change.
17292         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
17293         (vfp_fstore): Likewise.
17294         * doc/md.texi: Change references to neon_type to refer to type.
17296 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
17298         * tree.h (DECL_BUILT_IN): Fix typo in comment.
17300 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
17302         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
17303         lglobl if not weak.
17305 2013-09-04  Easwaran Raman  <eraman@google.com>
17307         PR middle-end/57370
17308         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
17309         (build_and_add_sum): Use it.
17310         (appears_later_in_bb): Simplify code.
17312 2013-09-04  Teresa Johnson  <tejohnson@google.com>
17314         * dumpfile.c (dump_finish): Don't close stderr/stdout.
17316 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
17318         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
17320 2013-09-04  Jan Hubicka  <jh@suse.cz>
17322         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
17323         * ipa-devirt.c: Include diganostic.h
17324         (odr_type_d): Add types and types_set.
17325         (hash_type_name): Work for types with vtables during LTO.
17326         (odr_hasher::remove): Fix comment; destroy types_set.
17327         (add_type_duplicate): New function,
17328         (get_odr_type): Use it.
17329         (dump_type_inheritance_graph): Dump type duplicates.
17330         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
17331         graph.
17332         * tree.c (types_same_for_odr): Give exact answers on types with
17333         virtual tables.
17335 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
17337         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
17338         explaining their differences.
17340 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
17342         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
17344 2013-09-03  Jeff Law  <law@redhat.com>
17346         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17347         when not threading through a joiner block.  Pass joiner/no joiner
17348         state to register_jump_thread.
17349         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17350         state from argument rather than implying on path length.
17351         Dump the entire jump thread path into debugging dump.
17352         * tree-flow.h (register_jump_thread): Update prototype.
17354 2013-08-29  Xinliang David Li  <davidxl@google.com>
17356         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17357         Remove a trivial gcc_assert.
17359 2013-08-29  Xinliang David Li  <davidxl@google.com>
17361         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17362         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17363         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17364         Delay base decl alignment adjustment.
17365         * tree-vectorizer.c (vect_destroy_datarefs): New function.
17366         * tree-vectorizer.h: New data structure.
17367         (set_dr_misalignment): New function.
17368         (dr_misalignment): Ditto.
17369         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17370         (vectorizable_load): Ditto.
17371         (ensure_base_align): New function.
17372         (vectorize_loops): Add dbg_cnt support.
17373         (execute_vect_slp): Ditto.
17374         * dbgcnt.def: New debug counter.
17375         * Makefile: New dependency.
17377 2013-09-03  Meador Inge  <meadori@codesourcery.com>
17379         Revert:
17381         2013-08-30  Meador Inge  <meadori@codesourcery.com>
17383         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17385 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
17387         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17388         function descriptor.
17390 2013-09-03  Richard Biener  <rguenther@suse.de>
17392         * tree-affine.c (add_elt_to_tree): Fix association issue,
17393         avoid useless converts and make sure to always return a
17394         properly typed result.
17396 2013-09-03  Richard Biener  <rguenther@suse.de>
17398         PR middle-end/57656
17399         * fold-const.c (negate_expr_p): Fix division case.
17400         (negate_expr): Likewise.
17402 2013-09-03  Richard Biener  <rguenther@suse.de>
17404         PR lto/58285
17405         * tree-streamer-out.c: Include tm.h.
17406         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17408 2013-09-03  Jan Hubicka  <jh@suse.cz>
17410         * tree-profile.c (tree_profiling): Cleanup CFG when done.
17412 2013-09-03  Alan Modra  <amodra@gmail.com>
17414         * config.gcc (powerpc*-*-linux*): Add support for little-endian
17415         multilibs to big-endian target and vice versa.
17416         * config/rs6000/t-linux64: Use := assignment on all vars.
17417         (MULTILIB_EXTRA_OPTS): Remove fPIC.
17418         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17419         * config/rs6000/t-linux64le: New file.
17420         * config/rs6000/t-linux64bele: New file.
17421         * config/rs6000/t-linux64lebe: New file.
17423 2013-09-02  Jan Hubicka  <jh@suse.cz>
17425         * ipa-inline-transform.c (inline_transform): Do not
17426         optimize_inline_calls when not optimizing.
17428 2013-09-02  Jan Hubicka  <jh@suse.cz>
17430         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17431         duplicated nodes for assembler names.
17432         * symtab.c (symtab_unregister_node): Do not attempt to unlink
17433         hard registers from assembler name hash.
17435 2013-09-02  Jan Hubicka  <jh@suse.cz>
17437         * ipa-split.c (execute_split_functions): Split externally visible
17438         functions called once.
17440 2013-09-02  Martin Jambor  <mjambor@suse.cz>
17442         PR ipa/58106
17443         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17444         linked list.  When finding the correct duplicate, also consider also
17445         the caller in additon to its inlined_to node.
17447 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
17449         * config/aarch64/aarch64-simd-builtins.def
17450         (dup_lane_scalar): Remove.
17451         * config/aarch64/aarch64-simd.md
17452         (aarch64_simd_dup): Add 'w->w' alternative.
17453         (aarch64_dup_lane<mode>): Allow for VALL.
17454         (aarch64_dup_lane_scalar<mode>): Remove.
17455         (aarch64_dup_lane_<vswap_width_name><mode>): New.
17456         (aarch64_get_lane_signed<mode>): Add w->w altenative.
17457         (aarch64_get_lane_unsigned<mode>): Likewise.
17458         (aarch64_get_lane<mode>): Likewise.
17459         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17460         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17461         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17462         (VCON): Change container of V2SF.
17463         (vswap_width_name): Likewise.
17464         * config/aarch64/arm_neon.h
17465         (__aarch64_vdup_lane_any): New.
17466         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17467         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17468         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17470 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
17472         PR middle-end/56382
17473         * expr.c (emit_move_complex): Do not move complex FP values as parts if
17474         the source or the destination is a single hard register.
17476 2013-09-02  Richard Biener  <rguenther@suse.de>
17478         PR middle-end/57511
17479         * tree-scalar-evolution.c (instantiate_scev_name): Allow
17480         non-linear SCEVs.
17482 2013-09-02  Richard Biener  <rguenther@suse.de>
17484         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17485         arithmetic to sizetype.
17487 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
17489         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17490         Find auto-increment use both before and after candidate.
17492 2013-09-02  Marek Polacek  <polacek@redhat.com>
17494         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17496 2013-09-01  Jan Hubicka  <jh@suse.cz>
17498         * Makefile.in: Add ipa-profile.o
17499         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17500         * cgraph.c (struct cgraph_propagate_frequency_data,
17501         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17502         ipa-profile.c; replace cgraph_ by ipa_ prefix.
17503         * cgraph.h (cgraph_propagate_frequency): Remove.
17504         * ipa-inline-analysis.c: Include ipa-utils.h;
17505         drop duplicated cfgloop.h.
17506         (inline_update_callee_summaries): Update.
17507         * ipa-profile.c: New file.
17508         * ipa-utils.h (ipa_propagate_frequency): Declare.
17509         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17510         data-streamer.h, value-prof.h.
17511         (symtab_remove_unreachable_nodes): Update profile.
17512         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17513         account_time_size, cmp_counts, dump_histogram,
17514         ipa_profile_generate_summary, ipa_profile_write_summary,
17515         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17516         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17517         Move to ipa-profile.c.
17519 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
17521         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17523 2013-09-01  Jan Hubicka  <jh@suse.cz>
17525         * common.opt (fdevirtualize-speculatively): New function.
17526         * invoke.texi (fdevirtualize-speculatively): Document.
17527         * ipa-devirt.c: Include ipa-inline.h
17528         (likely_target_p): New function.
17529         (ipa_devirt): New function.
17530         (gate_ipa_devirt): New function.
17531         (pass_data_ipa_devirt): New static var.
17532         (pass_ipa_devirt): Likewise.
17533         (make_pass_ipa_devirt): New function.
17534         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17535         (common_handle_option): Disable devirtualization when
17536         value range profiling is available.
17537         * passes.def (pass_ipa_devirt): Add.
17538         * timever.def (TV_IPA_DEVIRT): New timevar.
17539         * tree-pass.h (make_pass_ipa_devirt):
17541 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
17543         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17544         include sanitize(undefined).
17546 2013-08-31  Diego Novillo  <dnovillo@google.com>
17548         * Makefile.in (TREE_CORE_H): Define.
17549         (TREE_H): Use.
17550         (GTFILES): Add tree-core.h.
17551         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17552         size the array.
17553         * tree-core.h: New file.
17554         Move all data structures, enum, typedefs, global
17555         declarations and constants from ...
17556         * tree.h: ... here.
17558 2013-08-31  Jan Hubicka  <jh@suse.cz>
17560         * bulitins.c (expand_builtin): Do not early exit for gcov
17561         instrumented functions.
17563 2013-08-31  Marek Polacek  <polacek@redhat.com>
17565         * ubsan.c: Include tm_p.h.
17567 2013-08-31  Jan Hubicka  <jh@suse.cz>
17569         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17570         warning.
17572         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17573         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17574         * tree-cfg.c (verify_gimple_label): ... here.
17575         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17576         (ipa_merge_profiles): New function.
17577         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17578         (lto_input_function_body): Likewise.
17579         * ipa-utils.h (ipa_merge_profiles): Declare.
17580         * lto-streamer.h (lto_input_function_body): Update prototype.
17581         (emit_label_in_global_context_p): Remove.
17582         * lto-symtab.c: Include ipa-utils.h
17583         (lto_cgraph_replace_node): Use ipa_merge_profiles.
17585 2013-08-31  Jan Hubicka  <jh@suse.cz>
17587         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17589 2013-08-31  Jan Hubicka  <jh@suse.cz>
17591         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17593 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
17595         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17596         "cmp" RTX before signed_comparison_operator check to account
17597         for "code" changes.
17599 2013-08-30  Jan Hubicka  <jh@suse.cz>
17601         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17602         (detect_type_change_1): Rename to ...
17603         (detect_type_change): ... this one; early return on non-polymorphic
17604         types.
17605         (detect_type_change_ssa): Add comp_type parameter; update
17606         use of detect_type_change.
17607         (compute_complex_assign_jump_func): Add param_type parameter;
17608         update use of detect_type_change_ssa.
17609         (compute_complex_ancestor_jump_func): Likewise.
17610         (ipa_get_callee_param_type): New function.
17611         (ipa_compute_jump_functions_for_edge): Compute parameter type;
17612         update calls to the jump function computation functions.
17614 2013-08-30  Teresa Johnson  <tejohnson@google.com>
17615             Steven Bosscher  <steven@gcc.gnu.org>
17617         * cfgrtl.c (fixup_new_cold_bb): New routine.
17618         (commit_edge_insertions): Invoke fixup_partitions.
17619         (find_partition_fixes): New routine.
17620         (fixup_partitions): Ditto.
17621         (verify_hot_cold_block_grouping): Update comments.
17622         (rtl_verify_edges): Invoke find_partition_fixes.
17623         (rtl_verify_bb_pointers): Update comments.
17624         (rtl_verify_bb_layout): Ditto.
17625         * basic-block.h (probably_never_executed_edge_p): Declare.
17626         (fixup_partitions): Ditto.
17627         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17628         * bb-reorder.c (sanitize_hot_paths): New function.
17629         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17630         sanitize_hot_paths.
17631         * predict.c (probably_never_executed_edge_p): New routine.
17632         * cfg.c (check_bb_profile): Add partition insanity warnings.
17634 2013-08-30  Meador Inge  <meadori@codesourcery.com>
17636         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17638 2013-08-30  Marek Polacek  <polacek@redhat.com>
17640         * Makefile.in (ubsan.o): Add.
17641         (c-family/c-ubsan.o): Add.
17642         (builtins.o): Add ubsan.h dependency.
17643         * ubsan.h: New file.
17644         * ubsan.c: New file.
17645         * common.opt: Add -fsanitize=undefined option.
17646         (flag_sanitize): Add variable.
17647         (fsanitize=): Add option.  Add Driver.
17648         (fsanitize=thread): Remove option.
17649         (fsanitize=address): Likewise.
17650         (static-libubsan): New option.
17651         * doc/invoke.texi: Document the new flag and -static-libubsan.
17652         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17653         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17654         * builtin-attrs.def (ATTR_COLD): Define.
17655         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17656         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17657         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17658         * flag-types.h (sanitize_code): New enum.
17659         * opts.c (common_handle_option): Parse command line arguments
17660         of -fsanitize=.  Add -fsanitize=unreachable option.
17661         * varasm.c (get_variable_section): Adjust.
17662         (assemble_noswitch_variable): Likewise.
17663         (assemble_variable): Likewise.
17664         (output_constant_def_contents): Likewise.
17665         (categorize_decl_for_section): Likewise.
17666         (place_block_symbol): Likewise.
17667         (output_object_block): Likewise.
17668         * builtins.def: Likewise.
17669         * toplev.c (compile_file): Likewise.
17670         (process_options): Likewise.
17671         * cppbuiltin.c: Likewise.
17672         * tsan.c (tsan_pass): Likewise.
17673         (tsan_gate): Likewise.
17674         (tsan_gate_O0): Likewise.
17675         * cfgexpand.c (partition_stack_vars): Likewise.
17676         (expand_stack_vars): Likewise.
17677         (defer_stack_allocation): Likewise.
17678         (expand_used_vars): Likewise.
17679         * cfgcleanup.c (old_insns_match_p): Likewise.
17680         * asan.c (asan_finish_file): Likewise.
17681         (asan_instrument): Likewise.
17682         (gate_asan): Likewise.
17683         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17684         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17685         (asan_global_struct): Use pointer_sized_int_node instead
17686         calling build_nonstandard_integer_type.
17687         (initialize_sanitizer_builtins): Likewise.
17688         (asan_finish_file): Likewise.
17689         * gcc.c: Document %{%:function(args):X}.
17690         (static_spec_functions): Add sanitize.
17691         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17692         store funcval != NULL there.
17693         (do_spec_1): Adjust handle_spec_function caller.
17694         (handle_braces): Allow %:function(args) as condition.
17695         (sanitize_spec_function): New function.
17696         (ADD_STATIC_LIBUBSAN_LIBS): Define.
17697         (LIBUBSAN_SPEC): Likewise.
17698         (LIBUBSAN_EARLY_SPEC): Likewise.
17699         (SANITIZER_SPEC): Handle libubsan.
17700         (SANITIZER_EARLY_SPEC): Likewise.
17701         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17702         instead of fsanitize=address.
17703         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17704         instead of fsanitize=address*.
17705         * builtins.c: Include ubsan.h.
17706         (fold_builtin_0): Instrument __builtin_unreachable.
17707         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17708         instead of flag_asan.
17709         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17710         (pointer_sized_int_node): Define.
17711         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17713 2013-08-30  Mike Stump  <mikestump@comcast.net>
17715         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17716         with RE patterns.
17718 2013-08-29  Jan Hubicka  <jh@suse.cz>
17720         * cgraph.c (cgraph_function_body_availability): Handle weakref
17721         correctly.
17722         * passes.def: Remove pass_fixup_cfg.
17723         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17724         track when we need to remove functions.
17725         (gate_ipa_inline): Execute inlining always; add comment why.
17726         (pass_data_ipa_inline): Remove TODO_remove_functions.
17727         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17728         do not produce summaries.
17729         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17730         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17731         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17732         constant pool and vtable.
17734 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
17736         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17737         New arm_neon.h's internal macros to specify 64-bit constants.
17738         Avoid using stdint.h's macros.
17740 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17742         * recog.c (verify_changes): Verify that changes[i].old is non-zero
17743         before applying REG_P.
17745 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
17747         PR tree-optimization/58277
17748         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17749         after seeing too many stmts with vdef in between dombb and current
17750         bb, invalidate everything.
17752 2013-08-30  Richard Biener  <rguenther@suse.de>
17754         * fold-const.c (fold_single_bit_test): Fix overflow test.
17756 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
17758         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17759         and which can live in a register, always retrieve the value on entry.
17760         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17761         passed by invisible reference specially.
17762         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17763         (vt_add_function_parameter): Correctly deal with a parameter passed by
17764         invisible reference.
17766 2013-08-30  Jan Hubicka  <jh@suse.cz>
17768         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17770 2013-08-30  Richard Biener  <rguenther@suse.de>
17772         PR tree-optimization/58228
17773         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17774         allow invariant loads in nested loop vectorization.
17776 2013-08-30  Richard Biener  <rguenther@suse.de>
17778         PR tree-optimization/58223
17779         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17780         (has_anti_or_output_dependence): ... this and adjust to also
17781         look for output dependences.
17782         (mark_nodes_having_upstream_mem_writes): Adjust.
17783         (rdg_flag_uses): Likewise.
17785 2013-08-30  Richard Biener  <rguenther@suse.de>
17787         PR tree-optimization/58010
17788         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17789         assert that we have a loop-closed PHI.
17791 2013-08-29  Jan Hubicka  <jh@suse.cz>
17793         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17794         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17795         * lto-section-in.c (lto_free_function_in_decl_state): New function.
17796         (lto_free_function_in_decl_state_for_node): New function.
17798 2013-08-29  Xinliang David Li  <davidxl@google.com>
17800         * loop-unroll.c (report_unroll_peel): Minor message change.
17801         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17802         Emit alignment peeling message with default -fopt-info.
17803         (vect_loop_versioning): Emit loop version info message.
17804         * tree-vectorizer.c (vectorize_loops): Minor message change.
17805         (execute_vect_slp): Ditto.
17807 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
17809         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17810         of the clone from the DECL_NAME of the original function.
17812 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
17814         * passes.c (register_pass): Add overload.
17815         * tree-pass.h (register_pass): Forward declare it.  Add comment.
17817 2013-08-29  Jan Hubicka  <jh@suse.cz>
17819         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17820         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17821         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17822         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17823         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17824         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17825         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17826         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17828 2013-08-29  Teresa Johnson  <tejohnson@google.com>
17830         * dumpfile.c (dump_loc): Output column number.
17831         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17832         * doc/invoke.texi: Document optall -fopt-info flag.
17833         * profile.c (read_profile_edge_counts): Use new dump framework.
17834         (compute_branch_probabilities): Ditto.
17835         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17836         when pass not in any opt group.
17837         * pass_manager.h (pass_manager::get_pass_profile): New method.
17838         * value-prof.c (check_counter): Use new dump framework.
17839         (check_ic_target): Ditto.
17840         * coverage.c (get_coverage_counts): Ditto.
17841         (coverage_init): Setup new dump framework.
17843 2013-08-29  Richard Biener  <rguenther@suse.de>
17845         PR tree-optimization/58246
17846         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17847         handle the dominance check inside a basic-block.
17849 2013-08-29  Richard Biener  <rguenther@suse.de>
17851         PR middle-end/57287
17852         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17853         of default defs that appear in abnormal PHI nodes.
17855 2013-08-29  Richard Biener  <rguenther@suse.de>
17857         PR tree-optimization/57685
17858         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17859         single-use operands to avoid exponential complexity.
17861 2013-08-28  Dehao Chen  <dehao@google.com>
17863         * ipa-inline.c (edge_badness): Fix integer underflow.
17865 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
17867         * gtm-builtins.def (_ITM_free): Declare leaf.
17869 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17871         PR target/58067
17872         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17873         (*tls_local_dynamic_base_64_largepic): Likewise.
17874         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17875         Remove predicate from call operand.
17876         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17877         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17879 2013-08-28  Jeff Law  <law@redhat.com>
17881         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17882         checks for the number of predecessors and successors allowed.
17883         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17884         which require copying a joiner block if there is a request which
17885         is a subpath that requires no joiner block copying.
17887 2013-08-28  Jan Hubicka  <jh@suse.cz>
17889         * lto-streamer-out.c (DFS_write_tree_body): Drop
17890         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17891         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17892         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17893         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17894         Do not read DECL_ERROR_ISSUED.
17895         (unpack_ts_decl_with_vis_value_fields): Do not read
17896         DECL_DEFER_OUTPUT.
17897         (lto_input_ts_binfo_tree_pointers): Do not read
17898         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17899         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17900         write DECL_ERROR_ISSUED..
17901         (pack_ts_decl_with_vis_value_fields): Do not write
17902         DECL_DEFER_OUTPUT.
17903         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17904         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17905         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17906         * tree.h (tree_decl_common): Update comment.
17907         (DECL_ERROR_ISSUED): Remove.
17909 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17911         PR middle-end/58257
17912         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17914 2013-08-28  Jan Hubicka  <jh@suse.cz>
17916         * builtins.def (free): Declare leaf.
17918 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
17920         * gdbhooks.py: New.
17921         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17922         * configure: Regenerate.
17924 2013-08-27  Martin Jambor  <mjambor@suse.cz>
17926         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17927         (ipa_ancestor_jf_data): Likewise.
17928         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17929         (ipa_get_jf_pass_through_type_preserved): New function.
17930         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17931         (ipa_get_jf_ancestor_type_preserved): New function.
17932         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17933         (ipa_get_jf_ancestor_result): Likewise.
17934         (propagate_vals_accross_pass_through): Use
17935         ipa_get_jf_pass_through_result to do all the value mappings.
17936         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17937         type_preserved flag.
17938         (ipa_set_jf_cst_copy): New function.
17939         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17940         (ipa_set_jf_arith_pass_through): Likewise.
17941         (ipa_set_ancestor_jf): Likewise.
17942         (compute_complex_assign_jump_func): Set type_preserved instead of
17943         punting.
17944         (ipa_compute_jump_functions_for_edge): Likewise.
17945         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17946         (update_jump_functions_after_inlining): Update type_preserved.
17947         Explicitely create jump functions when combining one with pass_through.
17948         (ipa_write_jump_function): Stream the type_preserved flags.
17949         (ipa_read_jump_function): Likewise.
17951 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
17952             Aldy Hernandez  <aldyh@redhat.com>
17954         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17955         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17956         * function.h (struct function): Add has_force_vect_loops and
17957         has_simduid_loops.
17958         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17959         * gimple.c (gimple_build_omp_critical): Add KIND argument and
17960         handle it.
17961         * gimple.def: Update CLAUSES comments.
17962         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17963         (gimple_build_omp_for): Add argument to prototype.
17964         (gimple_omp_for_kind): New.
17965         (gimple_omp_for_set_kind): New.
17966         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17967         GOVD_DATA_SHARE_CLASS.
17968         (enum omp_region_type): Add ORT_SIMD.
17969         (gimple_add_tmp_var): Handle ORT_SIMD.
17970         (gimplify_var_or_parm_decl): Same.
17971         (is_gimple_stmt): Same.
17972         (omp_firstprivatize_variable): Same.
17973         (omp_add_variable): Only use splay_tree_insert if lookup failed.
17974         (omp_notice_variable): Handle ORT_SIMD.
17975         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17976         (omp_check_private): Handle ORT_SIMD.
17977         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17978         OMP_CLAUSE_SAFELEN.
17979         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17980         Handle OMP_CLAUSE_LASTPRIVATE.
17981         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17982         OMP_CLAUSE_SAFELEN.
17983         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17984         (gimplify_expr): Handle OMP_SIMD.
17985         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17986         (expand_GOMP_SIMD_VF): New.
17987         (expand_GOMP_SIMD_LAST_LANE): New.
17988         * internal-fn.def (GOMP_SIMD_LANE): New.
17989         (GOMP_SIMD_VF): New.
17990         (GOMP_SIMD_LAST_LANE): New.
17991         * omp-low.c: Include target.h.
17992         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17993         OMP_CLAUSE_SAFELEN.
17994         (check_omp_nesting_restrictions): Same.
17995         (omp_max_vf): New.
17996         (lower_rec_simd_input_clauses): New.
17997         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17998         OMP_CLAUSE_LINEAR.
17999         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
18000         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
18001         (expand_omp_build_assign): New.
18002         (expand_omp_for_init_counts): New.
18003         (expand_omp_for_init_vars): New.
18004         (extract_omp_for_update_vars): New.
18005         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
18006         and rewrite accordingly.
18007         (expand_omp_simd): New.
18008         (expand_omp_for): Use expand_omp_simd.
18009         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
18010         (lower_omp_for): Do not lower the body.
18011         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
18012         in their own loops.
18013         * tree-flow.h (find_omp_clause): Remove prototype.
18014         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
18015         forcing vectorization of the loop, or if flag_tree_vectorize.
18016         (gate_tree_if_conversion): Similarly.
18017         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
18018         gimple_build_omp_for.
18019         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
18020         * tree-parloops (create_parallel_loop): Pass kind argument to
18021         gimple_build_omp_for.
18022         * tree-pretty-print.c (dump_omp_clause): Add cases for
18023         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
18024         OMP_CLAUSE__SIMDUID_.
18025         (dump_generic_node): Handle OMP_SIMD.
18026         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
18027         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
18028         unroll OMP_SIMD loops here.
18029         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
18030         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
18031         loop->safelen.
18032         (vect_analyze_data_refs): Handle simd loops.
18033         * tree-vect-loop.c (vectorizable_live_operation): Handle
18034         IFN_GOMP_SIMD*.
18035         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
18036         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
18037         (vectorizable_load): Same.
18038         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
18039         (struct simduid_to_vf): New.
18040         (simduid_to_vf::hash): New.
18041         (simduid_to-vf::equal): New.
18042         (struct simd_array_to_simduid): New.
18043         (simd_array_to_simduid::hash): New.
18044         (simd_array_to_simduid::equal): New.
18045         (adjust_simduid_builtins): New.
18046         (struct note_simd_array_uses_struct): New.
18047         (note_simd_array_uses_cb): New.
18048         (note_simd_array_uses): New.
18049         (vectorize_loops): Handle simd hints and adjust simd builtins
18050         accordingly.
18051         * tree-vectorizer.h (struct _stmt_vec_info): Add
18052         simd_lane_access_p field.
18053         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
18054         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
18055         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
18056         (omp_clause_code_name): Same.
18057         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
18058         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
18059         * tree.def (OMP_SIMD): New entry.
18060         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
18061         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
18062         (OMP_CLAUSE_DECL): Adjust range for new clauses.
18063         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
18064         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
18065         (OMP_CLAUSE_LINEAR_STEP): New.
18066         (OMP_CLAUSE_SAFELEN_EXPR): New.
18067         (OMP_CLAUSE__SIMDUID__DECL): New.
18068         (find_omp_clause): New prototype.
18070 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18072         * config/i386/driver-i386.c (host_detect_local_cpu): Update
18073         Haswell processor detection.
18075 2013-08-27  Christian Widmer  <shadow@umbrox.de>
18077         PR target/57927
18078         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
18079         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
18080         AVX2 capable processors.
18082 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
18084         * config/aarch64/arm_neon.h: Replace all inline asm implementations
18085         of vget_low_* with implementations in terms of other intrinsics.
18087 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
18089         PR middle-end/57219
18090         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
18091         values to -1, 0 and 1.
18093 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
18095         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
18096         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
18097         (<optab><mode>3_insn): Remove.
18098         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
18099         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
18100         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18101         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
18102         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
18103         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
18104         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
18105         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
18106         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
18107         (ror<mode>3_insn): Likewise.
18108         * config/aarch64/predicates.md (aarch64_simd_register): New.
18110 2013-08-27  Richard Biener  <rguenther@suse.de>
18112         PR tree-optimization/57521
18113         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
18114         one edge is non-critical.
18115         (find_phi_replacement_condition): Make sure to use a non-critical
18116         edge.  Cleanup and remove old bug workarounds.
18117         (bb_postdominates_preds): Remove.
18118         (if_convertible_loop_p_1): Do not compute post-dominators.
18119         (combine_blocks): Do not free post-dominators.
18120         (main_tree_if_conversion): Likewise.
18121         (pass_data_if_conversion): Add TODO_verify_ssa.
18123 2013-08-27  DJ Delorie  <dj@redhat.com>
18125         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
18127 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
18129         * function.c (assign_parm_find_data_types): Set passed_mode and
18130         nominal_mode to the TYPE_MODE of nominal_type for the built
18131         pointer type in case of the struct-pass-by-reference.
18133 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
18135         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
18136         (UINT16_TYPE): Change default to "unsigned int".
18138         * config/avr/avr.opt (mfract-convert-truncate): New option.
18139         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
18140         is set, round negative fractional integers according to n1169
18141         when converting to integer types.
18143 2013-08-26  Jan Hubicka  <jh@suse.cz>
18145         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
18146         methods can not be called indirectly when their address is not taken.
18148 2013-08-26  Jan Hubicka  <jh@suse.cz>
18150         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
18151         ctor_for_folding.
18153 2013-08-26  Jan Hubicka  <jh@suse.cz>
18155         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
18156         can be unshared.
18158 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
18160         * reload.c (find_valid_class): Allow classes that do not include
18161         FIRST_PSEUDO_REGISTER - 1.
18163 2013-08-26  Jan Hubicka  <jh@suse.cz>
18165         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
18166         fix edge count/frequency when speculation failed; fix type check
18167         for the direct call.
18169 2013-08-26  Jan Hubicka  <jh@suse.cz>
18171         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
18173 2013-08-26  Jan Hubicka  <jh@suse.cz>
18175         * ipa-inline-transform.c (inline_transform): Be ready for basic block
18176         to be changed by edge redirection.
18178 2013-08-26  Jan Hubicka  <jh@suse.cz>
18180         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
18181         formating; add sanity check.
18182         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
18183         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
18184         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
18185         (resolve_noninline_speculation): Update callee keys, too.
18187 2013-08-26  Jan Hubicka  <jh@suse.cz>
18189         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
18190         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
18192 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
18194         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
18195         into proper place.
18197 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
18199         * config/i386/i386.c (ix86_debug_options): Remove prototype.
18200         (x86_64_elf_select_section): Ditto.
18201         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
18202         arguments.
18203         (ix86_pass_by_reference): Ditto.
18204         (output_set_got): Ditto.
18205         (ix86_unary_operator_ok): Ditto.
18206         (ix86_expand_builtin): Ditto.
18208 2013-08-23  Jan Hubicka  <jh@suse.cz>
18210         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
18212 2013-08-23  Jan Hubicka  <jh@suse.cz>
18214         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
18215         (tree_decl_with_vis): Add FINAL field.
18217 2013-08-23  Jeff Law  <law@redhat.com>
18219         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
18220         the debugging dump when the expression is fully redundant.
18222 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18224         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
18225         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
18226         * pretty-print.c (pp_formatted_text_data): Likewise.
18227         (pp_write_text_to_stream): Likewise.
18228         (pp_write_text_as_dot_label_to_stream): Likewise.
18229         (pp_append_r): Likewise.
18230         (pp_format): Likewise.
18231         (pp_flush): Likewise.
18232         (pp_clear_output_area): Likewise.
18233         (pp_append_text): Likewise.
18234         (pp_formatted_text): Likewise.
18235         (pp_remaining_character_count_for_line): Likewise.
18236         (pp_newline): Likewise.
18237         (pp_character): Likewise.
18238         (output_buffer::~output_buffer): Define.
18239         (pretty_printer::~pretty_printer): Destruct output buffer.
18240         * pretty-print.h (output_buffer::~output_buffer): Declare.
18241         (pretty_printer::~pretty_printer): Declare virtual.
18243 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
18245         PR other/57324
18246         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
18247         HOST_WIDE_INT_M1U): New macros.
18248         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
18249         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
18250         unsigned -1 for lshift.
18251         * cse.c (cse_insn): Likewise.
18252         * double-int.c (rshift_double, lshift_double): Likewise.
18253         * builtins.c (fold_builtin_bitop): Likewise.
18254         * combine.c (force_to_mode): Likewise.
18255         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
18256         * simplify-rtx.c (simplify_const_unary_operation,
18257         simplify_const_binary_operation): Likewise.
18258         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
18259         check_va_list_escapes): Likewise.
18260         * rtlanal.c (nonzero_bits1): Likewise.
18261         * expmed.c (expand_smod_pow2): Likewise.
18262         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
18264 2013-08-23  Jan Hubicka  <jh@suse.cz>
18266         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
18267         as having address taken.
18269 2013-08-23  Jan Hubicka  <jh@suse.cz>
18271         * ipa-utils.h (method_class_type): Declare.
18272         * ipa-devirt.c (method_class_type): Export.
18274         * cgraphunit.c (analyze_functions): Do basic devirtualization;
18275         do not walk base classes of anonymous types.
18277 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
18279         PR rtl-optimization/58220
18280         PR regression/58221
18281         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
18282         handle SEQUENCE insns properly.
18284 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18286         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
18287         definition.
18288         (pp_newline_and_indent): Likewise.
18289         (pp_separate_with): Likewise.
18290         * pretty-print.c (pp_newline_and_flush): Define.
18291         (pp_newline_and_indent): Likewise.
18292         (pp_separate_with): Likewise.
18294 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
18296         PR target/58218
18297         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
18298         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
18300 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
18302         * config/i386/predicates.md (ext_sse_reg_operand): New.
18303         * config/i386/i386.md (*movti_internal): Use
18304         predicate to determine if EVEX is needed.
18305         (*movsi_internal): Ditto.
18306         (*movdf_internal): Ditto.
18307         (*movsf_internal): Ditto.
18308         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
18310 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
18312         PR tree-optimization/58209
18313         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
18314         (find_tail_calls): Give up for pointer result types if m is non-NULL.
18315         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
18316         emit POINTER_PLUS_EXPR.
18317         (create_tailcall_accumulator): For pointer result type accumulate in
18318         sizetype type.
18320 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
18322         * configure.ac: Add backslashes missing from the last change.
18323         * configure: Regenerate.
18325 2013-08-22  Jan Hubicka  <jh@susue.cz>
18327         * ipa.c (function_and_variable_visibility): First remember function
18328         was global and then make it local.
18330 2013-08-22  Julian Brown  <julian@codesourcery.com>
18332         * configure.ac: Add aarch64 to list of arches which use "nop" in
18333         debug_line test.
18334         * configure: Regenerate.
18336 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18338         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
18339         gnu_libc_has_function.
18340         * config/s390/tpf.h: Likewise.
18342 2013-08-22  Jan Hubicka  <jh@susue.cz>
18344         * timevar.c (validate_phases): Add cast.
18346 2013-08-22  Jan Hubicka  <jh@susue.cz>
18348         * timevar.c (validate_phases): Use size_t for memory.
18349         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18351 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18353         * pretty-print.h (output_buffer::output_buffer): Declare.
18354         (pretty_printer::pretty_printer): Likewise.
18355         (pp_construct): Remove.
18356         * pretty-print.c (output_buffer::output_buffer): Define.
18357         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
18358         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18359         (print_gimple_expr): Likewise.
18360         (print_gimple_seq): Likewise.
18361         (gimple_dump_bb): Likewise.
18362         * sched-vis.c (dump_value_slim): Likewise.
18363         (dump_insn_slim): Likewise.
18364         (dump_rtl_slim): Likewise.
18365         (str_pattern_slim): Likewise.
18366         * tree-mudflap.c (mf_varname_tree): Likewise.
18367         * graph.c (print_graph_cfg): Likewise.
18368         (start_graph_dump): Likewise.
18369         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
18370         placement-new.
18371         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18372         pretty printer initialization.
18373         * coretypes.h (diagnostic_context): Remove superflous type alias
18374         declaration.
18375         (pretty_printer): Likewise.  Declare directly as a class.
18376         (pretty_print_info): Remove declaration as class.
18377         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18378         and pp_clear_output_area.
18379         (asan_add_global): Likewise.
18381 2013-08-22  Jan Hubicka  <jh@suse.cz>
18383         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18384         * ipa-utils.h (update_type_inheritance_graph): Declare.
18385         (possible_polymorphic_call_target_p): Declare.
18386         (possible_polymorphic_call_target_p): New.
18387         * ipa-devirt.c: Update toplevel comments.
18388         (cached_polymorphic_call_targets): Move up.
18389         (odr_type_d): Move ID down.
18390         (polymorphic_type_binfo_p): Update comment.
18391         (odr_hasher::remove): Likewise;
18392         (get_odr_type): Set anonymous_namespace.
18393         (dump_odr_type): Dump it.
18394         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18395         (maybe_record_node): Record node in cached_polymorphic_call_targets.
18396         (record_binfo): Add comment.
18397         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18398         built.
18399         (devirt_node_removal_hook): Do not iCE when cache is freed.
18400         (possible_polymorphic_call_target_p): New predicate.
18401         (update_type_inheritance_graph): New function.
18403 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18404             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18405             Sergey Lega  <sergey.s.lega@intel.com>
18406             Anna Tikhonova  <anna.tikhonova@intel.com>
18407             Ilya Tocar  <ilya.tocar@intel.com>
18408             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18409             Ilya Verbin  <ilya.verbin@intel.com>
18410             Kirill Yukhin  <kirill.yukhin@intel.com>
18411             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18413         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18414         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18415         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18416         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18417         (OPTION_MASK_ISA_AVX2_UNSET): Update.
18418         (OPTION_MASK_ISA_AVX512F_UNSET): New.
18419         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18420         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18421         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18422         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18423         OPT_mavx512pf, OPT_mavx512er cases.
18424         * config/i386/constraints.md (v): New constraint.
18425         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18426         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18427         (bit_AVX512CD): New.
18428         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18429         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18430         * config/i386/i386-c.c (ix86_target_macros_internal):
18431         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18432         __AVX512PF__.
18433         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18434         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18435         * config/i386/i386.c (regclass_map, dbx_register_map)
18436         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18437         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18438         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18439         -mavx512pf options.
18440         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18441         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
18442         -mavx512pf options.  Fix formatting.
18443         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18444         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
18445         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18446         -mavx512cd, -mavx512pf options.
18447         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18448         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18449         (ix86_preferred_output_reload_class): Replace SSE_REGS with
18450         ALL_SSE_REGS.
18451         (ix86_hard_regno_mode_ok): Support 512-bit registers.
18452         (ix86_set_reg_reg_cost): Ditto.
18453         (x86_order_regs_for_local_alloc): Ditto.
18454         (MAX_VECT_LEN): Extend to 64-byte.
18455         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18456         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18457         (TARGET_AVX512ER, TARGET_AVX512CD): New.
18458         (BIGGEST_ALIGNMENT): Extend to 512-bits.
18459         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18460         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18461         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18462         (SSE_REG_MODE_P): Support new modes.
18463         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18464         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18465         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18466         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18467         (REG_CLASS_CONTENTS): Add new registers.
18468         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18469         (EXT_REX_SSE_REGNO_P): New.
18470         (HI_REGISTER_NAMES): Add new registers.
18471         * config/i386/i386.md: Define constants for new registers.
18472         (mode): Add new 512-bit modes.
18473         (prefix): Support evex prefix.
18474         (isa): Support avx512f, noavx512f, fma_avx512f.
18475         (ssemodesuffix): Add new 512-bit modes.
18476         (movxi): New.
18477         (*movxi_internal_avx512f): Ditto.
18478         (*movdi_internal): Replace constraint "x" with the new constraint "v".
18479         Support MODE_XI.
18480         (*movsi_internal): Likewise.
18481         (*movdf_internal): Likewise.
18482         (*movsf_internal): Likewise.
18483         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18484         (<code><mode>3): Likewise.
18485         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18486         New.
18487         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18488         with the new constraint "v".
18489         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18490         modes.
18491         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18492         with the new constraint "v".
18493         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18494         (<sse2>_storedqu<avxsizesuffix>): Likewise.
18495         (*<plusminus_insn><mode>3): Likewise.
18496         (<sse>_vm<plusminus_insn><mode>3): Likewise.
18497         (*mul<mode>3): Likewise.
18498         (<sse>_vmmul<mode>3): Likewise.
18499         (<sse>_div<mode>3): Likewise.
18500         (<sse>_vmdiv<mode>3): Likewise.
18501         (<sse>_sqrt<mode>2): Likewise.
18502         (<sse>_vmsqrt<mode>2): Likewise.
18503         (*<code><mode>3_finite): Likewise.
18504         (*<code><mode>3) <smaxmin>: Likewise.
18505         (<sse>_vm<code><mode>3): Likewise.
18506         (*<code><mode>3) <any_logic>: Likewise.
18507         (*fma_fmadd_<mode>): Likewise.
18508         (*fma_fmsub_<mode>): Likewise.
18509         (*fma_fnmadd_<mode>): Likewise.
18510         (*fma_fnmsub_<mode>): Likewise.
18511         (*fma_fmaddsub_<mode>): Likewise.
18512         (*fma_fmsubadd_<mode>): Likewise.
18513         (*fmai_fmadd_<mode>): Likewise.
18514         (*fmai_fmsub_<mode>): Likewise.
18515         (*fmai_fnmadd_<mode>): Likewise.
18516         (*fmai_fnmsub_<mode>): Likewise.
18517         (sse_cvtsi2ss): Likewise.
18518         (sse_cvtsi2ssq): Likewise.
18519         (sse_cvtss2si): Likewise.
18520         (sse_cvtss2si_2): Likewise.
18521         (sse_cvtss2siq): Likewise.
18522         (sse_cvtss2siq_2): Likewise.
18523         (sse_cvttss2si): Likewise.
18524         (sse_cvtss2siq_2): Likewise.
18525         (float<sseintvecmodelower><mode>2): Likewise.
18526         (sse2_cvtsd2si_2): Likewise.
18527         (sse2_cvtsd2siq_2): Likewise.
18528         (*<plusminus_insn><mode>3): Likewise.
18529         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18530         (*<sse4_1_avx2>_mul<mode>3): Likewise.
18531         (ashr<mode>3): Likewise.
18532         (<shift_insn><mode>3): Likewise.
18533         (avx2_<code><mode>3): Likewise.
18534         (*avx2_<code><mode>3): Likewise.
18535         (*andnot<mode>3): Likewise.
18536         (*<code><mode>3) <any_logic>: Likewise.
18537         (abs<mode>2): Likewise.
18538         (avx2_permvar<mode>): Likewise.
18539         (avx2_perm<mode>_1): Likewise.
18540         (*avx_vpermilp<mode>): Likewise.
18541         (avx_vpermilvar<mode>3): Likewise.
18542         (avx2_ashrv<mode>): Likewise.
18543         (avx2_<shift_insn>v<mode>): Likewise.
18544         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18545         -mavx512cd.
18546         * doc/rtl.texi: Document XImode.
18548 2013-08-21  Jeff Law  <law@redhat.com>
18550         * tree-flow.h (register_jump_thread): Pass vector of edges
18551         instead of each important edge.
18552         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18553         thread path into a vector and pass that to register_jump_thread.
18554         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18555         passed in edge vector to the current 3-edge form.
18557         Revert:
18558         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18560         * dce.c (fini_dce): Call df_analyze again just in case
18561         delete_unmarked_insns removed anything.
18563 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
18565         * reload.h (struct reg_equivs): Rename to ..
18566         (struct reg_equivs_s): .. this.
18568 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
18570         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18572 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18574         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18576 2013-08-21  Jeff Law  <law@redhat.com>
18578         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18579         simplify assignments too.  If the RHS collapses to a singleton
18580         range, then return the value for the range.
18582 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18584         * config/i386/sse.md (V16): Rename to...
18585         (VMOVE): this.
18586         (mov<mode>): Update iterator name.
18587         (*mov<mode>_internal): Ditto.
18588         (push<mode>1): Ditto.
18589         (movmisalign<mode>): Ditto.
18591 2013-08-20  Jan Hubicka  <jh@suse.cz>
18593         PR bootstrap/58186
18594         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18595         entry for direct edges.
18596         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18598 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18600         Revert my last two changes, r201865 and r201864:
18602         Revert r201865:
18603         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18605         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18606         instances can own GC refs.
18608         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18609         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18610         (gcc::context::gt_pch_nx): Likewise.
18611         (gcc::context::gt_pch_nx):  Likewise.
18612         * ggc.h (gt_ggc_mx <T>): New.
18613         (gt_pch_nx_with_op <T>): New.
18614         (gt_pch_nx <T>): New.
18615         * passes.c (opt_pass::gt_ggc_mx): New.
18616         (opt_pass::gt_pch_nx): New.
18617         (opt_pass::gt_pch_nx_with_op): New.
18618         (pass_manager::gt_ggc_mx): New.
18619         (pass_manager::gt_pch_nx): New.
18620         (pass_manager::gt_pch_nx_with_op): New.
18621         (pass_manager::operator new): Use
18622         ggc_internal_cleared_alloc_stat rather than xcalloc.
18623         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18624         (pass_manager::gt_ggc_mx): New.
18625         (pass_manager::gt_pch_nx): New.
18626         (pass_manager::gt_pch_nx_with_op): New.
18627         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18628         (opt_pass::operator new): New.
18629         (opt_pass::gt_ggc_mx): New.
18630         (opt_pass::gt_pch_nx): New.
18631         (opt_pass::gt_pch_nx_with_op): New.
18633         Revert r201864:
18634         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18636         * Makefile.in (GTFILES): Add context.h.
18637         * context.c (gcc::context::operator new): New.
18638         (gcc::context::gt_ggc_mx): New.
18639         (gcc::context::gt_pch_nx): New.
18640         (gcc::context::gt_pch_nx): New.
18641         * context.h (gcc::context): Add GTY((user)) marking.
18642         (gcc::context::operator new): New.
18643         (gcc::context::gt_ggc_mx): New.
18644         (gcc::context::gt_pch_nx): New.
18645         (gcc::context::gt_pch_nx): New.
18646         (g): Add GTY marking.
18647         (gt_ggc_mx (gcc::context *)): New.
18648         (gt_pch_nx (gcc::context *)): New.
18649         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18650         void *cookie)): New.
18651         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18653 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18655         * dce.c (fini_dce): Call df_analyze again just in case
18656         delete_unmarked_insns removed anything.
18658 2013-08-20  Teresa Johnson  <tejohnson@google.com>
18660         PR rtl-optimizations/57451
18661         * final.c (reemit_insn_block_notes): Prevent lexical blocks
18662         from crossing split section boundaries.
18664 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
18666         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18667         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18668         with MULTLIB_DEFAULTS.
18670 2013-08-20  Nick Clifton  <nickc@redhat.com>
18672         * target.def (narrow_volatile_bitfield): Note that the default
18673         value is false, not !TARGET_STRICT_ALIGN.
18674         * doc/tm.texi: Regenerate.
18676 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
18678         Fix LIB_SPEC for systems without libpthread.
18680         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18681         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18682         for Android.
18683         * config/i386/linux-common.h: Likewise.
18684         * config/mips/linux-common.h: Likewise.
18686 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18688         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18689         checks.
18691 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18693         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18694         instances can own GC refs.
18696         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18697         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18698         (gcc::context::gt_pch_nx): Likewise.
18699         (gcc::context::gt_pch_nx):  Likewise.
18700         * ggc.h (gt_ggc_mx <T>): New.
18701         (gt_pch_nx_with_op <T>): New.
18702         (gt_pch_nx <T>): New.
18703         * passes.c (opt_pass::gt_ggc_mx): New.
18704         (opt_pass::gt_pch_nx): New.
18705         (opt_pass::gt_pch_nx_with_op): New.
18706         (pass_manager::gt_ggc_mx): New.
18707         (pass_manager::gt_pch_nx): New.
18708         (pass_manager::gt_pch_nx_with_op): New.
18709         (pass_manager::operator new): Use
18710         ggc_internal_cleared_alloc_stat rather than xcalloc.
18711         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18712         (pass_manager::gt_ggc_mx): New.
18713         (pass_manager::gt_pch_nx): New.
18714         (pass_manager::gt_pch_nx_with_op): New.
18715         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18716         (opt_pass::operator new): New.
18717         (opt_pass::gt_ggc_mx): New.
18718         (opt_pass::gt_pch_nx): New.
18719         (opt_pass::gt_pch_nx_with_op): New.
18721 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18723         * Makefile.in (GTFILES): Add context.h.
18724         * context.c (gcc::context::operator new): New.
18725         (gcc::context::gt_ggc_mx): New.
18726         (gcc::context::gt_pch_nx): New.
18727         (gcc::context::gt_pch_nx): New.
18728         * context.h (gcc::context): Add GTY((user)) marking.
18729         (gcc::context::operator new): New.
18730         (gcc::context::gt_ggc_mx): New.
18731         (gcc::context::gt_pch_nx): New.
18732         (gcc::context::gt_pch_nx): New.
18733         (g): Add GTY marking.
18734         (gt_ggc_mx (gcc::context *)): New.
18735         (gt_pch_nx (gcc::context *)): New.
18736         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18737         void *cookie)): New.
18738         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18740 2013-08-20  Alan Modra  <amodra@gmail.com>
18742         PR target/57865
18743         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18744         (rs6000_emit_epilogue): Likewise.
18746 2013-08-19  Dehao Chen  <dehao@google.com>
18748         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18750 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
18751             Jakub Jelinek  <jakub@redhat.com>
18753         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18754         (BUILT_IN_FABSD64): Likewise.
18755         (BUILT_IN_FABSD128): Likewise.
18756         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18757         (fold_builtin_1): Likewise.
18758         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18759         destination and source operands.
18760         (*abstd2_fpr): Likewise.
18761         (*nabstd2_fpr): Likewise.
18763 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
18765         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18766         JUMP_P and INSN_P.
18768 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
18770         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18771         incomplete.
18773 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18775         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18776         * builtins.c (default_libc_has_function): New.
18777         (gnu_libc_has_function): Ditto.
18778         (no_c99_libc_has_function): Ditto.
18779         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18780         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18781         (fold_builtin_sincos): Likewise.
18782         (fold_builtin_cexp): Likewise.
18783         * builtins.def (DEF_C94_BUILTIN): Likewise.
18784         (DEF_C99_BUILTIN): Likewise.
18785         (DEF_C99_C90RES_BUILTIN): Likewise.
18786         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18787         definitions to using this define.
18788         * config/darwin-protos.h (darwin_libc_has_function): New.
18789         * config/darwin.c (darwin_libc_has_function): Ditto.
18790         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18791         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18792         * config/darwin.h: Ditto.
18793         * config/elfos.h: Ditto.
18794         * config/freebsd.h: Ditto.
18795         * config/i386/cygming.h: Ditto.
18796         * config/i386/djgpp.h: Ditto.
18797         * config/i386/i386-interix.h: Ditto.
18798         * config/microblaze/microblaze.h: Ditto.
18799         * config/mmix/mmix.h: Ditto.
18800         * config/gnu-user.h: Ditto.
18801         * config/ia64/hpux.h: Ditto.
18802         * config/pa/pa-hpux.h: Ditto.
18803         * config/pdp11/pdp11.h: Ditto.
18804         * config/picochip/picochip.h: Ditto.
18805         * config/linux.h: Ditto.
18806         * config/netbsd.h: Ditto.
18807         * config/openbsd.h: Ditto.
18808         * config/rs6000/aix43.h: Ditto.
18809         * config/rs6000/aix51.h: Ditto.
18810         * config/rs6000/aix52.h: Ditto.
18811         * config/rs6000/aix53.h: Ditto.
18812         * config/rs6000/aix61.h: Ditto.
18813         * config/rs6000/darwin.h: Ditto.
18814         * config/rs6000/linux.h: Ditto.
18815         * config/rs6000/linux64.h: Ditto.
18816         * config/s390/tpf.h: Ditto.
18817         * config/sol2-10.h: Ditto.
18818         * config/sol2.h: Ditto.
18819         * config/vms/vms.h: Ditto.
18820         * config/vxworks.h: Ditto.
18821         * config/linux-android.c (linux_android_libc_has_function):
18822         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18823         * config/linux-protos.h (linux_android_libc_has_function):
18824         New declaration.
18825         * config/i386/i386.c (ix86_libc_has_function): New.
18826         * config/i386/i386-protos.h
18827         (ix86_libc_has_function): New declaration.
18828         * config/i386/i386.md
18829         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18830         ("isinf<mode>2): Likewise.
18831         * convert.c (convert_to_integer): Using new target hook
18832         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18833         TARGET_C99_FUNCTIONS.
18834         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18835         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18836         * coretypes.h (function_class): New enum for different
18837         classes of functions.
18838         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18839         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18840         (TARGET_HAS_SINCOS): Likewise.
18841         (TARGET_LIBC_HAS_FUNCTION): New.
18842         * doc/tm.texi: Regenerated.
18843         * targhooks.h (default_libc_has_function): New declaration.
18844         (no_c99_libc_has_function): Ditto.
18845         (gnu_libc_has_function): Ditto.
18846         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18847         and TARGET_HAS_SINCOS.
18849 2013-08-18  Jan Hubicka  <jh@suse.cz>
18851         * Makeifle-in (ipa-devirt.o): New.
18852         (GTFILES): Add ipa-utils.h and ipa-devirt.c
18853         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18854         (analyze_functions): Look into possible targets of polymorphic call.
18855         * dumpfile.c (dump_files): Add type-inheritance dump.
18856         * dumpfile.h (TDI_inheritance): New.
18857         * ipa-devirt.c: New file.
18858         * ipa-utils.h (odr_type_d): Forward declare.
18859         (odr_type): New type.
18860         (build_type_inheritance_graph): Declare.
18861         (possible_polymorphic_call_targets): Declare and introduce inline
18862         variant when only edge is pased.
18863         (dump_possible_polymorphic_call_targets): Likewise.
18864         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18865         * tree.c (type_in_anonymous_namespace_p): Break out from ...
18866         (types_same_for_odr): ... here.
18867         * tree.h (type_in_anonymous_namespace_p): Declare.
18869 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
18871         PR tree-optimization/58006
18872         * tree-parloops.c (take_address_of): Don't ICE if get_name
18873         returns NULL.
18874         (eliminate_local_variables_stmt): Remove clobber stmts.
18876 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
18878         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18879         error message is issued for an alias to undefined symbol.
18881 2013-08-18  Jan Hubicka  <jh@suse.cz>
18883         * cgraph.c (cgraph_create_indirect_edge): Discover
18884         polymorphic calls and record basic info into indirect_info.
18885         * gimple-fold.c (gimple_fold_call): When doing BINFO based
18886         devirtualization, ignore objc function calls.
18887         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18888         call with no parm index info.
18889         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18890         * tree.c (virtual_method_call_p): New function.
18891         * tree.h (virtual_method_call_p): Declare.
18893 2013-08-16  Jan Hubicka  <jh@suse.cz>
18895         PR middle-end/58179
18896         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18898 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
18900         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18901         attribute.
18903 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18905         * gengtype.c (type_for_name): Add special-case support for
18906         locating types within the "gcc::" namespace.
18907         (open_base_files): Emit a "using namespace gcc" directive.
18909 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
18911         PR target/58160
18912         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18913         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18915         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18916         array instead of each individual operand as a separate argument.
18917         (emit_fusion_gpr_load): Likewise.
18918         (expand_fusion_gpr_load): Add new function declaration.
18920         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18921         signature to have the operands passed as an array, instead of as
18922         separate arguments.  Allow ZERO_EXTEND to be in the memory
18923         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
18924         depend on the register live/dead flags when peepholes are run.
18925         (expand_fusion_gpr_load): New function to be called from the
18926         peephole2 pass, to change the register that addis sets to be the
18927         target register.
18928         (emit_fusion_gpr_load): Change the calling signature to have the
18929         operands passed as an array, instead of as separate arguments.
18930         Allow ZERO_EXTEND to be in the memory address, and also
18931         SIGN_EXTEND if -mpower8-fusion-sign.
18933         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18934         unspec enumeration.
18935         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18936         adjust the register addis loads up in the peephole2 pass.  Do not
18937         depend on the register live/dead state when the peephole pass is done.
18939 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18941         * gengtype.c (create_user_defined_type): Ensure that the kind
18942         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18943         declaration is seen before the GTY((user)) marking.
18945 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18947         PR target/58105
18948         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18950 2013-08-16  Jan Hubicka  <jh@suse.cz>
18952         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18953         arugment expected_type.
18954         (gimple_fold_call): Use it.
18955         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18956         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18957         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18958         (try_make_edge_direct_virtual_call): Likewise.
18959         * tree.c (obj_type_ref_class): New.
18960         * tree.h (obj_type_ref_class): Use it.
18962 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18964         * sched-vis.c (rtl_slim_pp_initialized): Remove.
18965         (rtl_slim_pp): Likewise.
18966         (init_rtl_slim_pretty_print): Likewise.
18967         (dump_value_slim):  Don't call it.  Use local pretty printer.
18968         (dump_insn_slim): Likewise.
18969         (dump_rtl_slim): Likewise.
18970         (str_pattern_slim): Likewise.
18971         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18972         Simplify.
18974 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
18976         PR tree-optimization/58164
18977         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18978         walk gimple_goto_dest of GIMPLE_GOTO.
18980         PR tree-optimization/58165
18981         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18982         bi_call must be the last stmt in a bb, don't split_block, instead
18983         use fallthru edge from it and give up if there is none.
18984         Release conds vector when returning early.
18986 2013-08-14  Xinliang David Li  <davidxl@google.com>
18988         * config/i386/i386.c (ix86_option_override_internal):
18989         Remove unused variable and field.
18991 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18993         PR target/57949
18994         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18995         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18996         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18997         and Linux, correct BLKmode alignment when 128-bit alignment is
18998         required and compatibility flag is not set.
18999         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
19000         for zero-size arguments when compatibility flag is not set.
19002 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
19004         PR tree-optimization/58145
19005         * tree-sra.c (build_ref_for_offset): If prev_base has
19006         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
19008 2013-08-14  Xinliang David Li  <davidxl@google.com>
19010         * config/i386/i386.c (ix86_option_override_internal):
19011         Fix uninitialized variable error.
19013 2013-08-14  Xinliang David Li  <davidxl@google.com>
19015         * config/i386/i386.opt: Define two new options.
19016         * config/i386/x86-tune.def: Add arch selector field in macros.
19017         * config/i386/i386.h: Adjust macro definition.
19018         * config/i386/i386.c (ix86_option_override_internal):
19019         Refactor the code.
19020         (parse_mtune_ctrl_str): New function.
19021         (set_ix86_tune_features): New function.
19022         (ix86_function_specific_restore): Call the new helper function.
19024 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
19026         PR rtl-optimization/57662
19027         * sel-sched.c (code_motion_process_successors): When the current insn
19028         is removed after the recursive traversal, break from the loop.
19029         Add comments and debug printouts.
19031 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
19032             Alexandre Oliva  <aoliva@redhat.com>
19034         PR target/58067
19035         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
19036         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
19037         there also UNSPEC_PLTOFF.
19039 2013-08-14  Marek Polacek  <polacek@redhat.com>
19041         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
19042         NUM_CONDITIONS bit positions.
19044 2013-08-13  Cary Coutant  <ccoutant@google.com>
19046         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
19047         (attr_checksum): Hash vector contents instead of pointer.
19048         (attr_checksum_ordered): Likewise.
19050 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
19052         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
19053         when Pmode != word_mode.  Add length_address attribute.
19054         (sse3_monitor_<mode>): Merge from sse3_monitor and
19055         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
19056         Pmode != word_mode.  Update insn length attribute.
19057         * config/i386/i386.c (ix86_option_override_internal): Update
19058         ix86_gen_monitor selection for merged sse3_monitor insn.
19060 2013-08-13  Julian Brown  <julian@codesourcery.com>
19062         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
19063         perform invalid legitimization on greater-than-word-size modes for
19064         TARGET_E500_DOUBLE.
19066 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
19068         * ira.c (setup_class_translate_array): Use aclass instead of cl
19069         for classes not fully covered by allocno classes.
19071 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
19073         PR tree-optimization/57661
19074         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
19075         * tree-inline.c (tree_function_versioning): Initialize it.
19076         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
19077         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
19078         that is not being copied.
19080         PR sanitizer/56417
19081         * asan.c (instrument_strlen_call): Fix typo in comment.
19082         Use char * type even for the lhs of POINTER_PLUS_EXPR.
19084 2013-08-13  Steve Ellcey  <sellcey@mips.com>
19086         * config/mips/mips.md (prefetch): Use lw instead of ld on
19087         loongson in 32bit mode.
19089 2013-08-13  Nick Clifton  <nickc@redhat.com>
19091         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
19093 2013-08-13  Jan Hubicka  <jh@suse.cz>
19095         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
19096         introduced edge; fix typo in sanity check.
19097         (cgraph_resolve_speculation): Export; improve diagnostic.
19098         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
19099         speculation at type mismatch.
19100         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
19101         (cgraph_resolve_speculation): Declare.
19102         (symtab_can_be_discarded): New function.
19103         * value-prof.c (gimple_ic_transform): Remove actual transform code.
19104         * ipa-inline-transform.c (speculation_removed): New global var.
19105         (clone_inlined_nodes): See if speculation can be removed.
19106         (inline_call): If speculations was removed, we growths may not match.
19107         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
19108         (speculation_useful_p): New function.
19109         (resolve_noninline_speculation): New function.
19110         (inline_small_functions): Resolve useless speculations.
19111         * ipa-inline.h (speculation_useful_p): Declare
19112         * ipa.c (can_replace_by_local_alias): Simplify.
19113         (ipa_profile): Produce speculative calls in non-lto, too;
19114         add simple cost model; produce local aliases.
19116 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
19118         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
19119         PASS_MANAGER_H.
19121 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
19123         * config/i386/i386.c (ix86_function_versions): Use error + inform.
19125 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
19127         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
19128         iterator instead of X87MODEF.
19130 2013-08-12  Perez Read  <netfirewall@gmail.com>
19132         PR target/58132
19133         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
19134         operand 0 for intel asm alternative.
19135         (*movabs<mode>_2): Ditto for operand 1.
19137 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
19139         * config/aarch64/arm_none.h
19140         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
19142 2013-08-12  Nick Clifton  <nickc@redhat.com>
19144         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
19146 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
19148         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
19149         expand for QI/HImode operand to produce more effictive code for
19150         unsigned char(short) --> float(double) conversion.
19152 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
19154         * doc/invoke.texi: Mention that -ftls-model does not force the final
19155         model.
19157 2013-08-12  Marek Polacek  <polacek@redhat.com>
19158             Marc Glisse  <marc.glisse@inria.fr>
19160         PR tree-optimization/57980
19161         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
19162         when creating -1 constant.
19164 2013-08-10  Jan Hubicka  <jh@suse.cz>
19166         Workaround binutils PR14342.
19167         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
19168         (gimple_init_edge_profiler): Likewise.
19169         (gimple_gen_ic_func_profiler): Likewise.
19171 2013-08-09  Jan Hubicka  <jh@suse.cz>
19173         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
19175 2013-08-09  Xinliang David Li  <davidxl@google.com>
19177         * config/i386/stringop.def: New file.
19178         * config/i386/stringop.opt: New file.
19179         * config/i386/i386-opts.h: Include stringopt.def.
19180         * config/i386/i386.opt: Include stringopt.opt.
19181         * config/i386/i386.c (ix86_option_override_internal):
19182         Override default size based stringop inline strategies with options.
19183         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
19184         New function.
19186 2013-08-09  Jan Hubicka  <jh@suse.cz>
19188         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
19190 2013-08-09  Jan Hubicka  <jh@suse.cz>
19192         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
19193         CGRAPH_FREQ_MAX.
19194         (dump_cgraph_node): Dump profile-id.
19195         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
19196         and common_target_probability.
19197         * lto-cgraph.c (lto_output_edge): Stream common targets.
19198         (lto_output_node): Stream profile ids.
19199         (input_node): Stream profile ids.
19200         (input_edge): Stream common targets.
19201         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
19202         * ipa.c: Include value-prof.h
19203         (ipa_profile_generate_summary): Turn indirect call statement histograms
19204         into common targets.
19205         (ipa_profile): Turn common targets into speculative edges.
19207 2013-08-09  Jan Hubicka  <jh@suse.cz>
19209         * cgraph.h (cgraph_node): Add profile_id.
19210         * value-prof.c (cgraph_node_map): Turn into pointer_map.
19211         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
19212         (del_node_map): Update.
19213         (find_func_by_funcdef_no): Replace by ...
19214         (find_func_by_profile_id): ... this one.
19215         (gimple_ic_transform): Do not remove useful histograms when
19216         speculation is not done; dump info when indirect call removal
19217         can happen at LTO.
19218         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
19219         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
19220         (__gcov_indirect_call_profiler_v2): .. this one.
19221         * profile.h (init_node_map): Update.
19222         * coverage.c (coverage_compute_profile_id): New function.
19223         * coverage.h (coverage_compute_profile_id): Declare.
19224         * tree-profile.c (init_ic_make_global_vars): Make
19225         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
19226         (gimple_init_edge_profiler): Update prototype of
19227         __gcov_indirect_call_profiler.
19228         (gimple_gen_ic_func_profiler): Simplify.
19229         (tree_profiling): Use init_node_map
19231 2013-08-09  Jan Hubicka  <jh@suse.cz>
19233         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
19234         non-speculative refs.
19235         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
19236         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
19237         (cgraph_set_call_stmt): Likewise.
19238         (cgraph_create_edge_1): Fix release checking compilatoin;
19239         clear lto_stmt_uid.
19240         (cgraph_free_edge): Free indirect info.
19241         (cgraph_turn_edge_to_speculative): New function.
19242         (cgraph_speculative_call_info): New function.
19243         (cgraph_make_edge_direct): Return direct edge; handle speculation.
19244         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
19245         (dump_cgraph_node): Dump speculation.
19246         (verify_edge_count_and_frequency): Accept speculative edges.
19247         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
19248         (verify_cgraph_node): Handle speculation.
19249         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
19250         (cgraph_set_call_stmt): Update prototype.
19251         (cgraph_make_edge_direct): Update prototype.
19252         (cgraph_speculative_call_info): Declare.
19253         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
19254         to change; update call of ipa_find_references.
19255         * ipa-ref.c (ipa_record_reference): Fix return value; clear
19256         lto_stmt_uid and speculative flags.
19257         (ipa_dump_references): Dump speculation.
19258         (ipa_clone_references): Clone speculative flag.
19259         (ipa_clone_referring): Likewise.
19260         (ipa_clone_ref): New function.
19261         (ipa_find_reference): Look into lto_stmt_uids
19262         (ipa_clear_stmts_in_references): Do not clear speculative calls.
19263         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
19264         (ipa_find_reference): Update declaration.
19265         (ipa_clone_ref): Declare.
19266         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
19267         stream speculative flag.
19268         (lto_output_ref): Stream statements uids and speculation.
19269         (input_ref): Likewise.
19270         (input_edge): Stream speuclation.
19271         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
19272         (cgraph_set_call_stmt_including_clones): Handle speculation.
19273         * ipa-inline.c (heap_edge_removal_hook): New function.
19274         (inline_small_functions): Register it.
19275         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
19276         also initialize refs.
19277         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
19278         edge to change.
19279         (try_make_edge_direct_simple_call): Likewise.
19280         (try_make_edge_direct_simple_call): Likewise.
19281         (update_indirect_edges_after_inlining): Likewise.
19282         (remove_described_reference): Look proper lto_stmt_uid.
19283         (propagate_controlled_uses): Likewise.
19284         (propagate_controlled_uses): Liekwise.
19285         * tree-inline.c (copy_bb): Copy speculative edges.
19286         (redirect_all_calls): New function.
19287         (copy_cfg_body): Do redirection after loop info is updated.
19288         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
19290 2013-08-09  Jan Hubicka  <jh@suse.cz>
19292         * lto-streamer-out.c (output_function): Renumber PHIs.
19293         * lto-streamer-in.c (input_function): Likewise.
19295 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
19297         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
19298         (get_lane_unsigned): Likewise.
19299         (dup_lane_scalar): Likewise.
19300         (get_lane): enable for VALL.
19301         * config/aarch64/aarch64-simd.md
19302         (aarch64_dup_lane_scalar<mode>): Remove.
19303         (aarch64_get_lane_signed<mode>): Likewise.
19304         (aarch64_get_lane_unsigned<mode>): Likewise.
19305         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
19306         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
19307         (aarch64_get_lane<mode>): Enable for all vector modes.
19308         (aarch64_get_lanedi): Remove misleading constraints.
19309         * config/aarch64/arm_neon.h
19310         (__aarch64_vget_lane_any): Define.
19311         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
19312         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
19313         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
19314         * config/aarch64/iterators.md (VDQQH): New.
19315         (VDQQHS): Likewise.
19316         (vwcore): Likewise.
19318 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
19320         * configure.ac: Add GAS check for LEON instructions on SPARC.
19321         * configure: Regenerate.
19322         * config.in: Likewise.
19323         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
19324         sparc*-*-* block.
19325         * config/sparc/sparc.opt (LEON, LEON3): New masks.
19326         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
19327         for LEON or LEON3.
19328         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
19329         (AS_LEON_FLAG): New macro.
19330         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
19331         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
19332         Deal with LEON and LEON3 for the memory model.
19333         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
19334         (atomic_compare_and_swap<mode>_1): Likewise.
19335         (*atomic_compare_and_swap<mode>_1): Likewise.
19337 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19339         * config/arm/neon.md (vcond): Fix floating-point vector
19340         comparisons against 0.
19342 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
19344         * lra-constraints.c (emit_spill_move): Remove assert.
19345         (process_alt_operands): Add more debugging
19346         output.  Increase reject for spilling into memory.  Decrease
19347         reject for reloading scratch.
19348         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19350 2013-08-08  Steve Ellcey  <sellcey@mips.com>
19352         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19353         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19354         micromips incompatible.  Add nan2008.
19355         (MULTILIB_DIRNAMES): Add nan2008.
19356         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19357         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19358         and micromips incompatible.  Add nan2008.
19359         (MULTILIB_DIRNAMES): Add nan2008.
19360         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19362 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
19364         PR rtl-optimization/58079
19365         * combine.c (combine_simplify_rtx): Avoid using SUBST if
19366         simplify_comparison has widened a comparison with an integer.
19368 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19370         * config/arm/neon.md (movmisalign<mode>): Disable when we
19371         don't allow unaligned accesses.
19372         (*movmisalign<mode>_neon_store): Likewise.
19373         (*movmisalign<mode>_neon_load): Likewise.
19374         (*movmisalign<mode>_neon_store): Likewise.
19375         (*movmisalign<mode>_neon_load): Likewise.
19377 2013-08-08  Jan Hubicka  <jh@suse.cz>
19379         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19380         (make_pass_rebuild_cgraph_edges): Also clear references.
19381         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19382         * ipa-inline-transform.c (inline_transform): Remove all references
19383         after inlining.
19384         * cgraphunit.c (expand_function): Remove all references after
19385         expansion.
19386         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19387         (ipa_find_reference): Rewrite to iterator.
19388         (remove_stmt_references): Likewise.
19389         (ipa_clear_stmts_in_references): New function.
19390         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19391         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19392         clear references.
19393         * ipa-split.c (split_function): Remove references in split function.
19395 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
19397         PR target/57431
19398         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19399         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19401 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
19403         PR target/56979
19404         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19405         suggested mode for the assignment isn't compatible with the
19406         registers required.
19408 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19410         PR target/58065
19411         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19413 2013-08-07  Xinliang David Li  <davidxl@google.com>
19415         * config/i386/i386.opt: New option -mtune-ctrl=.
19416         * config/i386/x86-tune.def: New file.
19417         * config/i386/i386.h: include x86-tune.def.
19418         * config/i386/i386.c (ix86_option_override_internal):
19419         Parsing -mtune-ctrl= option and set tune features.
19421 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
19423         PR other/12081
19424         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19425         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19426         to gen_2arg_fn_t.
19428 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
19430         * rtl.h (update_alignments): Declare.
19431         * final.c (grow_label_align): New function extracted from...
19432         (shorten_branches): ...here.  Call it.
19433         (update_alignments): New function.
19434         * reorg.c (sibling_labels): New variable.
19435         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
19436         the new label along with it onto the sibling_labels vector.
19437         (fill_simple_delay_slots): Adjust call to get_label_before.
19438         (fill_slots_from_thread): Likewise.
19439         (relax_delay_slots): Likewise.
19440         (make_return_insns): Likewise.
19441         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19443 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
19445         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19446         document its semantics.
19447         (diagnostic_report_diagnostic): Adjust accordingly.
19449 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19451         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19452         (sparc_option_override): ...and port to new C++ pass API.
19453         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19455 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
19457         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19459 2013-08-06  Caroline Tice  <cmtice@google.com>
19461         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19462         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19463         * tree-pass.h: Add pass_vtable_verify.
19464         * varasm.c (assemble_variable): Add code to properly set the comdat
19465         section and name for the .vtable_map_vars section.
19466         (assemble_vtyv_preinit_initializer): New function.
19467         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
19468         LINK_ONCE flag.
19469         * output.h: Add function decl for assemble_vtv_preinit_initializer.
19470         * vtable-verify.c: New file.
19471         * vtable-verify.h: New file.
19472         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19473         initialiation levels.
19474         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19475         * passes.def: Insert pass_vtable_verify.
19476         * aclocal.m4: Reorder includes.
19477         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
19478         -fvtv-counts options.
19479         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19480         as appropriate, if -fvtable-verify=... is used.
19481         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19482         -fvtable-verify=... is used.
19483         * Makefile.in (OBJS):  Add vtable-verify.o to list.
19484         (vtable-verify.o): Add new build rule.
19485         (GTFILES): Add vtable-verify.c to list.
19486         * common.opt (fvtable-verify=): New flag.
19487         (vtv_priority): Values for fvtable-verify= flag.
19488         (fvtv-counts): New flag.
19489         (fvtv-debug): New flag.
19490         * tree.h (save_vtable_map_decl): New extern function decl.
19492 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19494         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19495         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19496         (pass_data_rl78_devirt): ...new pass_data instance and...
19497         (make_pass_rl78_devirt): ...new function.
19498         (rl78_asm_file_start): Port pass registration to new C++ API.
19500 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19502         * coretypes.h (rtl_opt_pass): Add.
19503         (gcc::context): Add.
19504         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19505         (epiphany_init): Port to new C++ pass API.
19506         (epiphany_optimize_mode_switching): Likewise.
19507         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19508         (pass_manager::get_pass_mode_switching): New.
19509         (pass_manager::get_pass_peephole2): New.
19510         * mode-switching.c (pass_mode_switching): Add clone method.
19511         * recog.c (pass_peephole2): Add clone method.
19512         (pass_split_all_insns): Add clone method.
19514 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
19516         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19517         (mips_option_override): ...here, porting to new C++ API for passes.
19519 2013-08-06  Jan Hubicka  <jh@suse.cz>
19521         * cgraph.c (cgraph_get_body): New function based on lto.c
19522         implementation.
19523         * cgraph.h (cgraph_get_body): Declare.
19524         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19525         LTO paths.
19526         * cgraphunit.c (expand_function): Get body prior expanding.
19527         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19528         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19529         really need.
19530         * passes.c (do_per_function_toporder): Get body.
19531         * tree-inline.c (expand_call_inline): Get body prior inlining it.
19532         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19534 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19536         PR fortran/57987
19537         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19538         is not re-finalized.  Rename second parameter to no_collect.
19540 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19542         PR middle-end/58041
19543         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19544         MEM_REF has proper alignment information.
19546 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
19548         PR other/12081
19549         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19550         class insn_gen_fn.
19551         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19552         rtx (*) (rtx, ...) with insn_gen_fn.
19553         * genoutput.c (output_insn_data): Cast gen_? function pointers to
19554         insn_gen_fn::stored_funcptr.  Add initializer braces.
19556 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19558         Rewrite how instances of passes are cloned to remove assumptions
19559         about their sizes (thus allowing pass subclasses to have
19560         additional data fields, albeit non-GC-managed ones at this point).
19562         * passes.c (make_pass_instance): Now that passes have clone
19563         methods, rewrite this function to eliminate XNEW and memcpy
19564         calls that used hardcoded sizes.  Since this function no longer
19565         creates pass instances, rename it to...
19566         (add_pass_instance): ...this.  Document the old way that passes were
19567         numbered and flagged, and rework this function to continue using it.
19568         (next_pass_1): Add an initial_pass argument for use by
19569         add_pass_instance.
19570         (position_pass): When adding multiple instances of a pass, use
19571         the pass's clone method, rather than relying on the XNEW/memcpy
19572         within the former make_pass_instance (now add_pass_instance).
19573         (pass_manager::pass_manager): When invoking next_pass_1, also supply
19574         the initial instance of the current pass within the pass manager.
19576 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19578         This is the automated part of the conversion of passes from C
19579         structs to C++ classes.
19581         Patch autogenerated by refactor_passes.py from
19582         https://github.com/davidmalcolm/gcc-refactoring-scripts
19583         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19585         * asan.c (pass_asan): Convert from a global struct to a subclass of
19586         gimple_opt_pass along with...
19587         (pass_data_asan): ...new pass_data instance and...
19588         (make_pass_asan): ...new function.
19589         (pass_asan_O0): Convert from a global struct to a subclass of
19590         gimple_opt_pass along with...
19591         (pass_data_asan_O0): ...new pass_data instance and...
19592         (make_pass_asan_O0): ...new function.
19593         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19594         subclass of rtl_opt_pass along with...
19595         (pass_data_inc_dec): ...new pass_data instance and...
19596         (make_pass_inc_dec): ...new function.
19597         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19598         a subclass of rtl_opt_pass along with...
19599         (pass_data_reorder_blocks): ...new pass_data instance and...
19600         (make_pass_reorder_blocks): ...new function.
19601         (pass_duplicate_computed_gotos): Convert from a global struct to a
19602         subclass of rtl_opt_pass along with...
19603         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19604         (make_pass_duplicate_computed_gotos): ...new function.
19605         (pass_partition_blocks): Convert from a global struct to a subclass of
19606         rtl_opt_pass along with...
19607         (pass_data_partition_blocks): ...new pass_data instance and...
19608         (make_pass_partition_blocks): ...new function.
19609         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19610         struct to a subclass of rtl_opt_pass along with...
19611         (pass_data_branch_target_load_optimize1): ...new pass_data instance
19612         and...
19613         (make_pass_branch_target_load_optimize1): ...new function.
19614         (pass_branch_target_load_optimize2): Convert from a global struct to a
19615         subclass of rtl_opt_pass along with...
19616         (pass_data_branch_target_load_optimize2): ...new pass_data instance
19617         and...
19618         (make_pass_branch_target_load_optimize2): ...new function.
19619         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19620         of rtl_opt_pass along with...
19621         (pass_data_jump): ...new pass_data instance and...
19622         (make_pass_jump): ...new function.
19623         (pass_jump2): Convert from a global struct to a subclass of
19624         rtl_opt_pass along with...
19625         (pass_data_jump2): ...new pass_data instance and...
19626         (make_pass_jump2): ...new function.
19627         * cfgexpand.c (pass_expand): Convert from a global struct to a
19628         subclass of rtl_opt_pass along with...
19629         (pass_data_expand): ...new pass_data instance and...
19630         (make_pass_expand): ...new function.
19631         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19632         of rtl_opt_pass along with...
19633         (pass_data_free_cfg): ...new pass_data instance and...
19634         (make_pass_free_cfg): ...new function.
19635         (pass_into_cfg_layout_mode): Convert from a global struct to a
19636         subclass of rtl_opt_pass along with...
19637         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19638         (make_pass_into_cfg_layout_mode): ...new function.
19639         (pass_outof_cfg_layout_mode): Convert from a global struct to a
19640         subclass of rtl_opt_pass along with...
19641         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19642         (make_pass_outof_cfg_layout_mode): ...new function.
19643         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19644         struct to a subclass of gimple_opt_pass along with...
19645         (pass_data_build_cgraph_edges): ...new pass_data instance and...
19646         (make_pass_build_cgraph_edges): ...new function.
19647         (pass_rebuild_cgraph_edges): Convert from a global struct to a
19648         subclass of gimple_opt_pass along with...
19649         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19650         (make_pass_rebuild_cgraph_edges): ...new function.
19651         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19652         subclass of gimple_opt_pass along with...
19653         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19654         and...
19655         (make_pass_remove_cgraph_callee_edges): ...new function.
19656         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19657         struct to a subclass of rtl_opt_pass along with...
19658         (pass_data_stack_adjustments): ...new pass_data instance and...
19659         (make_pass_stack_adjustments): ...new function.
19660         * combine.c (pass_combine): Convert from a global struct to a subclass
19661         of rtl_opt_pass along with...
19662         (pass_data_combine): ...new pass_data instance and...
19663         (make_pass_combine): ...new function.
19664         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19665         global struct to a subclass of rtl_opt_pass along with...
19666         (pass_data_compare_elim_after_reload): ...new pass_data instance
19667         and...
19668         (make_pass_compare_elim_after_reload): ...new function.
19669         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19670         of rtl_opt_pass along with...
19671         (pass_data_rtl_cprop): ...new pass_data instance and...
19672         (make_pass_rtl_cprop): ...new function.
19673         * cse.c (pass_cse): Convert from a global struct to a subclass of
19674         rtl_opt_pass along with...
19675         (pass_data_cse): ...new pass_data instance and...
19676         (make_pass_cse): ...new function.
19677         (pass_cse2): Convert from a global struct to a subclass of
19678         rtl_opt_pass along with...
19679         (pass_data_cse2): ...new pass_data instance and...
19680         (make_pass_cse2): ...new function.
19681         (pass_cse_after_global_opts): Convert from a global struct to a
19682         subclass of rtl_opt_pass along with...
19683         (pass_data_cse_after_global_opts): ...new pass_data instance and...
19684         (make_pass_cse_after_global_opts): ...new function.
19685         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19686         of rtl_opt_pass along with...
19687         (pass_data_ud_rtl_dce): ...new pass_data instance and...
19688         (make_pass_ud_rtl_dce): ...new function.
19689         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19690         rtl_opt_pass along with...
19691         (pass_data_fast_rtl_dce): ...new pass_data instance and...
19692         (make_pass_fast_rtl_dce): ...new function.
19693         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19694         a subclass of rtl_opt_pass along with...
19695         (pass_data_df_initialize_opt): ...new pass_data instance and...
19696         (make_pass_df_initialize_opt): ...new function.
19697         (pass_df_initialize_no_opt): Convert from a global struct to a
19698         subclass of rtl_opt_pass along with...
19699         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19700         (make_pass_df_initialize_no_opt): ...new function.
19701         (pass_df_finish): Convert from a global struct to a subclass of
19702         rtl_opt_pass along with...
19703         (pass_data_df_finish): ...new pass_data instance and...
19704         (make_pass_df_finish): ...new function.
19705         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19706         rtl_opt_pass along with...
19707         (pass_data_rtl_dse1): ...new pass_data instance and...
19708         (make_pass_rtl_dse1): ...new function.
19709         (pass_rtl_dse2): Convert from a global struct to a subclass of
19710         rtl_opt_pass along with...
19711         (pass_data_rtl_dse2): ...new pass_data instance and...
19712         (make_pass_rtl_dse2): ...new function.
19713         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19714         subclass of rtl_opt_pass along with...
19715         (pass_data_dwarf2_frame): ...new pass_data instance and...
19716         (make_pass_dwarf2_frame): ...new function.
19717         * except.c (pass_set_nothrow_function_flags): Convert from a global
19718         struct to a subclass of rtl_opt_pass along with...
19719         (pass_data_set_nothrow_function_flags): ...new pass_data instance
19720         and...
19721         (make_pass_set_nothrow_function_flags): ...new function.
19722         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19723         subclass of rtl_opt_pass along with...
19724         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19725         and...
19726         (make_pass_convert_to_eh_region_ranges): ...new function.
19727         * final.c (pass_compute_alignments): Convert from a global struct to a
19728         subclass of rtl_opt_pass along with...
19729         (pass_data_compute_alignments): ...new pass_data instance and...
19730         (make_pass_compute_alignments): ...new function.
19731         (pass_final): Convert from a global struct to a subclass of
19732         rtl_opt_pass along with...
19733         (pass_data_final): ...new pass_data instance and...
19734         (make_pass_final): ...new function.
19735         (pass_shorten_branches): Convert from a global struct to a subclass of
19736         rtl_opt_pass along with...
19737         (pass_data_shorten_branches): ...new pass_data instance and...
19738         (make_pass_shorten_branches): ...new function.
19739         (pass_clean_state): Convert from a global struct to a subclass of
19740         rtl_opt_pass along with...
19741         (pass_data_clean_state): ...new pass_data instance and...
19742         (make_pass_clean_state): ...new function.
19743         * function.c (pass_instantiate_virtual_regs): Convert from a global
19744         struct to a subclass of rtl_opt_pass along with...
19745         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19746         (make_pass_instantiate_virtual_regs): ...new function.
19747         (pass_leaf_regs): Convert from a global struct to a subclass of
19748         rtl_opt_pass along with...
19749         (pass_data_leaf_regs): ...new pass_data instance and...
19750         (make_pass_leaf_regs): ...new function.
19751         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19752         subclass of rtl_opt_pass along with...
19753         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19754         and...
19755         (make_pass_thread_prologue_and_epilogue): ...new function.
19756         (pass_match_asm_constraints): Convert from a global struct to a
19757         subclass of rtl_opt_pass along with...
19758         (pass_data_match_asm_constraints): ...new pass_data instance and...
19759         (make_pass_match_asm_constraints): ...new function.
19760         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19761         subclass of rtl_opt_pass along with...
19762         (pass_data_rtl_fwprop): ...new pass_data instance and...
19763         (make_pass_rtl_fwprop): ...new function.
19764         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19765         rtl_opt_pass along with...
19766         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19767         (make_pass_rtl_fwprop_addr): ...new function.
19768         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19769         rtl_opt_pass along with...
19770         (pass_data_rtl_pre): ...new pass_data instance and...
19771         (make_pass_rtl_pre): ...new function.
19772         (pass_rtl_hoist): Convert from a global struct to a subclass of
19773         rtl_opt_pass along with...
19774         (pass_data_rtl_hoist): ...new pass_data instance and...
19775         (make_pass_rtl_hoist): ...new function.
19776         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19777         subclass of gimple_opt_pass along with...
19778         (pass_data_lower_cf): ...new pass_data instance and...
19779         (make_pass_lower_cf): ...new function.
19780         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19781         from a global struct to a subclass of gimple_opt_pass along with...
19782         (pass_data_strength_reduction): ...new pass_data instance and...
19783         (make_pass_strength_reduction): ...new function.
19784         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19785         of rtl_opt_pass along with...
19786         (pass_data_rtl_ifcvt): ...new pass_data instance and...
19787         (make_pass_rtl_ifcvt): ...new function.
19788         (pass_if_after_combine): Convert from a global struct to a subclass of
19789         rtl_opt_pass along with...
19790         (pass_data_if_after_combine): ...new pass_data instance and...
19791         (make_pass_if_after_combine): ...new function.
19792         (pass_if_after_reload): Convert from a global struct to a subclass of
19793         rtl_opt_pass along with...
19794         (pass_data_if_after_reload): ...new pass_data instance and...
19795         (make_pass_if_after_reload): ...new function.
19796         * init-regs.c (pass_initialize_regs): Convert from a global struct to
19797         a subclass of rtl_opt_pass along with...
19798         (pass_data_initialize_regs): ...new pass_data instance and...
19799         (make_pass_initialize_regs): ...new function.
19800         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19801         of ipa_opt_pass_d along with...
19802         (pass_data_ipa_cp): ...new pass_data instance and...
19803         (make_pass_ipa_cp): ...new function.
19804         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19805         global struct to a subclass of gimple_opt_pass along with...
19806         (pass_data_inline_parameters): ...new pass_data instance and...
19807         (make_pass_inline_parameters): ...new function.
19808         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19809         subclass of gimple_opt_pass along with...
19810         (pass_data_early_inline): ...new pass_data instance and...
19811         (make_pass_early_inline): ...new function.
19812         (pass_ipa_inline): Convert from a global struct to a subclass of
19813         ipa_opt_pass_d along with...
19814         (pass_data_ipa_inline): ...new pass_data instance and...
19815         (make_pass_ipa_inline): ...new function.
19816         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19817         struct to a subclass of gimple_opt_pass along with...
19818         (pass_data_local_pure_const): ...new pass_data instance and...
19819         (make_pass_local_pure_const): ...new function.
19820         (pass_ipa_pure_const): Convert from a global struct to a subclass of
19821         ipa_opt_pass_d along with...
19822         (pass_data_ipa_pure_const): ...new pass_data instance and...
19823         (make_pass_ipa_pure_const): ...new function.
19824         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19825         to a subclass of ipa_opt_pass_d along with...
19826         (pass_data_ipa_reference): ...new pass_data instance and...
19827         (make_pass_ipa_reference): ...new function.
19828         * ipa-split.c (pass_split_functions): Convert from a global struct to
19829         a subclass of gimple_opt_pass along with...
19830         (pass_data_split_functions): ...new pass_data instance and...
19831         (make_pass_split_functions): ...new function.
19832         (pass_feedback_split_functions): Convert from a global struct to a
19833         subclass of gimple_opt_pass along with...
19834         (pass_data_feedback_split_functions): ...new pass_data instance and...
19835         (make_pass_feedback_split_functions): ...new function.
19836         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19837         global struct to a subclass of simple_ipa_opt_pass along with...
19838         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19839         instance and...
19840         (make_pass_ipa_function_and_variable_visibility): ...new function.
19841         (pass_ipa_free_inline_summary): Convert from a global struct to a
19842         subclass of simple_ipa_opt_pass along with...
19843         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19844         (make_pass_ipa_free_inline_summary): ...new function.
19845         (pass_ipa_whole_program_visibility): Convert from a global struct to a
19846         subclass of ipa_opt_pass_d along with...
19847         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19848         and...
19849         (make_pass_ipa_whole_program_visibility): ...new function.
19850         (pass_ipa_profile): Convert from a global struct to a subclass of
19851         ipa_opt_pass_d along with...
19852         (pass_data_ipa_profile): ...new pass_data instance and...
19853         (make_pass_ipa_profile): ...new function.
19854         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19855         ipa_opt_pass_d along with...
19856         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19857         (make_pass_ipa_cdtor_merge): ...new function.
19858         * ira.c (pass_ira): Convert from a global struct to a subclass of
19859         rtl_opt_pass along with...
19860         (pass_data_ira): ...new pass_data instance and...
19861         (make_pass_ira): ...new function.
19862         (pass_reload): Convert from a global struct to a subclass of
19863         rtl_opt_pass along with...
19864         (pass_data_reload): ...new pass_data instance and...
19865         (make_pass_reload): ...new function.
19866         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19867         subclass of rtl_opt_pass along with...
19868         (pass_data_cleanup_barriers): ...new pass_data instance and...
19869         (make_pass_cleanup_barriers): ...new function.
19870         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19871         of rtl_opt_pass along with...
19872         (pass_data_loop2): ...new pass_data instance and...
19873         (make_pass_loop2): ...new function.
19874         (pass_rtl_loop_init): Convert from a global struct to a subclass of
19875         rtl_opt_pass along with...
19876         (pass_data_rtl_loop_init): ...new pass_data instance and...
19877         (make_pass_rtl_loop_init): ...new function.
19878         (pass_rtl_loop_done): Convert from a global struct to a subclass of
19879         rtl_opt_pass along with...
19880         (pass_data_rtl_loop_done): ...new pass_data instance and...
19881         (make_pass_rtl_loop_done): ...new function.
19882         (pass_rtl_move_loop_invariants): Convert from a global struct to a
19883         subclass of rtl_opt_pass along with...
19884         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19885         (make_pass_rtl_move_loop_invariants): ...new function.
19886         (pass_rtl_unswitch): Convert from a global struct to a subclass of
19887         rtl_opt_pass along with...
19888         (pass_data_rtl_unswitch): ...new pass_data instance and...
19889         (make_pass_rtl_unswitch): ...new function.
19890         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19891         subclass of rtl_opt_pass along with...
19892         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19893         and...
19894         (make_pass_rtl_unroll_and_peel_loops): ...new function.
19895         (pass_rtl_doloop): Convert from a global struct to a subclass of
19896         rtl_opt_pass along with...
19897         (pass_data_rtl_doloop): ...new pass_data instance and...
19898         (make_pass_rtl_doloop): ...new function.
19899         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19900         a subclass of rtl_opt_pass along with...
19901         (pass_data_lower_subreg): ...new pass_data instance and...
19902         (make_pass_lower_subreg): ...new function.
19903         (pass_lower_subreg2): Convert from a global struct to a subclass of
19904         rtl_opt_pass along with...
19905         (pass_data_lower_subreg2): ...new pass_data instance and...
19906         (make_pass_lower_subreg2): ...new function.
19907         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19908         struct to a subclass of ipa_opt_pass_d along with...
19909         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19910         (make_pass_ipa_lto_gimple_out): ...new function.
19911         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19912         of ipa_opt_pass_d along with...
19913         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19914         (make_pass_ipa_lto_finish_out): ...new function.
19915         * mode-switching.c (pass_mode_switching): Convert from a global struct
19916         to a subclass of rtl_opt_pass along with...
19917         (pass_data_mode_switching): ...new pass_data instance and...
19918         (make_pass_mode_switching): ...new function.
19919         * modulo-sched.c (pass_sms): Convert from a global struct to a
19920         subclass of rtl_opt_pass along with...
19921         (pass_data_sms): ...new pass_data instance and...
19922         (make_pass_sms): ...new function.
19923         * omp-low.c (pass_expand_omp): Convert from a global struct to a
19924         subclass of gimple_opt_pass along with...
19925         (pass_data_expand_omp): ...new pass_data instance and...
19926         (make_pass_expand_omp): ...new function.
19927         (pass_lower_omp): Convert from a global struct to a subclass of
19928         gimple_opt_pass along with...
19929         (pass_data_lower_omp): ...new pass_data instance and...
19930         (make_pass_lower_omp): ...new function.
19931         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19932         of gimple_opt_pass along with...
19933         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19934         (make_pass_diagnose_omp_blocks): ...new function.
19935         * passes.c (pass_early_local_passes): Convert from a global struct to
19936         a subclass of simple_ipa_opt_pass along with...
19937         (pass_data_early_local_passes): ...new pass_data instance and...
19938         (make_pass_early_local_passes): ...new function.
19939         (pass_all_early_optimizations): Convert from a global struct to a
19940         subclass of gimple_opt_pass along with...
19941         (pass_data_all_early_optimizations): ...new pass_data instance and...
19942         (make_pass_all_early_optimizations): ...new function.
19943         (pass_all_optimizations): Convert from a global struct to a subclass
19944         of gimple_opt_pass along with...
19945         (pass_data_all_optimizations): ...new pass_data instance and...
19946         (make_pass_all_optimizations): ...new function.
19947         (pass_all_optimizations_g): Convert from a global struct to a subclass
19948         of gimple_opt_pass along with...
19949         (pass_data_all_optimizations_g): ...new pass_data instance and...
19950         (make_pass_all_optimizations_g): ...new function.
19951         (pass_rest_of_compilation): Convert from a global struct to a subclass
19952         of rtl_opt_pass along with...
19953         (pass_data_rest_of_compilation): ...new pass_data instance and...
19954         (make_pass_rest_of_compilation): ...new function.
19955         (pass_postreload): Convert from a global struct to a subclass of
19956         rtl_opt_pass along with...
19957         (pass_data_postreload): ...new pass_data instance and...
19958         (make_pass_postreload): ...new function.
19959         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19960         subclass of rtl_opt_pass along with...
19961         (pass_data_gcse2): ...new pass_data instance and...
19962         (make_pass_gcse2): ...new function.
19963         * postreload.c (pass_postreload_cse): Convert from a global struct to
19964         a subclass of rtl_opt_pass along with...
19965         (pass_data_postreload_cse): ...new pass_data instance and...
19966         (make_pass_postreload_cse): ...new function.
19967         * predict.c (pass_profile): Convert from a global struct to a subclass
19968         of gimple_opt_pass along with...
19969         (pass_data_profile): ...new pass_data instance and...
19970         (make_pass_profile): ...new function.
19971         (pass_strip_predict_hints): Convert from a global struct to a subclass
19972         of gimple_opt_pass along with...
19973         (pass_data_strip_predict_hints): ...new pass_data instance and...
19974         (make_pass_strip_predict_hints): ...new function.
19975         * recog.c (pass_peephole2): Convert from a global struct to a subclass
19976         of rtl_opt_pass along with...
19977         (pass_data_peephole2): ...new pass_data instance and...
19978         (make_pass_peephole2): ...new function.
19979         (pass_split_all_insns): Convert from a global struct to a subclass of
19980         rtl_opt_pass along with...
19981         (pass_data_split_all_insns): ...new pass_data instance and...
19982         (make_pass_split_all_insns): ...new function.
19983         (pass_split_after_reload): Convert from a global struct to a subclass
19984         of rtl_opt_pass along with...
19985         (pass_data_split_after_reload): ...new pass_data instance and...
19986         (make_pass_split_after_reload): ...new function.
19987         (pass_split_before_regstack): Convert from a global struct to a
19988         subclass of rtl_opt_pass along with...
19989         (pass_data_split_before_regstack): ...new pass_data instance and...
19990         (make_pass_split_before_regstack): ...new function.
19991         (pass_split_before_sched2): Convert from a global struct to a subclass
19992         of rtl_opt_pass along with...
19993         (pass_data_split_before_sched2): ...new pass_data instance and...
19994         (make_pass_split_before_sched2): ...new function.
19995         (pass_split_for_shorten_branches): Convert from a global struct to a
19996         subclass of rtl_opt_pass along with...
19997         (pass_data_split_for_shorten_branches): ...new pass_data instance
19998         and...
19999         (make_pass_split_for_shorten_branches): ...new function.
20000         * ree.c (pass_ree): Convert from a global struct to a subclass of
20001         rtl_opt_pass along with...
20002         (pass_data_ree): ...new pass_data instance and...
20003         (make_pass_ree): ...new function.
20004         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
20005         subclass of rtl_opt_pass along with...
20006         (pass_data_stack_regs): ...new pass_data instance and...
20007         (make_pass_stack_regs): ...new function.
20008         (pass_stack_regs_run): Convert from a global struct to a subclass of
20009         rtl_opt_pass along with...
20010         (pass_data_stack_regs_run): ...new pass_data instance and...
20011         (make_pass_stack_regs_run): ...new function.
20012         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
20013         subclass of rtl_opt_pass along with...
20014         (pass_data_cprop_hardreg): ...new pass_data instance and...
20015         (make_pass_cprop_hardreg): ...new function.
20016         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
20017         subclass of rtl_opt_pass along with...
20018         (pass_data_reginfo_init): ...new pass_data instance and...
20019         (make_pass_reginfo_init): ...new function.
20020         * regmove.c (pass_regmove): Convert from a global struct to a subclass
20021         of rtl_opt_pass along with...
20022         (pass_data_regmove): ...new pass_data instance and...
20023         (make_pass_regmove): ...new function.
20024         * regrename.c (pass_regrename): Convert from a global struct to a
20025         subclass of rtl_opt_pass along with...
20026         (pass_data_regrename): ...new pass_data instance and...
20027         (make_pass_regrename): ...new function.
20028         * reorg.c (pass_delay_slots): Convert from a global struct to a
20029         subclass of rtl_opt_pass along with...
20030         (pass_data_delay_slots): ...new pass_data instance and...
20031         (make_pass_delay_slots): ...new function.
20032         (pass_machine_reorg): Convert from a global struct to a subclass of
20033         rtl_opt_pass along with...
20034         (pass_data_machine_reorg): ...new pass_data instance and...
20035         (make_pass_machine_reorg): ...new function.
20036         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
20037         of rtl_opt_pass along with...
20038         (pass_data_sched): ...new pass_data instance and...
20039         (make_pass_sched): ...new function.
20040         (pass_sched2): Convert from a global struct to a subclass of
20041         rtl_opt_pass along with...
20042         (pass_data_sched2): ...new pass_data instance and...
20043         (make_pass_sched2): ...new function.
20044         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
20045         to a subclass of rtl_opt_pass along with...
20046         (pass_data_stack_ptr_mod): ...new pass_data instance and...
20047         (make_pass_stack_ptr_mod): ...new function.
20048         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
20049         to a subclass of rtl_opt_pass along with...
20050         (pass_data_rtl_store_motion): ...new pass_data instance and...
20051         (make_pass_rtl_store_motion): ...new function.
20052         * tracer.c (pass_tracer): Convert from a global struct to a subclass
20053         of gimple_opt_pass along with...
20054         (pass_data_tracer): ...new pass_data instance and...
20055         (make_pass_tracer): ...new function.
20056         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
20057         to a subclass of gimple_opt_pass along with...
20058         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
20059         (make_pass_diagnose_tm_blocks): ...new function.
20060         (pass_lower_tm): Convert from a global struct to a subclass of
20061         gimple_opt_pass along with...
20062         (pass_data_lower_tm): ...new pass_data instance and...
20063         (make_pass_lower_tm): ...new function.
20064         (pass_tm_init): Convert from a global struct to a subclass of
20065         gimple_opt_pass along with...
20066         (pass_data_tm_init): ...new pass_data instance and...
20067         (make_pass_tm_init): ...new function.
20068         (pass_tm_mark): Convert from a global struct to a subclass of
20069         gimple_opt_pass along with...
20070         (pass_data_tm_mark): ...new pass_data instance and...
20071         (make_pass_tm_mark): ...new function.
20072         (pass_tm_edges): Convert from a global struct to a subclass of
20073         gimple_opt_pass along with...
20074         (pass_data_tm_edges): ...new pass_data instance and...
20075         (make_pass_tm_edges): ...new function.
20076         (pass_tm_memopt): Convert from a global struct to a subclass of
20077         gimple_opt_pass along with...
20078         (pass_data_tm_memopt): ...new pass_data instance and...
20079         (make_pass_tm_memopt): ...new function.
20080         (pass_ipa_tm): Convert from a global struct to a subclass of
20081         simple_ipa_opt_pass along with...
20082         (pass_data_ipa_tm): ...new pass_data instance and...
20083         (make_pass_ipa_tm): ...new function.
20084         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
20085         subclass of gimple_opt_pass along with...
20086         (pass_data_call_cdce): ...new pass_data instance and...
20087         (make_pass_call_cdce): ...new function.
20088         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
20089         subclass of gimple_opt_pass along with...
20090         (pass_data_build_cfg): ...new pass_data instance and...
20091         (make_pass_build_cfg): ...new function.
20092         (pass_split_crit_edges): Convert from a global struct to a subclass of
20093         gimple_opt_pass along with...
20094         (pass_data_split_crit_edges): ...new pass_data instance and...
20095         (make_pass_split_crit_edges): ...new function.
20096         (pass_warn_function_return): Convert from a global struct to a
20097         subclass of gimple_opt_pass along with...
20098         (pass_data_warn_function_return): ...new pass_data instance and...
20099         (make_pass_warn_function_return): ...new function.
20100         (pass_warn_function_noreturn): Convert from a global struct to a
20101         subclass of gimple_opt_pass along with...
20102         (pass_data_warn_function_noreturn): ...new pass_data instance and...
20103         (make_pass_warn_function_noreturn): ...new function.
20104         (pass_warn_unused_result): Convert from a global struct to a subclass
20105         of gimple_opt_pass along with...
20106         (pass_data_warn_unused_result): ...new pass_data instance and...
20107         (make_pass_warn_unused_result): ...new function.
20108         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
20109         a subclass of gimple_opt_pass along with...
20110         (pass_data_merge_phi): ...new pass_data instance and...
20111         (make_pass_merge_phi): ...new function.
20112         * tree-complex.c (pass_lower_complex): Convert from a global struct to
20113         a subclass of gimple_opt_pass along with...
20114         (pass_data_lower_complex): ...new pass_data instance and...
20115         (make_pass_lower_complex): ...new function.
20116         (pass_lower_complex_O0): Convert from a global struct to a subclass of
20117         gimple_opt_pass along with...
20118         (pass_data_lower_complex_O0): ...new pass_data instance and...
20119         (make_pass_lower_complex_O0): ...new function.
20120         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
20121         subclass of gimple_opt_pass along with...
20122         (pass_data_lower_eh): ...new pass_data instance and...
20123         (make_pass_lower_eh): ...new function.
20124         (pass_refactor_eh): Convert from a global struct to a subclass of
20125         gimple_opt_pass along with...
20126         (pass_data_refactor_eh): ...new pass_data instance and...
20127         (make_pass_refactor_eh): ...new function.
20128         (pass_lower_resx): Convert from a global struct to a subclass of
20129         gimple_opt_pass along with...
20130         (pass_data_lower_resx): ...new pass_data instance and...
20131         (make_pass_lower_resx): ...new function.
20132         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
20133         of gimple_opt_pass along with...
20134         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
20135         (make_pass_lower_eh_dispatch): ...new function.
20136         (pass_cleanup_eh): Convert from a global struct to a subclass of
20137         gimple_opt_pass along with...
20138         (pass_data_cleanup_eh): ...new pass_data instance and...
20139         (make_pass_cleanup_eh): ...new function.
20140         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
20141         to a subclass of simple_ipa_opt_pass along with...
20142         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
20143         (make_pass_ipa_lower_emutls): ...new function.
20144         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
20145         a subclass of gimple_opt_pass along with...
20146         (pass_data_if_conversion): ...new pass_data instance and...
20147         (make_pass_if_conversion): ...new function.
20148         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
20149         subclass of gimple_opt_pass along with...
20150         (pass_data_build_ssa): ...new pass_data instance and...
20151         (make_pass_build_ssa): ...new function.
20152         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
20153         global struct to a subclass of gimple_opt_pass along with...
20154         (pass_data_loop_distribution): ...new pass_data instance and...
20155         (make_pass_loop_distribution): ...new function.
20156         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
20157         subclass of gimple_opt_pass along with...
20158         (pass_data_mudflap_1): ...new pass_data instance and...
20159         (make_pass_mudflap_1): ...new function.
20160         (pass_mudflap_2): Convert from a global struct to a subclass of
20161         gimple_opt_pass along with...
20162         (pass_data_mudflap_2): ...new pass_data instance and...
20163         (make_pass_mudflap_2): ...new function.
20164         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
20165         subclass of gimple_opt_pass along with...
20166         (pass_data_mudflap_1): ...new pass_data instance and...
20167         (make_pass_mudflap_1): ...new function.
20168         (pass_mudflap_2): Convert from a global struct to a subclass of
20169         gimple_opt_pass along with...
20170         (pass_data_mudflap_2): ...new pass_data instance and...
20171         (make_pass_mudflap_2): ...new function.
20172         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
20173         gimple_opt_pass along with...
20174         (pass_data_nrv): ...new pass_data instance and...
20175         (make_pass_nrv): ...new function.
20176         (pass_return_slot): Convert from a global struct to a subclass of
20177         gimple_opt_pass along with...
20178         (pass_data_return_slot): ...new pass_data instance and...
20179         (make_pass_return_slot): ...new function.
20180         * tree-object-size.c (pass_object_sizes): Convert from a global struct
20181         to a subclass of gimple_opt_pass along with...
20182         (pass_data_object_sizes): ...new pass_data instance and...
20183         (make_pass_object_sizes): ...new function.
20184         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
20185         global struct to a subclass of gimple_opt_pass along with...
20186         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
20187         and...
20188         (make_pass_cleanup_cfg_post_optimizing): ...new function.
20189         (pass_fixup_cfg): Convert from a global struct to a subclass of
20190         gimple_opt_pass along with...
20191         (pass_data_fixup_cfg): ...new pass_data instance and...
20192         (make_pass_fixup_cfg): ...new function.
20193         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
20194         (make_pass_mudflap_1): ...new function.
20195         (pass_mudflap_2): Replace declaration with that of...
20196         (make_pass_mudflap_2): ...new function.
20197         (pass_asan): Replace declaration with that of...
20198         (make_pass_asan): ...new function.
20199         (pass_asan_O0): Replace declaration with that of...
20200         (make_pass_asan_O0): ...new function.
20201         (pass_tsan): Replace declaration with that of...
20202         (make_pass_tsan): ...new function.
20203         (pass_tsan_O0): Replace declaration with that of...
20204         (make_pass_tsan_O0): ...new function.
20205         (pass_lower_cf): Replace declaration with that of...
20206         (make_pass_lower_cf): ...new function.
20207         (pass_refactor_eh): Replace declaration with that of...
20208         (make_pass_refactor_eh): ...new function.
20209         (pass_lower_eh): Replace declaration with that of...
20210         (make_pass_lower_eh): ...new function.
20211         (pass_lower_eh_dispatch): Replace declaration with that of...
20212         (make_pass_lower_eh_dispatch): ...new function.
20213         (pass_lower_resx): Replace declaration with that of...
20214         (make_pass_lower_resx): ...new function.
20215         (pass_build_cfg): Replace declaration with that of...
20216         (make_pass_build_cfg): ...new function.
20217         (pass_early_tree_profile): Replace declaration with that of...
20218         (make_pass_early_tree_profile): ...new function.
20219         (pass_cleanup_eh): Replace declaration with that of...
20220         (make_pass_cleanup_eh): ...new function.
20221         (pass_sra): Replace declaration with that of...
20222         (make_pass_sra): ...new function.
20223         (pass_sra_early): Replace declaration with that of...
20224         (make_pass_sra_early): ...new function.
20225         (pass_early_ipa_sra): Replace declaration with that of...
20226         (make_pass_early_ipa_sra): ...new function.
20227         (pass_tail_recursion): Replace declaration with that of...
20228         (make_pass_tail_recursion): ...new function.
20229         (pass_tail_calls): Replace declaration with that of...
20230         (make_pass_tail_calls): ...new function.
20231         (pass_tree_loop): Replace declaration with that of...
20232         (make_pass_tree_loop): ...new function.
20233         (pass_tree_loop_init): Replace declaration with that of...
20234         (make_pass_tree_loop_init): ...new function.
20235         (pass_lim): Replace declaration with that of...
20236         (make_pass_lim): ...new function.
20237         (pass_tree_unswitch): Replace declaration with that of...
20238         (make_pass_tree_unswitch): ...new function.
20239         (pass_predcom): Replace declaration with that of...
20240         (make_pass_predcom): ...new function.
20241         (pass_iv_canon): Replace declaration with that of...
20242         (make_pass_iv_canon): ...new function.
20243         (pass_scev_cprop): Replace declaration with that of...
20244         (make_pass_scev_cprop): ...new function.
20245         (pass_empty_loop): Replace declaration with that of...
20246         (make_pass_empty_loop): ...new function.
20247         (pass_record_bounds): Replace declaration with that of...
20248         (make_pass_record_bounds): ...new function.
20249         (pass_graphite): Replace declaration with that of...
20250         (make_pass_graphite): ...new function.
20251         (pass_graphite_transforms): Replace declaration with that of...
20252         (make_pass_graphite_transforms): ...new function.
20253         (pass_if_conversion): Replace declaration with that of...
20254         (make_pass_if_conversion): ...new function.
20255         (pass_loop_distribution): Replace declaration with that of...
20256         (make_pass_loop_distribution): ...new function.
20257         (pass_vectorize): Replace declaration with that of...
20258         (make_pass_vectorize): ...new function.
20259         (pass_slp_vectorize): Replace declaration with that of...
20260         (make_pass_slp_vectorize): ...new function.
20261         (pass_complete_unroll): Replace declaration with that of...
20262         (make_pass_complete_unroll): ...new function.
20263         (pass_complete_unrolli): Replace declaration with that of...
20264         (make_pass_complete_unrolli): ...new function.
20265         (pass_parallelize_loops): Replace declaration with that of...
20266         (make_pass_parallelize_loops): ...new function.
20267         (pass_loop_prefetch): Replace declaration with that of...
20268         (make_pass_loop_prefetch): ...new function.
20269         (pass_iv_optimize): Replace declaration with that of...
20270         (make_pass_iv_optimize): ...new function.
20271         (pass_tree_loop_done): Replace declaration with that of...
20272         (make_pass_tree_loop_done): ...new function.
20273         (pass_ch): Replace declaration with that of...
20274         (make_pass_ch): ...new function.
20275         (pass_ccp): Replace declaration with that of...
20276         (make_pass_ccp): ...new function.
20277         (pass_phi_only_cprop): Replace declaration with that of...
20278         (make_pass_phi_only_cprop): ...new function.
20279         (pass_build_ssa): Replace declaration with that of...
20280         (make_pass_build_ssa): ...new function.
20281         (pass_build_alias): Replace declaration with that of...
20282         (make_pass_build_alias): ...new function.
20283         (pass_build_ealias): Replace declaration with that of...
20284         (make_pass_build_ealias): ...new function.
20285         (pass_dominator): Replace declaration with that of...
20286         (make_pass_dominator): ...new function.
20287         (pass_dce): Replace declaration with that of...
20288         (make_pass_dce): ...new function.
20289         (pass_dce_loop): Replace declaration with that of...
20290         (make_pass_dce_loop): ...new function.
20291         (pass_cd_dce): Replace declaration with that of...
20292         (make_pass_cd_dce): ...new function.
20293         (pass_call_cdce): Replace declaration with that of...
20294         (make_pass_call_cdce): ...new function.
20295         (pass_merge_phi): Replace declaration with that of...
20296         (make_pass_merge_phi): ...new function.
20297         (pass_split_crit_edges): Replace declaration with that of...
20298         (make_pass_split_crit_edges): ...new function.
20299         (pass_pre): Replace declaration with that of...
20300         (make_pass_pre): ...new function.
20301         (pass_profile): Replace declaration with that of...
20302         (make_pass_profile): ...new function.
20303         (pass_strip_predict_hints): Replace declaration with that of...
20304         (make_pass_strip_predict_hints): ...new function.
20305         (pass_lower_complex_O0): Replace declaration with that of...
20306         (make_pass_lower_complex_O0): ...new function.
20307         (pass_lower_complex): Replace declaration with that of...
20308         (make_pass_lower_complex): ...new function.
20309         (pass_lower_vector): Replace declaration with that of...
20310         (make_pass_lower_vector): ...new function.
20311         (pass_lower_vector_ssa): Replace declaration with that of...
20312         (make_pass_lower_vector_ssa): ...new function.
20313         (pass_lower_omp): Replace declaration with that of...
20314         (make_pass_lower_omp): ...new function.
20315         (pass_diagnose_omp_blocks): Replace declaration with that of...
20316         (make_pass_diagnose_omp_blocks): ...new function.
20317         (pass_expand_omp): Replace declaration with that of...
20318         (make_pass_expand_omp): ...new function.
20319         (pass_expand_omp_ssa): Replace declaration with that of...
20320         (make_pass_expand_omp_ssa): ...new function.
20321         (pass_object_sizes): Replace declaration with that of...
20322         (make_pass_object_sizes): ...new function.
20323         (pass_strlen): Replace declaration with that of...
20324         (make_pass_strlen): ...new function.
20325         (pass_fold_builtins): Replace declaration with that of...
20326         (make_pass_fold_builtins): ...new function.
20327         (pass_stdarg): Replace declaration with that of...
20328         (make_pass_stdarg): ...new function.
20329         (pass_early_warn_uninitialized): Replace declaration with that of...
20330         (make_pass_early_warn_uninitialized): ...new function.
20331         (pass_late_warn_uninitialized): Replace declaration with that of...
20332         (make_pass_late_warn_uninitialized): ...new function.
20333         (pass_cse_reciprocals): Replace declaration with that of...
20334         (make_pass_cse_reciprocals): ...new function.
20335         (pass_cse_sincos): Replace declaration with that of...
20336         (make_pass_cse_sincos): ...new function.
20337         (pass_optimize_bswap): Replace declaration with that of...
20338         (make_pass_optimize_bswap): ...new function.
20339         (pass_optimize_widening_mul): Replace declaration with that of...
20340         (make_pass_optimize_widening_mul): ...new function.
20341         (pass_warn_function_return): Replace declaration with that of...
20342         (make_pass_warn_function_return): ...new function.
20343         (pass_warn_function_noreturn): Replace declaration with that of...
20344         (make_pass_warn_function_noreturn): ...new function.
20345         (pass_cselim): Replace declaration with that of...
20346         (make_pass_cselim): ...new function.
20347         (pass_phiopt): Replace declaration with that of...
20348         (make_pass_phiopt): ...new function.
20349         (pass_forwprop): Replace declaration with that of...
20350         (make_pass_forwprop): ...new function.
20351         (pass_phiprop): Replace declaration with that of...
20352         (make_pass_phiprop): ...new function.
20353         (pass_tree_ifcombine): Replace declaration with that of...
20354         (make_pass_tree_ifcombine): ...new function.
20355         (pass_dse): Replace declaration with that of...
20356         (make_pass_dse): ...new function.
20357         (pass_nrv): Replace declaration with that of...
20358         (make_pass_nrv): ...new function.
20359         (pass_rename_ssa_copies): Replace declaration with that of...
20360         (make_pass_rename_ssa_copies): ...new function.
20361         (pass_sink_code): Replace declaration with that of...
20362         (make_pass_sink_code): ...new function.
20363         (pass_fre): Replace declaration with that of...
20364         (make_pass_fre): ...new function.
20365         (pass_check_data_deps): Replace declaration with that of...
20366         (make_pass_check_data_deps): ...new function.
20367         (pass_copy_prop): Replace declaration with that of...
20368         (make_pass_copy_prop): ...new function.
20369         (pass_vrp): Replace declaration with that of...
20370         (make_pass_vrp): ...new function.
20371         (pass_uncprop): Replace declaration with that of...
20372         (make_pass_uncprop): ...new function.
20373         (pass_return_slot): Replace declaration with that of...
20374         (make_pass_return_slot): ...new function.
20375         (pass_reassoc): Replace declaration with that of...
20376         (make_pass_reassoc): ...new function.
20377         (pass_rebuild_cgraph_edges): Replace declaration with that of...
20378         (make_pass_rebuild_cgraph_edges): ...new function.
20379         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20380         (make_pass_remove_cgraph_callee_edges): ...new function.
20381         (pass_build_cgraph_edges): Replace declaration with that of...
20382         (make_pass_build_cgraph_edges): ...new function.
20383         (pass_local_pure_const): Replace declaration with that of...
20384         (make_pass_local_pure_const): ...new function.
20385         (pass_tracer): Replace declaration with that of...
20386         (make_pass_tracer): ...new function.
20387         (pass_warn_unused_result): Replace declaration with that of...
20388         (make_pass_warn_unused_result): ...new function.
20389         (pass_diagnose_tm_blocks): Replace declaration with that of...
20390         (make_pass_diagnose_tm_blocks): ...new function.
20391         (pass_lower_tm): Replace declaration with that of...
20392         (make_pass_lower_tm): ...new function.
20393         (pass_tm_init): Replace declaration with that of...
20394         (make_pass_tm_init): ...new function.
20395         (pass_tm_mark): Replace declaration with that of...
20396         (make_pass_tm_mark): ...new function.
20397         (pass_tm_memopt): Replace declaration with that of...
20398         (make_pass_tm_memopt): ...new function.
20399         (pass_tm_edges): Replace declaration with that of...
20400         (make_pass_tm_edges): ...new function.
20401         (pass_split_functions): Replace declaration with that of...
20402         (make_pass_split_functions): ...new function.
20403         (pass_feedback_split_functions): Replace declaration with that of...
20404         (make_pass_feedback_split_functions): ...new function.
20405         (pass_strength_reduction): Replace declaration with that of...
20406         (make_pass_strength_reduction): ...new function.
20407         (pass_ipa_lower_emutls): Replace declaration with that of...
20408         (make_pass_ipa_lower_emutls): ...new function.
20409         (pass_ipa_function_and_variable_visibility): Replace declaration with
20410         that of...
20411         (make_pass_ipa_function_and_variable_visibility): ...new function.
20412         (pass_ipa_tree_profile): Replace declaration with that of...
20413         (make_pass_ipa_tree_profile): ...new function.
20414         (pass_early_local_passes): Replace declaration with that of...
20415         (make_pass_early_local_passes): ...new function.
20416         (pass_ipa_whole_program_visibility): Replace declaration with that
20417         of...
20418         (make_pass_ipa_whole_program_visibility): ...new function.
20419         (pass_ipa_lto_gimple_out): Replace declaration with that of...
20420         (make_pass_ipa_lto_gimple_out): ...new function.
20421         (pass_ipa_increase_alignment): Replace declaration with that of...
20422         (make_pass_ipa_increase_alignment): ...new function.
20423         (pass_ipa_inline): Replace declaration with that of...
20424         (make_pass_ipa_inline): ...new function.
20425         (pass_ipa_free_lang_data): Replace declaration with that of...
20426         (make_pass_ipa_free_lang_data): ...new function.
20427         (pass_ipa_free_inline_summary): Replace declaration with that of...
20428         (make_pass_ipa_free_inline_summary): ...new function.
20429         (pass_ipa_cp): Replace declaration with that of...
20430         (make_pass_ipa_cp): ...new function.
20431         (pass_ipa_reference): Replace declaration with that of...
20432         (make_pass_ipa_reference): ...new function.
20433         (pass_ipa_pure_const): Replace declaration with that of...
20434         (make_pass_ipa_pure_const): ...new function.
20435         (pass_ipa_pta): Replace declaration with that of...
20436         (make_pass_ipa_pta): ...new function.
20437         (pass_ipa_lto_finish_out): Replace declaration with that of...
20438         (make_pass_ipa_lto_finish_out): ...new function.
20439         (pass_ipa_tm): Replace declaration with that of...
20440         (make_pass_ipa_tm): ...new function.
20441         (pass_ipa_profile): Replace declaration with that of...
20442         (make_pass_ipa_profile): ...new function.
20443         (pass_ipa_cdtor_merge): Replace declaration with that of...
20444         (make_pass_ipa_cdtor_merge): ...new function.
20445         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20446         of...
20447         (make_pass_cleanup_cfg_post_optimizing): ...new function.
20448         (pass_init_datastructures): Replace declaration with that of...
20449         (make_pass_init_datastructures): ...new function.
20450         (pass_fixup_cfg): Replace declaration with that of...
20451         (make_pass_fixup_cfg): ...new function.
20452         (pass_expand): Replace declaration with that of...
20453         (make_pass_expand): ...new function.
20454         (pass_instantiate_virtual_regs): Replace declaration with that of...
20455         (make_pass_instantiate_virtual_regs): ...new function.
20456         (pass_rtl_fwprop): Replace declaration with that of...
20457         (make_pass_rtl_fwprop): ...new function.
20458         (pass_rtl_fwprop_addr): Replace declaration with that of...
20459         (make_pass_rtl_fwprop_addr): ...new function.
20460         (pass_jump): Replace declaration with that of...
20461         (make_pass_jump): ...new function.
20462         (pass_jump2): Replace declaration with that of...
20463         (make_pass_jump2): ...new function.
20464         (pass_lower_subreg): Replace declaration with that of...
20465         (make_pass_lower_subreg): ...new function.
20466         (pass_cse): Replace declaration with that of...
20467         (make_pass_cse): ...new function.
20468         (pass_fast_rtl_dce): Replace declaration with that of...
20469         (make_pass_fast_rtl_dce): ...new function.
20470         (pass_ud_rtl_dce): Replace declaration with that of...
20471         (make_pass_ud_rtl_dce): ...new function.
20472         (pass_rtl_dce): Replace declaration with that of...
20473         (make_pass_rtl_dce): ...new function.
20474         (pass_rtl_dse1): Replace declaration with that of...
20475         (make_pass_rtl_dse1): ...new function.
20476         (pass_rtl_dse2): Replace declaration with that of...
20477         (make_pass_rtl_dse2): ...new function.
20478         (pass_rtl_dse3): Replace declaration with that of...
20479         (make_pass_rtl_dse3): ...new function.
20480         (pass_rtl_cprop): Replace declaration with that of...
20481         (make_pass_rtl_cprop): ...new function.
20482         (pass_rtl_pre): Replace declaration with that of...
20483         (make_pass_rtl_pre): ...new function.
20484         (pass_rtl_hoist): Replace declaration with that of...
20485         (make_pass_rtl_hoist): ...new function.
20486         (pass_rtl_store_motion): Replace declaration with that of...
20487         (make_pass_rtl_store_motion): ...new function.
20488         (pass_cse_after_global_opts): Replace declaration with that of...
20489         (make_pass_cse_after_global_opts): ...new function.
20490         (pass_rtl_ifcvt): Replace declaration with that of...
20491         (make_pass_rtl_ifcvt): ...new function.
20492         (pass_into_cfg_layout_mode): Replace declaration with that of...
20493         (make_pass_into_cfg_layout_mode): ...new function.
20494         (pass_outof_cfg_layout_mode): Replace declaration with that of...
20495         (make_pass_outof_cfg_layout_mode): ...new function.
20496         (pass_loop2): Replace declaration with that of...
20497         (make_pass_loop2): ...new function.
20498         (pass_rtl_loop_init): Replace declaration with that of...
20499         (make_pass_rtl_loop_init): ...new function.
20500         (pass_rtl_move_loop_invariants): Replace declaration with that of...
20501         (make_pass_rtl_move_loop_invariants): ...new function.
20502         (pass_rtl_unswitch): Replace declaration with that of...
20503         (make_pass_rtl_unswitch): ...new function.
20504         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20505         (make_pass_rtl_unroll_and_peel_loops): ...new function.
20506         (pass_rtl_doloop): Replace declaration with that of...
20507         (make_pass_rtl_doloop): ...new function.
20508         (pass_rtl_loop_done): Replace declaration with that of...
20509         (make_pass_rtl_loop_done): ...new function.
20510         (pass_web): Replace declaration with that of...
20511         (make_pass_web): ...new function.
20512         (pass_cse2): Replace declaration with that of...
20513         (make_pass_cse2): ...new function.
20514         (pass_df_initialize_opt): Replace declaration with that of...
20515         (make_pass_df_initialize_opt): ...new function.
20516         (pass_df_initialize_no_opt): Replace declaration with that of...
20517         (make_pass_df_initialize_no_opt): ...new function.
20518         (pass_reginfo_init): Replace declaration with that of...
20519         (make_pass_reginfo_init): ...new function.
20520         (pass_inc_dec): Replace declaration with that of...
20521         (make_pass_inc_dec): ...new function.
20522         (pass_stack_ptr_mod): Replace declaration with that of...
20523         (make_pass_stack_ptr_mod): ...new function.
20524         (pass_initialize_regs): Replace declaration with that of...
20525         (make_pass_initialize_regs): ...new function.
20526         (pass_combine): Replace declaration with that of...
20527         (make_pass_combine): ...new function.
20528         (pass_if_after_combine): Replace declaration with that of...
20529         (make_pass_if_after_combine): ...new function.
20530         (pass_ree): Replace declaration with that of...
20531         (make_pass_ree): ...new function.
20532         (pass_partition_blocks): Replace declaration with that of...
20533         (make_pass_partition_blocks): ...new function.
20534         (pass_match_asm_constraints): Replace declaration with that of...
20535         (make_pass_match_asm_constraints): ...new function.
20536         (pass_regmove): Replace declaration with that of...
20537         (make_pass_regmove): ...new function.
20538         (pass_split_all_insns): Replace declaration with that of...
20539         (make_pass_split_all_insns): ...new function.
20540         (pass_fast_rtl_byte_dce): Replace declaration with that of...
20541         (make_pass_fast_rtl_byte_dce): ...new function.
20542         (pass_lower_subreg2): Replace declaration with that of...
20543         (make_pass_lower_subreg2): ...new function.
20544         (pass_mode_switching): Replace declaration with that of...
20545         (make_pass_mode_switching): ...new function.
20546         (pass_sms): Replace declaration with that of...
20547         (make_pass_sms): ...new function.
20548         (pass_sched): Replace declaration with that of...
20549         (make_pass_sched): ...new function.
20550         (pass_ira): Replace declaration with that of...
20551         (make_pass_ira): ...new function.
20552         (pass_reload): Replace declaration with that of...
20553         (make_pass_reload): ...new function.
20554         (pass_clean_state): Replace declaration with that of...
20555         (make_pass_clean_state): ...new function.
20556         (pass_branch_prob): Replace declaration with that of...
20557         (make_pass_branch_prob): ...new function.
20558         (pass_value_profile_transformations): Replace declaration with that
20559         of...
20560         (make_pass_value_profile_transformations): ...new function.
20561         (pass_postreload_cse): Replace declaration with that of...
20562         (make_pass_postreload_cse): ...new function.
20563         (pass_gcse2): Replace declaration with that of...
20564         (make_pass_gcse2): ...new function.
20565         (pass_split_after_reload): Replace declaration with that of...
20566         (make_pass_split_after_reload): ...new function.
20567         (pass_branch_target_load_optimize1): Replace declaration with that
20568         of...
20569         (make_pass_branch_target_load_optimize1): ...new function.
20570         (pass_thread_prologue_and_epilogue): Replace declaration with that
20571         of...
20572         (make_pass_thread_prologue_and_epilogue): ...new function.
20573         (pass_stack_adjustments): Replace declaration with that of...
20574         (make_pass_stack_adjustments): ...new function.
20575         (pass_peephole2): Replace declaration with that of...
20576         (make_pass_peephole2): ...new function.
20577         (pass_if_after_reload): Replace declaration with that of...
20578         (make_pass_if_after_reload): ...new function.
20579         (pass_regrename): Replace declaration with that of...
20580         (make_pass_regrename): ...new function.
20581         (pass_cprop_hardreg): Replace declaration with that of...
20582         (make_pass_cprop_hardreg): ...new function.
20583         (pass_reorder_blocks): Replace declaration with that of...
20584         (make_pass_reorder_blocks): ...new function.
20585         (pass_branch_target_load_optimize2): Replace declaration with that
20586         of...
20587         (make_pass_branch_target_load_optimize2): ...new function.
20588         (pass_leaf_regs): Replace declaration with that of...
20589         (make_pass_leaf_regs): ...new function.
20590         (pass_split_before_sched2): Replace declaration with that of...
20591         (make_pass_split_before_sched2): ...new function.
20592         (pass_compare_elim_after_reload): Replace declaration with that of...
20593         (make_pass_compare_elim_after_reload): ...new function.
20594         (pass_sched2): Replace declaration with that of...
20595         (make_pass_sched2): ...new function.
20596         (pass_stack_regs): Replace declaration with that of...
20597         (make_pass_stack_regs): ...new function.
20598         (pass_stack_regs_run): Replace declaration with that of...
20599         (make_pass_stack_regs_run): ...new function.
20600         (pass_df_finish): Replace declaration with that of...
20601         (make_pass_df_finish): ...new function.
20602         (pass_compute_alignments): Replace declaration with that of...
20603         (make_pass_compute_alignments): ...new function.
20604         (pass_duplicate_computed_gotos): Replace declaration with that of...
20605         (make_pass_duplicate_computed_gotos): ...new function.
20606         (pass_variable_tracking): Replace declaration with that of...
20607         (make_pass_variable_tracking): ...new function.
20608         (pass_free_cfg): Replace declaration with that of...
20609         (make_pass_free_cfg): ...new function.
20610         (pass_machine_reorg): Replace declaration with that of...
20611         (make_pass_machine_reorg): ...new function.
20612         (pass_cleanup_barriers): Replace declaration with that of...
20613         (make_pass_cleanup_barriers): ...new function.
20614         (pass_delay_slots): Replace declaration with that of...
20615         (make_pass_delay_slots): ...new function.
20616         (pass_split_for_shorten_branches): Replace declaration with that of...
20617         (make_pass_split_for_shorten_branches): ...new function.
20618         (pass_split_before_regstack): Replace declaration with that of...
20619         (make_pass_split_before_regstack): ...new function.
20620         (pass_convert_to_eh_region_ranges): Replace declaration with that
20621         of...
20622         (make_pass_convert_to_eh_region_ranges): ...new function.
20623         (pass_shorten_branches): Replace declaration with that of...
20624         (make_pass_shorten_branches): ...new function.
20625         (pass_set_nothrow_function_flags): Replace declaration with that of...
20626         (make_pass_set_nothrow_function_flags): ...new function.
20627         (pass_dwarf2_frame): Replace declaration with that of...
20628         (make_pass_dwarf2_frame): ...new function.
20629         (pass_final): Replace declaration with that of...
20630         (make_pass_final): ...new function.
20631         (pass_rtl_seqabstr): Replace declaration with that of...
20632         (make_pass_rtl_seqabstr): ...new function.
20633         (pass_release_ssa_names): Replace declaration with that of...
20634         (make_pass_release_ssa_names): ...new function.
20635         (pass_early_inline): Replace declaration with that of...
20636         (make_pass_early_inline): ...new function.
20637         (pass_inline_parameters): Replace declaration with that of...
20638         (make_pass_inline_parameters): ...new function.
20639         (pass_update_address_taken): Replace declaration with that of...
20640         (make_pass_update_address_taken): ...new function.
20641         (pass_convert_switch): Replace declaration with that of...
20642         (make_pass_convert_switch): ...new function.
20643         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20644         to a subclass of simple_ipa_opt_pass along with...
20645         (pass_data_ipa_tree_profile): ...new pass_data instance and...
20646         (make_pass_ipa_tree_profile): ...new function.
20647         * tree-sra.c (pass_sra_early): Convert from a global struct to a
20648         subclass of gimple_opt_pass along with...
20649         (pass_data_sra_early): ...new pass_data instance and...
20650         (make_pass_sra_early): ...new function.
20651         (pass_sra): Convert from a global struct to a subclass of
20652         gimple_opt_pass along with...
20653         (pass_data_sra): ...new pass_data instance and...
20654         (make_pass_sra): ...new function.
20655         (pass_early_ipa_sra): Convert from a global struct to a subclass of
20656         gimple_opt_pass along with...
20657         (pass_data_early_ipa_sra): ...new pass_data instance and...
20658         (make_pass_early_ipa_sra): ...new function.
20659         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20660         subclass of gimple_opt_pass along with...
20661         (pass_data_ccp): ...new pass_data instance and...
20662         (make_pass_ccp): ...new function.
20663         (pass_fold_builtins): Convert from a global struct to a subclass of
20664         gimple_opt_pass along with...
20665         (pass_data_fold_builtins): ...new pass_data instance and...
20666         (make_pass_fold_builtins): ...new function.
20667         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20668         subclass of gimple_opt_pass along with...
20669         (pass_data_copy_prop): ...new pass_data instance and...
20670         (make_pass_copy_prop): ...new function.
20671         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20672         global struct to a subclass of gimple_opt_pass along with...
20673         (pass_data_rename_ssa_copies): ...new pass_data instance and...
20674         (make_pass_rename_ssa_copies): ...new function.
20675         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20676         subclass of gimple_opt_pass along with...
20677         (pass_data_dce): ...new pass_data instance and...
20678         (make_pass_dce): ...new function.
20679         (pass_dce_loop): Convert from a global struct to a subclass of
20680         gimple_opt_pass along with...
20681         (pass_data_dce_loop): ...new pass_data instance and...
20682         (make_pass_dce_loop): ...new function.
20683         (pass_cd_dce): Convert from a global struct to a subclass of
20684         gimple_opt_pass along with...
20685         (pass_data_cd_dce): ...new pass_data instance and...
20686         (make_pass_cd_dce): ...new function.
20687         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20688         subclass of gimple_opt_pass along with...
20689         (pass_data_dominator): ...new pass_data instance and...
20690         (make_pass_dominator): ...new function.
20691         (pass_phi_only_cprop): Convert from a global struct to a subclass of
20692         gimple_opt_pass along with...
20693         (pass_data_phi_only_cprop): ...new pass_data instance and...
20694         (make_pass_phi_only_cprop): ...new function.
20695         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20696         subclass of gimple_opt_pass along with...
20697         (pass_data_dse): ...new pass_data instance and...
20698         (make_pass_dse): ...new function.
20699         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20700         a subclass of gimple_opt_pass along with...
20701         (pass_data_forwprop): ...new pass_data instance and...
20702         (make_pass_forwprop): ...new function.
20703         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20704         struct to a subclass of gimple_opt_pass along with...
20705         (pass_data_tree_ifcombine): ...new pass_data instance and...
20706         (make_pass_tree_ifcombine): ...new function.
20707         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20708         subclass of gimple_opt_pass along with...
20709         (pass_data_ch): ...new pass_data instance and...
20710         (make_pass_ch): ...new function.
20711         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20712         subclass of gimple_opt_pass along with...
20713         (pass_data_tree_loop): ...new pass_data instance and...
20714         (make_pass_tree_loop): ...new function.
20715         (pass_tree_loop_init): Convert from a global struct to a subclass of
20716         gimple_opt_pass along with...
20717         (pass_data_tree_loop_init): ...new pass_data instance and...
20718         (make_pass_tree_loop_init): ...new function.
20719         (pass_lim): Convert from a global struct to a subclass of
20720         gimple_opt_pass along with...
20721         (pass_data_lim): ...new pass_data instance and...
20722         (make_pass_lim): ...new function.
20723         (pass_tree_unswitch): Convert from a global struct to a subclass of
20724         gimple_opt_pass along with...
20725         (pass_data_tree_unswitch): ...new pass_data instance and...
20726         (make_pass_tree_unswitch): ...new function.
20727         (pass_predcom): Convert from a global struct to a subclass of
20728         gimple_opt_pass along with...
20729         (pass_data_predcom): ...new pass_data instance and...
20730         (make_pass_predcom): ...new function.
20731         (pass_vectorize): Convert from a global struct to a subclass of
20732         gimple_opt_pass along with...
20733         (pass_data_vectorize): ...new pass_data instance and...
20734         (make_pass_vectorize): ...new function.
20735         (pass_graphite): Convert from a global struct to a subclass of
20736         gimple_opt_pass along with...
20737         (pass_data_graphite): ...new pass_data instance and...
20738         (make_pass_graphite): ...new function.
20739         (pass_graphite_transforms): Convert from a global struct to a subclass
20740         of gimple_opt_pass along with...
20741         (pass_data_graphite_transforms): ...new pass_data instance and...
20742         (make_pass_graphite_transforms): ...new function.
20743         (pass_check_data_deps): Convert from a global struct to a subclass of
20744         gimple_opt_pass along with...
20745         (pass_data_check_data_deps): ...new pass_data instance and...
20746         (make_pass_check_data_deps): ...new function.
20747         (pass_iv_canon): Convert from a global struct to a subclass of
20748         gimple_opt_pass along with...
20749         (pass_data_iv_canon): ...new pass_data instance and...
20750         (make_pass_iv_canon): ...new function.
20751         (pass_scev_cprop): Convert from a global struct to a subclass of
20752         gimple_opt_pass along with...
20753         (pass_data_scev_cprop): ...new pass_data instance and...
20754         (make_pass_scev_cprop): ...new function.
20755         (pass_record_bounds): Convert from a global struct to a subclass of
20756         gimple_opt_pass along with...
20757         (pass_data_record_bounds): ...new pass_data instance and...
20758         (make_pass_record_bounds): ...new function.
20759         (pass_complete_unroll): Convert from a global struct to a subclass of
20760         gimple_opt_pass along with...
20761         (pass_data_complete_unroll): ...new pass_data instance and...
20762         (make_pass_complete_unroll): ...new function.
20763         (pass_complete_unrolli): Convert from a global struct to a subclass of
20764         gimple_opt_pass along with...
20765         (pass_data_complete_unrolli): ...new pass_data instance and...
20766         (make_pass_complete_unrolli): ...new function.
20767         (pass_parallelize_loops): Convert from a global struct to a subclass
20768         of gimple_opt_pass along with...
20769         (pass_data_parallelize_loops): ...new pass_data instance and...
20770         (make_pass_parallelize_loops): ...new function.
20771         (pass_loop_prefetch): Convert from a global struct to a subclass of
20772         gimple_opt_pass along with...
20773         (pass_data_loop_prefetch): ...new pass_data instance and...
20774         (make_pass_loop_prefetch): ...new function.
20775         (pass_iv_optimize): Convert from a global struct to a subclass of
20776         gimple_opt_pass along with...
20777         (pass_data_iv_optimize): ...new pass_data instance and...
20778         (make_pass_iv_optimize): ...new function.
20779         (pass_tree_loop_done): Convert from a global struct to a subclass of
20780         gimple_opt_pass along with...
20781         (pass_data_tree_loop_done): ...new pass_data instance and...
20782         (make_pass_tree_loop_done): ...new function.
20783         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20784         struct to a subclass of gimple_opt_pass along with...
20785         (pass_data_cse_reciprocals): ...new pass_data instance and...
20786         (make_pass_cse_reciprocals): ...new function.
20787         (pass_cse_sincos): Convert from a global struct to a subclass of
20788         gimple_opt_pass along with...
20789         (pass_data_cse_sincos): ...new pass_data instance and...
20790         (make_pass_cse_sincos): ...new function.
20791         (pass_optimize_bswap): Convert from a global struct to a subclass of
20792         gimple_opt_pass along with...
20793         (pass_data_optimize_bswap): ...new pass_data instance and...
20794         (make_pass_optimize_bswap): ...new function.
20795         (pass_optimize_widening_mul): Convert from a global struct to a
20796         subclass of gimple_opt_pass along with...
20797         (pass_data_optimize_widening_mul): ...new pass_data instance and...
20798         (make_pass_optimize_widening_mul): ...new function.
20799         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20800         subclass of gimple_opt_pass along with...
20801         (pass_data_phiopt): ...new pass_data instance and...
20802         (make_pass_phiopt): ...new function.
20803         (pass_cselim): Convert from a global struct to a subclass of
20804         gimple_opt_pass along with...
20805         (pass_data_cselim): ...new pass_data instance and...
20806         (make_pass_cselim): ...new function.
20807         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20808         subclass of gimple_opt_pass along with...
20809         (pass_data_phiprop): ...new pass_data instance and...
20810         (make_pass_phiprop): ...new function.
20811         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20812         subclass of gimple_opt_pass along with...
20813         (pass_data_pre): ...new pass_data instance and...
20814         (make_pass_pre): ...new function.
20815         (pass_fre): Convert from a global struct to a subclass of
20816         gimple_opt_pass along with...
20817         (pass_data_fre): ...new pass_data instance and...
20818         (make_pass_fre): ...new function.
20819         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20820         subclass of gimple_opt_pass along with...
20821         (pass_data_reassoc): ...new pass_data instance and...
20822         (make_pass_reassoc): ...new function.
20823         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20824         subclass of gimple_opt_pass along with...
20825         (pass_data_sink_code): ...new pass_data instance and...
20826         (make_pass_sink_code): ...new function.
20827         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20828         subclass of gimple_opt_pass along with...
20829         (pass_data_strlen): ...new pass_data instance and...
20830         (make_pass_strlen): ...new function.
20831         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20832         struct to a subclass of gimple_opt_pass along with...
20833         (pass_data_build_alias): ...new pass_data instance and...
20834         (make_pass_build_alias): ...new function.
20835         (pass_build_ealias): Convert from a global struct to a subclass of
20836         gimple_opt_pass along with...
20837         (pass_data_build_ealias): ...new pass_data instance and...
20838         (make_pass_build_ealias): ...new function.
20839         (pass_ipa_pta): Convert from a global struct to a subclass of
20840         simple_ipa_opt_pass along with...
20841         (pass_data_ipa_pta): ...new pass_data instance and...
20842         (make_pass_ipa_pta): ...new function.
20843         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20844         subclass of gimple_opt_pass along with...
20845         (pass_data_uncprop): ...new pass_data instance and...
20846         (make_pass_uncprop): ...new function.
20847         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20848         global struct to a subclass of gimple_opt_pass along with...
20849         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20850         (make_pass_late_warn_uninitialized): ...new function.
20851         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20852         to a subclass of gimple_opt_pass along with...
20853         (pass_data_init_datastructures): ...new pass_data instance and...
20854         (make_pass_init_datastructures): ...new function.
20855         (pass_early_warn_uninitialized): Convert from a global struct to a
20856         subclass of gimple_opt_pass along with...
20857         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20858         (make_pass_early_warn_uninitialized): ...new function.
20859         (pass_update_address_taken): Convert from a global struct to a
20860         subclass of gimple_opt_pass along with...
20861         (pass_data_update_address_taken): ...new pass_data instance and...
20862         (make_pass_update_address_taken): ...new function.
20863         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20864         struct to a subclass of gimple_opt_pass along with...
20865         (pass_data_release_ssa_names): ...new pass_data instance and...
20866         (make_pass_release_ssa_names): ...new function.
20867         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20868         subclass of gimple_opt_pass along with...
20869         (pass_data_stdarg): ...new pass_data instance and...
20870         (make_pass_stdarg): ...new function.
20871         * tree-switch-conversion.c (pass_convert_switch): Convert from a
20872         global struct to a subclass of gimple_opt_pass along with...
20873         (pass_data_convert_switch): ...new pass_data instance and...
20874         (make_pass_convert_switch): ...new function.
20875         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20876         to a subclass of gimple_opt_pass along with...
20877         (pass_data_tail_recursion): ...new pass_data instance and...
20878         (make_pass_tail_recursion): ...new function.
20879         (pass_tail_calls): Convert from a global struct to a subclass of
20880         gimple_opt_pass along with...
20881         (pass_data_tail_calls): ...new pass_data instance and...
20882         (make_pass_tail_calls): ...new function.
20883         * tree-vect-generic.c (pass_lower_vector): Convert from a global
20884         struct to a subclass of gimple_opt_pass along with...
20885         (pass_data_lower_vector): ...new pass_data instance and...
20886         (make_pass_lower_vector): ...new function.
20887         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20888         gimple_opt_pass along with...
20889         (pass_data_lower_vector_ssa): ...new pass_data instance and...
20890         (make_pass_lower_vector_ssa): ...new function.
20891         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20892         to a subclass of gimple_opt_pass along with...
20893         (pass_data_slp_vectorize): ...new pass_data instance and...
20894         (make_pass_slp_vectorize): ...new function.
20895         (pass_ipa_increase_alignment): Convert from a global struct to a
20896         subclass of simple_ipa_opt_pass along with...
20897         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20898         (make_pass_ipa_increase_alignment): ...new function.
20899         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20900         gimple_opt_pass along with...
20901         (pass_data_vrp): ...new pass_data instance and...
20902         (make_pass_vrp): ...new function.
20903         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20904         subclass of simple_ipa_opt_pass along with...
20905         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20906         (make_pass_ipa_free_lang_data): ...new function.
20907         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20908         gimple_opt_pass along with...
20909         (pass_data_tsan): ...new pass_data instance and...
20910         (make_pass_tsan): ...new function.
20911         (pass_tsan_O0): Convert from a global struct to a subclass of
20912         gimple_opt_pass along with...
20913         (pass_data_tsan_O0): ...new pass_data instance and...
20914         (make_pass_tsan_O0): ...new function.
20915         * var-tracking.c (pass_variable_tracking): Convert from a global
20916         struct to a subclass of rtl_opt_pass along with...
20917         (pass_data_variable_tracking): ...new pass_data instance and...
20918         (make_pass_variable_tracking): ...new function.
20919         * web.c (pass_web): Convert from a global struct to a subclass of
20920         rtl_opt_pass along with...
20921         (pass_data_web): ...new pass_data instance and...
20922         (make_pass_web): ...new function.
20923         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20924         declaration with that of...
20925         (make_pass_mode_switch_use): ...new function.
20926         (pass_resolve_sw_modes): Replace declaration with that of...
20927         (make_pass_resolve_sw_modes): ...new function.
20928         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20929         from a global struct to a subclass of rtl_opt_pass along with...
20930         (pass_data_mode_switch_use): ...new pass_data instance and...
20931         (make_pass_mode_switch_use): ...new function.
20932         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20933         from a global struct to a subclass of rtl_opt_pass along with...
20934         (pass_data_resolve_sw_modes): ...new pass_data instance and...
20935         (make_pass_resolve_sw_modes): ...new function.
20936         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20937         struct to a subclass of rtl_opt_pass along with...
20938         (pass_data_insert_vzeroupper): ...new pass_data instance and...
20939         (make_pass_insert_vzeroupper): ...new function.
20940         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20941         global struct to a subclass of rtl_opt_pass along with...
20942         (pass_data_work_around_errata): ...new pass_data instance and...
20943         (make_pass_work_around_errata): ...new function.
20944         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20945         struct to a subclass of rtl_opt_pass along with...
20946         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20947         (make_pass_mips_machine_reorg2): ...new function.
20949 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20951         * passes.c (pass_manager::operator new): New.
20953 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20955         Handwritten part of conversion of passes to C++ classes.
20957         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20958         (toplev.o): Add dep on PASS_MANAGER_H.
20959         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20960         of early local pases to reflect this moving from a global to a
20961         member of gcc::pass_manager.
20962         (cgraph_add_new_function): Likewise.
20963         * lto-cgraph.c (lto_output_node): Update for conversion of
20964         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20965         * passes.c (opt_pass::clone): New.
20966         (opt_pass::gate): New.
20967         (opt_pass::execute): New.
20968         (opt_pass::opt_pass): New.
20969         (pass_manager::execute_early_local_passes): New.
20970         (pass_manager::execute_pass_mode_switching): new.
20971         (finish_optimization_passes): Convert to...
20972         (pass_manager::finish_optimization_passes): ...this.
20973         (finish_optimization_passes): Update for conversion of passes to
20974         C++ classes.
20975         (register_dump_files_1): Use has_gate since we cannot portably
20976         check a vtable entry against NULL.
20977         (dump_one_pass): Likewise.
20978         (ipa_write_summaries_2): Likewise.
20979         (ipa_write_optimization_summaries_1): Likewise.
20980         (ipa_read_summaries_1): Likewise.
20981         (ipa_read_optimization_summaries_1): Likewise.
20982         (execute_ipa_stmt_fixups): Likewise.
20983         (pass_manager::pass_manager): Rewrite pass-creation, invoking
20984         pass-creation functions rather than wiring up globals, and
20985         storing the results in fields of pass_manager generated using
20986         pass-instances.def.
20987         (pass_manager::dump_profile_report): Update for conversion of
20988         passes to C++ classes.
20989         (pass_manager::execute_ipa_summary_passes): Likewise.
20990         (execute_one_ipa_transform_pass): Likewise.
20991         (execute_one_pass): Use has_gate and has_execute since we cannot
20992         portably check a vtable entry against NULL.
20993         * pass_manager.h (pass_manager::finish_optimization_passes): New.
20994         (pass_manager): Use pass-instances.def to add fields for the
20995         various pass instances.
20996         * toplev.c (finalize): Update for move of
20997         finish_optimization_passes to a method of gcc::pass_manager.
20998         * toplev.h (finish_optimization_passes): Move to method of class
20999         pass_manager.
21000         * tree-pass.h (struct pass_data): New.
21001         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
21002         (opt_pass::gate): Convert to virtual function.
21003         (opt_pass::~opt_pass): New.
21004         (opt_pass::clone): New.
21005         (opt_pass::execute): Convert to virtual function.
21006         (opt_pass::opt_pass): New.
21007         (opt_pass::ctxt_): new.
21008         (gimple_opt_pass): Convert to subclass of opt_pass.
21009         (gimple_opt_pass::gimple_opt_pass): New.
21010         (rtl_opt_pass): Convert to subclass of opt_pass.
21011         (rtl_opt_pass::rtl_opt_pass): New.
21012         (ipa_opt_pass_d): Convert to subclass of opt_pass.
21013         (ipa_opt_pass_d::ipa_opt_pass_d): New.
21014         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
21015         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
21016         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
21017         invocation of pass_mode_switching to reflect this moving from a
21018         global to a member of gcc::pass_manager.
21019         (ix86_option_override): Rework how pass_insert_vzeroupper is
21020         added to the pass_manager to reflect autogenerated changes.
21021         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
21023 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
21025         PR rtl-optimization/57708
21026         * recog.c (peep2_find_free_register): Validate all regs in a
21027         multi-reg mode.
21029 2013-08-05  Jan Hubicka  <jh@suse.cz>
21031         PR lto/57602
21032         * cgraph.c (verify_cgraph_node): Accept local flags from other
21033         partitions.
21034         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
21035         (function_and_variable_visibility): Likewise.
21036         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
21038 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21040         * graph.c (init_graph_slim_pretty_print): Remove.
21041         (print_graph_cfg): Do not call it.  Use local pretty printer.
21042         (start_graph_dump): Likewise.
21044 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21046         * gimple-pretty-print.c (buffer): Remove.
21047         (initialized): Likewise.
21048         (maybe_init_pretty_print): Likewise.
21049         (print_gimple_stmt): Do not call it.  Use non-static local
21050         pretty_printer variable.
21051         (print_gimple_expr): Likewise.
21052         (print_gimple_seq): Likewise.
21053         (gimple_dump_bb): Likewise.
21055 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21057         * asan.c (asan_pp): Remove.
21058         (asan_pp_initialized): Likewise.
21059         (asan_pp_initialize): Likewise.
21060         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
21061         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
21062         (asan_add_global): Likewise.
21064 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21066         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
21067         * diagnostic.h (diagnostic_flush_buffer): Adjust.
21068         * pretty-print.c (pp_formatted_text_data): Likewise.
21069         (pp_indent): Rename from pp_base_indent.
21070         (pp_format): Rename from pp_base_format.
21071         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
21072         (pp_format_verbatim): Rename from pp_base_format_verbatim.
21073         (pp_flush): Rename from pp_base_flush.
21074         (pp_set_line_maximum_length): Rename from
21075         pp_base_set_line_maximum_length.
21076         (pp_clear_output_area): Rename from pp_base_clear_output_area.
21077         (pp_set_prefix): Rename from pp_base_set_prefix.
21078         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
21079         (pp_emit_prefix): Rename from pp_base_emit_prefix.
21080         (pp_append_text): Rename from pp_base_append_text.
21081         (pp_formatted_text): Rename from pp_base_formatted_text.
21082         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
21083         (pp_remaining_character_count_for_line): Rename from
21084         pp_base_remaining_character_count_for_line.
21085         (pp_newline): Rename from pp_base_newline.
21086         (pp_character): Rename from pp_base_character.
21087         (pp_string): Rename from pp_base_string.
21088         (pp_maybe_space): Rename from pp_base_maybe_space.
21089         * asan.c (asan_pp_string): Adjust.
21090         (asan_emit_stack_protection): Likewise.
21091         (asan_add_global): Likewise.
21092         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
21093         * tree-mudflap.c (mf_varname_tree): Likewise.
21094         * tree-pretty-print.c (pp_tree_identifier): Rename from
21095         pp_base_tree_identifier.
21096         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
21097         Declare as function.
21099 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21101         * pretty-print.h (pp_bar_bar): New.
21102         (pp_ampersand_ampersand): Likewise.
21103         (pp_less_equal): Likewise.
21104         (pp_greater_equal): Likewise.
21105         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
21106         printer functions instead of pp_string or operators and punctuators.
21107         (dump_gimple_call): Likewise.
21108         (dump_gimple_omp_for): Likewise.
21109         (dump_gimple_transaction): Likewise.
21110         (dump_gimple_phi): Likewise.
21111         (pp_gimple_stmt_1): Likewise.
21112         * sched-vis.c (print_insn): Likewise.
21113         * tree-mudflap.c (mf_varname_tree): Likewise.
21114         * tree-pretty-print.c (dump_block_node): Likewise.
21115         (dump_generic_node): Likewise.
21117 2013-08-02  Jan Hubicka  <jh@suse.cz>
21119         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
21120         boundaries.
21121         * lto-streamer-out.c (tree_is_indexable): Results decls and
21122         parm decls are not indexable.
21123         (DFS_write_tree_body): Do not follow args and results.
21124         (hash_tree): Likewise.
21125         (output_functions): Rearrange so struct function is needed
21126         only when real body is output; be able to also ouptut abstract
21127         functions; output DECL_ARGUMENTS and DECL_RESULT.
21128         (lto_output): When not in WPA, ale store abstract functions.
21129         (write_symbol): Do not care about RESULT_DECL.
21130         (output_symbol_p): Handle correctly sbtract decls.
21131         * lto-streamer-in.c (input_function): Rearrange so struct
21132         function can be NULL at entry; allow streaming of
21133         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
21134         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
21135         sanity check during LTO.
21136         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
21137         RESULT_DECl and DECL_ARGUMENTS.
21138         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
21139         Likewise.
21141 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21143         * pretty-print.h (pp_underscore): New.
21144         (pp_comma): Tidy.
21145         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
21146         printer functions instead of pp_character.
21147         (dump_binary_rhs): Likewise.
21148         (dump_ternary_rhs): Likewise.
21149         (dump_gimple_call_args): Likewise.
21150         (pp_points_to_solution): Likewise.
21151         (dump_gimple_call): Likewise.
21152         (dump_gimple_switch): Likewise.
21153         (dump_gimple_cond): Likewise.
21154         (dump_gimple_bind): Likewise.
21155         (dump_gimple_try): Likewise.
21156         (dump_gimple_omp_for): Likewise.
21157         (dump_gimple_omp_continue): Likewise.
21158         (dump_gimple_omp_single): Likewise.
21159         (dump_gimple_omp_sections): Likewise.
21160         (dump_gimple_omp_block): Likewise.
21161         (dump_gimple_omp_critical): Likewise.
21162         (dump_gimple_transaction): Likewise.
21163         (dump_gimple_asm): Likewise.
21164         (dump_gimple_phi): Likewise.
21165         (dump_gimple_omp_parallel): Likewise.
21166         (dump_gimple_omp_task): Likewise.
21167         (dump_gimple_omp_atomic_load): Likewise.
21168         (dump_gimple_omp_atomic_store): Likewise.
21169         (dump_gimple_mem_ops): Likewise.
21170         (pp_gimple_stmt_1): Likewise.
21171         (pp_cfg_jump): Likewise.
21172         (dump_implicit_edges): Likewise.
21173         (gimple_dump_bb_for_graph): Likewise.
21174         * graph.c (draw_cfg_node): Likewise.
21175         * langhooks.c (lhd_print_error_function): Likewise.
21176         * sched-vis.c (print_exp): Likewise.
21177         (print_value): Likewise.
21178         (print_pattern): Likewise.
21179         (print_insn): Likewise.
21180         (rtl_dump_bb_for_graph): Likewise.
21181         * tree-pretty-print.c (dump_function_declaration): Likewise.
21182         (dump_array_domain): Likewise.
21183         (dump_omp_clause): Likewise.
21184         (dump_location): Likewise.
21185         (dump_generic_node): Likewise.
21186         (print_struct_decl): Likewise.
21187         * diagnostic.c (diagnostic_show_locus): Use pp_space.
21189 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21191         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
21192         candidate table when replacing a candidate statement.
21193         (replace_rhs_if_not_dup): Likewise.
21194         (replace_one_candidate): Likewise.
21196 2013-08-02  Jan Hubicka  <jh@suse.cz>
21197             Martin Liska  <marxin.liska@gmail.com>
21199         * cgraphunit.c (add_new_function): Fix logic when adding from
21200         late IPA pass.
21201         (assemble_thunk): Rename to ...
21202         (expand_thunk); .. this one; export; get it working with
21203         general functions; make produced gimple valid.
21204         * cgraph.h (expand_thunk): Declare.
21206 2013-08-02  Jan Hubicka  <jh@suse.cz>
21208         * ipa-cp.c (gather_context_independent_values): Use
21209         ipa_get_param_move_cost.
21210         (get_replacement_map): Remove PARAM; move parameter folding
21211         into tree-inline.c
21212         (create_specialized_node): Update.
21213         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
21214         assert that we have gimple body; update move_cost.
21215         (count_formal_params): Assert that we have gimple body.
21216         (ipa_dump_param): New function.
21217         (ipa_alloc_node_params): Break out from ...
21218         (ipa_initialize_node_params): ... here.
21219         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
21220         (ipa_write_node_info): Stream move costs.
21221         (ipa_read_node_info): Read move costs.
21222         (ipa_update_after_lto_read): Do not recompute node params.
21223         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
21224         (ipa_get_param): Check we are not in WPA.
21225         (ipa_get_param_move_cost): New.
21226         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
21227         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
21228         parm numbers to be present.
21230 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
21232         PR rtl-optimization/58048
21233         * lra-constraints.c (process_alt_operands): Don't check asm
21234         operand on register.
21236 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
21238         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
21239         the implied StoreLoad barrier for atomic operations if before.
21241 2013-08-02  Jan Hubicka  <jh@suse.cz>
21242             Martin Liska  <marxin.liska@gmail.com>
21244         * cgraph.c (cgraph_function_body_availability): Do not check
21245         cgraph flags.
21246         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
21247         symtab_node_availability): Declare.
21248         * ipa.c (can_replace_by_local_alias): New.
21249         (function_and_variable_visibility): Use it.
21250         * symtab.c (symtab_for_node_and_aliases,
21251         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
21253 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
21255         PR rtl-optimization/57963
21256         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
21257         (lra_constraints): Use them.
21259 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
21261         * config/arm/types.md (define_attr "type"): Add "load_acq"
21262         and "store_rel".
21263         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
21264         changes.
21265         (cortex_a53_store1): Likewise.
21267 2013-08-01  Jan Hubicka  <jh@suse.cz>
21269         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
21270         partitions are not needed.
21272 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
21274         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
21275         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
21276         MAYBE_NON_Q_CLASS_P where appropriate.
21278 2013-08-01  Jan Hubicka  <jh@suse.cz>
21280         * cgraph.h (release_function_body): Declare.
21281         * tree.c (free_lang_data_in_decl): Free, parameters and return values
21282         of unused delcarations.
21284 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21286         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
21287         RTL form when subtracting a constant.
21289 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21291         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
21292         Generate canonical plus rtx with negated immediate instead of minus
21293         where appropriate.
21294         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
21296 2013-08-01  Jan Hubicka  <jh@suse.cz>
21298         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
21299         (cgraph_release_function_body): Likewise.
21300         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
21301         * cgraph.h (cgrpah_node): Rename abstract_and_needed
21302         to used_as_abstract_origin.
21303         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
21304         symbols used as abstract origins.
21305         * cgraphunit.c (analyze_functions): Update.
21306         * ipa.c (symtab_remove_unreachable_nodes): Recompute
21307         used_as_abstract_origin.
21308         * tree-inline.c (tree_function_versioning): Update
21309         used_as_abstract_origin; be ready for DECL_RESULT and
21310         DECL_ARGUMENTS to be NULL.
21312         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
21313         for abstract functions.
21314         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
21315         real symbols.
21317 2013-08-01  Jan Hubicka  <jh@suse.cz>
21319         * profile.c (compute_value_histograms): Fix thinko.
21321 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
21323         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
21324         aarch-common-protos.h to extra_headers.
21325         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21326         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
21327         * config/aarch64/t-aarch64 (aarch-common.o): Define.
21329 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
21331         * config/aarch64/aarch64.md (define_attr "type"): Delete.
21332         Include "../arm/types.md".  Define "type" attribute for all patterns.
21333         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
21334         attribute changes.
21336 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
21338         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
21339         to support power8 load fusion.
21340         (fusion_gpr_mem_load): Likewise.
21342         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
21344         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
21345         declarations for power8 load fusion.
21346         (emit_fusion_gpr_load): Likewise.
21348         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21349         tuning for power8, turn on fusion mode by default.  Turn on sign
21350         extending fusion mode if normal fusion mode is on, and we are at
21351         -O2 or -O3.
21352         (fusion_gpr_load_p): New function, return true if we can fuse an
21353         addis instruction with a dependent load to a GPR.
21354         (emit_fusion_gpr_load): Emit the instructions for power8 load
21355         fusion to GPRs.
21357         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21358         (VSX load fusion peepholes): New peepholes to fuse together an
21359         addi instruction with a VSX load instruction.
21361         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21362         peepholes to fuse an addis instruction with a load to a GPR base
21363         register.  If we are supporting sign extending fusions, convert
21364         sign extending loads to zero extending loads and add an explicit
21365         sign extension.
21367 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
21369         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
21370         aarch-common-protos.h to extra_headers.
21371         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21372         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21373         (arm_early_store_addr_dep): Likewise.
21374         (arm_no_early_alu_shift_dep): Likewise.
21375         (arm_no_early_alu_shift_value_dep): Likewise.
21376         (arm_no_early_mul_dep): Likewise.
21377         (arm_no_early_store_addr_dep): Likewise.
21378         (arm_mac_accumulator_is_mul_result): Likewise.
21379         (arm_mac_accumulator_is_result): Likewise.
21380         * config/arm/aarch-common.c: ... here.  New file.
21381         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21382         here to ...
21383         (arm_early_store_addr_dep): Likewise.
21384         (arm_no_early_alu_shift_dep): Likewise.
21385         (arm_no_early_alu_shift_value_dep): Likewise.
21386         (arm_no_early_mul_dep): Likewise.
21387         (arm_no_early_store_addr_dep): Likewise.
21388         (arm_mac_accumulator_is_mul_result): Likewise.
21389         (arm_mac_accumulator_is_result): Likewise.
21390         * config/arm/aarch-common-protos.h: ... here.  New file.
21391         * config/arm/t-arm (aarch-common.o): Define.
21393 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
21395         * config/arm/arm.md: Include new file "types.md".
21396         (define_attr "type"): Move from here to ...
21397         (define_attr "mul32"): Likewise.
21398         (define_attr "mul64"): Likewise.
21399         * config/arm/types.md: ... here.  New file.
21401 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21403         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21404         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21406 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21408         * gen-pass-instances.awk: Fix offset of substr().
21410 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
21412         * Makefile.in (pass-instances.def): New.
21413         (passes.o): Replace dependency on passes.def with one on
21414         pass-instances.def
21416         * gen-pass-instances.awk: New.
21418         * passes.c (pass_manager::pass_manager): Use pass-instances.def
21419         rather than passes.def, updating local definition of NEXT_PASS
21420         macro to add an extra NUM parameter (currently unused).
21422 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
21424         * Makefile.in (PASS_MANAGER_H): New.
21425         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21426         (passes.o): Likewise.
21427         (statistics.o): Likewise.
21428         (cgraphunit.o): Likewise.
21429         (context.o): Depend on PASS_MANAGER_H.
21431         * pass_manager.h: New.
21433         * cgraphunit.c (cgraph_add_new_function): Update for moves
21434         of globals to fields of pass_manager.
21435         (analyze_function): Likewise.
21436         (expand_function): Likewise.
21437         (ipa_passes): Likewise.
21438         (compile): Likewise.
21440         * context.c (context::context): New.
21441         * context.h  (context::context): New.
21442         (context::get_passes): New.
21443         (context::passes_): New.
21445         * lto-cgraph.c (input_node): Update for moves of globals to
21446         fields of pass_manager.
21448         * passes.c (all_passes): Remove, in favor of a field of the
21449         same name within the new class pass_manager.
21450         (all_small_ipa_passes): Likewise.
21451         (all_lowering_passes): Likewise.
21452         (all_regular_ipa_passes): Likewise.
21453         (all_late_ipa_passes): Likewise.
21454         (all_lto_gen_passes): Likewise.
21455         (passes_by_id): Likewise.
21456         (passes_by_id_size): Likewise.
21457         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21458         the new class pass_manager.
21459         (set_pass_for_id): Convert to...
21460         (pass_manager::set_pass_for_id): ...method.
21461         (get_pass_for_id): Convert to...
21462         (pass_manager::get_pass_for_id): ...method.
21463         (register_one_dump_file): Move body of implementation into...
21464         (pass_manager::register_one_dump_file): ...here.
21465         (register_dump_files_1): Convert to...
21466         (pass_manager::register_dump_files_1): ...method.
21467         (register_dump_files): Convert to...
21468         (pass_manager::register_dump_files): ...method.
21469         (create_pass_tab): Update for moves of globals to fields of
21470         pass_manager.
21471         (dump_passes): Move body of implementation into...
21472         (pass_manager::dump_passes): ...here.
21473         (register_pass): Move body of implementation into...
21474         (pass_manager::register_pass): ...here.
21475         (init_optimization_passes): Convert into...
21476         (pass_manager::pass_manager): ...constructor for new
21477         pass_manager class, and initialize the pass_lists array.
21478         (check_profile_consistency): Update for moves of globals to
21479         fields of pass_manager.
21480         (dump_profile_report): Move body of implementation into...
21481         (pass_manager::dump_profile_report): ...here.
21482         (ipa_write_summaries_1): Update for moves of pass lists from
21483         being globals to fields of pass_manager.
21484         (ipa_write_optimization_summaries): Likewise.
21485         (ipa_read_summaries):  Likewise.
21486         (ipa_read_optimization_summaries): Likewise.
21487         (execute_all_ipa_stmt_fixups): Likewise.
21489         * statistics.c (statistics_fini): Update for moves of globals to
21490         fields of pass_manager.
21492         * toplev.c (general_init): Replace call to
21493         init_optimization_passes with construction of the pass_manager
21494         instance.
21496         * tree-pass.h (all_passes): Remove, in favor of a field of the
21497         same name within the new class pass_manager.
21498         (all_small_ipa_passes): Likewise.
21499         (all_lowering_passes): Likewise.
21500         (all_regular_ipa_passes): Likewise.
21501         (all_lto_gen_passes): Likewise.
21502         (all_late_ipa_passes): Likewise.
21503         (passes_by_id): Likewise.
21504         (passes_by_id_size): Likewise.
21505         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21506         the new class pass_manager.
21507         (get_pass_for_id): Remove.
21509 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21511         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21512         configs.
21514 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21516         * arm.md (mulhi3): New expand pattern.
21518 2013-07-30  Jan Hubicka  <jh@suse.cz>
21519             Martin Liska  <marxin.liska@gmail.com>
21521         * profile.c (compute_value_histograms): Do not ICE when
21522         there is mismatch only on some counters.
21524 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21526         PR rtl-optimization/57637
21527         * function.c (move_insn_for_shrink_wrap): Also check the
21528         GEN set of the LIVE problem for the liveness analysis
21529         if it exists, otherwise give up.
21531 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21533         PR tree-optimization/57993
21534         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21535         replaced statement in the candidate table.
21536         (phi_add_costs): Return infinite cost when the hidden basis does
21537         not dominate all phis on which the candidate is dependent.
21538         (replace_one_candidate): Record replaced statement in the
21539         candidate table.
21541 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21543         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21544         (ashlv2si3): New expander.
21545         (*ashlv2si3_i): New define_insn_and_split.
21546         * predicates.md (float_operation): Allow patterns with three
21547         basic sub-patterns.
21549         PR rtl-optimization/58021
21550         * mode-switching.c (create_pre_exit): Always split off preceding
21551         insns if we are not at the basic block head.
21553 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
21555         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21556         (UCLIBC_DYNAMIC_LINKER): New macro.
21557         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21558         `-mnan=2008'.
21559         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21560         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
21561         `-mnan=2008'.
21562         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21563         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21564         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21565         for SF and DF modes.  Use ieee_quad_format for TF mode.
21566         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21567         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21568         (mips_option_override): Handle `-mnan=legacy'.
21569         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21570         `-mabs=2008' and `-mnan=2008'.
21571         (OPTION_DEFAULT_SPECS): Add "nan" default.
21572         (ASM_SPEC): Handle `-mnan='.
21573         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21574         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21575         comment accordingly.
21576         (neg<mode>2): Likewise.
21577         * config/mips/mips.opt (mabs, mnan): New options.
21578         * doc/install.texi (Configuration): Document `--with-nan=' option.
21579         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21580         `-mnan=' options.
21581         (MIPS Options): Document them.
21582         * config.gcc <mips*-*-*>: Handle `--with-nan='.
21583         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21584         * configure: Regenerate.
21585         * config.in: Regenerate.
21587 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21589         * config/i386/i386.md (float post-reload splitters): Do not check
21590         for subregs of SSE registers.
21592 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21593             H.J. Lu  <hongjiu.lu@intel.com>
21595         PR target/57954
21596         PR target/57988
21597         * config/i386/i386.md (post-reload splitter
21598         to avoid partial SSE reg dependency stalls): New pattern.
21600 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21602         * config/s390/s390.md ("movcc"): Swap load and store instructions.
21604 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
21606         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21607         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21609 2013-07-26  Cary Coutant  <ccoutant@google.com>
21611         * dwarf2out.c (die_checksum_ordered): Don't include template
21612         instantiations in signature.
21613         (is_template_parameter): New function.
21614         (is_template_instantiation): New function.
21615         (generate_skeleton_bottom_up): Don't include template instantiations
21616         in type unit DIE.
21617         (generate_skeleton): Likewise.
21618         (break_out_comdat_types): Move recursive call to break out nested
21619         types earlier.
21620         (prune_unused_types_mark_generic_parms_dies): Call
21621         is_template_parameter.
21623 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
21625         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21626         uses vector registers.
21627         * config/aarch64/iterators.md: Add attributes rtn and vas.
21629 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21630             Richard Earnshaw  <richard.earnshaw@arm.com>
21632         * combine.c (simplify_comparison): Re-canonicalize operands
21633         where appropriate.
21634         * config/arm/arm.md (movcond_addsi): New splitter.
21636 2013-07-25  Sterling Augustine  <saugustine@google.com>
21638         * dwarf2out.c (size_of_pubnames): Move code to...
21639         (include_pubname_in_output): ...here.  New.
21640         (want_pubnames): Rearrange.
21641         (output_pubnames): Call include_pubname_in_output.  Move assertion.
21643 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21645         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21647 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21649         PR target/38836
21650         * doc/extend.texi: Remove obsolete builtins. Fix
21651         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21653 2013-07-25  Jan Hubicka  <jh@suse.cz>
21655         * cgraph.c (release_function_body): Break out from ...
21656         (cgraph_release_function_body): ... this one; also release DECL_RESULT
21657         and DECL_ARGUMENTS.
21658         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21659         old_tree in the map.
21660         (create_specialized_node): Update.
21661         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21662         into index.
21663         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21664         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21665         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21666         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21667         DECL_RESULT.
21669 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21671         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21672         addsi3_carryin_alt2_<optab>): Correct output template.
21674 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21676         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21677         Adjust for arm_restrict_it.
21678         Remove trailing whitespace.
21680 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
21682         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21683         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21685         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21687 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
21689         PR rtl-optimization/57960
21690         * lra-constraints.c (process_alt_operands): Use the right mode
21691         when checking strict_low.
21693 2013-07-25  Jan Hubicka  <jh@suse.cz>
21695         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21696         * cgraph.c (cgraph_remove_node): Do not release function body
21697         when in cgraph streaming.
21698         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21699         in other partitions are not considered reachable; fix handling of
21700         clones.
21702 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21704         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21706 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21708         PR target/19599
21709         PR target/57731
21710         PR target/57837
21711         * config/arm/arm.md ("*sibcall_insn): Replace use of
21712         Ss with US. Adjust output for v5 and v4t.
21713         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21715         * config/arm/constraints.md ("Ss"): Rename to US.
21717 2013-07-25  Terry Guo  <terry.guo@arm.com>
21719         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21720         shift_add/shift_sub0/shift_sub1 RTXs.
21722 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
21723             Anton Blanchard  <anton@au1.ibm.com>
21725         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21726         (altivec_vpks<VI_char>ss): Likewise.
21727         (altivec_vpks<VI_char>us): Likewise.
21728         (altivec_vpku<VI_char>us): Likewise.
21729         (altivec_vpku<VI_char>um): Likewise.
21731 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
21733         Introduce context class.
21735         * Makefile.in (CONTEXT_H): New.
21736         (OBJS): Add context.o.
21737         (toplev.o): Add CONTEXT_H to dependencies.
21738         (context.o): New.
21740         * toplev.c (general_init): Create the singleton gcc::context instance.
21742         * context.c: New.
21744         * context.h: New.
21746 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
21748         PR rtl-optimization/57968
21749         * mode-switching.c (create_pre_exit): Allow instructions that
21750         don't set a return register to need a non-exit mode.
21752 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21753             Anton Blanchard  <anton@au1.ibm.com>
21755         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21756         operands to vperm for little endian.
21757         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21758         of lvsl to create the control mask for a vperm for little endian.
21760 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21761             Anton Blanchard  <anton@au1.ibm.com>
21763         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21764         two operands for little-endian.
21766 2013-07-23  Steve Ellcey  <sellcey@mips.com>
21768         * config/mips/mips.c (mips_case_values_threshold): New.
21769         (TARGET_CASE_VALUES_THRESHOLD): Define.
21771 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21772             Anton Blanchard  <anton@au1.ibm.com>
21774         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21775         selection of field for vector splat in little endian mode.
21777 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
21779         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21780         expanders to rs6000.md.
21781         (ior<mode>3): Likewise.
21782         (and<mode>3): Likewise.
21783         (one_cmpl<mode>2): Likewise.
21784         (nor<mode>3): Likewise.
21785         (andc<mode>3): Likewise.
21786         (eqv<mode>3): Likewise.
21787         (nand<mode>3): Likewise.
21788         (orc<mode>3): Likewise.
21790         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21791         declaration.
21793         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21794         to split multi-word logical operations.
21795         (rs6000_split_logical_di): Likewise.
21796         (rs6000_split_logical): Likewise.
21798         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21799         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21800         and allow TImode operations in 32-bit.
21801         (vsx_and<mode>3_64bit): Likewise.
21802         (vsx_ior<mode>3_32bit): Likewise.
21803         (vsx_ior<mode>3_64bit): Likewise.
21804         (vsx_xor<mode>3_32bit): Likewise.
21805         (vsx_xor<mode>3_64bit): Likewise.
21806         (vsx_one_cmpl<mode>2_32bit): Likewise.
21807         (vsx_one_cmpl<mode>2_64bit): Likewise.
21808         (vsx_nor<mode>3_32bit): Likewise.
21809         (vsx_nor<mode>3_64bit): Likewise.
21810         (vsx_andc<mode>3_32bit): Likewise.
21811         (vsx_andc<mode>3_64bit): Likewise.
21812         (vsx_eqv<mode>3_32bit): Likewise.
21813         (vsx_eqv<mode>3_64bit): Likewise.
21814         (vsx_nand<mode>3_32bit): Likewise.
21815         (vsx_nand<mode>3_64bit): Likewise.
21816         (vsx_orc<mode>3_32bit): Likewise.
21817         (vsx_orc<mode>3_64bit): Likewise.
21819         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21820         logical types in GPRs.
21822         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21823         logical insns to rs6000.md, and allow TImode operations in
21824         32-bit.
21825         (altivec_ior<mode>3): Likewise.
21826         (altivec_xor<mode>3): Likewise.
21827         (altivec_one_cmpl<mode>2): Likewise.
21828         (altivec_nor<mode>3): Likewise.
21829         (altivec_andc<mode>3): Likewise.
21831         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21832         attributes for moving the 128-bit logical operations into
21833         rs6000.md.
21834         (BOOL_REGS_OUTPUT): Likewise.
21835         (BOOL_REGS_OP1): Likewise.
21836         (BOOL_REGS_OP2): Likewise.
21837         (BOOL_REGS_UNARY): Likewise.
21838         (BOOL_REGS_AND_CR0): Likewise.
21839         (one_cmpl<mode>2): Add support for DI logical operations on
21840         32-bit, splitting the operations to 32-bit.
21841         (anddi3): Likewise.
21842         (iordi3): Likewise.
21843         (xordi3): Likewise.
21844         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21845         changes to combine the 32/64-bit code, allow logical operations on
21846         TI mode in 32-bit, and to use similar match_operator patterns like
21847         scalar mode uses.  Combine the Altivec and VSX code for logical
21848         operations, and move it here.
21849         (ior<mode>3, 128-bit types): Likewise.
21850         (xor<mode>3, 128-bit types): Likewise.
21851         (one_cmpl<mode>3, 128-bit types): Likewise.
21852         (nor<mode>3, 128-bit types): Likewise.
21853         (andc<mode>3, 128-bit types): Likewise.
21854         (eqv<mode>3, 128-bit types): Likewise.
21855         (nand<mode>3, 128-bit types): Likewise.
21856         (orc<mode>3, 128-bit types): Likewise.
21857         (and<mode>3_internal): Likewise.
21858         (bool<mode>3_internal): Likewise.
21859         (boolc<mode>3_internal1): Likewise.
21860         (boolc<mode>3_internal2): Likewise.
21861         (boolcc<mode>3_internal1): Likewise.
21862         (boolcc<mode>3_internal2): Likewise.
21863         (eqv<mode>3_internal1): Likewise.
21864         (eqv<mode>3_internal2): Likewise.
21865         (one_cmpl1<mode>3_internal): Likewise.
21867 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21869         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21870         Rename flag_stack_usage to flag_stack_usage_info.
21872 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21874         * config/microblaze/sync.md: New file.
21875         * config/microblaze/microblaze.md: Include sync.md
21876         * config/microblaze/microblaze.c: Add print_operand 'y'.
21877         * config/microblaze/constraints.md: Add memory_contraint
21878         'Q' which is a single register.
21880 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
21882         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21884 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21886         * reload.c (find_reloads): Exit loop once we find this operand
21887         cannot be reloaded somehow for this alternative.
21889         * reload.c (find_reloads): Exit loop once we find a hard register.
21891         * rtlanal.c (computed_jump_p): Exit loop once we find label
21892         reference is used.
21894         * i386.c (ix86_pad_returns): Exit loop after setting replace.
21896         * cfgloopmanip.c (remove_path): Exit loop after setting
21897         irred_invalidated.
21899         * gensupport.c (subst_dup): Avoid loop if code is not
21900         MATCH_DUP nor MATCH_OP_DUP.
21902 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
21904         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21906 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21908         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21909         true for SP_REGNUM if mode == ptr_mode.
21910         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21911         with value R0_REGNUM + 31.
21913 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21915         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21916         pad pointer-typed argument downward.
21918 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21920         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21921         and __ILP32__ when the ILP32 model is in use.
21923 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21925         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21926         (aarch64_load_symref_appropriately): In the case of
21927         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21928         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21929         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21930         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21931         if 'mode' doesn't equal to 'ptr_mode'.
21932         (aarch64_output_mi_thunk): Add an assertion on the alignment of
21933         'vcall_offset'; change to call aarch64_emit_move differently depending
21934         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21935         to calculate the upper bound of 'vcall_offset'.
21936         (aarch64_cannot_force_const_mem): Change to also return true if
21937         mode != ptr_mode.
21938         (aarch64_legitimize_reload_address): In the case of large
21939         displacements, add new local variable 'xmode' and an assertion
21940         based on it; change to use 'xmode' to generate the new rtx and
21941         reload.
21942         (aarch64_asm_trampoline_template): Change to generate the template
21943         differently depending on TARGET_ILP32 or not; change to use
21944         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21945         (aarch64_trampoline_size): Removed.
21946         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21947         and replace immediate literals with it.  Change to use 'ptr_mode'
21948         instead of 'DImode' and call convert_memory_address if the mode
21949         of 'fnaddr' doesn't equal to 'ptr_mode'.
21950         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21951         to output symbol.
21952         (aarch64_elf_asm_destructor): Likewise.
21953         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21954         on TARGET_ILP32 instead of aarch64_trampoline_size.
21955         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21956         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21957         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21958         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
21959         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21960         (storewb_pair<GPI:mode>_<P:mode>): ... this.
21961         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21962         depending on the value of 'mode'.
21963         (add_losym_<mode>): New.
21964         (ldr_got_small_<mode>): New, based on ldr_got_small.
21965         (ldr_got_small): Remove.
21966         (ldr_got_small_sidi): New.
21967         * config/aarch64/iterators.md (P): New.
21968         (PTR): Change to 'ptr_mode' in the condition.
21970 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21972         * config.gcc (aarch64*-*-*): Support --with-abi.
21973         (aarch64*-*-elf): Support --with-multilib-list.
21974         (aarch64*-*-linux*): Likewise.
21975         (supported_defaults): Add abi to aarch64*-*-*.
21976         * configure.ac: Mention AArch64 for --with-multilib-list.
21977         * configure: Re-generated.
21978         * config/aarch64/biarchilp32.h: New file.
21979         * config/aarch64/biarchlp64.h: New file.
21980         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21981         (ABI_SPEC): Ditto.
21982         (MULTILIB_DEFAULTS): Ditto.
21983         (DRIVER_SELF_SPECS): Ditto.
21984         (ASM_SPEC): Update to also substitute -mabi.
21985         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21986         file whose name depends on -mabi= and -mbig-endian.
21987         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21988         TARGET_ILP32.
21989         (POINTER_SIZE): New define.
21990         (POINTERS_EXTEND_UNSIGNED): Ditto.
21991         (enum aarch64_abi_type): New enumeration tag.
21992         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21993         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21994         (TARGET_ILP32): New define.
21995         * config/aarch64/aarch64.opt (mabi): New.
21996         (aarch64_abi): New.
21997         (ilp32, lp64): New values for -mabi.
21998         * config/aarch64/t-aarch64 (comma): New define.
21999         (MULTILIB_OPTIONS): Ditto.
22000         (MULTILIB_DIRNAMES): Ditto.
22001         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
22002         * doc/invoke.texi: Document -mabi for AArch64.
22004 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
22006         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
22008 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
22009             Anton Blanchard  <anton@au1.ibm.com>
22011         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
22012         endianness when selecting field to splat.
22014 2013-07-22  Eric Christopher  <echristo@gmail.com>
22016         * dwarf2out.c (die_odr_checksum): New function to use
22017         CHECKSUM_ macros and ULEB128 for DIE tag.
22018         (generate_type_signature): Use.
22020 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
22022         * config.gcc (sparc*-*-*): Accept leon3 processor.
22023         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
22024         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
22025         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
22026         * config/sparc/sparc.opt (enum processor_type): Add leon3.
22027         (mfix-ut699): Adjust comment.
22028         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
22029         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
22030         (CPP_CPU_SPEC): Likewise.
22031         (ASM_CPU_SPEC): Likewise.
22032         * config/sparc/sparc.c (leon3_cost): New constant.
22033         (sparc_option_override): Add leon3 support.
22034         (mem_ref): New function.
22035         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
22036         (sparc_do_work_around_errata): Look into the instruction in the delay
22037         slot and adjust accordingly.  Add fix for the data cache nullify issues
22038         of the UT699.  Change insertion position for the NOP.
22039         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
22040         (leon3_load): New reservation.
22041         (leon_store): Bump latency to 2.
22042         (grfpu): New automaton.
22043         (grfpu_alu): New unit.
22044         (grfpu_ds): Likewise.
22045         (leon_fp_alu): Adjust.
22046         (leon_fp_mult): Delete.
22047         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
22048         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
22049         * config/sparc/sparc.md (cpu): Add leon3.
22050         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
22051         (swapsi): Likewise.
22052         (atomic_test_and_set): Likewise.
22053         (ldstub): Likewise.
22055 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
22057         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
22058         default for R5900 targets.
22059         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
22060         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
22061         * config/mips/mips.c (mips_option_override): Report an error for
22062         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
22063         for -march=r5900 -mhard-float.
22065 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
22067         * df-problems.c (can_move_insns_across): Exit loop once we
22068         find a non-fixed, non-global register.
22070         * ipa-pure-const.c (propagate_nothrow): Exit loop after
22071         setting can_throw.
22073         * omega.c (omega_eliminate_red): Break after setting red_found.
22074         (omega_problem_has_red_equations): Similarly after setting found.
22075         (omega_query_variable): Similarly after setting coupled.
22077 2013-07-22  Marek Polacek  <polacek@redhat.com>
22079         * gimplify.c: Don't include gimple.h twice.
22081 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22083         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
22084         instead of TARGET_THUMB1.
22085         (Pz): New constraint.
22086         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
22087         encodings.
22088         (compare_negsi_si): Likewise.
22089         (compare_addsi2_op0): Likewise.
22090         (compare_addsi2_op1): Likewise.
22091         (addsi3_carryin_<optab>): Likewise.
22092         (addsi3_carryin_alt2_<optab>): Likewise.
22093         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
22094         for arm_restrict_it.
22095         (subsi3_carryin): Likewise.
22096         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
22097         (minmax_arithsi): Disable for arm_restrict_it.
22098         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
22099         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
22100         (satsi_<SAT:code>_shift): Likewise.
22101         (arm_shiftsi3): Add alternative for 16-bit encoding.
22102         (arm32_movhf): Disable for arm_restrict_it.
22103         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
22104         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
22106 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
22108         * config/arm/arm.md (attribute "insn"): Delete.
22109         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
22110         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
22111         (not_shiftsi): Update for attribute change.
22112         (not_shiftsi_compare0): Likewise.
22113         (not_shiftsi_compare0_scratch): Likewise.
22114         (arm_one_cmplsi2): Likewise.
22115         (thumb1_one_cmplsi2): Likewise.
22116         (notsi_compare0): Likewise.
22117         (notsi_compare0_scratch): Likewise.
22118         (thumb1_movdi_insn): Likewise.
22119         (arm_movsi_insn): Likewise.
22120         (movhi_insn_arch4): Likewise.
22121         (movhi_bytes): Likewise.
22122         (arm_movqi_insn): Likewise.
22123         (thumb1_movqi_insn): Likewise.
22124         (arm32_movhf): Likewise.
22125         (thumb1_movhf): Likewise.
22126         (arm_movsf_soft_insn): Likewise.
22127         (thumb1_movsf_insn): Likewise.
22128         (thumb_movdf_insn): Likewise.
22129         (movsicc_insn): Likewise.
22130         (movsfcc_soft_insn): Likewise.
22131         (and_scc): Likewise.
22132         (cond_move): Likewise.
22133         (if_move_not): Likewise.
22134         (if_not_move): Likewise.
22135         (if_shift_move): Likewise.
22136         (if_move_shift): Likewise.
22137         (if_shift_shift): Likewise.
22138         (if_not_arith): Likewise.
22139         (if_arith_not): Likewise.
22140         (cond_move_not): Likewise.
22141         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
22142         (neon_mov<mode>): Likewise.
22143         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
22144         (thumb2_movsi_vfp): Likewise.
22145         (movsf_vfp): Likewise.
22146         (thumb2_movsf_vfp): Likewise.
22147         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22148         change.
22149         (cortexa7_older_only): Likewise.
22150         (cortexa7_younger): Likewise.
22151         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
22152         (1020alu_shift_op): Likewise.
22153         (1020alu_shift_reg_op): Likewise.
22154         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
22155         (alu_shift_op): Likewise.
22156         (alu_shift_reg_op): Likewise.
22157         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
22158         (11_alu_shift_op): Likewise.
22159         (11_alu_shift_reg_op): Likewise.
22160         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
22161         (9_alu_shift_reg_op): Likewise.
22162         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22163         change.
22164         (cortex_a15_alu_shift): Likewise.
22165         (cortex_a15_alu_shift_reg): Likewise.
22166         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
22167         (cortex_a5_alu_shift): Likewise.
22168         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
22169         change.
22170         (cortex_a53_alu_shift): Likewise.
22171         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22172         change.
22173         (cortex_a7_alu_reg): Likewise.
22174         (cortex_a7_alu_shift): Likewise.
22175         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22176         (cortex_a8_alu_shift): Likewise.
22177         (cortex_a8_alu_shift_reg): Likewise.
22178         (cortex_a8_mov): Likewise.
22179         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
22180         (cortex_a9_dp_shift): Likewise.
22181         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
22182         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
22183         (cortex_r4_mov): Likewise.
22184         (cortex_r4_alu_shift): Likewise.
22185         (cortex_r4_alu_shift_reg): Likewise.
22186         * config/arm/fa526.md (526_alu_op): Update for attribute change.
22187         (526_alu_shift_op): Likewise.
22188         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
22189         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
22190         (626te_alu_shift_op): Likewise.
22191         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
22192         (726te_alu_op): Likewise.
22193         (726te_alu_shift_op): Likewise.
22194         (726te_alu_shift_reg_op): Likewise.
22195         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
22196         (mp626_alu_shift_op): Likewise.
22197         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
22198         (pj4_alu_e1_conds): Likewise.
22199         (pj4_alu): Likewise.
22200         (pj4_alu_conds): Likewise.
22201         (pj4_shift): Likewise.
22202         (pj4_shift_conds): Likewise.
22203         (pj4_alu_shift): Likewise.
22204         (pj4_alu_shift_conds): Likewise.
22206 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22208         * config/arm/predicates.md (shiftable_operator_strict_it):
22209         New predicate.
22210         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
22211         Disable cond_exec version for arm_restrict_it.
22212         (thumb2_smaxsi3): Convert to generate cond_exec.
22213         (thumb2_sminsi3): Likewise.
22214         (thumb32_umaxsi3): Likewise.
22215         (thumb2_uminsi3): Likewise.
22216         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
22217         (thumb2_neg_abssi2): Likewise.
22218         (thumb2_mov_scc): Add alternative for 16-bit encoding.
22219         (thumb2_movsicc_insn): Adjust alternatives.
22220         (thumb2_mov_negscc): Disable for arm_restrict_it.
22221         (thumb2_mov_negscc_strict_it): New pattern.
22222         (thumb2_mov_notscc_strict_it): New pattern.
22223         (thumb2_mov_notscc): Disable for arm_restrict_it.
22224         (thumb2_ior_scc): Likewise.
22225         (thumb2_ior_scc_strict_it): New pattern.
22226         (thumb2_cond_move): Adjust for arm_restrict_it.
22227         (thumb2_cond_arith): Disable for arm_restrict_it.
22228         (thumb2_cond_arith_strict_it): New pattern.
22229         (thumb2_cond_sub): Adjust for arm_restrict_it.
22230         (thumb2_movcond): Likewise.
22231         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
22232         (thumb2_zero_extendhisi2_v6): Likewise.
22233         (thumb2_zero_extendqisi2_v6): Likewise.
22234         (orsi_notsi_si): Likewise.
22235         (orsi_not_shiftsi_si): Likewise.
22237 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
22239         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
22240         instruction sequence is 1 byte shorter.
22242 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
22244         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
22245         it is not needed after split.
22247 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
22249         PR target/51784
22250         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
22251         second label for nonlocal goto receivers. Don't output pic base labels
22252         unless we're producing PIC; mark that action unreachable().
22253         (ix86_save_reg): If the function contains a nonlocal label, save the
22254         PIC base reg.
22255         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
22256         * config/darwin.c (emitted_pic_label_num): New GTY.
22257         (update_pic_label_number_if_needed): New.
22258         (machopic_output_function_base_name): Adjust for nonlocal receiver
22259         case.
22260         (machopic_should_output_picbase_label): New.
22261         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
22262         (nonlocal_goto_receiver): New insn and split.
22264 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
22266         * config/aarch64/aarch64-builtins.c
22267         (aarch64_fold_builtin): Fold abs in all modes.
22268         * config/aarch64/aarch64-simd-builtins.def
22269         (abs): Enable for all modes.
22270         * config/aarch64/arm_neon.h
22271         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
22272         (vabs_f64): Add missing intrinsic.
22274 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
22276         * config/aarch64/arm_neon.h (vabs_s64): New function
22278 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
22280         PR target/57516
22281         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
22282         * config/avr/avr.md (adjust_len): Add `round'.
22283         * config/avr/avr-protos.h (avr_out_round): New prototype.
22284         (avr_out_plus): Add `out_label' argument.
22285         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
22286         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
22287         Handle the case where `insn' is just a pattern.
22288         (avr_out_bitop): Handle the case where `insn' is just a pattern.
22289         (avr_out_round): New function.
22290         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
22292 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
22294         * config/microblaze/microblaze.c (microblaze_expand_prologue):
22295         Add check for flag_stack_usage to handle -fstack-usage support
22297 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
22299         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
22300         interaction for new Power8 flags and VSX.
22302 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
22304         PR middle-end/57698
22305         * tree-inline.c (expand_call_inline): Emit errors during
22306         early_inlining only if optimization is not turned on.
22308 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22310         * passes.def: New.
22312         * passes.c (init_optimization_passes): Move the construction of
22313         the pass hierarchy into a new passes.def file.
22315         * Makefile.in (passes.o): Add dependency on passes.def.
22317 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22319         * passes.c (init_optimization_passes): Introduce macros for
22320         constructing the tree of passes (INSERT_PASSES_AFTER,
22321         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
22322         TERMINATE_PASS_LIST).
22324 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
22325             Wei Mi  <wmi@google.com>
22327         PR rtl-optimization/57878
22328         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
22329         top.
22330         (reload_pseudo_compare_func): Check nregs first for reload
22331         pseudos.
22333 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22335         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
22337 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
22339         * read-rtl.c (validate_const_int): Once an invalid character is
22340         seen, quit the loop.
22342         * gengtype.c (write_roots): Similarly once we find the "deletable"
22343         or "if_marked" option.
22345 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
22347         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22348         "xtab" and "sat".  Move value "clz" from here to ...
22349         (attriubte "type"): ... here.
22350         (satsi_<SAT:code>): Delete "insn" attribute.
22351         (satsi_<SAT:code>_shift): Likewise.
22352         (arm_zero_extendqisi2addsi): Likewise.
22353         (arm_extendqisi2addsi): Likewise.
22354         (clzsi2): Update for attribute changes.
22355         (rbitsi2): Likewise.
22356         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22357         attribute.
22358         (arm_usatsihi): Likewise.
22359         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22361 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
22363         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22364         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
22365         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
22366         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
22367         in alphabetical order.
22368         (attribute "core_cycles"): Update for attribute changes.
22369         (arm_addsi3): Likewise.
22370         (addsi3_compare0): Likewise.
22371         (addsi3_compare0_scratch): Likewise.
22372         (addsi3_compare_op1): Likewise.
22373         (addsi3_compare_op2): Likewise.
22374         (compare_addsi2_op0): Likewise.
22375         (compare_addsi2_op1): Likewise.
22376         (addsi3_carryin_shift_<optab>): Likewise.
22377         (subsi3_carryin_shift): Likewise.
22378         (rsbsi3_carryin_shift): Likewise.
22379         (arm_subsi3_insn): Likewise.
22380         (subsi3_compare0): Likewise.
22381         (subsi3_compare): Likewise.
22382         (arm_andsi3_insn): Likewise.
22383         (thumb1_andsi3_insn): Likewise.
22384         (andsi3_compare0): Likewise.
22385         (andsi3_compare0_scratch): Likewise.
22386         (zeroextractsi_compare0_scratch
22387         (andsi_not_shiftsi_si): Likewise.
22388         (iorsi3_insn): Likewise.
22389         (iorsi3_compare0): Likewise.
22390         (iorsi3_compare0_scratch): Likewise.
22391         (arm_xorsi3): Likewise.
22392         (thumb1_xorsi3_insn): Likewise.
22393         (xorsi3_compare0): Likewise.
22394         (xorsi3_compare0_scratch): Likewise.
22395         (satsi_<SAT:code>_shift): Likewise.
22396         (rrx): Likewise.
22397         (arm_shiftsi3): Likewise.
22398         (shiftsi3_compare0): Likewise.
22399         (not_shiftsi): Likewise.
22400         (not_shiftsi_compare0): Likewise.
22401         (not_shiftsi_compare0_scratch): Likewise.
22402         (arm_one_cmplsi2): Likewise.
22403         (thumb_one_complsi2): Likewise.
22404         (notsi_compare0): Likewise.
22405         (notsi_compare0_scratch): Likewise.
22406         (thumb1_zero_extendhisi2): Likewise.
22407         (arm_zero_extendhisi2): Likewise.
22408         (arm_zero_extendhisi2_v6): Likewise.
22409         (arm_zero_extendhisi2addsi): Likewise.
22410         (thumb1_zero_extendqisi2): Likewise.
22411         (thumb1_zero_extendqisi2_v6): Likewise.
22412         (arm_zero_extendqisi2): Likewise.
22413         (arm_zero_extendqisi2_v6): Likewise.
22414         (arm_zero_extendqisi2addsi): Likewise.
22415         (thumb1_extendhisi2): Likewise.
22416         (arm_extendhisi2): Likewise.
22417         (arm_extendhisi2_v6): Likewise.
22418         (arm_extendqisi): Likewise.
22419         (arm_extendqisi_v6): Likewise.
22420         (arm_extendqisi2addsi): Likewise.
22421         (thumb1_extendqisi2): Likewise.
22422         (thumb1_movdi_insn): Likewise.
22423         (arm_movsi_insn): Likewise.
22424         (movsi_compare0): Likewise.
22425         (movhi_insn_arch4): Likewise.
22426         (movhi_bytes): Likewise.
22427         (arm_movqi_insn): Likewise.
22428         (thumb1_movqi_insn): Likewise.
22429         (arm32_movhf): Likewise.
22430         (thumb1_movhf): Likewise.
22431         (arm_movsf_soft_insn): Likewise.
22432         (thumb1_movsf_insn): Likewise.
22433         (movdf_soft_insn): Likewise.
22434         (thumb_movdf_insn): Likewise.
22435         (arm_cmpsi_insn): Likewise.
22436         (cmpsi_shiftsi): Likewise.
22437         (cmpsi_shiftsi_swp): Likewise.
22438         (arm_cmpsi_negshiftsi_si): Likewise.
22439         (movsicc_insn): Likewise.
22440         (movsfcc_soft_insn): Likewise.
22441         (arith_shiftsi): Likewise.
22442         (arith_shiftsi_compare0
22443         (arith_shiftsi_compare0_scratch
22444         (sub_shiftsi): Likewise.
22445         (sub_shiftsi_compare0
22446         (sub_shiftsi_compare0_scratch
22447         (and_scc): Likewise.
22448         (cond_move): Likewise.
22449         (if_plus_move): Likewise.
22450         (if_move_plus): Likewise.
22451         (if_move_not): Likewise.
22452         (if_not_move): Likewise.
22453         (if_shift_move): Likewise.
22454         (if_move_shift): Likewise.
22455         (if_shift_shift): Likewise.
22456         (if_not_arith): Likewise.
22457         (if_arith_not): Likewise.
22458         (cond_move_not): Likewise.
22459         (thumb1_ashlsi3): Set type attribute.
22460         (thumb1_ashrsi3): Likewise.
22461         (thumb1_lshrsi3): Likewise.
22462         (thumb1_rotrsi3): Likewise.
22463         (shiftsi3_compare0_scratch): Likewise.
22464         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22465         (neon_mov<mode>): Likewise.
22466         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22467         attribute changes.
22468         (thumb2_movsi_insn): Likewise.
22469         (thumb2_cmpsi_neg_shiftsi): Likewise.
22470         (thumb2_extendqisi_v6): Likewise.
22471         (thumb2_zero_extendhisi2_v6): Likewise.
22472         (thumb2_zero_extendqisi2_v6): Likewise.
22473         (thumb2_shiftsi3_short): Likewise.
22474         (thumb2_addsi3_compare0_scratch): Likewise.
22475         (orsi_not_shiftsi_si): Likewise.
22476         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22477         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22478         changes.
22479         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22480         (1020alu_shift_op): Likewise.
22481         (1020alu_shift_reg_op): Likewise.
22482         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22483         (alu_shift_op): Likewise.
22484         (alu_shift_reg_op): Likewise.
22485         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22486         (11_alu_shift_op): Likewise.
22487         (11_alu_shift_reg_op): Likewise.
22488         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22489         (9_alu_shift_reg_op): Likewise.
22490         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22491         changes.
22492         (cortex_a15_alu_shift): Likewise.
22493         (cortex_a15_alu_shift_reg): Likewise.
22494         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22495         changes.
22496         (cortex_a5_alu_shift): Likewise.
22497         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22498         changes.
22499         (cortex_a53_alu_shift): Likewise.
22500         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22501         changes.
22502         (cortex_a7_alu_reg): Likewise.
22503         (cortex_a7_alu_shift): Likewise.
22504         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22505         changes.
22506         (cortex_a8_alu_shift): Likewise.
22507         (cortex_a8_alu_shift_reg): Likewise.
22508         (cortex_a8_mov): Likewise.
22509         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22510         (cortex_a9_dp_shift): Likewise.
22511         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22512         changes.
22513         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22514         changes.
22515         (cortex_r4_mov): Likewise.
22516         (cortex_r4_alu_shift): Likewise.
22517         (cortex_r4_alu_shift_reg): Likewise.
22518         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22519         (526_alu_shift_op): Likewise.
22520         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22521         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22522         (626te_alu_shift_op): Likewise.
22523         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22524         (726te_alu_op): Likewise.
22525         (726te_alu_shift_op): Likewise.
22526         (726te_alu_shift_reg_op): Likewise.
22527         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22528         (mp626_alu_shift_op): Likewise.
22529         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22530         (pj4_alu_e1_conds): Likewise.
22531         (pj4_alu): Likewise.
22532         (pj4_alu_conds): Likewise.
22533         (pj4_shift): Likewise.
22534         (pj4_shift_conds): Likewise.
22535         (pj4_alu_shift): Likewise.
22536         (pj4_alu_shift_conds): Likewise.
22537         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22538         changes.
22539         (cortexa7_older_only): Likewise.
22540         (cortexa7_younger): Likewise.
22542 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22544         * ipa-pure-const.c (generate_summary): Rename to...
22545         (pure_const_generate_summary): ... this.
22547 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
22549         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22551 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
22553         PR target/57909
22554         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22555         usage in HI mode.
22557 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22559         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22560         enabled without -march=zEC12.
22561         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22562         flags to be set.
22564 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22566         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22567         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22568         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22569         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22570         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22571         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22572         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22573         ISA_HAS_FP4.
22574         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22575         and ISA_HAS_NMADD3_NMSUB3.
22576         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22577         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22578         (nmsub4<mode>, nmsub3<mode>): Likewise.
22579         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22581 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22583         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22584         TARGET_MIPS5400 checking.
22586 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
22587             Peter Bergner  <bergner@vnet.ibm.com>
22589         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22590         registers in the comment.
22591         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22592         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22593         rather than FIRST_PSEUDO_REGISTERS.
22595 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
22597         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22598         enable extra ISA flags with TARGET_HTM.
22600 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22602         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22603         Fix comment typos.
22605 2013-07-15  Cong Hou  <congh@google.com>
22607         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22608         in compare function for sorting.
22610 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
22612         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22613         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22614         * config/rs6000/rs6000.opt: Add -mhtm option.
22615         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22616         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22617         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22618         __HTM__ if the HTM instructions are available.
22619         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22620         htm_spr_reg_operand): New define_predicates.
22621         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22622         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22623         Include htm.md.
22624         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22625         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22626         HTM builtin functions.
22627         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22628         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22629         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22630         (rs6000_builtin_mask_calculate): Likewise.
22631         (rs6000_option_override_internal): Likewise.
22632         (bdesc_htm): Add new HTM builtin support.
22633         (htm_spr_num): New function.
22634         (htm_spr_regno): Likewise.
22635         (rs6000_htm_spr_icode): Likewise.
22636         (htm_expand_builtin): Likewise.
22637         (htm_init_builtins): Likewise.
22638         (rs6000_expand_builtin): Add support for HTM builtin functions.
22639         (rs6000_init_builtins): Likewise.
22640         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22641         option.
22642         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22643         (TARGET_HTM, MASK_HTM): Define macros.
22644         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22645         (FIXED_REGISTERS): Likewise.
22646         (CALL_USED_REGISTERS): Likewise.
22647         (CALL_REALLY_USED_REGISTERS): Likewise.
22648         (REG_ALLOC_ORDER): Likewise.
22649         (enum reg_class): Likewise.
22650         (REG_CLASS_NAMES): Likewise.
22651         (REG_CLASS_CONTENTS): Likewise.
22652         (REGISTER_NAMES): Likewise.
22653         (ADDITIONAL_REGISTER_NAMES): Likewise.
22654         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22655         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22656         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22657         * config/rs6000/htm.md: New file.
22658         * config/rs6000/htmintrin.h: New file.
22659         * config/rs6000/htmxlintrin.h: New file.
22661 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22663         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22664         Define SYMBOL_TINY_GOT, update comment.
22665         * config/aarch64/aarch64.c
22666         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22667         (aarch64_expand_mov_immediate): Likewise.
22668         (aarch64_print_operand): Likewise.
22669         (aarch64_classify_symbol): Likewise.
22670         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22671         (ldr_got_tiny): Define.
22673 2013-07-13  Tobias Grosser  <tobias@grosser.es>
22675         PR tree-optimization/54094
22676         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22677           scheduling dimension for the parallelism check from the polyhedral
22678           information in the AST.
22679         * graphite-dependences.c (carries_deps): Do not assume the schedule is
22680           in 2D + 1 form.
22682 2013-07-13  Jason Merrill  <jason@redhat.com>
22684         * print-tree.c (debug_vec_tree): Use debug_raw.
22685         (debug_raw (vec<tree, va_gc> &)): New.
22686         (debug_raw (vec<tree, va_gc> *)): New.
22687         * tree.h: Declare them.
22689 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
22691         * ifcvt.c (ifcvt_after_combine): New static variable.
22692         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22693         for size.
22694         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
22695         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22696         rest_of_handle_if_after_reload): Pass new argument for if_convert.
22698 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
22700         * config/mips/mips.c (mips_expand_call): Remove empty statement.
22702 2013-07-12  Michael Matz  <matz@suse.de>
22704         PR middle-end/55771
22705         * convert.c (convert_to_real): Reject non-float inner types.
22707 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
22709         * config/aarch64/aarch64-protos.h
22710         (aarch64_simd_immediate_valid_for_move): Remove.
22711         * config/aarch64/aarch64.c (simd_immediate_info): New member.
22712         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22713         cases.
22714         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22716 2013-07-11  Steve Ellcey  <sellcey@mips.com>
22718         * config/mips/mips.c (mips_conditional_register_usage): Do not
22719         use t[0-7] registers in MIPS16 mode when optimizing for size.
22721 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
22723         * config/i386/i386.c (dispatch_function_versions): Fix array
22724         indexing of function_version_info to match actual_versions.
22726 2013-07-11  Teresa Johnson  <tejohnson@google.com>
22728         * vec.h (struct va_gc): Move release out-of-line.
22729         (va_gc::release): Call ggc_free on released vec.
22731 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22733         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22734         Require GOT register as additional operand in UNSPEC.
22735         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22736         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22737         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22738         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22739         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22740         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22741         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22743 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
22745         PR target/57631
22746         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22747         name seen by assembler/linker rather if available.
22749 2013-07-11  Andreas Schwab  <schwab@suse.de>
22751         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22753 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
22755         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22757 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
22759         * doc/tm.texi.in: Move hook documentation to ....
22760         * target.def: ... here.
22762         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22763         text on @hook line.
22764         * doc/tm.texi: Regenerate.
22766 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
22768         PR c++/57869
22769         * doc/invoke.texi: Document -Wconditionally-supported.
22771 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22773         PR target/57844
22774         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22775         of my_fp.
22777 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22779         PR target/57506
22780         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22781         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22782         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22783         Remove duplicate devices.
22784         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22785         * config/avr/t-multilib: Regenerate.
22786         * config/avr/avr-tables.opt: Regenerate.
22787         * doc/avr-mmcu.texi: Regenerate.
22789 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22791         PR target/56987
22792         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22794 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
22796         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22797         the cost of MULT when optimizing for size.
22799 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22801         * config/cr16/cr16-protos.h: Don't include target.h.
22803 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
22805         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22806         adjust register size for TDmode and TFmode for VSX registers.
22808 2013-07-08  Kai Tietz  <ktietz@redhat.com>
22810         PR target/56892
22811         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22812         hook_bool_const_tree_true.
22814 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22816         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22817         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22818         * config/s390/s390.md: Define FPR*_REGNUM constants.
22819         Fix FPR2_REGNUM constant (18 -> 17).
22820         ("*trunc<BFP:mode><DFP_ALL:mode>2")
22821         ("*trunc<DFP_ALL:mode><BFP:mode>2")
22822         ("trunc<BFP:mode><DFP_ALL:mode>2")
22823         ("trunc<DFP_ALL:mode><BFP:mode>2")
22824         ("*extend<BFP:mode><DFP_ALL:mode>2")
22825         ("*extend<DFP_ALL:mode><BFP:mode>2")
22826         ("extend<BFP:mode><DFP_ALL:mode>2")
22827         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22828         FPR4_REGNUM.
22830 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
22832         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22834 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22836         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22837         and cfun_fpr_bit_p to cfun_fpr_save_p.
22838         (s390_frame_area, s390_register_info, s390_frame_info)
22839         (s390_emit_prologue, s390_emit_epilogue)
22840         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22841         register numbers.
22842         * config/s390/s390.h: Define *_REGNUM macros for floating point
22843         register numbers.
22845 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22847         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22849 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
22851         PR rtl-optimization/57786
22852         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22853         and break out of the loop when it is set to false.
22855 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
22857         PR target/57819
22858         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22859         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22860         (const_int 63)) 0)).
22861         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22862         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22863         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22865         PR rtl-optimization/57829
22866         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22867         mask bits outside of mode are just sign-extension from mode to HWI.
22869 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22871         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22872         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22873         adjust_address instead of change_address to keep info about alignment.
22874         (emit_strmov): Remove.
22875         (emit_memmov): New function.
22876         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22877         (expand_movmem_epilogue): Likewise and return updated rtx for
22878         destination.
22879         (expand_constant_movmem_prologue): Likewise and return updated rtx for
22880         destination and source.
22881         (decide_alignment): Refactor, handle vector_loop.
22882         (ix86_expand_movmem): Likewise.
22883         (ix86_expand_setmem): Likewise.
22884         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22886 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
22888         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22889         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22891 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22893         * config/i386/sse.md (sse_movlhps): Change alternative 3
22894         of operand 2 to "m".
22896 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22898         PR target/57807
22899         * config/i386/sse.md (iptr): New mode attribute.
22900         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22901         (<sse>_vm<plusminus_insn><mode>3): Ditto.
22902         (<sse>_vmmul<mode>3): Ditto.
22903         (<sse>_vmdiv<mode>3): Ditto.
22904         (sse_vmrcpv4sf2): Ditto.
22905         (<sse>_vmsqrt<mode>2): Ditto.
22906         (sse_vmrsqrtv4sf2): Ditto.
22907         (<sse>_vm<code><mode>3): Ditto.
22908         (avx_vmcmp<mode>3): Ditto.
22909         (<sse>_vmmaskcmp<mode>3): Ditto.
22910         (<sse>_comi): Ditto.
22911         (<sse>_ucomi): Ditto.
22912         (*xop_vmfrcz_<mode>): Ditto.
22913         (*fmai_fmadd_<mode>): Ditto.
22914         (*fmai_fmsub_<mode>): Ditto.
22915         (*fmai_fnmadd_<mode>): Ditto.
22916         (*fmai_fnmsub_<mode>): Ditto.
22917         (*fma4i_vmfmadd_<mode>): Ditto.
22918         (*fma4i_vmfmsub_<mode>): Ditto.
22919         (*fma4i_vmfnmadd_<mode>): Ditto.
22920         (*fma4i_vmfnmsub_<mode>): Ditto.
22921         (*xop_vmfrcz_<mode>): Ditto.
22922         (sse_cvtps2pi): Ditto.
22923         (sse_cvttps2pi): Ditto.
22924         (sse_cvtss2si): Ditto.
22925         (sse_cvtss2si_2): Ditto.
22926         (sse_cvtss2siq_2): Ditto.
22927         (sse_cvttss2si): Ditto.
22928         (sse_cvttss2siq): Ditto.
22929         (sse_cvtsd2si): Ditto.
22930         (sse_cvtsd2si_2): Ditto.
22931         (sse_cvtsd2siq_2): Ditto.
22932         (sse_cvttsd2si): Ditto.
22933         (sse_cvttsd2siq): Ditto.
22934         (sse_cvtsd2ss): Ditto.
22935         (sse_cvtss2sd): Ditto.
22936         (avx2_pbroadcast<mode>): Ditto.
22937         (avx2_pbroadcast<mode>_1): Ditto.
22938         (*avx_vperm_broadcast_v4sf): Ditto.
22940         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22941         (sse_movlhps): Ditto.
22942         (sse_storehps): Ditto.
22943         (sse_loadhps): Ditto.
22944         (sse_storelps): Ditto.
22945         (sse_loadlps): Ditto.
22946         (*vec_concatv4sf): Ditto.
22947         (*vec_interleave_highv2df): Ditto.
22948         (*vec_interleave_lowv2df): Ditto.
22949         (*vec_extractv2df_1_sse): Ditto.
22950         (*vec_extractv2df_0_sse): Ditto.
22951         (sse2_storelpd): Ditto.
22952         (sse2_loadlpd): Ditto.
22953         (sse2_movsd): Ditto.
22954         (*vec_concatv4si): Ditto.
22955         (vec_concatv2di): Ditto.
22957         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22958         for Intel asm dialect.
22959         (mmx_punpcklwd): Ditto.
22960         (mmx_punpckldq): Ditto.
22962         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22963         for intel assembler dialect.
22965 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
22967         PR target/29776
22968         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22969         for BUILT_IN_C{LZ,LRSB}*.
22970         * tree.h (CASE_INT_FN): Add FN##IMAX case.
22971         * tree-vrp.c (extract_range_basic): Handle
22972         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
22973         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22974         fall thru to code calling set_value*.
22975         * builtins.c (expand_builtin): Remove *IMAX cases.
22976         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22977         if width is bigger than 2*HWI.
22979 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
22981         PR rtl-optimization/55342
22982         * lra-int.h (lra_subreg_reload_pseudos): New.
22983         * lra.c: Add undoing optional reloads to the block diagram.
22984         (lra_subreg_reload_pseudos): New.
22985         (lra_optional_reload_pseudos): Change comments.
22986         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
22987         lra_optional_reload_pseudos after undo transformations.
22988         * lra-assigns.c (pseudo_prefix_title): New.
22989         (lra_setup_reg_renumber): Use it.
22990         (spill_for): Ditto.  Check subreg reload pseudos too.
22991         (assign_by_spills): Consider subreg reload pseudos too.
22992         * lra-constraints.c (simplify_operand_subreg): Use
22993         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22994         (curr_insn_transform): Recognize and do optional reloads.
22995         (undo_optional_reloads): New.
22996         (lra_undo_inheritance): Call undo_optional_reloads.
22998 2013-07-05  Thomas Quinot  <quinot@adacore.com>
23000         * tree-complex.c (expand_complex_operations_1): Fix typo.
23002 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
23004         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
23005         (tune_params): New member 'const vec_costs'.
23006         * config/aarch64/aarch64.c (generic_vector_cost): New.
23007         (generic_tunings): New member 'generic_vector_cost'.
23008         (aarch64_builtin_vectorization_cost): New.
23009         (aarch64_add_stmt_cost): New.
23010         (TARGET_VECTORIZE_ADD_STMT_COST): New.
23011         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
23013 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
23015         PR target/57777
23016         * config/i386/predicates.md (vsib_address_operand): Disallow
23017         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
23019 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
23021         PR middle-end/55030
23022         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
23023         expand_builtin_setjmp_receiver.
23024         (expand_label): Adjust, call expand_builtin_setjmp_receiver
23025         with NULL for the label parameter.
23026         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
23027         the frame-pointer.  Adjust comments.
23028         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
23029         only if LABEL is non-NULL.
23031 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
23033         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
23034         (ARM_ABI_AAPCS64): Ditto.
23035         (arm_abi): Ditto.
23036         (ARM_DEFAULT_ABI): Ditto.
23038 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
23040         * config/aarch64/aarch64-builtins.c
23041         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
23042         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
23043         (st1): Likewise.
23044         * config/aarch64/aarch64-simd.md
23045         (aarch64_ld1<VALL:mode>): New.
23046         (aarch64_st1<VALL:mode>): Likewise.
23047         * config/aarch64/arm_neon.h
23048         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
23050 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
23052         * config/i386/i386.c (gate_insert_vzeroupper): Check if
23053         target ISA is AVX.
23054         (ix86_option_override_internal):Turn on all -mavx target flags by
23055         default as they are dependent on AVX anyway.
23057 2013-07-02  Cary Coutant  <ccoutant@google.com>
23059         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
23060         deterministic hash.
23061         (loc_checksum_ordered): Likewise.
23062         (hash_loc_operands): Remove inline keyword.
23064 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
23066         PR tree-optimization/57741
23067         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
23068         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
23069         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
23070         Allow REAL_CST step_exprs if flag_associative_math.
23071         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
23073 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
23075         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
23077 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
23079         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
23081 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23083         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
23084         encoding.
23085         (iorsi3_insn): Likewise.
23086         (arm_xorsi3): Likewise.
23088 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
23090         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
23091         to ...
23092         (attribute "type"): ... here, and prefix with "wmmx_".
23093         (attribute "core_cycles"): Update for attribute changes.
23094         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
23095         (tbcstv4hi): Likewise.
23096         (tbcstv2si): Likewise.
23097         (iwmmxt_iordi3): Likewise.
23098         (iwmmxt_xordi3): Likewise.
23099         (iwmmxt_anddi3): Likewise.
23100         (iwmmxt_nanddi3): Likewise.
23101         (iwmmxt_arm_movdi): Likewise.
23102         (iwmmxt_movsi_insn): Likewise.
23103         (mov<mode>_internal): Likewise.
23104         (and<mode>3_iwmmxt): Likewise.
23105         (ior<mode>3_iwmmxt): Likewise.
23106         (xor<mode>3_iwmmxt): Likewise.
23107         (add<mode>3_iwmmxt): Likewise.
23108         (ssaddv8qi3): Likewise.
23109         (ssaddv4hi3): Likewise.
23110         (ssaddv2si3): Likewise.
23111         (usaddv8qi3): Likewise.
23112         (usaddv4hi3): Likewise.
23113         (usaddv2si3): Likewise.
23114         (sub<mode>3_iwmmxt): Likewise.
23115         (sssubv8qi3): Likewise.
23116         (sssubv4hi3): Likewise.
23117         (sssubv2si3): Likewise.
23118         (ussubv8qi3): Likewise.
23119         (ussubv4hi3): Likewise.
23120         (ussubv2si3): Likewise.
23121         (mulv4hi3_iwmmxt): Likewise.
23122         (smulv4hi3_highpart): Likewise.
23123         (umulv4hi3_highpart): Likewise.
23124         (iwmmxt_wmacs): Likewise.
23125         (iwmmxt_wmacsz): Likewise.
23126         (iwmmxt_wmacu): Likewise.
23127         (iwmmxt_wmacuz): Likewise.
23128         (iwmmxt_clrdi): Likewise.
23129         (iwmmxt_clrv8qi): Likewise.
23130         (iwmmxt_clr4hi): Likewise.
23131         (iwmmxt_clr2si): Likewise.
23132         (iwmmxt_uavgrndv8qi3): Likewise.
23133         (iwmmxt_uavgrndv4hi3): Likewise.
23134         (iwmmxt_uavgv8qi3): Likewise.
23135         (iwmmxt_uavgv4hi3): Likewise.
23136         (iwmmxt_tinsrb): Likewise.
23137         (iwmmxt_tinsrh): Likewise.
23138         (iwmmxt_tinsrw): Likewise.
23139         (iwmmxt_textrmub): Likewise.
23140         (iwmmxt_textrmsb): Likewise.
23141         (iwmmxt_textrmuh): Likewise.
23142         (iwmmxt_textrmsh): Likewise.
23143         (iwmmxt_textrmw): Likewise.
23144         (iwmxxt_wshufh): Likewise.
23145         (eqv8qi3): Likewise.
23146         (eqv4hi3): Likewise.
23147         (eqv2si3): Likewise.
23148         (gtuv8qi3): Likewise.
23149         (gtuv4hi3): Likewise.
23150         (gtuv2si3): Likewise.
23151         (gtv8qi3): Likewise.
23152         (gtv4hi3): Likewise.
23153         (gtv2si3): Likewise.
23154         (smax<mode>3_iwmmxt): Likewise.
23155         (umax<mode>3_iwmmxt): Likewise.
23156         (smin<mode>3_iwmmxt): Likewise.
23157         (umin<mode>3_iwmmxt): Likewise.
23158         (iwmmxt_wpackhss): Likewise.
23159         (iwmmxt_wpackwss): Likewise.
23160         (iwmmxt_wpackdss): Likewise.
23161         (iwmmxt_wpackhus): Likewise.
23162         (iwmmxt_wpackwus): Likewise.
23163         (iwmmxt_wpackdus): Likewise.
23164         (iwmmxt_wunpckihb): Likewise.
23165         (iwmmxt_wunpckihh): Likewise.
23166         (iwmmxt_wunpckihw): Likewise.
23167         (iwmmxt_wunpckilb): Likewise.
23168         (iwmmxt_wunpckilh): Likewise.
23169         (iwmmxt_wunpckilw): Likewise.
23170         (iwmmxt_wunpckehub): Likewise.
23171         (iwmmxt_wunpckehuh): Likewise.
23172         (iwmmxt_wunpckehuw): Likewise.
23173         (iwmmxt_wunpckehsb): Likewise.
23174         (iwmmxt_wunpckehsh): Likewise.
23175         (iwmmxt_wunpckehsw): Likewise.
23176         (iwmmxt_wunpckelub): Likewise.
23177         (iwmmxt_wunpckeluh): Likewise.
23178         (iwmmxt_wunpckeluw): Likewise.
23179         (iwmmxt_wunpckelsb): Likewise.
23180         (iwmmxt_wunpckelsh): Likewise.
23181         (iwmmxt_wunpckelsw): Likewise.
23182         (ror<mode>3): Likewise.
23183         (ashr<mode>3_iwmmxt): Likewise.
23184         (lshr<mode>3_iwmmxt): Likewise.
23185         (ashl<mode>3_iwmmxt): Likewise.
23186         (ror<mode>3_di): Likewise.
23187         (ashr<mode>3_di): Likewise.
23188         (lshr<mode>3_di): Likewise.
23189         (ashl<mode>3_di): Likewise.
23190         (iwmmxt_wmadds): Likewise.
23191         (iwmmxt_wmaddu): Likewise.
23192         (iwmmxt_tmia): Likewise.
23193         (iwmmxt_tmiaph): Likewise.
23194         (iwmmxt_tmiabb): Likewise.
23195         (iwmmxt_tmiatb): Likewise.
23196         (iwmmxt_tmiabt): Likewise.
23197         (iwmmxt_tmiatt): Likewise.
23198         (iwmmxt_tmovmskb): Likewise.
23199         (iwmmxt_tmovmskh): Likewise.
23200         (iwmmxt_tmovmskw): Likewise.
23201         (iwmmxt_waccb): Likewise.
23202         (iwmmxt_wacch): Likewise.
23203         (iwmmxt_waccw): Likewise.
23204         (iwmmxt_waligni): Likewise.
23205         (iwmmxt_walignr): Likewise.
23206         (iwmmxt_walignr0): Likewise.
23207         (iwmmxt_walignr1): Likewise.
23208         (iwmmxt_walignr2): Likewise.
23209         (iwmmxt_walignr3): Likewise.
23210         (iwmmxt_wsadb): Likewise.
23211         (iwmmxt_wsadh): Likewise.
23212         (iwmmxt_wsadbz): Likewise.
23213         (iwmmxt_wsadhz): Likewise.
23214         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
23215         (iwmmxt_wabsdiffb): Likewise.
23216         (iwmmxt_wabsdiffh): Likewise.
23217         (iwmmxt_wabsdiffw): Likewise.
23218         (iwmmxt_waddsubhx): Likewise
23219         (iwmmxt_wsubaddhx): Likewise.
23220         (addc<mode>3): Likewise.
23221         (iwmmxt_avg4): Likewise.
23222         (iwmmxt_avg4r): Likewise.
23223         (iwmmxt_wmaddsx): Likewise.
23224         (iwmmxt_wmaddux): Likewise.
23225         (iwmmxt_wmaddsn): Likewise.
23226         (iwmmxt_wmaddun): Likewise.
23227         (iwmmxt_wmulwsm): Likewise.
23228         (iwmmxt_wmulwum): Likewise.
23229         (iwmmxt_wmulsmr): Likewise.
23230         (iwmmxt_wmulumr): Likewise.
23231         (iwmmxt_wmulwsmr): Likewise.
23232         (iwmmxt_wmulwumr): Likewise.
23233         (iwmmxt_wmulwl): Likewise.
23234         (iwmmxt_wqmulm): Likewise.
23235         (iwmmxt_wqmulwm): Likewise.
23236         (iwmmxt_wqmulmr): Likewise.
23237         (iwmmxt_wqmulwmr): Likewise.
23238         (iwmmxt_waddbhusm): Likewise.
23239         (iwmmxt_waddbhusl): Likewise.
23240         (iwmmxt_wqmiabb): Likewise.
23241         (iwmmxt_wqmiabt): Likewise.
23242         (iwmmxt_wqmiatb): Likewise.
23243         (iwmmxt_wqmiatt): Likewise.
23244         (iwmmxt_wqmiabbn): Likewise.
23245         (iwmmxt_wqmiabtn): Likewise.
23246         (iwmmxt_wqmiatbn): Likewise.
23247         (iwmmxt_wqmiattn): Likewise.
23248         (iwmmxt_wmiabb): Likewise.
23249         (iwmmxt_wmiabt): Likewise.
23250         (iwmmxt_wmiatb): Likewise.
23251         (iwmmxt_wmiatt): Likewise.
23252         (iwmmxt_wmiabbn): Likewise.
23253         (iwmmxt_wmiabtn): Likewise.
23254         (iwmmxt_wmiatbn): Likewise.
23255         (iwmmxt_wmiattn): Likewise.
23256         (iwmmxt_wmiawbb): Likewise.
23257         (iwmmxt_wmiawbt): Likewise.
23258         (iwmmxt_wmiawtb): Likewise.
23259         (iwmmxt_wmiawtt): Likewise.
23260         (iwmmxt_wmiawbbn): Likewise.
23261         (iwmmxt_wmiawbtn): Likewise.
23262         (iwmmxt_wmiawtbn): Likewise.
23263         (iwmmxt_wmiawttn): Likewise.
23264         (iwmmxt_wmerge): Likewise.
23265         (iwmmxt_tandc<mode>3): Likewise.
23266         (iwmmxt_torc<mode>3): Likewise.
23267         (iwmmxt_torvsc<mode>3): Likewise.
23268         (iwmmxt_textrc<mode>3): Likewise.
23269         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
23270         (wmmxt_pack): Likewise.
23271         (wmmxt_mult_c1): Likewise.
23272         (wmmxt_mult_c2): Likewise.
23273         (wmmxt_alu_c1): Likewise.
23274         (wmmxt_alu_c2): Likewise.
23275         (wmmxt_alu_c3): Likewise.
23276         (wmmxt_transfer_c1): Likewise.
23277         (wmmxt_transfer_c2): Likewise.
23278         (wmmxt_transfer_c3): Likewise.
23279         (marvell_f_iwmmxt_wstr): Likewise.
23280         (marvell_f_iwmmxt_wldr): Likewise.
23282 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
23284         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
23286 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
23288         Revert:
23289         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
23290         * lra-constraints.c (need_for_split_p): Check call used hard regs
23291         living through calls.
23293         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
23294         call used regs for call insn.
23296 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
23298         PR target/57736
23299         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
23300         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
23302 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
23304         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
23306 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
23308         * lra-constraints.c (need_for_split_p): Check call used hard regs
23309         living through calls.
23311 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
23313         PR target/57744
23314         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
23315         to tie with any other modes.  Eliminate Altivec vector mode tests,
23316         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
23317         code, to return 0 if testing MODE2 for a condition, if we've
23318         already tested MODE1 for the same condition.
23320 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23322         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
23323         layout.
23325 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23327         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23328         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
23330 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23332         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
23333         Define.
23334         (aarch64_symbolic_constant_p): Remove.
23335         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
23336         static.  Fix line length and white space.
23337         (aarch64_symbolic_constant_p): Remove.
23338         * config/aarch64/predicates.md (aarch64_valid_symref):
23339         Use aarch64_classify_symbol_expression.
23341 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23343         * config/arm/constraints.md (Ts): New constraint.
23344         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
23345         16-bit encodings.
23346         (compare_scc): Use "Ts" constraint for operand 0.
23347         (ior_scc_scc): Likewise.
23348         (and_scc_scc): Likewise.
23349         (and_scc_scc_nodom): Likewise.
23350         (ior_scc_scc_cmp): Likewise for operand 7.
23351         (and_scc_scc_cmp): Likewise.
23352         * config/arm/thumb2.md (thumb2_movsi_insn):
23353         Add alternatives for 16-bit encodings.
23354         (thumb2_movhi_insn): Likewise.
23355         (thumb2_movsicc_insn): Likewise.
23356         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
23357         (thumb2_negscc): Use "Ts" constraint.
23358         Move mvn instruction outside cond_exec block.
23359         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23360         for 16-bit encodings.
23362 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23364         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23365         encoding.
23366         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23367         (mulsi3subsi): Likewise.
23368         (mulsidi3adddi): Likewise.
23369         (mulsidi3_v6): Likewise.
23370         (umulsidi3_v6): Likewise.
23371         (umulsidi3adddi_v6): Likewise.
23372         (smulsi3_highpart_v6): Likewise.
23373         (umulsi3_highpart_v6): Likewise.
23374         (mulhisi3tb): Likewise.
23375         (mulhisi3bt): Likewise.
23376         (mulhisi3tt): Likewise.
23377         (maddhisi4): Likewise.
23378         (maddhisi4tb): Likewise.
23379         (maddhisi4tt): Likewise.
23380         (maddhidi4): Likewise.
23381         (maddhidi4tb): Likewise.
23382         (maddhidi4tt): Likewise.
23383         (zeroextractsi_compare0_scratch): Likewise.
23384         (insv_zero): Likewise.
23385         (insv_t2): Likewise.
23386         (anddi_notzesidi_di): Likewise.
23387         (anddi_notsesidi_di): Likewise.
23388         (andsi_notsi_si): Likewise.
23389         (iordi_zesidi_di): Likewise.
23390         (xordi_zesidi_di): Likewise.
23391         (andsi_iorsi3_notsi): Likewise.
23392         (smax_0): Likewise.
23393         (smax_m1): Likewise.
23394         (smin_0): Likewise.
23395         (not_shiftsi): Likewise.
23396         (unaligned_loadsi): Likewise.
23397         (unaligned_loadhis): Likewise.
23398         (unaligned_loadhiu): Likewise.
23399         (unaligned_storesi): Likewise.
23400         (unaligned_storehi): Likewise.
23401         (extv_reg): Likewise.
23402         (extzv_t2): Likewise.
23403         (divsi3): Likewise.
23404         (udivsi3): Likewise.
23405         (arm_zero_extendhisi2addsi): Likewise.
23406         (arm_zero_extendqisi2addsi): Likewise.
23407         (compareqi_eq0): Likewise.
23408         (arm_extendhisi2_v6): Likewise.
23409         (arm_extendqisi2addsi): Likewise.
23410         (arm_movt): Likewise.
23411         (thumb2_ldrd): Likewise.
23412         (thumb2_ldrd_base): Likewise.
23413         (thumb2_ldrd_base_neg): Likewise.
23414         (thumb2_strd): Likewise.
23415         (thumb2_strd_base): Likewise.
23416         (thumb2_strd_base_neg): Likewise.
23417         (arm_negsi2): Add alternative for 16-bit encoding.
23418         (arm_one_cmplsi2): Likewise.
23420 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23422         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23423         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23424         (movdfcc): Likewise.
23425         * config/arm/vfp.md (*thumb2_movsf_vfp):
23426         Disable predication for arm_restrict_it.
23427         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23428         (*thumb2_movdfcc_vfp): Likewise.
23429         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23430         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23431         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23432         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23433         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23434         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23435         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23436         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23437         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23438         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23439         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23440         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23441         Disable predication for arm_restrict_it.
23443 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
23445         * config/i386/bmiintrin.h (_bextr_u32): New.
23446         (_bextr_u64): Ditto.
23448 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
23450         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23451         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23452         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23453         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23454         * config/mips/n32-elf.h: ...this new file.
23456 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
23458         PR target/57224
23459         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23460         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23462 2013-06-27  Catherine Moore  <clm@codesourcery.com>
23464         * config/mips/mips-tables.opt: Regenerate.
23465         * config/mips/mips-cpus.def: Add m14ke and m14kec.
23466         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23467         * doc/invoke.texi: Add -m14kc.
23469 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23471         PR target/57623
23472         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23473         constraints of operand 1 and 2.
23475         PR target/57623
23476         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23477         to match RTL canonicalization.  Swap predicates and
23478         constraints of operand 1 and 2.
23480 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
23482         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23483         Process OP_INOUT regs for splitting too.
23485 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23487         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23488         decl before the loop, initialize to NULL.
23489         (vectorizable_load): Initialize ptr_incr to NULL.
23491 2013-06-27  Martin Jambor  <mjambor@suse.cz>
23493         PR lto/57208
23494         * ipa-ref.h (ipa_maybe_record_reference): Declare.
23495         * ipa-ref.c (ipa_maybe_record_reference): New function.
23496         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23497         * ipa-cp.c (create_specialized_node): Record potential references from
23498         aggvals.
23499         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23501 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23503         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23504         parameter 'mode' of type 'enum machine_mode mode'; change to pass
23505         'mode' to force_reg.
23506         (aarch64_add_offset): Update calls to aarch64_force_temporary.
23507         (aarch64_expand_mov_immediate): Likewise.
23509 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23511         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23512         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23514 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23516         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23517         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23518         (struct machine_function): Add tbegin_p.
23519         (s390_canonicalize_comparison): Fold CC mode compares to
23520         conditional jump if possible.
23521         (s390_emit_jump): Return the emitted jump.
23522         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23523         Handle CCRAWmode compares.
23524         (s390_option_override): Default to -mhtm if available.
23525         (s390_reg_clobbered_rtx): Handle floating point regs as well.
23526         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23527         FPRs instead of df_regs_ever_live_p.
23528         (s390_optimize_nonescaping_tx): New function.
23529         (s390_init_frame_layout): Extend clobbered_regs array to cover
23530         FPRs as well.
23531         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23532         (s390_expand_tbegin): New function.
23533         (enum s390_builtin): New enum definition.
23534         (code_for_builtin): New array definition.
23535         (s390_init_builtins): New function.
23536         (s390_expand_builtin): New function.
23537         (TARGET_INIT_BUILTINS): Define.
23538         (TARGET_EXPAND_BUILTIN): Define.
23539         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23540         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23541         (s390_alc_comparison): Likewise.
23542         * config/s390/s390-modes.def: Add CCRAWmode.
23543         * config/s390/s390.h (processor_flags): Add PF_TX.
23544         (TARGET_CPU_HTM): Define macro.
23545         (TARGET_HTM): Define macro.
23546         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23547         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23548         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23549         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23550         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23551         (TBEGIN_MASK, TBEGINC_MASK): New constants.
23552         ("*cc_to_int"): Move up.
23553         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23554         constants other than 0.
23555         ("*ccraw_to_int"): New insn and splitter definition.
23556         ("tbegin", "tbegin_nofloat", "tbegin_retry")
23557         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23558         ("tx_assist"): New expander.
23559         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23560         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23561         * config/s390/s390.opt: Add -mhtm option.
23562         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23563         * config/s390/htmxlintrin.h: New file.
23564         * config/s390/htmintrin.h: New file.
23565         * config/s390/s390intrin.h: New file.
23566         * doc/extend.texi: Document htm builtins.
23567         * config.gcc: Add the new header files to extra_headers.
23569 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
23571         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23572         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23574 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
23575             Pat Haugen  <pthaugen@us.ibm.com>
23576             Peter Bergner  <bergner@vnet.ibm.com>
23578         * config/rs6000/power8.md: New.
23579         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23580         setting for power8 entry.
23581         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23582         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23583         test for Power4/Power5 only.
23584         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23585         support.
23586         (force_new_group): Adjust comment.
23587         * config/rs6000/rs6000.md: Include power8.md.
23589 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
23591         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23592         * config/arm/arm-protos.h (arm_max_conditional_execute): New
23593         declaration.
23594         (tune_params): Update comment.
23595         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23596         (arm_max_conditional_execute): New function.
23597         (thumb2_final_prescan_insn): Use max_insn_skipped and
23598         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23600 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
23602         PR tree-optimization/57705
23603         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23604         SSA_NAME step, provided that it is not defined inside the loop.
23605         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23606         (get_initial_def_for_induction): Handle SSA_NAME IV step.
23608 2013-06-25  Martin Jambor  <mjambor@suse.cz>
23610         PR middle-end/57670
23611         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23612         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23613         calls in the dump.
23614         (ipa_note_param_call): Initialize member_ptr flag.
23615         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23616         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23617         (ipa_write_indirect_edge_info): Stream member_ptr flag.
23618         (ipa_read_indirect_edge_info): Likewise.
23620 2013-06-25  Richard Biener  <rguenther@suse.de>
23622         PR middle-end/56977
23623         * passes.c (init_optimization_passes): Move pass_fold_builtins
23624         and pass_dce earlier with -Og.
23626 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
23628         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23629         <BIT_FIELD_REF>: Remove trailing TAB.
23630         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23631         remove blank line.
23633 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23635         PR tree-optimization/57358
23636         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23637         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23638         (ipa_analyze_params_uses): Generate pessimistic info when true.
23640 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23642         PR tree-optimization/57539
23643         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23644         global.inlined_to of the new node to it.  All callers changed.
23645         * ipa-inline-transform.c (clone_inlined_nodes): New variable
23646         inlining_into, pass it to cgraph_clone_node.
23647         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23648         ipa_free_edge_args_substructures.
23649         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23650         rdesc linked list.  Do not assert rdesc edges have inlined caller.
23651         Assert we have found an rdesc in the rdesc list.
23653 2013-06-24  Richard Biener  <rguenther@suse.de>
23655         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23656         (pointer_set_lookup): Declare.
23657         (class pointer_map): New template class implementing a
23658         generic pointer to T map.
23659         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23660         pointer_map<T>::contains, pointer_map<T>::insert,
23661         pointer_map<T>::traverse): New functions.
23662         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23663         (pointer_set_lookup): New function.
23664         (pointer_set_contains): Use pointer_set_lookup.
23665         (pointer_set_insert): Likewise.
23666         (insert_aux): Remove.
23667         (struct pointer_map_t): Embed a pointer_set_t.
23668         (pointer_map_create): Adjust.
23669         (pointer_map_destroy): Likewise.
23670         (pointer_map_contains): Likewise.
23671         (pointer_map_insert): Likewise.
23672         (pointer_map_traverse): Likewise.
23673         * tree-streamer.h (struct streamer_tree_cache_d): Use a
23674         pointer_map<unsigned> instead of a pointer_map_t.
23675         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23676         (streamer_tree_cache_lookup): Likewise.
23677         (streamer_tree_cache_create): Likewise.
23678         (streamer_tree_cache_delete): Likewise.
23679         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23680         pointer_map<unsigned> instead of a pointer_map_t.
23681         (lto_init_tree_ref_encoder): Adjust.
23682         (lto_destroy_tree_ref_encoder): Likewise.
23683         * lto-section-out.c (lto_output_decl_index): Likewise.
23684         (lto_record_function_out_decl_state): Likewise.
23685         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23687 2013-06-24  Richard Biener  <rguenther@suse.de>
23689         PR tree-optimization/57488
23690         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23692 2013-06-24  Alan Modra  <amodra@gmail.com>
23694         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23695         (gen_easy_altivec_constant): Likewise.
23696         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23697         easy_vector_constant_msb): Likewise.
23699 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
23701         PR target/57688
23702         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23703         add missing return true.
23705 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
23707         PR target/52483
23708         * config/sh/predicates.md (general_extend_operand): Invoke
23709         general_movsrc_operand for memory operands.
23710         (general_movsrc_operand): Allow reg+reg addressing, do not use
23711         general_operand for memory operands.
23713 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
23715         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
23716         when current target options does not apply.
23717         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23718         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23719         * config/i386/bmiintrin.h: Pass appropriate target
23720         attributes to header.
23721         * config/i386/mmintrin.h: Ditto.
23722         * config/i386/nmmintrin.h: Ditto.
23723         * config/i386/avx2intrin.h: Ditto.
23724         * config/i386/fxsrintrin.h: Ditto.
23725         * config/i386/tbmintrin.h: Ditto.
23726         * config/i386/xsaveintrin.h: Ditto.
23727         * config/i386/f16cintrin.h: Ditto.
23728         * config/i386/xtestintrin.h: Ditto.
23729         * config/i386/xsaveoptintrin.h: Ditto.
23730         * config/i386/bmi2intrin.h: Ditto.
23731         * config/i386/lzcntintrin.h: Ditto.
23732         * config/i386/smmintrin.h: Ditto.
23733         * config/i386/wmmintrin.h: Ditto.
23734         * config/i386/x86intrin.h: Remove all header include guards.
23735         * config/i386/prfchwintrin.h: Ditto.
23736         * config/i386/pmmintrin.h: Ditto.
23737         * config/i386/tmmintrin.h: Ditto.
23738         * config/i386/xmmintrin.h: Ditto.
23739         * config/i386/popcntintrin.h: Ditto.
23740         * config/i386/rdseedintrin.h: Ditto.
23741         * config/i386/ammintrin.h: Ditto.
23742         * config/i386/emmintrin.h: Ditto.
23743         * config/i386/immintrin.h: Remove all header include guards.
23744         * config/i386/fma4intrin.h: Ditto.
23745         * config/i386/lwpintrin.h: Ditto.
23746         * config/i386/xopintrin.h: Ditto.
23747         * config/i386/ia32intrin.h: Ditto.
23748         * config/i386/avxintrin.h: Ditto.
23749         * config/i386/rtmintrin.h: Ditto.
23750         * config/i386/fmaintrin.h: Ditto.
23751         * config/i386/mm3dnow.h: Ditto.
23753 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
23755         * common/config/i386/i386-common.c: Handle LZCNT.
23757 2013-06-22  Andi Kleen  <ak@linux.intel.com>
23759         * doc/extend.texi: Use __atomic_store_n instead of
23760         __atomic_store in HLE example.
23762 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
23764         * config/sh/sh.c: Remove <cstdlib> workaround.
23766 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23768         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
23770 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23772         * doc/extend.texi: Document that __atomic_clear and
23773           __atomic_test_and_set should only be used with bool.
23775 2013-06-20  Jan Hubicka  <jh@suse.cz>
23777         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23778         types_same_for_odr.
23779         * tree.c (decls_same_for_odr): New function.
23780         (same_for_edr): New function.
23781         (types_same_for_odr): New function.
23782         (get_binfo_at_offset): Use it.
23783         * tree.h (types_same_for_odr): Declare.
23785 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
23786             Jason Merrill  <jason@redhat.com>
23788         * system.h: Include <cstdlib> as well as <stdlib.h>.
23790 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
23792         PR target/57655
23793         * config/i386/i386.c (construct_container): Report error if
23794         long double is used with disabled x87 float returns.
23796 2013-06-20  Jan Hubicka  <jh@suse.cz>
23798         * lto-cgraph.c (input_symtab): Do not set cgraph state.
23800 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
23802         PR rtl-optimization/57425
23803         PR rtl-optimization/57569
23804         * alias.c (write_dependence_p): Remove parameters mem_mode and
23805         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
23806         Changed all callers.
23807         (canon_anti_dependence): Get comments and semantics in sync.
23808         Add parameter mem_canonicalized.  Changed all callers.
23809         * rtl.h (canon_anti_dependence): Update prototype.
23811 2013-06-20  Richard Biener  <rguenther@suse.de>
23813         * data-streamer-in.c (streamer_read_uhwi): Optimize single
23814         byte case, inline streamer_read_uchar and defer section
23815         overrun check.
23817 2013-06-20  Richard Biener  <rguenther@suse.de>
23819         PR tree-optimization/57584
23820         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23821         SSA names into the expanded expression that take part in
23822         abnormal coalescing.
23824 2013-06-19  Sharad Singhai  <singhai@google.com>
23826         * gcov.c (print_usage): Handle new option.
23827         (process_args): Ditto.
23828         (get_gcov_intermediate_filename): New function.
23829         (output_intermediate_file): New function.
23830         (output_gcov_file): New function
23831         (generate_results): Handle new option.
23832         (release_function): Relase demangled name.
23833         (read_graph_file): Handle demangled name.
23834         (output_lines): Ditto.
23835         * doc/gcov.texi: Document gcov intermediate format.
23837 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
23839         PR bootstrap/57604
23840         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23841         (lra_emit_add): Use the functions.  Add comment about Y as an
23842         address segment.
23844 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
23846         PR driver/57652
23847         * collect2.c (collect_atexit): New.
23848         (collect_exit): Delete.
23849         (main): Register collect_atexit with atexit.
23850         (collect_wait): Change collect_exit to exit.
23851         (do_wait): Same.
23852         * collect2.h (collect_exit): Delete.
23853         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23855 2013-06-19  Wei Mi  <wmi@google.com>
23857         PR rtl-optimization/57518
23858         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23859         if regno is used in paradoxical subreg.
23860         (update_equiv_regs): Check pdx_subregs[regno] before
23861         set a reg to be equivalent with a mem.
23863 2013-06-19  Matthias Klose  <doko@ubuntu.com>
23865         PR driver/57651
23866         * file-find.h (find_a_file): Add a mode parameter.
23867         * file-find.c (find_a_file): Likewise.
23868         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23869         with X_OK for the executables.
23870         * collect2.c (main): Call find_a_file with X_OK.
23872 2013-06-19  Steve Ellcey  <sellcey@mips.com>
23874         PR target/56942
23875         * config/mips/mips.md (casesi_internal_mips16_<mode>):
23876         Use NEXT_INSN instead of next_real_insn.
23878 2013-06-19  Jan Hubicka  <jh@suse.cz>
23880         * cgraph.h (const_value_known_p): Replace by ...
23881         (ctor_for_folding): .. this one.
23882         * cgraphunit.c (process_function_and_variable_attributes): Use it.
23883         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23884         * expr.c (expand_expr_real_1): Likewise.
23885         (string_constant): Likewise.
23886         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23887         * ipa.c (process_references): Likewise.
23888         (symtab_remove_unreachable_nodes): Likewise.
23889         * ipa-inline-analysis.c (param_change_prob): Likewise.
23890         * gimple-fold.c (canonicalize_constructor_val): Likewise.
23891         (get_base_constructor): Likwise.
23892         * varpool.c (varpool_remove_node): Likewise.
23893         (varpool_remove_initializer): LIkewise.
23894         (dump_varpool_node): LIkwise.
23895         (const_value_known_p): Rewrite to ...
23896         (ctor_for_folding): ... this one.
23898 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
23900         PR driver/57651
23901         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23902         PERSONALITY in $PATH derived prefixes.
23904 2013-06-19  Jeff Law  <law@redhat.com>
23906         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23907         in comment.
23909         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23910         (simplify_bitwise_binary): Use it to simpify certain binary ops on
23911         booleans.
23913 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
23915         * config/arm/vfp.md: Move VFP instruction classification documentation
23916         to ...
23917         * config/arm/arm.md: ... here.  Update instruction classification
23918         documentation.
23920 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
23922         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23923         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23924         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
23926 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
23928         PR target/57609
23929         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23930         with NEXT_INSN.  Use tablejump_p to check for jump table data
23931         insns.
23933 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
23935         PR c++/56544
23936         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23937         that now in C++ the value is correct per the C++ standards.
23939 2013-06-19  Richard Biener  <rguenther@suse.de>
23941         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23942         for global context.
23944 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23946         Revert:
23947         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23949         PR target/57609
23950         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23951         with next_active_insn.
23953 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
23955         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23956         functions are inlined during failures to flag an error.
23957         * tree-inline.c (expand_call_inline): Allow the error to be flagged
23958         in early inline pass.
23960 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
23962         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23963         in comments.
23965 2013-06-18  Julian Brown  <julian@codesourcery.com>
23967         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23968         Permit virtual register pre-reload if !strict.
23969         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23970         change.
23971         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23972         prototype.
23973         * config/arm/neon.md (movmisalign<mode>): Use
23974         neon_perm_struct_or_reg_operand instead of
23975         neon_struct_or_register_operand.
23976         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23977         neon_permissive_struct_operand instead of neon_struct_operand.
23978         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23979         neon_vector_mem_operand.
23980         * config/arm/predicates.md (neon_struct_operand): Adjust call to
23981         neon_vector_mem_operand.
23982         (neon_permissive_struct_operand): New.
23983         (neon_struct_or_register_operand): Rename to...
23984         (neon_perm_struct_or_reg_operand): This. Adjust call to
23985         neon_vector_mem_operand.
23987 2013-06-18  Richard Biener  <rguenther@suse.de>
23989         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23990         * lto-streamer.h: Include pointer-set.h.
23991         (struct lto_decl_slot): Remove.
23992         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23993         Remove next_index entry.
23994         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23995         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23996         (lto_init_tree_ref_encoder): Adjust.
23997         (lto_destroy_tree_ref_encoder): Likewise.
23998         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23999         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
24000         (lto_output_decl_index): Adjust.
24001         (lto_new_out_decl_state): Likewise.
24002         (lto_record_function_out_decl_state): Likewise.
24003         * lto-streamer-out.c (copy_function): Likewise.
24005 2013-06-18  Richard Biener  <rguenther@suse.de>
24007         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
24008         * cgraphunit.c: Include cfgloop.h.
24009         (init_lowered_empty_function): Initialize the loop tree.
24010         (assemble_thunk): Insert new BBs into loops.
24012 2013-06-18  Richard Biener  <rguenther@suse.de>
24014         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
24015         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
24016         the map from cache entry to cache index optional.
24017         (streamer_tree_cache_replace_tree): Adjust accordingly.
24018         (streamer_tree_cache_append): Likewise.
24019         (streamer_tree_cache_delete): Likewise.
24020         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
24021         streamer cache map from cache entry to cache index.
24022         * lto-streamer-out.c (create_output_block): Adjust.
24024 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
24026         * config/arm/arm.md (attribute "insn"): Move multiplication and
24027         division attributes to...
24028         (attribute "type"): ... here.  Remove mult.
24029         (attribute "mul32"): New attribute.
24030         (attribute "mul64"): Add umaal.
24031         (*arm_mulsi3): Update attributes.
24032         (*arm_mulsi3_v6): Likewise.
24033         (*thumb_mulsi3): Likewise.
24034         (*thumb_mulsi3_v6): Likewise.
24035         (*mulsi3_compare0): Likewise.
24036         (*mulsi3_compare0_v6): Likewise.
24037         (*mulsi_compare0_scratch): Likewise.
24038         (*mulsi_compare0_scratch_v6): Likewise.
24039         (*mulsi3addsi): Likewise.
24040         (*mulsi3addsi_v6): Likewise.
24041         (*mulsi3addsi_compare0): Likewise.
24042         (*mulsi3addsi_compare0_v6): Likewise.
24043         (*mulsi3addsi_compare0_scratch): Likewise.
24044         (*mulsi3addsi_compare0_scratch_v6): Likewise.
24045         (*mulsi3subsi): Likewise.
24046         (*mulsidi3adddi): Likewise.
24047         (*mulsi3addsi_v6): Likewise.
24048         (*mulsidi3adddi_v6): Likewise.
24049         (*mulsidi3_nov6): Likewise.
24050         (*mulsidi3_v6): Likewise.
24051         (*umulsidi3_nov6): Likewise.
24052         (*umulsidi3_v6): Likewise.
24053         (*umulsidi3adddi): Likewise.
24054         (*umulsidi3adddi_v6): Likewise.
24055         (*smulsi3_highpart_nov6): Likewise.
24056         (*smulsi3_highpart_v6): Likewise.
24057         (*umulsi3_highpart_nov6): Likewise.
24058         (*umulsi3_highpart_v6): Likewise.
24059         (mulhisi3): Likewise.
24060         (*mulhisi3tb): Likewise.
24061         (*mulhisi3bt): Likewise.
24062         (*mulhisi3tt): Likewise.
24063         (maddhisi4): Likewise.
24064         (*maddhisi4tb): Likewise.
24065         (*maddhisi4tt): Likewise.
24066         (maddhidi4): Likewise.
24067         (*maddhidi4tb): Likewise.
24068         (*maddhidi4tt): Likewise.
24069         (divsi3): Likewise.
24070         (udivsi3): Likewise.
24071         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
24072         (thumb2_mulsi_short_compare0): Likewise.
24073         (thumb2_mulsi_short_compare0_scratch): Likewise.
24074         * config/arm/arm1020e.md (1020mult1): Update attribute change.
24075         (1020mult2): Likewise.
24076         (1020mult3): Likewise.
24077         (1020mult4): Likewise.
24078         (1020mult5): Likewise.
24079         (1020mult6): Likewise.
24080         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
24081         change.
24082         (cortex_a15_mult64): Likewise.
24083         (cortex_a15_sdiv): Likewise.
24084         (cortex_a15_udiv): Likewise.
24085         * config/arm/arm1026ejs.md (mult1): Update attribute change.
24086         (mult2): Likewise.
24087         (mult3): Likewise.
24088         (mult4): Likewise.
24089         (mult5): Likewise.
24090         (mult6): Likewise.
24091         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
24092         (pj4_ir_div): Likewise.
24093         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
24094         (11_mult2): Likewise.
24095         (11_mult3): Likewise.
24096         (11_mult4): Likewise.
24097         (11_mult5): Likewise.
24098         (11_mult6): Likewise.
24099         (11_mult7): Likewise.
24100         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
24101         (cortex_a8_mla): Likewise.
24102         (cortex_a8_mull): Likewise.
24103         (cortex_a8_smulwy): Likewise.
24104         (cortex_a8_smlald): Likewise.
24105         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
24106         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
24107         (cortex_r4_mul_3): Likewise.
24108         (cortex_r4_mla_4): Likewise.
24109         (cortex_r4_mla_3): Likewise.
24110         (cortex_r4_smlald): Likewise.
24111         (cortex_r4_mull): Likewise.
24112         (cortex_r4_sdiv): Likewise.
24113         (cortex_r4_udiv): Likewise.
24114         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
24115         (cortex_a7_idiv): Likewise.
24116         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
24117         (9_mult2): Likewise.
24118         (9_mult3): Likewise.
24119         (9_mult4): Likewise.
24120         (9_mult5): Likewise.
24121         (9_mult6): Likewise.
24122         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
24123         (cortex_a53_sdiv): Likewise.
24124         (cortex_a53_udiv): Likewise.
24125         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
24126         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
24127         (mp626_mult2): Likewise.
24128         (mp626_mult3): Likewise.
24129         (mp626_mult4): Likewise.
24130         * config/arm/fa526.md (526_mult1): Update attribute change.
24131         (526_mult2): Likewise.
24132         * config/arm/arm-generic.md (mult): Update attribute change.
24133         (mult_ldsched_strongarm): Likewise.
24134         (mult_ldsched): Likewise.
24135         (multi_cycle): Likewise.
24136         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
24137         * config/arm/fa606te.md (606te_mult1): Update attribute change.
24138         (606te_mult2): Likewise.
24139         (606te_mult3): Likewise.
24140         (606te_mult4): Likewise.
24141         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
24142         (cortex_a9_mac16): Likewise.
24143         (cortex_a9_multiply): Likewise.
24144         (cortex_a9_mac): Likewise.
24145         (cortex_a9_multiply_long): Likewise.
24146         * config/arm/fa626te.md (626te_mult1): Update attribute change.
24147         (626te_mult2): Likewise.
24148         (626te_mult3): Likewise.
24149         (626te_mult4): Likewise.
24151 2013-06-18  Richard Biener  <rguenther@suse.de>
24153         PR lto/57334
24154         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
24156 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24158         PR target/57609
24159         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24160         with next_active_insn.
24162 2013-06-18  Alan Modra  <amodra@gmail.com>
24164         * config/rs6000/rs6000.h (enum data_align): New.
24165         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
24166         (DATA_ABI_ALIGNMENT): Define.
24167         (CONSTANT_ALIGNMENT): Correct comment.
24168         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
24169         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
24171 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
24173         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
24174         ATTRIBUTE_UNUSED marking.
24176 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
24178         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
24179         alternative and update.
24180         (aarch64_dup_lanedi): Delete.
24181         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
24182         * config/aarch64/aarch64-simd-builtins.def: Update.
24184 2013-06-17  Richard Biener  <rguenther@suse.de>
24186         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
24187         (lto_input_scc): Declare.
24188         (lto_input_tree_1): Likewise.
24189         (struct lto_stats_d): Add num_tree_bodies_output and
24190         num_pickle_refs_output.
24191         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
24192         (lto_read_tree_1): Split out from ...
24193         (lto_read_tree): ... this.
24194         (lto_input_scc): New function.
24195         (lto_input_tree_1): Split out from ...
24196         (lto_input_tree): ... this.  Handle LTO_tree_scc.
24197         (lto_data_in_create): Create the streamer cache without hashes.
24198         * lto-streamer-out.c (create_output_block): Create the streamer
24199         cache with hashes when not doing WPA.
24200         (lto_write_tree_1): Split out from ...
24201         (lto_write_tree): ... this.
24202         (get_symbol_initial_value): New function.
24203         (lto_output_tree_1): Split out from ...
24204         (lto_output_tree): ... this.  Write trees as series of SCCs
24205         using a DFS walk via DFS_write_tree.
24206         (struct sccs, struct scc_entry): New types.
24207         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
24208         (DFS_write_tree_body): New function.
24209         (DFS_write_tree): Likewise.
24210         (hash_tree): Likewise.
24211         (scc_entry_compare): Likewise.
24212         (hash_scc): Likewise.
24213         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
24214         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
24215         TREE_CHAIN as regular reference.
24216         (streamer_read_integer_cst): Remove.
24217         (streamer_get_pickled_tree): Adjust.
24218         * tree-streamer-out.c (streamer_write_chain): Disable streaming
24219         of DECL_EXTERNALs in BLOCK_VARS for now.
24220         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
24221         reference.
24222         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
24223         Add hash value argument and record that if hashes are recorded
24224         in the cache.
24225         (streamer_tree_cache_insert_1): Adjust.
24226         (streamer_tree_cache_insert): Likewise.
24227         (streamer_tree_cache_insert_at): Rename to ...
24228         (streamer_tree_cache_replace_tree): ... this and adjust.
24229         (streamer_tree_cache_append): Adjust.
24230         (record_common_node): Likewise.
24231         (streamer_tree_cache_create): Add argument whether to
24232         record hash values together with trees.
24233         (streamer_tree_cache_delete): Adjust.
24234         * tree-streamer.h (struct streamer_tree_cache_d): Add
24235         vector of hashes.
24236         (streamer_read_integer_cst): Remove.
24237         (streamer_tree_cache_insert): Adjust.
24238         (streamer_tree_cache_append): Likewise.
24239         (streamer_tree_cache_insert_at): Rename to ...
24240         (streamer_tree_cache_replace_tree): ... this and adjust.
24241         (streamer_tree_cache_create): Add argument whether to record hashes.
24242         (streamer_tree_cache_get): Rename to ...
24243         (streamer_tree_cache_get_tree): ... this.
24244         (streamer_tree_cache_get_hash): New function.
24245         * tree.c (cache_integer_cst): New function.
24246         * tree.h (cache_integer_cst): Declare.
24247         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
24248         * lto-symtab.c (lto_varpool_replace_node): Only release
24249         DECL_INITIAL of non-prevailing decls.
24250         * varpool.c (varpool_remove_initializer): Do not release
24251         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
24253 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
24255         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
24256         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
24257         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
24258         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
24259         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
24260         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
24261         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
24262         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
24263         instead of TARGET_64BIT.
24264         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
24265         Require ISA_HAS_<D>DIV.
24267 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
24269         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
24270         (mips*-*-linux*): Move default with_llsc setting to where other
24271         defaults are set.
24272         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
24273         with_arch block.
24274         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
24275         Likewise.  Remove default with_tune setting.  Move default float
24276         setting to its own block.  Handle with_llsc in the same block as above.
24278 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
24280         PR rtl-optimization/57425
24281         PR rtl-optimization/57569
24282         * alias.c (write_dependence_p): Add new parameters mem_mode,
24283         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
24284         Changed all callers.
24285         (canon_anti_dependence): New function.
24286         * cse.c (check_dependence): Use canon_anti_dependence.
24287         * cselib.c (cselib_invalidate_mem): Likewise.
24288         * rtl.h (canon_anti_dependence): Declare.
24290 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
24292         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
24293         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
24294         ".set mips3" for 64-bit targets.
24296 2013-06-15  Dehao Chen  <dehao@google.com>
24298         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
24299         * gimple-low.c (gimple_check_call_matching_types): Likewise.
24300         (gimple_check_call_args): Likewise.
24301         * value-prof.c (check_ic_target): Likewise.
24302         * ipa-inline.c (early_inliner): Likewise.
24303         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
24304         * cgraph.c (cgraph_create_edge_1): Likewise.
24305         (cgraph_make_edge_direct): Likewise.
24307 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24309         PR target/57615
24310         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
24311         rs6000_output_move_128bit to handle emitting quad memory
24312         operations.  Set attribute length to 8 bytes.
24314 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
24316         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
24317         New pattern.
24318         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
24319         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
24320         (aarch64_<su>mlsl<mode>): Likewise.
24322 2013-06-14  Mike Stump  <mikestump@comcast.net>
24324         * Makefile.in (TARGET_H): Add insn-codes.h.
24326 2013-06-14  Alan Modra  <amodra@gmail.com>
24328         PR middle-end/57134
24329         PR middle-end/57586
24330         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
24331         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
24332         bitfield expansion when EXPAND_MEMORY.
24333         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
24335 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
24337         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24338         test for clearing quad memory on 32-bit later.
24340 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
24342         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
24343         (fold_negate_expr): Likewise.
24344         (fold_real_zero_addition_p): Handle vectors.
24345         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24347 2013-06-14  Alan Modra  <amodra@gmail.com>
24349         * varasm.c (force_const_mem): Revert 2013-06-07 change.
24351 2013-06-13  Jan Hubicka  <jh@suse.cz>
24353         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24354         Local comdats are not externally visible.
24355         * symtab.c (dump_symtab_base): Dump externally visible.
24356         (verify_symtab_base): Verify back links in the symtab hash.
24358 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
24360         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24361         CONVERT_EXPR as equal nodes.
24363 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
24365         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24367 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
24369         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24370         Generalize to complex and vector.
24371         * tree.c (build_all_ones_cst): New function.
24372         * tree.h (build_all_ones_cst): Declare it.
24374 2013-06-13  Alan Modra  <amodra@gmail.com>
24376         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24377         * config/rs6000/rs6000.md (signbittf2): New insn.
24378         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24379         (abstf2_internal, cmptf_internal2): Likewise.
24380         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24382 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
24383             Pat Haugen  <pthaugen@us.ibm.com>
24384             Peter Bergner  <bergner@vnet.ibm.com>
24386         * config/rs6000/rs6000.c (emit_load_locked): Add support for
24387         power8 byte, half-word, and quad-word atomic instructions.
24388         (emit_store_conditional): Likewise.
24389         (rs6000_expand_atomic_compare_and_swap): Likewise.
24390         (rs6000_expand_atomic_op): Likewise.
24392         * config/rs6000/sync.md (larx): Add new modes for power8.
24393         (stcx): Likewise.
24394         (AINT): New mode iterator to include TImode as well as normal
24395         integer modes on power8.
24396         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24397         that VSX registers are not considered.  Use AINT mode iterator
24398         instead of INT1 to allow inclusion of quad word atomic operations
24399         on power8.
24400         (load_locked<mode>): Likewise.
24401         (store_conditional<mode>): Likewise.
24402         (atomic_compare_and_swap<mode>): Likewise.
24403         (atomic_exchange<mode>): Likewise.
24404         (atomic_nand<mode>): Likewise.
24405         (atomic_fetch_<fetchop_name><mode>): Likewise.
24406         (atomic_nand_fetch<mode>): Likewise.
24407         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24408         each type.
24409         (ATOMIC): On power8, add QImode, HImode modes.
24410         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24411         modes that promote to SImode.
24412         (load_lockedti): Convert TImode arguments to PTImode, so that we
24413         get a guaranteed even/odd register pair.
24414         (load_lockedpti): Likewise.
24415         (store_conditionalti): Likewise.
24416         (store_conditionalpti): Likewise.
24418         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24419         atomic load/store instructions.
24420         (HSI): Likewise.
24422 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
24424         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24425         loads.
24426         (insn_count): New attribute, with most cases extracted from...
24427         (length): ...here.  Redefine most cases in terms of insn_count.
24428         (single_insn): Delete.
24429         (can_delay): Use insn_count to check for single instructions.
24430         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24431         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24432         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24433         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24434         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24435         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24436         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24437         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24438         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24439         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24440         rather than "length".
24441         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
24442         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24443         Use "insn_count" rather than "length".
24444         * config/mips/mips-dsp.md
24445         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24446         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24447         length attributes.
24449 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
24451         PR tree-optimization/57361
24452         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24454 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
24456         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24457         to split.
24458         (aarch64_simd_combine<mode>): New instruction expansion.
24459         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24460         function prototype.
24461         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24462         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24464 2013-06-12  Jan Hubicka  <jh@suse.cz>
24466         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24467         decl has when in streaming stage.
24468         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24469         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24471 2013-06-12  Roland Stigge  <stigge@antcom.de>
24473         PR target/57578
24474         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24476 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24478         PR tree-optimization/57537
24479         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24480         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24482 2013-06-12  Richard Biener  <rguenther@suse.de>
24484         * data-streamer.h (streamer_write_char_stream): CSE
24485         obs->current_pointer.
24486         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24487         streamer_write_char_stream manually and optimize the resulting loop.
24488         (streamer_write_hwi_stream): Likewise.
24490 2013-06-12  Jan Hubicka  <jh@suse.cz>
24492         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24493         * cgraph.h (varpool_create_empty_node): Declare.
24494         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24495         duplicated nodes.
24496         * symtab.c (symtab_unregister_node): Be lax about missin entries
24497         in node hash.
24498         (symtab_get_node): Update comment.
24499         * varpool.c (varpool_create_empty_node): Break out from ...
24500         (varpool_node_for_decl): ... here.
24501         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24503 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
24505         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24506         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24507         part.  Use straight-line flow at the end.
24508         <COMPONENT_REF>: Remove superfluous else.
24509         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24511 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24513         PR target/56564
24514         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24515         target hook even for !TREE_PUBLIC decls.  If no resolution info
24516         is available, return false for common and external decls.
24518 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24520         * config/rl78/constraints.md (U): New constraint.
24521         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24522         valloc attribute.
24524 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
24526         PR target/57589
24527         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24528         to allow returning address to AT_PLATFORM name.
24530 2013-06-11  Jan Hubicka  <jh@suse.cz>
24532         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24533         * cgraph.h (symtab_node_base): Add weakref flag.
24534         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24535         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24536         (output_weakrefs): Use weakref flag.
24537         * fold-const.c (simple_operand_p): Handle WEAK.
24538         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24539         * ipa.c (varpool_externally_visible_p): Drop weakref.
24540         (function_and_variable_visibility): Update comment; fix weakref
24541         sanity checks; do not clear DECL_WEAK on them.
24542         * lto-cgraph.c (lto_output_node): update.
24543         (lto_output_varpool_node): Update.
24544         (input_overwrite_node): Update.
24545         (input_node): Update.
24546         (input_varpool_node): Update.
24547         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24548         (lto_symtab_merge_symbols): Add sanity check.
24549         (lto_symtab_prevailing_decl): Do not special case weakrefs.
24550         * passes.c (rest_of_decl_compilation): Set static flag, too.
24551         * symtab.c (dump_symtab_base): Dump weakref.
24552         (verify_symtab_base): Sanity check weakrefs.
24553         (symtab_make_decl_local): Remove duplicated code.
24554         (symtab_alias_ultimate_target): Simplify.
24555         * varpool.c (varpool_create_variable_alias): Set weakref flag.
24557 2013-06-11  Tom de Vries  <tom@codesourcery.com>
24559         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
24560         sequence_vect == NULL.
24562 2013-06-11  DJ Delorie  <dj@redhat.com>
24564         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24565         (rl78_unwind_word_mode): New.
24567 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24569         * final.c (debug_prefix_maps): Make static.
24571 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24573         * function.c (initial_trampoline): Remove stray copy.
24575 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
24577         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24579 2013-06-11  Martin Jambor  <mjambor@suse.cz>
24581         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24582         within bounds at the beginning of the function.
24584 2013-06-11  Alan Modra  <amodra@gmail.com>
24586         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
24587         reporting.
24588         (get_named_section): Don't NULL !DECL_P decl.
24590 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
24592         * doc/invoke.texi (core-avx2): Document.
24593         (slm): Likewise.
24594         (atom): Updated with MOVBE.
24596 2013-06-11  Richard Biener  <rguenther@suse.de>
24598         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24600 2013-06-11  Anton Blanchard  <anton@samba.org>
24602         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24603         correct shift value in little-endian mode.
24605 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
24607         PR target/56564
24608         * varasm.c (get_variable_align): Move #endif to the right place.
24610 2013-06-10  Cary Coutant  <ccoutant@google.com>
24612         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24613         for hash so that hash table traversal order is deterministic.
24615 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24616             Pat Haugen  <pthaugen@us.ibm.com>
24617             Peter Bergner  <bergner@vnet.ibm.com>
24619         * config/rs6000/vector.md (GPR move splitter): Do not split moves
24620         of vectors in GPRS if they are direct moves or quad word load or
24621         store moves.
24623         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24624         declaration.
24625         (direct_move_p): Likewise.
24626         (quad_load_store_p): Likewise.
24628         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24629         classes into bins based on the physical register type.
24630         (reg_class_to_reg_type): Likewise.
24631         (IS_STD_REG_TYPE): Likewise.
24632         (IS_FP_VECT_REG_TYPE): Likewise.
24633         (reload_fpr_gpr): Arrays to determine what insn to use if we can
24634         use direct move instructions.
24635         (reload_gpr_vsx): Likewise.
24636         (reload_vsx_gpr): Likewise.
24637         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24638         information that is a simplification of register classes.  Also
24639         precalculate direct move reload helpers.
24640         (direct_move_p): New function to return true if the operation can
24641         be done as a direct move instruciton.
24642         (quad_load_store_p): New function to return true if the operation
24643         is a quad memory operation.
24644         (rs6000_legitimize_address): If quad memory, only allow register
24645         indirect for TImode addresses.
24646         (rs6000_legitimate_address_p): Likewise.
24647         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24648         (rs6000_reload_register_type): Likewise.
24649         (register_to_reg_type): Return register type.
24650         (rs6000_secondary_reload_simple_move): New helper function for
24651         secondary reload and secondary memory needed to identify anything
24652         that is a simple move, and does not need reloading.
24653         (rs6000_secondary_reload_direct_move): New helper function for
24654         secondary reload to identify cases that can be done with several
24655         instructions via the direct move instructions.
24656         (rs6000_secondary_reload_move): New helper function for secondary
24657         reload to identify moves between register types that can be done.
24658         (rs6000_secondary_reload): Add support for quad memory operations
24659         and for direct move.
24660         (rs6000_secondary_memory_needed): Likewise.
24661         (rs6000_debug_secondary_memory_needed): Change argument names.
24662         (rs6000_output_move_128bit): New function to return the move to
24663         use for 128-bit moves, including knowing about the various
24664         limitations of quad memory operations.
24666         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24667         memory operations.  call rs6000_output_move_128bit for the actual
24668         instruciton(s) to generate.
24669         (vsx_movti_64bit): Likewise.
24671         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24672         (UNSPEC_P8V_MTVSRWZ): Likewise.
24673         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24674         (UNSPEC_P8V_MTVSRD): Likewise.
24675         (UNSPEC_P8V_XXPERMDI): Likewise.
24676         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24677         (UNSPEC_FUSION_GPR): Likewise.
24678         (FMOVE128_GPR): New iterator for direct move.
24679         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24680         (f32_sv): Likewise.
24681         (f32_dm): Likewise.
24682         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24683         loads and direct move instructions.
24684         (zero_extendsidi2_lfiwzx): Likewise.
24685         (extendsidi2_lfiwax): Likewise.
24686         (extendsidi2_nocell): Likewise.
24687         (floatsi<mode>2_lfiwax): Likewise.
24688         (lfiwax): Likewise.
24689         (floatunssi<mode>2_lfiwzx): Likewise.
24690         (lfiwzx): Likewise.
24691         (fix_trunc<mode>_stfiwx): Likewise.
24692         (fixuns_trunc<mode>_stfiwx): Likewise.
24693         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24694         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24695         (parity<mode>2_cmpb): Set length/type attr.
24696         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24697         for 'mr.' to fast_compare.
24698         (bpermd_<mode>): Change type attr to popcnt.
24699         (p8_fmrgow_<mode>): New insns for power8 direct move support.
24700         (p8_mtvsrwz_1): Likewise.
24701         (p8_mtvsrwz_2): Likewise.
24702         (reload_fpr_from_gpr<mode>): Likewise.
24703         (p8_mtvsrd_1): Likewise.
24704         (p8_mtvsrd_2): Likewise.
24705         (p8_xxpermdi_<mode>): Likewise.
24706         (reload_vsx_from_gpr<mode>): Likewise.
24707         (reload_vsx_from_gprsf): Likewise.
24708         (p8_mfvsrd_3_<mode>): LIkewise.
24709         (reload_gpr_from_vsx<mode>): Likewise.
24710         (reload_gpr_from_vsxsf): Likewise.
24711         (p8_mfvsrd_4_disf): Likewise.
24712         (multi-word GPR splits): Do not split direct moves or quad memory
24713         operations.
24715 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
24717         * tree-into-ssa.c (interesting_blocks): Make static.
24719 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
24721         PR target/56564
24722         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24723         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24724         Use DATA_ABI_ALIGNMENT for that case instead if defined.
24725         (get_variable_align): New function.
24726         (get_variable_section, emit_bss, emit_common,
24727         assemble_variable_contents, place_block_symbol): Use
24728         get_variable_align instead of DECL_ALIGN.
24729         (assemble_noswitch_variable): Add align argument, use it
24730         instead of DECL_ALIGN.
24731         (assemble_variable): Adjust caller.  Use get_variable_align
24732         instead of DECL_ALIGN.
24733         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24734         caller.
24735         (DATA_ABI_ALIGNMENT): Define.
24736         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24737         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
24738         opt is false, only return the psABI mandated alignment increase.
24739         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24740         (DATA_ABI_ALIGNMENT): ... this.
24741         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24742         (DATA_ABI_ALIGNMENT): ... this.
24743         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24744         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24745         (DATA_ABI_ALIGNMENT): ... this.
24746         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24747         * doc/tm.texi: Regenerated.
24749 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
24751         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24752         cmp_code to construct REG_EQUAL note.
24754 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
24756         PR target/57568
24757         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24758         that operands[2] doesn't overlap with operands[0].
24760 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
24761             Jan Hubicka  <jh@suse.cz>
24763         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24764         hack to mark symbols as used.
24766 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
24768         PR rtl-optimization/57559
24769         * lra-constraints.c (process_alt_operands): Don't discourage
24770         memory with known offset for offsetable memory constraint.
24771         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24773 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
24775         * varasm.c (struct oc_local_state): Reorder fields.
24776         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24777         and adjust accordingly.
24778         (output_constructor): Reorder initialization code and adjust call to
24779         output_constructor_bitfield.
24781 2013-06-07  Jan Hubicka  <jh@suse.cz>
24783         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24785 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
24787         * tree-object-size.c (unknown): Make const.
24789 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24791         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24792         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24793         for last alternative in the cpu_facility attribute.
24795 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24797         PR target/56315
24798         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24799         (xordi3): Change operand 2 constraint to arm_xordi_operand.
24800         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24801         * config/arm/constraints.md (Dg): New constraint.
24802         * config/arm/neon.md (xordi3_neon): Remove.
24803         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24804         * config/arm/predicates.md (arm_xordi_operand): New predicate.
24806 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24808         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24809         Clean up alternatives.
24811 2013-06-07  Alan Modra  <amodra@gmail.com>
24813         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24814         va_list_gpr_size.
24816 2013-06-07  Alan Modra  <amodra@gmail.com>
24818         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24820 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24822         * config/arm/constraints.md (Df): New constraint.
24823         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24824         Correct length attribute for last two alternatives.
24826 2013-06-07  Alan Modra  <amodra@gmail.com>
24828         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24829         override user -mfp-in-toc.
24830         (offsettable_ok_by_alignment): Consider just the current access
24831         rather than the whole object, unless BLKmode.  Handle
24832         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24833         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24834         for -mcmodel=medium.
24835         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24836         override user -mfp-in-toc or -msum-in-toc.  Default to
24837         -mno-fp-in-toc for -mcmodel=medium.
24839 2013-06-06  DJ Delorie  <dj@redhat.com>
24841         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24842         TARGET_VALID_POINTER_MODE.
24844 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24845             Pat Haugen  <pthaugen@us.ibm.com>
24846             Peter Bergner  <bergner@vnet.ibm.com>
24848         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24849         Document new power8 builtins.
24851         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24852         condition code register, to allow 128-bit logical operations to be
24853         done in the VSX or GPR registers.
24854         (nor<mode>3): Use the canonical form for nor.
24855         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24856         vclz*, and vpopcnt* vector instructions.
24857         (nand<mode>3): Likewise.
24858         (orc<mode>3): Likewise.
24859         (clz<mode>2): LIkewise.
24860         (popcount<mode>2): Likewise.
24862         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24863         that only the GPRs are recognized.
24865         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24866         support for new power8 builtins.
24868         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24869         builtin functions.
24870         (xscvdpspn): Likewise.
24871         (vclz): Likewise.
24872         (vclzb): Likewise.
24873         (vclzh): Likewise.
24874         (vclzw): Likewise.
24875         (vclzd): Likewise.
24876         (vpopcnt): Likewise.
24877         (vpopcntb): Likewise.
24878         (vpopcnth): Likewise.
24879         (vpopcntw): Likewise.
24880         (vpopcntd): Likewise.
24881         (vgbbd): Likewise.
24882         (vmrgew): Likewise.
24883         (vmrgow): Likewise.
24884         (eqv): Likewise.
24885         (eqv_v16qi3): Likewise.
24886         (eqv_v8hi3): Likewise.
24887         (eqv_v4si3): Likewise.
24888         (eqv_v2di3): Likewise.
24889         (eqv_v4sf3): Likewise.
24890         (eqv_v2df3): Likewise.
24891         (nand): Likewise.
24892         (nand_v16qi3): Likewise.
24893         (nand_v8hi3): Likewise.
24894         (nand_v4si3): Likewise.
24895         (nand_v2di3): Likewise.
24896         (nand_v4sf3): Likewise.
24897         (nand_v2df3): Likewise.
24898         (orc): Likewise.
24899         (orc_v16qi3): Likewise.
24900         (orc_v8hi3): Likewise.
24901         (orc_v4si3): Likewise.
24902         (orc_v2di3): Likewise.
24903         (orc_v4sf3): Likewise.
24904         (orc_v2df3): Likewise.
24906         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24907         allow power8 quad mode in 64-bit.
24908         (rs6000_builtin_vectorized_function): Add support to vectorize
24909         ISA 2.07 count leading zeros, population count builtins.
24910         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24911         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24912         (builtin_function_type): Add vgbbd builtin function which takes an
24913         unsigned argument.
24914         (altivec_expand_vec_perm_const): Add support for new power8 merge
24915         instructions.
24917         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24918         that does not include TImdoe for use with 32-bit.
24919         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24920         instructions.
24921         (UNSPEC_VSX_CVDPSPN): Likewise.
24922         (vsx_xscvdpspn): Likewise.
24923         (vsx_xscvspdpn): Likewise.
24924         (vsx_xscvdpspn_scalar): Likewise.
24925         (vsx_xscvspdpn_directmove): Likewise.
24926         (vsx_and<mode>3): Split logical operations into 32-bit and
24927         64-bit. Add support to do logical operations on TImode as well as
24928         VSX vector types.  Allow logical operations to be done in either
24929         VSX registers or in general purpose registers in 64-bit mode.  Add
24930         splitters if GPRs were used. For AND, add clobber of CCmode to
24931         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
24932         encoding.
24933         (vsx_and<mode>3_32bit): Likewise.
24934         (vsx_and<mode>3_64bit): Likewise.
24935         (vsx_ior<mode>3): Likewise.
24936         (vsx_ior<mode>3_32bit): Likewise.
24937         (vsx_ior<mode>3_64bit): Likewise.
24938         (vsx_xor<mode>3): Likewise.
24939         (vsx_xor<mode>3_32bit): Likewise.
24940         (vsx_xor<mode>3_64bit): Likewise.
24941         (vsx_one_cmpl<mode>2): Likewise.
24942         (vsx_one_cmpl<mode>2_32bit): Likewise.
24943         (vsx_one_cmpl<mode>2_64bit): Likewise.
24944         (vsx_nor<mode>3): Likewise.
24945         (vsx_nor<mode>3_32bit): Likewise.
24946         (vsx_nor<mode>3_64bit): Likewise.
24947         (vsx_andc<mode>3): Likewise.
24948         (vsx_andc<mode>3_32bit): Likewise.
24949         (vsx_andc<mode>3_64bit): Likewise.
24950         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24951         and xxlorc instructions.
24952         (vsx_eqv<mode>3_64bit): Likewise.
24953         (vsx_nand<mode>3_32bit): Likewise.
24954         (vsx_nand<mode>3_64bit): Likewise.
24955         (vsx_orc<mode>3_32bit): Likewise.
24956         (vsx_orc<mode>3_64bit): Likewise.
24958         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24960         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24961         instruction.
24962         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24963         (p8_vmrgow): Likewise.
24964         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24965         GPRs to be split under VSX.
24966         (p8v_clz<mode>2): Add power8 count leading zero support.
24967         (p8v_popcount<mode>2): Add power8 population count support.
24968         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24969         support.
24971         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24972         instruction.
24974         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24975         builtin functions.
24976         (vec_nand): Likewise.
24977         (vec_vclz): Likewise.
24978         (vec_vclzb): Likewise.
24979         (vec_vclzd): Likewise.
24980         (vec_vclzh): Likewise.
24981         (vec_vclzw): Likewise.
24982         (vec_vgbbd): Likewise.
24983         (vec_vmrgew): Likewise.
24984         (vec_vmrgow): Likewise.
24985         (vec_vpopcnt): Likewise.
24986         (vec_vpopcntb): Likewise.
24987         (vec_vpopcntd): Likewise.
24988         (vec_vpopcnth): Likewise.
24989         (vec_vpopcntw): Likewise.
24991 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24993         PR rtl-optimization/57468
24994         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24995         spilled pseudos.
24997 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24999         PR rtl-optimization/57459
25000         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
25001         type when setting live regs.
25003 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
25005         * config/s390/s390.opt (mlra): New option.
25006         * config/s390/s390.c (s390_decompose_address): Check displacement
25007         for all registers for LRA.
25008         (s390_secondary_reload): Don't used secondary reloads for LRA.
25009         (s390_lra_p): New function.
25010         (TARGET_LRA_P): Define.
25011         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
25012         of attribute cpu_facility to zarch for the last alternative.
25013         (*cmpmem_short): Ditto.
25015 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
25017         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
25018         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
25019         (arm_expand_prologue): Likewise.
25021 2013-06-06  Teresa Johnson  <tejohnson@google.com>
25023         PR c++/53743
25024         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
25025         as this is now done by redirect_edge_and_branch_force.
25026         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
25027         barriers, and fix interaction with splitting.
25028         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
25029         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
25030         reflect changes made in the routine.
25031         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
25032         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
25033         since this is called in cfglayout mode, and replace partition fixup
25034         with assert as that is now done by force_nonfallthru_and_redirect.
25035         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
25036         already be marked with region crossing note.
25037         (insert_section_boundary_note): Make non-static, gate on flag
25038         has_bb_partition, rewrite to also check for multiple partitions.
25039         (rest_of_handle_reorder_blocks): Remove call to
25040         insert_section_boundary_note, now done later during free_cfg.
25041         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
25042         * bb-reorder.h (insert_section_boundary_note): Declare.
25043         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
25044         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
25045         invoke insert_section_boundary_note.
25046         (try_redirect_by_replacing_jump): Remove unnecessary
25047         check for region crossing note.
25048         (fixup_partition_crossing): New function.
25049         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
25050         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
25051         in non-cfglayout mode.
25052         (force_nonfallthru_and_redirect): Fixup partition boundaries,
25053         remove old code that tried to do this. Emit barrier correctly
25054         when we are in cfglayout mode.
25055         (last_bb_in_partition): New function.
25056         (rtl_split_edge): Correctly fixup partition boundaries.
25057         (commit_one_edge_insertion): Remove old code that tried to
25058         fixup region crossing edge since this is now handled in
25059         split_block, and set up insertion point correctly since
25060         block may now end in a jump.
25061         (verify_hot_cold_block_grouping): Guard against checking when not in
25062         linearized RTL mode.
25063         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
25064         notes.
25065         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
25066         rtl_verify_flow_info, so not called in cfglayout mode.
25067         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
25068         (fixup_reorder_chain): Remove old code that attempted to fixup region
25069         crossing note as this is now handled in force_nonfallthru_and_redirect.
25070         (duplicate_insn_chain): Don't duplicate switch section notes.
25071         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
25072         note.
25073         * basic-block.h (emit_barrier_after_bb): Declare.
25075 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25077         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
25078         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
25079         arm_usatsihi): Adjust alternatives for arm_restrict_it.
25081 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25083         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
25084         where appropriate.
25085         * config/arm/ldmstm.md: Regenerate.
25087 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25089         * config/arm/sync.md (atomic_loaddi_1):
25090         Disable predication for arm_restrict_it.
25091         (arm_load_exclusive<mode>): Likewise.
25092         (arm_load_exclusivesi): Likewise.
25093         (arm_load_exclusivedi): Likewise.
25094         (arm_load_acquire_exclusive<mode>): Likewise.
25095         (arm_load_acquire_exclusivesi): Likewise.
25096         (arm_load_acquire_exclusivedi): Likewise.
25097         (arm_store_exclusive<mode>): Likewise.
25098         (arm_store_exclusive<mode>): Likewise.
25099         (arm_store_release_exclusivedi): Likewise.
25100         (arm_store_release_exclusive<mode>): Likewise.
25102 2013-06-06  Richard Biener  <rguenther@suse.de>
25104         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
25105         after LTO_null.
25106         (lto_tag_is_tree_code_p): Adjust.
25107         (lto_tag_is_gimple_code_p): Likewise.
25108         (lto_gimple_code_to_tag): Likewise.
25109         (lto_tag_to_gimple_code): Likewise.
25110         (lto_tree_code_to_tag): Likewise.
25111         (lto_tag_to_tree_code): Likewise.
25112         * data-streamer.h (streamer_write_hwi_in_range): Use
25113         uhwi streaming to stream the normalized range.
25114         (streamer_read_hwi_in_range): Likewise.
25116 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25118         * config/arm/arm.md (enabled_for_depr_it): New attribute.
25119         (predicable_short_it): Likewise.
25120         (predicated): Likewise.
25121         (enabled): Handle above.
25122         (define_cond_exec): Set predicated attribute to yes.
25124 2013-06-05  Mike Stump  <mikestump@comcast.net>
25126         * gdbinit.in (__FUNCTION__): Add.
25128 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
25130         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
25131         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
25133 2013-06-05  Jan Hubicka  <jh@suse.cz>
25135         * varasm.c (mark_decl_referenced): Revert the removal until targets
25136         are fixed.
25138 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
25140         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
25141         instead of mark_decl_referenced.
25143 2013-06-05  Jan Hubicka  <jh@suse.cz>
25145         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
25146         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
25147         and symtab_used_from_object_file_p.
25148         (cgraph_make_node_local_1): Clear forced_by_abi.
25149         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
25150         * cgraph.h (symtab_node_base): Add forced_by_abi.
25151         (decide_is_variable_needed): Remove.
25152         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
25153         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
25154         (decide_is_symbol_needed): ... this one; handle symbols in general;
25155         always analyze virtuals; honnor forced_by_abi.
25156         (cgraph_finalize_function): Update.
25157         (varpool_finalize_decl): Update.
25158         (symbol_defined_and_needed): Remove.
25159         (analyze_functions): Update.
25160         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25161         output_refs, input_overwrite_node): Handle forced_by_abi.
25162         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
25163         (address_taken_from_non_vtable_p): ... this one.
25164         (comdat_can_be_unshared_p_1): New function.
25165         (cgraph_comdat_can_be_unshared_p): Rename to ...
25166         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
25167         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
25168         (function_and_variable_visibility): Clear forced_by_abi as needed.
25169         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
25170         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
25171         * symtab.c (dump_symtab_base): Dump forced_by_abi.
25172         * varpool.c (decide_is_variable_needed): Remove.
25174 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25176         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
25177         (arm_option_override): Override arm_restrict_it where appropriate.
25178         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
25179         * config/arm/arm.opt (mrestrict-it): New command-line option.
25180         * doc/invoke.texi: Document -mrestrict-it.
25182 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
25184         * tsan.c (tsan_atomic_table): Make const.
25186 2013-06-05  Richard Biener  <rguenther@suse.de>
25188         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
25189         index associated with the tree we are supposed to replace.
25190         * tree-streamer-out.c (pack_ts_base_value_fields): Output
25191         TREE_ASM_WRITTEN as zero for everything but SSA names.
25193 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
25195         * tree-ssa-structalias.c (call_stmt_vars): Make static.
25197 2013-06-04  Jan Hubicka  <jh@suse.cz>
25199         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
25200         (input_node, input_varpool_node): Handle correctly external same
25201         body aliases.
25202         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
25203         nodes at ltrans stage.
25205 2013-06-04  Jan Hubicka  <jh@suse.cz>
25207         * ipa-inline.c (update_caller_keys): Fix availability test.
25208         (update_callee_keys): Likewise.
25209         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
25210         to follow ELF standard.
25212 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
25214         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
25215         (mips64r5900el-*-elf*): New configurations.
25216         * config/mips/mips-cpus.def (r5900): New processor.
25217         * config/mips/mips-tables.opt: Regenerate.
25218         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
25219         (mips_issue_rate): Handle PROCESSOR_R5900.
25220         (mips_reorg_process_insns): Force reorder mode for the R5900.
25221         * config/mips/mips.h (TARGET_MIPS5900): Define.
25222         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
25223         TARGET_MIPS5900.
25224         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
25225         TARGET_MIPS5900.
25226         * config/mips/mips.md (processor): Add r5900.
25227         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
25229 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25231         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
25232         into function to generate MOVI instruction.
25233         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
25234         (aarch64_preferred_simd_mode): Turn into wrapper.
25235         (aarch64_output_scalar_simd_mov_immediate): New function.
25236         * config/aarch64/aarch64-protos.h: Add prototype for above.
25238 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25240         * config/aarch64/aarch64.c (simd_immediate_info): Remove
25241         element_char member.
25242         (sizetochar): Return signed char.
25243         (aarch64_simd_valid_immediate): Remove elchar and other
25244         unnecessary variables.
25245         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
25246         Calculate element_char as required.
25247         * config/aarch64/aarch64-protos.h: Update and move prototype
25248         for aarch64_output_simd_mov_immediate.
25249         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
25250         Update arguments.
25252 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25254         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
25255         information completed by aarch64_simd_valid_immediate.
25256         (aarch64_legitimate_constant_p): Update arguments.
25257         (aarch64_simd_valid_immediate): Work with struct rather than many
25258         pointers.
25259         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
25260         (aarch64_simd_make_constant): Update arguments.
25261         (aarch64_output_simd_mov_immediate): Work with struct rather than
25262         many pointers.  Output immediate directly rather than as operand.
25263         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25264         Update prototype.
25265         * config/aarch64/constraints.md (Dn): Update arguments.
25267 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25269         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
25270         longer static.
25271         (aarch64_simd_immediate_valid_for_move): Remove.
25272         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
25273         (aarch64_simd_make_constant): Update call.
25274         (aarch64_output_simd_mov_immediate): Update call.
25275         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25276         Add prototype.
25277         * config/aarch64/constraints.md (Dn): Update call.
25279 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25281         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
25282         return type to bool for prototype.
25283         (aarch64_legitimate_constant_p): Check for true instead of not -1.
25284         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
25285         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
25287 2013-06-04  Catherine Moore  <clm@codesourcery.com>
25289         * config/mips/mips.opt (meva): New.
25290         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
25291         (ASM_SPEC): Handle -meva.
25292         * doc/invoke.texi (meva):  Document.
25294 2013-06-04  Alan Modra  <amodra@gmail.com>
25296         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
25297         constant output.
25299 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25301         * rtl.def: Add extra fourth optional field to define_cond_exec.
25302         * gensupport.c (process_one_cond_exec): Process attributes from
25303         define_cond_exec.
25304         * doc/md.texi: Document fourth field in define_cond_exec.
25306 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
25308         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
25309         out the processing order as in store_bit_field_1.
25311 2013-06-04  Jan Hubicka  <jh@suse.cz>
25313         PR middle-end/57500
25314         * cgraphunit.c (cgraph_process_same_body_aliases): Create
25315         non-VAR_DECL node if it does not exist yet.
25317 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
25319         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
25320         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
25321         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
25322         target_cpu_default setting.
25324 2013-06-03  Teresa Johnson  <tejohnson@google.com>
25326         * dumpfile.c (opt_info_switch_p): Change -fopt-info
25327         default to -fopt-info=optimized instead of all.
25328         * doc/invoke.texi: Ditto.
25329         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
25330         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
25331         (execute_vect_slp): Emit BB vectorization success under
25332         MSG_OPTIMIZED_LOCATIONS.
25333         * tree-vect-slp.c (vect_slp_transform_bb): Change
25334         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25335         * tree-vect-loop.c (vect_transform_loop): Ditto.
25337 2013-06-03  Jason Merrill  <jason@redhat.com>
25339         PR c++/57415
25340         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25341         Use TARGET_EXPR for C++.
25343 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
25345         PR rtl-optimization/57268
25346         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25347         if DEBUG_INSN_P (insn).
25349         Reapply
25350         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
25352         PR rtl-optimization/57268
25353         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25354         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25356 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25358         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25359         (ix86_avoid_lea_for_addr): Likewise.
25360         (exact_dependency_1): Likewise.
25361         (ix86_adjust_cost): Likewise.
25362         (swap_top_of_ready_list): Fix formatting and !reload_completed check
25363         removed.
25364         (do_reorder_for_imul): Fix typo, formatting and
25365         !reload_completed check removed.
25366         (ix86_sched_reorder): Fix typo and formatting.
25367         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25368         list.
25370 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
25372         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25374 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
25376         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25377         <STRING_CST>: Likewise.
25378         <VECTOR_CST>: Likewise.
25380 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
25381             Mikael Morin  <mikael@gcc.gnu.org>
25383         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25384         * config.in: Regenerated.
25385         * configure: Regenerated.
25387 2013-06-01  Jan Hubicka  <jh@suse.cz>
25389         PR middle-end/57366
25390         * cgraphunit.c (compile): When weakref is not supported,
25391         set up transparent aliases before final output pass.
25392         * varasm.c (assemble_alias): Do not try to do it here.
25394 2013-06-01  Jan Hubicka  <jh@suse.cz>
25396         PR middle-end/57467
25397         * passes.c (for_per_function): Skip unanalyzed functions.
25399 2013-06-01  Jan Hubicka  <jh@suse.cz>
25401         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25402         (lto_symtab_merge_symbols_1): ... this one.
25403         (lto_symtab_merge_cgraph_nodes): Rename to ...
25404         (lto_symtab_merge_symbols): ... this one; simplify.
25405         * cgraph.c (same_body_aliases_done): Rename to ...
25406         (cpp_implicit_aliases_done): ... this one.
25407         (cgraph_create_function_alias): Update.
25408         (cgraph_same_body_alias): Update.
25409         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25410         (verify_edge_corresponds_to_fndecl): Simplify.
25411         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25412         (cgraph_node): Remove same_body_alias.
25413         (varpool_node): Remove alias_of and extra_name_alias.
25414         (same_body_aliases_done): Rename to ..
25415         (cpp_implicit_aliases_done): ... this one.
25416         (symtab_alias_ultimate_target): Add default parameter.
25417         (symtab_resolve_alias): New function.
25418         (fixup_same_cpp_alias_visibility): Declare.
25419         (cgraph_function_node): Add default parameter.
25420         (cgraph_node_asm_name): Likewise.
25421         (cgraph_function_or_thunk_node): Add default parameter; do
25422         not ICE when it is NULL.
25423         (varpool_variable_node): Likewise.
25424         * tree-emutls.c (create_emultls_var): Update.
25425         (ipa_lower_emutls): Update.
25426         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25427         (cgraph_reset_node): Reset alias info.
25428         (cgraph_finalize_function): Update.
25429         (fixup_same_cpp_alias_visibility): Move to symtab.c.
25430         (analyze_function): Simplify.
25431         (cgraph_process_same_body_aliases): Simplify.
25432         (analyze_functions): Fixup same body aliases.
25433         (handle_alias_pairs): Simplify.
25434         (assemble_thunk): Update.
25435         (assemble_thunks_and_aliases): Update.
25436         (output_weakrefs): Rewrite.
25437         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25438         (lto_output_varpool_node): Likewise.
25439         (compute_ltrans_boundary): Remve assert.
25440         (get_alias_symbol): New functoin.
25441         (input_node): Rewrite alias handling.
25442         (input_varpool_node): Likewise.
25443         * ipa-pure-const.c (propagate_pure_const): Fix formating.
25444         * ipa.c (process_references): Handle weakrefs correctly.
25445         (symtab_remove_unreachable_nodes): Likewise.
25446         * trans-mem.c (get_cg_data): Update.
25447         (ipa_tm_create_version_alias): Update.
25448         (ipa_tm_execute): Update.
25449         * symtab.c (dump_symtab_base): Dump aliases.
25450         (verify_symtab_base): Verify aliases.
25451         (symtab_node_availability): New function.
25452         (symtab_alias_ultimate_target): Simplify.
25453         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25454         handle all the fixup cases.
25455         (symtab_resolve_alias): New function.
25456         * passes.c (ipa_write_summaries): Handle weakrefs.
25457         * varpool.c (varpool_analyze_node): Simplify.
25458         (assemble_aliases): Update.
25459         (varpool_create_variable_alias): Simplify.
25460         (varpool_extra_name_alias): Simplify.
25461         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25462         (lto_symtab_merge_symbols): ... this one.
25464 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
25466         Revert
25467         PR rtl-optimization/57268
25468         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25469         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25471 2013-06-01  Tobias Burnus  <burnus@net-b.de>
25473         Partially reverted:
25474         2013-05-31  Tobias Burnus  <burnus@net-b.de>
25476         PR middle-end/57073
25477         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25478         further up.
25480 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
25482         PR rtl-optimization/57268
25483         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25484         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25486 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25488         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25489         unordered comparison operators when -fno-trapping-math is in effect
25490         on the e500.
25491         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25492         and implement unordered comparison operators properly on the e500.
25494 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25496         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25497         for constant scalar integers.
25498         (simplify_relational_operation_1): Likewise.
25500 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
25502         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25503         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
25504         Fix comment.
25506 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25507             Igor Zamyatin  <igor.zamyatin@intel.com>
25509         Silvermont (SLM) architecture performance tuning.
25510         * config/i386/i386.h (enum ix86_tune_indices): Add
25511         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25512         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25514         * config/i386/i386.c (initial_ix86_tune_features)
25515         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25516         (ix86_lea_outperforms): Handle Silvermont tuning.
25517         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25518         call.
25519         (ix86_use_lea_for_mov): Likewise.
25520         (ix86_avoid_lea_for_addr): Likewise.
25521         (ix86_lea_for_add_ok): Likewise.
25522         (exact_dependency_1): New function.
25523         (exact_store_load_dependency): Likewise.
25524         (ix86_adjust_cost): Handle Silvermont tuning.
25525         (do_reoder_for_imul): Likewise.
25526         (swap_top_of_ready_list): New function.
25527         (ix86_sched_reorder): Changed to handle Silvermont tuning.
25529         * config/i386/i386.md (peepholes that split memory operand in fp
25530         converts): New.
25532 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25534         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25535         Remove un-necessary braces.
25537 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25539         * config/aarch64/aarch64.c (aarch64_classify_symbol):
25540         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25542 2013-05-31  Tobias Burnus  <burnus@net-b.de>
25544         PR middle-end/57073
25545         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25547 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25549         PR target/56315
25550         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25551         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25552         * config/arm/neon.md (iordi3_neon): Remove.
25553         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25554         * config/arm/predicates.md (imm_for_neon_logic_operand):
25555         Move to earlier in the file.
25556         (neon_logic_op2): Likewise.
25557         (arm_iordi_operand_neon): New predicate.
25559 2013-05-31  Richard Biener  <rguenther@suse.de>
25561         PR tree-optimization/57478
25562         PR tree-optimization/57453
25563         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25564         are life as well.
25566 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25568         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25569         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25571 2013-05-30  Tobias Burnus  <burnus@net-b.de>
25572             Thomas Koenig  <tkoenig@gcc.gnu.org>
25574         PR middle-end/57073
25575         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25576         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25578 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
25580         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25582 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
25584         * target.def (register_usage_leveling_p): New hook.
25585         * targhooks.c (default_register_usage_leveling_p): New.
25586         * targhooks.h (default_register_usage_leveling_p): New prototype.
25587         * lra-assigns.c (register_usage_leveling_p): Use the hook.
25588         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25589         * doc/tm.texi: Update.
25590         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25592 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
25594         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25595         (*insv_reg<mode>): New define_insn.
25597 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
25599         PR rtl-optimization/57439
25600         * postreload.c (move2add_valid_value_p): Check that we have
25601         a zero subreg_regno_offset when accessing the register in
25602         the requested mode.
25604 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25605             Igor Zamyatin  <igor.zamyatin@intel.com>
25607         Silvermont (SLM) architecture pipeline model, tuning and
25608         insn selection.
25609         * config.gcc: Add slm config options and target.
25611         * config/i386/slm.md: New.
25613         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25615         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
25616         PROCESSOR_SLM.
25617         (ix86_target_macros_internal): Likewise.
25619         * config/i386/i386.c (slm_cost): New cost.
25620         (m_SLM): New macro flag.
25621         (initial_ix86_tune_features): Set m_SLM.
25622         (x86_accumulate_outgoing_args): Likewise.
25623         (x86_arch_always_fancy_math_387): Likewise.
25624         (processor_target_table): Add slm cost.
25625         (cpu_names): Add slm cpu name.
25626         (x86_option_override_internal): Set SLM ISA.
25627         (ix86_issue_rate): New case PROCESSOR_SLM.
25628         (ia32_multipass_dfa_lookahead): Likewise.
25629         (fold_builtin_cpu): Add slm.
25631         * config/i386/i386.h (TARGET_SLM): New target macro.
25632         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25633         (processor_type): Add PROCESSOR_SLM.
25635         * config/i386/i386.md (cpu): Add new value "slm".
25636         (slm.md): Include slm.md.
25638 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
25639             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25641         * config/arm/arm-protos.h: Add and update function protos.
25642         * config/arm/arm.c (use_simple_return_p): New added.
25643         (thumb2_expand_return): Check simple_return flag.
25644         * config/arm/arm.md: Add simple_return and conditional simple_return.
25645         * config/arm/iterators.md: Add iterator for return and simple_return.
25647 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25649         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25650         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25651         (arm_emit_vfp_multi_reg_pop): Likewise.
25652         (thumb2_emit_ldrd_pop): Likewise.
25653         (arm_expand_epilogue): Add misc REG_CFA notes.
25654         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25656 2013-05-29  Lawrence Crowl  <crowl@google.com>
25658         * config/arm/t-arm: Update for below.
25660         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25661         Change type to hash_table.  Update dependent calls and types.
25663         * config/i386/t-cygming: Update for below.
25665         * config/i386/t-interix: Update for below.
25667         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25668         Change type to hash_table.  Update dependent calls and types.
25669         (i386_find_on_wrapper_list::wrappers): Likewise.
25671         * config/ia64/t-ia64: Update for below.
25673         * config/ia64/ia64.c (bundle_state_table):
25674         Change type to hash_table.  Update dependent calls and types.
25676         * config/mips/mips.c (mips_reorg_process_insns::htab):
25677         Change type to hash_table.  Update dependent calls and types.
25679         * config/sol2.c (solaris_comdat_htab):
25680         Change type to hash_table.  Update dependent calls and types.
25682         * config/t-sol2: Update for above.
25684 2013-05-29  Teresa Johnson  <tejohnson@google.com>
25686         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25687         functions are not yet marked as defined.
25689 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
25690             Pat Haugen  <pthaugen@us.ibm.com>
25691             Peter Bergner  <bergner@vnet.ibm.com>
25693         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25694         instructions.
25695         (VEC_A): Likewise.
25696         (VEC_C): Likewise.
25697         (vrotl<mode>3): Likewise.
25698         (vashl<mode>3): Likewise.
25699         (vlshr<mode>3): Likewise.
25700         (vashr<mode>3): Likewise.
25702         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25703         support for power8 V2DI builtins.
25705         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25706         power8 V2DI builtins.
25707         (vupkhsw): Likewise.
25708         (vupklsw): Likewise.
25709         (vaddudm): Likewise.
25710         (vminsd): Likewise.
25711         (vmaxsd): Likewise.
25712         (vminud): Likewise.
25713         (vmaxud): Likewise.
25714         (vpkudum): Likewise.
25715         (vpksdss): Likewise.
25716         (vpkudus): Likewise.
25717         (vpksdus): Likewise.
25718         (vrld): Likewise.
25719         (vsld): Likewise.
25720         (vsrd): Likewise.
25721         (vsrad): Likewise.
25722         (vsubudm): Likewise.
25723         (vcmpequd): Likewise.
25724         (vcmpgtsd): Likewise.
25725         (vcmpgtud): Likewise.
25726         (vcmpequd_p): Likewise.
25727         (vcmpgtsd_p): Likewise.
25728         (vcmpgtud_p): Likewise.
25729         (vupkhsw): Likewise.
25730         (vupklsw): Likewise.
25731         (vaddudm): Likewise.
25732         (vmaxsd): Likewise.
25733         (vmaxud): Likewise.
25734         (vminsd): Likewise.
25735         (vminud): Likewise.
25736         (vpksdss): Likewise.
25737         (vpksdus): Likewise.
25738         (vpkudum): Likewise.
25739         (vpkudus): Likewise.
25740         (vrld): Likewise.
25741         (vsld): Likewise.
25742         (vsrad): Likewise.
25743         (vsrd): Likewise.
25744         (vsubudm): Likewise.
25746         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25747         support for power8 V2DI instructions.
25749         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25750         power8 V2DI instructions.  Combine pack and unpack insns to use an
25751         iterator for each mode.  Check whether a particular mode supports
25752         Altivec instructions instead of just checking TARGET_ALTIVEC.
25753         (UNSPEC_VPKUWUM): Likewise.
25754         (UNSPEC_VPKSHSS): Likewise.
25755         (UNSPEC_VPKSWSS): Likewise.
25756         (UNSPEC_VPKUHUS): Likewise.
25757         (UNSPEC_VPKSHUS): Likewise.
25758         (UNSPEC_VPKUWUS): Likewise.
25759         (UNSPEC_VPKSWUS): Likewise.
25760         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25761         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25762         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25763         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25764         (UNSPEC_VUPKHSB): Likewise.
25765         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25766         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25767         (UNSPEC_VUPKHSH): Likewise.
25768         (UNSPEC_VUPKLSB): Likewise.
25769         (UNSPEC_VUPKLSH): Likewise.
25770         (VI2): Likewise.
25771         (VI_char): Likewise.
25772         (VI_scalar): Likewise.
25773         (VI_unit): Likewise.
25774         (VP): Likewise.
25775         (VP_small): Likewise.
25776         (VP_small_lc): Likewise.
25777         (VU_char): Likewise.
25778         (add<mode>3): Likewise.
25779         (altivec_vaddcuw): Likewise.
25780         (altivec_vaddu<VI_char>s): Likewise.
25781         (altivec_vadds<VI_char>s): Likewise.
25782         (sub<mode>3): Likewise.
25783         (altivec_vsubcuw): Likewise.
25784         (altivec_vsubu<VI_char>s): Likewise.
25785         (altivec_vsubs<VI_char>s): Likewise.
25786         (altivec_vavgs<VI_char>): Likewise.
25787         (altivec_vcmpbfp): Likewise.
25788         (altivec_eq<mode>): Likewise.
25789         (altivec_gt<mode>): Likewise.
25790         (altivec_gtu<mode>): Likewise.
25791         (umax<mode>3): Likewise.
25792         (smax<mode>3): Likewise.
25793         (umin<mode>3): Likewise.
25794         (smin<mode>3): Likewise.
25795         (altivec_vpkuhum): Likewise.
25796         (altivec_vpkuwum): Likewise.
25797         (altivec_vpkshss): Likewise.
25798         (altivec_vpkswss): Likewise.
25799         (altivec_vpkuhus): Likewise.
25800         (altivec_vpkshus): Likewise.
25801         (altivec_vpkuwus): Likewise.
25802         (altivec_vpkswus): Likewise.
25803         (altivec_vpks<VI_char>ss): Likewise.
25804         (altivec_vpks<VI_char>us): Likewise.
25805         (altivec_vpku<VI_char>us): Likewise.
25806         (altivec_vpku<VI_char>um): Likewise.
25807         (altivec_vrl<VI_char>): Likewise.
25808         (altivec_vsl<VI_char>): Likewise.
25809         (altivec_vsr<VI_char>): Likewise.
25810         (altivec_vsra<VI_char>): Likewise.
25811         (altivec_vsldoi_<mode>): Likewise.
25812         (altivec_vupkhsb): Likewise.
25813         (altivec_vupkhs<VU_char>): Likewise.
25814         (altivec_vupkls<VU_char>): Likewise.
25815         (altivec_vupkhsh): Likewise.
25816         (altivec_vupklsb): Likewise.
25817         (altivec_vupklsh): Likewise.
25818         (altivec_vcmpequ<VI_char>_p): Likewise.
25819         (altivec_vcmpgts<VI_char>_p): Likewise.
25820         (altivec_vcmpgtu<VI_char>_p): Likewise.
25821         (abs<mode>2): Likewise.
25822         (vec_unpacks_hi_v16qi): Likewise.
25823         (vec_unpacks_hi_v8hi): Likewise.
25824         (vec_unpacks_lo_v16qi): Likewise.
25825         (vec_unpacks_hi_<VP_small_lc>): Likewise.
25826         (vec_unpacks_lo_v8hi): Likewise.
25827         (vec_unpacks_lo_<VP_small_lc>): Likewise.
25828         (vec_pack_trunc_v8h): Likewise.
25829         (vec_pack_trunc_v4si): Likewise.
25830         (vec_pack_trunc_<mode>): Likewise.
25832         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25833         V2DI builtins.
25834         (vec_vmaxsd): Likewise.
25835         (vec_vmaxud): Likewise.
25836         (vec_vminsd): Likewise.
25837         (vec_vminud): Likewise.
25838         (vec_vpksdss): Likewise.
25839         (vec_vpksdus): Likewise.
25840         (vec_vpkudum): Likewise.
25841         (vec_vpkudus): Likewise.
25842         (vec_vrld): Likewise.
25843         (vec_vsld): Likewise.
25844         (vec_vsrad): Likewise.
25845         (vec_vsrd): Likewise.
25846         (vec_vsubudm): Likewise.
25847         (vec_vupkhsw): Likewise.
25848         (vec_vupklsw): Likewise.
25850 2013-05-29  Jan Hubicka  <jh@suse.cz>
25852         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25853         flags; reorder rest of fields in more consistent way.
25854         (varpool_node): Remove analyzed, finalized and alias.
25855         (cgraph_ndoe): Likewise.
25856         (symtab_alias_ultimate_target): New function.
25857         (cgraph_function_node): Move offline.
25858         (cgraph_reset_node): Declare.
25859         (cgraph_comdat_can_be_unshared_p): Remove.
25860         (varpool_remove_initializer): Declare.
25861         (varpool_first_defined_variable, varpool_next_defined_variable
25862         cgraph_first_defined_function, cgraph_next_defined_function): Update.
25863         (cgraph_function_with_gimple_body_p): Update.
25864         (varpool_all_refs_explicit_p): Update.
25865         (symtab_alias_target): New function.
25866         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25867         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25868         (cgraph_function_or_thunk_node): Simplify using
25869         symtab_alias_ultimate_target.
25870         (varpool_variable_node): Likewise.
25871         * cgraph.c (cgraph_create_function_alias): Update.
25872         (cgraph_add_thunk): Update.
25873         (cgraph_remove_node): Update.
25874         (dump_cgraph_node): Do not dump removed flags.
25875         (cgraph_function_body_availability): Update.
25876         (cgraph_propagate_frequency): Update.
25877         (verify_cgraph_node): Check sanity of local flag.
25878         (cgraph_function_node): Move here from cgraph.h; revamp for
25879         cgraph_function_or_thunk_node.
25880         * lto-symtab.c (lto_varpool_replace_node): Update.
25881         (lto_symtab_resolve_can_prevail_p): Update.
25882         (lto_symtab_merge_cgraph_nodes): Update.
25883         * ipa-cp.c (determine_versionability, initialize_node_lattices,
25884         propagate_constants_accross_call, devirtualization_time_bonus,
25885         ipcp_propagate_stage): Update.
25886         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25887         * ipa-inline-transform.c (clone_inlined_nodes,
25888         preserve_function_body_p): Update.
25889         * ipa-reference.c (propagate): Update.
25890         (write_node_summary_p): Update.
25891         * toplev.c (wrapup_global_declaration_2): Update.
25892         * cgraphunit.c (cgraph_analyze_function): Rename to ...
25893         (analyze_function) ... this one.
25894         (cgraph_process_new_functions): Update.
25895         (cgraph_reset_node): Export.
25896         (cgraph_finalize_function): Update.
25897         (cgraph_add_new_function): Update.
25898         (process_function_and_variable_attributes): Update.
25899         (varpool_finalize_decl): Update.
25900         (symbol_finalized): Remove.
25901         (symbol_finalized_and_needed): Rename to ...
25902         (symbol_defined_and_needed): ... update.
25903         (cgraph_analyze_functions): Update.
25904         (handle_alias_pairs): Update.
25905         (mark_functions_to_output): Update.
25906         (assemble_thunk): Update.
25907         (output_in_order): Update.
25908         (output_weakrefs): Update.
25909         (finalize_compilation_unit): Update.
25910         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25911         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25912         input_node, input_varpool_node): Update.
25913         * dbxout.c (dbxout_expand_expr): Update.
25914         * cgraphclones.c (cgraph_clone_node): Update.
25915         (cgraph_copy_node_for_versioning): Update.
25916         (cgraph_materialize_clone): Update.
25917         (cgraph_materialize_all_clones): Update.
25918         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25919         propagate_pure_const, propagate_nothrow): Update.
25920         * lto-streamer-out.c (lto_output, write_symbol): Update.
25921         * ipa-utils.c (ipa_reverse_postorder): Update.
25922         * ipa-inline.c (can_inline_edge_p): Update.
25923         (update_caller_keys, ipa_inline): Update.
25924         * dwarf2out.c (reference_to_unused,
25925         premark_types_used_by_global_vars_helper): Update.
25926         * tree-eh.c (tree_could_trap_p): Update.
25927         * ipa-split.c (consider_split, execute_split_functions): Update.
25928         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25929         has_addr_references_p): Update; move ahead in file for better
25930         readability.
25931         (process_references): Simplify.
25932         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25933         bodies are removed.
25934         (cgraph_comdat_can_be_unshared_p): Make static.
25935         (cgraph_externally_visible_p): Update.
25936         (varpool_externally_visible_p): Update.
25937         (function_and_variable_visibility): Update.
25938         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25939         ipa_tm_mark_force_output_node): Update.
25940         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25941         estimate_edge_devirt_benefit, inline_generate_summary,
25942         inline_write_summary): Update.
25943         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25944         * ipa-prop.c (ipa_compute_jump_functions): Update.
25945         (ipa_print_node_params, ipa_prop_read_section,
25946         ipa_update_after_lto_read, read_replacements_section): Update.
25947         * varasm.c (mark_decl_referenced): Update.
25948         (assemble_alias, dump_tm_clone_pairs): Update.
25949         * tree-inline.c (copy_bb): Update.
25950         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25951         Update.
25952         * symtab.c (dump_symtab_base): Print new flags.
25953         (verify_symtab_base): Verify new flags.
25954         (symtab_alias_ultimate_target): New function.
25955         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25956         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25957         Update.
25958         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25959         Update.
25960         * i386.c (ix86_get_function_versions_dispatcher,
25961         ix86_generate_version_dispatcher_body): Update.
25962         (fold_builtin_cpu): Use varpool_add_new_variable.
25963         * varpool.c (varpool_remove_initializer): Break out from ...
25964         (varpool_remove_node): ... this one.
25965         (dump_varpool_node, varpool_node_for_asm,
25966         cgraph_variable_initializer_availability, varpool_analyze_node,
25967         varpool_assemble_decl, varpool_remove_unreferenced_decls,
25968         varpool_finalize_named_section_flags, varpool_create_variable_alias):
25969         Update.
25971 2013-05-29  Jan Hubicka  <jh@suse.cz>
25973         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25975 2013-05-29  Easwaran Raman  <eraman@google.com>
25977         PR tree-optimization/57442
25978         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25979         when control exits the main loop.
25981 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
25983         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25984         and RX600.
25985         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25986         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25987         * rx/t-rx: Add rx100 under multi library matches option for nofpu
25988         option.
25990 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25992         PR tree-optimization/57441
25993         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25994         Don't limit size of incr_vec to number of candidates.
25996 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
25998         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25999         and mips16 directories.
26000         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
26001         (MULTILIB_DIRNAMES): Ditto.
26002         (MULTILIB_EXCEPTIONS): Add new exceptions.
26003         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
26004         (MULTILIB_DIRNAMES): Ditto.
26005         (MULTILIB_EXCEPTIONS): Add new exceptions.
26007 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
26008             Marcus Shawcroft  <marcus.shawcroft@arm.com>
26010         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
26011         SYMBOL_TINY_ABSOLUTE.
26012         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
26013         SYMBOL_TINY_ABSOLUTE.
26014         (aarch64_expand_mov_immediate): Likewise.
26015         (aarch64_classify_symbol): Likewise.
26016         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
26017         Permit SYMBOL_TINY_ABSOLUTE.
26018         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
26020 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
26021             Marcus Shawcroft  <marcus.shawcroft@arm.com>
26023         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
26024         Refactor if/switch.  Replace gcc_assert with if.
26026 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26028         * config/i386/i386.c (initial_ix86_tune_features): Enable
26029         FP Reassociation for AMD bdver1 and bdver2.
26031 2013-05-29  Martin Jambor  <mjambor@suse.cz>
26033         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
26034         and IMAGPART_EXPR do not occur within other handled_components.
26036 2013-05-29  Richard Biener  <rguenther@suse.de>
26038         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
26039         access on whether the use is in the BB we currently try to
26040         vectorize.
26041         (vect_bb_vectorization_profitable_p): Pass the BB we currently
26042         vectorize to vect_bb_slp_scalar_cost.
26044 2013-05-29  Richard Biener  <rguenther@suse.de>
26046         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
26047         computing scalar cost offsetted by stmts that are kept live
26048         by scalar uses.
26049         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
26050         for computation of scalar cost.
26052 2013-05-28  Steve Ellcey  <sellcey@mips.com>
26054         * config/mips/mips-cpus.def (mips32r2): Change processor type.
26056 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
26058         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
26059         array notation built-in reduction functions.
26060         * doc/passes.texi (Passes): Added documentation about changes done
26061         for Cilk Plus.
26062         * doc/invoke.texi (C Dialect Options): Added documentation about
26063         the -fcilkplus flag.
26064         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
26065         (BUILTINS_DEF): Depend on cilkplus.def.
26066         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
26067         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
26068         * cilkplus.def: New file.
26070 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
26072         PR rtl-optimization/57439
26073         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
26075 2013-05-28  Easwaran Raman  <eraman@google.com>
26077         PR tree-optimization/57337
26078         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
26079         (find_insert_point): Correctly identify the insertion point
26080         when two statements with the same UID is compared.
26082 2013-05-28  Richard Biener  <rguenther@suse.de>
26084         PR tree-optimization/56787
26085         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
26086         from the list of data references.
26087         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
26088         clobbers.
26089         (vect_analyze_loop_operations): Likewise.
26090         (vect_transform_loop): Remove clobbers.
26092 2013-05-28  Martin Jambor  <mjambor@suse.cz>
26094         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
26095         and REALPART_EXPRs have scalar type.
26097 2013-05-28  Richard Biener  <rguenther@suse.de>
26099         PR tree-optimization/57411
26100         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
26101         virtual operands.
26102         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
26103         virtual operand propagation.
26105 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
26107         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
26108         destination register for bmasksi_vis.
26109         (vector_init_bshuffle): Likewise.
26110         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
26112 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
26114         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
26115         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
26116         mode if the instruction isn't available in the original mode.
26117         * config/sparc/sparc.opt (mfix-ut699): New option.
26118         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
26119         (divdf3): Turn into expander.
26120         (divdf3_nofix): New insn.
26121         (divdf3_fix): Likewise.
26122         (divsf3): Disable if -mfix-ut699.
26123         (sqrtdf2): Turn into expander.
26124         (sqrtdf2_nofix): New insn.
26125         (sqrtdf2_fix): Likewise.
26126         (sqrtsf2): Disable if -mfix-ut699.
26128 2013-05-27  Richard Biener  <rguenther@suse.de>
26130         PR middle-end/57412
26131         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
26132         block for the new loop.
26134 2013-05-27  Richard Biener  <rguenther@suse.de>
26136         PR tree-optimization/57343
26137         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
26138         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
26139         (number_of_iterations_cond): Do not build the folded tree.
26141 2013-05-27  Richard Biener  <rguenther@suse.de>
26143         Revert
26144         PR middle-end/57381
26145         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26146         OEP_CONSTANT_ADDRESS_OF retained.
26148         PR tree-optimization/57417
26149         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
26150         for unchanged base.
26151         (set_ssa_val_to): Compare addresses using
26152         get_addr_base_and_unit_offset.
26154 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
26156         PR rtl-optimization/56833
26157         * postreload.c (move2add_record_mode): New function.
26158         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
26159         (move2add_use_add2_insn): Use move2add_record_sym_value.
26160         (move2add_use_add3_insn): Likewise.
26161         (reload_cse_move2add): Use move2add_valid_value_p and
26162         move2add_record_mode.  Invalidate call-clobbered and REG_INC
26163         affected regs by setting reg_mode to VOIDmode.
26164         (move2add_note_store): Don't pretend the inside of a SUBREG is
26165         the actual destination.  Invalidate single/leading registers by
26166         setting reg_mode to VOIDmode.
26167         Use move2add_record_sym_value, move2add_valid_value_p and
26168         move2add_record_mode.
26170 2013-05-27  Richard Biener  <rguenther@suse.de>
26172         PR tree-optimization/57396
26173         * tree-affine.c (double_int_constant_multiple_p): Properly
26174         return false for val == 0 and div != 0.
26176 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
26178         * config/mips/mips.h: Use #elif in preprocessor conditions.
26180 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
26182         PR target/53916
26183         * config/mips/constraints.md (kl): New constraint.
26184         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
26185         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
26186         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
26187         from LO for MIPS16.
26188         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
26190 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
26192         PR target/55777
26193         * config/mips/mips.c (mips_can_inline_p): New function.
26194         (TARGET_CAN_INLINE_P): Define.
26196 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
26198         * sched-int.h (ds_t, dw_t): Make unsigned int.
26199         Fix documentation that describes how all the ds_t bits are used.
26200         Reserve the last bit for delayed-branch scheduling.
26201         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
26202         (BITS_PER_DEP_WEAK): Fix definition and documentation.
26203         (gen_dep_weak_1): Remove prototype.
26204         * sched-deps.c (get_dep_weak_1): Make static.
26205         * target.def (speculate_insn, needs_block_p, gen_spec_check,
26206         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
26207         * doc/tm.texi: Regenerate.
26208         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
26210 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
26212         PR debug/56950
26213         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
26215 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
26216             Sandra Loosemore  <sandra@codesourcery.com>
26218         * config.gcc (powerpc-*): Allow native for with-cpu.
26220 2013-05-24  Jeff Law  <law@redhat.com>
26222         PR tree-optimization/57124
26223         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
26224         conversion feeding a condition if the range has an overflow
26225         if -fstrict-overflow.  Add warnings for when we do make the
26226         transformation.
26228 2013-05-24  Dehao Chen  <dehao@google.com>
26230         * tree-cfg.c (locus_discrim_map): Fix the typo.
26231         (locus_discrim_hasher): Likewise.
26232         (locus_discrim_hasher::hash): Likewise.
26233         (locus_discrim_hasher::equal): Likewise.
26235 2013-05-24  Martin Jambor  <mjambor@suse.cz>
26237         PR tree-optimization/57294
26238         * cgraph.h (ipa_record_stmt_references): Declare.
26239         * cgraphbuild.c (ipa_record_stmt_references): New function.
26240         (build_cgraph_edges): Use ipa_record_stmt_references.
26241         (rebuild_cgraph_edges): Likewise.
26242         (cgraph_rebuild_references): Likewise.
26243         * ipa-prop.c (ipa_modify_call_arguments): Discard references
26244         associated with the old statement and build references from the
26245         newly built statements.
26246         * ipa-ref.c (ipa_remove_stmt_references): New function.
26247         * ipa-ref.h (ipa_remove_stmt_references): Declare.
26249 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
26251         * lra-constraints.c (emit_spill_move): Use smaller mode for
26252         mem-mem moves.
26253         (check_and_process_move): Consider mem-reg moves for secondary
26254         too.
26255         (curr_insn_transform): Don't lose insns emitted before for
26256         secondary memory moves.
26257         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
26258         reg set up in the current insn.
26260 2013-05-24  Dehao Chen  <dehao@google.com>
26262         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
26263         hash function.
26264         (locus_descrim_hasher::equal): Likewise.
26265         (build_gimple_cfg): New discriminator assignment algorithm.
26266         (make_edges): Likewise.
26267         (next_discriminator_for_locus): Likewise.
26268         (same_line_p): Likewise.
26269         (assign_discriminators): Likewise.
26270         (make_cond_expr_edges): Likewise.
26271         (make_gimple_switch_edges): Likewise.
26272         (make_goto_expr_edges): Likewise.
26273         (make_gimple_asm_edges): Likewise.
26275 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
26277         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
26278         X format specifier to only display bottom 16 bits.
26279         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
26280         immediate to match for operand 2, since it will be masked.
26282 2013-05-24  Richard Biener  <rguenther@suse.de>
26284         PR tree-optimization/57287
26285         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
26286         all SSA names that occur in abnormal PHIs.
26288 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26290         PR tree-ssa/57385
26291         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
26292         that index is not negative.
26294 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
26296         PR rtl-optimization/55177
26297         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
26298         (simplify_byte_swapping_operation): New.
26299         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
26300         (simplify_relational_operation_1): Deal with BSWAP.
26302 2013-05-23  Richard Henderson  <rth@redhat.com>
26304         PR target/56742
26305         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
26306         (ix86_reorg): Call it.
26308 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
26310         PR target/57379
26311         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
26312         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
26313         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
26315 2013-05-23  Christian Bruel  <christian.bruel@st.com>
26317         PR debug/57351
26318         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
26320 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
26321             Marcus Shawcroft  <marcus.shawcroft@arm.com>
26323         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
26324         * config/aarch64/constraints.md (Usa): Remove.
26325         * doc/md.texi (AArch64 Usa): Remove.
26327 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
26328             Marcus Shawcroft  <marcus.shawcroft@arm.com>
26330         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
26331         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
26332         * config/aarch64/predicates.md (aarch64_const_address): Remove.
26333         (aarch64_mov_operand): Use aarch64_mov_operand_p.
26335 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
26337         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
26338         instruction (AdvSIMD).
26339         * config/aarch64/aarch64-builtins.c
26340         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
26341         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
26343 2013-05-23  Martin Jambor  <mjambor@suse.cz>
26345         PR middle-end/57347
26346         * tree.h (contains_bitfld_component_ref_p): Declare.
26347         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26348         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
26349         caller.
26350         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26351         not access a bit-field.  Assert all final offsets are byte-aligned.
26353 2013-05-23  Richard Biener  <rguenther@suse.de>
26355         PR tree-optimization/57380
26356         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26357         least one invariant or re-used load.
26358         * passes.c (init_optimization_passes): Move pass_phiprop before
26359         pass_forwprop.
26361 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
26363         * config/aarch64/aarch64-simd.md
26364         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26366 2013-05-23  Richard Biener  <rguenther@suse.de>
26368         PR middle-end/57381
26369         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26370         OEP_CONSTANT_ADDRESS_OF retained.
26372 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
26374         PR middle-end/57344
26375         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26376         don't lower unit.  Handle unit not being always BITS_PER_WORD.
26378 2013-05-23  Richard Biener  <rguenther@suse.de>
26380         PR rtl-optimization/57341
26381         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26382         instead of true_dependence.
26384 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
26386         * bb-reorder.c (branch_threshold): Make const.
26387         (exec_threshold): Ditto.
26389 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
26390             Pat Haugen  <pthaugen@us.ibm.com>
26391             Peter Bergner  <bergner@vnet.ibm.com>
26393         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26394         documentation for the power8 crypto builtins.
26396         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26398         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26399         macros for defining power8 builtin functions.
26400         (BU_P8V_AV_2): Likewise.
26401         (BU_P8V_AV_P): Likewise.
26402         (BU_P8V_VSX_1): Likewise.
26403         (BU_P8V_OVERLOAD_1): Likewise.
26404         (BU_P8V_OVERLOAD_2): Likewise.
26405         (BU_CRYPTO_1): Likewise.
26406         (BU_CRYPTO_2): Likewise.
26407         (BU_CRYPTO_3): Likewise.
26408         (BU_CRYPTO_OVERLOAD_1): Likewise.
26409         (BU_CRYPTO_OVERLOAD_2): Likewise.
26410         (XSCVSPDP): Fix typo, point to the correct instruction.
26411         (VCIPHER): Add power8 crypto builtins.
26412         (VCIPHERLAST): Likewise.
26413         (VNCIPHER): Likewise.
26414         (VNCIPHERLAST): Likewise.
26415         (VPMSUMB): Likewise.
26416         (VPMSUMH): Likewise.
26417         (VPMSUMW): Likewise.
26418         (VPERMXOR_V2DI): Likewise.
26419         (VPERMXOR_V4SI: Likewise.
26420         (VPERMXOR_V8HI: Likewise.
26421         (VPERMXOR_V16QI: Likewise.
26422         (VSHASIGMAW): Likewise.
26423         (VSHASIGMAD): Likewise.
26424         (VPMSUM): Likewise.
26425         (VPERMXOR): Likewise.
26426         (VSHASIGMA): Likewise.
26428         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26429         __CRYPTO__ if the crypto instructions are available.
26430         (altivec_overloaded_builtins): Add support for overloaded power8
26431         builtins.
26433         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26434         support for power8 crypto builtins.
26435         (builtin_function_type): Likewise.
26436         (altivec_init_builtins): Add support for builtins that take vector
26437         long long (V2DI) arguments.
26439         * config/rs6000/crypto.md: New file, define power8 crypto
26440         instructions.
26442 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
26443             Pat Haugen  <pthaugen@us.ibm.com>
26444             Peter Bergner  <bergner@vnet.ibm.com>
26446         * doc/invoke.texi (Option Summary): Add power8 options.
26447         (RS/6000 and PowerPC Options): Likewise.
26449         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26450         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
26451         wm, wn, wr documentation.
26453         * config/rs6000/constraints.md (wm): New constraint for VSX
26454         registers if direct move instructions are enabled.
26455         (wn): New constraint for no registers.
26456         (wq): New constraint for quad word even GPR registers.
26457         (wr): New constraint if 64-bit instructions are enabled.
26458         (wv): New constraint if power8 vector instructions are enabled.
26459         (wQ): New constraint for quad word memory locations.
26461         * config/rs6000/predicates.md (const_0_to_15_operand): New
26462         constraint for 0..15 for crypto instructions.
26463         (gpc_reg_operand): If VSX allow registers in VSX registers as well
26464         as GPR and floating point registers.
26465         (int_reg_operand): New predicate to match only GPR registers.
26466         (base_reg_operand): New predicate to match base registers.
26467         (quad_int_reg_operand): New predicate to match even GPR registers
26468         for quad memory operations.
26469         (vsx_reg_or_cint_operand): New predicate to allow vector logical
26470         operations in both GPR and VSX registers.
26471         (quad_memory_operand): New predicate for quad memory operations.
26472         (reg_or_indexed_operand): New predicate for direct move support.
26474         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26475         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26476         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26477         (POWERPC_MASKS): Add power8 options.
26478         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26479         various options.
26481         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26482         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26484         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26485         (-mpower8-fusion): New power8 options.
26486         (-mpower8-fusion-sign): Likewise.
26487         (-mpower8-vector): Likewise.
26488         (-mcrypto): Likewise.
26489         (-mdirect-move): Likewise.
26490         (-mquad-memory): Likewise.
26492         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26493         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26494         registers.
26495         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26496         (rs6000_debug_vector_unit): Add p8_vector.
26497         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26498         definitions.  Also print fusion state.
26499         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26500         (rs6000_builtin_mask_calculate): Add power8 builtin support.
26501         (rs6000_option_override_internal): Add support for power8.
26502         (rs6000_common_init_builtins): Add debugging for skipped builtins
26503         if -mdebug=builtin.
26504         (rs6000_adjust_cost): Add power8 support.
26505         (rs6000_issue_rate): Likewise.
26506         (insn_must_be_first_in_group): Likewise.
26507         (insn_must_be_last_in_group): Likewise.
26508         (force_new_group): Likewise.
26509         (rs6000_register_move_cost): Likewise.
26510         (rs6000_opt_masks): Likewise.
26512         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26513         power8 capable assembler, default to power7 options.
26514         (TARGET_DIRECT_MOVE): Likewise.
26515         (TARGET_CRYPTO): Likewise.
26516         (TARGET_P8_VECTOR): Likewise.
26517         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26518         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26519         (VECTOR_MEM_P8_VECTOR_P): Likewise.
26520         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26521         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26522         (TARGET_XSCVDPSPN): Likewise.
26523         (TARGET_XSCVSPDPN): Likewsie.
26524         (TARGET_SYNC_HI_QI): Likewise.
26525         (TARGET_SYNC_TI): Likewise.
26526         (MASK_CRYPTO): Likewise.
26527         (MASK_DIRECT_MOVE): Likewise.
26528         (MASK_P8_FUSION): Likewise.
26529         (MASK_P8_VECTOR): Likewise.
26530         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26531         temporary used by some of the direct move instructions to get two FP
26532         temporary registers does not force creation of a stack frame.
26533         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26534         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26535         that any VSX registers are tieable, even if they are also an
26536         Altivec vector mode.
26537         (r6000_reg_class_enum): Add wm, wr, wv constraints.
26538         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26539         (RS6000_BTM_CRYPTO): Likewise.
26540         (RS6000_BTM_COMMON): Likewise.
26542         * config/rs6000/rs6000.md (cpu attribute): Add power8.
26543         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26544         (enum rs6000_vector): Add power8 vector support.
26546 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26548         PR target/19599
26549         PR target/57340
26550         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26551         (any_sibcall_could_use_r3): this and handle indirect calls.
26552         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26554 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26556         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26558 2013-05-22  Richard Biener  <rguenther@suse.de>
26560         PR middle-end/57349
26561         * profile.c (branch_prob): Do not split blocks that are
26562         abnormally receiving from ECF_RETURNS_TWICE functions.
26564 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26566         * recog.c (offsettable_address_addr_space_p): Fix calculation of
26567         address mode.  Move pointer mode initialization to the same place.
26569 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26571         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26572         while it has any effect.
26574 2013-05-21  Easwaran Raman  <eraman@google.com>
26576         PR tree-optimization/57322
26577         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26578         UID of the statement added to the BB to be 1.
26580 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
26582         PR tree-optimization/57331
26583         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26584         of conversion from pointer type to integral type with integer.
26586 2013-05-21  Martin Jambor  <mjambor@suse.cz>
26588         PR lto/57289
26589         * ipa-prop.c (ipa_read_node_info): Process param_used and
26590         controlled_uses in the same order as when writing.
26592 2013-05-21  Magnus Granberg  <baldrick@free.fr>
26594         PR plugins/56754
26595         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26597 2013-05-21  Richard Biener  <rguenther@suse.de>
26599         PR tree-optimization/57318
26600         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26601         estimate stmts with side-effects as likely eliminated.
26603 2013-05-21  Richard Biener  <rguenther@suse.de>
26605         PR tree-optimization/57330
26606         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26607         preserve the call stmts fntype.
26609 2013-05-21  Richard Biener  <rguenther@suse.de>
26611         PR tree-optimization/57303
26612         * tree-ssa-sink.c (statement_sink_location): Improve killing
26613         stmt detection and properly handle self-assignments.
26615 2013-05-21  Christian Bruel  <christian.bruel@st.com>
26617         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26618         spanning registers. LEAF_REG_REMAP is supported only for contiguous
26619         registers. Set register size out of the PARALLEL loop.
26621 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
26623         PR target/56547
26624         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26625         (*fmasf4, *fmasf4_media): New insns.
26627 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26629         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26630         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26631         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26632         (mips_idiv_insns): Update the comments to say that the returned
26633         instruction counts are in units of BASE_INSN_LENGTH.
26634         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26635         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
26636         using 2 rather than 4 as the length of indirect MIPS16 and
26637         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
26638         length of a NOP.  Don't divide MIPS16 lengths by 2.
26639         (mips16_split_long_branches): Assume a branch is long if the
26640         length is greater than 4 rather than 8.
26641         * config/mips/mips.md (length): Give MIPS16 lengths directly,
26642         rather than multiplying them by 2.  Multiply instruction counts
26643         by BASE_INSN_LENGTH rather than 4.
26644         (*jump_mips16, tls_get_tp_mips16_<mode>)
26645         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26647 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26649         * config/mips/mips.md (extended_mips16): Remove branch case.
26650         (length): Remove duplicated extended_mips16 test.
26652 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26654         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26656 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
26658         * recog.h (Recog_data): Rename to...
26659         (recog_data_d): ...this.
26660         (recog_data): Update accordingly.
26661         * recog.c (recog_data): Likewise.
26662         * reload.c (save_recog_data): Likewise.
26663         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26664         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26666 2013-05-17  Julian Brown  <julian@codesourcery.com>
26668         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26669         found in a REG_EQUAL note, invalidate it.
26671 2013-05-17  Easwaran Raman  <eraman@google.com>
26673         * tree-ssa-reassoc.c (find_insert_point): New function.
26674         (insert_stmt_after): Likewise.
26675         (get_def_stmt): Likewise.
26676         (ensure_ops_are_available): Likewise.
26677         (not_dominated_by): Likewise.
26678         (rewrite_expr_tree): Do not move statements beyond what is
26679         necessary. Remove call to swap_ops_for_binary_stmt...
26680         (reassociate_bb): ... and move it here.
26681         (build_and_add_sum): Assign UIDs for new statements.
26682         (linearize_expr): Likewise.
26683         (do_reassoc): Renumber gimple statement UIDs.
26685 2013-05-17  Jan Hubicka  <jh@suse.cz>
26687         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26688         weakrefs.
26689         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26690         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26691         weakrefs.
26692         (output_weakrefs): Update.
26694 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
26695             Martin Jambor  <mjambor@suse.cz>
26697         PR middle-end/57276
26698         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26699         value that corresponds to the given aggval is found in values vector.
26701 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
26703         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26704         sse, sse2, sse3, ssse3 and sse4a flags to options.
26706 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
26708         * gengtype-state.c: (s_expr_writer): New class, to handle
26709         prettifying of output layout of s-expressions.
26710         (state_writer): New class, to write out gtype.state.
26711         (state_written_type_count): Move this variable into member data of
26712         state_writer.
26713         (s_expr_writer::s_expr_writer): New code: constructor for new class
26714         (state_writer::state_writer(): ditto
26715         (s_expr_writer::write_new_line): New function
26716         (s_expr_writer::write_any_indent): ditto
26717         (s_expr_writer::begin_s_expr): ditto
26718         (s_expr_writer::end_s_expr): ditto
26719         (write_state_fileloc): convert to method of state_writer...
26720         (state_writer:: write_state_fileloc): ...and use methods of
26721         s_expr_writer to write indentation into the gtype.state output file
26722         to visually represent the hierarchical structure of the list
26723         structures
26724         (write_state_fields): ditto, renaming to...
26725         (state_writer::write_state_fields)
26726         (write_state_a_string): ditto, renaming to...
26727         (state_writer::write_state_a_string)
26728         (write_state_string_option): ditto, renaming to...
26729         (state_writer::write_state_string_option)
26730         (write_state_type_option): ditto, renaming to...
26731         (state_writer::write_state_type_option)
26732         (write_state_nested_option): ditto, renaming to...
26733         (state_writer::write_state_nested_option)
26734         (write_state_option): ditto, renaming to...
26735         (state_writer::write_state_option)
26736         (write_state_options): ditto, renaming to...
26737         (state_writer::write_state_options)
26738         (write_state_lang_bitmap): ditto, renaming to...
26739         (state_writer::write_state_lang_bitmap)
26740         (write_state_version): ditto, renaming to...
26741         (state_writer::write_state_version)
26742         (write_state_scalar_type): ditto, renaming to...
26743         (state_writer::write_state_scalar_type)
26744         (write_state_string_type): ditto, renaming to...
26745         (state_writer::write_state_string_type)
26746         (write_state_undefined_type): ditto, renaming to...
26747         (state_writer::write_state_undefined_type)
26748         (write_state_struct_union_type): ditto, renaming to...
26749         (state_writer::write_state_struct_union_type)
26750         (write_state_struct_type): ditto, renaming to...
26751         (state_writer::write_state_struct_type)
26752         (write_state_user_struct_type): ditto, renaming to...
26753         (state_writer::write_state_user_struct_type)
26754         (write_state_lang_struct_type): ditto, renaming to...
26755         (state_writer::write_state_lang_struct_type)
26756         (write_state_param_struct_type): ditto, renaming to...
26757         (state_writer::write_state_param_struct_type)
26758         (write_state_pointer_type): ditto, renaming to...
26759         (state_writer::write_state_pointer_type)
26760         (write_state_array_type): ditto, renaming to...
26761         (state_writer::write_state_array_type)
26762         (write_state_gc_used): ditto, renaming to...
26763         (state_writer::write_state_gc_used)
26764         (write_state_common_type_content): ditto, renaming to...
26765         (state_writer::write_state_common_type_content)
26766         (write_state_type): ditto, renaming to...
26767         (state_writer::write_state_type)
26768         (write_state_pair_list): ditto, renaming to...
26769         (state_writer::write_state_pair_list)
26770         (write_state_pair): ditto, renaming to...
26771         (state_writer::write_state_pair)
26772         (write_state_typedefs): ditto, renaming to...
26773         (state_writer::write_state_typedefs)
26774         (write_state_structures): ditto, renaming to...
26775         (state_writer::write_state_structures)
26776         (write_state_param_structs): ditto, renaming to...
26777         (state_writer::write_state_param_structs)
26778         (write_state_variables): ditto, renaming to...
26779         (state_writer::write_state_variables)
26780         (write_state_srcdir): ditto, renaming to...
26781         (state_writer::write_state_srcdir)
26782         (write_state_files_list): ditto, renaming to...
26783         (state_writer::write_state_files_list)
26784         (write_state_languages): ditto, renaming to...
26785         (state_writer::write_state_languages)
26786         (write_state): create a state_writer instance and use it when
26787         writing out the state file
26789 2013-05-17  Mike Stump  <mikestump@comcast.net>
26791         PR rtl-optimization/57304
26792         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26793         accessing DF_REF_REAL_LOC.
26795 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26797         PR rtl-optimization/57281
26798         PR rtl-optimization/57300
26799         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26800         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26801         what the other splitter did if the registers are dead.
26803 2013-05-17  Richard Biener  <rguenther@suse.de>
26805         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26806         MEM_REF offsets.
26808 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26810         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26811         linking.
26813 2013-05-17  Marek Polacek  <polacek@redhat.com>
26815         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26816         length when doing non-zero store of storing '\0' to '\0'.
26818 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26820         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26821         vect_external_def oprnd1 with loop_vinfo, try to emit
26822         optional cast, negation and and stmts on the loop preheader
26823         edge instead of into the pattern def seq.
26825         PR tree-optimization/57051
26826         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26827         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26829 2013-05-16  Nick Clifton  <nickc@redhat.com>
26831         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26832         (rl78_is_naked_func): New function.
26833         (rl78_expand_prologue): Skip prologue generation for naked functions.
26834         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26835         * doc/extend.texi (naked): Add RL78 to the list of processors
26836         that supports this attribute.
26838 2013-05-16  Jeff Law  <law@redhat.com>
26840         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26842 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26844         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26845         cache parameters using detect_caches_amd also for CYRIX,
26846         NSC and TM2 signatures.
26848 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26849             Dzianis Kahanovich  <mahatma@eu.by>
26851         PR target/45359
26852         PR target/46396
26853         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26854         VIA/Centaur processors and determine their cache parameters
26855         using detect_caches_amd.
26857 2013-05-16  Teresa Johnson  <tejohnson@google.com>
26859         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26860         (rtl_verify_edges): New function.
26861         (rtl_verify_bb_insns): Ditto.
26862         (rtl_verify_bb_pointers): Ditto.
26863         (rtl_verify_bb_insn_chain): Ditto.
26864         (rtl_verify_fallthru): Ditto.
26865         (rtl_verify_bb_layout): Ditto.
26866         (rtl_verify_flow_info_1): Outline checks into new functions.
26867         (rtl_verify_flow_info): Ditto.
26869 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
26871         * cfghooks.c (copy_bbs): Add update_dominance argument.
26872         * cfghooks.h (copy_bbs): Update prototype.
26873         * tree-cfg.c (gimple_duplicate_sese_region):
26874         Add update_dominance argument.
26875         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26876         * tree-ssa-loop-ch.c (copy_loop_headers): Update
26877         gimple_duplicate_sese_region call.
26878         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26879         Update copy_bbs call.
26880         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26881         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26883 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26885         * tree-vectorizer.h (NUM_PATTERNS): Increment.
26886         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26887         vect_recog_rotate_pattern.
26888         (vect_recog_rotate_pattern): New function.
26890 2013-05-16  Jason Merrill  <jason@redhat.com>
26892         * Makefile.in (LLINKER): New variable.
26893         (mostlyclean): Remove link mutex.
26894         * configure.ac: Handle --enable-link-mutex.
26895         * lock-and-run.sh: New script.
26897 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26899         PR target/19599
26900         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26901         for NULL decl.
26903 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26905         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26907 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
26909         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26910         * config/arm/arm.c (next_consecutive_mem): New function.
26911         (gen_movmem_ldrd_strd): Likewise.
26912         * config/arm/arm.md (movmemqi): Update condition and code.
26913         (unaligned_loaddi, unaligned_storedi): New patterns.
26915 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26917         * config.gcc: Obsolete *-*-solaris2.9*.
26918         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26920 2013-05-16  Richard Biener  <rguenther@suse.de>
26922         * passes.c (init_optimization_passes): Move pass_parallelize_loops
26923         earlier, after GRAPHITE transforms and IV canonicalization.
26925 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26927         * omp-low.c (extract_omp_for_data): For collapsed loops,
26928         if at least one of the loops is known at compile time to
26929         iterate zero times, set count to 0.
26930         (expand_omp_regimplify_p): New function.
26931         (expand_omp_for_generic): For collapsed loops, if at least
26932         one of the loops isn't known to iterate at least once,
26933         add runtime check with setting count to 0.
26934         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26935         For unsigned types if it isn't known at compile time that
26936         the loop will iterate at least once, add runtime check to bypass
26937         the whole loop if initial condition isn't true.
26939 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
26941         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26943 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
26945         PR middle-end/57286
26946         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26947         transformations to avoid an infinite loop.
26949 2013-05-16  Marek Polacek  <polacek@redhat.com>
26951         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26953 2013-05-15  Leif Ekblad  <leif@rdos.net>
26955         * config/i386/i386.c (ix86_decompose_address): Use
26956         DEFAULT_TLS_SEG_REG to access TLS segment register.
26957         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26958         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26959         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26961 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
26963         PR target/57260
26964         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26965         sibling calls to functions that would normally be lazily bound,
26966         unless $gp is call-clobbered.
26968 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
26970         * config/i386/i386.c (ix86_option_override_internal): Update
26971         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
26972         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26973         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26974         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26975         of TARGET_3DNOW.
26976         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26978 2013-05-15  Andreas Schwab  <schwab@suse.de>
26980         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26981         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
26982         third operand.
26984 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26986         * loop-unroll.c (report_unroll_peel): Check decision before
26987         emitting unroll/peel message.
26989 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26991         * function.h (has_bb_partition): New rtl_data flag.
26992         (bb_reorder_complete): Ditto.
26993         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26994         instead of flag_reorder_blocks_and_partition.
26995         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26996         with some enhancements.
26997         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26998         * bb-reorder.c (connect_traces): Check for has_bb_partition
26999         instead of flag_reorder_blocks_and_partition.
27000         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
27001         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
27002         verify_hot_cold_block_grouping.
27003         (partition_hot_cold_basic_blocks): Set has_bb_partition.
27005 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27007         PR target/19599
27008         * config/arm/predicates.md (call_insn_operand): New predicate.
27009         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
27010         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
27011         if insn is not a tail call.
27012         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
27013         registers.
27014         * config/arm/arm.h (enum reg_class): New caller save register class.
27015         (REG_CLASS_NAMES): Likewise.
27016         (REG_CLASS_CONTENTS): Likewise.
27017         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
27018         without decls.
27020 2013-05-15  Richard Biener  <rguenther@suse.de>
27022         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
27023         of MSG_OPTIMIZED_LOCATIONS.
27024         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
27025         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
27026         message.
27027         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
27028         of MSG_OPTIMIZED_LOCATIONS.
27029         (execute_vect_slp): Likewise.
27030         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27031         (vect_create_cond_for_alias_checks): Likewise.
27032         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
27033         (vect_recog_widen_mult_pattern): Likewise.
27034         (vect_recog_widen_sum_pattern): Likewise.
27035         (vect_recog_over_widening_pattern): Likewise.
27036         (vect_recog_widen_shift_pattern): Likewise.
27037         (vect_recog_vector_vector_shift_pattern): Likewise.
27038         (vect_recog_divmod_pattern): Likewise.
27039         (vect_recog_mixed_size_cond_pattern): Likewise.
27040         (vect_recog_bool_pattern): Likewise.
27041         (vect_pattern_recog_1): Likewise.
27043 2013-05-15  Martin Jambor  <mjambor@suse.cz>
27045         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
27046         non-functions to builtin_unreachable.
27047         * ipa-inline-transform.c (inline_call): Do not assert estimates were
27048         correct when new direct edges were discovered.
27050 2013-05-15  Martin Jambor  <mjambor@suse.cz>
27052         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
27053         header, print symbol order instead of node uid, print more information
27054         about indirect edge targets.
27055         (ipa_make_edge_direct_to_target): Print symbol order instead of node
27056         uids.
27057         (ipa_make_edge_direct_to_target): Likewise.
27058         (remove_described_reference): Likewise.
27059         (propagate_controlled_uses): Likewise.
27060         (ipa_print_node_params): Also print symbol order.
27061         (ipcp_transform_function): Print symbol order instead of node uids.
27062         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
27063         (cgraph_get_create_real_symbol_node): Likewise.
27064         * ipa-cp.c (print_lattice): Likewise.
27065         (print_all_lattices): Likewise.
27066         (determine_versionability): Likewise.
27067         (initialize_node_lattices): Likewise.
27068         (estimate_local_effects): Likewise.
27069         (update_profiling_info): Likewise.
27070         (create_specialized_node): Likewise.
27071         (perhaps_add_new_callers): Likewise.
27072         (decide_about_value): Likewise.
27073         (decide_whether_version_node): Likewise.
27074         (identify_dead_nodes): Likewise.
27075         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
27076         (dump_inline_summary): Likewise.
27077         (estimate_node_size_and_time): Likewise.
27078         (inline_analyze_function): Likewise.
27079         * ipa-inline.c (report_inline_failed_reason): Likewise.
27080         (want_early_inline_function_p): Likewise.
27081         (edge_badness): Likewise.
27082         (update_edge_key): Likewise.
27083         (inline_small_functions): Likewise.  Add dumping of order to two other
27084         dumps.
27085         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
27086         instead of node uids.
27087         (propagate_pure_const): Likewise.
27088         (propagate_pure_const): Likewise.
27089         * ipa-utils.c (dump_cgraph_node_set): Likewise.
27090         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
27091         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
27092         of node uids.
27093         * tree-pretty-print.c (dump_function_header): Likewise.
27094         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
27095         Print symbol order instead of node uids.
27097 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27099         * config/s390/s390.c (s390_register_move_cost): Don't impose the
27100         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
27102 2013-05-15  Richard Biener  <rguenther@suse.de>
27104         PR tree-optimization/57275
27105         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
27106         return value for fail to do runtime alias checks for gather loads.
27108 2013-05-15  Jan Hubicka  <jh@suse.cz>
27110         PR lto/57038
27111         PR lto/47375
27112         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
27113         weakrefs are not external.
27114         (lto_symtab_merge_decls): Fix thinko when dealing with
27115         non-lto_symtab decls.
27116         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
27117         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
27118         * varpool.c (dump_varpool_node): Dump more flags.
27120 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
27122         * config/i386/i386.c (processor_alias_table): Add instruction
27123         FSGSBASE for AMD bdver3 architecture.
27125 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
27127         * tree.c (warn_deprecated_use): Print file:line using locus color.
27128         * diagnostic.c (diagnostic_report_current_module): Print file:line
27129         and file:line:column using locus color.
27131 2013-05-14  Mike Stump  <mikestump@comcast.net>
27133         * gdbinit.in: Add __null.
27135 2013-05-14  Mike Stump  <mikestump@comcast.net>
27137         * recog.h: Rename struct recog_data to Recog_data.
27138         * recog.c: Likewise.
27139         * reload.c (can_reload_into): Likewise.
27140         * config/picochip/picochip.c: Likewise.
27142 2013-05-14  Mike Stump  <mikestump@comcast.net>
27144         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
27146 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
27148         * resource.h (struct resources): Remove unch_memory member.
27149         (CLEAR_RESOURCE): Don't clear unch_memory.
27150         * resource.c (mark_referenced_resources): Don't set it.
27151         (mark_set_resources): Likewise.
27152         (mark_target_live_regs): Don't clear it.
27153         (init_resource_info): Likewise.
27154         * reorg.c (resource_conflicts_p): Don't compare it.
27155         (redundant_insn): Don't set it.
27157         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
27158         Remove prototypes.
27159         * emit-rtl.c (next_label): Remove unused function.
27160         (skip_consecutive_labels, link_cc0_insns): Move to ...
27161         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
27162         only place where these functions are used, and make them static.
27164 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
27166         * fold-const.c (fold_negate_expr): Handle vectors.
27167         (fold_truth_not_expr): Make it static.
27168         (fold_invert_truthvalue): New static function.
27169         (invert_truthvalue_loc): Handle vectors. Do not call
27170         fold_truth_not_expr directly.
27171         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
27172         <TRUTH_NOT_EXPR>: Do not cast to boolean.
27173         (fold_comparison): Handle vector constants.
27174         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
27175         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
27176         * tree.h (fold_truth_not_expr): Remove declaration.
27178 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
27180         * config/aarch64/aarch64-simd.md
27181         (aarch64_vcond_internal<mode>): Rename to...
27182         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
27183         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
27184         float modes. Clarify all iterator modes.
27185         (vcond<mode><mode>): Use new name for vcond expanders.
27186         (vcond<v_cmp_result><mode>): Likewise.
27187         (vcondu<mode><mode>: Likewise.
27188         * config/aarch64/iterators.md (VDQF_COND): New.
27190 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
27192         PR bootstrap/57266
27193         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
27194         variable for the shift amount. Check that we shift by non-negative
27195         amounts.
27197 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
27199         PR target/42017
27200         * config/arm/arm.h (EPILOGUE_USES): Only return true
27201         for LR_REGNUM after epilogue_completed.
27203 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
27205         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
27206         is error_mark_node.
27208 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27210         PR target/57261
27211         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
27212         and Solaris 11+/x86 with gld.
27213         * configure: Regenerate.
27215 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
27217         * expmed.c (expand_shift_1): Canonicalize rotates by
27218         constant bitsize / 2 to bitsize - 1.
27219         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
27220         case ROTATERT>: Likewise.
27222         Revert:
27223         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
27225         * config/i386/i386.md (rotateinv): New code attr.
27226         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27227         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27228         roll $31, %eax, etc.
27230 2013-05-14  Richard Biener  <rguenther@suse.de>
27232         PR middle-end/57235
27233         * tree-eh.c (sink_clobbers): Give up for successors with
27234         multiple predecessors and no virtual uses.
27236 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
27238         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
27239         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
27241 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
27243         PR middle-end/57251
27244         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
27245         the case when both op0 and op1 have VOIDmode.
27247 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27249         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
27250         in multiply-accumulate mode.
27252 2013-05-13  Guozhi Wei  <carrot@google.com>
27254         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
27256 2013-05-13  Kai Tietz  <ktietz@redhat.com>
27258         PR target/56975
27259         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
27260         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
27261         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
27262         * config/i386/i386.c (ix86_option_override_internal): Likewise.
27263         (ix86_expand_prologue): Likewise.
27264         (ix86_expand_split_stack_prologue): Likewise.
27265         (legitimate_pic_address_disp_p): Likewise.
27266         (legitimize_pic_address): Likewise.
27267         (legitimize_tls_address): Likewise.
27268         (legitimize_pe_coff_symbol): Likewise.
27269         (output_pic_addr_const): Likewise.
27270         (construct_plt_address): Likewise.
27271         (ix86_expand_call): Likewise.
27272         (x86_output_mi_thunk): Likewise.
27273         (x86_function_profiler): Likewise.
27275 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
27277         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
27278         similar switch cases.
27279         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
27280         (aarch64_simd_mov_to_<mode>low): Delete.
27281         (aarch64_simd_mov_to_<mode>high): Delete.
27282         (move_lo_quad_<mode>): Add w<-r alternative.
27283         (aarch64_simd_move_hi_quad_<mode>): Likewise.
27284         (aarch64_simd_mov_from_*): Update type attribute.
27285         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
27286         statement.
27288 2013-05-13  Jan Hubicka  <jh@suse.cz>
27290         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
27291         * config/i386/i386.c (ix86_compute_frame_layout,
27292         ix86_expand_epilogue, emit_i387_cw_initialization,
27293         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
27294         ix86_local_alignment): Fix use of size/speed predicates.
27296 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
27298         PR tree-optimization/45216
27299         PR tree-optimization/57157
27300         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
27301         the (-Y) & (B - 1) variant if OP is |.
27302         * expmed.c (expand_shift_1): For rotations by const0_rtx just
27303         return shifted.  Use (-op1) & (prec - 1) as other_amount
27304         instead of prec - op1.
27306 2013-05-13  Martin Jambor  <mjambor@suse.cz>
27308         PR middle-end/42371
27309         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
27310         (ipa_constant_data): New type.
27311         (ipa_jump_func): Use ipa_constant_data to hold information about
27312         constant jump functions.
27313         (ipa_get_jf_constant): Adjust to jump function type changes.
27314         (ipa_get_jf_constant_rdesc): New function.
27315         (ipa_param_descriptor): New field controlled_uses.
27316         (ipa_get_controlled_uses): New function.
27317         (ipa_set_controlled_uses): Likewise.
27318         * ipa-ref.h (ipa_find_reference): Declare.
27319         * ipa-prop.c (ipa_cst_ref_desc): New type.
27320         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
27321         changes.
27322         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
27323         New parameter cs.  Adjust all callers.
27324         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
27325         (remove_described_reference): New function.
27326         (jfunc_rdesc_usable): Likewise.
27327         (try_make_edge_direct_simple_call): Decrement controlled use count,
27328         attempt to remove reference if it hits zero.
27329         (combine_controlled_uses_counters): New function.
27330         (propagate_controlled_uses): Likewise.
27331         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
27332         (ipa_edge_duplication_hook): Duplicate reference descriptions.
27333         (ipa_print_node_params): Print described use counter.
27334         (ipa_write_jump_function): Adjust to jump function type changes.
27335         (ipa_read_jump_function): New parameter CS, pass it to
27336         ipa_set_jf_constant.  Adjust caller.
27337         (ipa_write_node_info): Stream controlled use count
27338         (ipa_read_node_info): Likewise.
27339         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
27340         asserting.
27341         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
27342         count.  Remove cloning-added reference if it reaches zero.
27343         * ipa-ref.c (ipa_find_reference): New function.
27345 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
27347         * config/i386/i386.c (processor_target_table): Modified default
27348         alignment values for AMD BD and BT architectures.
27350 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
27352         * tree-vect-generic.c (uniform_vector_p): Move ...
27353         * tree.c (uniform_vector_p): ... here.
27354         * tree.h (uniform_vector_p): Declare it.
27355         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27356         into a scalar.
27358 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
27360         PR tree-optimization/57230
27361         * tree-ssa-strlen.c (handle_char_store): Record length for
27362         array store from STRING_CST.
27364         PR tree-optimization/57230
27365         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27366         check.
27368 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
27370         * config/epiphany/epiphany.c (epiphany_init): Check size of
27371         NUM_MODES_FOR_MODE_SWITCHING.
27372         (epiphany_expand_prologue):
27373         Remove CONFIG_REGNUM initial value handling code.
27374         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27375         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27376         (emit_set_fp_mode, epiphany_mode_after): Likewise.
27377         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27378         Don't return 1 for FP_MODE_NONE.
27379         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27380         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27381         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27382         * config/epiphany/epiphany.md (save_config): New pattern.
27384 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
27386         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27388 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
27390         * config/i386/i386.md (memory): Handle sseishft1.
27391         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27392         (*vec_extractv2di_1): Ditto.
27394 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
27396         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27397         saved registers.
27399 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27401         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27402         Add mthumb/march=armv7-a multilib.
27403         Add mthumb/march=armv7-r multilib.
27404         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27406 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
27408         * config/v850/t-rtems: Add more multilibs.
27410 2013-05-10  Richard Biener  <rguenther@suse.de>
27412         PR tree-optimization/57214
27413         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27414         not propagate from SSA names that occur in abnormal PHI nodes.
27416 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
27418         * stor-layout.c (element_precision): New function.
27419         * machmode.h (element_precision): Declare it.
27420         * tree.c (build_minus_one_cst): New function.
27421         (element_precision): Likewise.
27422         * tree.h (build_minus_one_cst): Declare new function.
27423         (element_precision): Likewise.
27424         * fold-const.c (operand_equal_p): Use element_precision.
27425         (fold_binary_loc): Handle vector types.
27426         * convert.c (convert_to_integer): Use element_precision.
27427         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27428         separately.
27430 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
27432         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27433         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27434         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27435         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27436         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27437         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27438         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27439         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27440         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27441         (Uuw8): New constraints.
27442         (Usb4): Move into alphabetical order.
27443         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27444         (sd8_operand, ub8_operand, uw8_operand): New predicates.
27445         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27446         previously unnamed patterns.
27447         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27448         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27449         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27450         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27451         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
27452         of specific lengths.
27454 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
27456         * config/i386/i386.md (rotateinv): New code attr.
27457         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27458         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27459         roll $31, %eax, etc.
27461         PR tree-optimization/45216
27462         PR tree-optimization/57157
27463         * tree-ssa-forwprop.c (simplify_rotate): New function.
27464         (ssa_forward_propagate_and_combine): Call it.
27466 2013-05-10  Richard Biener  <rguenther@suse.de>
27468         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27469         disable peeling when we version for aliasing.
27470         (vector_alignment_reachable_p): Honor explicit user alignment.
27471         (vect_supportable_dr_alignment): Likewise.
27472         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27473         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27474         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27475         then peeling to arrange for the cost-model check to come first.
27477 2013-05-10  Alan Modra  <amodra@gmail.com>
27479         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27480         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27481         * configure: Regenerate.
27483 2013-05-10  Alan Modra  <amodra@gmail.com>
27485         PR target/55033
27486         * varasm.c (default_elf_select_section): Move !DECL_P check..
27487         (get_named_section): ..to here before calling get_section_name.
27488         Adjust assertion.
27489         (default_section_type_flags): Add DECL_P check.
27490         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27491         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27493 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
27495         * config/epiphany/epiphany.c (epiphany_expand_prologue):
27496         When using gen_stack_adjust_str with a register offset, add a
27497         REG_FRAME_RELATED_EXPR note.
27499 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
27501         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27502         (*vec_extractv4si_zext_mem): Ditto.
27503         (*vec_extractv2di): Add 0->x and x->x alternatives.
27504         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27505         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27507 2013-05-09  Jason Merrill  <jason@redhat.com>
27509         N3639 C++1y VLA support
27510         * gimplify.c (gimplify_vla_decl): Don't touch an existing
27511         DECL_VALUE_EXPR.
27513         * tree.c (build_constructor_va): New.
27514         * tree.h: Declare it.
27516 2013-05-09  Martin Jambor  <mjambor@suse.cz>
27518         PR lto/57084
27519         * gimple-fold.c (canonicalize_constructor_val): Call
27520         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27522 2013-05-09  Jan Hubicka  <jh@suse.cz>
27523             Richard Biener  <rguenther@suse.de>
27525         PR lto/54095
27526         * symtab.c (symtab_make_decl_local): Do not add private names.
27528 2013-05-09  Jan Hubicka  <jh@suse.cz>
27530         PR lto/54095
27531         * symtab.c (insert_to_assembler_name_hash): Handle clones.
27532         (unlink_from_assembler_name_hash): Likewise.
27533         (symtab_prevail_in_asm_name_hash, symtab_register_node,
27534         symtab_unregister_node, symtab_initialize_asm_name_hash,
27535         change_decl_assembler_name): Update.
27537 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
27539         * config/aarch64/aarch64.md: New movtf split.
27540         (*movtf_aarch64): Update.
27541         (aarch64_movdi_tilow): Handle TF modes and rename to
27542         aarch64_movdi_<mode>low.
27543         (aarch64_movdi_tihigh): Handle TF modes and rename to
27544         aarch64_movdi_<mode>high
27545         (aarch64_movtihigh_di): Handle TF modes and rename to
27546         aarch64_mov<mode>high_di
27547         (aarch64_movtilow_di): Handle TF modes and rename to
27548         aarch64_mov<mode>low_di
27549         (aarch64_movtilow_tilow): Remove spurious whitespace.
27550         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27551         splits.
27552         (aarch64_print_operand): Update.
27554 2013-05-09  Alan Modra  <amodra@gmail.com>
27556         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27557         powerpc64le.
27558         * configure: Regenerate.
27560 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27562         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27563         splitter preparation statements.
27564         * config/i386/sse.md (*vec_extract* splitters): Ditto.
27565         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27566         adjust_address_nv.
27568 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27570         * gimple-ssa-strength-reduction.c (count_candidates): Change
27571         return value to int.
27572         (analyze_candidates_and_replace): Change type of length to int.
27574 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27576         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27577         (*vec_extract<mode>): Use VI12_128 mode iterator.
27578         (*vec_extract<mode>_mem): Ditto.
27579         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27580         attribute.
27582 2013-05-08  Diego Novillo  <dnovillo@google.com>
27584         PR bootstrap/54659
27586         Revert:
27587         2012-08-17  Diego Novillo  <dnovillo@google.com>
27589         PR bootstrap/54281
27590         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27591         * config.in: Regenerate.
27592         * configure: Regenerate.
27593         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27595 2013-05-08  Jan Hubicka  <jh@suse.cz>
27597         PR lto/54095
27598         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27599         * cgraph.h (symtab_node_base): Add unique_name.
27600         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27601         input_overwrite_node, input_varpool_node): Stream unique_name.
27602         * cgraphclones.c (cgraph_create_virtual_clone,
27603         cgraph_function_versioning): Set unique_name.
27604         * ipa.c (function_and_variable_visibility): Set unique_name.
27606 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27608         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27609         (alloc_cand_and_find_basis): Restrict conditional candidate
27610         processing to CAND_MULTs.
27612 2013-05-08  Jan Hubicka  <jh@suse.cz>
27614         PR lto/54095
27615         lto-symtab.c (lto_symtab_symbol_p): New function.
27616         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27617         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27618         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27619         Skip static symbols.
27621 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
27623         PR tree-optimization/57200
27624         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27625         Only call inform if the preceding warning_at returns true.
27627 2013-05-07  Han Shen  <shenhan@google.com>
27629         * cfgexpand.c (record_or_union_type_has_array_p): New function.
27630         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27631         * common.opt (fstack-protector-strong): New option.
27632         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27633         * doc/invoke.texi (Optimization Options): Document
27634         "-fstack-protector-strong".
27635         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27637 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27639         * config/mips/mips.c (mips_machine_reorg2): Return 0.
27641 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
27643         * ira.c (update_equiv_regs): Add insn having equiv memory even if
27644         it is not lhs of the insn.
27645         (setup_reg_equiv): Remove insn having equiv memory which it is not
27646         lhs of the insn.
27647         * lra-constraints.c (process_address): Try to improve generation
27648         code for address base + disp.
27649         (lra_constraints): Make correct the code for checking insn setting
27650         up backward equivalence.  Remove insn only if it is in the init
27651         insn list.
27652         * lra-eliminations.c (update_reg_eliminate): Change return value.
27653         (lra_eliminate): Use the result.
27655 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
27657         * config/i386/sse.md (ssescalarnummask): New mode attribute.
27658         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27659         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27660         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27661         register target operands.
27662         (*vec_extractv8hi_sse2): New pattern.
27663         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27664         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27665         (*vec_extract<mode>_mem): New insn and split pattern.
27667 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
27669         * config/arm/arm.c (arm_asan_shadow_offset): New function.
27670         (TARGET_ASAN_SHADOW_OFFSET): Define.
27671         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27672         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27674 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27676         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27677         (incr_vec_index): Return -1 if increment not found.
27678         (create_add_on_incoming_edge): Assert if increment not found.
27679         (record_increment): Limit number of increments recorded.
27680         (all_phi_incrs_profitable): Return false if an increment not found.
27681         (replace_profitable_candidates): Don't process increments that were
27682         not recorded.
27683         (analyze_candidates_and_replace): Limit size of incr_vec.
27685 2013-05-07  Richard Biener  <rguenther@suse.de>
27687         * calls.c (special_function_p): setjmp-like functions are leaf.
27688         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27689         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27691 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
27693         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27694         (aarch64_simd_mov<mode>): New expander.
27695         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27696         (aarch64_simd_mov_to_<mode>high): Likewise.
27697         (aarch64_simd_mov_from_<mode>low): Likewise.
27698         (aarch64_simd_mov_from_<mode>high): Likewise.
27699         (aarch64_dup_lane<mode>): Update.
27700         (aarch64_dup_lanedi): New instruction pattern.
27701         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27702         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27704 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27706         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27707         (replace_mult_candidate): Remove unnecessary argument; remove
27708         unnecessary parameter from call to introduce_cast_before_cand.
27709         (replace_unconditional_candidate): Remove unnecessary parameter
27710         from call to replace_mult_candidate.
27711         (replace_conditional_candidate): Likewise.
27712         (insert_initializers): Use make_temp_ssa_name.
27713         (introduce_cast_before_cand): Remove unnecessary argument; use
27714         make_temp_ssa_name.
27715         (replace_one_candidate): Remove unnecessary argument; remove
27716         unnecessary parameter from calls to introduce_cast_before_cand.
27717         (replace_profitable_candidates): Remove unnecessary parameters
27718         from calls to replace_one_candidate.
27720 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27722         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27723         phi def as possibly hiding a basis for a CAND_ADD whose operands
27724         have been commuted in the analysis.
27725         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27727 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27729         * config/aarch64/aarch64.md
27730         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27731         shift value between 0-4.
27733 2013-05-07  Richard Biener  <rguenther@suse.de>
27735         * double-int.h (rshift): New overload.
27736         * double-int.c (rshift): New function.
27737         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27738         (create_reference_ops_from_ref): Remove.
27739         (vn_reference_insert): Use shared ops for constructing the
27740         reference and copy it.
27742 2013-05-07  Richard Biener  <rguenther@suse.de>
27744         PR middle-end/57190
27745         * tree-eh.c (sink_clobbers): Properly propagate
27746         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27748 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
27750         PR tree-optimization/57149
27751         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27752         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27753         collect_phi_def_edges, execute_late_warn_uninitialized): Use
27754         uninit_undefined_value_p instead of ssa_undefined_value_p.
27756         PR debug/57184
27757         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27758         for modifier == EXPAND_INITIALIZER.
27760 2013-05-07  Anton Blanchard  <anton@samba.org>
27762         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27763         for powerpc64 little endian.
27764         * configure: Regenerate.
27766 2013-05-06  Graham Stott  <grahams@btinternet.com>
27768         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27769         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27770         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27771         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27773 2013-05-06  Graham Stott  <grahams@btinternet.com>
27775         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27776         codes which allow non-lvalues.
27778 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
27780         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27781         components are all 1s.
27782         (integer_minus_onep): New function.
27783         * tree.h (integer_minus_onep): Declare it.
27784         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27785         integer_minus_onep instead of integer_all_onesp.
27787 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27789         PR target/52933
27790         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27791         variations of these patterns.
27793 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27795         * config/i386/i386.md (isa): Add x64_sse4 member.
27796         (enabled): Handle x64_sse4.
27797         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27798         instruction for 64bit SSE4_1 targets.  Update insn attributes.
27799         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27800         instruction for SSE4_1 targets.  Update insn attributes.
27801         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27802         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27803         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27804         const_1 selector.
27805         (*vec_extractv4si): Rename from *sse4_1_pextrd.
27806         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27807         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27809 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27811         PR target/57108
27812         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27814 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
27816         * final.c (do_assembler_dialects): Don't handle curly braces and
27817         vertical bar escaped by % as dialect delimiters.
27818         (output_asm_insn): Print curly braces and vertical bar if escaped
27819         by % and ASSEMBLER_DIALECT defined.
27820         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27821         * doc/tm.texi: Regenerated.
27823 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27825         * config/mips/mips.c: Include tree-pass.h.
27826         (mips_reorg): Split in pre- and post-dbr_schedule parts.
27827         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27828         (pass_mips_machine_reorg2): New machine specific pass.
27829         (insert_pass_mips_machine_reorg2): New pass plugin definition.
27830         (mips_option_override): Register the new pass.
27831         * rtl.h (cleanup_barriers): Remove prototype.
27832         (dbr_schedule): Likewise.
27833         * jump.c (cleanup_barriers): Make static.
27834         * reorg.c (dbr_schedule): Likewise.
27836 2013-05-06  Richard Biener  <rguenther@suse.de>
27838         PR tree-optimization/57185
27839         * tree-parloops.c (add_field_for_reduction): Handle anonymous
27840         SSA names properly.
27842 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27844         PR target/57106
27845         * config/i386/i386.c (add_parameter_dependencies): Add dependence
27846         between "first_arg" and "insn", not "last" and "insn".
27848 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27850         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27851         (find_candidates_in_block): Re-enable slsr_process_phi.
27852         (create_phi_basis): Fix double counting of candidate adjustment.
27854 2013-05-06  Richard Biener  <rguenther@suse.de>
27856         PR middle-end/57147
27857         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27858         the edge is also fallthru, preserve it and just clear the
27859         abnormal flag.
27860         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27861         also complex, preserve that and just clear the fallthru flag.
27862         * tree-inline.c (update_ssa_across_abnormal_edges): Also
27863         update virtual operands.
27865 2013-05-06  Alan Modra  <amodra@gmail.com>
27867         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27868         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27869         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27870         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27871         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27872         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27874 2013-05-06  Alan Modra  <amodra@gmail.com>
27876         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27877         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
27878         (DEFAULT_ASM_ENDIAN): Define.
27879         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27880         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27881         Update -K PIC clause from sysv4.h.
27882         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27883         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27885 2013-05-06  Alan Modra  <amodra@gmail.com>
27887         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27888         twice for little-endian.
27889         (ashrdi3_no_power, ashrdi3): Support little-endian.
27891 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27893         PR target/55303
27894         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27895         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27896         related expanders.
27897         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27898         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27899         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27900         New predicates.
27902 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
27903             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27905         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27906         * config/pa/pa.opt: Make mbig-switch a no-op.
27907         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27908         (CASE_VECTOR_MODE): Always return SImode.
27909         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27910         for the !TARGET_BIG_SWITCH case.
27911         * config/pa/pa-linux.h: Likewise.
27912         * config/pa/pa-openbsd.h: Likewise.
27913         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27914         * config/pa/pa.md (short_jump): Remove define_insn.
27915         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27916         (casesi0): Remove define_insn.
27917         (type): Remove btable_branch.
27918         (pa_combine_type): Likewise.
27919         (in_nullified_branch_delay): Likewise.
27920         (in_call_delay): Likewise.
27921         (define_delay): Likewise.
27922         (define_insn_reservation "Z3"): Likewise.
27923         (define_insn_reservation "Z4"): Likewise.
27924         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27925         (pa_adjust_insn_length): Remove adjustment for btable branches.
27926         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27927         and mno-big-switch
27929 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
27931         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27932         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27933         Add m->r,x alternatives.
27934         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27935         splitters using SWI48x mode iterator.
27936         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
27937         TARGET_64BIT.  Add m->x alternative.
27938         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27939         Add o->x alternative.  Enable for TARGET_SSE.
27940         (sse_storeq): Remove expander.
27941         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27942         with memory input operand.
27943         (*vec_extractv2di_1 splitter): New.
27944         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27945         * config/i386/i386.md (ssevecmodelower): New mode attribute.
27947 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27949         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
27950         (INT_LOWPART): Delete.
27951         (extract_MB): Adjust.
27952         (extract_ME): Adjust.
27953         (print_operand): Adjust.
27955 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27957         * config/rs6000/predicates.md (reg_or_add_cint_operand,
27958         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27959         (reg_or_logical_cint_operand, easy_fp_constant,
27960         logical_const_operand): Delete "CONST_DOUBLE" case.
27961         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27962         "HOST_BITS_PER_WIDE_INT == 64" test.
27963         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
27964         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27965         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27966         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27967         test.
27968         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27969         CONST_DOUBLE DImode/VOIDmode case.
27970         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27971         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27972         CONST_DOUBLE VOIDmode case.
27973         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27974         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27975         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27976         Delete CONST_DOUBLE case.
27977         (splitters for mov FMOVE64 const_double): Delete
27978         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27979         "HOST_BITS_PER_WIDE_INT >= 64" test.
27980         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27981         case.
27982         (mov DI const_double): Delete.
27984 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
27986         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27987         on op shows all bits zero in mode of a lowpart subreg, return zero.
27989 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27991         PR target/57150
27992         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27993         to save TFmode registers and DImode to save TImode registers for
27994         caller save operations.
27995         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27996         mark being partially clobbered since they only use the first
27997         double word.
27999         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
28000         and TDmode only use the upper 64-bits of each VSX register.
28002 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28004         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
28005         (find_candidates_in_block): Disable slsr_process_phi.
28007 2013-05-03  Guozhi Wei  <carrot@google.com>
28009         * coverage.c (coverage_obj_init): Move the construction of gcov
28010         constructor to ...
28011         (build_init_ctor): ... here.
28013 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28015         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
28016         (slsr_cand_d): Redefine def_phi.
28017         (stride_status, phi_adjust_status, count_phis_status): New enums.
28018         (find_phi_def): New.
28019         (find_basis_for_base_expr): New.
28020         (find_basis_for_candidate): Handle hidden bases.
28021         (alloc_cand_and_find_basis): Handle phi candidates.
28022         (slsr_process_phi): New.
28023         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
28024         (create_mul_imm_cand): Likewise.
28025         (create_add_ssa_cand): Exclude phi base candidates.
28026         (create_add_imm_cand): Likewise.
28027         (slsr_process_cast): Likewise.
28028         (slsr_process_copy): Likewise.
28029         (find_candidates_in_block): Handle phi candidates.
28030         (dump_candidate): Likewise.
28031         (unconditional_cands): Delete.
28032         (unconditional_cands_with_known_stride_p): Delete.
28033         (phi_dependent_cand_p): New.
28034         (cand_increment): Handle phi-dependent candidates.
28035         (replace_dependent): Delete.
28036         (replace_mult_candidate): New.
28037         (replace_unconditional_candidate): New.
28038         (incr_vec_index): Move to avoid forward reference.
28039         (create_add_on_incoming_edge): New.
28040         (create_phi_basis): New.
28041         (replace_dependents): Delete.
28042         (replace_conditional_candidate): New.
28043         (phi_add_costs): New.
28044         (replace_uncond_cands_and_profitable_phis): New.
28045         (record_increment): Handle phi adjustments.
28046         (record_phi_increments): New.
28047         (record_increments): Handle phi adjustments.
28048         (phi_incr_cost): New.
28049         (lowest_cost_path): Handle phis.
28050         (total_savings): Likewise.
28051         (analyze_increments): Likewise.
28052         (ncd_with_phi): New.
28053         (ncd_of_cand_and_phis): New.
28054         (nearest_common_dominator_for_cands): Handle phi increments.
28055         (all_phi_incrs_profitable): New.
28056         (replace_profitable_candidates): Handle phi-dependent candidates.
28057         (analyze_candidates_and_replace): Likewise.
28059 2013-05-03  Teresa Johnson  <tejohnson@google.com>
28061         PR bootstrap/57154
28062         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
28063         do not exceed REG_BR_PROB_BASE.
28065 2013-05-03  Jeff Law  <law@redhat.com>
28067         PR tree-optimization/57144
28068         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
28069         operand of the condition will bit into the new type when eliminating
28070         a cast feeding a condition.
28072 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
28074         PR rtl-optimization/57130
28075         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
28076         of COMPARE as in_code to the recursive call if needed.
28078 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
28080         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
28081         (enabled): Handle new members.
28082         * config/i386/sse.md (*vec_concatv2si): Merge from
28083         *vec_concatv2si_sse2 and vec_concatv2si_sse.
28084         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
28086 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
28088         PR tree-optimization/57027
28089         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
28090         for fnms opportunity, check we got the prerequisite kind
28091         of tree / gimple before using accessor functions.
28093 2013-05-03  Richard Biener  <rguenther@suse.de>
28095         * double-int.h (lshift): New overload without precision
28096         and arith argument.
28097         (operator *=, operator +=, operator -=): Move ...
28098         * double-int.c (operator *=, operator +=, operator -=): ... here
28099         and implement more efficiently.
28100         (mul_double_with_sign): Remove.
28101         (lshift_double): Adjust to take unsinged shift argument, push
28102         dispatching code to callers.
28103         (mul_double_wide_with_sign): Add early out for callers that
28104         are not interested in high parts or overflow.
28105         (lshift): New function.
28106         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
28107         dispatch code here.
28108         (lrotate, rrotate): Use logical shifts.
28109         * expr.c (get_inner_reference): Use lshift.
28110         * fixed-value.c (do_fixed_divide): Likewise.
28111         * tree-dfa.c (get_ref_base_and_extent): Likewise.
28112         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
28113         (indirect_refs_may_alias_p): Likewise.
28114         (stmt_kills_ref_p_1): Likewise.
28116 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
28118         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
28120 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
28122         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
28123         scalar form of FABD instruction.
28125 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
28127         * lra-constraints.c (process_alt_operands): Add checking alt
28128         number to choose the best alternative.
28130 2013-05-02  Richard Biener  <rguenther@suse.de>
28132         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
28133         bitmap and its handling.
28134         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
28136 2013-05-02  Richard Biener  <rguenther@suse.de>
28138         PR middle-end/57140
28139         * tree-inline.c (copy_loops): Properly handle removed loops.
28140         (copy_cfg_body): Mark destination loops for fixup if source
28141         loops needed fixup.
28143 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
28145         PR target/56732
28146         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
28147         generating simple_return for naked functions.
28149 2013-05-02  Martin Jambor  <mjambor@suse.cz>
28151         PR middle-end/56988
28152         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
28153         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
28154         flags match.
28155         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
28156         ipa_agg_replacement_value structures.
28157         (known_aggs_to_agg_replacement_list): Likewise.
28158         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
28159         (read_agg_replacement_chain): Likewise.
28160         (ipcp_transform_function): Also check that by_ref flags match.
28162 2013-05-02  Richard Biener  <rguenther@suse.de>
28164         * graphds.h (struct graph): Add obstack member.
28165         * graphds.c (new_graph): Initialize obstack and allocate
28166         vertices from it.
28167         (add_edge): Allocate edge from the obstack.
28168         (free_graph): Free the obstack instead of all edges and vertices.
28170 2013-05-02  Teresa Johnson  <tejohnson@google.com>
28172         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
28173         divides.
28174         * cfg.c (update_bb_profile_for_threading): Ditto.
28175         * tree-inline.c (copy_bb): Ditto.
28176         (copy_edges_for_bb): Ditto.
28177         (initialize_cfun): Ditto.
28178         (copy_cfg_body): Ditto.
28179         (expand_call_inline): Ditto.
28180         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
28181         (estimate_node_size_and_time): Ditto.
28182         (inline_merge_summary): Ditto.
28183         * cgraphclones.c (cgraph_clone_edge): Ditto.
28184         (cgraph_clone_node): Ditto.
28185         * sched-rgn.c (compute_dom_prob_ps): Ditto.
28186         (compute_trg_info): Ditto.
28188 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
28190         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
28191         S reg when fp attribute set.
28192         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
28194 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
28196         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
28197         New pattern.
28198         (*and_one_cmplsi3_compare0_uxtw): Likewise.
28199         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
28200         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
28202 2013-05-02  Richard Biener  <rguenther@suse.de>
28204         * tree-scalar-evolution.c (scev_info_hasher): Remove.
28205         (struct instantiate_cache_entry): New type.
28206         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
28207         (struct instantiate_cache_type): New type.
28208         (set_instantiated_value, get_instantiated_value): Remove.
28209         (get_instantiated_value_entry): New function.
28210         (instantiate_scev_name): Use the new cache and adjust.
28211         (instantiate_scev_poly): Adjust.
28212         (instantiate_scev_binary): Likewise.
28213         (instantiate_array_ref): Likewise.
28214         (instantiate_scev_convert): Likewise.
28215         (instantiate_scev_not): Likewise.
28216         (instantiate_scev_3): Likewise.
28217         (instantiate_scev_2): Likewise.
28218         (instantiate_scev_r): Likewise.
28219         (instantiate_scev): Likewise.
28220         (resolve_mixers): Likewise.
28222 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
28224         PR target/57091
28225         * lra-constraints.c (best_small_class_operands_num): Remove.
28226         (process_alt_operands): Remove small_class_operands_num.  Take
28227         small classes operands into losers and only if the operand is not
28228         matched.  Modify debugging output.
28229         (curr_insn_transform): Remove best_small_class_operands_num.
28230         Print insn name.
28232 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28234         * config/aarch64/aarch64-builtins.c
28235         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
28236         * config/aarch64/aarch64-simd-builtins.def
28237         (reduc_splus_): Add new modes.
28238         (reduc_uplus_): New.
28239         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
28240         (reduc_uplus_v4sf): Likewise.
28241         (reduc_splus_v4sf): Likewise.
28242         (aarch64_addv<mode>): Likewise.
28243         (reduc_uplus_<mode>): Likewise.
28244         (reduc_splus_<mode>): Likewise.
28245         (aarch64_addvv2di): Likewise.
28246         (reduc_uplus_v2di): Likewise.
28247         (reduc_splus_v2di): Likewise.
28248         (aarch64_addvv2si): Likewise.
28249         (reduc_uplus_v2si): Likewise.
28250         (reduc_splus_v2si): Likewise.
28251         (reduc_<sur>plus_<mode>): New.
28252         (reduc_<sur>plus_v2di): Likewise.
28253         (reduc_<sur>plus_v2si): Likewise.
28254         (reduc_<sur>plus_v4sf): Likewise.
28255         (aarch64_addpv4sf): Likewise.
28256         * config/aarch64/arm_neon.h
28257         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
28258         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
28259         add UNSPEC_SADDV, UNSPEC_UADDV.
28260         (SUADDV): New.
28261         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
28263 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28265         * config/aarch64/arm_neon.h
28266         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
28268 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28270         * config/aarch64/aarch64-builtins
28271         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
28273 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28275         * config/aarch64/aarch64-simd-builtins.def
28276         (reduc_smax_): New.
28277         (reduc_smin_): Likewise.
28278         (reduc_umax_): Likewise.
28279         (reduc_umin_): Likewise.
28280         (reduc_smax_nan_): Likewise.
28281         (reduc_smin_nan_): Likewise.
28282         (fmax): Remove.
28283         (fmin): Likewise.
28284         (smax): Update for V2SF, V4SF and V2DF modes.
28285         (smin): Likewise.
28286         (smax_nan): New.
28287         (smin_nan): Likewise.
28288         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
28289         (<su><maxmin><mode>3): ...This, refactor.
28290         (s<maxmin><mode>3): New.
28291         (<maxmin_uns><mode>3): Likewise.
28292         (reduc_<maxmin_uns>_<mode>): Refactor.
28293         (reduc_<maxmin_uns>_v4sf): Likewise.
28294         (reduc_<maxmin_uns>_v2si): Likewise.
28295         (aarch64_<fmaxmin><mode>: Remove.
28296         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
28297         new builtin names.
28298         (vmin<q>_f<32,64>): Likewise.
28299         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28300         (FMAXMIN): New.
28301         (su): Add mappings for smax, smin, umax, umin.
28302         (maxmin): New.
28303         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28304         (FMAXMIN): Rename as...
28305         (FMAXMIN_UNS): ...This.
28306         (maxminv): Remove.
28307         (fmaxminv): Likewise.
28308         (fmaxmin): Likewise.
28309         (maxmin_uns): New.
28310         (maxmin_uns_op): Likewise.
28312 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28314         * config/aarch64/arm_neon.h
28315         (vac<ge, gt><sd>_f<32, 64>): Rename to...
28316         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
28317         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
28319 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28321         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
28322         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
28324 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28326         * config/aarch64/aarch64-simd.md
28327         (vcond<mode>_internal): Handle special cases for constant masks.
28328         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
28329         (vcondu<mode><mode>): Likewise.
28330         (vcond<v_cmp_result><mode>): New.
28332 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28334         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
28335         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
28336         * config/aarch64/aarch64-simd-builtins.def
28337         (cmeq): Update to BUILTIN_VALLDI.
28338         (cmgt): Likewise.
28339         (cmge): Likewise.
28340         (cmle): Likewise.
28341         (cmlt): Likewise.
28342         * config/aarch64/arm_neon.h
28343         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
28344         to builtins or C as appropriate.
28346 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28348         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28349         (cmgeu): ...This.
28350         (cmhi): Rename to...
28351         (cmgtu): ...This.
28352         * config/aarch64/aarch64-simd.md
28353         (simd_mode): Add SF.
28354         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28355         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28356         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28357         (cstore<mode>_neg): ...This.
28358         * config/aarch64/iterators.md
28359         (VALLF): new.
28360         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28361         (COMPARISONS): New.
28362         (UCOMPARISONS): Likewise.
28363         (optab): Add missing comparisons.
28364         (n_optab): New.
28365         (cmp_1): Likewise.
28366         (cmp_2): Likewise.
28367         (CMP): Likewise.
28368         (cmp): Remove.
28369         (VCMP_S): Likewise.
28370         (VCMP_U): Likewise.
28371         (V_cmp_result): Add DF, SF modes.
28372         (v_cmp_result): Likewise.
28373         (v): Likewise.
28374         (vmtype): Likewise.
28375         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28377 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
28379         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28380         define_insn to define_insn_and_split.
28381         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28382         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28383         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28384         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28385         (thumb2_negscc): Likewise.
28387 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
28389         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28391 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
28393         * config/arm/thumb2.md: Remove trailing whitespaces.
28395 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28397         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28398         Use gen_int_mode rather than GEN_INT.
28400 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
28402         * value-prof.c (stream_in_histogram_value): Remove the strayed
28403         debug_gimple_stmt.
28405 2013-04-30  Richard Biener  <rguenther@suse.de>
28407         PR middle-end/57122
28408         * cfghooks.c (split_edge): Properly check for the loop latch edge.
28410 2013-04-30  Richard Biener  <rguenther@suse.de>
28412         PR middle-end/57107
28413         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28415 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
28417         PR rtl-optimization/56957
28418         PR rtl-optimization/57105
28419         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28420         variable.  Use just INSN_UID for determining whether an insn
28421         should be only disconnected from the insn stream.
28422         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28424 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
28426         PR tree-optimization/57104
28427         * tsan.c (instrument_expr): Don't instrument accesses to
28428         DECL_HARD_REGISTER VAR_DECLs.
28430 2013-04-30  Richard Biener  <rguenther@suse.de>
28432         * function.h (loops_for_fn): New inline function.
28433         (set_loops_for_fn): Likewise.
28434         * cfgloop.h (place_new_loop): Add struct function parameter.
28435         (get_loop): Likewise.
28436         (get_loops): Likewise.
28437         (number_of_loops): Likewise.
28438         (fel_next): Adjust.
28439         (fel_init): Likewise.
28440         * cfg.c (get_loop_copy): Adjust.
28441         * cfgloop.c (flow_loops_dump): Likewise.
28442         (record_loop_exits): Likewise.
28443         (verify_loop_structure): Likewise.
28444         * cfgloopanal.c (mark_irreducible_loops): Likewise.
28445         (estimate_reg_pressure_cost): Likewise.
28446         (mark_loop_exit_edges): Likewise.
28447         * cfgloopmanip.c (place_new_loop): Likewise.
28448         (add_loop): Likewise.
28449         (duplicate_loop): Likewise.
28450         * graph.c (draw_cfg_nodes): Likewise.
28451         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28452         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28453         (extract_affine_chrec): Likewise.
28454         (build_scop_iteration_domain): Likewise.
28455         * graphite.c (graphite_initialize): Likewise.
28456         * ira-build.c (create_loop_tree_nodes): Likewise.
28457         (more_one_region_p): Likewise.
28458         (rebuild_regno_allocno_maps): Likewise.
28459         (mark_loops_for_removal): Likewise.
28460         (mark_all_loops_for_removal): Likewise.
28461         (remove_unnecessary_regions): Likewise.
28462         (ira_build): Likewise.
28463         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28464         * loop-init.c (fix_loop_structure): Likewise.
28465         (gate_rtl_move_loop_invariants): Likewise.
28466         (gate_rtl_unswitch): Likewise.
28467         (gate_rtl_unroll_and_peel_loops): Likewise.
28468         (rtl_doloop): Likewise.
28469         * lto-streamer-in.c (input_cfg): Likewise.
28470         * lto-streamer-out.c (output_cfg): Likewise.
28471         * modulo-sched.c (sms_schedule): Likewise.
28472         * predict.c (tree_estimate_probability): Likewise.
28473         (tree_estimate_probability_driver): Likewise.
28474         (estimate_loops): Likewise.
28475         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28476         (move_sese_region_to_fn): Likewise.
28477         (debug_loop_num): Likewise.
28478         * tree-chrec.c (chrec_evaluate): Likewise.
28479         (hide_evolution_in_other_loops_than_loop): Likewise.
28480         (chrec_component_in_loop_num): Likewise.
28481         (reset_evolution_in_loop): Likewise.
28482         (evolution_function_is_invariant_rec_p): Likewise.
28483         * tree-if-conv.c (main_tree_if_conversion): Likewise.
28484         * tree-inline.c (copy_loops): Likewise.
28485         (copy_cfg_body): Likewise.
28486         (tree_function_versioning): Likewise.
28487         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28488         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28489         Likewise.
28490         (add_to_evolution_1): Likewise.
28491         (scev_const_prop): Likewise.
28492         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28493         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28494         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28495         (tree_ssa_lim_initialize): Likewise.
28496         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28497         (verify_loop_closed_ssa): Likewise.
28498         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
28499         (tree_ssa_loop_im): Likewise.
28500         (tree_ssa_loop_unswitch): Likewise.
28501         (tree_vectorize): Likewise.
28502         (check_data_deps): Likewise.
28503         (tree_ssa_loop_ivcanon): Likewise.
28504         (tree_ssa_loop_bounds): Likewise.
28505         (tree_complete_unroll): Likewise.
28506         (tree_complete_unroll_inner): Likewise.
28507         (tree_parallelize_loops): Likewise.
28508         (tree_ssa_loop_prefetch): Likewise.
28509         (tree_ssa_loop_ivopts): Likewise.
28510         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28511         * tree-vectorizer.c (vectorize_loops): Likewise.
28513 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
28515         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28516         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28517         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28518         with EABI_LINK_SPEC.
28520 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28522         PR target/44578
28523         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28524         alternative.
28526 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
28528         PR target/57097
28529         * lra-constraints.c (process_alt_operands): Discourage a bit more
28530         using memory for pseudos.  Print cost dump for alternatives.
28531         Modify cost values for conflicts with early clobbers.
28532         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28534 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28536         PR target/57098
28537         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28539 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28541         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28542         from/to S register.
28543         (movdi_aarch64): Support LDR/STR from/to D register.
28545 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28547         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28548         or higher by default.
28550 2013-04-29  Richard Biener  <rguenther@suse.de>
28552         PR middle-end/57075
28553         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28554         even if not adding abnormal edges for calls that can make
28555         abnormal gotos.
28557 2013-04-29  Richard Biener  <rguenther@suse.de>
28559         PR middle-end/57103
28560         * tree-cfg.c (move_stmt_op): Fix condition under which to update
28561         TREE_BLOCK.
28562         (move_stmt_r): Remove redundant checking.
28564 2013-04-29  Teresa Johnson  <tejohnson@google.com>
28566         PR bootstrap/57077
28567         * basic-block.h (apply_scale): New function.
28568         (apply_probability): Use apply_scale.
28569         * gimple-streamer-in.c (input_bb): Ditto.
28570         * lto-streamer-in.c (input_cfg): Ditto.
28571         * lto-cgraph.c (merge_profile_summaries): Ditto.
28572         * tree-optimize.c (execute_fixup_cfg): Ditto.
28573         * tree-inline.c (copy_bb): Update comment to use apply_scale.
28574         (copy_edges_for_bb): Ditto.
28575         (copy_cfg_body): Ditto.
28577 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28579         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28580         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28581         (tail_merge_optimize): Handle current_loops == NULL.
28583 2013-04-26  Jeff Law  <law@redhat.com>
28585         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28586         (simplify_cond_using_ranges): Generalize code to simplify
28587         COND_EXPRs where one argument is a constant and the other
28588         is an SSA_NAME created by an integral type conversion.
28590 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28592         * config/arm/arm.md (store_minmaxsi): Use only when
28593         optimize_insn_for_size_p.
28595 2013-04-29  Christian Bruel  <christian.bruel@st.com>
28597         PR target/57108
28598         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28600 2013-04-29  Richard Biener  <rguenther@suse.de>
28602         PR middle-end/57089
28603         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28604         loop tree make sure to schedule a fixup for the child as well.
28605         (expand_omp_for_generic): Properly add loops.
28606         (expand_omp_for_static_nochunk): Likewise.
28607         (expand_omp_for_static_chunk): Likewise.
28608         (expand_omp_for): For the degenerate case fixup loops.
28609         (expand_omp_sections): Fix default bb placement in loops.
28610         (expand_omp_atomic_pipeline): Properly add loops.
28612 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28614         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28616 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28618         * tree-ssa-tail-merge.c: Update header comment.
28620 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28622         * config/aarch64/arm_neon.h
28623         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28624         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28625         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28626         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28627         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28628         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28629         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28630         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28632 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28634         * config/aarch64/aarch64-simd.md
28635         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28636         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28637         fix_trunc, fixuns_trunc.
28638         (ftrunc<VDQF:mode>2): New.
28639         * config/aarch64/iterators.md (optab): Add fix, fixuns.
28640         (fix_trunc_optab): New.
28642 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28644         * config/aarch64/aarch64-builtins.c
28645         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28646         iceilf, lround, iroundf.
28648 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28650         PR target/54349
28651         * config/i386/i386.h (enum ix86_tune_indices)
28652         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28653         New, split from X86_TUNE_INTER_UNIT_MOVES.
28654         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28655         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28656         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28657         (TARGET_INTER_UNIT_MOVES): Remove.
28658         * config/i386/i386.c (initial_ix86_tune_features): Update.
28659         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28660         (ix86_expand_convert_uns_didf_sse): Use
28661         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28662         (ix86_expand_vector_init_one_nonzero): Ditto.
28663         (ix86_expand_vector_init_interleave): Ditto.
28664         (inline_secondary_memory_needed): Return true for moves from SSE class
28665         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28666         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28667         * config/i386/constraints.md (Yi, Ym): Depend on
28668         TARGET_INTER_UNIT_MOVES_TO_VEC.
28669         (Yj, Yn): New constraints.
28670         * config/i386/i386.md (*movdi_internal): Change constraints of
28671         operand 1 from Yi to Yj and from Ym to Yn.
28672         (*movsi_internal): Ditto.
28673         (*movdf_internal): Ditto.
28674         (*movsf_internal): Ditto.
28675         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28676         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28677         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28678         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28679         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28680         * config/i386/sse.md (movdi_to_sse): Ditto.
28681         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28682         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28683         TARGET_INTER_UNIT_MOVES.
28684         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28685         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28686         instead of TARGET_INTER_UNIT_MOVES.
28687         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28688         operand 1 from Yi to Yj and from Ym to Yn.
28690 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28692         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28693         (float_truncate_hi_): Likewise.
28694         (float_extend_lo_): Likewise.
28695         (float_truncate_lo_): Likewise.
28696         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28697         (aarch64_float_extend_lo_v2df): Likewise.
28698         (vec_unpacks_hi_v4sf): Likewise.
28699         (aarch64_float_truncate_lo_v2sf): Likewise.
28700         (aarch64_float_truncate_hi_v4sf): Likewise.
28701         (vec_pack_trunc_v2df): Likewise.
28702         (vec_pack_trunc_df): Likewise.
28704 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28706         * config/aarch64/aarch64-builtins.c
28707         (aarch64_fold_builtin): Fold float conversions.
28708         * config/aarch64/aarch64-simd-builtins.def
28709         (floatv2si, floatv4si, floatv2di): New.
28710         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28711         * config/aarch64/aarch64-simd.md
28712         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28713         * config/aarch64/iterators.md (FLOATUORS): New.
28714         (optab): Add float, floatuns.
28715         (su_optab): Likewise.
28717 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28719         * config/aarch64/aarch64-builtins.c
28720         (aarch64_builtin_vectorized_function): Use new names for
28721         fcvt builtins.
28722         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28723         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28724         (fcvtzu): Split as...
28725         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28726         (fcvtas): Split as...
28727         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28728         (fcvtau): Split as...
28729         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28730         (fcvtps): Split as...
28731         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28732         (fcvtpu): Split as...
28733         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28734         (fcvtms): Split as...
28735         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28736         (fcvtmu): Split as...
28737         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28738         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28739         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28740         (lfrintnusf, lfrintnudf): Likewise.
28741         * config/aarch64/aarch64-simd.md
28742         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28743         define_insn.
28744         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28745         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28746         (fcvt_pattern): Likewise.
28748 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28750         * config/aarch64/aarch64-simd.md
28751         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28752         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28754 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28756         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28757         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28758         (vrnd<a,m,n,p>_f32): Implement using builtins.
28759         (vrnd<i,x><q>_f<32, 64>): New.
28761 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28763         * config/aarch64/aarch64-builtins.c
28764         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28765         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28766         (frintz): Rename to...
28767         (btrunc): ...this.
28768         (frintp): Rename to...
28769         (ceil): ...this.
28770         (frintm): Rename to...
28771         (floor): ...this.
28772         (frinti): Rename to...
28773         (nearbyint): ...this.
28774         (frintx): Rename to...
28775         (rint): ...this.
28776         (frinta): Rename to...
28777         (round): ...this.
28778         * config/aarch64/aarch64-simd.md
28779         (aarch64_frint<frint_suffix><mode>): Delete.
28780         (<frint_pattern><mode>2): Convert to insn.
28781         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28782         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28783         (frint_pattern): Likewise.
28784         (frint_suffix): Likewise.
28786 2013-04-29  Richard Biener  <rguenther@suse.de>
28788         PR tree-optimization/57081
28789         * loop-init.c: Include tree-flow.h.
28790         (loop_optimizer_finalize): Free number of iteration estimates.
28791         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28793 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
28795         PR tree-optimization/57083
28796         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28797         non-singleton shift count range, zero extend low_bound for uns case.
28799         * config/i386/predicates.md (general_vector_operand): New predicate.
28800         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28801         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28802         if they aren't nonimmediate operands.  If their original values
28803         satisfy const_vector_equal_evenodd_p, don't shift them.
28804         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28805         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
28806         if not nonimmediate_operand.
28807         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28808         instead of register_operand.
28809         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28811 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28813         * stor-layout.c (finalize_size_functions): Allocate a structure and
28814         reset cfun before dumping the functions.
28816 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
28818         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28820         PR target/56866
28821         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28822         use xop_pmacsdqh if uns_p.
28823         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28824         the immediate rotate count.
28826 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
28828         * rtl.h (struct rtx_def): Add comment for field jump.
28829         (LRA_SUBREG_P): New macro.
28830         * recog.c (register_operand): Check LRA_SUBREG_P.
28831         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28832         stack frame.
28833         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28834         (lra_final_code_change): Skip subreg change for operators.
28835         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28836         if there are no operand changes.
28837         * lra-constraints.c (curr_insn_set): New.
28838         (match_reload): Set LRA_SUBREG_P.
28839         (emit_spill_move): Ditto.
28840         (check_and_process_move): Use curr_insn_set. Process only single
28841         set insns.  Don't initialize sec_mem_p and change_p.
28842         (simplify_operand_subreg): Use LRA_SUBREG_P.
28843         (reg_in_class_p): New function.
28844         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28845         of #ifdef.  Add code to remove cycling.
28846         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28847         non-null disp.  Reload inner instead of disp when base and index
28848         are null.  Try to put lo_sum into register.
28849         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28850         (check_and_process_move): Move code for move cost check to
28851         simple_move_p.  Remove equiv_substitution.
28852         (simple_move_p): New function.
28853         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28854         curr_insn_set.  Call check_and_process_move only for single set
28855         insns.  Use the new function.  Move call of check_and_process_move
28856         after operand equiv substitution and address process.
28858 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28860         PR go/57045
28861         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28862         with nonlocal goto receivers or returns twice calls, ignore
28863         unininitialized values from abnormal edges to nl goto receiver
28864         or returns twice call.
28866 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28868         PR tree-optimization/57051
28869         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28870         and VEC_RSHIFT_EXPR if shift count is a multiple of element
28871         bitsize.
28873 2013-04-26  Richard Biener  <rguenther@suse.de>
28875         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28876         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
28877         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28878         (fixup_loop_arrays_after_move): New function.
28879         (move_sese_region_to_fn): Properly outline the loop tree parts
28880         of the SESE region.
28882 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
28884         * config/i386/i386.md (type, unit): Fix long lines.
28886 2013-04-26  Richard Biener  <rguenther@suse.de>
28888         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28889         (lto-streamer-out.o): Likewise.
28890         * cfgloop.c (init_loops_structure): Export, add struct function
28891         argument and adjust.
28892         (flow_loops_find): Adjust.
28893         * cfgloop.h (enum loop_estimation): Add EST_LAST.
28894         (init_loops_structure): Declare.
28895         * lto-streamer-in.c: Include cfgloop.h.
28896         (input_cfg): Input the loop tree.
28897         * lto-streamer-out.c: Include cfgloop.h.
28898         (output_cfg): Output the loop tree.
28899         (output_struct_function_base): Do not drop PROP_loops.
28901 2013-03-26  Richard Biener  <rguenther@suse.de>
28903         * tree-cfg.c (execute_build_cfg): Build the loop tree.
28904         (pass_build_cfg): Provide PROP_loops.
28905         (move_sese_region_to_fn): Remove loops that are outlined into fn
28906         for now.
28907         * tree-inline.c: Include cfgloop.h.
28908         (initialize_cfun): Do not drop PROP_loops.
28909         (copy_loops): New function.
28910         (copy_cfg_body): Copy loop structure.
28911         (tree_function_versioning): Initialize destination loop tree.
28912         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28913         (pass_parallelize_loops): Do IL verification.
28914         * loop-init.c (loop_optimizer_init): Fixup loops if required.
28915         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28916         the CFG make sure we fixup loops as well.
28917         * tree-ssa-tail-merge.c: Include cfgloop.h.
28918         (replace_block_by): When merging loop latches mark loops for fixup.
28919         * lto-streamer-out.c (output_struct_function_base): Drop
28920         PROP_loops for now.
28921         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28922         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28923         * ipa-split.c: Include cfgloop.h.
28924         (split_function): Add the new return block to the loop tree root.
28925         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28926         whether we have removed the forwarder block.
28927         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28928         * cfgloop.h (place_new_loop): Declare.
28929         * cfgloopmanip.c (place_new_loop): Export.
28930         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28931         (tree-switch-conversion.o): Likewise.
28932         (tree-complex.o): Likewise.
28933         (tree-inline.o): Likewise.
28934         (tree-ssa-tailmerge.o): Likewise.
28935         (ipa-split.o): Likewise.
28936         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28937         (tree-ssa-copy.o): Likewise.
28938         * tree-switch-conversion.c: Include cfgloop.h
28939         (process_switch): If we emit a bit-test cascade, schedule loops
28940         for fixup.
28941         * tree-complex.c: Include cfgloop.h.
28942         (expand_complex_div_wide): Properly add new basic-blocks to loops.
28943         * asan.c: Include cfgloop.h.
28944         (create_cond_insert_point): Properly add new basic-blocks to
28945         loops, schedule loop fixup.
28946         * cfgloop.c (verify_loop_structure): Check that looks are not
28947         marked for fixup.
28948         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28949         to loops.
28950         (expand_omp_for_generic): Likewise.
28951         (expand_omp_sections): Likewise.
28952         (expand_omp_atomic_pipeline): Schedule loops for fixup.
28953         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28954         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28955         is initialized, not when loops are present.
28956         * tree-parloops.c (parallelize_loops): Remove checking here.
28957         * passes.c (init_optimization_passes): Schedule a copy-propagation
28958         pass before complete unrolling of inner loops.
28960 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28962         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28963         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28964         (colorize_init): Add argument to _WIN32 version.
28965         * toplev.c: Include diagnostic-color.h.
28966         (process_options): Default to -fdiagnostics-color=auto if
28967         GCC_COLORS env var is in the environment.
28968         * common.opt (fdiagnostics-color=): Add Var and Init.
28969         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28970         env var is in the environment, the default is auto rather than never.
28972         * diagnostic.h (file_name_as_prefix): Add context argument.
28973         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
28974         the string as locus.
28975         * langhooks.c (lhd_print_error_function): Adjust caller.
28977 2013-04-25  Lawrence Crowl  <crowl@google.com>
28979         * var-tracking.c (shared_hash_def::htab):
28980         Change type to hash_table.  Update dependent calls and types.
28982 2013-04-25  Lawrence Crowl  <crowl@google.com>
28984         * Makefile.in: Update as needed below.
28986         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28987         Move declaration to after the type's method definitons.
28989         * attribs.c (htab_t scoped_attributes::attribute_hash):
28990         Change type to hash_table.  Update dependent calls and types.
28992         * bitmap.c (htab_t bitmap_desc_hash):
28993         Change type to hash_table.  Update dependent calls and types.
28995         * cselib.c (htab_t cselib_hash_table):
28996         Change type to hash_table.  Update dependent calls and types.
28998         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28999         (hash_string_slot_node): Move implementation into lto-streamer.h
29000         struct string_slot_hasher.
29001         (eq_string_slot_node): Likewise.
29003         * data-streamer-out.c: Update output_block::string_hash_table
29004         dependent calls and types.
29006         * dwarf2cfi.c (htab_t trace_index):
29007         Change type to hash_table.  Update dependent calls and types.
29009         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
29010         Change type to hash_table.  Update dependent calls and types.
29011         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
29012         (htab_t optimize_external_refs::map): Likewise.
29013         (htab_t output_comp_unit::extern_map): Likewise.
29014         (htab_t output_comdat_type_unit::extern_map): Likewise.
29015         (htab_t output_macinfo::macinfo_htab): Likewise.
29016         (htab_t optimize_location_lists::htab): Likewise.
29017         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
29019         * except.c (htab_t ehspec_hash_type):
29020         Change type to hash_table.  Update dependent calls and types.
29021         (assign_filter_values::ttypes): Likewise.
29022         (assign_filter_values::ehspec): Likewise.
29023         (sjlj_assign_call_site_values::ar_hash): Likewise.
29024         (convert_to_eh_region_ranges::ar_hash): Likewise.
29026         * gcse.c (htab_t pre_ldst_table):
29027         Change type to hash_table.  Update dependent calls and types.
29029         * ggc-common.c (htab_t saving_htab):
29030         Change type to hash_table.  Update dependent calls and types.
29031         (htab_t loc_hash): Likewise.
29032         (htab_t ptr_hash): Likewise.
29033         (call_count): Rename ggc_call_count.
29034         (call_alloc): Rename ggc_call_alloc.
29035         (loc_descriptor): Rename make_loc_descriptor.
29036         (add_statistics): Rename ggc_add_statistics.
29038         * ggc-common.c (saving_htab):
29039         Change type to hash_table.  Update dependent calls and types.
29041         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
29042         (push_gimplify_context): Likewise.
29043         (pop_gimplify_context): Likewise.
29044         (struct gimple_temp_hash_elt): Added.
29045         (struct gimplify_hasher): Likewise.
29046         (struct gimplify_ctx.temp_htab):
29047         Change type to hash_table.  Update dependent calls and types.
29049         * gimple-fold.c: Include gimplify-ctx.h.
29051         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
29052         Change type to hash_table.  Update dependent calls and types.
29053         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
29054         avoid potential global name collision.
29056         * gimplify.c: Include gimplify-ctx.h.
29057         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
29058         (htab_t gimplify_ctx::temp_htab):
29059         Update dependent calls and types for new type hash_table.
29060         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
29061         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
29063         * gimplify-ctx.h: New.
29064         (struct gimple_temp_hash_elt): Move from gimplify.c.
29065         (class gimplify_hasher): New.
29066         (struct gimplify_ctx): Move from gimple.h.
29067         (htab_t gimplify_ctx::temp_htab):
29068         Change type to hash_table.  Update dependent calls and types.
29070         * graphite-clast-to-gimple.c: Include graphite-htab.h.
29071         (htab_t ivs_params::newivs_index):
29072         Change type to hash_table.  Update dependent calls and types.
29073         (htab_t ivs_params::params_index): Likewise.
29074         (htab_t print_generated_program::params_index): Likewise.
29075         (htab_t gloog::newivs_index): Likewise.
29076         (htab_t gloog::params_index): Likewise.
29078         * graphite.c: Include graphite-htab.h.
29079         4htab_t graphite_transform_loops::bb_pbb_mapping):
29080         Change type to hash_table.  Update dependent calls and types.
29082         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
29083         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
29084         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
29086         * graphite-dependences.c: Include graphite-htab.h.
29087         (loop_is_parallel_p): Change hash table type of parameter.
29089         * graphite-htab.h: New.
29090         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
29091         (extern find_pbb_via_hash): Move from graphite-poly.h.
29092         (extern loop_is_parallel_p): Move from graphite-poly.h.
29093         (extern get_loop_body_pbbs): Move from graphite-poly.h.
29095         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
29096         (extern loop_is_parallel_p): Move to graphite-htab.h.
29097         (extern get_loop_body_pbbs): Move to graphite-htab.h.
29099         * haifa-sched.c (htab_t delay_htab):
29100         Change type to hash_table.  Update dependent calls and types.
29101         (htab_t delay_htab_i2): Likewise.
29103         * ira-color.c (htab_t allocno_hard_regs_htab):
29104         Change type to hash_table.  Update dependent calls and types.
29106         * ira-costs.c (htab_t cost_classes_htab):
29107         Change type to hash_table.  Update dependent calls and types.
29109         * loop-invariant.c (htab_t merge_identical_invariants::eq):
29110         Change type to hash_table.  Update dependent calls and types.
29112         * loop-iv.c (htab_t bivs):
29113         Change type to hash_table.  Update dependent calls and types.
29115         * loop-unroll.c (htab_t opt_info::insns_to_split):
29116         Change type to hash_table.  Update dependent calls and types.
29117         (htab_t opt_info::insns_with_var_to_expand): Likewise.
29119         * lto-streamer.h (struct string_slot): Move from data-streamer.h
29120         (struct string_slot_hasher): New.
29121         (htab_t output_block::string_hash_table):
29122         Change type to hash_table.  Update dependent calls and types.
29124         * lto-streamer-in.c (freeing_string_slot_hasher): New.
29125         (htab_t file_name_hash_table):
29126         Change type to hash_table.  Update dependent calls and types.
29128         * lto-streamer-out.c: Update output_block::string_hash_table dependent
29129         calls and types.
29131         * lto-streamer.c (htab_t tree_htab):
29132         Change type to hash_table.  Update dependent calls and types.
29134         * omp-low.c: Include gimplify-ctx.h.
29136         * passes.c (htab_t name_to_pass_map):
29137         Change type to hash_table.  Update dependent calls and types.
29138         (pass_traverse): Rename to passes_pass_traverse.
29140         * plugin.c (htab_t event_tab):
29141         Change type to hash_table.  Update dependent calls and types.
29143         * postreload-gcse.c (htab_t expr_table):
29144         Change type to hash_table.  Update dependent calls and types.
29145         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
29147         * sese.c (debug_rename_map_1): Make extern.
29148         (htab_t copy_bb_and_scalar_dependences::rename_map):
29149         Change type to hash_table.  Update dependent calls and types.
29151         * sese.h (extern debug_rename_map): Move to .c file.
29153         * store-motion.c (htab_t store_motion_mems_table):
29154         Change type to hash_table.  Update dependent calls and types.
29156         * trans-mem.c (htab_t tm_new_mem_hash):
29157         Change type to hash_table.  Update dependent calls and types.
29159         * tree-browser.c (htab_t TB_up_ht):
29160         Change type to hash_table.  Update dependent calls and types.
29162         * tree-cfg.c (htab_t discriminator_per_locus):
29163         Change type to hash_table.  Update dependent calls and types.
29165         * tree-complex.c: Include tree-hasher.h
29166         (htab_t complex_variable_components):
29167         Change type to hash_table.  Update dependent calls and types.
29169         * tree-eh.c (htab_t finally_tree):
29170         Change type to hash_table.  Update dependent calls and types.
29172         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
29173         struct int_tree_hasher.
29174         (extern int_tree_map_eq): Likewise.
29175         (uid_decl_map_hash): Removed.
29176         (extern decl_tree_map_eq): Likewise.
29178         * tree-hasher.h: New.
29179         (struct int_tree_hasher): New.
29180         (typedef int_tree_htab_type): New.
29182         * tree-inline.c: Include gimplify-ctx.h.
29184         * tree-mudflap.c: Include gimplify-ctx.h.
29186         * tree-parloops.c: Include tree-hasher.h.
29187         (htab_t eliminate_local_variables_stmt::decl_address):
29188         Change type to hash_table.  Update dependent calls and types.
29189         (htab_t separate_decls_in_region::decl_copies): Likewise.
29191         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
29192         Change type to hash_table.  Update dependent calls and types.
29194         * tree-sra.c (candidates):
29195         Change type to hash_table.  Update dependent calls and types.
29197         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
29198         in tree-flow.h.
29199         (int_tree_map_hash): Likewise.
29201         * tree-ssa-dom.c (htab_t avail_exprs):
29202         Change type to hash_table.  Update dependent calls and types.
29204         * tree-ssa-live.c (var_map_base_init::tree_to_index):
29205         Change type to hash_table.  Update dependent calls and types.
29207         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
29208         Change type to hash_table.  Update dependent calls and types.
29210         * tree-ssa-phiopt.c (seen_ssa_names):
29211         Change type to hash_table.  Update dependent calls and types.
29213         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
29214         Change type to hash_table.  Update dependent calls and types.
29216         * tree-ssa-uncprop.c (equiv):
29217         Change type to hash_table.  Update dependent calls and types.
29219 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
29221         PR rtl-optimization/57003
29222         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
29223         call note_stores with kill_clobbered_value callback again after
29224         killing regs_invalidated_by_call.
29226 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29228         * config/aarch64/aarch64-simd.md
29229         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
29230         (aarch64_simd_bsl<mode>): Likewise.
29231         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
29233 2013-04-25  Marek Polacek  <polacek@redhat.com>
29235         PR tree-optimization/57066
29236         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
29238 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29240         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
29242 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29244         * config/aarch64/aarch64-builtins.c
29245         (aarch64_fold_builtin): New.
29246         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
29247         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
29248         * config/aarch64/aarch64-simd-builtins.def (abs): New.
29249         * config/aarch64/arm_neon.h
29250         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
29252 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29253             Tejas Belagod  <tejas.belagod@arm.com>
29255         * config/aarch64/aarch64-builtins.c
29256         (aarch64_gimple_fold_builtin): New.
29257         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
29258         * config/aarch64/aarch64-simd-builtins.def (addv): New.
29259         * config/aarch64/aarch64-simd.md (addpv4sf): New.
29260         (addvv4sf): Update.
29261         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
29263 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29265         * config/aarch64/aarch64.md
29266         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
29268 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29270         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
29271         (*ngcsi_uxtw): New pattern.
29273 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29274             Julian Brown  <julian@codesourcery.com>
29276         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
29277         (TB_DREG): Add T_V4HF.
29278         (v4hf_UP): New macro.
29279         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29280         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29281         Handle initialisation of V4HF. Adjust initialisation of reinterpret
29282         built-ins.
29283         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29284         (arm_vector_mode_supported_p): Handle V4HF.
29285         (arm_mangle_map): Handle V4HFmode.
29286         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
29287         * config/arm/arm_neon_builtins.def: Add entries for
29288         vcvtv4hfv4sf, vcvtv4sfv4hf.
29289         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
29290         (neon_vcvtv4hfv4sf): Likewise.
29291         * config/arm/neon-gen.ml: Handle half-precision floating point
29292         features.
29293         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
29294         * config/arm/arm_neon.h: Regenerate.
29295         * config/arm/neon.ml (type elts): Add F16.
29296         (type vectype): Add T_float16x4, T_floatHF.
29297         (type vecmode): Add V4HF.
29298         (type features): Add Requires_FP_bit feature.
29299         (elt_width): Handle F16.
29300         (elt_class): Likewise.
29301         (elt_of_class_width): Likewise.
29302         (mode_of_elt): Refactor.
29303         (type_for_elt): Handle F16, fix error messages.
29304         (vectype_size): Handle T_float16x4.
29305         (vcvt_sh): New function.
29306         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
29307         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
29308         (string_of_mode): Handle V4HF.
29309         * doc/arm-neon-intrinsics.texi: Regenerate.
29311 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29313         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
29314         format specifier in 'X' case.
29316 2013-04-25  Alan Modra  <amodra@gmail.com>
29318         PR target/57052
29319         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
29320         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
29321         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
29322         Repeat for many other rotate/shift and mask patterns using subregs.
29323         Name lshiftrt insns.
29324         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
29325         on WORDS_BIG_ENDIAN.
29327 2013-04-25  Alan Modra  <amodra@gmail.com>
29329         * config.gcc: Support little-endian powerpc-linux targets.
29330         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
29331         (LINK_OS_LINUX_SPEC): Define.
29332         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
29333         Preserve MASK_LITTLE_ENDIAN.
29334         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
29335         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
29336         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
29337         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
29338         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
29339         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
29340         Correct fp word order for little-endian.  Don't shift toc entries
29341         smaller than a word for little-endian.
29342         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
29343         (bswapdi2 splits): Correct low-part subreg for little-endian.
29344         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
29345         low/high where such is correct only for be.
29346         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29347         little-endian for -mcall-aixdesc.
29349 2013-04-25  Alan Modra  <amodra@gmail.com>
29351         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29352         replace_equiv_address_nv.
29354 2013-04-25  Alan Modra  <amodra@gmail.com>
29356         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29358 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29360         Revert:
29361         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29362         * rtl.h (struct rtx_def): ...
29364 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29366         PR rtl-optimizations/57046
29367         * lra-constraints (split_reg): Set up lra_risky_transformations_p
29368         for multi-reg splits.
29370 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
29372         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29374 2013-04-24  Sterling Augustine  <saugustine@google.com>
29376         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29377         (comp_dir_string, debug_str_dwo_section): New.
29378         (DEBUG_STR_DWO_SECTION): Rename to ...
29379         (DEBUG_DWO_STR_SECTION): ... this.
29380         (DEBUG_NORM_STR_SECTION): Delete.
29381         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29382         (DEBUG_STR_DWO_SECTION_FLAGS): New.
29383         (find_AT_string): Move most logic to ...
29384         (find_AT_string_in_table): ... here.  New.
29385         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29386         add_skeleton_AT_string.  Delete logic.
29387         (output_skeleton_debug_sections): Remove call to
29388         add_top_level_skeleton_die_attrs.
29389         (add_comp_dir_attribute): Move logic to comp_dir_string.
29390         (dwarf2out_init): Initialize debug_str_dwo_section.
29391         (output_indirect_string): Call find_string_form.
29392         (output_indirect_strings): Rewrite.
29393         (prune_unused_types): Empty skeleton_debug_str_hash.
29394         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29395         (dwarf2out_finish):  Call output_indirect_strings.
29397 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
29399         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29401 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29403         * rtl.h (struct rtx_def): Add comment for field jump.
29404         (LRA_SUBREG_P): New macro.
29405         * recog.c (register_operand): Check LRA_SUBREG_P.
29406         * lra.c (lra): Add note at the end of RTL code. Align non-empty
29407         stack frame.
29408         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29409         (lra_final_code_change): Skip subreg change for operators.
29410         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29411         if there are no operand changes.
29412         * lra-constraints.c (curr_insn_set): New.
29413         (match_reload): Set LRA_SUBREG_P.
29414         (emit_spill_move): Ditto.
29415         (check_and_process_move): Use curr_insn_set. Process only single
29416         set insns.  Don't initialize sec_mem_p and change_p.
29417         (simplify_operand_subreg): Use LRA_SUBREG_P.
29418         (reg_in_class_p): New function.
29419         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
29420         of #ifdef.  Add code to remove cycling.
29421         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29422         non-null disp.  Reload inner instead of disp when base and index
29423         are null.  Try to put lo_sum into register.
29424         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29425         (check_and_process_move): Move code for move cost check to
29426         simple_move_p.  Remove equiv_substitution.
29427         (simple_move_p): New function.
29428         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
29429         curr_insn_set.  Call check_and_process_move only for single set
29430         insns.  Use the new function.  Move call of check_and_process_move
29431         after operand equiv substitution and address process.
29433 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
29435         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29436         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29437         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29439 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
29441         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29443 2013-04-24  Marek Polacek  <polacek@redhat.com>
29445         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29446         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29447         (select_loops_exit_conditions): Likewise.
29448         (number_of_iterations_for_all_loops): Likewise.
29449         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29450         (scev_analysis): Likewise.
29452 2013-04-02  Catherine Moore  <clm@codesourcery.com>
29453             Chao-ying Fu  <fu@mips.com>
29455         * config/mips/micromips.md (jraddiusp): New pattern.
29456         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29457         instruction if possible.
29459 2013-04-24  Alan Modra  <amodra@gmail.com>
29461         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29463 2013-04-24  Julian Brown  <julian@codesourcery.com>
29464             Chung-Lin Tang  <cltang@codesourcery.com>
29466         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29467         dependency behavior in enumeration type DIE generation. Add TODO note
29468         to comments about future DW_FORM_sdata/udata re-work of related code.
29470 2013-04-23  Lawrence Crowl  <crowl@google.com>
29472         * Makefile.in: Update as needed below.
29474         * hash-table.h (class hash_table):
29475         Correct many methods with parameter types compare_type to the correct
29476         value_type.  (Correct code was unlikely to notice the change.)
29477         (hash_table::elements_with_deleted) New.
29478         (class hashtable::iterator): New.
29479         (hashtable::begin()): New.
29480         (hashtable::end()): New.
29481         (FOR_EACH_HASH_TABLE_ELEMENT): New.
29483         * statistics.c (statistics_hashes):
29484         Change type to hash_table.  Update dependent calls and types.
29486         * tree-into-ssa.c (var_infos):
29487         Change type to hash_table.  Update dependent calls and types.
29489         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29490         Change type to hash_table.  Update dependent calls and types.
29492         * tree-ssa-loop-im.c (struct mem_ref.refs):
29493         Change type to hash_table.  Update dependent calls and types.
29495         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29496         Change type to hash_table.  Update dependent calls and types.
29498         * tree-ssa-sccvn.c (vn_tables_s::nary):
29499         Change type to hash_table.  Update dependent calls and types.
29500         (vn_tables_s::phis): Likewise.
29501         (vn_tables_s::references): Likewise.
29503         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29504         (vn_reference_eq): Update parameter and return types.
29506         * tree-ssa-structalias.c (pointer_equiv_class_table):
29507         Change type to hash_table.  Update dependent calls and types.
29508         (location_equiv_class_table): Likewise.
29510         * tree-vect-data-refs.c: Consequential changes for making
29511         peeling a hash_table.
29513         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29514         (destroy_loop_vec_info): Dependent hash_table update.
29516         * tree-vectorizer.h (peeling_htab):
29517         Change type to hash_table.  Update dependent calls and types.
29519 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
29521         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29522         to check the register content is equal or not.
29523         * lra-constraints.c (match_reload): Use lra_assign_reg_val
29524         to assign register content record.
29525         * lra-eliminations.c (update_reg_eliminate): Use
29526         lra_update_reg_val_offset to update register content offset.
29527         * lra-int.h (struct lra_reg): Add offset member.
29528         (lra_reg_val_equal_p): New static inline function.
29529         (lra_update_reg_val_offset): New static inline function.
29530         (lra_assign_reg_val): New static inline function.
29531         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29532         to assign register content record.
29533         (initialize_lra_reg_info_element): Initial offset to zero.
29535 2013-04-23  Catherine Moore  <clm@codesourcery.com>
29537         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29538         operands.  Record compression.
29540 2013-04-23  Xinliang David Li  <davidxl@google.com>
29542         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29544 2013-04-23  Richard Biener  <rguenther@suse.de>
29546         PR middle-end/57036
29547         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29548         parameter, only add abnormal goto edges from the copied body
29549         if the call could perform abnormal gotos.
29550         (copy_cfg_body): Adjust.
29552 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
29554         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29556 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
29558         * coretypes.h (gimple_stmt_iterator): Add struct to make
29559         compatible with C.
29561 2013-04-23  Richard Biener  <rguenther@suse.de>
29563         PR tree-optimization/57026
29564         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29565         from SSA names occuring in abnormal PHI nodes.
29567 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29569         * lto/lto.c (print_lto_report_1): Fix LTO report names.
29571 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29573         * lto/lto.c (print_lto_report_1): Declare early.
29574         (read_cgraph_and_symbols): Call print_lto_report_1 early.
29576 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29578         * common.opt (-flto-report-wpa): Add.
29579         * doc/invoke.texi (-flto-report-wpa): Add.
29580         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29581         (lto_main): dito.
29583 2013-04-22  Xinliang David Li  <davidxl@google.com>
29585         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29586         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29587         * Makefile.in: New dependency
29589             David Daney <ddaney.cavm@gmail.com>
29591         * configure.ac (gcc_cv_as_micromips_support):  Use the
29592         --fatal-warnings option.
29593         * configure: Regenerate.
29595 2013-04-22  Marek Polacek  <polacek@redhat.com>
29597         PR sanitizer/56990
29598         * tsan.c (instrument_expr): Don't instrument expression
29599         in case its size is zero.
29601 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
29603         PR target/57032
29604         Revert:
29605         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
29607         * config/alpha/alpha.c (TARGET_LRA_P): New define.
29609 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29611         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29612         (gimple_stmt_iterator): New typedef.
29613         * gimple.h (gimple_stmt_iterator): Rename to...
29614         (gimple_stmt_iterator_d): ... This.
29615         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29616         trees be valid for GIMPLE and GENERIC.
29617         (TARGET_GIMPLE_FOLD_BUILTIN): New.
29618         * gimple-fold.c (gimple_fold_call): Call target hook
29619         gimple_fold_builtin.
29620         * hooks.c (hook_bool_gsiptr_false): New.
29621         * hooks.h (hook_bool_gsiptr_false): New.
29622         * target.def (fold_stmt): New.
29623         * doc/tm.texi: Regenerate.
29625 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
29627         PR target/57018
29628         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29629         a set sp if no stack realignment.
29631 2013-04-22  Nick Clifton  <nickc@redhat.com>
29633         * config.gcc (tilegx-linux): Extend extra_objs rather than
29634         overwriting it.
29635         (tilepro-linux): Likewise.
29637 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29639         * config/aarch64/aarch64-builtins.c
29640         (CF): Remove.
29641         (CF0, CF1, CF2, CF3, CF4, CF10): New.
29642         (VAR<1-12>): Add MAP parameter.
29643         (BUILTIN_*): Likewise.
29644         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29645         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29646         (aarch64_ushl_n<mode>): Likewise.
29647         (aarch64_sshr_n<mode>): Likewise.
29648         (aarch64_ushr_n<mode>): Likewise.
29649         (aarch64_<maxmin><mode>): Likewise.
29650         (aarch64_sqrt<mode>): Likewise.
29651         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29652         (vshr<q>_n_*): Likewise.
29654 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29656         * config/aarch64/aarch64-builtins.c
29657         (aarch64_simd_builtin_type_mode): Handle SF types.
29658         (sf_UP): Define.
29659         (BUILTIN_GPF): Define.
29660         (aarch64_init_simd_builtins): Handle SF types.
29661         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29662         (frecps): Likewise.
29663         (frecpx): Likewise.
29664         * config/aarch64/aarch64-simd.md
29665         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29666         (aarch64_frecpe<mode>): New.
29667         (aarch64_frecps<mode>): Likewise.
29668         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29669         (v8type): Add frecp<esx>.
29670         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29671         (aarch64_frecps<mode>): Likewise.
29672         * config/aarch64/iterators.md (FRECP): New.
29673         (frecp_suffix): Likewise.
29674         * config/aarch64/arm_neon.h
29675         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29677 2013-04-22  Christian Bruel  <christian.bruel@st.com>
29679         PR target/56995
29680         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29681         (REG_CLASS_NAMES): Idem.
29682         (REG_CLASS_CONTENTS): Idem.
29683         (REGCLASS_HAS_FP_REG): Idem.
29684         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29685         (sh_conditional_register_usage): Idem.
29687 2013-04-21  Jeff Law  <law@redhat.com>
29689         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29690         (ssa_forward_propagate_and_combine): Use it.
29692 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29694         * lra.c: Update the flow chart diagram.
29696 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29698         PR rtl-optimization/56847
29699         * lra-constraints.c (process_alt_operands): Discourage alternative
29700         with non-matche doffsettable memory constraint fro memory with
29701         known offset.
29703 2013-04-19  Richard Biener  <rguenther@suse.de>
29705         PR tree-optimization/56982
29706         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29707         function.
29708         * gimplify.c (gimplify_call_expr): Notice special calls.
29709         (gimplify_modify_expr): Likewise.
29710         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29711         abnormal control flow receivers.
29712         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29713         in the same way as cfun->has_nonlocal_labels.
29714         (gimple_purge_dead_abnormal_call_edges): Likewise.
29715         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29716         receivers start a basic-block.
29718 2013-04-19  Richard Biener  <rguenther@suse.de>
29720         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29721         member ...
29722         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
29723         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29724         (SLP_TREE_LOAD_PERMUTATION): Add.
29725         (vect_transform_slp_perm_load): Adjust prototype.
29726         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29727         (vect_free_slp_instance): Likewise.
29728         (vect_create_new_slp_node): Likewise.
29729         (vect_supported_slp_permutation_p): Remove.
29730         (vect_slp_rearrange_stmts): Adjust.
29731         (vect_supported_load_permutation_p): Likewise.  Inline
29732         vect_supported_slp_permutation_p here.
29733         (vect_analyze_slp_instance): Compute load permutations per
29734         slp node instead of per instance.
29735         (vect_get_slp_defs): Adjust.
29736         (vect_transform_slp_perm_load): Likewise.
29737         (vect_schedule_slp_instance): Remove redundant code.
29738         (vect_schedule_slp): Remove hack for PR56270, add it ...
29739         * tree-vect-stmts.c (vectorizable_load): ... here, do not
29740         CSE loads for SLP.  Adjust.
29742 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29744         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29745         spelling in two comments.
29747 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29749         PR target/56797
29750         * config/arm/arm.c (load_multiple_sequence): Require SP
29751         as base register for loads if SP is in the register list.
29753 2013-04-19  Martin Jambor  <mjambor@suse.cz>
29755         PR tree-optimization/56718
29756         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29757         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29758         and made public.  Adjusted all callers.
29759         (ipa_intraprocedural_devirtualization): New function.
29760         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29761         (ipa_intraprocedural_devirtualization): Likewise.
29762         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29764 2013-04-19  Richard Biener  <rguenther@suse.de>
29766         PR tree-optimization/57000
29767         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29769 2013-04-19  Terry Guo  <terry.guo@arm.com>
29771         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29772         Replace with ...
29773         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
29774         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29775         (cortex_m4_fmacs): Use new reservations.
29776         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29778 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
29780         PR rtl-optimization/56999
29781         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29782         related code.
29783         (lra_coalesce): Remove split_origin_bitmap and related code.
29784         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
29785         ranges if necessary.
29787 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
29789         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29790         New array.
29791         (ix86_expand_call): Remove clobbered_registers array and use
29792         x86_64_ms_sysv_extra_clobbered_registers instead.
29793         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29794         Declare here.
29795         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29796         predicate.
29797         * config/i386/i386.md (*call_rex64_ms_sysv): Use
29798         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
29799         (*call_value_rex64_ms_sysv): Ditto.
29801 2013-04-18  Cary Coutant  <ccoutant@google.com>
29803         * dwarf2out.c (output_pubnames): Check die_perennial_p of
29804         parent instead of die_mark.
29806 2013-04-18  Diego Novillo  <dnovillo@google.com>
29808         * gimple.c (create_gimple_tmp): New.
29809         (get_expr_type): New.
29810         (build_assign): New.
29811         (build_type_cast): New.
29812         * gimple.h (enum ssa_mode): Define.
29813         (gimple_seq_set_location): New.
29814         * asan.c (build_check_stmt): Change some gimple_build_* calls
29815         to use build_assign and build_type_cast.
29817 2013-04-18  Richard Biener  <rguenther@suse.de>
29819         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29820         handle negative step.  Remove redundant checks.
29821         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29822         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29823         for negative step and grouped loads fail to vectorize.
29825 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29827         * emit-rtl.c (reset_insn_used_flags): New function.
29828         (reset_all_used_flags): Use it.
29829         (verify_insn_sharing): New function.
29830         (verify_rtl_sharing): Fix verification for SEQUENCEs.
29832 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
29834         PR tree-optimization/56984
29835         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29836         and (x >> M) >= N don't register any assertion if N << M is the
29837         minimum value.
29839 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29841         * lower-subreg.c (resolve_simple_move): If called self-recursive,
29842         do not delete_insn insns that have not yet been emitted, only
29843         unlink them with remove_insn.
29844         * df-scan.c (df_insn_delete): Revert r197492.
29846 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
29848         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29849         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29851 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29853         * config/arm/arm.md (movsicc_insn): Convert define_insn into
29854         define_insn_and_split.
29855         (and_scc,ior_scc,negscc): Likewise.
29856         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29858 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29860         * config/arm/arm.c (use_return_insn): Return 0 for targets that
29861         can benefit from using a sequence of LDRD instructions in epilogue
29862         instead of a single LDM instruction.
29864 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29866         PR 45688
29867         * doc/extend.texi: Fix typo.
29869 2013-04-17  Richard Biener  <rguenther@suse.de>
29871         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29872         (vect_build_slp_tree): ... here.
29873         (vect_build_slp_tree_1): Compute which stmts of the SLP group
29874         match.  Remove special-casing of mismatched complex loads.
29875         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29876         re-try the match with swapped commutative operands.
29877         (vect_supported_load_permutation_p): Remove special-casing of
29878         mismatched complex loads.
29879         (vect_analyze_slp_instance): Adjust.
29881 2013-04-17  Richard Biener  <rguenther@suse.de>
29883         PR rtl-optimization/56921
29884         * cfgloop.h (struct loop): Add simple_loop_desc member.
29885         (struct niter_desc): Mark with GTY(()).
29886         (simple_loop_desc): Do not use aux field but simple_loop_desc.
29887         * loop-iv.c (get_simple_loop_desc): Likewise.
29888         (free_simple_loop_desc): Likewise.
29890         Revert
29891         2013-04-16  Richard Biener  <rguenther@suse.de>
29893         PR rtl-optimization/56921
29894         * loop-init.c (pass_rtl_move_loop_invariants): Add
29895         TODO_do_not_ggc_collect to todo_flags_finish.
29896         (pass_rtl_unswitch): Same.
29897         (pass_rtl_unroll_and_peel_loops): Same.
29898         (pass_rtl_doloop): Same.
29900 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
29902         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29903         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29904         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29905         references.
29906         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29907         * tree-streamer.c (record_common_node): Adjust reference in comment.
29909 2013-04-17  Terry Guo  <terry.guo@arm.com>
29911         * config/arm/cortex-m4.md: Add a new bypass.
29913 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29915         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29916         New pattern.
29917         (*subs_<optab><mode>_multp2): New pattern.
29918         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29919         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29921 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29923         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29924         (*subs_mul_imm_<mode>): New pattern.
29926 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
29928         PR target/56948
29929         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29930         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
29931         (vsx_movti_32bit): Change j->wa to O->wa.
29933 2013-04-16  Richard Biener  <rguenther@suse.de>
29935         PR rtl-optimization/56921
29936         * loop-init.c (pass_rtl_move_loop_invariants): Add
29937         TODO_do_not_ggc_collect to todo_flags_finish.
29938         (pass_rtl_unswitch): Same.
29939         (pass_rtl_unroll_and_peel_loops): Same.
29940         (pass_rtl_doloop): Same.
29942 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
29944         * config/arm/arm.c (emit_multi_reg_push): New declaration
29945         for an existing function.
29946         (arm_emit_strd_push): New function.
29947         (arm_expand_prologue): Used here.
29948         (arm_emit_ldrd_pop): New function.
29949         (arm_expand_epilogue): Used here.
29950         (arm_get_frame_offsets): Update condition.
29951         (arm_emit_multi_reg_pop): Add a special case for load of a single
29952         register with writeback.
29954 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
29956         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29957         description.
29959 2013-04-16  Richard Biener  <rguenther@suse.de>
29961         PR tree-optimization/56756
29962         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29963         (first_mem_ref_loc): New.
29964         (execute_sm): Place the load temporarily before a previous
29965         access instead of in the latch edge to ensure its SSA dependencies
29966         are defined at points dominating the load.
29968 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
29970         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29971         correct fix by moving header and footer insn to the footer of
29972         the merged basic block.  Clear BB_END of the merged-away block.
29974         PR middle-end/43631
29975         * emit-rtl.c (make_note_raw): New function.
29976         (link_insn_into_chain): New static inline function.
29977         (add_insn): Use it.
29978         (add_insn_before, add_insn_after): Factor insn chain linking code...
29979         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29980         using link_insn_into_chain.
29981         (note_outside_basic_block_p): New helper function for emit_note_after
29982         and emit_note_before.
29983         (emit_note_after): Use nobb variant of add_insn_after if the note
29984         should not be contained in a basic block.
29985         (emit_note_before): Use nobb variant of add_insn_before if the note
29986         should not be contained in a basic block.
29987         (emit_note_copy): Use make_note_raw.
29988         (emit_note): Likewise.
29989         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29990         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29991         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29992         the moved barrier the tail of the basic block it follows.
29993         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29995 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
29997         PR tree-optimization/56962
29998         * gimple-ssa-strength-reduction.c (record_increment): Only set
29999         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
30000         either rhs1 or rhs2 is equal to c->base_expr.
30002 2013-04-15  Richard Biener  <rguenther@suse.de>
30004         PR tree-optimization/56933
30005         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
30006         member.
30007         (GROUP_READ_WRITE_DEPENDENCE): Remove.
30008         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
30009         * tree-vect-data-refs.c (vect_analyze_group_access): Move
30010         dependence check ...
30011         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
30012         ... here.
30013         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
30014         GROUP_READ_WRITE_DEPENDENCE.
30016 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30018         * emit-rtl.c (reset_all_used_flags): New function.
30019         (verify_rtl_sharing): Call reset_all_used_flags before and after
30020         performing the checks.
30022 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30024         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
30025         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
30026         * config/arm/constraints.md (De): New constraint.
30027         * config/arm/neon.md (anddi3_neon): Delete.
30028         (neon_vand<mode>): Expand to standard anddi3 pattern.
30029         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
30030         Move earlier in the file.
30031         (neon_inv_logic_op2): Likewise.
30032         (arm_anddi_operand_neon): New predicate.
30034 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30036         * configure.ac (gcc_cv_ld_as_needed): Set
30037         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
30038         Use -z ignore, -z record on *-*-solaris2*.
30039         (HAVE_LD_AS_NEEDED): Update comment.
30040         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
30041         * configure: Regenerate.
30042         * config.in: Regenerate.
30043         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
30044         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
30045         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
30046         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
30047         equivalents.  Fix markup.
30048         * doc/tm.texi: Regenerate.
30050 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
30052         * config/i386/i386.opt: New option mstack-protector-guard=.
30053         * config/i386/i386-opts.h: Add enum stack_protector_guard.
30054         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
30055         TARGET_SSP_TLS_GUARD.
30056         * config/i386/i386.c (ix86_option_override_internal): Set
30057         ix86_stack_protector_guard.
30058         * config/i386/i386.md (stack_protect_set): Enable for
30059         TARGET_SSP_TLS_GUARD only.
30060         (stack_protect_set_<mode>): Ditto.
30061         (stack_protect_test): Ditto.
30062         (stack_protect_test_<mode>): Ditto.
30063         * doc/invoke.texi (i386 Option): Document.
30065 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
30067         PR target/56890
30068         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
30069         (S_MODES): Set H_MODE bit.
30070         (SF_MODES): Set only S_MODE and SF_MODE bits.
30071         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
30072         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
30073         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
30074         <MODE_FLOAT>: Likewise.
30076 2013-04-15  Joey Ye  <joey.ye@arm.com>
30078         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
30080 2013-04-15  Joey Ye  <joey.ye@arm.com>
30082         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
30083         for real far jump.
30084         (thumb_far_jump_used_p): Count instruction size and set
30085         far_jump_used.
30087 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30089         * reorg.c (fill_simple_delay_slots): Reindent block of code.
30090         * resource.c (mark_target_live_regs): Reformat conditional block.
30092 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
30094         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
30095         notes, they are emitted only just before final.
30096         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
30098 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
30100         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
30101         * cfgrtl.c (delete_insn): Call it here instead.
30102         * lra-spills.c (lra_final_code_change): Use delete_insn.
30103         * haifa-sched.c (sched_remove_insn): Likewise.
30104         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
30105         returning to the nop pool.
30106         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
30107         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
30109 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
30111         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
30112         * doc/tm.texi: Regenerated.
30114 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
30116         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
30117         QImode checks.
30119 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
30121         * df-core.c (df_find_def): Compare register numbers.
30122         (df_find_use): Likewise.
30124 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
30126         PR target/56903
30127         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
30128         lra_in_progress for return.
30130 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
30132         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
30133         define_insn into define_insn_and_split and emit movsicc patterns.
30135 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
30137         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
30139 2013-04-12  Richard Biener  <rguenther@suse.de>
30141         * tree-pass.h (TODO_do_not_ggc_collect): New.
30142         * passes.c (execute_one_ipa_transform_pass): Honor
30143         TODO_do_not_ggc_collect.
30144         (execute_one_pass): Likewise.
30146         Revert
30147         2013-04-10  Richard Biener  <rguenther@suse.de>
30149         * passes.c (init_optimization_passes): Remove reload pass.
30150         * ira.c (do_reload): Merge into ...
30151         (ira): ... this.
30152         (rest_of_handle_reload): Remove.
30153         (pass_reload): Likewise.
30154         * config/i386/i386.c (ix86_option_override): Refer to ira instead
30155         of reload for vzeroupper pass placement.
30157 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
30159         PR tree-optimization/56918
30160         PR tree-optimization/56920
30161         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
30162         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
30163         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
30164         use wide_mul_with_sign method.
30166 2013-04-12  Richard Biener  <rguenther@suse.de>
30168         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
30169         not be considered a gimple constant.
30171 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
30173         * fold-const.c (const_binop): Handle vector shifts by a scalar.
30174         (fold_binary_loc): Call const_binop also for mixed vector-scalar
30175         operations.
30177 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30178             Jakub Jelinek  <jakub@redhat.com>
30180         * opts.c: Include diagnostic-color.h.
30181         (common_handle_option): Handle OPT_fdiagnostics_color_.
30182         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
30183         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
30184         (diagnostic-color.o): New.
30185         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
30186         (diagnostic_color_rule): New enum.
30187         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
30188         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
30189         the location string.
30190         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
30191         either NULL, or color kind.
30192         * diagnostic-color.c: New file.
30193         * diagnostic-color.h: New file.
30194         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
30195         arguments.
30196         * doc/invoke.texi (-fdiagnostics-color): Document.
30197         * pretty-print.h (pp_show_color): Define.
30198         (struct pretty_print_info): Add show_color field.
30199         * diagnostic.c: Include diagnostic-color.h.
30200         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
30201         macros.  Colorize error:, warning: etc. strings and also the location
30202         string.
30203         (diagnostic_show_locus): Colorize the caret line.
30204         * pretty-print.c: Include diagnostic-color.h.
30205         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
30206         inside of %< %> quotes or quoted through q format modifier.
30208 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30210         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
30212 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30214         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
30215         code in CC_NZ mode.
30216         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
30217         pattern.
30219 2013-04-11  Marek Polacek  <polacek@redhat.com>
30221         PR tree-optimization/48184
30222         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
30224 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
30226         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
30227         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
30228         (skip_simple_arithmetic): Tidy up.
30229         * tree.h (skip_simple_constant_arithmetic): Declare.
30231 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30233         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
30235 2013-04-11  Richard Biener  <rguenther@suse.de>
30237         * tree-vect-loop.c (get_initial_def_for_induction): Properly
30238         generate vector constants.
30240 2013-04-11  Richard Biener  <rguenther@suse.de>
30242         PR tree-optimization/56878
30243         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
30244         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
30245         New function.
30246         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30247         Prefer to align the DR with the most invariant base address.
30249 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30251         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
30252         comment.
30254 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
30256         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
30257         floating-point vector comparisons against 0.
30259 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
30261         PR tree-optimization/56899
30262         * fold-const.c (extract_muldiv_1): Apply distributive law
30263         only if TYPE_OVERFLOW_WRAPS (ctype).
30265 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
30267         PR target/56124
30268         * ira-costs.c (scan_one_insn): Check whether the source rtx of
30269         loading has side effect.
30271 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
30273         * config/sparc/sparc.c: Include tree-pass.h.
30274         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
30275         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
30276         head of file.  Change return type.  Split off gate function.
30277         (sparc_gate_work_around_errata): New function.
30278         (pass_work_around_errata): New pass definition.
30279         (insert_pass_work_around_errata) New pass insert definition to
30280         insert pass_work_around_errata just after delayed-branch scheduling.
30281         (sparc_option_override): Insert the pass.
30282         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
30284 2013-04-10  David S. Miller  <davem@davemloft.net>
30286         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
30287         or -mcpu=hypersparc.
30289         * target.def (cstore_mode): New hook.
30290         * target.h: Include insn-codes.h
30291         * targhooks.c: Likewise.
30292         (default_cstore_mode): New function.
30293         * targhooks.h: Declare it.
30294         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
30295         * doc/tm.texi: Rebuild.
30296         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
30297         target hook, rather than inspecting the insn_data.
30298         * config/sparc/sparc.c (sparc_cstore_mode): New function.
30299         (TARGET_CSTORE_MODE): Redefine.
30300         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
30301         result patterns.
30302         * config/sparc/predicates.md (cstore_result_operand): New special
30303         predicate.
30304         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
30305         Use it for operand 0.
30306         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
30307         (*snesi_special): Likewise.
30308         (*snesi_zero): Likewise.
30309         (*seqsi_zero): Likewise.
30310         (*sltu_insn): Likewise.
30311         (*sgeu_insn): Likewise.
30312         (*seqdi_special): Make operand 0 and comparison operation be of
30313         DImode.
30314         (*snedi_special): Likewise.
30315         (*snedi_special_vis3): Likewise.
30316         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
30317         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
30318         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
30319         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
30320         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
30321         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
30322         (*sltu_extend_sp64): Likewise.
30323         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
30324         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
30325         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
30326         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
30327         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
30329 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
30331         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
30332         (aarch64_start_file): Use the new function.
30334 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30335             Jason Merrill  <jason@redhat.com>
30337         * common.opt: Add -gdwarf.
30338         * opts.c (common_handle_option): Handle it.
30339         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
30341 2013-04-10  Richard Biener  <rguenther@suse.de>
30343         * passes.c (execute_todo): Do not call ggc_collect conditional here.
30344         (execute_one_ipa_transform_pass): But unconditionally here.
30345         (execute_one_pass): And here.
30346         (init_optimization_passes): Remove reload pass.
30347         * tree-pass.h (TODO_ggc_collect): Remove.
30348         (pass_reload): Likewise.
30349         * ira.c (do_reload): Merge into ...
30350         (ira): ... this.
30351         (rest_of_handle_reload): Remove.
30352         (pass_reload): Likewise.
30353         * config/i386/i386.c (ix86_option_override): Refer to ira instead
30354         of reload for vzeroupper pass placement.
30355         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30356         and todo_flags_finish of all passes.
30358 2013-04-10  Richard Biener  <rguenther@suse.de>
30360         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30361         first_const_oprnd field, rename first_def_type to first_op_type.
30362         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30363         (vect_get_and_check_slp_defs): Always use the type of the
30364         operand.  Allow mixed vect_external_def, vect_constant_def types.
30365         (vect_get_constant_vectors): Handle mixed vect_external_def,
30366         vect_constant_def types.
30368 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
30370         PR tree-optimization/55524
30371         * tree-ssa-math-opts.c
30372         (convert_mult_to_fma): Don't use an fms construct
30373         when we don't have an fms operation, but fnma, and it looks
30374         likely that we'll be able to use the latter.
30376 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
30378         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30379         function.
30380         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30381         inline fail caused by overwritable functions.
30383 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
30385         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30386         unnecessary bits in the constant power of two case.
30388 2013-04-10  Richard Biener  <rguenther@suse.de>
30390         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30391         broken code swapping operands.
30392         (vect_build_slp_tree): Do not compute load permutations here.
30393         (vect_analyze_slp_instance): Compute load permutations here,
30394         after building the SLP tree.
30396 2013-04-09  Christian Bruel  <christian.bruel@st.com>
30398         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30399         of next/prev_real_insn.
30401 2013-04-09  Jan Hubicka  <jh@suse.cz>
30403         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30404         Drop aliased parameter.
30405         (function_and_variable_visibility): Do not handle alias pairs.
30406         * cgraph.c (varpool_externally_visible_p): Update prototype.
30407         * varpool.c (varpool_add_new_variable): Update.
30409 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30411         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30413 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
30415         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30417         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30419 2013-04-09  Marek Polacek  <polacek@redhat.com>
30421         PR tree-optimization/48762
30422         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30424 2013-04-09  Richard Biener  <rguenther@suse.de>
30426         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30427         dealing with cost.
30428         (vect_build_slp_tree): Likewise.
30429         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30430         calculating the cost of a SLP instance.
30431         (vect_analyze_slp_instance): Use it from here, after building
30432         the SLP tree.
30434 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
30436         PR middle-end/56883
30437         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30438         expand_omp_for_static_chunk): Use simple_p = true in
30439         force_gimple_operand_gsi calls when assigning to addressable decls.
30441 2013-04-09  Jeff Law  <law@redhat.com>
30443         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30444         when the boolean was created by converting a wider object which
30445         had a boolean range.
30447 2013-04-09  Richard Biener  <rguenther@suse.de>
30449         * tree-vectorizer.h (slp_void_p): Remove.
30450         (slp_tree): Typedef before _slp_tree declaration.
30451         (struct _slp_tree): Use a vector of slp_tree as children.
30452         (vect_get_place_in_interleaving_chain): Remove.
30453         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30454         Move ...
30455         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30456         and make static.
30457         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30458         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30459         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30460         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30461         Use slp_node instead of slp_void_p and adjust.
30463 2013-04-09  Richard Biener  <rguenther@suse.de>
30465         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30466         work that is not necessary.
30468 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
30470         PR tree-optimization/56854
30471         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30472         forward into clobber stmts if it would change MEM_REF lhs into
30473         non-MEM_REF.
30475 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
30477         * tree.c (type_hash_lookup, type_hash_add): Make static.
30478         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30480 2013-04-09  Richard Biener  <rguenther@suse.de>
30482         * tree.h (unsave_expr_now): Remove.
30483         * tree-inline.c (mark_local_for_remap_r): Remove.
30484         (unsave_expr_1): Likewise.
30485         (unsave_r): Likewise.
30486         (unsave_expr_now): Likewise.
30487         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30488         (propagate_tree_value): Likewise.
30490 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
30492         * doc/rtl.texi (sequence): Rewrite documentation to match the
30493         current use of SEQUENCE rtl objects.
30494         * rtl.def (SEQUENCE): Likewise.
30496         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30497         Update documentation.
30498         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30499         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30501         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30503 2013-04-08  Teresa Johnson  <tejohnson@google.com>
30505         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30506         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30507         methods.
30508         (estimate_edge_size_and_time): Add comment to suggest using rounding
30509         methods.
30510         (estimate_node_size_and_time): Ditto.
30511         (remap_edge_change_prob): Use helper rounding divide methods.
30512         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30513         (gimple_mod_pow2_value_transform): Ditto.
30514         (gimple_mod_subtract_transform): Ditto.
30515         (gimple_ic_transform): Ditto.
30516         (gimple_stringops_transform): Ditto.
30517         * stmt.c (conditional_probability): Ditto.
30518         (emit_case_dispatch_table): Ditto.
30519         * lto-cgraph.c (merge_profile_summaries): Ditto.
30520         * tree-optimize.c (execute_fixup_cfg): Ditto.
30521         * cfgcleanup.c (try_forward_edges): Ditto.
30522         * cfgloopmanip.c (scale_loop_profile): Ditto.
30523         (loopify): Ditto.
30524         (duplicate_loop_to_header_edge): Ditto.
30525         (lv_adjust_loop_entry_edge): Ditto.
30526         * tree-vect-loop.c (vect_transform_loop): Ditto.
30527         * profile.c (compute_branch_probabilities): Ditto.
30528         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30529         * lto-streamer-in.c (input_cfg): Ditto.
30530         * gimple-streamer-in.c (input_bb): Ditto.
30531         * ipa-cp.c (update_profiling_info): Ditto.
30532         (update_specialized_profile): Ditto.
30533         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30534         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30535         rounding methods.
30536         * sched-rgn.c (compute_dom_prob_ps): Ditto.
30537         (compute_trg_info): Ditto.
30538         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30539         (purge_dead_edges): Ditto.
30540         * loop-unswitch.c (unswitch_loop): Ditto.
30541         * cgraphclones.c (cgraph_clone_edge): Ditto.
30542         (cgraph_clone_node): Ditto.
30543         * tree-inline.c (copy_bb): Ditto.
30544         (copy_edges_for_bb): Ditto.
30545         (initialize_cfun): Ditto.
30546         (copy_cfg_body): Ditto.
30547         (expand_call_inline): Ditto.
30549 2013-04-08  Kai Tietz  <ktietz@redhat.com>
30551         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30552         TARGET_CYGWIN64 by TARGET_64BIT.
30554 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30556         * config/epiphany/epiphany.md (GPR_1): New constant.
30557         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30558         * config/epiphany/epiphany.c (gen_compare_reg):
30559         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30560         is already in place.
30561         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30562         Don't require being called during rtl expansion; If y operlaps r0,
30563         return 0.
30564         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30565         (epiphany_expand_epilogue): Likewise.
30567         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30568         Don't use CC_FPmode for ORDERED / UNORDERED.
30569         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30571         * config/epiphany/constraints.md (CnL): New constraint.
30572         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30573         * config/epiphany/predicates.md (add_operand): Allow 1024.
30575         * config/epiphany/epiphany.md (logical_op): New code iterator.
30576         (op_mnc): New code attribute.
30577         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30578         (mov_f+1, mov_f+2): New peephole2 patterns.
30580         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30581         (cstoresi4): Also allow re-use of zero result when doing a NE
30582         comparison to a non-zero operand.
30583         Use (clobber (scratch)) for first insn if the gpr output is not needed.
30585         * config/epiphany/epiphany.md (<insn_opname>v2si3):
30586         Use gen_addsi3_i / gen_subsi3_i.
30588 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30590         PR c++/34949
30591         PR c++/50243
30592         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30593         contain anything but clobbers, at most one __builtin_stack_restore,
30594         optionally debug stmts and final resx, and if it has at least one
30595         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
30596         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30597         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30598         which isn't defaut definition, remove them.
30599         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30600         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30601         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30602         with MEM_REF LHS with SSA_NAME address.
30604 2013-04-08  Jeff Law  <law@redhat.com>
30606         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30608 2013-04-08  Richard Biener  <rguenther@suse.de>
30610         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30611         extra newline.
30612         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30613         determined vector type.
30614         (vect_analyze_data_refs): Likewise.
30615         (vect_get_new_vect_var): Adjust.
30616         (vect_create_destination_var): Preserve SSA name versions.
30617         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30618         not dump anything here.
30620 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30622         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30623         Add member lr_slot_known.
30624         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30625         if necessary.
30626         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30627         Remove code that sets lr_slot_offset according to what a previous
30628         version of epiphany_emit_save_restore used to do.
30629         (epiphany_emit_save_restore): When doing an lr save or restore,
30630         set/verify lr_slot_known and lr_slot_offset.
30632 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
30634         PR target/54338
30635         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30636         in ALL_REGS.
30638 2013-04-08  Richard Biener  <rguenther@suse.de>
30640         * alias.c (find_base_term): Fix thinko in previous change.
30642 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30644         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30645         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30646         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
30647         if possible to compute val.
30648         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30649         For QImode integers don't require anything about precision.  Use
30650         const_with_all_bytes_same to find out if the constant doesn't have
30651         repeated bytes in it.
30653 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30655         * config/s390/s390.c (s390_expand_insv): Only accept insertions
30656         within mode size.
30658 2013-04-08  Marek Polacek  <polacek@redhat.com>
30660         PR rtl-optimization/48182
30661         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30662         value to 1.
30664 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30666         PR target/55487
30667         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30668         nuses, make sure we have a label.
30670 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30672         PR target/56843
30673         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30674         (rs6000_emit_swdiv_low_precision): Remove.
30675         (rs6000_emit_swdiv): Rewrite to handle between one and four
30676         iterations of Newton-Raphson generally; modify required number of
30677         iterations for some cases.
30678         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30680 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
30682         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30683         set-but-unused variable.
30685         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30686         basic blocks of released function bodies garbage-collectable.
30688         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30689         (struct rtl_opt_pass): Add TODO_df_finish.
30691         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30693 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30695         * config/arm/constraints.md (q): New constraint.
30696         * config/arm/ldrdstrd.md: New file.
30697         * config/arm/arm.md (ldrdstrd.md) New include.
30698         (arm_movdi): Use "q" instead of "r" constraint
30699         for double-word memory access.
30700         (movdf_soft_insn): Likewise.
30701         * config/arm/vfp.md (movdi_vfp): Likewise.
30702         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30703         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30704         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30705         (mem_ok_for_ldrd_strd): Likewise.
30706         (output_move_double): Update assertion.
30708 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30710         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30712 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30714         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30715         define_insn_and_split.
30716         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30718 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30720         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30721         define_insn_and_split.
30722         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30723         (shiftsi3_compare): New pattern.
30724         (rrx): New pattern.
30725         * config/arm/unspecs.md (UNSPEC_RRX): New.
30727 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30729         * config/arm/arm.md (negdi_extendsidi): New pattern.
30730         (negdi_zero_extendsidi): Likewise.
30732 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30734         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30735         define_insn_and_split.
30736         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30737         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30739 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30741         * config/arm/arm.md (arm_subdi3): Convert define_insn into
30742         define_insn_and_split.
30743         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30744         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30746 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30748         * config/arm/arm.md (subsi3_carryin): New pattern.
30749         (subsi3_carryin_const): Likewise.
30750         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30751         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30753 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30755         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30757 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30759         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30760         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30762 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30764         * config/arm/arm.c (arm_expand_builtin): Change fcode
30765         type to unsigned int.
30767 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30769         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30771 2013-04-04  Ian Lance Taylor  <iant@google.com>
30773         * doc/standards.texi (Standards): The Go frontend supports the Go 1
30774         language standard.
30776 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
30778         PR middle-end/56729
30779         * df-scan.c (df_insn_delete): Disable failing assert.
30781 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30783         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30784         New function prototype.
30785         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30786         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30787         (arm_builtin_vectorized_function): New function.
30789 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30791         * config/arm/arm_neon_builtins.def: New file.
30792         * config/arm/arm.c (neon_builtin_data): Move contents to
30793         arm_neon_builtins.def.
30794         (enum arm_builtins): Include neon builtin definitions.
30795         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30796         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30798 2013-04-04  Marek Polacek  <polacek@redhat.com>
30800         PR tree-optimization/48186
30801         * predict.c (maybe_hot_frequency_p): Return false if
30802         HOT_BB_FREQUENCY_FRACTION is 0.
30803         (cgraph_maybe_hot_edge_p): Likewise.
30805 2013-04-04  Richard Biener  <rguenther@suse.de>
30807         PR tree-optimization/56826
30808         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30809         more accurately.
30811 2013-04-04  Richard Biener  <rguenther@suse.de>
30813         PR tree-optimization/56213
30814         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30815         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30817 2013-04-04  Richard Biener  <rguenther@suse.de>
30819         PR tree-optimization/56837
30820         * tree-loop-distribution.c (classify_partition): For non-zero
30821         values require that the value has the same precision as its
30822         mode to be useful as memset value.
30824 2013-04-03  Nick Clifton  <nickc@redhat.com>
30826         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30827         (fmssf4): Use fmsf.s on E3V5 architectures.
30828         (fnmasf4): Use fnmaf.s on E3V5 architectures.
30829         (fnmssf4): Use fnmsf.s on E3V5 architectures.
30831 2013-04-03  Jeff Law  <law@redhat.com>
30833         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30834         (lra-eliminations.o): Likewise.
30836 2013-04-03  Teresa Johnson  <tejohnson@google.com>
30838         * gcov-io.c (compute_working_sets): Moved most of body of old
30839         compute_working_sets here from profile.c.
30840         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30841         (gcov_working_set_t): Moved typedef here from basic-block.h
30842         (compute_working_set): Declare.
30843         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30844         (get_working_sets): Renamed from compute_working_set,
30845         replace most of body with call to new compute_working_sets.
30846         (get_exec_counts): Replace call to compute_working_sets
30847         to get_working_sets.
30848         * profile.h (get_working_sets): Renamed from compute_working_set.
30849         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30850         to get_working_sets.
30851         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30852         * gcov-dump.c (dump_working_sets): New function.
30854 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
30856         * hwint.c (sext_hwi, zext_hwi): New functions.
30857         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30858         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30859         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30860         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30861         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30862         (sext_hwi, zext_hwi): New functions.
30864 2013-04-03  Jeff Law  <law@redhat.com>
30866         PR tree-optimization/56799
30867         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30868         back test for widening conversion erroneously dropped in prior change.
30870 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30872         PR target/56809
30873         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30874         instead of next_real_insn.
30876 2013-04-03  Marek Polacek  <polacek@redhat.com>
30878         PR sanitizer/55702
30879         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30881 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30883         PR target/56809
30884         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30885         next_real_insn.
30886         (thumb1_output_casesi): Likewise.
30887         (thumb2_output_casesi): Likewise.
30889 2013-04-03  Richard Biener  <rguenther@suse.de>
30891         PR tree-optimization/56817
30892         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30893         Split out ...
30894         (tree_unroll_loops_completely_1): ... new function to manually
30895         walk the loop tree, properly defering outer loops of unrolled
30896         loops to later iterations.
30898 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30900         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30901         (vectorizable_load): Likewise.
30902         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30903         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30905 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30907         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30908         BIT_FIELD_REF.
30910 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30912         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30914 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
30916         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30918 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30920         PR tree-optimization/56790
30921         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30922         folding.
30924 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30926         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30927         Handle VEC_MERGE.
30928         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30929         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30930         equal arguments.
30932 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
30934         PR c/19449
30935         * tree.h (force_folding_builtin_constant_p): New decl.
30936         * builtins.c (force_folding_builtin_constant_p): New variable.
30937         (fold_builtin_constant_p): Fold immediately also if
30938         force_folding_builtin_constant_p.
30940 2013-04-03  Richard Biener  <rguenther@suse.de>
30942         PR tree-optimization/56812
30943         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30944         DRs of the same interleaving chain are independent.
30946 2013-04-02  Jason Merrill  <jason@redhat.com>
30948         * gdbinit.in (pbb): Use debug fn.
30950 2013-04-02  Lawrence Crowl  <crowl@google.com>
30952         * sese.h (struct ivtype_map_elt_s): Remove unused.
30953         (extern debug_ivtype_map): Remove unused.
30954         (extern eq_ivtype_map_elts): Remove unused.
30955         * sese.c (debug_ivtype_map): Removed unused.
30956         (debug_ivtype_map_1): Removed unused.
30957         (debug_ivtype_elt): Remove unused.
30958         (eq_ivtype_map_elts): Remove unused.
30960 2013-04-02  Kai Tietz  <ktietz@redhat.com>
30962         PR target/52790
30963         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30964         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30965         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30966         function.
30967         (legitimize_pe_coff_symbol): Likewise.
30968         (is_imported_p): New helper-function.
30969         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30970         for Windows x64 targets.
30971         (ix86_expand_prologue): Optimize for pe-coff targets.
30972         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30973         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30974         medium/large code-model.
30975         (legitimize_pic_address): Likewise.
30976         (legitimize_tls_address): Likewise.
30977         (ix86_expand_call): Likewise.
30978         (x86_output_mi_thunk): Likewise.
30979         (get_dllimport_decl): Add new beimport argument.
30980         (construct_plt_address): Don't assert for x64 pe-coff targets.
30981         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30982         targets.
30983         (SYMBOL_FLAG_STUBVAR): New macro.
30984         (SYMBOL_REF_STUBVAR_P): Likewise.
30985         * config/i386/winnt.c (stub_list): New structure.
30986         (stub_head): New local variable.
30987         (i386_pe_record_stub): New function.
30988         (i386_pe_file_end): Emit refptr-stubs.
30990 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
30992         PR rtl-optimization/56745
30993         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30994         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30996         PR c++/34949
30997         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30998         and both of them are MEM_REFs, just compare first argument for
30999         equality and attempt to deal even with differing offsets.
31001         PR c++/34949
31002         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
31003         of gimple_clobber_p to be MEM_REF.
31004         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
31005         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
31006         after gimplification.
31007         * asan.c (get_mem_ref_of_assignment): Don't instrument
31008         gimple_clobber_p stmts.
31009         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
31010         gimple_clobber_p stmt if they have MEM_REF lhs and
31011         are dead because of another gimple_clobber_p stmt.
31012         * tree-ssa-live.c (clear_unused_block_pointer): Treat
31013         gimple_clobber_p stmts like debug stmts.
31014         (remove_unused_locals): Remove clobbers with MEM_REF lhs
31015         that refer to unused VAR_DECLs or uninitialized values.
31016         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
31017         gimple_clobber_p stmts if they refer to removed parameters.
31018         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
31019         formatting.
31021 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
31023         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
31024         using SWI48 mode attribute.
31026 2013-04-02  Wei Mi  <wmi@google.com>
31028         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
31029         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
31030         *<rotate_insn><mode>3_mask in i386.md.
31032 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
31034         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
31036 2013-04-02  Richard Biener  <rguenther@suse.de>
31038         PR tree-optimization/56778
31039         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31040         Runtime alias tests are not supported for gather loads.
31041         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
31042         stmts referenced from SSA operands before updating SSA form.
31044 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
31045             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31047         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
31048         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
31049         * config/arm/cortex-a53.md: New file.
31050         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
31051         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
31052         * config/arm/arm.c (arm_issue_rate): Likewise.
31053         * config/arm/arm-tune.md: Regenerate
31054         * config/arm/arm-tables.opt: Regenerate.
31055         * config/arm/arm-cores.def: Add cortex-a53.
31057 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
31059         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
31060         non-static link.
31062 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
31064         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
31065         scalar load/store operations using B/H registers.
31066         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
31068 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
31070         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
31071         scalar move.
31072         * config/aarch64/aarch64.c
31073         (aarch64_simd_scalar_immediate_valid_for_move): New.
31074         * config/aarch64/aarch64-protos.h
31075         (aarch64_simd_scalar_immediate_valid_for_move): New.
31076         * config/aarch64/constraints.md (Dh, Dq): New.
31077         * config/aarch64/iterators.md (hq): New.
31079 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
31081         * reorg.c (get_branch_condition): Deal with conditional returns.
31082         (fill_simple_delay_slots): Remove dead code dealing with jumps.
31084 2013-04-01  Wei Mi  <wmi@google.com>
31086         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
31087         Truncate operand 2 using %b asm operand modifier.
31088         (*<shift_insn><mode>3_mask): Ditto.
31089         (*<rotate_insn><mode>3_mask): Ditto.
31091 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
31093         PR middle-end/56798
31094         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
31096 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
31098         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
31099         of next_real_insn.
31100         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
31102 2013-03-30  Lawrence Crowl  <crowl@google.com>
31104         * dse.c (clear_alias_sets): Remove never set.
31105         (disqualified_clear_alias_sets): Remove never set.
31106         (clear_alias_mode_pool): Remove never set.
31107         (dse_step0): Remove condition that is never true.
31108         (canon_address): Remove condition that is never true.
31109         (dse_step7): Remove condition that is never true.
31110         (rest_of_handle_dse): Remove condition that is never true.
31111         (rest_of_handle_dse::did_global): Remove never read from above.
31112         (dse_step2_spill): Remove never called from above.
31113         (dse_step5_spill): Remove never called from above.
31115 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
31117         * doc/md.texi (Standard Names) <casesi>: Update documentation for
31118         JUMP_TABLE_DATA changes.
31119         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
31120         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
31121         (Insns) <jump_table_data>: New entry.
31122         * doc/tm.texi: Regenerate.
31124         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
31126         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
31127         for table jump at the end of a basic block using tablejump_p.
31128         * targhooks.c (default_invalid_within_doloop): Likewise.
31129         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
31130         target hook implementation that is identical to the default hook.
31131         (rs6000_invalid_within_doloop): Remove.
31133         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
31134         unused variable from tablejump_p call.
31136         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
31137         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
31138         (INSN_DELETED_P): Likewise.
31139         (emit_jump_table_data): New prototype.
31140         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
31141         after 4th as unused.
31142         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
31143         * sched-vis.c (print_insn): Likewise.
31144         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
31145         insn for compatibility with back ends that use next_active_insn to
31146         identify jump table data.
31147         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
31148         (remove_insn): Likewise.
31149         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
31150         to be emitted.
31151         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
31152         (emit_jump_table_data): New function.
31154         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
31155         basic block, a JUMP_TABLE_DATA never is.
31156         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
31157         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
31158         off from code handling real insns.
31159         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
31160         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
31161         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
31162         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
31163         is not a NONDEBUG_INSN_P.
31164         * ira-costs.c (scan_one_insn): Likewise.
31165         * jump.c (mark_all_labels): Likewise.
31166         (mark_jump_label_1): Likewise.
31167         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31168         * lra.c (get_insn_freq): Expect all insns reaching here to be in
31169         a basic block.
31170         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
31171         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
31172         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
31173         JUMP_TABLE_DATA_P insns.
31174         (calculate_elim_costs_all_insns): Likewise.
31175         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
31176         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
31177         (delete_output_reload): Code style fixups.
31178         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
31179         insn flags on this non-insn.
31180         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
31181         as scheduling barriers, for pre-change compatibility.
31182         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
31183         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
31185         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
31186         redundant JUMP_TABLE_DATA_P test.
31187         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
31188         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31189         (frv_for_each_packet): Likewise.
31190         * config/i386/i386.c (min_insn_size): Likewise.
31191         (ix86_avoid_jump_mispredicts): Likewise.
31192         * config/m32r/m32r.c (m32r_is_insn): Likewise.
31193         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
31194         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31195         (mips16_insn_length): Robustify.
31196         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
31197         (mips16_split_long_branches): Likewise.
31198         * config/pa/pa.c (pa_combine_instructions): Likewise.
31199         * config/rs6000/rs6000.c (get_next_active_insn): Treat
31200         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
31201         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
31202         as contributing to pool range lengths.
31203         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
31204         Remove redundant JUMP_TABLE_DATA_P test.
31205         (sh_loop_align): Likewise.
31206         (split_branches): Likewise.
31207         (sh_insn_length_adjustment): Likewise.
31208         * config/spu/spu.c (get_branch_target): Likewise.
31210 2013-03-29  Jan Hubicka  <jh@suse.cz>
31212         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
31213         gcov streaming; stream hot bb threshold to ltrans.
31214         * predict.c (get_hot_bb_threshold): Break out from ....
31215         (maybe_hot_count_p): ... here.
31216         (set_hot_bb_threshold): New function.
31217         * lto-section-in.c (lto_section_name): Add profile.
31218         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
31219         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
31220         and data-streamer.h
31221         (histogram_entry): New structure.
31222         (histogram, histogram_pool): New global vars.
31223         (histogram_hash): New structure.
31224         (histogram_hash::hash): New method.
31225         (histogram_hash::equal): Likewise.
31226         (account_time_size): New function.
31227         (cmp_counts): New function.
31228         (dump_histogram): New function.
31229         (ipa_profile_generate_summary): New function.
31230         (ipa_profile_write_summary): New function.
31231         (ipa_profile_read_summary): New function.
31232         (ipa_profile): Decide on threshold.
31233         (pass_ipa_profile): Add ipa_profile_write_summary and
31234         ipa_profile_read_summary.
31235         * Makefile.in (ipa.o): Update dependencies.
31236         * lto-streamer.h (LTO_section_ipa_profile): New section.
31238 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
31240         * tree.h (VAR_P): New.
31242 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
31244         PR lto/56777
31245         * doc/invoke.texi ([-fwhole-program]): Fix typo.
31247 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
31249         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
31250         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31251         (control_flow_insn_p): Likewise.
31252         * cfgrtl.c (duplicate_insn_chain): Likewise.
31253         * final.c (get_attr_length_1): Likewise.
31254         (shorten_branches): Likewise.
31255         (final_scan_insn): Likewise.
31256         * function.c (instantiate_virtual_regs): Likewise.
31257         * gcse.c (insert_insn_end_basic_block): Likewise.
31258         * ira-costs.c (scan_one_insn): Likewise.
31259         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31260         * lra.c (check_rtl): Likewise.
31261         * reload1.c (elimination_costs_in_insn): Likewise.
31262         * reorg.c (follow_jumps): Likewise.
31264         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
31265         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31266         (thumb_far_jump_used_p): Likewise.
31267         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
31268         (workaround_speculation): Likewise.
31269         (add_sched_insns_for_speculation): Likewise.
31270         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
31271         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31272         (frv_for_each_packet): Likewise.
31273         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
31274         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
31275         (final_emit_insn_group_barriers): Likewise.
31276         * config/m32r/m32r.c (m32r_is_insn): Likewise.
31277         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31278         (mips16_insn_length): Likewise.
31279         * config/pa/pa.c (pa_reorg): Likewise.
31280         (pa_combine_instructions): Likewise.
31281         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
31282         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
31283         (sh_reorg): Likewise.
31284         (split_branches): Likewise.
31285         * config/spu/spu.c (get_branch_target): Likewise.
31287         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
31288         JUMP_TABLE_DATA_P.
31290 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
31292         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
31293         Fix declaration name.
31295 2013-03-28  Lawrence Crowl  <crowl@google.com>
31297         * graphds.h (struct graph.indicies): Remove unused.
31298         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
31299         (SCOP_ORIGINAL_PDDRS): Remove unused.
31300         * sese.h (extern insert_loop_close_phis): Removed unused.
31301         (extern insert_guard_phis): Removed unused.
31302         (extern ivtype_map_elt_info): Removed unused.
31303         (new_ivtype_map_elt): Removed unused.
31304         * sese.c (ivtype_map_elt_info): Removed unused.
31306 2013-03-28  Lawrence Crowl  <crowl@google.com>
31308         * Makefile.in: Add several missing include dependences.
31309         (DUMPFILE_H): New.
31310         (test-dump.o): New.  This object is not added to any executable,
31311         but is present for ad-hoc testing.
31312         * bitmap.c
31313         (debug (const bitmap_head_def &)): New.
31314         (debug (const bitmap_head_def *)): New.
31315         * bitmap.h
31316         (extern debug (const bitmap_head_def &)): New.
31317         (extern debug (const bitmap_head_def *)): New.
31318         * cfg.c
31319         (debug (edge_def &)): New.
31320         (debug (edge_def *)): New.
31321         * cfghooks.c
31322         (debug (basic_block_def &)): New.
31323         (debug (basic_block_def *)): New.
31324         * dumpfile.h
31325         (dump_node (const_tree, int, FILE *)): Correct source file.
31326         * dwarf2out.c
31327         (debug (die_struct &)): New.
31328         (debug (die_struct *)): New.
31329         * dwarf2out.h
31330         (extern debug (die_struct &)): New.
31331         (extern debug (die_struct *)): New.
31332         * gimple-pretty-print.c
31333         (debug (gimple_statement_d &)): New.
31334         (debug (gimple_statement_d *)): New.
31335         * gimple-pretty-print.h
31336         (extern debug (gimple_statement_d &)): New.
31337         (extern debug (gimple_statement_d *)): New.
31338         * ira-build.c
31339         (debug (ira_allocno_copy &)): New.
31340         (debug (ira_allocno_copy *)): New.
31341         (debug (ira_allocno &)): New.
31342         (debug (ira_allocno *)): New.
31343         * ira-int.h
31344         (extern debug (ira_allocno_copy &)): New.
31345         (extern debug (ira_allocno_copy *)): New.
31346         (extern debug (ira_allocno &)): New.
31347         (extern debug (ira_allocno *)): New.
31348         * ira-lives.c
31349         (debug (live_range &)): New.
31350         (debug (live_range *)): New.
31351         * lra-int.h
31352         (debug (lra_live_range &)): New.
31353         (debug (lra_live_range *)): New.
31354         * lra-lives.c
31355         (debug (lra_live_range &)): New.
31356         (debug (lra_live_range *)): New.
31357         * omega.c
31358         (debug (omega_pb_d &)): New.
31359         (debug (omega_pb_d *)): New.
31360         * omega.h
31361         (extern debug (omega_pb_d &)): New.
31362         (extern debug (omega_pb_d *)): New.
31363         * print-rtl.c
31364         (debug (const rtx_def &)): New.
31365         (debug (const rtx_def *)): New.
31366         * print-tree.c
31367         (debug_tree (tree): Move within file.
31368         (debug_raw (const tree_node &)): New.
31369         (debug_raw (const tree_node *)): New.
31370         (dump_tree_via_hooks (const tree_node *, int)): New.
31371         (debug (const tree_node &)): New.
31372         (debug (const tree_node *)): New.
31373         (debug_verbose (const tree_node &)): New.
31374         (debug_verbose (const tree_node *)): New.
31375         (debug_head (const tree_node &)): New.
31376         (debug_head (const tree_node *)): New.
31377         (debug_body (const tree_node &)): New.
31378         (debug_body (const tree_node *)): New.
31379         (debug_vec_tree (tree): Move and reimplement in terms of dump.
31380         (debug (vec<tree, va_gc> &)): New.
31381         (debug (vec<tree, va_gc> *)): New.
31382         * rtl.h
31383         (extern debug (const rtx_def &)): New.
31384         (extern debug (const rtx_def *)): New.
31385         * sbitmap.c
31386         (debug_raw (simple_bitmap_def &)): New.
31387         (debug_raw (simple_bitmap_def *)): New.
31388         (debug (simple_bitmap_def &)): New.
31389         (debug (simple_bitmap_def *)): New.
31390         * sbitmap.h
31391         (extern debug (simple_bitmap_def &)): New.
31392         (extern debug (simple_bitmap_def *)): New.
31393         (extern debug_raw (simple_bitmap_def &)): New.
31394         (extern debug_raw (simple_bitmap_def *)): New.
31395         * sel-sched-dump.c
31396         (debug (vinsn_def &)): New.
31397         (debug (vinsn_def *)): New.
31398         (debug_verbose (vinsn_def &)): New.
31399         (debug_verbose (vinsn_def *)): New.
31400         (debug (expr_def &)): New.
31401         (debug (expr_def *)): New.
31402         (debug_verbose (expr_def &)): New.
31403         (debug_verbose (expr_def *)): New.
31404         (debug (vec<rtx> &)): New.
31405         (debug (vec<rtx> *)): New.
31406         * sel-sched-dump.h
31407         (extern debug (vinsn_def &)): New.
31408         (extern debug (vinsn_def *)): New.
31409         (extern debug_verbose (vinsn_def &)): New.
31410         (extern debug_verbose (vinsn_def *)): New.
31411         (extern debug (expr_def &)): New.
31412         (extern debug (expr_def *)): New.
31413         (extern debug_verbose (expr_def &)): New.
31414         (extern debug_verbose (expr_def *)): New.
31415         (extern debug (vec<rtx> &)): New.
31416         (extern debug (vec<rtx> *)): New.
31417         * sel-sched-ir.h
31418         (_list_iter_cond_expr): Make inline instead of static.
31419         * sreal.c
31420         (debug (sreal &)): New.
31421         (debug (sreal *)): New.
31422         * sreal.h
31423         (extern debug (sreal &)): New.
31424         (extern debug (sreal *)): New.
31425         * tree.h
31426         (extern debug_raw (const tree_node &)): New.
31427         (extern debug_raw (const tree_node *)): New.
31428         (extern debug (const tree_node &)): New.
31429         (extern debug (const tree_node *)): New.
31430         (extern debug_verbose (const tree_node &)): New.
31431         (extern debug_verbose (const tree_node *)): New.
31432         (extern debug_head (const tree_node &)): New.
31433         (extern debug_head (const tree_node *)): New.
31434         (extern debug_body (const tree_node &)): New.
31435         (extern debug_body (const tree_node *)): New.
31436         (extern debug (vec<tree, va_gc> &)): New.
31437         (extern debug (vec<tree, va_gc> *)): New.
31438         * tree-cfg.c
31439         (debug (struct loop &)): New.
31440         (debug (struct loop *)): New.
31441         (debug_verbose (struct loop &)): New.
31442         (debug_verbose (struct loop *)): New.
31443         * tree-dump.c: Add header dependence.
31444         * tree-flow.h
31445         (extern debug (struct loop &)): New.
31446         (extern debug (struct loop *)): New.
31447         (extern debug_verbose (struct loop &)): New.
31448         (extern debug_verbose (struct loop *)): New.
31449         * tree-data-ref.c
31450         (debug (data_reference &)): New.
31451         (debug (data_reference *)): New.
31452         (debug (vec<data_reference_p> &)): New.
31453         (debug (vec<data_reference_p> *)): New.
31454         (debug (vec<ddr_p> &)): New.
31455         (debug (vec<ddr_p> *)): New.
31456         * tree-data-ref.h
31457         (extern debug (data_reference &)): New.
31458         (extern debug (data_reference *)): New.
31459         (extern debug (vec<data_reference_p> &)): New.
31460         (extern debug (vec<data_reference_p> *)): New.
31461         (extern debug (vec<ddr_p> &)): New.
31462         (extern debug (vec<ddr_p> *)): New.
31463         * tree-ssa-alias.c
31464         (debug (pt_solution &)): New.
31465         (debug (pt_solution *)): New.
31466         * tree-ssa-alias.h
31467         (extern debug (pt_solution &)): New.
31468         (extern debug (pt_solution *)): New.
31469         * tree-ssa-alias.c
31470         (debug (_var_map &)): New.
31471         (debug (_var_map *)): New.
31472         (debug (tree_live_info_d &)): New.
31473         (debug (tree_live_info_d *)): New.
31474         * tree-ssa-alias.h
31475         (extern debug (_var_map &)): New.
31476         (extern debug (_var_map *)): New.
31477         (extern debug (tree_live_info_d &)): New.
31478         (extern debug (tree_live_info_d *)): New.
31480 2013-03-28  Jan Hubicka  <jh@suse.cz>
31482         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31484 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
31486         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31487         record only when desired or required.
31489 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
31491         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31492         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
31494 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31496         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31497         (*andsi3_compare0_uxtw): New pattern.
31498         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31499         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31501 2013-03-28  Jan Hubicka  <jh@suse.cz>
31503         * data-streamer-in.c (streamer_read_gcov_count): New function.
31504         * gimple-streamer-out.c: Include value-prof.h.
31505         (output_gimple_stmt): Output histogram.
31506         (output_bb): Use streamer_write_gcov_count.
31507         * value-prof.c: Include data-streamer.h
31508         (dump_histogram_value): Add HIST_TYPE_MAX.
31509         (stream_out_histogram_value): New function.
31510         (stream_in_histogram_value): New function.
31511         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31512         (stream_out_histogram_value, stream_in_histogram_value): Declare.
31513         * data-streamer-out.c (streamer_write_gcov_count): New function.
31514         (streamer_write_gcov_count_stream): New function.
31515         * lto-cgraph.c (lto_output_edge): Update counter streaming.
31516         (lto_output_node): Likewise.
31517         (input_node, input_edge): Likewise.
31518         * lto-streamer-out.c (output_cfg): Update streaming.
31519         * lto-streamer-in.c (input_cfg): Likewise.
31520         * data-streamer.h (streamer_write_gcov_count,
31521         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31522         * gimple-streamer-in.c: Include value-prof.h
31523         (input_gimple_stmt): Input histograms.
31524         (input_bb): Update profile streaming.
31526 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31528         * genmodes.c (emit_max_int): New function.
31529         (emit_insn_modes_h): Added call to emit_max_function.
31530         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31531         Added doc.
31532         * machmode.def: Fixed comment.
31534 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31536         * combine.c (try_combine): Removed useless assert.
31537         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31539 2013-03-28  Marek Polacek  <polacek@redhat.com>
31540             Richard Biener  <rguenther@suse.de>
31542         PR tree-optimization/56695
31543         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31544         build signed result of a vector comparison.
31545         * tree-cfg.c (verify_gimple_comparison): Check that a result
31546         of a vector comparison has signed type.
31548 2013-03-28  Richard Biener  <rguenther@suse.de>
31550         PR tree-optimization/37021
31551         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31552         do not restrict gaps between groups.
31553         * tree-vect-stmts.c (vectorizable_load): Properly account for
31554         a gap between groups.
31556 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
31558         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31559         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31560         is not enabled.
31562 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
31564         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31565         * doc/extend.texi (Named Address Spaces): Ditto.
31566         (Variable Attributes): Ditto.
31568 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31570         * config.build: Add support for cygwin x64 target.
31571         * config.gcc: Likewise.
31572         * config.host: Likewise.
31573         * configure.ac: Likewise
31574         * configure: Regenerated.
31576 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31578         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31579         * config/i386/t-cygwin-w64: New file.
31580         * config/i386/cygwin-w64.h: New file.
31581         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31582         and add support for x64-cygwin target.
31583         (CPP_SPEC): Likewise.
31584         (CXX_WRAP_SPEC_LIST): Undefine before define.
31585         (LIBGCJ_SONAME): Use 15 as version.
31587 2013-03-27  Richard Biener  <rguenther@suse.de>
31589         PR tree-optimization/56716
31590         * tree-ssa-structalias.c (perform_var_substitution): Adjust
31591         dumping for ref nodes.
31593 2013-03-27  Martin Jambor  <mjambor@suse.cz>
31595         PR tree-optimization/55334
31596         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31597         restricted pointers to arrays.
31599 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
31601         * Makefile.in (.SUFFIXES): Add .cc.
31602         (.c.o): Apply same recipe for implicit rule .cc.o.
31604 2013-03-27  Richard Biener  <rguenther@suse.de>
31606         PR tree-optimization/37021
31607         * tree-vect-data-refs.c (vect_check_strided_load): Allow
31608         REALPART/IMAGPART_EXPRs around the supported refs.
31609         * tree-ssa-structalias.c (find_func_aliases): Assume that
31610         floating-point values are not used to transfer pointers.
31612 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
31614         * target.def (TARGET_HAS_IFUNC_P): New target hook.
31615         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31616         * doc/tm.texi: Regenerate.
31617         * targhooks.h (default_has_ifunc_p): New.
31618         * targhooks.c (default_has_ifunc_p): Ditto.
31619         * config/linux-protos.h: New file.
31620         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31621         hook for linux which disables support of indirect functions in android.
31622         * config/linux-android.c: New file.
31623         * config/t-linux-android.c: Ditto.
31624         * config.gcc: Added new object file linux-android.o.
31625         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31626         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31627         * varasm.c (do_assemble_alias): Likewise.
31628         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31629         doesn't support indirect functions.
31630         * configure: Regenerate.
31632 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
31634         PR target/56102
31635         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31636         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31637         mult-word mode.
31639 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31641         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31643 2013-03-27  Terry Guo  <terry.guo@arm.com>
31645         * config/arm/arm-cores.def: Added core cortex-r7.
31646         * config/arm/arm-tune.md: Regenerated.
31647         * config/arm/arm-tables.opt: Regenerated.
31648         * doc/invoke.texi: Added entry for core cortex-r7.
31650 2013-03-27  Walter Lee  <walt@tilera.com>
31652         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31653         double-decrement of next_scratch_regno.
31655 2013-03-27  Walter Lee  <walt@tilera.com>
31657         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31658         input operands.
31659         (insn_v1mulus): Ditto.
31660         (insn_v2muls): Ditto.
31662 2013-03-27  Walter Lee  <walt@tilera.com>
31664         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31665         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31667 2013-03-27  Walter Lee  <walt@tilera.com>
31669         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31670         (*sibcall_value): Ditto.
31672 2013-03-27  Walter Lee  <walt@tilera.com>
31674         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31675         (insn_mnz_v8qi): ... this ...
31676         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
31677         vector equivalent.
31678         (insn_v<n>mnz): Replaced by ...
31679         (insn_v1mnz): ... this ...
31680         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
31681         equivalent.
31682         (insn_mz_<mode>): Replaced by ...
31683         (insn_mz_v8qi): ... this ...
31684         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
31685         vector equivalent.
31686         (insn_v<n>mz): Replaced by ...
31687         (insn_v1mz): ... this ...
31688         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
31689         equivalent.
31691 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
31693         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31695 2013-03-26  Roland McGrath  <mcgrathr@google.com>
31697         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31698         than fprintf with a non-constant, non-format string.
31700 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31702         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31703         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
31704         operand 0 predicate.
31705         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31706         attribute.  Use general_x64nomem_operand as operand 1 predicate.
31707         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31708         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31709         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31710         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31711         (mov<mode>_insv_1): Remove expander.  Merge insn with
31712         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31713         Use general_x64nomem_operand as operand 1 predicate.
31714         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31715         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31716         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31717         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31718         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
31719         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31720         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31721         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31722         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
31723         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31724         (general_x64nomem_operand): Ditto.
31726 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31728         * config/rtems.opt: Add -pthread option.
31730 2013-03-26  Richard Biener  <rguenther@suse.de>
31732         * alias.c (find_base_term): Avoid redundant and not used recursion.
31733         (base_alias_check): Get the initial base term from the caller.
31734         (true_dependence_1): Compute and pass base terms to base_alias_check.
31735         (write_dependence_p): Likewise.
31736         (may_alias_p): Likewise.
31738 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
31740         * config/aarch64/aarch64.c (aarch64_classify_address): Support
31741         PC-relative load in SI modes and above only.
31743 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
31745         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31746         * config/arm/iwmmxt.md (WCGR0): Update.
31747         (WCGR1, WCGR2, WCGR3): Likewise.
31749 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31751         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31752         Use x64 and nox64 isa attributes.
31754 2013-03-26  Richard Biener  <rguenther@suse.de>
31756         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31757         alignment computations and rely on get_object_alignment_1
31758         for the !TYPE_P case.
31759         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31761 2013-03-26  Walter Lee  <walt@tilera.com>
31763         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31764         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31766 2013-03-25  Jeff Law  <law@redhat.com>
31768         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31769         check for INTEGRAL_TYPE_P that was missing due to checking in
31770         wrong version of prior patch.
31772 2013-03-25  Walter Lee  <walt@tilera.com>
31774         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31775         TILEGX_INSN_SHUFFLEBYTES1.
31776         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31777         shufflebytes1.
31778         (tilegx_builtins): Ditto.
31779         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31781 2013-03-25  Walter Lee  <walt@tilera.com>
31783         * config/tilegx/tilegx.md (floatsisf2): New pattern.
31784         (floatunssisf2): New pattern.
31785         (floatsidf2): New pattern.
31786         (floatunssidf2): New pattern.
31788 2013-03-25  Walter Lee  <walt@tilera.com>
31790         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31791         tests for constraint J, K, N, P.
31793 2013-03-25  Walter Lee  <walt@tilera.com>
31795         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31796         Use indirect/pcrel encoding.
31797         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31798         Ditto.
31800 2013-03-25  Steve Ellcey  <sellcey@mips.com>
31802         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31803         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31804         * config/mips/mips.c (mips_option_override): Set IMADD default.
31805         * config/mips/mips.h (PTF_AVOID_IMADD): New.
31806         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31807         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31808         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31809         * doc/invoke.texi (-mimadd/-mno-imadd): New.
31811 2013-03-25  Jeff Law  <law@redhat.com>
31813         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31814         slightly to avoid creating and folding useless trees.  Simplify
31815         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31817 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
31819         * config/i386/i386.md (*zero_extendsidi2): Merge with
31820         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
31821         * config/i386/predicates.md (x86_64_zext_operand): Rename from
31822         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
31823         targets.  Clarify comment.
31825 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31827         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31828         pass-through jump functions differently.
31829         (ipa_read_jump_function): Likewise.  Also use setter functions to set
31830         up jump functions.
31832 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31834         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31835         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31836         process it.
31837         (ipa_get_indirect_edge_target): New function.
31838         (devirtualization_time_bonus): New parameter known_aggs, pass it to
31839         ipa_get_indirect_edge_target.  Update all callers.
31840         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
31841         ipa_get_indirect_edge_target_1 instead of calling
31842         ipa_get_indirect_edge_target.
31843         (create_specialized_node): Pass aggvlas to
31844         ipcp_discover_new_direct_edges.
31846 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31848         * config/arm/arm.md (f_sels, f_seld): New types.
31849         (*cmov<mode>): New pattern.
31850         * config/arm/predicates.md (arm_vsel_comparison_operator): New
31851         predicate.
31853 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31855         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31856         POSIX-printf for mingw-hosted  builds.
31858 2013-03-25  Richard Biener  <rguenther@suse.de>
31860         PR middle-end/56694
31861         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31862         must-not-throw stmt location.
31864 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31866         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31867         Emit load-acquire versions when acq is true.
31868         (arm_emit_store_exclusive): Add rel parameter.
31869         Emit store-release versions when rel is true.
31870         (arm_split_compare_and_swap): Use acquire-release instructions
31871         instead.
31872         of barriers when appropriate.
31873         (arm_split_atomic_op): Likewise.
31874         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31875         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31876         (VUNSPEC_SLX): Likewise.
31877         (VUNSPEC_LDA): Likewise.
31878         (VUNSPEC_STL): Likewise.
31879         * config/arm/sync.md (atomic_load<mode>): New pattern.
31880         (atomic_store<mode>): Likewise.
31881         (arm_load_acquire_exclusive<mode>): Likewise.
31882         (arm_load_acquire_exclusivesi): Likewise.
31883         (arm_load_acquire_exclusivedi): Likewise.
31884         (arm_store_release_exclusive<mode>): Likewise.
31886 2013-03-25  Catherine Moore  <clm@codesourcery.com>
31888         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31889         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31890         * config/mip/predicates.md (lwsp_swsp_operand,
31891         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31892         sb16_operand, db4_operand, db7_operand, ib3_operand,
31893         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31894         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31895         andi16_operand): New predicates.
31896         * config/mips/mips.md (compression): New attribute.
31897         (enabled): New attribute.
31898         (length): Consider compression in computing length.
31899         (shift_compression): New code attribute.
31900         (*add<mode>3): New operands. Record compression.
31901         (sub<mode>3): Likewise.
31902         (one_cmpl<mode>2): Likewise.
31903         (*and<mode>3): Likewise.
31904         (*ior<mode>3): Likewise.
31905         (unnamed pattern for xor): Likewise.
31906         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31907         (*<optab><mode>3): Likewise.
31908         (*mov<mode>_internal: Likewise.
31909         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31910         (mips_unsigned_immediate_p): New.
31911         (umips_lwsp_swsp_address_p): New.
31912         (m16_based_address_p): New.
31913         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31914         (mips_unsigned_immediate_p): New prototype.
31915         (lwsp_swsp_address_p): New prototype.
31916         (m16_based_address_p): New prototype.
31917         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31918         (mips_signed_immediate_p): New function.
31919         (m16_based_address_p): New function.
31920         (lwsp_swsp_address_p): New function.
31921         (mips_print_operand_punctuation): Recognize short delay slot insns
31922         for microMIPS.add<mode>3"
31924 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31926         PR target/56720
31927         * config/arm/iterators.md (v_cmp_result): New mode attribute.
31928         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31930 2013-03-25  Richard Biener  <rguenther@suse.de>
31932         PR tree-optimization/56689
31933         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31934         any edge.
31936 2013-03-25  Richard Biener  <rguenther@suse.de>
31938         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31939         of bitmap.
31940         (memory_references): Likewise.
31941         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31942         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31943         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31944         (gather_mem_refs_in_loops): Fold into ...
31945         (analyze_memory_references): ... this.  Move initialization
31946         to tree_ssa_lim_initialize.
31947         (fill_always_executed_in): Rename to ...
31948         (fill_always_executed_in_1): ... this.
31949         (fill_always_executed_in): Move contains_call computation to
31950         this new function from ...
31951         (tree_ssa_lim_initialize): ... here.
31952         (tree_ssa_lim): Call fill_always_executed_in.
31954 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31956         * postreload.c (reload_combine): Fix code detecting returns.
31958 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31960         * function.c (emit_use_return_register_into_block): On cc0 targets,
31961         do not emit the sequence between cc0 setter and user.
31963 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31965         * config/i386/predicates.md (local_symbolic_operand): Interpret
31966         dll-imported symbols as none-local.
31968 2013-03-25  Richard Biener  <rguenther@suse.de>
31970         * tree-ssa-loop-im.c (struct depend): Remove.
31971         (struct lim_aux_data): Make depends a vec of gimples.
31972         (free_lim_aux_data): Adjust.
31973         (add_dependency): Likewise.
31974         (set_level): Likewise.
31976 2013-03-25  Richard Biener  <rguenther@suse.de>
31978         PR middle-end/56434
31979         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31980         the pointer returned by calls with ECF_MALLOC set.
31982 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31984         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31986 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31988         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31989         using MMXMODE mode iterator.
31990         (*move<mode>_internal): Merge with *movv2sf_internal and
31991         *movv2sf_internal_rex64 using MMXMODE mode iterator.
31993 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31995         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31996         (record_last_mem_set_info): Likewise.
31998         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31999         of XNEWVEC followed by memset.
32000         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
32002 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
32004         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
32005         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
32006         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
32007         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
32008         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
32009         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
32010         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
32011         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
32012         BARRIER_P instead of GET_CODE.
32014 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
32016         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
32017         inaccuracy in the probing code.
32019         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
32020         (ctrapdi4): Likewise.
32022 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
32024         * calls.c (expand_call): Add missing guard to code handling return
32025         of non-BLKmode structures in MSB.
32026         * function.c (expand_function_end): Likewise.
32028 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
32030         * combine.c (try_combine): Adjust comment.  Do not add the set of
32031         insn #0 if the destination indirectly is set or dies in insn #2.
32032         Tidy up code to distribute a new note.
32034 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
32036         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
32037         also for alternatives 16 and 17.
32039 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
32041         * config/i386/sse.md (*mov<mode>_internal): Merge with
32042         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
32043         Emit insn template depending on type attribute.  Use
32044         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32045         movd instead of movq mnemonic for interunit moves.  Rewrite mode
32046         attribute calculation.  Remove unit attribute calculation.
32047         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
32048         Set prefix_data16 attribute for DImode ssemov types.
32049         Use Ym instead of y for SSE-MMX conversion alternatives.
32050         Reorder operand constraints.
32052 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
32054         * df.h (df_insn_delete): Adjust prototype.
32055         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
32056         and let it decide whether mark the basic block dirty.
32057         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
32058         * df-scan.c (df_insn_info_delete): New helper function, split
32059         off from df_insn_delete.
32060         (df_scan_free_bb_info): Use it.
32061         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
32062         Likewise.
32063         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
32064         that the insn is actually an insn and it has a non-NULL basic block.
32065         Do not mark basic block dirty if only deleting a DEBUG_INSN.
32067 2013-03-22  Richard Biener  <rguenther@suse.de>
32069         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
32070         dep_ref members.
32071         (mem_ref_alloc): Do not allocate them.
32072         (refs_independent_p): Do not query or maintain a cache.
32074 2013-03-22  Richard Biener  <rguenther@suse.de>
32076         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
32077         (gather_mem_refs_in_loops): Do not compute it.
32078         (analyze_memory_references): Do not allocate it.
32079         (tree_ssa_lim_finalize): Do not free it.
32080         (for_all_locs_in_loop): Do not query all_refs_in_loop.
32082 2013-03-22  Richard Biener  <rguenther@suse.de>
32084         * is-a.h (as_a): Use gcc_checking_assert.
32086 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
32088         * config/aarch64/aarch64.c (aarch64_print_operand): New
32089         format specifier for printing a constant in hex.
32090         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
32091         format specifier for printing second operand.
32093 2013-03-22  Richard Biener  <rguenther@suse.de>
32095         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
32096         bitmaps.
32097         (gather_mem_refs_in_loops): Perform store accumulation here.
32098         (create_vop_ref_mapping_loop): Remove.
32099         (create_vop_ref_mapping): Likewise.
32100         (analyze_memory_references): Initialize refs_stored_in_loop.
32101         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
32102         (record_indep_loop): Remove.
32103         (record_dep_loop): New function.
32104         (ref_indep_loop_p_1): Adjust to only walk over references
32105         in the loop, not its subloops.
32106         (ref_indep_loop_p): Rename to ...
32107         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
32108         maintaining a more fine-grained cache.
32109         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
32110         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
32112 2013-03-22  Richard Biener  <rguenther@suse.de>
32114         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
32115         (struct mem_ref): Make accesses_in_loop a vec of a vec of
32116         aggregate mem_ref_loc.
32117         (free_mem_ref_locs): Inline into ...
32118         (memref_free): ... this and adjust.
32119         (mem_ref_alloc): Adjust.
32120         (mem_ref_locs_alloc): Remove.
32121         (record_mem_ref_loc): Adjust.
32122         (get_all_locs_in_loop): Rewrite into ...
32123         (for_all_locs_in_loop): ... this iterator.
32124         (rewrite_mem_ref_loc): New functor.
32125         (rewrite_mem_refs): Use for_all_locs_in_loop.
32126         (sm_set_flag_if_changed): New functor.
32127         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
32128         (ref_always_accessed): New functor.
32129         (ref_always_accessed_p): Use for_all_locs_in_loop.
32131 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
32133         * tree-pass.h (PROP_gimple_lvec): New.
32134         * passes.c (dump_properties): Handle PROP_gimple_lvec.
32135         (init_optimization_passes): Move pass_lower_vector.
32136         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
32137         PROP_gimple_lvec.
32138         (pass_lower_vector): Provide PROP_gimple_lvec.
32139         (pass_lower_vector_ssa): Likewise.
32140         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
32142 2013-03-21  Mark Wielaard  <mjw@redhat.com>
32144         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
32146 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
32148         * config/i386/i386.md (*movdi_internal): Disparage slightly
32149         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
32150         conversion alternatives.
32152 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
32154         PR middle-end/48087
32155         * diagnostic.def (DK_WERROR): New kind.
32156         * diagnostic.h (werrorcount): Define.
32157         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
32158         promoted to DK_ERROR, increment DK_WERROR counter instead of
32159         DK_ERROR counter.
32160         * toplev.c (toplev_main): Call print_ignored_options even if
32161         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
32162         even if just werrorcount is non-zero.
32164         PR debug/55608
32165         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
32166         on failure.
32167         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
32168         (string_cst_pool_decl): New function.
32169         (optimize_one_addr_into_implicit_ptr): New function.
32170         (resolve_addr_in_expr): Optimize DWARF location expression
32171         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
32172         which doesn't live in memory, but has DW_AT_location or
32173         DW_AT_const_value, or refers to a string literal, into
32174         DW_OP_GNU_implicit_pointer.
32175         (optimize_location_into_implicit_ptr): New function.
32176         (resolve_addr): If removing DW_AT_location of a variable because
32177         it was DW_OP_addr of address of the variable, but the variable doesn't
32178         live in memory, try to emit const value attribute for the initializer.
32180 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
32182         * tree.h (VECTOR_TYPE_P): New macro.
32183         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
32184         TYPE_MODE): Use it.
32185         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
32186         VEC_COND_EXPR cannot be lvalues.
32187         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
32189 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
32191         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
32192         Restrict the transformation to equal modes.
32194 2013-03-21  Richard Biener  <rguenther@suse.de>
32196         PR tree-optimization/39326
32197         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
32198         (MEM_ANALYZABLE): Adjust.
32199         (record_mem_ref_loc): Move bitmap ops ...
32200         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
32201         unanalyzable refs, do not record locations for it.
32202         (analyze_memory_references): Allocate ref zero as shared
32203         unanalyzable ref.
32204         (refs_independent_p): Do not test for unanalyzed mems here.
32205         (ref_indep_loop_p_1): Special-case disambiguation against
32206         the unanalyzed ref.
32207         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
32209 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
32211         * config/arm/arm-protos.h (tune_params): Add
32212         prefer_neon_for_64bits field.
32213         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
32214         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
32215         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
32216         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
32217         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
32218         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
32219         (arm_option_override): Handle -mneon-for-64bits new option.
32220         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
32221         (prefer_neon_for_64bits): Declare new variable.
32222         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
32223         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
32224         (arch_enabled): Handle new arch types. Remove support for onlya8
32225         and nota8.
32226         (one_cmpldi2): Use new arch names.
32227         (zero_extend<mode>di2, extend<mode>di2): Ditto.
32228         * config/arm/arm.opt (mneon-for-64bits): Add option.
32229         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
32230         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
32231         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
32232         of onlya8.
32233         * doc/invoke.texi (-mneon-for-64bits): Document.
32235 2013-03-21  Richard Biener  <rguenther@suse.de>
32237         PR tree-optimization/39326
32238         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
32239         (sort_bbs_in_loop_postorder_cmp): New function.
32240         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
32242 2013-03-21  Richard Biener  <rguenther@suse.de>
32244         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
32245         (vect_insert_into_interleaving_chain): Likewise.
32246         (vect_drs_dependent_in_basic_block): Inline ...
32247         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
32248         split out from ...
32249         (vect_analyze_data_ref_dependence): ... here.  Simplify.
32250         (vect_check_interleaving): Simplify.
32251         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
32252         (vect_slp_analyze_data_ref_dependences): ... this new function.
32253         (dr_group_sort_cmp): New function.
32254         (vect_analyze_data_ref_accesses): Compute data-reference groups
32255         here instead of in vect_analyze_data_ref_dependence.  Use
32256         a more efficient algorithm.
32257         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
32258         vect_slp_analyze_data_ref_dependences.  Call
32259         vect_analyze_data_ref_accesses earlier.
32260         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
32261         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
32262         (vect_slp_analyze_data_ref_dependences): New prototype.
32264 2013-03-21  Richard Biener  <rguenther@suse.de>
32266         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
32267         ref is stored in the loop.
32268         (find_refs_for_sm): Walk only over all stores.
32269         (store_motion_loop): Allocate from lim_bitmap_obstack.
32270         (store_motion): Likewise.
32272 2013-03-21  Richard Biener  <rguenther@suse.de>
32274         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
32275         Update virtual SSA form.
32277 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32279         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
32280         * configure: Regenerate.
32281         * config.in: Regenerate.
32282         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
32283         if !HAVE_LD_EH_FRAME_CIEV3.
32285 2013-03-21  Richard Biener  <rguenther@suse.de>
32287         * tree-cfg.c (verify_expr_no_block): New function.
32288         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
32289         nor DECL_VALUE_EXPR have locations with associated blocks.
32290         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
32291         (clear_unused_block_pointer): Remove code dealing with
32292         blocks in DECL_DEBUG_EXPR locations.
32294 2013-03-21  Richard Biener  <rguenther@suse.de>
32296         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
32297         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
32298         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
32299         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
32300         instead of DECL_DEBUG_EXPR_IS_FROM.
32301         * gimplify.c (gimplify_modify_expr): Likewise.
32302         * tree-cfg.c (verify_expr_location_1): Likewise.
32303         * tree-complex.c (create_one_component_var): Likewise.
32304         * tree-sra.c (create_access_replacement): Likewise.
32305         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
32306         (clear_unused_block_pointer): Likewise.
32307         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
32308         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
32309         * var-tracking.c (var_debug_decl): Likewise.
32310         (track_expr_p): Likewise.
32311         * tree-inline.c (add_local_variables): Likewise.  Set
32312         DECL_HAS_DEBUG_EXPR_P after copying it.
32313         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
32314         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
32316 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
32318         PR bootstrap/56656
32319         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
32320         * configure: Regenerate.
32321         * config.in: Regenerate.
32322         * config/i386/i386.md (*movdf_internal): Use
32323         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32324         movd instead of movq mnemonic for interunit moves.
32325         (*movdi_internal): Ditto.
32327 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32329         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
32330         (abd<mode>_3): New pattern.
32331         (aba<mode>_3): New pattern.
32332         (fabd<mode>_3): New pattern.
32334 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32336         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
32337         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
32338         occurrence of REGISTER_PREFIX as its empty string.
32340 2013-03-20  Jeff Law  <law@redhat.com>
32342         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
32343         addititional equivalences for equality comparisons between an SSA_NAME
32344         and a constant where the SSA_NAME was set from a widening conversion.
32346 2013-03-20  Walter Lee  <walt@tilera.com>
32348         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32350 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32352         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32353         depending on type attribute.
32354         (*movti_internal): Ditto.
32355         (*movtf_internal): Ditto.
32356         (*movxf_internal): Ditto.
32357         (*movdf_internal): Ditto.
32358         (*movsf_internal): Ditto.
32360 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32362         * config/i386/i386.md (*movti_internal): Set prefix attribute to
32363         maybe_vex for sselog1 and ssemov types.
32364         (*movdi_internal): Reorder operand constraints.
32365         (*movsi_internal): Ditto.  Set prefix attribute to
32366         maybe_vex for sselog1 and ssemov types.
32367         (*movtf_internal): Set prefix attribute to maybe_vex
32368         for sselog1 and ssemov types.
32369         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
32370         DImode ssemov types.  Reorder operand constraints.
32371         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
32372         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
32373         attribute for SImode ssemov types.  Reorder operand constraints.
32375 2013-03-20  Martin Jambor  <mjambor@suse.cz>
32377         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32378         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32380 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
32382         * config/rs6000/predicates.md (indexed_address, update_address_mem
32383         update_indexed_address_mem): New predicates.
32384         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32385         attribute for load/store instructions.
32386         * config/rs6000/dfp.md (movsd_store): Likewise.
32387         (movsd_load): Likewise.
32388         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32389         (unnamed HI->DI extend define_insn): Likewise.
32390         (unnamed SI->DI extend define_insn): Likewise.
32391         (unnamed QI->SI extend define_insn): Likewise.
32392         (unnamed QI->HI extend define_insn): Likewise.
32393         (unnamed HI->SI extend define_insn): Likewise.
32394         (unnamed HI->SI extend define_insn): Likewise.
32395         (extendsfdf2_fpr): Likewise.
32396         (movsi_internal1): Likewise.
32397         (movsi_internal1_single): Likewise.
32398         (movhi_internal): Likewise.
32399         (movqi_internal): Likewise.
32400         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32401         attribute for load/store instructions.
32402         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32403         instructions.
32404         (mov<mode>_softfloat): Likewise.
32405         (mov<mode>_hardfloat32): Likewise.
32406         (mov<mode>_hardfloat64): Likewise.
32407         (mov<mode>_softfloat64): Likewise.
32408         (movdi_internal32): Likewise.
32409         (movdi_internal64): Likewise.
32410         (probe_stack_<mode>): Likewise.
32412 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
32414         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32415         floating point, and decimal floating point to reload iterator.
32417         * config/rs6000/constraints.md (wl constraint): New constraints to
32418         return FLOAT_REGS if certain options are used to reduce the number
32419         of separate patterns that exist in the file.
32420         (wx constraint): Likewise.
32421         (wz constraint): Likewise.
32423         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32424         -mdebug=reg, print wg, wl, wx, and wz constraints.
32425         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32426         Initialize the reload functions for 64-bit binary/decimal floating
32427         point types.
32428         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32429         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32430         create the buffer on the stack to overcome not having a 32-bit
32431         load and store.
32432         (rs6000_emit_move): Likewise.
32433         (rs6000_secondary_memory_needed_rtx): Likewise.
32434         (rs6000_alloc_sdmode_stack_slot): Likewise.
32435         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32436         via xxlxor, just like DFmode 0.0.
32438         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32439         define as 1 if we are running on a power7 or newer.
32440         (enum r6000_reg_class_enum): Add new constraints.
32442         * config/rs6000/dfp.md (movsd): Delete, combine with binary
32443         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
32444         with other moves by using conditional constraits (wg).  Use LFIWZX
32445         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
32446         (movsd splitter): Likewise.
32447         (movsd_hardfloat): Likewise.
32448         (movsd_softfloat): Likewise.
32450         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32451         binary and decimal floating point moves.
32452         (fmove_ok): New attributes to combine binary and decimal floating
32453         point moves, and to combine power6x (mfpgpr) moves along normal
32454         floating moves.
32455         (real_value_to_target): Likewise.
32456         (f32_lr): Likewise.
32457         (f32_lm): Likewise.
32458         (f32_li): Likewise.
32459         (f32_sr): Likewise.
32460         (f32_sm): Likewise.
32461         (f32_si): Likewise.
32462         (movsf): Combine binary and decimal floating point moves.  Combine
32463         power6x (mfpgpr) moves with other moves by using conditional
32464         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
32465         (mov<mode> for SFmode/SDmode); Likewise.
32466         (SFmode/SDmode splitters): Likewise.
32467         (movsf_hardfloat): Likewise.
32468         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32469         (movsf_softfloat): Likewise.
32470         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32472         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32473         wx and wz constraints.
32475         * config/rs6000/constraints.md (wg constraint): New constraint to
32476         return FLOAT_REGS if -mmfpgpr (power6x) was used.
32478         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32479         constraint.
32481         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32482         -mdebug=reg, print wg, wl, wx, and wz constraints.
32483         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32484         Initialize the reload functions for 64-bit binary/decimal floating
32485         point types.
32486         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32487         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32488         create the buffer on the stack to overcome not having a 32-bit
32489         load and store.
32490         (rs6000_emit_move): Likewise.
32491         (rs6000_secondary_memory_needed_rtx): Likewise.
32492         (rs6000_alloc_sdmode_stack_slot): Likewise.
32493         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32494         via xxlxor, just like DFmode 0.0.
32496         * config/rs6000/dfp.md (movdd): Delete, combine with binary
32497         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
32498         with other moves by using conditional constraits (wg).  Use LFIWZX
32499         and STFIWX for loading SDmode on power7.
32500         (movdd splitters): Likewise.
32501         (movdd_hardfloat32): Likewise.
32502         (movdd_softfloat32): Likewise.
32503         (movdd_hardfloat64_mfpgpr): Likewise.
32504         (movdd_hardfloat64): Likewise.
32505         (movdd_softfloat64): Likewise.
32507         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32508         64-bit binary and decimal floating point moves.
32509         (FMOVE64X): Likewise.
32510         (movdf): Combine 64-bit binary and decimal floating point moves.
32511         Combine power6x (mfpgpr) moves with other moves by using
32512         conditional constraits (wg).
32513         (mov<mode> for DFmode/DDmode): Likewise.
32514         (DFmode/DDmode splitters): Likewise.
32515         (movdf_hardfloat32): Likewise.
32516         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32517         (movdf_softfloat32): Likewise.
32518         (movdf_hardfloat64_mfpgpr): Likewise.
32519         (movdf_hardfloat64): Likewise.
32520         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32521         (movdf_softfloat64): Likewise.
32522         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32523         (reload_<mode>_load): Move to later in the file so they aren't in
32524         the middle of the floating point move insns.
32525         (reload_<mode>_store): Likewise.
32527         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32528         constraint.
32530         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32531         constraint if -mdebug=reg.
32532         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32533         Enable using dd reload support if needed.
32535         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32536         binary and decimal floating point moves in rs6000.md.
32537         (movtd_internal): Likewise.
32539         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32540         decimal floating point moves.
32541         (movtf): Likewise.
32542         (movtf_internal): Likewise.
32543         (mov<mode>_internal, TDmode/TFmode): Likewise.
32544         (movtf_softfloat): Likewise.
32545         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32547         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32548         movdi_internal64, using wg constraint for move direct operations.
32549         (movdi_internal64): Likewise.
32551         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32552         MODES_TIEABLE_P for selected modes.  Print the numerical value of
32553         the various virtual registers. Use GPR/FPR first/last values,
32554         instead of hard coding the register numbers.  Print which modes
32555         have reload functions registered.
32556         (rs6000_option_override_internal): If -mdebug=reg, trace the options
32557         settings before/after setting cpu, target and subtarget settings.
32558         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32559         and for secondary reload failures in rs6000_secondary_reload_inner.
32560         (rs6000_secondary_reload_fail): Likewise.
32561         (rs6000_secondary_reload_inner): Likewise.
32563         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32564         macros for first/last GPR and FPR registers.
32565         (LAST_GPR_REGNO): Likewise.
32566         (FIRST_FPR_REGNO): Likewise.
32567         (LAST_FPR_REGNO): Likewise.
32569         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32570         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32571         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32572         (vcond<mode><mode>): Likewise.
32573         (vcondu<mode><mode>): Likewise.
32574         (vector_gtu<mode>): Likewise.
32575         (vector_gte<mode>): Likewise.
32576         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32577         to prevent the compiler from converting DImode operations to TImode.
32578         (ior<mode>3): Likewise.
32579         (and<mode>3): Likewise.
32580         (one_cmpl<mode>2): Likewise.
32581         (nor<mode>3): Likewise.
32582         (andc<mode>3): Likewise.
32584         * config/rs6000/constraints.md (wt constraint): New constraint
32585         that returns VSX_REGS if TImode is allowed in VSX registers.
32587         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32588         constant under VSX.
32590         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32591         similar to TImode, but it is restricted to being in the GPRs.
32593         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32594         TImode to occupy a single VSX register.
32596         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32597         -mvsx-timode for power7/power8.
32598         (power7 cpu): Likewise.
32599         (power8 cpu): Likewise.
32601         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32602         sure that TFmode/TDmode take up two registers if they are ever
32603         allowed in the upper VSX registers.
32604         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32605         registers.
32606         (rs6000_init_hard_regno_mode_ok): Likewise.
32607         (rs6000_debug_reg_global): Add debugging for PTImode and wt
32608         constraint.  Print if LRA is turned on.
32609         (rs6000_option_override_internal): Give an error if -mvsx-timode
32610         and VSX is not enabled.
32611         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
32612         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32613         to reg+offset addressing.  Use PTImode when checking offset
32614         addresses for validity.
32615         (reg_offset_addressing_ok_p): Likewise.
32616         (rs6000_legitimate_offset_address_p): Likewise.
32617         (rs6000_legitimize_address): Likewise.
32618         (rs6000_legitimize_reload_address): Likewise.
32619         (rs6000_legitimate_address_p): Likewise.
32620         (rs6000_eliminate_indexed_memrefs): Likewise.
32621         (rs6000_emit_move): Likewise.
32622         (rs6000_secondary_reload): Likewise.
32623         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
32624         reloads to fpr registers to continue to use reg+offset addressing,
32625         but 64-bit reloads to altivec registers need reg+reg addressing.
32626         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32627         it.  Treat LO_SUM like a PLUS operation.
32628         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32629         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32630         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32631         registers to share a register with a smaller sized type, since VSX
32632         puts scalars in the upper 64-bits.
32633         (print_operand): Add support for PTImode.
32634         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32635         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32636         registers, but don't have arithmetic support.
32637         (rs6000_memory_move_cost): Add test for VSX.
32638         (rs6000_opt_masks): Add -mvsx-timode.
32640         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32641         for TImode.
32642         (VSs): Likewise.
32643         (VSr): Use wt constraint for TImode.
32644         (VSv): Drop TImode support.
32645         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32646         (vsx_movti_64bit): Likewise.
32647         (vsx_movti_32bit): Likewise.
32648         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32649         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32650         one '?' on the appropriate output constraint.  Do not allow TImode
32651         logical operations on 32-bit systems.
32652         (vsx_ior<mode>3): Likewise.
32653         (vsx_xor<mode>3): Likewise.
32654         (vsx_one_cmpl<mode>2): Likewise.
32655         (vsx_nor<mode>3): Likewise.
32656         (vsx_andc<mode>3): Likewise.
32657         (vsx_concat_<mode>): Likewise.
32658         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32660         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32661         OPTION_MASK_VSX_TIMODE.
32662         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32663         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32665         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32666         (TI2 iterator): New iterator for TImode, PTImode.
32667         (wd mode attribute): Add values for vector types.
32668         (movti_string): Replace TI move operations with operations for TImode
32669         and PTImode.  Add support for TImode being allowed in VSX registers.
32670         (mov<mode>_string, TImode/PTImode): Likewise.
32671         (movti_ppc64): Likewise.
32672         (mov<mode>_ppc64, TImode/PTImode): Likewise.
32673         (TI mode splitters): Likewise.
32675         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32676         constraint.
32678 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
32680         PR tree-optimization/56355
32681         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32682         Also handle integers with undefined overflow.
32684 2013-03-20  Catherine Moore  <clm@codesourcery.com>
32685             Maciej W. Rozycki  <macro@codesourcery.com>
32686             Tom de Vries  <tom@codesourcery.com>
32687             Nathan Sidwell  <nathan@codesourcery.com>
32688             Iain Sandoe  <iain@codesourcery.com>
32689             Nathan Froyd  <froydnj@codesourcery.com>
32690             Chao-ying Fu  <fu@mips.com>
32692         * doc/extend.texi: (micromips, nomicromips, nocompression):
32693         Document new function attributes.
32694         * doc/invoke.texi (minterlink-compressed, mmicromips,
32695         m14k, m14ke, m14kec): Document new options.
32696         (minterlink-mips16): Update documentation.
32697         * doc/md.texi (ZC, ZD): Document new constraints.
32698         * configure.ac (gcc_cv_as_micromips): Check if linker
32699         supports the .set micromips directive.
32700         * configure: Regenerate.
32701         * config.in: Regenerate.
32702         * config/mips/mips-tables.opt: Regenerate.
32703         * config/mips/micromips.md: New file.
32704         * constraints.md (ZC, ZD): New constraints.
32705         * config/mips/predicates.md (movep_src_register): New predicate.
32706         (movep_src_operand): New predicate.
32707         (non_volatile_mem_operand): New predicate.
32708         * config/mips/mips.md (multimem): New type.
32709         (length): Differentiate between 17-bit and 18-bit branch offsets.
32710         (MOVEP1, MOVEP2): New mode iterator.
32711         (mov_<load>l): Use ZC constraint.
32712         (mov_<load>r): Likewise.
32713         (mov_<store>l): Likewise.
32714         (mov_<store>r): Likewise.
32715         (*branch_equality<mode>_inverted): Add microMIPS support.
32716         (*branch_equality<mode>): Likewise.
32717         (*jump_absolute): Likewise.
32718         (indirect_jump_<mode>): Likewise.
32719         (tablejump_<mode>): Likewise.
32720         (<optab>_internal): Likewise.
32721         (sibcall_internal): Likewise.
32722         (sibcall_value_internal): Likewise.
32723         (prefetch): Use constraint ZD.
32724         * config/mips/mips.opt (minterlink-compressed): New option.
32725         (minterlink-mips16): Now an alias for minterlink-compressed.
32726         (mmicromips): New option.
32727         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32728         (compare_and_swap_12): Likewise.
32729         (sync_add<mode>): Likewise.
32730         (sync_<optab>_12): Likewise.
32731         (sync_old_<optab>_12): Likewise.
32732         (sync_new_<optab>_12): Likewise.
32733         (sync_nand_12): Likewise.
32734         (sync_old_nand_12): Likewise.
32735         (sync_new_nand_12): Likewise.
32736         (sync_sub<mode>): Likewise.
32737         (sync_old_add<mode>): Likewise.
32738         (sync_old_sub<mode>): Likewise.
32739         (sync_new_add<mode>): Likewise.
32740         (sync_new_sub<mode>): Likewise.
32741         (sync_<optab><mode>): Likewise.
32742         (sync_old_<optab><mode>): Likewise.
32743         (sync_new_<optab><mode>): Likewise.
32744         (sync_nand<mode>): Likewise.
32745         (sync_old_nand<mode>): Likewise.
32746         (sync_new_nand<mode>): Likewise.
32747         (sync_lock_test_and_set<mode>): Likewise.
32748         (test_and_set_12): Likewise.
32749         (atomic_compare_and_swap<mode>): Likewise.
32750         (atomic_exchange<mode>_llsc): Likewise.
32751         (atomic_fetch_add<mode>_llsc): Likewise.
32752         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32753         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32754         (umips_save_restore_pattern_p): Likewise.
32755         (umips_load_store_pair_p): Likewise.
32756         (umips_output_load_store_pair): Likewise.
32757         (umips_movep_target_p): Likewise.
32758         (umips_12bit_offset_address_p): Likewise.
32759         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32760         (mips_base_mips16): Rename this...
32761         (mips_base_compression_flags): ...to this. Update all uses.
32762         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32763         (mips_mips16_decl_p): Delete.
32764         (mips_nomips16_decl_p): Delete.
32765         (mips_get_compress_on_flags): New function.
32766         (mips_get_compress_off_flags): New function.
32767         (mips_get_compress_mode): New function.
32768         (mips_get_compress_on_name): New function.
32769         (mips_get_compress_off_name): New function.
32770         (mips_insert_attributes): Support multiple compression types.
32771         (mips_merge_decl_attributes): Likewise.
32772         (umips_12bit_offset_address_p): New function.
32773         (mips_start_function_definition): Emit .set micromips directive.
32774         (mips_call_may_need_jalx_p): New function.
32775         (mips_function_ok_for_sibcall): Add microMIPS support.
32776         (mips_print_operand_punctuation): Support short delay slots and
32777         compact jumps.
32778         (umips_swm_mask, umips_swm_encoding): New.
32779         (umips_build_save_restore): New function.
32780         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32781         (was_mips16_p): Remove.
32782         (old_compression_mode): New.
32783         (mips_set_compression_mode): New function.
32784         (mips_set_current_function): Add microMIPS support.
32785         (mips_option_override): Likewise.
32786         (umips_save_restore_pattern_p): New function.
32787         (umips_output_save_restore): New function.
32788         (umips_load_store_pair_p_1): New function.
32789         (umips_load_store_pair_p): New function.
32790         (umips_output_load_store_pair_1): New function.
32791         (umips_output_load_store_pair): New function.
32792         (umips_movep_target_p) New function.
32793         (mips_prepare_pch_save): Add microMIPS support.
32794         * config/mips/mips.h (TARGET_COMPRESSION): New.
32795         (TARGET_CPU_CPP_BUILTINS): Update macro
32796         to use new compression flags and to support microMIPS.
32797         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32798         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32799         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32800         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32801         (ASM_SPEC): Support mmicromips and mno-micromips.
32802         (M16STORE_REG_P): New macro.
32803         (MIPS_CALL): Support TARGET_MICROMIPS.
32804         (MICROMIPS_J): New macro.
32805         (mips_base_mips16): Rename this...
32806         (mips_base_compression_flags): ...to this.
32807         (UMIPS_12BIT_OFFSET_P): New macro.
32808         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32809         (MULTILIB_DIRNAMES): Likewise.
32810 2013-03-20  Richard Biener  <rguenther@suse.de>
32812         PR tree-optimization/56661
32813         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32814         the result does not have to be distinct.
32816 2013-03-20  Richard Biener  <rguenther@suse.de>
32818         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32819         remap_gimple_op_r.
32821 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32822             Steven Bosscher  <steven@gcc.gnu.org>
32824         PR rtl-optimization/56605
32825         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32827 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32829         PR bootstrap/56656
32830         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32831         that require movd instead of movq.
32833 2013-03-20  Richard Biener  <rguenther@suse.de>
32835         * tree-ssa-structalias.c (struct variable_info): Add pointer
32836         to the first field of an aggregate with sub-vars.  Make
32837         this and the pointer to the next subfield its ID.
32838         (vi_next): New function.
32839         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32840         storedanything_id, integer_id): Increment by one.
32841         (new_var_info, get_call_vi, lookup_call_clobber_vi,
32842         get_call_clobber_vi): Adjust.
32843         (solution_set_expand): Simplify and speedup.
32844         (solution_set_add): Inline into ...
32845         (set_union_with_increment): ... this.  Adjust accordingly.
32846         (do_sd_constraint): Likewise.
32847         (do_ds_constraint): Likewise.
32848         (do_complex_constraint): Simplify.
32849         (build_pred_graph): Adjust.
32850         (solve_graph): Likewise.  Simplify and speedup.
32851         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32852         get_constraint_for_component_ref, get_constraint_for_1,
32853         first_vi_for_offset, first_or_preceding_vi_for_offset,
32854         create_function_info_for, create_variable_info_for_1,
32855         create_variable_info_for, intra_create_variable_infos): Adjust.
32856         (init_base_vars): Push NULL for ID zero.
32857         (compute_points_to_sets): Adjust.
32859 2013-03-20  Richard Biener  <rguenther@suse.de>
32861         * cfgloop.c (verify_loop_structure): Streamline and avoid
32862         ICEing on corrupt loop tree.
32863         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32864         loop tree.
32866 2013-03-20  Richard Biener  <rguenther@suse.de>
32868         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32869         check whether an SSA update is needed.
32871 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
32873         * config/mips/constraints.md (T): Rename to...
32874         (Yf): ...this.
32875         (U): Rename to...
32876         (Yd): ...this.
32877         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32878         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32880 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32882         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32883         (*subsi3_carryin_uxtw): Likewise.
32885 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32887         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32888         (*rorsi3_insn_uxtw): Likewise.
32890 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32892         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32893         (*extrsi5_insn_uxtw): Likewise.
32895 2013-03-19  Richard Biener  <rguenther@suse.de>
32897         PR tree-optimization/56273
32898         * passes.c (init_optimization_passes): Move second VRP after DOM.
32900 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
32902         * config/i386/i386.md (*movti_internal): Merge from
32903         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
32904         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
32905         nox64 isa attributes.
32907 2013-03-18  Richard Biener  <rguenther@suse.de>
32909         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32910         (unite): Likewise.
32911         (merge_node_constraints): Likewise.
32912         (build_succ_graph): Likewise.
32913         (valid_graph_edge): Inline into single caller.
32914         (unify_nodes): Likewise.  Use bitmap_set_bit return value
32915         and cache varinfo.
32916         (scc_visit): Fix formatting and variable use.
32917         (do_sd_constraint): Use gcc_checking_assert.
32918         (do_ds_constraint): Likewise.
32919         (do_complex_constraint): Likewise.
32920         (condense_visit): Likewise.  Cleanup.
32921         (dump_pred_graph): New function.
32922         (perform_var_substitution): Dump the pred-graph before
32923         variable substitution.
32924         (find_equivalent_node): Use gcc_checking_assert.
32925         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32927 2013-03-18  Richard Biener  <rguenther@suse.de>
32929         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32930         Remove cond_expr_stmt_list argument and do not gimplify the
32931         built expression.
32932         (vect_loop_versioning): Adjust.
32933         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32934         Cleanup to use less temporaries.
32935         (vect_create_data_ref_ptr): Cleanup.
32937 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32939         PR tree-optimization/56635
32940         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32941         require types_compatible_p types.
32943 2013-03-18  Nick Clifton  <nickc@redhat.com>
32945         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32946         spurious backslash.
32948         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32949         Add missing line to comment describing function.
32951 2013-03-18  Richard Biener  <rguenther@suse.de>
32953         PR tree-optimization/56210
32954         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32955         Handle string / character search functions.
32956         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32958 2013-03-18  Richard Biener  <rguenther@suse.de>
32960         PR middle-end/56483
32961         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32962         and implement properly.
32963         * gimple.h (gimple_cond_single_var_p): Remove.
32965 2013-03-18  Richard Biener  <rguenther@suse.de>
32967         * tree-data-ref.h (find_data_references_in_loop): Declare.
32968         * tree-data-ref.c (get_references_in_stmt): Use a stack
32969         vector pre-allocated in the callers.
32970         (find_data_references_in_stmt): Adjust.
32971         (graphite_find_data_references_in_stmt): Likewise.
32972         (create_rdg_vertices): Likewise.
32973         (find_data_references_in_loop): Export.
32974         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32975         Compute dependences here...
32976         (vect_analyze_data_refs): ...not here.  When we encounter
32977         a non-vectorizable data reference in basic-block vectorization
32978         truncate the data reference vector.  Do not bother to
32979         fixup data-dependence information for gather loads.
32980         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32981         of data references, as reported.
32983 2013-03-18  Richard Biener  <rguenther@suse.de>
32985         PR tree-optimization/3713
32986         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
32987         has_constants and expr.
32988         (stmt_has_constants): Properly valueize SSA names when deciding
32989         whether the stmt has constants.
32991 2013-03-18  Richard Biener  <rguenther@suse.de>
32993         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32994         whole function when there is nothing to do.
32995         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32996         * tree-vectorizer.c (vectorize_loops): Update virtual and
32997         loop-closed SSA once.
32998         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
33000 2013-03-18  Richard Biener  <rguenther@suse.de>
33002         PR middle-end/56113
33003         * domwalk.c (bb_postorder): New global static.
33004         (cmp_bb_postorder): New function.
33005         (walk_dominator_tree): Replace scheme imposing an order for
33006         visiting dominator sons by one sorting them at the time they
33007         are pushed on the stack.
33009 2013-03-18  Richard Biener  <rguenther@suse.de>
33011         PR tree-optimization/39326
33012         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
33013         (struct mem_ref): Replace mem member with ao_ref typed member.
33014         (MEM_ANALYZABLE): Adjust.
33015         (memref_eq): Likewise.
33016         (mem_ref_alloc): Likewise.
33017         (gather_mem_refs_stmt): Likewise.
33018         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
33019         (execute_sm_if_changed_flag_set): Adjust.
33020         (execute_sm): Likewise.
33021         (ref_always_accessed_p): Likewise.
33022         (refs_independent_p): Likewise.
33023         (can_sm_ref_p): Likewise.
33025 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
33027         PR c/56566
33028         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
33029         return 1 even for !unsignedp.
33031 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
33033         * config/i386/i386.md (isa): Add x64 and nox64.
33034         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
33035         (*pushtf): Enable *roF alternative for x64 isa only.
33036         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
33037         mode attribute of integer alternatives to DImode for TARGET_64BIT.
33038         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
33039         (*movtf_internal): Merge from *movtf_internal_rex64 and
33040         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
33041         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
33042         nox64 isa attributes.
33043         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
33044         nox64 isa attributes.
33045         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
33047 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
33049         * config/alpha/alpha.c (TARGET_LRA_P): New define.
33051 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
33053         PR target/56640
33054         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
33055         class names.  Remove trailing comma after "ALL_REGS".
33057 2013-03-16  Jan Hubicka  <jh@suse.cz>
33059         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
33060         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
33061         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
33062         of cgraph_get_create_node.
33063         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
33065 2013-03-16  Jason Merrill  <jason@redhat.com>
33067         PR debug/49090
33068         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
33069         with DW_AT_default_value.
33071 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
33073         * BASE-VER: Set to 4.9.0.
33075 2013-03-14  Andi Kleen  <ak@linux.intel.com>
33077         PR target/56619
33078         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
33079         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
33080         Document _x* TSX intrinsics.
33082 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
33083             David Holsgrove  <david.holsgrove@xilinx.com>
33085         * configure.ac: Add MicroBlaze TLS support detection.
33086         * configure: Regenerate.
33087         * config/microblaze/microblaze-protos.h
33088         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
33089         symbol_mentioned_p, label_mentioned_p): Add prototypes.
33090         * config/microblaze/microblaze.c (microblaze_address_type): Add
33091         ADDRESS_TLS and tls_reloc address types.
33092         (microblaze_address_info): Add tls_reloc.
33093         (TARGET_HAVE_TLS): Define.
33094         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
33095          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
33096          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
33097         load_tls_operand,  microblaze_call_tls_get_addr,
33098         microblaze_legitimize_tls_address): New functions.
33099         (microblaze_classify_unspec): Handle UNSPEC_TLS.
33100         (get_base_reg): Use microblaze_tls_symbol_p.
33101         (microblaze_classify_address): Handle TLS.
33102         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
33103         label_mentioned_p and microblaze_tls_referenced_p.
33104         (microblaze_legitimize_address): Handle TLS.
33105         (microblaze_address_insns): Handle ADDRESS_TLS.
33106         (pic_address_needs_scratch): Handle TLS.
33107         (print_operand_address): Handle TLS.
33108         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
33109         (microblaze_expand_move): Handle TLS.
33110         (microblaze_legitimate_constant_p): Check
33111         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
33112         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
33113         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
33114         (PIC_OFFSET_TABLE_REGNUM): Set.
33115         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
33116         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
33117         (addsi3, movsi_internal2, movdf_internal): Update constraints
33118         * config/microblaze/predicates.md (arith_plus_operand): Define
33119         (move_operand): Redefine as move_src_operand,
33120         check microblaze_tls_referenced_p.
33122 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
33124         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
33125         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
33127 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
33129         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
33130         CC mode for AND.
33132 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
33134         PR tree-optimization/53265
33135         * common.opt (Waggressive-loop-optimizations): New option.
33136         * tree-ssa-loop-niter.c: Include tree-pass.h.
33137         (do_warn_aggressive_loop_optimizations): New function.
33138         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
33139         if number_of_latch_executions returned constant.
33140         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
33141         early.  If number_of_latch_executions returned constant, set
33142         nb_iterations_upper_bound back to it.
33143         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
33144         field.
33145         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
33146         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
33148         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
33149         (MULTILIB_OSDIRNAMES): Set.
33150         * genmultilib: If defaultosdirname doesn't start with :: , set
33151         defaultosdirname2 instead, clear it and emit two . multilib_raw
33152         entries instead of just one.
33154 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
33156         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33157         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
33158         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33159         (SUBTARGET_OVERRIDE_OPTIONS): New.
33161 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
33163         PR target/49880
33164         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
33165         (musermode): Convert to Var(TARGET_USERMODE).
33166         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
33167         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
33168         * config/sh/sh.c (sh_option_override): Use
33169         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
33170         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
33171         condition.
33172         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
33173         TARGET_SH4.
33174         (udivsi3_i4_single, divsi3_i4_single): Use
33175         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
33177 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
33179         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
33180         default setting.
33182 2013-03-13  Richard Biener  <rguenther@suse.de>
33184         PR tree-optimization/56608
33185         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
33186         calls when vectorizing basic-blocks.
33188 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
33190         PR plugins/45078
33191         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
33192         tm_file.
33194 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
33196         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
33198 2013-03-11  Jan Hubicka  <jh@suse.cz>
33200         PR lto/56557
33201         * lto-streamer-out.c (output_symbol_p): Skip references from
33202         constructors of external variables.
33204 2013-03-11  Jan Hubicka  <jh@suse.cz>
33206         PR middle-end/56571
33207         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
33208         from pseudos.
33209         * emit-rtl.c (verify_rtx_sharing): Likewise.
33210         (copy_insn_1): Likewise.
33211         * rtl.c (copy_rtx): Likewise.
33213 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
33215         PR target/56591
33216         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
33217         output_operand_lossage message.
33219 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
33221         PR target/56470
33222         * arm.c (shift_op): Validate RTL pattern on the fly.
33223         (arm_print_operand, case 'S'): Don't use shift_operator to validate
33224         the RTL.
33226 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33228         PR target/56347
33229         * config/pa/pa.md (call_value): Check for calls to powf and direct to
33230         new call patterns that clobber %fr12.
33231         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
33232         split and postreload patterns.
33233         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
33234         registers %fr12 and %fr12R as call used.
33236 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
33238         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
33239         (canon_address, record_store, replace_read, check_mem_read_rtx,
33240         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
33241         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
33242         rest_of_handle_dse): Likewise.
33244 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
33246         PR middle-end/56524
33247         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
33248         Add base_optabs.
33249         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
33250         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
33251         (save_optabs_if_changed): Replace with...
33252         (init_tree_optimization_optabs): ...this.
33253         * optabs.c (save_optabs_if_changed): Rename to...
33254         (init_tree_optimization_optabs): ...this.  Take the optimization node
33255         as argument.  Do nothing if the base optabs are already correct.
33256         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
33257         to recompute optabs.
33258         * function.h (function): Remove optabs field.
33259         * function.c (invoke_set_current_function_hook): Call
33260         init_tree_optimization_optabs.  Use the result to initialize
33261         this_fn_optabs.
33263 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
33265         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
33266         if GTMA_HAS_NO_INSTRUMENTATION.
33267         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
33268         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
33269         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
33270         * gimple-pretty-print.c (dump_gimple_transaction): Handle
33271         GTMA_HAS_NO_INSTRUMENTATION.
33273 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
33275         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
33276         libasan_preinit.o.
33278 2013-03-08  Marek Polacek  <polacek@redhat.com>
33279             Jakub Jelinek  <jakub@redhat.com>
33281         PR tree-optimization/56478
33282         * predict.c (is_comparison_with_loop_invariant_p): Change the
33283         type of loop_step to tree.
33284         (predict_loops): Adjust.
33285         (predict_iv_comparison): Perform the computations on double_ints.
33287 2013-03-08  Richard Biener  <rguenther@suse.de>
33289         PR tree-optimization/56570
33290         * tree-cfg.c (verify_expr_location_1): Verify locations for
33291         DECL_DEBUG_EXPR.
33292         * tree-sra.c (create_access_replacement): Strip locations
33293         from DECL_DEBUG_EXPRs.
33295 2013-03-08  Richard Biener  <rguenther@suse.de>
33297         * tree-inline.c (expand_call_inline): Do not associate
33298         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
33299         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
33301 2013-03-08  Richard Biener  <rguenther@suse.de>
33303         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
33304         or block changes with -Og.  Fix for location / block encoding
33305         changes and PHI arguments with locations.
33307 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
33309         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
33310         for all counters.
33311         (struct output_info): Likewise.
33312         (register_overhead): Remove bad gcc_assert.
33313         (bitmap_find_bit): If there is only a single bitmap element, do not
33314         count a miss as a search.
33315         (print_statistics): Update for counter type changes.
33316         (dump_bitmap_statistics): Likewise.  Print headers such that they
33317         are properly lined up with the printed counters.
33319 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
33321         PR tree-optimization/56559
33322         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
33323         check that it has only a single use.
33325 2013-03-07  Richard Biener  <rguenther@suse.de>
33327         * doc/invoke.texi (fwhole-program): Discourage use in combination
33328         with -flto.
33330 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
33332         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
33334         PR tree-optimization/56539
33335         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
33336         instead of GSI_CONTINUE_LINKING as last argument to
33337         force_gimple_operand_gsi.  Adjust function comment.
33339         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
33340         aarch64-cores.def.
33342         PR middle-end/56548
33343         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
33344         promoted mode, convert the result back to the original mode.
33346 2013-03-06  Richard Biener  <rguenther@suse.de>
33348         PR middle-end/56294
33349         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33350         (insert_updated_phi_nodes_compare_uids): New function.
33351         (update_ssa): Sort symbols_to_rename after UID before
33352         traversing it to insert PHI nodes.
33354 2013-03-06  Richard Biener  <rguenther@suse.de>
33356         PR middle-end/50494
33357         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33358         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33360         Revert
33361         2013-02-13  Richard Biener  <rguenther@suse.de>
33363         PR lto/50494
33364         * varasm.c (output_constant_def_1): Get the decl representing
33365         the constant as argument.
33366         (output_constant_def): Wrap output_constant_def_1.
33367         (make_decl_rtl): Use output_constant_def_1 with the decl
33368         representing the constant.
33369         (build_constant_desc): Optionally re-use a decl already
33370         representing the constant.
33371         (tree_output_constant_def): Adjust.
33373 2013-03-06  Joey Ye  <joey.ye@arm.com>
33375         PR lto/50293
33376         * gcc.c (convert_white_space): New function.
33377         (main): Handles white space in function name.
33379 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
33381         PR target/56529
33382         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33383         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
33384         to SH_DIV_CALL_TABLE for TARGET_SH2.
33385         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33386         list.
33387         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33388         call-table options.
33390 2013-03-05  Sterling Augustine  <saugustine@google.com>
33391             Cary Coutant  <ccoutant@google.com>
33393         PR debug/55364
33394         * dwarf2out.c (resolve_addr): Don't call
33395         remove_loc_list_addr_table_entries a second time for the same
33396         expression.
33398 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33400         PR debug/56510
33401         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33402         (avoid_complex_debug_insns): New function.
33403         (expand_debug_locations): Call it.
33405         PR rtl-optimization/56484
33406         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33407         lifetimes of hard registers on small register class machines.
33409 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
33411         * config/microblaze/microblaze-protos.h: Rename
33412         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33413         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33414         fast_interrupt.
33415         (microblaze_fast_interrupt_function_p): New function.
33416         (microblaze_is_interrupt_handler): Rename to
33417         microblaze_is_interrupt_variant and add fast_interrupt check.
33418         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33419         (save_restore_insns): Likewise.
33420         (compute_frame_size): Likewise.
33421         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33422         (microblaze_globalize_label): Likewise.
33423         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33424         * config/microblaze/microblaze.md: Use wrapper
33425         microblaze_is_interrupt_variant.
33427 2013-03-05  Kai Tietz  <ktietz@redhat.com>
33429         * sdbout.c (sdbout_one_type): Switch to current function's section
33430         supporting cold/hot.
33432 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
33434         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33435         -mxl-reorder.
33437 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33439         PR middle-end/56461
33440         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33441         if VALGRIND_GET_VBITS is defined, temporarily make object
33442         memory all defined, and restore previous valgrind addressability
33443         and definability afterwards.  Free this_object at the end.
33445         PR middle-end/56461
33446         * lra.c (lra): Call lra_clear_live_ranges if live_p,
33447         right before calling lra_create_live_ranges, also call it
33448         when clearing live_p.  Only call lra_clear_live_ranges
33449         at the end if live_p.
33451         PR middle-end/56461
33452         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33454 2013-03-05  Richard Biener  <rguenther@suse.de>
33456         PR tree-optimization/56521
33457         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33458         value-id.
33460 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
33462         PR c++/55135
33463         * except.h (remove_unreachable_eh_regions): New prototype.
33464         * except.c (remove_eh_handler_splicer): New function, split out
33465         of remove_eh_handler.
33466         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
33467         warning about running it on many EH regions one at a time.
33468         (remove_unreachable_eh_regions_worker): New function, walk the
33469         EH tree in depth-first order and remove non-marked regions.
33470         (remove_unreachable_eh_regions): New function.
33471         * tree-eh.c (mark_reachable_handlers): New function, split out
33472         from remove_unreachable_handlers.
33473         (remove_unreachable_handlers): Use mark_reachable_handlers and
33474         remove_unreachable_eh_regions.
33475         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33476         and remove_unreachable_eh_regions.
33478 2013-03-05  Richard Biener  <rguenther@suse.de>
33480         PR middle-end/56525
33481         * loop-init.c (fix_loop_structure): Remove loops in two stages,
33482         not freeing them until the end.
33484 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33486         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33488 2013-03-05  Richard Biener  <rguenther@suse.de>
33490         PR tree-optimization/56270
33491         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33492         of loads after scheduling an SLP instance.
33494 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33496         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33497         tic6x.exp.
33498         (check_gcc_parallelize): Run guality.exp as a separate job from
33499         vect.exp with unsorted.exp and $(dg_target_exps) separately from
33500         struct-layout-1.exp with stackalign.exp.
33502         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33504         PR middle-end/56461
33505         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33506         load_index sbitmap even if some bit in it isn't set.
33508         PR middle-end/56461
33509         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33510         (discover_iteration_bound_by_body_walk): Change queues to
33511         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
33512         spelling in comment.  Call safe_push on queues[bound_index] directly.
33513         Release queues[queue_index] in every iteration unconditionally.
33514         Release bounds vector.
33516         PR middle-end/56461
33517         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33518         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33519         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33520         inner_phis vector.
33522 2013-03-05  Richard Biener  <rguenther@suse.de>
33524         PR lto/56515
33525         * tree-inline.c (remap_blocks_to_null): New function.
33526         (expand_call_inline): When expanding a call stmt without
33527         an associated block inline remap all callee blocks to NULL.
33529 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33531         PR rtl-optimization/56494
33532         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33533         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33534         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33536         PR middle-end/56461
33537         * sel-sched-ir.c (free_sched_pools): Release
33538         succs_info_pool.stack[succs_info_pool.max_top] vectors too
33539         if succs_info_pool.max_top isn't -1.
33541         PR bootstrap/56509
33542         * opts.c (opts_obstack, opts_concat): Moved to...
33543         * opts-common.c (opts_obstack, opts_concat): ... here.
33545 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33547         PR middle-end/56461
33548         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33550 2013-03-04  Martin Jambor  <mjambor@suse.cz>
33552         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33553         all appropriate places.
33555 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
33557         PR tree-optimization/56424
33558         * ipa-split.c (split_function): Do not set the RSO flag if result is
33559         not by reference and its type is a register type.
33561 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
33563         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33564         (microblaze_legitimate_pic_operand): Likewise
33565         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33566         new function microblaze_legitimate_pic_operand
33567         * config/microblaze/microblaze-protos.h
33568         (microblaze_legitimate_pic_operand): Declare.
33570 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33572         * config/microblaze/predicates.md (call_insn_simple_operand):
33573         New predicate for supported rtx code types.
33574         * config/microblaze/microblaze.md (call_internal1): Use
33575         call_insn_simple_operand predicate.
33577 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33579         PR middle-end/56461
33580         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33581         partitions.ordered_remove.
33583         PR middle-end/56461
33584         * tree-vect-stmts.c (vectorizable_conversion): Don't call
33585         vec_oprnds0.create (1) for modifier == NONE.
33587         PR middle-end/56461
33588         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33589         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33590         vec_oprnds1 right before pushing anything to it for
33591         scalar_shift_arg.
33593         PR middle-end/56461
33594         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33595         set nbbs to 0 instead of having separate code path.
33596         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33597         instead of false as last argument if returning NULL.
33599 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
33601         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33602         the attribute is now called "target" instead of "option".
33603         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33604         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
33605         attribute/pragma name for TARGET_OPTION_VALID_P and
33606         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
33607         * doc/tm.texi: Regenerated.
33609 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
33611         * config/microblaze/microblaze.c:
33612         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33613         * config/microblaze/microblaze.h: Add -mxl-reorder to
33614         DRIVER_SELF_SPECS.
33615         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33616         instructions emitted if TARGET_REORDER.
33617         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33618         or 0 for -m/-mno case, but initialises as 2 to detect default use case
33619         separately.
33621 2013-03-01  Xinliang David Li  <davidxl@google.com>
33623         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33624         walk length.
33626 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
33628         PR middle-end/56461
33629         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33630         vector even when returning true.  Fix up function comment formatting.
33632         PR middle-end/56461
33633         * ira-build.c (ira_loop_nodes_count): New variable.
33634         (create_loop_tree_nodes): Initialize it.
33635         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33637         PR middle-end/56461
33638         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33639         method on dr_chain and result_chain.
33640         * tree-vect-stmts.c (vectorizable_store): Only call
33641         result_chain.create if j == 0.
33643         PR middle-end/56461
33644         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33645         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33646         before overwriting it.
33648 2013-03-01  Tobias Burnus  <burnus@net-b.de>
33650         * doc/extended.texi (C Extensions): Change order in @menu
33651         to match @node.
33652         (Other MIPS Built-in Functions): Move last MIPS entry before
33653         "picoChip Built-in Functions".
33654         (SH Built-in Functions): Move after RX Built-in Functions.
33655         * doc/gcc.texi (Introduction): Change order in @menu
33656         to match @node.
33657         * doc/md.texi (Constraints): Ditto.
33658         * gty.texi (Type Information): Ditto.
33659         (User-provided marking routines for template types): Make
33660         subsection.
33661         * doc/invoke.texi (AArch64 Options): Move before
33662         "Adapteva Epiphany Options".
33664 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
33665             Jakub Jelinek  <jakub@redhat.com>
33667         PR sanitizer/56454
33668         * asan.c (gate_asan): Lookup no_sanitize_address instead of
33669         no_address_safety_analysis attribute.
33670         * doc/extend.texi (no_address_safety_attribute): Rename to
33671         no_sanitize_address attribute, mention no_address_safety_analysis
33672         attribute as deprecated alias.
33674 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
33676         PR middle-end/56461
33677         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33678         type to vec<vec<tree> > *.
33679         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
33680         to be vec<tree> instead of vec<tree> *, set vec_defs
33681         to vNULL and call vec_defs.create (number_of_vects), adjust other
33682         uses of vec_defs.
33683         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33684         vectorizable_condition): Adjust vect_get_slp_defs callers.
33686 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33688         * config/aarch64/aarch64.c
33689         (aarch64_float_const_representable): Remove unused variable.
33691 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33693         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33695 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33697         * config/aarch64/aarch64-builtins.c
33698         (aarch64_init_simd_builtins): Make static.
33700 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33702         * config/aarch64/aarch64.c
33703         (aarch64_simd_make_constant): Make static.
33705 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33707         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33708         with no initialization to the RHS of debug statements.
33710 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33712         PR tree-optimization/56294
33713         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33714         Adjust dumping.
33715         (get_access_replacement): Do not call create_access_replacement.
33716         Assert a replacement exists.
33717         (get_repl_default_def_ssa_name): Create the replacement declaration
33718         itself.
33720 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33722         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33723         final_end_function.
33725 2013-02-28  Marek Polacek  <polacek@redhat.com>
33727         PR rtl-optimization/56466
33728         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33729         if we're changing a loop.
33730         (peel_loops_completely): Likewise.
33732 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
33734         PR c++/55813
33735         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33737 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33739         PR target/56445
33740         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33741         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33742         INTX_FTYPE_FX, FX_FTYPE_INTX.
33743         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33745 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33747         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33748         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33749         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33750         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33751         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33752         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33753         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33754         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33755         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33756         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33757         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33758         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33759         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33760         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33761         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33762         (avrxmega6): Increase max flash segments from 5 to 6.
33763         * config/avr/t-multilib: Regenerate.
33764         * config/avr/avr-tables.opt: Regenerate.
33765         * doc/avr-mmcu.texi: Regenerate.
33767 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33769         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33770         (avr_device_to_arch): Rename to avr_device_to_ld.
33771         (avr_device_to_as): New prototype.
33772         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33773         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33774         * config/avr/driver-avr.c (avr_device_to_as): New.
33775         (avr_device_to_arch): Rename to avr_device_to_ld.
33777 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33779         PR middle-end/56461
33780         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33781         method on dr_chain and result_chain.
33783         PR middle-end/56461
33784         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33785         pointer_set_destroy on not_executed_last_iteration.
33787         PR middle-end/56461
33788         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33790         PR middle-end/56461
33791         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33792         FOR_EACH_DEFINED_FUNCTION when freeing state.
33794         PR middle-end/56461
33795         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33796         pool_free.
33797         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33798         overwriting it.
33800         PR middle-end/56461
33801         * ipa-cp.c (decide_whether_version_node): Call vec_free on
33802         known_aggs[i].items and release known_aggs vector.
33804         PR middle-end/56461
33805         * ipa-reference.c (propagate): Free node_info even for alias nodes.
33807 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33809         * config/microblaze/microblaze.c (microblaze_emit_compare):
33810         Use xor for EQ/NE comparisions.
33811         * config/microblaze/microblaze.md (cstoresf4): Add constraints
33812         (cbranchsf4): Adjust operator to comparison_operator.
33814 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33816         PR middle-end/56461
33817         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33818         vector.
33819         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33820         vec_safe_push, always update *slot.
33821         (redirect_edge_var_map_clear): Use vec_free.
33822         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33823         (free_var_map_entry): Use vec_free.
33824         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33825         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33827 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
33829         PR middle-end/45472
33830         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33831         when the may_trap_p bit of the exprs being merged differs.
33832         Reorder tests for speculativeness in the logical and operator.
33834 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33836         * incpath.c (add_standard_paths): Use reconcat instead of concat
33837         where appropriate and avoid leaking memory.
33839         * opts.h: Include obstack.h.
33840         (opts_concat): New prototype.
33841         (opts_obstack): New declaration.
33842         * opts.c (opts_concat): New function.
33843         (opts_obstack): New variable.
33844         (init_options_struct): Call gcc_init_obstack on opts_obstack.
33845         (finish_options): Use opts_concat instead of concat
33846         and XOBNEWVEC instead of XNEWVEC.
33847         * opts-common.c (generate_canonical_option, decode_cmdline_option,
33848         generate_option): Likewise.
33849         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33850         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33852         PR target/56455
33853         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33854         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33856 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33858         PR middle-end/56461
33859         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33861 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33863         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33864         (arm_block_move_unaligned_straight): Likewise.
33865         (arm_adjust_block_mem): Likewise.
33867 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33869         PR target/48901
33870         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33871         temp, cond and label.
33872         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33874         PR target/52500
33875         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33876         * config/c6x/c6x.h (dbx_register_map): Update declaration.
33878         PR target/52501
33879         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33880         of prologue/epilogue functions.
33882         PR target/52550
33883         * config/tilegx/tilegx.c (tilegx_expand_prologue):
33884         Remove unused variable cfa_offset.
33885         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33887         PR target/54639
33888         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33889         type promotion to unsigned.
33891         PR target/54640
33892         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33893         for HOST_WIDE_INT of 32 bit / same size as int.
33894         (arm_block_move_unaligned_straight): Likewise.
33895         (arm_adjust_block_mem): Likewise.
33897         PR target/54662
33898         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33899         ALL_CFLAGS.
33901 2013-02-26  Marek Polacek  <polacek@redhat.com>
33903         PR tree-optimization/56426
33904         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33906 2013-02-26  Richard Biener  <rguenther@suse.de>
33908         PR target/56444
33909         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33910         unused variable loops.
33912 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33914         PR tree-optimization/56448
33915         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33916         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33917         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33918         later operands of the references, or even first operand for
33919         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33921         PR tree-optimization/56443
33922         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33923         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33924         to type_for_mode langhook.
33926 2013-02-25  Matt Turner  <mattst88@gmail.com>
33928         * doc/invoke.texi: Document r4700.
33930 2013-02-25  Richard Biener  <rguenther@suse.de>
33932         PR tree-optimization/56175
33933         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33934         split out from ...
33935         (simplify_bitwise_binary): ... here.  Also guard the conversion
33936         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33938 2013-02-25  Catherine Moore  <clm@codesourcery.com>
33940         Revert:
33941         2013-02-24  Catherine Moore  <clm@codesourcery.com>
33942             Maciej W. Rozycki  <macro@codesourcery.com>
33943             Tom de Vries  <tom@codesourcery.com>
33944             Nathan Sidwell  <nathan@codesourcery.com>
33945             Iain Sandoe  <iain@codesourcery.com>
33946             Nathan Froyd  <froydnj@codesourcery.com>
33947             Chao-ying Fu  <fu@mips.com>
33949         * doc/extend.texi: (micromips, nomicromips, nocompression):
33950         Document new function attributes.
33951         * doc/invoke.texi (minterlink-compressed, mmicromips,
33952         m14k, m14ke, m14kec): Document new options.
33953         (minterlink-mips16): Update documentation.
33954         * doc/md.texi (ZC, ZD): Document new constraints.
33955         * configure.ac (gcc_cv_as_micromips): Check if linker
33956         supports the .set micromips directive.
33957         * configure: Regenerate.
33958         * config.in: Regenerate.
33959         * config/mips/mips-tables.opt: Regenerate.
33960         * config/mips/micromips.md: New file.
33961         * constraints.md (ZC, AD): New constraints.
33962         * config/mips/predicates.md (movep_src_register): New predicate.
33963         (movep_src_operand): New predicate.
33964         (non_volatile_mem_operand): New predicate.
33965         * config/mips/mips.md (multimem): New type.
33966         (length): Differentiate between 17-bit and 18-bit branch offsets.
33967         (MOVEP1, MOVEP2): New mode iterator.
33968         (mov_<load>l): Use ZC constraint.
33969         (mov_<load>r): Likewise.
33970         (mov_<store>l): Likewise.
33971         (mov_<store>r): Likewise.
33972         (*branch_equality<mode>_inverted): Add microMIPS support.
33973         (*branch_equality<mode>): Likewise.
33974         (*jump_absolute): Likewise.
33975         (indirect_jump_<mode>): Likewise.
33976         (tablejump_<mode>): Likewise.
33977         (<optab>_internal): Likewise.
33978         (sibcall_internal): Likewise.
33979         (sibcall_value_internal): Likewise.
33980         (prefetch): Use constraint ZD.
33981         * config/mips/mips.opt (minterlink-compressed): New option.
33982         (minterlink-mips16): Now an alias for minterlink-compressed.
33983         (mmicromips): New option.
33984         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33985         (compare_and_swap_12): Likewise.
33986         (sync_add<mode>): Likewise.
33987         (sync_<optab>_12): Likewise.
33988         (sync_old_<optab>_12): Likewise.
33989         (sync_new_<optab>_12): Likewise.
33990         (sync_nand_12): Likewise.
33991         (sync_old_nand_12): Likewise.
33992         (sync_new_nand_12): Likewise.
33993         (sync_sub<mode>): Likewise.
33994         (sync_old_add<mode>): Likewise.
33995         (sync_old_sub<mode>): Likewise.
33996         (sync_new_add<mode>): Likewise.
33997         (sync_new_sub<mode>): Likewise.
33998         (sync_<optab><mode>): Likewise.
33999         (sync_old_<optab><mode>): Likewise.
34000         (sync_new_<optab><mode>): Likewise.
34001         (sync_nand<mode>): Likewise.
34002         (sync_old_nand<mode>): Likewise.
34003         (sync_new_nand<mode>): Likewise.
34004         (sync_lock_test_and_set<mode>): Likewise.
34005         (test_and_set_12): Likewise.
34006         (atomic_compare_and_swap<mode>): Likewise.
34007         (atomic_exchange<mode>_llsc): Likewise.
34008         (atomic_fetch_add<mode>_llsc): Likewise.
34009         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34010         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34011         (umips_save_restore_pattern_p): Likewise.
34012         (umips_load_store_pair_p): Likewise.
34013         (umips_output_load_store_pair): Likewise.
34014         (umips_movep_target_p): Likewise.
34015         (umips_12bit_offset_address_p): Likewise.
34016         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34017         (mips_base_mips16): Rename this...
34018         (mips_base_compression_flags): ...to this. Update all uses.
34019         (mips_attribute_table): Add micromips, nomicromips and nocompression.
34020         (mips_mips16_decl_p): Delete.
34021         (mips_nomips16_decl_p): Delete.
34022         (mips_get_compress_on_flags): New function.
34023         (mips_get_compress_off_flags): New function.
34024         (mips_get_compress_mode): New function.
34025         (mips_get_compress_on_name): New function.
34026         (mips_get_compress_off_name): New function.
34027         (mips_insert_attributes): Support multiple compression types.
34028         (mips_merge_decl_attributes): Likewise.
34029         (umips_12bit_offset_address_p): New function.
34030         (mips_start_function_definition): Emit .set micromips directive.
34031         (mips_call_may_need_jalx_p): New function.
34032         (mips_function_ok_for_sibcall): Add microMIPS support.
34033         (mips_print_operand_punctuation): Support short delay slots and
34034         compact jumps.
34035         (umips_swm_mask, umips_swm_encoding): New.
34036         (umips_build_save_restore): New function.
34037         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34038         (was_mips16_p): Remove.
34039         (old_compression_mode): New.
34040         (mips_set_compression_mode): New function.
34041         (mips_set_current_function): Add microMIPS support.
34042         (mips_option_override): Likewise.
34043         (umips_save_restore_pattern_p): New function.
34044         (umips_output_save_restore): New function.
34045         (umips_load_store_pair_p_1): New function.
34046         (umips_load_store_pair_p): New function.
34047         (umips_output_load_store_pair_1): New function.
34048         (umips_output_load_store_pair): New function.
34049         (umips_movep_target_p) New function.
34050         (mips_prepare_pch_save): Add microMIPS support.
34051         * config/mips/mips.h (TARGET_COMPRESSION): New.
34052         (TARGET_CPU_CPP_BUILTINS): Update macro
34053         to use new compression flags and to support microMIPS.
34054         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34055         (MIPS_ARCH_FLOAT_SPEC): Likewise.
34056         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34057         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34058         (ASM_SPEC): Support mmicromips and mno-micromips.
34059         (M16STORE_REG_P): New macro.
34060         (MIPS_CALL): Support TARGET_MICROMIPS.
34061         (MICROMIPS_J): New macro.
34062         (mips_base_mips16): Rename this...
34063         (mips_base_compression_flags): ...to this.
34064         (UMIPS_12BIT_OFFSET_P): New macro.
34065         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34066         (MULTILIB_DIRNAMES): Likewise.
34068 2013-02-25  Tom de Vries  <tom@codesourcery.com>
34070         PR rtl-optimization/56131
34071         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
34072         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
34073         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
34075 2013-02-25  Tobias Burnus  <burnus@net-b.de>
34077         * doc/invoke.texi (-fsanitize=): Move from optimization
34078         to debugging options.
34080 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
34082         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
34084 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
34085             Alexander Monakov  <amonakov@ispras.ru>
34087         PR middle-end/56077
34088         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
34089         flush pending lists also on non-jumps.  Adjust comment.
34091 2013-02-24  Catherine Moore  <clm@codesourcery.com>
34092             Maciej W. Rozycki  <macro@codesourcery.com>
34093             Tom de Vries  <tom@codesourcery.com>
34094             Nathan Sidwell  <nathan@codesourcery.com>
34095             Iain Sandoe  <iain@codesourcery.com>
34096             Nathan Froyd  <froydnj@codesourcery.com>
34097             Chao-ying Fu  <fu@mips.com>
34099         * doc/extend.texi: (micromips, nomicromips, nocompression):
34100         Document new function attributes.
34101         * doc/invoke.texi (minterlink-compressed, mmicromips,
34102         m14k, m14ke, m14kec): Document new options.
34103         (minterlink-mips16): Update documentation.
34104         * doc/md.texi (ZC, ZD): Document new constraints.
34105         * configure.ac (gcc_cv_as_micromips): Check if linker
34106         supports the .set micromips directive.
34107         * configure: Regenerate.
34108         * config.in: Regenerate.
34109         * config/mips/mips-tables.opt: Regenerate.
34110         * config/mips/micromips.md: New file.
34111         * constraints.md (ZC, AD): New constraints.
34112         * config/mips/predicates.md (movep_src_register): New predicate.
34113         (movep_src_operand): New predicate.
34114         (non_volatile_mem_operand): New predicate.
34115         * config/mips/mips.md (multimem): New type.
34116         (length): Differentiate between 17-bit and 18-bit branch offsets.
34117         (MOVEP1, MOVEP2): New mode iterator.
34118         (mov_<load>l): Use ZC constraint.
34119         (mov_<load>r): Likewise.
34120         (mov_<store>l): Likewise.
34121         (mov_<store>r): Likewise.
34122         (*branch_equality<mode>_inverted): Add microMIPS support.
34123         (*branch_equality<mode>): Likewise.
34124         (*jump_absolute): Likewise.
34125         (indirect_jump_<mode>): Likewise.
34126         (tablejump_<mode>): Likewise.
34127         (<optab>_internal): Likewise.
34128         (sibcall_internal): Likewise.
34129         (sibcall_value_internal): Likewise.
34130         (prefetch): Use constraint ZD.
34131         * config/mips/mips.opt (minterlink-compressed): New option.
34132         (minterlink-mips16): Now an alias for minterlink-compressed.
34133         (mmicromips): New option.
34134         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34135         (compare_and_swap_12): Likewise.
34136         (sync_add<mode>): Likewise.
34137         (sync_<optab>_12): Likewise.
34138         (sync_old_<optab>_12): Likewise.
34139         (sync_new_<optab>_12): Likewise.
34140         (sync_nand_12): Likewise.
34141         (sync_old_nand_12): Likewise.
34142         (sync_new_nand_12): Likewise.
34143         (sync_sub<mode>): Likewise.
34144         (sync_old_add<mode>): Likewise.
34145         (sync_old_sub<mode>): Likewise.
34146         (sync_new_add<mode>): Likewise.
34147         (sync_new_sub<mode>): Likewise.
34148         (sync_<optab><mode>): Likewise.
34149         (sync_old_<optab><mode>): Likewise.
34150         (sync_new_<optab><mode>): Likewise.
34151         (sync_nand<mode>): Likewise.
34152         (sync_old_nand<mode>): Likewise.
34153         (sync_new_nand<mode>): Likewise.
34154         (sync_lock_test_and_set<mode>): Likewise.
34155         (test_and_set_12): Likewise.
34156         (atomic_compare_and_swap<mode>): Likewise.
34157         (atomic_exchange<mode>_llsc): Likewise.
34158         (atomic_fetch_add<mode>_llsc): Likewise.
34159         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34160         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34161         (umips_save_restore_pattern_p): Likewise.
34162         (umips_load_store_pair_p): Likewise.
34163         (umips_output_load_store_pair): Likewise.
34164         (umips_movep_target_p): Likewise.
34165         (umips_12bit_offset_address_p): Likewise.
34166         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34167         (mips_base_mips16): Rename this...
34168         (mips_base_compression_flags): ...to this. Update all uses.
34169         (mips_attribute_table): Add micromips, nomicromips and nocompression.
34170         (mips_mips16_decl_p): Delete.
34171         (mips_nomips16_decl_p): Delete.
34172         (mips_get_compress_on_flags): New function.
34173         (mips_get_compress_off_flags): New function.
34174         (mips_get_compress_mode): New function.
34175         (mips_get_compress_on_name): New function.
34176         (mips_get_compress_off_name): New function.
34177         (mips_insert_attributes): Support multiple compression types.
34178         (mips_merge_decl_attributes): Likewise.
34179         (umips_12bit_offset_address_p): New function.
34180         (mips_start_function_definition): Emit .set micromips directive.
34181         (mips_call_may_need_jalx_p): New function.
34182         (mips_function_ok_for_sibcall): Add microMIPS support.
34183         (mips_print_operand_punctuation): Support short delay slots and
34184         compact jumps.
34185         (umips_swm_mask, umips_swm_encoding): New.
34186         (umips_build_save_restore): New function.
34187         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34188         (was_mips16_p): Remove.
34189         (old_compression_mode): New.
34190         (mips_set_compression_mode): New function.
34191         (mips_set_current_function): Add microMIPS support.
34192         (mips_option_override): Likewise.
34193         (umips_save_restore_pattern_p): New function.
34194         (umips_output_save_restore): New function.
34195         (umips_load_store_pair_p_1): New function.
34196         (umips_load_store_pair_p): New function.
34197         (umips_output_load_store_pair_1): New function.
34198         (umips_output_load_store_pair): New function.
34199         (umips_movep_target_p) New function.
34200         (mips_prepare_pch_save): Add microMIPS support.
34201         * config/mips/mips.h (TARGET_COMPRESSION): New.
34202         (TARGET_CPU_CPP_BUILTINS): Update macro
34203         to use new compression flags and to support microMIPS.
34204         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34205         (MIPS_ARCH_FLOAT_SPEC): Likewise.
34206         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34207         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34208         (ASM_SPEC): Support mmicromips and mno-micromips.
34209         (M16STORE_REG_P): New macro.
34210         (MIPS_CALL): Support TARGET_MICROMIPS.
34211         (MICROMIPS_J): New macro.
34212         (mips_base_mips16): Rename this...
34213         (mips_base_compression_flags): ...to this.
34214         (UMIPS_12BIT_OFFSET_P): New macro.
34215         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34216         (MULTILIB_DIRNAMES): Likewise.
34218 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
34220         PR target/52555
34221         * target-globals.c (save_target_globals): For init_reg_sets and
34222         target_reinit remporarily set this_fn_optabs to this_target_optabs.
34224 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
34226         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
34227         * config/aarch64/t-aarch64
34228         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
34230 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
34232         PR inline-asm/56148
34233         * lra-constraints.c (process_alt_operands): Reload operand
34234         conflicting with earlier clobber only if no more other conflicting
34235         operands.
34237 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
34239         PR sanitizer/56393
34240         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
34241         if not linking a shared library.
34243 2013-02-22  Seth LaForge  <sethml@google.com>
34245         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
34247 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
34249         * config/arm/arm.md (split for extendsidi): Update condition.
34250         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
34251         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
34252         (qhs_zextenddi_cstr): Likewise.
34254 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
34256         PR middle-end/56420
34257         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
34258         avoid signed wrapping.
34259         (expand_mult): Handle properly multiplication by
34260         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
34261         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
34262         in the compiler if coeff is HOST_WIDE_INT_MIN.
34263         (expand_divmod): Don't make ext_op1 static, change it's type to
34264         uhwi.  Avoid undefined behavior in -INTVAL (op1).
34266         PR rtl-optimization/50339
34267         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
34268         field.
34269         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
34270         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
34271         into splitting_ashiftrt field.
34272         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
34273         ASHIFTRT.
34274         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
34275         choices.
34277 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
34279         PR middle-end/56108
34280         * trans-mem.c (execute_tm_mark): Do not expand transactions that
34281         are sure to go irrevocable.
34283 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
34285         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
34286         scalars are valid operands.
34288 2013-02-21  Martin Jambor  <mjambor@suse.cz>
34290         PR tree-optimization/56310
34291         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
34292         only matching indices and non-negative final offsets.
34293         (intersect_aggregates_with_edge): Pass src_idx to
34294         agg_replacements_to_vector.  Pass src_idx insstead of index to
34295         intersect_with_agg_replacements.
34297 2013-02-21  Martin Jambor  <mjambor@suse.cz>
34299         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
34300         instead of hard-wired defaults.
34302 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
34304         * doc/invoke.texi (MIPS Options): Update documentation of the
34305         floating-point multiply-accumulate instruction restrictions.
34307 2013-02-21  Kostya Serebryany  <kcc@google.com>
34309         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
34310         asan_shadow_offset on x86_64 linux.
34312 2013-02-21  Richard Biener  <rguenther@suse.de>
34314         PR tree-optimization/56415
34315         Revert
34316         2013-02-11  Richard Biener  <rguenther@suse.de>
34318         PR tree-optimization/56273
34319         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34320         first VRP run.
34322 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
34324         PR bootstrap/56258
34325         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
34326         instead of @itemx.
34328         PR inline-asm/56405
34329         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
34330         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
34332 2013-02-20  Jan Hubicka  <jh@suse.cz>
34334         PR tree-optimization/56265
34335         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
34336         when target is referenced for first time.
34338 2013-02-20  Richard Biener  <rguenther@suse.de>
34340         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
34341         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
34342         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
34343         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
34344         not return anything.
34345         (rename_ssa_copies): Do not remove unused locals.
34346         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34347         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34348         * passes.c (execute_function_todo): Do not schedule unused locals
34349         removal if cleanup_tree_cfg did something.
34350         * tree-ssa-live.c (remove_unused_locals): Dump statistics
34351         about the number of removed locals.
34353 2013-02-20  Richard Biener  <rguenther@suse.de>
34355         PR tree-optimization/56398
34356         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34358 2013-02-20  Martin Jambor  <mjambor@suse.cz>
34360         PR tree-optimization/55334
34361         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34362         restricted pointers to arrays.
34364 2013-02-20  Richard Biener  <rguenther@suse.de>
34365             Jakub Jelinek  <jakub@redhat.com>
34367         PR tree-optimization/56396
34368         * tree-ssa-ccp.c (n_const_val): New static variable.
34369         (get_value): Return NULL for SSA names we don't have a lattice
34370         entry for.
34371         (ccp_initialize): Initialize n_const_val.
34372         * tree-ssa-copy.c (n_copy_of): New static variable.
34373         (init_copy_prop): Initialize n_copy_of.
34374         (get_value): Return NULL_TREE for SSA names we don't have a
34375         lattice entry for.
34377 2013-02-20  Martin Jambor  <mjambor@suse.cz>
34379         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34381 2013-02-20  Richard Biener  <rguenther@suse.de>
34383         * genpreds.c (write_lookup_constraint): Do not compare first
34384         letter of the constraint again.
34386 2013-02-20  Richard Biener  <rguenther@suse.de>
34388         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34389         and ceil_log2.
34390         (get_use_iv_cost): Terminate hashtable walk when coming across
34391         an empty entry.
34393 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
34395         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34396         reassociation for avx2 targets.
34398 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34400         * config/microblaze/microblaze.c: microblaze_has_clz = 0
34401         Add version check for v8.10.a to enable microblaze_has_clz
34402         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34403         version and TARGET_PATTERN_COMPARE check
34404         * config/microblaze/microblaze.md: New clzsi2 instruction
34406 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34408         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34409         function before branching.
34411 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
34413         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34414         DUMP_INSN_RTX_UID.
34415         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34417 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
34419         PR middle-end/55889
34420         * sel-sched.c: Include ira.h.
34421         (implicit_clobber_conflict_p): New function.
34422         (moveup_expr): Use it.
34423         * Makefile.in (sel-sched.o): Depend on ira.h.
34425 2013-02-19  Richard Biener  <rguenther@suse.de>
34427         PR tree-optimization/56384
34428         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34429         (vn_hash_type): Split out from ...
34430         (vn_hash_constant_with_type): ... here.
34431         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34432         (vn_phi_eq): Compare types from vn_phi_s structure.
34433         (vn_phi_lookup): Populate vn_phi_s type.
34434         (vn_phi_insert): Likewise.
34436 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
34438         PR tree-optimization/56350
34439         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34440         if haven't found reduction or nested cycle operand, rather than
34441         asserting we must find it.
34443         PR tree-optimization/56381
34444         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34445         to fold_build3.
34447 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
34448             Jakub Jelinek  <jakub@redhat.com>
34450         PR target/52555
34451         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34452         (swap_optab_enable): Same.
34453         (init_all_optabs): Use argument instead of global.
34454         * tree.h (struct tree_optimization_option): New field target_optabs.
34455         * expr.h (init_all_optabs): Add argument to prototype.
34456         (TREE_OPTIMIZATION_OPTABS): New.
34457         (save_optabs_if_changed): Protoize.
34458         * optabs.h: Declare this_fn_optabs.
34459         * optabs.c (save_optabs_if_changed): New.
34460         Declare this_fn_optabs.
34461         (init_optabs): Add argument to init_all_optabs() call.
34462         * function.c (invoke_set_current_function_hook): Handle per
34463         function optabs.
34464         * function.h (struct function): New field optabs.
34465         * config/mips/mips.c (mips_set_mips16_mode): Handle when
34466         optimization_current_node has changed.
34467         * target-globals.h (save_target_globals_default_opts): Protoize.
34468         * target-globals.c (save_target_globals_default_opts): New.
34470 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34472         PR target/56347
34473         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34474         registers %fr12 and %fr12R as call used.
34476         PR target/56214
34477         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34478         and HImode, require all displacements to be an integer multiple of
34479         their mode size.
34480         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34481         only allow QImode and HImode when reload is in progress and strict is
34482         true.  Likewise for symbolic addresses.  Use base14_operand to check
34483         displacements in REG+BASE addresses.
34485 2013-02-18  Richard Biener  <rguenther@suse.de>
34487         PR tree-optimization/56366
34488         * tree-vect-loop.c (get_initial_def_for_induction): Properly
34489         handle sign-conversion of outer-loop initial induction value.
34491 2013-02-18  Richard Biener  <rguenther@suse.de>
34493         PR middle-end/56349
34494         * cfghooks.c (merge_blocks): If we merge a latch into another
34495         block adjust references to it.
34496         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34497         (verify_loop_structure): Verify that a recorded latch is in fact
34498         a latch.
34500 2013-02-18  Richard Biener  <rguenther@suse.de>
34502         PR tree-optimization/56321
34503         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34504         order SSA name release and virtual operand unlinking.
34506 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34508         * config/microblaze/microblaze.md (save_stack_block): Define.
34509         (restore_stack_block): Likewise.
34511 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34513         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34514         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34515         * config/microblaze/microblaze.c (microblaze_option_override):
34516         Bail out early for PIC modes when target does not support PIC.
34518 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34520         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34521         Replace with a microblaze version.
34522         (microblaze_trampoline_init): Adapt for microblaze.
34523         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34524         microblaze.
34526 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
34527             Dodji Seketeli  <dodji@redhat.com>
34529         PR asan/56330
34530         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34531         (instrument_mem_region_access): Do not forget to always put
34532         instrumentation of the of 'base' and 'base + len' in a "if (len !=
34533         0) statement, even for cases where either 'base' or 'base + len'
34534         are not instrumented -- because they have been previously
34535         instrumented.  Simplify the logic by putting all the statements
34536         instrument 'base + len' inside a sequence, and then insert that
34537         sequence right before the current insertion point.  Then, to
34538         instrument 'base + len', just get an iterator on that statement.
34539         And do not forget to update the pointer to iterator the function
34540         received as argument.
34542 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
34544         PR rtl-optimization/56348
34545         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34547 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
34549         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34550         (clean_graph_dump_file): Pass base to start_graph_dump.
34552 2013-02-14  Richard Henderson  <rth@redhat.com>
34554         PR target/55941
34555         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34557 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
34559         * collect2-aix.h: Define F_LOADONLY.
34561 2013-02-14  Richard Biener  <rguenther@suse.de>
34563         PR lto/50494
34564         * varasm.c (output_constant_def_1): Get the decl representing
34565         the constant as argument.
34566         (output_constant_def): Wrap output_constant_def_1.
34567         (make_decl_rtl): Use output_constant_def_1 with the decl
34568         representing the constant.
34569         (build_constant_desc): Optionally re-use a decl already
34570         representing the constant.
34571         (tree_output_constant_def): Adjust.
34573 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
34575         Fix an asan crash
34576         * asan.c (instrument_builtin_call):  Really put the length of the
34577         second source argument into src1_len.
34579 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34581         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34582         argument.  If it is false, don't create edge from then_bb to
34583         fallthru_bb.
34584         (insert_if_then_before_iter): Pass true to it.
34585         (build_check_stmt): Pass false to it.
34586         (transform_statements): Flush hash table only on extended basic
34587         block boundaries, rather than at the beginning of every bb.
34588         Don't flush hash table on nonfreeing_call_p calls.
34589         * tree-flow.h (nonfreeing_call_p): New prototype.
34590         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34592 2013-02-13  David S. Miller  <davem@davemloft.net>
34594         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34596 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
34598         PR target/56184
34599         * ira.c (max_regno_before_ira): Move from ...
34600         (ira): ... here.
34601         (fix_reg_equiv_init): Use max_regno_before_ira instead of
34602         vec_safe_length.
34604 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34606         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34608 2013-02-13  Richard Biener  <rguenther@suse.de>
34610         PR lto/56295
34611         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34612         globals in MEM_REFs.
34614 2013-02-13  Richard Biener  <rguenther@suse.de>
34616         * loop-init.c (loop_optimizer_init): Clear loop state when
34617         re-initializing preserved loops.
34618         * loop-unswitch.c (unswitch_single_loop): Return whether
34619         we unswitched the loop.  Do not verify loop state here.
34620         (unswitch_loops): When we unswitched a loop discover new loops.
34622 2013-02-13  Kostya Serebryany  <kcc@google.com>
34624         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34625         on x86_64 linux.
34626         * sanitizer.def: Rename __asan_init to __asan_init_v1.
34628 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
34630         Avoid instrumenting duplicated memory access in the same basic block
34631         * Makefile.in (asan.o): Add new dependency on hash-table.h
34632         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34633         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34634         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34635         (free_mem_ref_resources, has_mem_ref_been_instrumented)
34636         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34637         (get_mem_ref_of_assignment): New functions.
34638         (get_mem_refs_of_builtin_call): Extract from
34639         instrument_builtin_call and tweak a little bit to make it fit with
34640         the new signature.
34641         (instrument_builtin_call): Use the new
34642         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
34643         of is_gimple_builtin_call.
34644         (instrument_derefs, instrument_mem_region_access): Insert the
34645         instrumented memory reference into the hash table.
34646         (maybe_instrument_assignment): Renamed instrument_assignment into
34647         this, and change it to advance the iterator when instrumentation
34648         actually happened and return true in that case.  This makes it
34649         homogeneous with maybe_instrument_assignment, and thus give a
34650         chance to callers to be more 'regular'.
34651         (transform_statements): Clear the memory reference hash table
34652         whenever we enter a new BB, when we cross a function call, or when
34653         we are done transforming statements.  Use
34654         maybe_instrument_assignment instead of instrumentation.  No more
34655         need to special case maybe_instrument_assignment and advance the
34656         iterator after calling it; it's now handled just like
34657         maybe_instrument_call.  Update comment.
34659 2013-02-13  Richard Biener  <rguenther@suse.de>
34661         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34662         Fix loop discovery code.
34664 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
34666         PR inline-asm/56148
34667         * lra-constraints.c (process_alt_operands): Match early clobber
34668         operand with itself.  Check conflicts with earlyclobber only if
34669         the operand is not reloaded.  Prefer to reload conflicting operand
34670         if earlyclobber and matching operands are the same.
34672 2013-02-12  Richard Biener  <rguenther@suse.de>
34674         PR lto/56297
34675         * lto-streamer-out.c (write_symbol): Do not output symbols
34676         for hard register variables.
34678 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
34680         PR target/54222
34681         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34682         (umulsidi3_insn, mulsidi3_insn): New insns.
34684 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
34686         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34687         (struct tune_params): Add vec_costs field.
34688         * config/arm/arm.c (arm_builtin_vectorization_cost)
34689         (arm_add_stmt_cost): New functions.
34690         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34691         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34692         (arm_default_vec_cost): New struct of type cpu_vec_costs.
34693         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34694         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34695         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34696         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34698 2013-02-12  Richard Biener  <rguenther@suse.de>
34700         PR lto/56295
34701         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34702         decls again if possible.
34704 2013-02-12  Richard Biener  <rguenther@suse.de>
34706         PR middle-end/56288
34707         * tree-ssa.c (verify_ssa_name): Fix check, move
34708         SSA_NAME_IN_FREE_LIST check up.
34710 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
34711             Steven Bosscher   <steven@gcc.gnu.org>
34713         PR rtl-optimization/56151
34714         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34715         equal to op0 or op1, and last_insn pattern is CODE operation
34716         with MEM dest and one of the operands matches that MEM.
34718 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
34720         * doc/extend.texi: Document Function Multiversioning and "default"
34721         parameter string to target attribute.
34722         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34723         target attribute parameter is "default".
34724         (ix86_compare_version_priority): Remove checks for target attribute.
34725         (ix86_mangle_function_version_assembler_name): Change error to sorry.
34726         Remove check for target attribute equal to NULL. Add assert.
34727         (ix86_generate_version_dispatcher_body): Change error to sorry.
34729 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
34730             Jack Howarth  <howarth@bromo.med.uc.edu>
34731             Patrick Marlier  <patrick.marlier@gmail.com>
34733         PR libitm/55693
34734         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34735         define ENDFILE_SPEC as TM_DESTRUCTOR.
34736         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34738 2013-02-11  Alexander Potapenko  <glider@google.com>
34739             Jack Howarth  <howarth@bromo.med.uc.edu>
34740             Jakub Jelinek  <jakub@redhat.com>
34742         PR sanitizer/55617
34743         * config/darwin.c (cdtor_record): Rename ctor_record.
34744         (sort_cdtor_records): Rename sort_ctor_records.
34745         (finalize_dtors): New routine to sort destructors by
34746         priority before use in assemble_integer.
34747         (machopic_asm_out_destructor): Use finalize_dtors if needed.
34749 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
34751         PR rtl-optimization/56275
34752         * simplify-rtx.c (avoid_constant_pool_reference): Check that
34753         offset is non-negative and less than cmode size before
34754         calling simplify_subreg.
34756 2013-02-11  Richard Biener  <rguenther@suse.de>
34758         PR tree-optimization/56264
34759         * cfgloop.h (fix_loop_structure): Adjust prototype.
34760         * loop-init.c (fix_loop_structure): Return the number of
34761         newly discovered loops.
34762         * tree-cfgcleanup.c (repair_loop_structures): When new loops
34763         are discovered, do a full loop-closed SSA rewrite.
34765 2013-02-11  Richard Biener  <rguenther@suse.de>
34767         PR tree-optimization/56273
34768         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34769         first VRP run.
34770         (check_array_ref): Fix missing newline in dumps.
34771         (search_for_addr_array): Likewise.
34773 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
34775         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34777 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
34779         PR target/56256
34780         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34782 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
34784         PR rtl-optimization/56246
34785         * lra-constraints.c (simplify_operand_subreg): Try to reuse
34786         reload pseudo.
34787         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34788         constraints are satisfied.
34790 2013-02-08  Jeff Law  <law@redhat.com>
34792         PR debug/53948
34793         * emit-rtl.c (reg_is_parm_p): New function.
34794         * regs.h (reg_is_parm_p): New prototype.
34795         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34796         callee-clobbered registers.
34798 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
34800         PR target/56043
34801         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34802         If there is no implicit builtin declaration, just return NULL.
34804 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34806         * config/i386/sse.md (FMAMODEM): New mode iterator.
34807         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34808         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34810 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34812         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34813         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34814         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34816 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34818         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34819         (microblaze*-*-elf): Likewise.
34820         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34821         LINK_SPEC.
34822         * config/microblaze/microblaze-c.c: Add builtin defines for
34823         _LITTLE_ENDIAN and _BIG_ENDIAN.
34824         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34825         add to TARGET_DEFAULT flags.
34826         Expand ASM_SPEC and LINK_SPEC.
34827         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34828         * config/microblaze/microblaze.md: Update extendsidi2 and
34829         movdi_internal instructions to use low-order / high-order reg
34830         print_operands.
34831         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34832         options and inversemask / mask of LITTLE_ENDIAN.
34833         * config/microblaze/t-microblaze: Expand multilib options to
34834         include mlittle-endian (le) and update exceptions patterns.
34836 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
34838         PR rtl-optimization/56195
34839         * lra-constraints.c (get_reload_reg): Don't reuse regs
34840         if they have smaller mode than requested, if they have
34841         wider mode than requested, try to return a SUBREG.
34843         PR tree-optimization/56250
34844         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34845         if type is unsigned and code isn't MULT_EXPR.
34847 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34849         PR tree-optimization/56064
34850         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34851         bits according to mode.
34852         * fixed-value.h (fixed_from_double_int)
34853         (const_fixed_from_double_int): Adjust comments.
34855 2013-02-08  Richard Biener  <rguenther@suse.de>
34857         PR lto/56231
34858         * lto-streamer.h (struct data_in): Remove current_file, current_line
34859         and current_col members.
34860         * lto-streamer-out.c (lto_output_location): Stream changed bits
34861         en-block for efficiency.
34862         * lto-streamer-in.c (clear_line_info): Remove.
34863         (lto_input_location): Cache current file, line and column
34864         globally via local statics.  Read changed bits en-block.
34865         (input_function): Do not call clear_line_info.
34866         (lto_read_body): Likewise.
34867         (lto_input_toplevel_asms): Likewise.
34869 2013-02-08  Michael Matz  <matz@suse.de>
34871         PR tree-optimization/52448
34872         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34873         (nt_call_phase): New static.
34874         (add_or_mark_expr): Only mark accesses with newer phase than any
34875         call seen.
34876         (nonfreeing_call_p): New.
34877         (nt_init_block): Update nt_call_phase, mark blocks as visited.
34878         (nt_fini_block): Keep blocks marked as visited.
34879         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34881 2013-02-08  Richard Biener  <rguenther@suse.de>
34883         * ira.c (ira): Free broken dominator information.
34885 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34887         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34889 2013-02-08  Marek Polacek  <polacek@redhat.com>
34891         * cfgloop.c (verify_loop_structure): Add more checking of headers.
34893 2013-02-08  Richard Biener  <rguenther@suse.de>
34895         PR middle-end/56181
34896         * cfgloop.h (flow_loops_find): Adjust.
34897         (bb_loop_header_p): Declare.
34898         * cfgloop.c (bb_loop_header_p): New function split out from ...
34899         (flow_loops_find): ... here.  Adjust function signature,
34900         support incremental loop structure update.
34901         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
34902         * cfgloopmanip.c (fix_loop_structure): Move ...
34903         * loop-init.c (fix_loop_structure): ... here.
34904         (apply_loop_flags): Split out from ...
34905         (loop_optimizer_init): ... here.
34906         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
34907         in incremental mode, only remove dead loops here.
34909 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34911         PR target/54222
34912         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34913         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34914         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34915         (*round<mode>3.libgcc): New insns for fixed-modes.
34916         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34917         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34918         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34919         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34920         implementations.  Define to __builtin_avr_absFX,
34921         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34922         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34923         __builtin_avr_countlsFX, respectively.
34924         * config/avr/avr-c.c (target.h): Include it.
34925         (enum avr_builtin_id): New enum.
34926         (avr_resolve_overloaded_builtin): New static function.
34927         (avr_register_target_pragmas): Use it to set
34928         targetm.resolve_overloaded_builtin.
34929         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34930         tree nodes used by DEF_BUILTIN.
34931         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34932         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34933         <AVR_BUILTIN_xxBITS>: Same.
34935 2013-02-08  Richard Biener  <rguenther@suse.de>
34937         * cfgloop.c (verify_loop_structure): Properly handle
34938         a loop exiting to another loop header.
34939         * ira-int.h (ira_loops): Remove.
34940         * ira.c (ira_loops): Remove.
34941         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34942         (do_reload): Use loop_optimizer_finalize.
34943         * ira-build.c (create_loop_tree_nodes): Use get_loops and
34944         number_of_loops to access the loop tree.
34945         (more_one_region_p): Likewise.
34946         (finish_loop_tree_nodes): Likewise.
34947         (rebuild_regno_allocno_maps): Likewise.
34948         (mark_loops_for_removal): Likewise.
34949         (mark_all_loops_for_removal): Likewise.
34950         (remove_unnecessary_regions): Likewise.
34951         (ira_build): Likewise.
34952         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34954 2013-02-08  Richard Biener  <rguenther@suse.de>
34956         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34957         * ipa-pure-const.c (analyze_function): Avoid calling
34958         mark_irreducible_loops twice.
34959         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34961 2013-02-07  David S. Miller  <davem@davemloft.net>
34963         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34964         on 'reg'.
34965         * var-tracking.c (vt_add_function_parameter): Test the presence of
34966         HAVE_window_save properly and do not remap argument registers when
34967         we have a leaf function.
34969 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
34971         PR bootstrap/56227
34972         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34973         instead of "ll".
34974         * config/i386/i386.c (ix86_print_operand): Ditto.
34976 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34978         * lra-constraints.c (process_alt_operands): Fix recently added comment.
34980 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34982         PR rtl-optimization/56225
34983         * lra-constraints.c (process_alt_operands): Check that reload hard
34984         reg can hold value for strict_low_part.
34986 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34988         PR debug/56154
34989         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34990         dwarf2out_end_function.
34991         (in_first_function_p, maybe_at_text_label_p,
34992         first_loclabel_num_not_at_text_label): New variables.
34993         (dwarf2out_var_location): In the first function find out
34994         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34995         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34996         functions.
34998 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
35000         PR rtl-optimization/56178
35001         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
35002         SUBREG of a register.  Tidy up related block of code.
35003         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
35004         note if the source is a register or a SUBREG of a register.
35006 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
35008         PR target/56228
35009         * config/rs6000/rs6000.md (ptrm): New mode attr.
35010         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
35011         call_value_indirect_aix<pttrsize>,
35012         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
35013         m in constraints.
35015 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35017         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
35018         if -bnortl. Convert to strcmp and strncmp.
35020 2013-02-07  Alan Modra  <amodra@gmail.com>
35022         PR target/54009
35023         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
35024         addresses won't wrap when offsetting.
35025         (rs6000_secondary_reload): Provide secondary reloads needed for
35026         wrapping LO_SUM addresses.
35028 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
35030         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
35031         MACH, just __MACH__.
35033 2013-02-06  Richard Biener  <rguenther@suse.de>
35035         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
35036         instead of calling fix_loop_structure.
35038 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
35040         PR middle-end/56217
35041         * omp-low.c (use_pointer_for_field): Return false if
35042         lower_send_shared_vars doesn't generate any copy-out code.
35044 2013-02-06  Tom de Vries  <tom@codesourcery.com>
35046         PR rtl-optimization/56131
35047         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
35048         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
35049         of the label is NULL.  Add comment.
35051 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
35053         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
35055         PR sanitizer/55374
35056         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
35057         (STATIC_LIBTSAN_LIBS): Likewise.
35058         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
35059         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
35060         is defined, don't add anything else beyond that.
35061         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
35062         (LINK_COMMAND_SPEC): Use them.
35064         PR tree-optimization/56205
35065         * tree-stdarg.c (check_all_va_list_escapes): Return true if
35066         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
35067         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
35069 2013-02-05  Richard Biener  <rguenther@suse.de>
35071         PR tree-optimization/53342
35072         PR tree-optimization/53185
35073         * tree-vectorizer.h (vect_check_strided_load): Remove.
35074         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
35075         not disallow peeling for vectorized strided loads.
35076         (vect_check_strided_load): Make static and simplify.
35077         (vect_analyze_data_refs): Adjust.
35078         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
35079         correctly when vectorizing strided loads.
35081 2013-02-05  Richard Biener  <rguenther@suse.de>
35083         * doc/install.texi: Refer to ISL, not PPL.
35085 2013-02-05  Jan Hubicka  <jh@suse.cz>
35087         PR tree-optimization/55789
35088         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
35090 2013-02-05  Jan Hubicka  <jh@suse.cz>
35092         PR tree-optimization/55789
35093         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
35094         the dead call anyway.
35096 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
35098         PR sanitizer/55374
35099         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
35101 2013-02-04  Alexander Potapenko  <glider@google.com>
35102             Jack Howarth  <howarth@bromo.med.uc.edu>
35103             Jakub Jelinek  <jakub@redhat.com>
35105         PR sanitizer/55617
35106         * config/darwin.c (sort_ctor_records): Stabilized qsort
35107         on constructor priority by using original position.
35108         (finalize_ctors): New routine to sort constructors by
35109         priority before use in assemble_integer.
35110         (machopic_asm_out_constructor): Use finalize_ctors if needed.
35112 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
35114         PR libstdc++/54314
35115         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
35116         about visibility on artificial decls.
35117         * config/sol2.c (solaris_assemble_visibility): Likewise.
35119 2013-02-04  Kai Tietz  <ktietz@redhat.com>
35121         PR target/56186
35122         * config/i386/i386.c (function_value_ms_64): Add additional valtype
35123         argument and improve checking of return-argument types for 16-byte
35124         modes.
35125         (ix86_function_value_1): Add additional valtype argument on call
35126         of function_value_64.
35127         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
35128         handling infunction_value_64 function.
35130 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
35132         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
35134 2013-02-04  Richard Biener  <rguenther@suse.de>
35136         PR tree-optimization/56188
35137         * tree-ssa-structalias.c (label_visit): Consider case with
35138         initially non-empty points-to set.
35139         (perform_var_substitution): Dump node mapping and clean up.
35141 2013-02-04  Richard Guenther  <rguenther@suse.de>
35143         PR lto/56168
35144         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
35145         node prevail as last resort.
35146         (lto_symtab_merge_decls): Remove guard on LTRANS here.
35147         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
35149 2013-02-04  Richard Biener  <rguenther@suse.de>
35151         PR tree-optimization/56113
35152         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
35153         Merge into ...
35154         (equiv_class_lookup_or_add): ... this.
35155         (label_visit): Adjust and fix error in previous patch.
35156         (perform_var_substitution): Adjust.
35158 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
35160         * config/sh/divtab.c: Fix formatting and comments throughout the file.
35161         * config/sh/sh4-300.md: Likewise.
35162         * config/sh/sh4a.md: Likewise.
35163         * config/sh/constraints.md: Likewise.
35164         * config/sh/sh.md: Likewise.
35165         * config/sh/netbsd-elf.h: Likewise.
35166         * config/sh/predicates.md: Likewise.
35167         * config/sh/sh-protos.h: Likewise.
35168         * config/sh/ushmedia.h: Likewise.
35169         * config/sh/linux.h: Likewise.
35170         * config/sh/sh.c: Likewise.
35171         * config/sh/superh.h: Likewise.
35172         * config/sh/elf.h: Likewise.
35173         * config/sh/sh4.md: Likewise.
35174         * config/sh/sh.h: Likewise.
35176 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35178         * config/pa/constraints.md: Adjust unused letters.  Change "T"
35179         constraint to match_test floating_point_store_memory_operand().
35180         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
35181         (base14_operand): New.
35182         (floating_point_store_memory_operand): New.
35183         (integer_store_memory_operand): Revise to use base14_operand and
35184         reg_plus_base_memory_operand.
35185         (move_dest_operand): Allow symbolic_memory_operands.
35186         (symbolic_memory_operand): Check for LO_SOM.
35187         (symbolic_operand): Change default case to break.
35188         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
35189         CONST_DOUBLE values to be reloaded by putting them into memory when
35190         the destination is a floating point register.
35191         (movdf): Remove code to handle CONST_DOUBLE.
35192         (movsf): Likewise.
35193         (reload_indf_r1): New.
35194         (reload_insf_r1): New.
35195         Consistently use "Q" and "T" constraints with integer and floating
35196         point move instructions, respectively.
35197         (movdi): Remove FAIL.
35198         Change predicate for source operand unamed DImode move from
35199         general_operand to move_src_operand.
35200         (umulsidi3): Change predicate for destination operand to
35201         register_operand.
35202         Likewise for similar unamed patterns.
35203         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
35204         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
35205         (hppa_legitimize_address): Simplify mask calculation.
35206         (pa_emit_move_sequence): Revised handling of secondary reloads from
35207         REG+D addresses for floating point loads and stores.  Directly handle
35208         loading CONST0_RTX (mode) to a floating point register.
35209         (pa_secondary_reload): Handle reloading DF and SFmode constant values
35210         to floating point registers.  Don't restrict secondary reloads to
35211         floating point registers to integer modes.  Revise some comments and
35212         cleanup some code.
35213         (TARGET_LEGITIMATE_ADDRESS_P): Define.
35214         (pa_legitimate_address_p): New.
35215         (pa_legitimize_reload_address): New.
35216         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
35217         (STRICT_REG_OK_FOR_BASE_P): New.
35218         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
35219         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
35221 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
35222             Andrew Dixie  <andrewd@gentrack.com>
35224         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
35225         flag set.
35227 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
35229         * expmed.c (extract_bit_field_1): Pass the full width of the
35230         structure to get_best_reg_extraction_insn.
35232 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
35234         PR target/54601
35235         * configure.ac (use_cxa_atexit): Add AIX.
35236         * configure: Regenerate.
35238         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
35240 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
35242         PR debug/54793
35243         * final.c (need_profile_function): New variable.
35244         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
35245         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
35246         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
35247         notes, targetm.asm_out.function_prologue doesn't emit anything,
35248         HAVE_prologue and profiler should be emitted before prologue,
35249         set need_profile_function instead of emitting it.
35250         (final_scan_insn): If need_profile_function, emit
35251         profile_function on the first NOTE_INSN_BASIC_BLOCK or
35252         NOTE_INSN_FUNCTION_BEG note.
35254 2013-02-01  Richard Henderson  <rth@redhat.com>
35256         * config/rs6000/rs6000.md (smulditi3): New.
35257         (umulditi3): New.
35259         * config/alpha/alpha.md (umulditi3): New.
35261 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
35263         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
35264         (ASM_OUTPUT_ALIGNED_LOCAL): New.
35266 2013-02-01  Richard Biener  <rguenther@suse.de>
35268         PR tree-optimization/56113
35269         * tree-ssa-structalias.c (label_visit): Reduce work for
35270         single-predecessor nodes.
35272 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
35274         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
35275         range isn't testing for zero.
35277 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
35279         PR middle-end/56113
35280         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
35282 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
35283             Nick Clifton  <nickc@redhat.com>
35285         * config/v850/constraints.md (Q): Define as a memory constraint.
35286         * config/v850/predicates.md (label_ref_operand): New predicate.
35287         (e3v5_shift_operand): New predicate.
35288         (ior_operator): New predicate.
35289         * config/v850/t-v850: Add e3v5 multilib.
35290         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
35291         (v850_gen_movdi): Prototype.
35292         * config/v850/v850.c: Add support for e3v5 architecture.
35293         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
35294         TARGET_V850E_UP.
35295         (construct_save_jarl): Add e3v5 long JARL support.
35296         (v850_adjust_insn_length): New function.  Adjust length of call
35297         insns when using e3v5 instructions.
35298         (v850_gen_movdi): New function: Generate instructions to move a
35299         DImode value.
35300         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
35301         (CPP_SPEC): Define __v850e3v5__ as appropriate.
35302         (TARGET_USE_FPU): Enable for e3v5.
35303         (CONST_OK_FOR_W): New macro.
35304         (ADJUST_INSN_LENGTH): Define.
35305         * config/v850/v850.md (UNSPEC_LOOP): Define.
35306         (attr cpu): Add v850e3v5.
35307         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
35308         (movdi): New pattern.
35309         (movdi_internal): New pattern.
35310         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
35311         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
35312         (cstoresf4): Likewise.
35313         (cstoredf4): Likewise.
35314         (insv): New pattern.
35315         (rotlso3_a): New pattern.
35316         (rotlsi3_b): New pattern
35317         (rotlsi3_v850e3v5): New pattern.
35318         (doloop_begin): New pattern.
35319         (fix_loop_counter): New pattern.
35320         (doloop_end): New pattern.
35321         (branch_normal): Add e3v5 long branch support.
35322         (branch_invert): Likewise.
35323         (branch_z_normal): Likewise.
35324         (branch_z_invert): Likewise.
35325         (branch_nz_normal): Likewise.
35326         (branch_nz_invert): Likewise.
35327         (call_internal_short): Add e3v5 register-indirect JARL support.
35328         (call_internal_long): Likewise.
35329         (call_value_internal_short): Likewise.
35330         (call_value_internal_long): Likewise.
35331         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
35332         (mloop): New option.
35333         * config.gcc: Add support for configuring v840e3v5 target.
35334         * doc/invoke.texi: Document new v850 specific command line options.
35336 2013-01-31  Paul Koning  <ni1d@arrl.net>
35338         PR debug/55059
35339         PR debug/54508
35340         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
35341         children if parent is a class.
35342         (prune_unused_types_prune): Don't add DW_AT_declaration.
35344 2013-01-31  Richard Biener  <rguenther@suse.de>
35346         PR tree-optimization/56157
35347         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35348         match up operand with SLP child.
35350 2013-01-31  Jason Merrill  <jason@redhat.com>
35352         PR debug/54410
35353         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35354         parameters the first time.
35355         (gen_scheduled_generic_parms_dies): Check completeness here.
35357 2013-01-31  Richard Biener  <rguenther@suse.de>
35359         PR middle-end/53073
35360         * common.opt (faggressive-loop-optimizations): New flag,
35361         enabled by default.
35362         * doc/invoke.texi (faggressive-loop-optimizations): Document.
35363         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35364         infer_loop_bounds_from_undefined by it.
35366 2013-01-31  Richard Biener  <rguenther@suse.de>
35368         PR tree-optimization/56150
35369         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35370         visit virtual operands.
35371         (find_uses_to_rename_bb): Likewise.
35373 2013-01-31  Richard Biener  <rguenther@suse.de>
35375         PR tree-optimization/56150
35376         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35377         mixed store non-store stmts.
35379 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
35381         PR sanitizer/55374
35382         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35383         LIBASAN_EARLY_SPEC is defined.
35384         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35385         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35386         before %o.
35387         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35389         PR c++/55742
35390         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35391         invalid args instead of ICEing on it.
35392         (ix86_valid_target_attribute_tree): Return error_mark_node if
35393         ix86_valid_target_attribute_inner_p failed.
35394         (ix86_valid_target_attribute_p): Return false only if
35395         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
35396         target("default") attribute.
35397         (sorted_attr_string): Change argument from const char * to tree,
35398         merge in all target attribute arguments rather than just one.
35399         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
35400         instead of free.  Avoid using strcat.
35401         (ix86_mangle_function_version_assembler_name): Mangle
35402         target("default") as if no target attribute is present.  Adjust
35403         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
35404         instead of xmalloc and XDELETEVEC instead of free.
35405         (ix86_function_versions): Don't return true if one of the decls
35406         doesn't have target attribute.  If they don't and one of the decls
35407         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
35408         sorted_attr_string caller.  Use XDELETEVEC instead of free.
35409         (ix86_supports_function_versions): Remove.
35410         (make_name): Fix up formatting.
35411         (make_dispatcher_decl): Remove resolver_name and its initialization.
35412         Avoid leaking memory.
35413         (is_function_default_version): Return true if there is
35414         target("default") attribute rather than no target attribute at all.
35415         (make_resolver_func): Avoid leaking memory.
35416         (ix86_generate_version_dispatcher_body): Likewise.
35417         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35418         * target.def (supports_function_versions): Remove.
35419         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35420         * doc/tm.texi: Regenerated.
35422 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
35424         PR rtl-optimization/56144
35425         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35426         for values with side effects.
35428 2013-01-30  Richard Biener  <rguenther@suse.de>
35430         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35431         (sparseset_pop): Likewise.
35432         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
35433         to be able to use quick_push in the worker loop.
35435 2013-01-30  Marek Polacek  <polacek@redhat.com>
35437         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35439 2013-01-30  Richard Biener  <rguenther@suse.de>
35441         PR lto/56147
35442         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35444 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
35446         PR tree-optimization/56064
35447         * fixed-value.c (fixed_from_double_int): New function.
35448         * fixed-value.h (fixed_from_double_int): New prototype.
35449         (const_fixed_from_double_int): New static inline function.
35450         * fold-const.c (native_interpret_fixed): New static function.
35451         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35452         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35453         (native_encode_fixed): New static function.
35454         (native_encode_expr) <FIXED_CST>: Use it.
35455         (native_interpret_int): Move double_int worker code to...
35456         * double-int.c (double_int::from_buffer): ...this new static method.
35457         * double-int.h (double_int::from_buffer): Prototype it.
35459 2013-01-30  Richard Biener  <rguenther@suse.de>
35461         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35462         New pointer-map and obstack.
35463         (init_alias_vars): Allocate pointer-map and obstack.
35464         (delete_points_to_sets): Free them.
35465         (find_what_var_points_to): Cache result.
35466         (find_what_p_points_to): Adjust for changed interface of
35467         find_what_var_points_to.
35468         (compute_points_to_sets): Likewise.
35469         (ipa_pta_execute): Likewise.
35471 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35473         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35474         * configure: Regenerate.
35475         * config.in: Regenerate.
35476         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35477         #nobits/#progbits if supported.
35479 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
35481         PR target/56121
35482         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35483         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35484         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35486 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35488         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35489         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35491 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35493         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35494         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35496 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35498         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35499         declaration.
35500         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35501         * config/arm/cortex-a7.md: New bypasses using
35502         arm_mac_accumulator_is_result.
35504 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35506         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
35507         (cortex_a7_neon_mla): Likewise.
35508         (cortex_a7_fpfmad): New reservation.
35509         (cortex_a7_fpmacs): Use ffmas and update required units.
35510         (cortex_a7_fpmuld): Update required units and latency.
35511         (cortex_a7_fpmacd): Likewise.
35512         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35513         (cortex_a7_neon). Likewise.
35514         (bypass) Update participating units.
35516 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35518         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35519         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35520         from fmac to ffma.
35521         * config/arm/vfp11.md (vfp_farith): Use ffmas.
35522         (vfp_fmul): Use ffmad.
35523         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35524         (cortex_r4_fmacd): Use ffmad.
35525         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35526         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
35527         (cortex_a9_fmacd): Use ffmad.
35528         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35529         (cortex_a8_vfp_macd): Use ffmad.
35530         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35531         (cortex_a5_fpmacd): Use ffmad.
35532         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35533         (cortex_a15_vfp_macd): Use ffmad.
35534         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35536 2013-01-29  Jason Merrill  <jason@redhat.com>
35538         PR libstdc++/54314
35539         * varasm.c (default_assemble_visibility): Don't warn about
35540         visibility on artificial decls.
35542 2013-01-29  Richard Biener  <rguenther@suse.de>
35544         PR tree-optimization/56113
35545         * tree-ssa-structalias.c (equiv_class_lookup): Also return
35546         the bitmap leader.
35547         (label_visit): Free duplicate bitmaps and record the leader instead.
35548         (perform_var_substitution): Adjust.
35550 2013-01-29  Richard Biener  <rguenther@suse.de>
35552         PR tree-optimization/55270
35553         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35554         the CFG, schedule loops for fixup.
35556 2013-01-29  Nick Clifton  <nickc@redhat.com>
35558         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35559         SP_REG.
35561 2013-01-28  Leif Ekblad  <leif@rdos.net>
35563         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35564         * config/i386/i386.h (TARGET_RDOS): New macro.
35565         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35566         * config/i386/i386.c (ix86_option_override_internal): For 64bit
35567         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35568         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35569         DEFAULT_LARGE_SECTION_THRESHOLD.
35570         * config/i386/i386.md (R14_REG, R15_REG): New constants.
35571         * config/i386/rdos.h: New file.
35572         * config/i386/rdos64.h: New file.
35574 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
35576         PR other/54814
35577         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35578         TEST_HARD_REG_BIT.
35580 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35582         PR rtl-optimization/56117
35583         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35584         call cselib_lookup_from_insn on the MEM before calling
35585         add_insn_mem_dependence.
35587 2013-01-28  Richard Biener  <rguenther@suse.de>
35589         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35590         to a stmt that didn't have one.
35591         (copy_phis_for_bb): Likewise for PHI arguments.
35592         (copy_debug_stmt): Likewise for debug stmts.
35594 2013-01-28  Richard Biener  <rguenther@suse.de>
35596         PR tree-optimization/56034
35597         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35598         (partition_builtin_p): Adjust.
35599         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
35600         it is the last partition.
35601         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35602         up the vertex for the definition.
35603         (classify_partition): Classify whether a partition is a
35604         PKIND_REDUCTION, thus has uses outside of the loop.
35605         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35606         Merge all PKIND_REDUCTION partitions into the last partition.
35607         (tree_loop_distribution): Seed partitions from reductions as well.
35609 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35611         PR tree-optimization/56125
35612         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35613         pow(x,c) into sqrt(x) * powi(x, n/2) or
35614         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35615         optimizing for size.
35616         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35617         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35618         integer.
35620         PR tree-optimization/56094
35621         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35622         to UNKNOWN_LOCATION while gimplifying expr.
35624 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
35626         PR target/56114
35627         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35628         operand 0 in movabs insn template for -masm=intel asm alternative.
35629         (*movabs<mode>_2): Ditto for operand 1.
35631 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
35633         PR target/54663
35634         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35635         of microblaze-c.o
35637 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35639         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35640         tm_file.
35642 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35644         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35645         Undef to avoid warning.
35647 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35649         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35650         * configure: Regenerate.
35652 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
35654         PR tree-optimization/56098
35655         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35656         for stmts with volatile ops.
35657         (cond_store_replacement): Don't optimize if assign has volatile ops.
35658         (cond_if_else_store_replacement_1): Don't optimize if either
35659         then_assign or else_assign have volatile ops.
35660         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35661         volatile ops.
35663 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35665         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35667 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35669         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35670         missing ':' in asm example.
35672 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
35674         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35675         entries into lane and laneq entries.
35676         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35677         Remove AdvSIMD scalar modes.
35678         (aarch64_sq<r>dmulh_laneq<mode>): New.
35679         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35680         modes.
35681         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35682         builtin implementations to relfect changes in RTL in aarch64-simd.md.
35683         * config/aarch64/iterators.md (VCOND): New.
35684         (VCONQ): New.
35686 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35688         PR target/54222
35689         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35690         Add NULL LIBNAME argument to existing definitions.
35691         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35692         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35693         * config/avr/avr.c (DEF_BUILTIN): Same.
35694         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35695         (avr_expand_builtin): Expand to a vanilla call if a libgcc
35696         implementation is available (DECL_ASSEMBLER_NAME is set).
35697         (avr_fold_absfx): New static function.
35698         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35699         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35700         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35701         AVR_BUILTIN_ABSLLK.
35702         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35703         (abshk, absk, abslk, absllk): Provide as static inline functions.
35705 2013-01-25  Marek Polacek  <polacek@redhat.com>
35707         PR tree-optimization/56035
35708         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35710 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
35712         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35713         (*movtf_internal_rex64): Add (!o,C) alternative
35714         (*movxf_internal_rex64): Ditto.
35715         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35717 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
35719         * doc/invoke.texi: fix typo.
35720         * doc/objc.texi: fix typo.
35722 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
35724         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35725         for the first two alternatives.
35727 2013-01-24  Diego Novillo  <dnovillo@google.com>
35729         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
35730         (ggc-zone.o): Remove.
35731         * configure.ac: Remove option --with-gc.
35732         * configure: Re-generate.
35733         * doc/install.texi: Remove documentation for --with-gc.
35734         * gengtype.c (write_enum_defn): Remove.  Update all users.
35735         (write_Types_process_field): Remove generation of gt_e_* argument.
35736         (output_type_enum): Remove.  Update all users.
35737         (write_enum_defn): Remove.  Update all users.
35738         (enum alloc_zone): Remove.  Update all users.
35739         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35740         * ggc-common.c (ggc_splay_alloc): Remove first argument.
35741         Update all callers.
35742         (struct ptr_data): Remove field TYPE.  Update all users.
35743         (gt_pch_note_object): Remove argument TYPE.  Update all users.
35744         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35745         Update all users.
35746         * ggc-none.c (ggc_alloc_typed_stat): Remove.
35747         (struct alloc_zone): Remove.
35748         (ggc_internal_alloc_zone_stat): Remove.
35749         (ggc_internal_cleared_alloc_zone_stat): Remove.
35750         * ggc-page.c (ggc_alloc_typed_stat): Remove.
35751         (ggc_pch_count_object): Remove last argument.  Update all users.
35752         (ggc_pch_alloc_object): Remove last argument.  Update all users.
35753         (struct alloc_zone): Remove.
35754         * ggc-zone.c: Remove.
35755         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
35756         (struct alloc_zone): Remove.
35757         (ggc_alloc_typed_stat): Remove.
35758         (ggc_alloc_typed): Remove.
35759         (ggc_splay_alloc): Remove first argument.
35760         (rtl_zone): Remove.  Update all users.
35761         (tree_zone): Remove.  Update all users.
35762         (tree_id_zone): Remove.  Update all users.
35763         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
35764         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
35765         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
35766         * tree-ssanames.c: Remove references to zone allocator in comments.
35768 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
35770         * config/avr/avr.c (avr_out_fract): Make register numbers that
35771         might be outside of source operand signed.
35773 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
35775         * config/i386/constraints.md (Yf): New constraint.
35776         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35777         of f constraint to conditionaly disable x87 register preferences.
35778         (*movdf_internal): Ditto.
35779         (*movsf_internal): Ditto.
35781 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
35783         PR inline-asm/55934
35784         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35785         that have operands with impossible constraints.
35786         Add a FIXME for a speed-up opportunity.
35787         * lra-constraints.c (process_alt_operands): Verify that a class
35788         selected from constraints on asms is valid for the operand mode.
35789         (curr_insn_transform): Remove incorrect comment.
35791 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
35793         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35794         TOC operand is a valid symbol ref in the constant pool.
35796 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35798         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35800 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
35802         PR target/54222
35803         * config/avr/stdfix.h: New file.
35804         * t-avr (stdfix-gcc.h): New rule to build it.
35805         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35807 2013-01-23  Kostya Serebryany  <kcc@google.com>
35809         * config/darwin.h: remove dependency on
35810         CoreFoundation (asan on Mac OS).
35812 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
35814         PR target/49069
35815         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35816         instead of cmpdi_operand for first comparison operand.
35817         Don't assert that comparison operands aren't both constants.
35819 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35821         * doc/install.texi (Downloading the Source): Update references to
35822         downloading separate components.
35824 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35826         * doc/extend.texi (__int128): Improve grammar.
35828 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
35830         PR target/56028
35831         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35832         alternative to (o,r).
35833         (*movdi_internal_rex64): Remove (!o,n) alternative.
35834         (DImode immediate->memory splitter): Remove.
35835         (DImode immediate->memory peephole2): Remove.
35836         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35837         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35838         alternative to (!o,*r).
35839         (*movtf_internal_sse): New pattern.
35840         (*movxf_internal_rex64): New pattern.
35841         (*movxf_internal): Disable for TARGET_64BIT.
35842         (*movdf_internal_rex64): Remove (!o,F) alternative.
35844 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
35846         PR middle-end/56074
35847         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35848         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35849         * tree-vect-loop-manip.c (find_loop_location): Also ignore
35850         stmt locations where LOCATION_LOCUS of the stmt location is
35851         UNKNOWN_LOCATION or BUILTINS_LOCATION.
35853         PR target/55686
35854         * config/i386/i386.md (UNSPEC_STOS): New.
35855         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35856         *strsetqi_1): Add UNSPEC_STOS.
35858 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
35860         PR c++/56067
35861         * doc/invoke.texi: Remove left over -Wsynth example.
35863 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35865         PR tree-optimization/56051
35866         * fold-const.c (fold_binary_loc): Don't fold
35867         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35868         a narrowing conversion, or widening conversion from signed
35869         to unsigned.
35871 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35873         PR rtl-optimization/56023
35874         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35875         dependent on debug instruction.
35877 2013-01-21  Martin Jambor  <mjambor@suse.cz>
35879         PR middle-end/56022
35880         * function.c (allocate_struct_function): Call
35881         invoke_set_current_function_hook earlier.
35883 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35885         * reload1.c (init_reload): Only initialize reload_obstack
35886         during the first call.
35888 2013-01-21  Marek Polacek  <polacek@redhat.com>
35890         * cfgloop.c (verify_loop_structure): Fix up grammar.
35892 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
35894         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35895         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35897 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35899         PR target/56058
35900         * config/arm/marvell-pj4.md: Update copyright year.
35901         Fix up use of alu to alu_reg and simple_alu_imm.
35903 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35905         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35907 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
35909         PR target/55433
35910         * lra-constraints.c (curr_insn_transform): Don't reuse original
35911         insn for secondary memory move when memory mode should be different.
35913 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35915         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35916         atomic_storedi_1): New patterns.
35918 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
35920         btver2 pipeline descriptions.
35921         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35922         descriptions.
35923         * config/i386/i386.md (btver2_decode): New type attributes.
35924         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35925         type attributes.
35926         * config/i386/btver2.md: New file describing btver2 pipelines.
35928 2013-01-19  Andrew Pinski  <apinski@cavium.com>
35930         PR tree-optimization/52631
35931         * tree-ssa-sccvn (visit_use): Before looking up the original
35932         statement, try looking up the simplified expression.
35934 2013-01-19  Anthony Green  <green@moxielogic.com>
35936         * config/moxie/moxie.c (moxie_expand_prologue): Set
35937         current_function_static_stack_size.
35939 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35941         PR tree-optimization/56029
35942         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35943         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35945 2013-01-18  Sharad Singhai  <singhai@google.com>
35947         PR tree-optimization/55995
35948         * dumpfile.c (dump_loc): Print location only if available.
35949         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35951 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
35953         PR target/55433
35954         * lra-constraints.c (curr_insn_transform): Reuse original insn for
35955         secondary memory move.
35956         (inherit_reload_reg): Use rclass instead of cl for
35957         check_secondary_memory_needed_p.
35959 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35961         PR middle-end/56015
35962         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35963         the case where writing real complex part of target modifies op1.
35965 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
35967         * config/aarch64/aarch64-simd.md
35968         (aarch64_vcond_internal<mode>): Handle unordered cases.
35969         * config/aarch64/iterators.md (v_cmp_result): New.
35971 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
35972             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35974         * config/arm/marvell-pj4.md: New file.
35975         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35976         * config/arm/arm.md (generic_sched): Add marvell_pj4.
35977         (generic_vfp): Likewise.
35978         * config/arm/arm-cores.def: Add marvell-pj4.
35979         * config/arm/arm-tune.md: Regenerate.
35980         * config/arm/arm-tables.opt: Regenerate.
35981         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35982         * doc/invoke.texi: Document marvell-pj4.
35984 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
35986         * config/aarch64/arm_neon.h: Map scalar types to standard types.
35988 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35990         PR debug/54114
35991         PR debug/54402
35992         PR debug/49888
35993         * var-tracking.c (negative_power_of_two_p): New.
35994         (global_get_addr_cache, local_get_addr_cache): New.
35995         (get_addr_from_global_cache, get_addr_from_local_cache): New.
35996         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
35997         heading comment.
35998         (vt_stack_offset_p): Remove.
35999         (vt_canon_true_dep): Always canonicalize loc's address.
36000         (clobber_overlapping_mems): Make sure we have a MEM.
36001         (local_get_addr_clear_given_value): New.
36002         (val_reset): Clear local cached entries.
36003         (compute_bb_dataflow): Create and release the local cache.
36004         Disable duplicate MEMs clobbering.
36005         (emit_notes_in_bb): Clobber MEMs likewise.
36006         (vt_emit_notes): Create and release the local cache.
36007         (vt_initialize, vt_finalize): Create and release the global
36008         cache, respectively.
36009         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
36011 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
36013         PR libmudflap/53359
36014         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
36015         not found in the symtab.
36017 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
36019         PR debug/56006
36020         PR rtl-optimization/55547
36021         PR rtl-optimization/53827
36022         PR debug/53671
36023         PR debug/49888
36024         * alias.c (offset_overlap_p): New, factored out of...
36025         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
36026         the conservative special case for symbolic constants.  Don't
36027         adjust zero sizes on alignment.
36029 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
36031         PR rtl-optimization/52573
36032         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
36033         REG_UNUSED for the same register.
36035 2013-01-17  Richard Biener  <rguenther@suse.de>
36036             Marek Polacek  <polacek@redhat.com>
36038         PR rtl-optimization/55833
36039         * loop-unswitch.c (unswitch_loops): Move loop verification...
36040         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
36041         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
36042         Set it to true when we're removing a loop from hierarchy tree in
36043         an irreducible region.
36044         (fix_bb_placements): Adjust caller.
36045         (fix_loop_placements): Likewise.
36047 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
36049         * config/avr/builtins.def (DEF_BUILTIN): Factor out
36050         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
36051         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
36052         Remove ID.  Adjust comments.
36053         * config/avr/avr-c.c (avr_builtin_name): Remove.
36054         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
36055         * config/avr/avr.c (avr_tolower): New static function.
36056         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
36057         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
36058         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
36059         default expansion.
36061 2013-01-17  Jan Hubicka  <jh@suse.cz>
36063         PR tree-optimization/55273
36064         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
36066 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
36068         PR target/55981
36069         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
36070         store through atomic_store<mode>_1.
36071         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
36073 2013-01-17  Martin Jambor  <mjambor@suse.cz>
36075         PR tree-optimizations/55264
36076         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
36077         for virtual methods.
36078         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
36079         virtual methods before inlining is over.
36080         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
36081         virtual functions.
36082         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
36083         non-virtual.
36085 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
36087         PR rtl-optimization/56005
36088         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
36089         pending reads for prefetch.
36091 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
36093         * config/aarch64/aarch64.md
36094         (*cstoresi_neg_uxtw): New pattern.
36095         (*cmovsi_insn_uxtw): New pattern.
36096         (*<optab>si3_uxtw): New pattern.
36097         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
36098         (*<optab>si3_insn_uxtw): New pattern.
36099         (*bswapsi2_uxtw): New pattern.
36101 2013-01-16  Richard Biener  <rguenther@suse.de>
36103         * tree-inline.c (tree_function_versioning): Remove set but
36104         never used variable.
36106 2013-01-16  Richard Biener  <rguenther@suse.de>
36108         PR tree-optimization/55964
36109         * tree-flow.h (rename_variables_in_loop): Remove.
36110         (rename_variables_in_bb): Likewise.
36111         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
36112         (copy_loop_before): Adjust and delete update-ssa status.
36113         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
36114         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
36115         (rename_variables_in_loop): Remove.
36116         (slpeel_update_phis_for_duplicate_loop): Likewise.
36117         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
36118         use available cfg machinery instead of duplicating it.
36119         Update PHI nodes and perform poor-mans SSA update here.
36120         (slpeel_tree_peel_loop_to_edge): Adjust.
36122 2013-01-16  Richard Biener  <rguenther@suse.de>
36124         PR tree-optimization/54767
36125         PR tree-optimization/53465
36126         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
36127         (vrp_visit_phi_node): For PHI arguments coming via backedges
36128         drop all symbolical range information.
36129         (execute_vrp): Compute backedges.
36131 2013-01-16  Richard Biener  <rguenther@suse.de>
36133         * doc/install.texi: Update CLooG and ISL requirements to
36134         0.18.0 and 0.11.1.
36136 2013-01-16  Christian Bruel  <christian.bruel@st.com>
36138         PR target/55301
36139         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
36140         (broken_move): Handle UNSPECV_SP_SWITCH_B.
36141         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
36143 2013-01-16  DJ Delorie  <dj@redhat.com>
36145         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
36146         (UNSPECV_SP_SWITCH_E): New.
36147         (sp_switch_1): Change to an unspec.
36148         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
36149         replace $r15.
36151 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
36153         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
36154         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
36155         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
36156         (expand_mem_thread_fence): Ditto.
36157         (expand_mem_signal_fence): Ditto.
36158         (expand_atomic_load): Ditto.
36159         (expand_atomic_store): Ditto.
36161 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
36163         PR rtl-optimization/55547
36164         PR rtl-optimization/53827
36165         PR debug/53671
36166         PR debug/49888
36167         * alias.c (memrefs_conflict_p): Set sizes to negative after
36168         AND adjustments.
36170 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
36172         PR target/55940
36173         * function.c (thread_prologue_and_epilogue_insns): Always
36174         add crtl->drap_reg to set_up_by_prologue.set, even if
36175         stack_realign_drap is false.
36177 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
36179         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
36180         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
36181         *call): Fix indention.
36183 2013-01-15  Tom de Vries  <tom@codesourcery.com>
36185         PR target/55876
36186         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
36187         Update comment.
36189 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
36191         PR rtl-optimization/55153
36192         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
36194 2013-01-15  Martin Jambor  <mjambor@suse.cz>
36196         PR tree-optimization/55920
36197         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
36198         accesses as grp_to_be_debug_replaced.
36200 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
36202         PR tree-optimization/55920
36203         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
36204         there is non-useless type conversion needed from debug rhs to lhs,
36205         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
36207 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
36208             Mikael Pettersson  <mikpe@it.uu.se>
36210         PR target/43961
36211         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
36212         Thumb.
36213         (ASM_OUTPUT_CASE_LABEL): Remove.
36214         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
36215         * final.c (shorten_branches): Update alignment of labels before
36216         jump tables if CASE_VECTOR_SHORTEN_MODE.
36218 2013-01-15  Richard Biener  <rguenther@suse.de>
36220         PR bootstrap/55961
36221         * system.h: Do not include gmp.h for building host tools.
36223 2013-01-15  Richard Biener  <rguenther@suse.de>
36225         PR middle-end/55882
36226         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
36227         account for bitpos when computing alignment.
36229 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
36231         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
36232         (ix86_target_macros_internal): Likewise.
36234         * config/i386/i386.c (m_CORE2I7): Removed.
36235         (m_CORE_HASWELL): New macro.
36236         (m_CORE_ALL): Likewise.
36237         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
36238         (initial_ix86_arch_features): Likewise.
36239         (processor_target_table): Initializations for Core avx2.
36240         (cpu_names): New names "core-avx2".
36241         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
36242         PROCESSOR_CORE_HASWELL.
36243         (ix86_issue_rate): New case.
36244         (ia32_multipass_dfa_lookahead): Likewise.
36245         (ix86_sched_init_global): Likewise.
36247         * config/i386/i386.h (TARGET_HASWELL): New macro.
36248         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
36249         (processor_type): New PROCESSOR_HASWELL.
36251 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
36253         PR tree-optimization/55955
36254         * tree-vect-loop.c (vectorizable_reduction): Give up early on
36255         *SHIFT_EXPR and *ROTATE_EXPR codes.
36257         PR tree-optimization/48766
36258         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
36259         -ftrapv disable -fwrapv.
36261 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36263         PR target/55974
36264         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
36265         etc. to 1 and not to __flash.
36266         Use LL suffix for __INT24_MAX__ with -mint8.
36267         Use ULL suffix for __UINT24_MAX__ with -mint8.
36269 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36271         * config/avr/avr-arch.h
36272         (struct base_arch_s): Use typedef avr_arch_t instead.
36273         (struct arch_info_s): Use typedef avr_arch_info_t instead.
36274         (struct mcu_type_s): Use typedef avr_mcu_t instead.
36275         * config/avr/avr.c: Same.
36276         * config/avr/avr-devices.c: Same.
36277         * config/avr/driver-avr.c: Same.
36278         * config/avr/gen-avr-mmcu-texi.c: Same.
36279         * config/avr/avr-mcus.def: Adjust comment.
36281 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
36283         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
36284         * config/aarch64/iterators.md (VALLDI): New.
36286 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
36287             Andi Kleen  <ak@linux.intel.com>
36289         PR target/55948
36290         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
36291         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
36292         memmodel flag.
36294 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36296         * config/avr/avr-stdint.h: Remove trailing blanks.
36297         * config/avr/avr-log.h: Same.
36298         * config/avr/avr-arch.h: Same.
36299         * config/avr/avr-devices.c: Same.
36300         * config/avr/avr-dimode.md: Same.
36301         * config/avr/predicates.md: Same.
36302         * config/avr/avr-c.c: Same.  And fix typo.
36304         * config/avr/avr-protos.h: Same.  And:
36305         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
36306         (init_cumulative_args): Rename to avr_init_cumulative_args.
36307         (expand_prologue): Rename to avr_expand_prologue.
36308         (expand_epilogue): Rename to avr_expand_epilogue.
36309         (adjust_insn_length): Rename to avr_adjust_insn_length.
36310         (notice_update_cc): Rename to avr_notice_update_cc.
36311         (final_prescan_insn): Rename to avr_final_prescan_insn.
36312         * config/avr/avr.c: Same.
36313         * config/avr/avr.h: Same.
36314         * config/avr/avr.md: Remove trailing blanks.
36315         (prologue): Use avr_expand_prologue.
36316         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
36318 2013-01-14  Richard Biener  <rguenther@suse.de>
36320         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
36321         verify_location, collect_subblocks): New functions.
36322         (verify_gimple_in_cfg): Verify that locations only reference
36323         BLOCKs in the functions BLOCK tree.
36325 2013-01-14  Richard Biener  <rguenther@suse.de>
36327         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
36328         PHI argument.
36329         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
36330         unshare reference.
36331         (insert_out_of_ssa_copy_on_edge): Likewise.
36332         (rewrite_close_phi_out_of_ssa): Likewise.
36333         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
36334         debug expressions.
36335         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
36336         propagated constants.
36337         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
36338         can not be shared.
36340 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36342         * config/avr/avr-modes.def: Add GPL copyright notice.
36344 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
36346         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36347         MEMMODEL_MASK to determine memory model.
36348         (atomic_store<mode>): Ditto from operands[2].
36349         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36351 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
36353         PR fortran/55935
36354         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36355         (fold_gimple_assign): Don't call unshare_expr here.
36356         (fold_ctor_reference): Call unshare_expr.
36358 2013-01-13  Terry Guo  <terry.guo@arm.com>
36360         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36361         * doc/fragments.texi: Document MULTILIB_REUSE.
36362         * gcc.c (multilib_reuse): New internal spec.
36363         (set_multilib_dir): Also search multilib from multilib_reuse.
36364         * genmultilib (tmpmultilib3): Refactor code.
36365         (tmpmultilib4): Ditto.
36366         (multilib_reuse): New multilib argument.
36368 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
36370         * Makefile.in: Update copyright.
36372 2013-01-12  Tom de Vries  <tom@codesourcery.com>
36374         PR middle-end/55890
36375         * calls.c (expand_call): Check if arg_nr is valid.
36377 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
36379         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36380         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36381         documentation.  Add missing '__' in front of
36382         __builtin_ia32_packssdw256.
36384 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36386         PR target/55719
36387         * config/s390/s390.c (s390_preferred_reload_class): Do not return
36388         NO_REGS for larl operands.
36389         (s390_reload_larl_operand): Use s390_load_address instead of
36390         emit_move_insn.
36392 2013-01-11  Richard Biener  <rguenther@suse.de>
36394         * tree-cfg.c (verify_node_sharing_1): Split out from ...
36395         (verify_node_sharing): ... here.
36396         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36398 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
36400         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36401         Substitute TREECHECKING.
36402         * configure: Regenerate.
36403         * Makefile.in (TREECHECKING): New.
36405 2013-01-11  Richard Guenther  <rguenther@suse.de>
36407         PR tree-optimization/44061
36408         * tree-vrp.c (extract_range_basic): Compute zero as
36409         value-range for __builtin_constant_p of function parameters.
36411 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
36413         Update copyright years.
36415 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
36417         PR rtl-optimization/55672
36418         * lra-eliminations.c (mark_not_eliminable): Permit addition with
36419         const to be eliminable.
36421 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
36423         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36424         * configure: Regenerate.
36426 2013-01-10  Richard Biener  <rguenther@suse.de>
36428         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36430 2013-01-10  Richard Biener  <rguenther@suse.de>
36432         PR bootstrap/55792
36433         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36434         locations for virtual PHI arguments.
36435         (rewrite_update_phi_arguments): Likewise.
36437 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
36439         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36440         on to assembler.
36442 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
36444         PR tree-optimization/55921
36445         * tree-complex.c (expand_complex_asm): New function.
36446         (expand_complex_operations_1): Call it for GIMPLE_ASM.
36448 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36450         PR target/55718
36451         * config/s390/s390.c (s390_symref_operand_p)
36452         (s390_loadrelative_operand_p): Merge the two functions.
36453         (s390_check_qrst_address, print_operand_address): Add parameters
36454         to s390_loadrelative_operand_p invokation.
36455         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36456         (s390_reload_larl_operand, s390_secondary_reload): Use
36457         s390_loadrelative_operand_p instead of s390_symref_operand_p.
36458         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36460 2013-01-09  Mike Stump  <mikestump@comcast.net>
36462         * dse.c (record_store): Remove unnecessary assert.
36464 2013-01-09  Jan Hubicka  <jh@suse.cz>
36466         PR tree-optimization/55569
36467         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36468         * cfgloop.h (scale_loop_profile): Likewise.
36470 2013-01-09  Jan Hubicka  <jh@suse.cz>
36472         PR lto/45375
36473         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36474         functions.
36475         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36477 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
36479         PR middle-end/55114
36480         * expr.h (maybe_emit_group_store): Declare.
36481         * expr.c (maybe_emit_group_store): New function.
36482         * builtins.c (expand_builtin_int_roundingfn): Call it.
36483         (expand_builtin_int_roundingfn_2): Likewise.
36485 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
36487         PR rtl-optimization/55829
36488         * lra-constraints.c (match_reload): Add code for absent output.
36489         (curr_insn_transform): Add code for reloads of matched inputs
36490         without output.
36492 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
36494         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36495         attribute of movddup insn to DF.
36496         (*vec_interleave_lowv2df): Ditto.
36497         (vec_dupv2df): Ditto.
36499 2013-01-09  Jan Hubicka  <jh@suse.cz>
36501         PR tree-optimiation/55875
36502         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36503         EVERY_ITERATION parameter.
36504         (number_of_iterations_exit): Check if exit is executed every iteration.
36505         (idx_infer_loop_bounds): Similarly here.
36506         (n_of_executions_at_most): Simplify
36507         to only test for cases where statement is dominated by the
36508         particular bound; handle correctly the "postdominance" test.
36509         (scev_probably_wraps_p): Use max loop iterations info
36510         as a global bound first.
36512 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
36513             Nick Clifton  <nickc@redhat.com>
36515         * config/v850/v850.md (cbranchsf4): New pattern.
36516         (cstoresf4): New pattern.
36517         (cbranchdf4): New pattern.
36518         (cstoredf4): New pattern.
36519         (movsicc): Disallow floating point comparisons.
36520         (cmpsf_le_insn): Fix order of operators.
36521         (cmpsf_lt_insn): Likewise.
36522         (cmpsf_eq_insn): Likewise.
36523         (cmpdf_le_insn): Likewise.
36524         (cmpdf_lt_insn): Likewise.
36525         (cmpdf_eq_insn): Likewise.
36526         (cmpsf_ge_insn): Use LE comparison.
36527         (cmpdf_ge_insn): Likewise.
36528         (cmpsf_gt_insn): Use LT comparison.
36529         (cmpdf_gt_insn): Likewise.
36530         (cmpsf_ne_insn): Delete pattern.
36531         (cmpdf_ne_insn): Delete pattern.
36532         * config/v850/v850.c (v850_gen_float_compare): Use
36533         gen_cmpdf_eq_insn for NE comparison.
36534         (v850_float_z_comparison_operator)
36535         (v850_float_nz_comparison_operator): Move from here ...
36536         * config/v850/predicates.md: ... to here.  Move GT and GE
36537         comparisons into v850_float_z_comparison_operator.
36538         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36539         Delete prototype.
36540         (v850_float_nz_comparison_operator): Likewise.
36542 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36544         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36545         with calls to gen_insvsi/gen_insvdi.
36547 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
36549         * config/i386/i386.c (initial_ix86_tune_features): Set up
36550         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36552 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
36553             Jakub Jelinek  <jakub@redhat.com>
36555         PR tree-optimization/48189
36556         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36557         If nitercst is 0, don't predict the exit edge.
36559 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36561         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36562         in asm_fprintf with reg_names.
36563         (aarch64_print_operand_address): Likewise.
36564         (aarch64_return_addr): Likewise.
36565         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36567 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36569         * config/pa/pa.h (VAL_U6_BITS_P): Define.
36570         (INT_U6_BITS): Likewise.
36571         * config/pa/predicates.md (uint6_operand): New predicate.
36572         (shift5_operand, shift6_operand): Likewise.
36573         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36574         arith32_operand.
36575         (lshrdi3): Use shift6_operand.
36576         (shrpsi4, shrpdi4): New insn patterns.
36577         (extzv): Delete expander.
36578         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
36579         predicates in unamed zero extract patterns.  Tighten common constraint.
36580         (extv): Delete expander.
36581         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
36582         predicates in unamed sign extract patterns.  Tighten common constraint.
36583         (insv): Delete expander.
36584         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
36585         predicates in unamed insert patterns.  Tighten common constraint.
36586         Change uint32_operand predicate to uint6_operand predicate in unamed
36587         DImode pattern to insert constant values of type 1...1xxxx.
36589 2013-01-04  Jan Hubicka  <jh@suse.cz>
36591         PR tree-optimization/55823
36592         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36593         issue.
36595 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36596             Uros Bizjak  <ubizjak@gmail.com>
36598         PR rtl-optimization/55845
36599         * df-problems.c (can_move_insns_across): Stop scanning at
36600         volatile_insn_p source instruction or give up if
36601         across_from .. across_to range contains any volatile_insn_p
36602         instructions.
36604 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36606         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36607         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36608         Declare.
36609         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36610         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36612 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36614         PR fortran/55341
36615         * asan.c (asan_clear_shadow): New function.
36616         (asan_emit_stack_protection): Use it.
36618 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36620         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36621         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36622         with tab instead of space.
36624 2013-01-08  Nick Clifton  <nickc@redhat.com>
36626         * config/rl78/rl78.c (rl78_expand_prologue): Always select
36627         register bank 0 at the start of an interrupt handler.
36628         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36629         MDBH registers.
36631 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36633         * config/aarch64/aarch64-simd.md
36634         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36635         (aarch64_simd_bsl): Likewise.
36636         (aarch64_vcond_internal<mode>): Likewise.
36637         (vcond<mode><mode>): Likewise.
36638         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36639         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36641 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36643         * config/aarch64/aarch64-builtins.c
36644         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36646 2013-01-08  Martin Jambor  <mjambor@suse.cz>
36648         PR debug/55579
36649         * tree-sra.c (analyze_access_subtree): Return true also after
36650         potentially creating a debug-only replacement.
36652 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36654         PR middle-end/55890
36655         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36657         PR tree-optimization/54120
36658         * tree-vrp.c (range_fits_type_p): Don't allow
36659         src_precision < precision from signed vr to unsigned_p
36660         if vr->min or vr->max is negative.
36661         (simplify_float_conversion_using_ranges): Test can_float_p
36662         against CODE_FOR_nothing.
36664 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36665             Richard Biener  <rguenther@suse.de>
36667         PR middle-end/55851
36668         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36669         types instead of just INTEGER_TYPE types.
36671 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
36673         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36674         TF_SIZE): Define.
36676 2013-01-07  Steve Ellcey  <sellcey@mips.com>
36678         PR target/42661
36679         * config/mips/mips.opt: Change mad to mmad to match documentation.
36681 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36683         PR target/55897
36684         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36685         .progmemx.data now.
36687 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36689         PR target/55897
36690         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36691         (avr_addrspace_t): Add .section_name field.
36692         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36693         array size.
36694         (avr_addrspace): Same.  Initialize .section_name.  Remove last
36695         NULL entry.  Put __memx into .progmemx.data.
36696         (progmem_section_prefix): Remove.
36697         (avr_asm_init_sections): No need to initialize progmem_section.
36698         (avr_asm_named_section): Use avr_addrspace[].section_name to get
36699         section name prefix.
36700         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
36701         retrieve the progmem section.
36702         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36703         boundary to run over avr_addrspace[].
36704         (avr_register_target_pragmas): Ditto.
36706 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
36708         * varasm.c (output_constant_def_contents): For asan_protect_global
36709         protected strings, adjust DECL_ALIGN if needed, before testing for
36710         anchored symbols.
36711         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36712         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
36713         normal decls.
36714         (output_object_block): For asan protected decls, emit asan padding
36715         after their contents.
36716         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36717         (asan_finish_file): Test it here instead.
36719 2013-01-07  Nick Clifton  <nickc@redhat.com>
36720             Matthias Klose  <doko@debian.org>
36721             Doug Kwan  <dougkwan@google.com>
36722             H.J. Lu  <hongjiu.lu@intel.com>
36724         PR driver/55470
36725         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36727         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36729         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36731         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36733         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36735 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36737         PR target/54461
36738         * doc/install.texi (Cross-Compiler-Specific Options): Document
36739         --with-avrlibc.
36741 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
36743         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36744         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36745         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36746         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36747         vqmovun_high_s64): Fix source operand number and update copyright.
36749 2013-01-07  Richard Biener  <rguenther@suse.de>
36751         PR middle-end/55890
36752         * gimple.h (gimple_call_builtin_p): New overload.
36753         * gimple.c (validate_call): New function.
36754         (gimple_call_builtin_p): Likewise.
36755         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36756         Use gimple_call_builtin_p.
36757         (find_func_clobbers): Likewise.
36758         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36759         (strlen_optimize_stmt): Likewise.
36761 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36763         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36764         (vld1q_dup_*): Likewise.
36765         (vld1_*): Likewise.
36766         (vld1q_*): Likewise.
36767         (vld1_lane_*): Likewise.
36768         (vld1q_lane_*): Likewise.
36770 2013-01-07  Richard Biener  <rguenther@suse.de>
36772         * lto-streamer.h (LTO_minor_version): Bump to 2.
36774 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36776         * config/aarch64/aarch64-protos.h
36777         (aarch64_const_double_zero_rtx_p): Rename to...
36778         (aarch64_float_const_zero_rtx_p): ...this.
36779         (aarch64_float_const_representable_p): New.
36780         (aarch64_output_simd_mov_immediate): Likewise.
36781         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36782         move immediate case.
36783         * config/aarch64/aarch64.c
36784         (aarch64_const_double_zero_rtx_p): Rename to...
36785         (aarch64_float_const_zero_rtx_p): ...this.
36786         (aarch64_print_operand): Allow printing of new constants.
36787         (aarch64_valid_floating_const): New.
36788         (aarch64_legitimate_constant_p): Check for valid floating-point
36789         constants.
36790         (aarch64_simd_valid_immediate): Likewise.
36791         (aarch64_vect_float_const_representable_p): New.
36792         (aarch64_float_const_representable_p): Likewise.
36793         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36794         (aarch64_output_simd_mov_immediate): New.
36795         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36796         (*movdf_aarch64): Likewise.
36797         * config/aarch64/constraints.md (Ufc): New.
36798         (Y): call aarch64_float_const_zero_rtx.
36799         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36801 2013-01-07  Richard Biener  <rguenther@suse.de>
36803         PR tree-optimization/55888
36804         PR tree-optimization/55862
36805         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36806         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36807         not if it is contained therein.
36809 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36811         * config/avr/t-avr: Typo.
36813 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36815         PR55243
36816         * config/avr/t-avr: Don't automatically rebuild
36817         $(srcdir)/config/avr/t-multilib
36818         $(srcdir)/config/avr/avr-tables.opt
36819         $(srcdir)/doc/avr-mmcu.texi
36820         (avr-mcus): New phony target to build them on request.
36821         (s-avr-mlib, s-avr-mmcu-texi): Remove.
36822         * avr/avr-mcus.def: Adjust comments.
36824 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
36826         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36828 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36830         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36832 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36834         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36836 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
36838         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36839         to generate profiling.
36840         * config/rs6000/aix64.h (LIB_SPEC): Same.
36842 2013-01-04  Andrew Pinski  <apinski@cavium.com>
36844         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36845         New function.
36846         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36848 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
36850         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36851         unconditionally.
36852         (ix86_expand_move): Ditto.
36853         (ix86_zero_extend_to_Pmode): Ditto.
36854         (ix86_expand_call): Ditto.
36855         (ix86_expand_special_args_builtin): Ditto.
36856         (ix86_expand_builtin): Ditto.
36858 2013-01-04  Richard Biener  <rguenther@suse.de>
36860         PR tree-optimization/55862
36861         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36862         translating them through PHI nodes.
36864 2013-01-04  Martin Jambor  <mjambor@suse.cz>
36866         PR tree-optimization/55755
36867         * tree-sra.c (sra_modify_assign): Do not check that an access has no
36868         children when trying to avoid producing a VIEW_CONVERT_EXPR.
36870 2013-01-04  Marek Polacek  <polacek@redhat.com>
36872         PR middle-end/55859
36873         * opts.c (default_options_optimization): Clarify error message.
36875 2013-01-04  Richard Biener  <rguenther@suse.de>
36877         PR middle-end/55863
36878         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36879         reassociation.
36881 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36883         PR target/53789
36884         * config/pa/pa.md (movsi): Revert previous change.
36885         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36886         references.
36888 2013-01-03  Richard Henderson  <rth@redhat.com>
36890         * config/i386/i386.c (ix86_expand_move): Always assign to op1
36891         after eliminating TLS symbols.
36893 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
36895         PR bootstrap/50167
36896         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36897         * graphite-poly.c (debug_gmp_value): Likewise.
36899 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
36901         PR target/55712
36902         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36903         selected code model, define __code_mode_small__, __code_model_medium__,
36904         __code_model_large__, __code_model_32__ or __code_model_kernel__.
36905         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36906         xchg temporary register with %k.  Declare temporary register as
36907         early clobbered.
36908         [__x86_64__]: For medium and large code models, preserve %rbx register.
36910 2013-01-03  Richard Biener  <rguenther@suse.de>
36912         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36913         (dump_subscript): Adjust.
36914         (finalize_ddr_dependent): Do not dump redundant info.
36915         (analyze_siv_subscript): Adjust.
36916         (subscript_dependence_tester): Likewise.
36917         (compute_affine_dependence): Likewise.
36919 2013-01-03  Richard Biener  <rguenther@suse.de>
36921         Revert
36922         2013-01-03  Richard Biener  <rguenther@suse.de>
36924         PR tree-optimization/55857
36925         * tree-vect-stmts.c (vectorizable_load): Do not setup
36926         re-alignment for invariant loads.
36928         2013-01-02  Richard Biener  <rguenther@suse.de>
36930         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36931         invariant load do not generate a vector load from the scalar location.
36933 2013-01-03  Richard Biener  <rguenther@suse.de>
36935         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36936         for not vectorizing.
36937         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36938         not build INDIRECT_REFs, call get_name once only.
36939         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
36940         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36942 2013-01-03  Richard Biener  <rguenther@suse.de>
36944         PR tree-optimization/55857
36945         * tree-vect-stmts.c (vectorizable_load): Do not setup
36946         re-alignment for invariant loads.
36948 2013-01-03  Richard Biener  <rguenther@suse.de>
36950         PR lto/55848
36951         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36952         prefer a built-in decl.
36954 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36956         * gcc.c (process_command): Update copyright notice dates.
36957         * gcov.c (print_version): Likewise.
36958         * gcov-dump.c (print_version): Likewise.
36960         PR rtl-optimization/55838
36961         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36962         iv0.step, iv1.step and step.
36964 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36965             Marc Glisse  <marc.glisse@inria.fr>
36967         PR tree-optimization/55832
36968         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36969         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36970         integer_{one,zero}_node.
36972 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36974         PR debug/54402
36975         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36976         * var-tracking.c (reverse_op): Don't add reverse ops to
36977         VALUEs that have already
36978         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36980 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
36982         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36984 2013-01-02  Teresa Johnson  <tejohnson@google.com>
36986         * dumpfile.c (dump_loc): Print filename with location.
36987         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36988         new location_t parameter to emit complete unroll message with
36989         new dump framework.
36990         (canonicalize_loop_induction_variables): Compute loops location
36991         and pass to try_unroll_loop_completely.
36992         * loop-unroll.c (report_unroll_peel): New function.
36993         (peel_loops_completely): Use new dump format with location
36994         for main dumpfile message, and invoke report_unroll_peel on success.
36995         (decide_unrolling_and_peeling): Ditto.
36996         (decide_peel_once_rolling): Remove old dumpfile message subsumed
36997         by report_unroll_peel.
36998         (decide_peel_completely): Ditto.
36999         (decide_unroll_constant_iterations): Ditto.
37000         (decide_unroll_runtime_iterations): Ditto.
37001         (decide_peel_simple): Ditto.
37002         (decide_unroll_stupid): Ditto.
37003         * cfgloop.c (get_loop_location): New function.
37004         * cfgloop.h (get_loop_location): Declare.
37006 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
37008         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
37009         NULL.
37011 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37013         PR middle-end/55198
37014         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
37015         BLKmode objects when EXPAND_MEMORY is specified.
37017 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
37019         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
37020         in loop predicate.
37021         (fold_builtin_cpu): Do not share cpu model decls across statements.
37023 2013-01-02  Jason Merrill  <jason@redhat.com>
37025         PR c++/55804
37026         * tree.c (build_array_type_1): Revert earlier change.
37028 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
37030         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
37031         "cortex-a57".
37032         * config/aarch64/aarch64-tune.md: Re-generate.
37034 2013-01-02  Richard Biener  <rguenther@suse.de>
37036         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
37037         invariant load do not generate a vector load from the scalar location.
37039 2013-01-02  Richard Biener  <rguenther@suse.de>
37041         PR bootstrap/55784
37042         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
37043         * configure: Regenerate.
37045 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
37047         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
37048         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
37049         (expand_builtin_int_roundingfn_2): Keep the original target around
37050         for the fallback case.
37052 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
37054         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
37055         to be clear for sign changes.
37057 2013-01-01  Jan Hubicka  <jh@suse.cz>
37059         * ipa-inline-analysis.c: Fix formatting.
37061 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
37063         PR tree-optimization/55831
37064         * tree-vect-loop.c (get_initial_def_for_induction): Use
37065         gsi_after_labels instead of gsi_start_bb.
37067 Copyright (C) 2013 Free Software Foundation, Inc.
37069 Copying and distribution of this file, with or without modification,
37070 are permitted in any medium without royalty provided the copyright
37071 notice and this notice are preserved.